hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96dbaa699af4505593828a33675e95e9fd705c74 | 12,955 | cpp | C++ | src/cli/test/test_CLI.cpp | pozsa/sarus | 5117a0da8d2171c4bf9ebc6835e0dd6b73812930 | [
"BSD-3-Clause"
] | null | null | null | src/cli/test/test_CLI.cpp | pozsa/sarus | 5117a0da8d2171c4bf9ebc6835e0dd6b73812930 | [
"BSD-3-Clause"
] | null | null | null | src/cli/test/test_CLI.cpp | pozsa/sarus | 5117a0da8d2171c4bf9ebc6835e0dd6b73812930 | [
"BSD-3-Clause"
] | null | null | null | /*
* Sarus
*
* Copyright (c) 2018-2020, ETH Zurich. All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <memory>
#include <boost/filesystem.hpp>
#include "common/Utility.hpp"
#include "common/Config.hpp"
#include "common/CLIA... | 41.790323 | 97 | 0.647009 | pozsa |
96dde259489171ceacdd6bd8abccc719b69def10 | 11,428 | cpp | C++ | src/test/syscoin_snapshot_tests.cpp | vpubchain/syscoin | 72af49f24d2f4dd3628fd3ca8f7e3415534f55c8 | [
"MIT"
] | 1 | 2020-02-09T21:15:36.000Z | 2020-02-09T21:15:36.000Z | src/test/syscoin_snapshot_tests.cpp | vpubchain/syscoin | 72af49f24d2f4dd3628fd3ca8f7e3415534f55c8 | [
"MIT"
] | null | null | null | src/test/syscoin_snapshot_tests.cpp | vpubchain/syscoin | 72af49f24d2f4dd3628fd3ca8f7e3415534f55c8 | [
"MIT"
] | 1 | 2021-12-01T07:18:04.000Z | 2021-12-01T07:18:04.000Z | // Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/test_syscoin_services.h>
#include <test/data/utxo.json.h>
#include <test/data/assetbalances.json.h>
#include <util/... | 45.16996 | 329 | 0.727511 | vpubchain |
96de8eca2039cd70a4ff2f12d9244983c282be9a | 13,550 | cpp | C++ | moveit_visual_tools/src/imarker_robot_state.cpp | errrr0501/wrs2020 | 8695eca402081d3d02dc12bb50b3ebd78464e96f | [
"MIT"
] | null | null | null | moveit_visual_tools/src/imarker_robot_state.cpp | errrr0501/wrs2020 | 8695eca402081d3d02dc12bb50b3ebd78464e96f | [
"MIT"
] | null | null | null | moveit_visual_tools/src/imarker_robot_state.cpp | errrr0501/wrs2020 | 8695eca402081d3d02dc12bb50b3ebd78464e96f | [
"MIT"
] | 2 | 2020-10-12T07:48:51.000Z | 2020-10-19T15:28:28.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2016, University of Colorado, Boulder
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... | 34.566327 | 120 | 0.691661 | errrr0501 |
96e0cf58acfe50d0693960d3dfd0ad346cd27ee5 | 3,599 | cpp | C++ | Base/PLCore/src/File/FileSearchAndroid.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLCore/src/File/FileSearchAndroid.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLCore/src/File/FileSearchAndroid.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: FileSearchAndroid.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 35.633663 | 136 | 0.548486 | ktotheoz |
96e4f68f9e2d37940d54a68cce1ac7d4c0426ac7 | 3,844 | cpp | C++ | Model/ModelGrid.cpp | robbor78/OpenGLTetris3D | b388cbdc2eda9fcc9a073f8aa857b0912819e695 | [
"Apache-2.0"
] | null | null | null | Model/ModelGrid.cpp | robbor78/OpenGLTetris3D | b388cbdc2eda9fcc9a073f8aa857b0912819e695 | [
"Apache-2.0"
] | null | null | null | Model/ModelGrid.cpp | robbor78/OpenGLTetris3D | b388cbdc2eda9fcc9a073f8aa857b0912819e695 | [
"Apache-2.0"
] | null | null | null | /*
* ModelGrid.cpp
*
* Created on: 22 Dec 2013
* Author: bert
*/
#include "ModelGrid.h"
namespace Tetris3D {
ModelGrid::ModelGrid(OpenGLProgram* program) :
AbstractModelPiece(program) {
well = 0;
vbo = -1;
}
ModelGrid::~ModelGrid() {
program = 0;
well = 0;
glBindBuffer(GL_ARRAY_BUFFER, 0);
glDele... | 30.752 | 127 | 0.588189 | robbor78 |
96e7bbcce9ad7f8b0208c8cd243525d9f87d612d | 404 | hpp | C++ | src/arithmetic.hpp | UtopiaLang/src | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | 7 | 2021-03-01T17:24:45.000Z | 2021-10-01T02:28:25.000Z | src/arithmetic.hpp | UtopiaLang/Utopia | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | 6 | 2021-02-27T18:25:45.000Z | 2021-09-10T21:27:39.000Z | src/arithmetic.hpp | UtopiaLang/src | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | null | null | null | #pragma once
namespace Utopia
{
using arithmetic_func_t = long long(*)(const long long, const long long);
long long arithmetic_plus(const long long left, const long long right);
long long arithmetic_minus(const long long left, const long long right);
long long arithmetic_multiply(const long long left, const long ... | 33.666667 | 76 | 0.779703 | UtopiaLang |
96e8e95e2fad0184250fd1bdeebe56d670ac8932 | 6,795 | cc | C++ | selfdrive/can/dbc_out/cadillac_ct6_chassis.cc | ziggysnorkel/openpilot | 695859fb49976c2ef0a6a4a73d30d5cef2ad1945 | [
"MIT"
] | 1 | 2021-03-05T18:09:52.000Z | 2021-03-05T18:09:52.000Z | selfdrive/can/dbc_out/cadillac_ct6_chassis.cc | ziggysnorkel/openpilot | 695859fb49976c2ef0a6a4a73d30d5cef2ad1945 | [
"MIT"
] | null | null | null | selfdrive/can/dbc_out/cadillac_ct6_chassis.cc | ziggysnorkel/openpilot | 695859fb49976c2ef0a6a4a73d30d5cef2ad1945 | [
"MIT"
] | null | null | null | #include <cstdint>
#include "common.h"
namespace {
const Signal sigs_338[] = {
{
.name = "LKASteeringCmd",
.b1 = 2,
.b2 = 14,
.bo = 48,
.is_signed = true,
.factor = 1,
.offset = 0,
.is_little_endian = false,
.type = SignalType::DEFAULT,
},
{
.na... | 19.810496 | 51 | 0.474467 | ziggysnorkel |
96e94bd855b46b2d3194b61dbab8765d6454b0ea | 1,668 | cpp | C++ | Bootstrap/Patcher/Tests/Suite.spec.cpp | XionsProphecy-Software/MelonLoader | 7af96f573242bbbbc707b385b4c9c07e5ff51c25 | [
"Apache-2.0"
] | 6 | 2021-04-30T02:40:23.000Z | 2022-03-16T16:54:32.000Z | Bootstrap/Patcher/Tests/Suite.spec.cpp | XionsProphecy-Software/MelonLoader | 7af96f573242bbbbc707b385b4c9c07e5ff51c25 | [
"Apache-2.0"
] | null | null | null | Bootstrap/Patcher/Tests/Suite.spec.cpp | XionsProphecy-Software/MelonLoader | 7af96f573242bbbbc707b385b4c9c07e5ff51c25 | [
"Apache-2.0"
] | 8 | 2021-04-13T18:32:57.000Z | 2022-03-12T18:42:07.000Z | #include "./Suite.spec.h"
#include <string>
#include <android/log.h>
#include "../../Utils/UnitTesting/TestHelper.h"
#include "../../Utils/UnitTesting/TestHelper.h"
#include "../../Base/funchook/include/funchook.h"
#include "../../Managers/Hook.h"
namespace Patcher
{
class TestV
{
public:
typedef bool (*Origin... | 21.947368 | 93 | 0.616906 | XionsProphecy-Software |
96eb5448be918c54a3a35b49c7a9d9632a0e59d7 | 26,330 | cpp | C++ | test/test_manifest_tsv.cpp | rkimballn1/aeon-merged | 062136993c0f326c95caaddf6118a84789e206b1 | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 63 | 2016-08-14T07:19:45.000Z | 2021-09-21T15:57:08.000Z | test/test_manifest_tsv.cpp | NervanaSystems/aeon | a63b9f8d75311b8d9e9b0be58a066e749aeb81d4 | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 64 | 2016-08-08T18:35:19.000Z | 2022-03-11T23:43:51.000Z | test/test_manifest_tsv.cpp | rkimballn1/aeon-merged | 062136993c0f326c95caaddf6118a84789e206b1 | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 44 | 2016-08-10T01:20:52.000Z | 2020-07-01T19:47:48.000Z | /*******************************************************************************
* Copyright 2016-2018 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... | 32.070646 | 100 | 0.558033 | rkimballn1 |
96ed42bf3424581e9f4cf97c9a782dff03f56971 | 42,285 | cpp | C++ | code_reading/oceanbase-master/src/storage/blocksstable/ob_macro_block.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/storage/blocksstable/ob_macro_block.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/storage/blocksstable/ob_macro_block.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 40.934172 | 159 | 0.700721 | wangcy6 |
96ee220be8cb51800b6a6f633795ec66351b59e7 | 701 | cpp | C++ | C++/638.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | 1 | 2021-08-31T08:53:47.000Z | 2021-08-31T08:53:47.000Z | C++/638.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | null | null | null | C++/638.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | null | null | null | class Solution {
public:
int shoppingOffers(vector<int>& price, vector<vector<int>>& special, vector<int>& needs) {
int res = 0, n = price.size();
for (int i = 0; i < n; i++) {
res += price[i] * needs[i];
}
for (auto coupon : special) {
bool isVaild = true;
... | 33.380952 | 95 | 0.437946 | TianChenjiang |
96f6c44ea96b4a9d526f8476396dfd1d359e8e9d | 3,758 | hpp | C++ | gtfo/algorithm/search_n.hpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | 1 | 2016-01-09T09:57:55.000Z | 2016-01-09T09:57:55.000Z | gtfo/algorithm/search_n.hpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | null | null | null | gtfo/algorithm/search_n.hpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | null | null | null | #ifndef GTFO_FILE_INCLUDED_ALGORITHM_SEARCH_N_HPP
#define GTFO_FILE_INCLUDED_ALGORITHM_SEARCH_N_HPP
/*
* Defines the following overloads:
* search_n(ForwardIterator, ForwardIterator, Size, const Value &);
* search_n(ForwardIterator, ForwardIterator, Size, const Value &, BinaryPredicate);
... | 33.553571 | 97 | 0.552155 | TMorozovsky |
96fab864cfa6183c048e07f09223ff4be016dfb0 | 3,191 | cpp | C++ | src/mfx/ControlledParam.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 69 | 2017-01-17T13:17:31.000Z | 2022-03-01T14:56:32.000Z | src/mfx/ControlledParam.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 1 | 2020-11-03T14:52:45.000Z | 2020-12-01T20:31:15.000Z | src/mfx/ControlledParam.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 8 | 2017-02-08T13:30:42.000Z | 2021-12-09T08:43:09.000Z | /*****************************************************************************
ControlledParam.cpp
Author: Laurent de Soras, 2016
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under... | 20.856209 | 84 | 0.579442 | mikelange49 |
96fcd45b14a5c76cdefc0fec95107889abdad464 | 429 | cpp | C++ | Pbinfo/Prime.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Prime.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Prime.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <fstream>
using namespace std;
ifstream cin("prime.in");
ofstream cout("prime.out");
bool prim(int n){
if(n==0 || n==1) return 0;
if(n==2) return 1;
if(n%2==0) return 0;
for(int d=3; d*d<=n; d=d+2)
if(n%d==0) return 0;
return 1;
}
int main()
{
int n, a[1000];
cin>>n;
... | 14.793103 | 39 | 0.482517 | Al3x76 |
8c09474b8e7a2f675356d4a8ad0217eb803a6de9 | 2,788 | hh | C++ | recorder/src/main/cpp/profiler.hh | Flipkart/fk-prof | ed801c32a8c3704204be670e16c6465297431e1a | [
"Apache-2.0",
"MIT"
] | 7 | 2017-01-17T11:29:08.000Z | 2021-06-07T10:36:59.000Z | recorder/src/main/cpp/profiler.hh | Flipkart/fk-prof | ed801c32a8c3704204be670e16c6465297431e1a | [
"Apache-2.0",
"MIT"
] | 106 | 2017-01-12T04:38:40.000Z | 2017-10-04T11:12:54.000Z | recorder/src/main/cpp/profiler.hh | Flipkart/fk-prof | ed801c32a8c3704204be670e16c6465297431e1a | [
"Apache-2.0",
"MIT"
] | 4 | 2016-12-22T08:56:27.000Z | 2018-07-26T17:13:42.000Z | #ifndef PROFILER_H
#define PROFILER_H
#include <signal.h>
#include <unistd.h>
#include <chrono>
#include <sstream>
#include <string>
#include "globals.hh"
#include "profile_writer.hh"
#include "thread_map.hh"
#include "signal_handler.hh"
#include "stacktraces.hh"
#include "processor.hh"
#include "perf_ctx.hh"
using... | 23.041322 | 283 | 0.713415 | Flipkart |
8c102b026fa270923c5e1b5b590a34376b49cedd | 8,748 | cc | C++ | src/s3_cmds/zgw_s3_completemultiupload.cc | baotiao/zeppelin-gateway | bff8d8e160422322e306dfc1dc1768b29001a8c0 | [
"Apache-2.0"
] | 20 | 2017-05-04T00:49:55.000Z | 2022-03-27T10:06:02.000Z | src/s3_cmds/zgw_s3_completemultiupload.cc | baotiao/zeppelin-gateway | bff8d8e160422322e306dfc1dc1768b29001a8c0 | [
"Apache-2.0"
] | null | null | null | src/s3_cmds/zgw_s3_completemultiupload.cc | baotiao/zeppelin-gateway | bff8d8e160422322e306dfc1dc1768b29001a8c0 | [
"Apache-2.0"
] | 16 | 2017-04-11T08:10:04.000Z | 2020-06-16T02:49:48.000Z | #include "src/s3_cmds/zgw_s3_object.h"
#include <algorithm>
#include "slash/include/env.h"
#include "src/s3_cmds/zgw_s3_xml.h"
#include "src/zgw_utils.h"
bool CompleteMultiUploadCmd::DoInitial() {
http_request_xml_.clear();
http_response_xml_.clear();
received_parts_info_.clear();
upload_id_ = query_params_.... | 36 | 94 | 0.569845 | baotiao |
8c11d122e12a48ff10ca8c38233a976fff4b0436 | 399 | cpp | C++ | Trab2/livro.cpp | danielfavoreto/Fourth-semester-programacao-3- | 27c36958abdb78ab88b862b5371c573a324dcd0b | [
"MIT"
] | null | null | null | Trab2/livro.cpp | danielfavoreto/Fourth-semester-programacao-3- | 27c36958abdb78ab88b862b5371c573a324dcd0b | [
"MIT"
] | null | null | null | Trab2/livro.cpp | danielfavoreto/Fourth-semester-programacao-3- | 27c36958abdb78ab88b862b5371c573a324dcd0b | [
"MIT"
] | null | null | null | /* livro.cpp
*
* Created on: 24 de nov de 2015
* Author: 2013101847
*/
#include "livro.h"
// construtor de livro
livro::livro(int codigo, string nome, string tipo, list<pessoa*> atores, int tamanho, genero* midiaGenero, bool possui, bool consumiu, bool deseja, double preco):midia(codigo, nome, tipo, atores, ... | 26.6 | 250 | 0.699248 | danielfavoreto |
8c133eae91343f1c73fc113ec3000ca89419bf20 | 4,151 | cpp | C++ | cplusplus/contrib/AI_painting/src/data_receiver.cpp | Dedederek/samples | 31d99de20af2f7046556e0f48c4b789b99e422f8 | [
"Apache-2.0"
] | 5 | 2021-02-26T17:58:12.000Z | 2022-03-15T06:21:28.000Z | cplusplus/contrib/AI_painting/src/data_receiver.cpp | Dedederek/samples | 31d99de20af2f7046556e0f48c4b789b99e422f8 | [
"Apache-2.0"
] | null | null | null | cplusplus/contrib/AI_painting/src/data_receiver.cpp | Dedederek/samples | 31d99de20af2f7046556e0f48c4b789b99e422f8 | [
"Apache-2.0"
] | 5 | 2021-03-22T21:13:11.000Z | 2021-09-24T06:52:33.000Z | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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 ... | 36.412281 | 115 | 0.70224 | Dedederek |
8c147229939933595fc2b15fa4eadcc02734e81b | 5,164 | cpp | C++ | engine/samples/ModelLoading/src/MainState.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 17 | 2019-02-12T14:40:06.000Z | 2021-12-21T12:54:17.000Z | engine/samples/ModelLoading/src/MainState.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | null | null | null | engine/samples/ModelLoading/src/MainState.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 2 | 2019-02-21T10:07:42.000Z | 2020-05-08T19:49:10.000Z | #include "MainState.hpp"
#include "Log.hpp"
/////////// - StormKit::entities - ///////////
#include <storm/entities/MessageBus.hpp>
/////////// - StormKit::render - ///////////
#include <storm/render/core/Device.hpp>
#include <storm/render/core/PhysicalDevice.hpp>
#include <storm/render/core/Surface.hpp>
///////////... | 33.532468 | 95 | 0.595275 | Arthapz |
8c160271accfd70ae96f7927cded666e7b29cca6 | 15,061 | cpp | C++ | graphics/cgal/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_selection_plugin.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | 4 | 2016-03-30T14:31:52.000Z | 2019-02-02T05:01:32.000Z | graphics/cgal/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_selection_plugin.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | graphics/cgal/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_selection_plugin.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/Polygon_2.h>
#include <QtCore/qglobal.h>
#include <QGLViewer/manipulatedCameraFrame.h>
#include "opengl_tools.h"
#include "Messages_interface.h"
#include "Scene_points_with_normal_item.h"
#include "Scene_polylines_i... | 29.531373 | 127 | 0.685081 | hlzz |
22c49f58b40dfb1128231c78099a753b486200b9 | 1,143 | cpp | C++ | atreyu/main.cpp | AiRT-Software/ocs | 2d6056a1260ac9ac75cfd507fb1a77db3b26298a | [
"BSD-4-Clause"
] | 1 | 2019-02-07T12:24:51.000Z | 2019-02-07T12:24:51.000Z | atreyu/main.cpp | AiRT-Software/ocs | 2d6056a1260ac9ac75cfd507fb1a77db3b26298a | [
"BSD-4-Clause"
] | null | null | null | atreyu/main.cpp | AiRT-Software/ocs | 2d6056a1260ac9ac75cfd507fb1a77db3b26298a | [
"BSD-4-Clause"
] | 1 | 2020-07-06T10:33:10.000Z | 2020-07-06T10:33:10.000Z |
/*
AiRT Software
http://www.airt.eu
This project has received funding from the European Union's Horizon 2020 research
and innovation programme under grant agreement No 732433.
Copyright Universitat Politecnica de Valencia 2017-2018.
All rights reserved.
Instituto de Automática e Informática Industrial (ai2)
http... | 19.372881 | 81 | 0.55818 | AiRT-Software |
22c557929df89e8dc17f778d87fdd7bcc1010935 | 289 | cpp | C++ | tsc/src/SkyObject/Earth.cpp | jbangelo/tsc | 3251f81a27c7dbee043736e0f579f5d2a9e991a1 | [
"MIT"
] | 1 | 2016-11-29T01:31:26.000Z | 2016-11-29T01:31:26.000Z | tsc/src/SkyObject/Earth.cpp | jbangelo/tsc | 3251f81a27c7dbee043736e0f579f5d2a9e991a1 | [
"MIT"
] | null | null | null | tsc/src/SkyObject/Earth.cpp | jbangelo/tsc | 3251f81a27c7dbee043736e0f579f5d2a9e991a1 | [
"MIT"
] | null | null | null | /*
* Earth.cpp
*
* Created on: Nov 21, 2015
* Author: ben
*/
#include "SkyObject/Earth.h"
using tsc::SkyObject::Earth;
using tsc::Utils::IDataStorage;
Earth::Earth(IDataStorage& dataStorage) :
Planet(EARTH, dataStorage, *this)
{
_isEarth = true;
}
Earth::~Earth()
{
}
| 11.56 | 41 | 0.640138 | jbangelo |
22c5d248230d936ccfccf7d90f14524cf2dd5bcd | 221 | hpp | C++ | Includes/pyTheGame/Game/GameState.hpp | JYPark09/TheGame | 2af0bbe1199df794bd1688837c0f814479deded8 | [
"MIT"
] | null | null | null | Includes/pyTheGame/Game/GameState.hpp | JYPark09/TheGame | 2af0bbe1199df794bd1688837c0f814479deded8 | [
"MIT"
] | null | null | null | Includes/pyTheGame/Game/GameState.hpp | JYPark09/TheGame | 2af0bbe1199df794bd1688837c0f814479deded8 | [
"MIT"
] | null | null | null | #ifndef PYTHEGAME_GAME_STATE_HPP
#define PYTHEGAME_GAME_STATE_HPP
#include <pybind11/pybind11.h>
void buildGameResult(pybind11::module& m);
void buildGameState(pybind11::module& m);
#endif // PYTHEGAME_GAME_STATE_HPP
| 22.1 | 42 | 0.81448 | JYPark09 |
22c60e356e68db2412b1696f5d97877bcf0148df | 9,831 | cpp | C++ | trace_server/3rd/qwt/qwt_spline_cardinal.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | trace_server/3rd/qwt/qwt_spline_cardinal.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | trace_server/3rd/qwt/qwt_spline_cardinal.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
**************... | 27.157459 | 87 | 0.551521 | mojmir-svoboda |
22c62abcae296cc143d5e364ae8c021641d9991e | 982 | cpp | C++ | Shared/Src/Shin/Vertex/TextureVertex.cpp | sindharta/vulkan-sandbox | 45ef4be936273723b0d8f84a7396293016e4254b | [
"Apache-2.0"
] | null | null | null | Shared/Src/Shin/Vertex/TextureVertex.cpp | sindharta/vulkan-sandbox | 45ef4be936273723b0d8f84a7396293016e4254b | [
"Apache-2.0"
] | null | null | null | Shared/Src/Shin/Vertex/TextureVertex.cpp | sindharta/vulkan-sandbox | 45ef4be936273723b0d8f84a7396293016e4254b | [
"Apache-2.0"
] | 1 | 2021-06-15T06:15:24.000Z | 2021-06-15T06:15:24.000Z | #include "TextureVertex.h"
//---------------------------------------------------------------------------------------------------------------------
const VkVertexInputBindingDescription* TextureVertex::GetBindingDescription() {
static VkVertexInputBindingDescription bindingDescription = {
0, sizeof(Te... | 39.28 | 119 | 0.564155 | sindharta |
22c7cbbf15e6ff0d998153c996df2a85b8060ed5 | 2,202 | cpp | C++ | source/parser/interp.cpp | zhiayang/peirce-alpha | 49931a234ba173ed7ea4bdcca9949f28d64d7b4f | [
"Apache-2.0"
] | 1 | 2021-05-03T22:51:13.000Z | 2021-05-03T22:51:13.000Z | source/parser/interp.cpp | zhiayang/peirce-alpha | 49931a234ba173ed7ea4bdcca9949f28d64d7b4f | [
"Apache-2.0"
] | 1 | 2021-05-03T22:52:59.000Z | 2021-05-10T15:31:26.000Z | source/parser/interp.cpp | zhiayang/peirce-alpha | 49931a234ba173ed7ea4bdcca9949f28d64d7b4f | [
"Apache-2.0"
] | null | null | null | // interp.cpp
// Copyright (c) 2021, zhiayang
// Licensed under the Apache License Version 2.0.
#include "ast.h"
namespace ast
{
Expr* Var::evaluate(const std::unordered_map<std::string, bool>& syms) const
{
if(auto it = syms.find(this->name); it != syms.end())
return new Lit(it->second);
return new Var(thi... | 22.02 | 86 | 0.631698 | zhiayang |
22c857a309705824486a47aba5a2571c3bc1f99d | 748 | cpp | C++ | Algorithms/LC/cpp/0520 Detect Capital/LC0520.cpp | tjzhym/LeetCode-solution | 06bd35bae619caaf8153b81849dae9dcc7bc9491 | [
"MIT"
] | null | null | null | Algorithms/LC/cpp/0520 Detect Capital/LC0520.cpp | tjzhym/LeetCode-solution | 06bd35bae619caaf8153b81849dae9dcc7bc9491 | [
"MIT"
] | null | null | null | Algorithms/LC/cpp/0520 Detect Capital/LC0520.cpp | tjzhym/LeetCode-solution | 06bd35bae619caaf8153b81849dae9dcc7bc9491 | [
"MIT"
] | null | null | null | // Problem : https://leetcode.com/problems/detect-capital/
// Solution: https://github.com/tjzhym/LeetCode-solution
// Author : zhym (tjzhym)
// Date : 2021-11-13
#include <string>
using namespace std;
class Solution {
public:
bool detectCapitalUse(string word) {
if (islower(word[0]) && ... | 22.666667 | 70 | 0.529412 | tjzhym |
22cb7c1f8e26893ec4d1132e8a428de01983c32a | 10,849 | cxx | C++ | Applications/OverView/Core/ToolbarActions.cxx | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | null | null | null | Applications/OverView/Core/ToolbarActions.cxx | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | null | null | null | Applications/OverView/Core/ToolbarActions.cxx | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: ParaView
Module: ToolbarActions.cxx
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the Para... | 27.605598 | 139 | 0.630289 | utkarshayachit |
22d1eb53c0a65998647ccedf5f8eed35fadb14c4 | 10,789 | hpp | C++ | src/Evolution/Systems/Cce/OptionTags.hpp | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | src/Evolution/Systems/Cce/OptionTags.hpp | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | src/Evolution/Systems/Cce/OptionTags.hpp | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <limits>
#include "DataStructures/DataBox/Tag.hpp"
#include "Evolution/Systems/Cce/Initialize/InitializeJ.hpp"
#include "Evolution/Systems/Cce/InterfaceManagers/GhInterfaceManager.hpp"
#include "Evolution/S... | 30.91404 | 80 | 0.736769 | desperadoshi |
22d2f10d921c9f1cd7ca1c6742ea221a46a9fb3d | 2,809 | cc | C++ | graph-tool-2.27/src/graph/topology/graph_similarity.cc | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | graph-tool-2.27/src/graph/topology/graph_similarity.cc | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | graph-tool-2.27/src/graph/topology/graph_similarity.cc | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | // graph-tool -- a general graph modification and manipulation thingy
//
// Copyright (C) 2006-2018 Tiago de Paula Peixoto <tiago@skewed.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation;... | 33.440476 | 94 | 0.655037 | Znigneering |
22d39c9953c594931b7016a1f9ca7edcfb004c79 | 717 | cpp | C++ | cc150/2.1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | cc150/2.1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | cc150/2.1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
struct ListNode
{
int val;
ListNode *next;
ListNode(int v):val(v),next(NULL){}
};
void deleteDup(ListNode *head){
if(head==NULL){
return;
}
ListNode *cur=head;
while(cur){
ListNode *run=cur;
while(run->next){
if(run->next->val==cur->val){
//delete run->ne... | 15.586957 | 44 | 0.6053 | WIZARD-CXY |
22d70eeca2ffd57dcd8d43633cb8f6a6d6b810d7 | 1,604 | cpp | C++ | Applied/CCore/src/AbstFileToMem.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/AbstFileToMem.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/AbstFileToMem.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | /* AbstFileToMem.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 4.01
//
// Tag: Applied
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// C... | 20.303797 | 131 | 0.591022 | SergeyStrukov |
22d9b729ef4dbfb5a190fb699a03d6e75c3bf331 | 131 | hxx | C++ | src/Providers/UNIXProviders/RangeOfIPAddresses/UNIX_RangeOfIPAddresses_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/RangeOfIPAddresses/UNIX_RangeOfIPAddresses_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/RangeOfIPAddresses/UNIX_RangeOfIPAddresses_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_STUB
#ifndef __UNIX_RANGEOFIPADDRESSES_PRIVATE_H
#define __UNIX_RANGEOFIPADDRESSES_PRIVATE_H
#endif
#endif
| 10.916667 | 43 | 0.854962 | brunolauze |
22dd38870431ad1cab052d3fa095b8f60f7aaf24 | 480 | cpp | C++ | URI/2143-the-return-of-radar.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | URI/2143-the-return-of-radar.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | URI/2143-the-return-of-radar.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | /*
problem no: 2143
problem name: The Return of Radar
problem link: https://www.urionlinejudge.com.br/judge/en/problems/view/2143
author: Susmoy Sen Gupta
Status: __Solved__
Solved at: 6/24/21, 12:35:28 AM
*/
#include <iostream>
using namespace std;
int main()
{
int t, x;
while(1)
{
cin >> t;
if(t... | 12.631579 | 76 | 0.547917 | SusmoySenGupta |
22e212002a88c7e751084384cc1acc28ec76208a | 315 | hpp | C++ | Main course/Homework3/Problem1/Header files/Counter.hpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Main course/Homework3/Problem1/Header files/Counter.hpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Main course/Homework3/Problem1/Header files/Counter.hpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | #pragma once
class Counter
{
public:
Counter();
Counter(int initial);
Counter(int initial, unsigned step);
virtual void increment();
virtual int getTotal() const;
virtual unsigned getStep() const;
protected:
const int DEFAULT_INITIAL_VALUE = 0;
const int DEFAULT_STEP = 1;
int value;
unsigned step;
}; | 15.75 | 37 | 0.733333 | nia-flo |
22e7f33c27d1943350d329689f94b85b9a189098 | 6,486 | hpp | C++ | src/core/lib/core_data_model/i_model_extension.hpp | wgsyd/wgtf | d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed | [
"BSD-3-Clause"
] | 28 | 2016-06-03T05:28:25.000Z | 2019-02-14T12:04:31.000Z | src/core/lib/core_data_model/i_model_extension.hpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | null | null | null | src/core/lib/core_data_model/i_model_extension.hpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | 14 | 2016-06-03T05:52:27.000Z | 2019-03-21T09:56:03.000Z | #ifndef I_MODEL_EXTENSION_HPP
#define I_MODEL_EXTENSION_HPP
#include "core_variant/variant.hpp"
#include "core_data_model/i_item_role.hpp"
#include "core_data_model/abstract_item_model.hpp"
#include "core_common/signal.hpp"
#include <cassert>
#include <vector>
#include <string>
#include <functional>
namespace wgt
{
... | 31.182692 | 114 | 0.71292 | wgsyd |
22f11ea3e8f409014978db4f07563439b38c7790 | 418 | cpp | C++ | code/client/src/core/hooks/application.cpp | mufty/MafiaMP | 2dc0e3362c505079e26e598bd4a7f4b5de7400bc | [
"OpenSSL"
] | 16 | 2021-10-08T17:47:04.000Z | 2022-03-28T13:26:37.000Z | code/client/src/core/hooks/application.cpp | mufty/MafiaMP | 2dc0e3362c505079e26e598bd4a7f4b5de7400bc | [
"OpenSSL"
] | 4 | 2022-01-19T08:11:57.000Z | 2022-01-29T19:02:24.000Z | code/client/src/core/hooks/application.cpp | mufty/MafiaMP | 2dc0e3362c505079e26e598bd4a7f4b5de7400bc | [
"OpenSSL"
] | 4 | 2021-10-09T11:15:08.000Z | 2022-01-27T22:42:26.000Z | #include <MinHook.h>
#include <utils/hooking/hook_function.h>
#include <utils/hooking/hooking.h>
#include "../../sdk/patterns.h"
bool __fastcall C_GameFramework__IsSuspended(void *_this) {
return false;
}
static InitFunction init([]() {
// Don't pause the game when out of window
MH_CreateHook((LPVOID)SDK... | 27.866667 | 122 | 0.746411 | mufty |
22fb5c516feb119498f1af063d0adf8783349e05 | 1,542 | cpp | C++ | src/problem_14.cpp | MihailsKuzmins/daily-coding-problem | ca8b7589b6ce2eb6dec846829c82a12c1272a5ec | [
"Apache-2.0"
] | null | null | null | src/problem_14.cpp | MihailsKuzmins/daily-coding-problem | ca8b7589b6ce2eb6dec846829c82a12c1272a5ec | [
"Apache-2.0"
] | null | null | null | src/problem_14.cpp | MihailsKuzmins/daily-coding-problem | ca8b7589b6ce2eb6dec846829c82a12c1272a5ec | [
"Apache-2.0"
] | null | null | null | // The area of a circle is defined as πr^2. Estimate π to 3 decimal places using a Monte Carlo method.
// Hint: The basic equation of a circle is x^2 + y^2 = r^2.
// Example:
// auto result = problem_fourteen(1'000'000);
#include <random>
#include <math.h>
using namespace std;
double problem_fourteen(const unsigned ... | 32.808511 | 102 | 0.667315 | MihailsKuzmins |
22fbc3f626eadc7344182e303f29a4c011894e5e | 74,086 | cpp | C++ | waspmoteapi-master/waspmote-api/WaspSD.cpp | MahendraSondagar/Libelium-Waspmote | ba14e04ca10e6d147d73da447a5aa9c5f5325a99 | [
"MIT"
] | null | null | null | waspmoteapi-master/waspmote-api/WaspSD.cpp | MahendraSondagar/Libelium-Waspmote | ba14e04ca10e6d147d73da447a5aa9c5f5325a99 | [
"MIT"
] | null | null | null | waspmoteapi-master/waspmote-api/WaspSD.cpp | MahendraSondagar/Libelium-Waspmote | ba14e04ca10e6d147d73da447a5aa9c5f5325a99 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018 Libelium Comunicaciones Distribuidas S.L.
* http://www.libelium.com
*
* This program 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 2.1 of the License,... | 23.867912 | 127 | 0.650177 | MahendraSondagar |
22fc45d7d1beb4bb0cad838f729daa87e94c159e | 7,108 | cpp | C++ | Samples/Client/DirectxUWP/DirectxClientComponent/Common/DeviceResources.cpp | rozele/3dtoolkit | a15fca73be15f96a165dd18e62180de693a5ab86 | [
"MIT"
] | null | null | null | Samples/Client/DirectxUWP/DirectxClientComponent/Common/DeviceResources.cpp | rozele/3dtoolkit | a15fca73be15f96a165dd18e62180de693a5ab86 | [
"MIT"
] | null | null | null | Samples/Client/DirectxUWP/DirectxClientComponent/Common/DeviceResources.cpp | rozele/3dtoolkit | a15fca73be15f96a165dd18e62180de693a5ab86 | [
"MIT"
] | null | null | null | #include "pch.h"
#include <Collection.h>
#include <windows.graphics.directx.direct3d11.interop.h>
#include "DeviceResources.h"
#include "DirectXHelper.h"
using namespace D2D1;
using namespace Microsoft::WRL;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Graphics::DirectX::Di... | 29.131148 | 148 | 0.770962 | rozele |
fe033aa598dc17ae2171f63cc50814b2ca3d56c1 | 1,394 | cpp | C++ | soj/4315.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/4315.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/4315.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <climits>
#include <cmath>
#include <cassert>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <deque>
#include <algorithm>
using namespace st... | 23.233333 | 74 | 0.484218 | huangshenno1 |
fe03caba543e551b40eb40cb515eb6588cde5c41 | 1,603 | cpp | C++ | src/HighQueue/Message.cpp | dale-wilson/HSQueue | 04d01ed42707069d28e81b5494aba61904e6e591 | [
"BSD-3-Clause"
] | 2 | 2015-12-29T17:33:25.000Z | 2021-12-20T02:30:44.000Z | src/HighQueue/Message.cpp | dale-wilson/HighQueue | 04d01ed42707069d28e81b5494aba61904e6e591 | [
"BSD-3-Clause"
] | null | null | null | src/HighQueue/Message.cpp | dale-wilson/HighQueue | 04d01ed42707069d28e81b5494aba61904e6e591 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2014 Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#include <Common/HighQueuePch.hpp>
#include "Message.hpp"
#include <HighQueue/details/HQMemoryBlockPool.hpp>
using namespace HighQueue;
Message::~Message()
{
try{
release();
}
... | 19.54878 | 93 | 0.622583 | dale-wilson |
fe094de6b61b8f744ba80583d38cb3c435fd166f | 103 | hpp | C++ | libng/core/src/libng_core/net/packet.hpp | gapry/libng | 8fbf927e5bb73f105bddbb618430d3e1bf2cf877 | [
"MIT"
] | null | null | null | libng/core/src/libng_core/net/packet.hpp | gapry/libng | 8fbf927e5bb73f105bddbb618430d3e1bf2cf877 | [
"MIT"
] | null | null | null | libng/core/src/libng_core/net/packet.hpp | gapry/libng | 8fbf927e5bb73f105bddbb618430d3e1bf2cf877 | [
"MIT"
] | null | null | null | #pragma once
namespace libng {
class packet_header;
class packet {
public:
};
} // namespace libng
| 8.583333 | 20 | 0.708738 | gapry |
fe0e474b85c6744928713cb3c16d8dfb8b3b8a58 | 609 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise7.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise7.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter25Exercise7.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Hex values in a range Chapter25Exercise7.cpp
COMMENT
Objective: Write out the hexadecimal values from 0 to 400;
and from -200 to 200.
Input: -
Output: -
Author: Chris B. Kirov
Date: 13.05.2017
*/
#include <iostream>
void print_hex(int from, int to)
{
for (int i = from;... | 14.853659 | 61 | 0.53202 | Ziezi |
fe0fd0786ef956959d2a7cbcf871208a3d1e55f6 | 1,158 | cpp | C++ | src/systems/EventLogger.cpp | pladams9/thirteenth-floor | d5a3c2733b1a6d767dd7d6b2fe8cf468f0f1f5ec | [
"MIT"
] | null | null | null | src/systems/EventLogger.cpp | pladams9/thirteenth-floor | d5a3c2733b1a6d767dd7d6b2fe8cf468f0f1f5ec | [
"MIT"
] | null | null | null | src/systems/EventLogger.cpp | pladams9/thirteenth-floor | d5a3c2733b1a6d767dd7d6b2fe8cf468f0f1f5ec | [
"MIT"
] | null | null | null | /*
* EventLogger.h
*
* Created on: Sep 24, 2019
* Author: pladams9
*/
#include <engine/Events.h>
#include <systems/EventLogger.h>
/* INCLUDES */
#include <sstream>
#include "Logger.h"
namespace TF
{
namespace Sys
{
/* METHOD DEFINITIONS */
EventLogger::EventLogger(Engine* eng) : System(eng)
{
this->_e... | 21.849057 | 127 | 0.642487 | pladams9 |
fe11fc1ec25703833a65d495c42cf0f0f78363e1 | 4,291 | hpp | C++ | examples/smith_waterman/smith_waterman.hpp | drichmond/HOPS | 9684c0c9ebe5511fe0c202219a0bcd51fbf61079 | [
"BSD-3-Clause"
] | 10 | 2018-10-03T09:19:48.000Z | 2021-09-15T14:46:32.000Z | examples/smith_waterman/smith_waterman.hpp | drichmond/HOPS | 9684c0c9ebe5511fe0c202219a0bcd51fbf61079 | [
"BSD-3-Clause"
] | 1 | 2019-09-24T17:38:25.000Z | 2019-09-24T17:38:25.000Z | examples/smith_waterman/smith_waterman.hpp | drichmond/HOPS | 9684c0c9ebe5511fe0c202219a0bcd51fbf61079 | [
"BSD-3-Clause"
] | null | null | null | // ----------------------------------------------------------------------
// Copyright (c) 2018, The Regents of the University of California All
// rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
... | 24.380682 | 105 | 0.656024 | drichmond |
fe27f1eff0b3f4ba7dfe9da78c7ef5a79cc161b1 | 1,038 | cpp | C++ | command/remote/lib/light.cpp | Jeonghum/hfdpcpp11 | 5864973163991b58b89efa50ddfd75b201af2bed | [
"AFL-3.0"
] | 3 | 2018-12-18T03:44:23.000Z | 2019-11-20T20:45:43.000Z | command/remote/lib/light.cpp | Jeonghum/hfdpcpp11 | 5864973163991b58b89efa50ddfd75b201af2bed | [
"AFL-3.0"
] | 2 | 2018-04-07T06:36:23.000Z | 2018-04-08T13:35:38.000Z | command/remote/lib/light.cpp | Jeonghum/hfdpcpp11 | 5864973163991b58b89efa50ddfd75b201af2bed | [
"AFL-3.0"
] | 2 | 2018-05-30T11:14:14.000Z | 2021-04-18T22:38:48.000Z | //===--- light.cpp - --------------------------------------------*- C++ -*-===//
//
// Head First Design Patterns
//
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief
///
//===-----------------------------------------------------------------... | 24.139535 | 80 | 0.460501 | Jeonghum |
fe2a6ca2df3e22095a79de8b89077db32c9681c3 | 2,004 | cpp | C++ | test/IteratorMapTerminalOperationTest.cpp | cyr62110/fmpcxx | 6ff9433ffc7677cad59eb5601ab656f33c914199 | [
"Apache-2.0"
] | 1 | 2016-09-17T20:35:20.000Z | 2016-09-17T20:35:20.000Z | test/IteratorMapTerminalOperationTest.cpp | cyr62110/fmpcxx | 6ff9433ffc7677cad59eb5601ab656f33c914199 | [
"Apache-2.0"
] | 4 | 2016-10-05T10:33:14.000Z | 2016-10-06T18:31:09.000Z | test/IteratorMapTerminalOperationTest.cpp | cyr62110/fmpcxx | 6ff9433ffc7677cad59eb5601ab656f33c914199 | [
"Apache-2.0"
] | null | null | null | #include "catch.hpp"
#include "util/LightTestObject.h"
#include <fmrcxx/fmrcxx.h>
using namespace fmrcxx;
TEST_CASE( "check toMap with std::map", "[IteratorMapTerminalOperation]" ) {
LightTestObject::resetCounters();
std::map<std::string, int> map;
map["hello"] = 1;
map["world"] = 2;
std::map<std::string, Li... | 30.363636 | 103 | 0.676148 | cyr62110 |
fe32c4992d606789e6375a257615f9a50ab47a28 | 5,627 | cpp | C++ | c/meterpreter/source/extensions/mimikatz/modules/mod_hash.cpp | vaginessa/metasploit-payloads | 863414b652a98ab12ae15d90e6deed568d1b4030 | [
"PSF-2.0"
] | 264 | 2015-01-02T10:15:42.000Z | 2022-03-31T06:59:13.000Z | c/meterpreter/source/extensions/mimikatz/modules/mod_hash.cpp | vaginessa/metasploit-payloads | 863414b652a98ab12ae15d90e6deed568d1b4030 | [
"PSF-2.0"
] | 112 | 2015-01-02T01:26:38.000Z | 2021-11-21T02:07:21.000Z | c/meterpreter/source/extensions/mimikatz/modules/mod_hash.cpp | vaginessa/metasploit-payloads | 863414b652a98ab12ae15d90e6deed568d1b4030 | [
"PSF-2.0"
] | 130 | 2015-01-02T05:29:46.000Z | 2022-03-18T19:50:39.000Z | /* Benjamin DELPY `gentilkiwi`
http://blog.gentilkiwi.com
benjamin@gentilkiwi.com
Licence : http://creativecommons.org/licenses/by/3.0/fr/
*/
#include "mod_hash.h"
PSYSTEM_FUNCTION_006 mod_hash::SystemFunction006 = reinterpret_cast<PSYSTEM_FUNCTION_006>(GetProcAddress(GetModuleHandle(L"advapi32"), "SystemFunction00... | 37.264901 | 226 | 0.699662 | vaginessa |
fe36edc8d951d0a12f1b404f7c462eda01361e43 | 2,506 | cc | C++ | media/base/unaligned_shared_memory_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | media/base/unaligned_shared_memory_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | media/base/unaligned_shared_memory_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/unaligned_shared_memory.h"
#include <stdint.h>
#include <string.h>
#include <limits>
#include "base/logging.h"
#include "base/macr... | 28.804598 | 73 | 0.765363 | zipated |
fe397a962c6043d59cfceca626689e137d9d311d | 194 | cxx | C++ | Applications/ParaView/Documentation/ParaViewDocumentationInitializer.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | 2 | 2019-09-27T08:04:34.000Z | 2019-10-16T22:30:54.000Z | Applications/ParaView/Documentation/ParaViewDocumentationInitializer.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | null | null | null | Applications/ParaView/Documentation/ParaViewDocumentationInitializer.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | 5 | 2016-04-14T13:42:37.000Z | 2021-05-22T04:59:42.000Z | #include "ParaViewDocumentationInitializer.h"
#include "vtkPVConfig.h"
#include <QObject>
#include <QtPlugin>
void PARAVIEW_DOCUMENTATION_INIT()
{
Q_INIT_RESOURCE(paraview_documentation);
}
| 17.636364 | 45 | 0.804124 | mathstuf |
fe3a669389e59c38d2010261d65786853a9c3950 | 33 | hpp | C++ | include/BESSCore/src/Renderer/Renderer.hpp | shivang51/BESS | 8c53c5cb13863fd05574ebf20bf57624d83b0d25 | [
"MIT"
] | null | null | null | include/BESSCore/src/Renderer/Renderer.hpp | shivang51/BESS | 8c53c5cb13863fd05574ebf20bf57624d83b0d25 | [
"MIT"
] | null | null | null | include/BESSCore/src/Renderer/Renderer.hpp | shivang51/BESS | 8c53c5cb13863fd05574ebf20bf57624d83b0d25 | [
"MIT"
] | null | null | null | #pragma once
#include "Quad.hpp" | 11 | 19 | 0.727273 | shivang51 |
fe3aa498e736eb6385f47787de0ffaada3844c92 | 29,671 | hpp | C++ | include/NP-Engine/Graphics/RHI/Vulkan/VulkanPipeline.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Graphics/RHI/Vulkan/VulkanPipeline.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Graphics/RHI/Vulkan/VulkanPipeline.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | //##===----------------------------------------------------------------------===##//
//
// Author: Nathan Phipps 12/8/21
//
//##===----------------------------------------------------------------------===##//
#ifndef NP_ENGINE_VULKAN_PIPELINE_HPP
#define NP_ENGINE_VULKAN_PIPELINE_HPP
#include "NP-Engine/Filesystem/F... | 33.64059 | 116 | 0.753497 | naphipps |
fe3d6f9a3c7e2fe50ec9304877198771bee83a2c | 2,026 | cpp | C++ | offline5/160101048_OA5_2.cpp | nitinkedia7/CS210-Data-Structures | 9e79d7f5fc7e11b02ca80ee8ab40f1343b428fe8 | [
"MIT"
] | null | null | null | offline5/160101048_OA5_2.cpp | nitinkedia7/CS210-Data-Structures | 9e79d7f5fc7e11b02ca80ee8ab40f1343b428fe8 | [
"MIT"
] | null | null | null | offline5/160101048_OA5_2.cpp | nitinkedia7/CS210-Data-Structures | 9e79d7f5fc7e11b02ca80ee8ab40f1343b428fe8 | [
"MIT"
] | 2 | 2020-08-31T14:25:42.000Z | 2020-08-31T19:06:43.000Z | // 160101048_OA5_2.cpp: Nitin Kedia
// Description: Calculation of number of inversions in array S using mergeSort
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
// Utility function for copying part to source array to dest array;
int *copyArray(int *src, int i, int j, int *dest) {
dest = new int[... | 33.766667 | 134 | 0.652024 | nitinkedia7 |
fe3d9919a750669b1b6838020b96b55eed484d4c | 4,650 | cpp | C++ | la-test.cpp | busysteve/la | bcd53b1676ef91d93ba6a1e606b5098a5712a293 | [
"MIT"
] | 1 | 2020-05-25T05:28:10.000Z | 2020-05-25T05:28:10.000Z | la-test.cpp | busysteve/dsp | 1a80f719c7af38beafdf7656f19690783ae5b00e | [
"Apache-2.0"
] | null | null | null | la-test.cpp | busysteve/dsp | 1a80f719c7af38beafdf7656f19690783ae5b00e | [
"Apache-2.0"
] | null | null | null |
#include <iostream>
#include <fstream>
#include <vector>
#include <complex>
#include <string>
#include <cstring>
#include <cmath>
#include <float.h>
#include "tnt/tnt.h"
#include <initializer_list>
#include "Signal.h"
#include "la.h"
template <typename T> int VectorTest()
{
const double PI = 3.1415926535897932384... | 21.933962 | 68 | 0.389032 | busysteve |
fe3fa1da32bf3d13e13d1cabf783ce4bb74c1cc5 | 805 | cc | C++ | content/browser/child_process_launcher_browsertest.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | content/browser/child_process_launcher_browsertest.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/child_process_launcher_browsertest.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/content_browser_test.h"
#include "content... | 30.961538 | 73 | 0.797516 | kjthegod |
fe4335c2f43990f89ab3b3b4137f1d35ca8cae3f | 5,472 | cpp | C++ | examples/livelocation.cpp | Sil3ntStorm/libtelegram | a0c52ba4aac5519a3031dba506ad4a64cd8fca83 | [
"MIT"
] | 118 | 2016-10-02T10:49:02.000Z | 2022-03-23T14:32:05.000Z | examples/livelocation.cpp | Sil3ntStorm/libtelegram | a0c52ba4aac5519a3031dba506ad4a64cd8fca83 | [
"MIT"
] | 21 | 2017-04-21T13:34:36.000Z | 2021-12-08T17:00:40.000Z | examples/livelocation.cpp | Sil3ntStorm/libtelegram | a0c52ba4aac5519a3031dba506ad4a64cd8fca83 | [
"MIT"
] | 35 | 2016-06-08T15:31:03.000Z | 2022-03-23T16:43:28.000Z | /// This example demonstrates a bot that accepts two locations, and then sends
/// a live location interpolating smoothly between the two.
/// As this is a very simple example, it does not keep track of multiple users,
/// so should only be used by one user at a time.
/// It could be extended to support multiple users ... | 64.376471 | 212 | 0.572917 | Sil3ntStorm |
1cfb6e5ac6be776790882c66d9bfdc5e29489ab2 | 21,294 | cpp | C++ | src/mplfe/bc_input/src/bc_class.cpp | MapleSystem/OpenArkCompiler | fc250857642ca38ac8b83ae7486513fadf3ab742 | [
"MulanPSL-1.0"
] | 5 | 2019-09-02T04:44:52.000Z | 2021-11-08T12:23:51.000Z | src/mplfe/bc_input/src/bc_class.cpp | MapleSystem/OpenArkCompiler | fc250857642ca38ac8b83ae7486513fadf3ab742 | [
"MulanPSL-1.0"
] | 2 | 2020-07-21T01:22:01.000Z | 2021-12-06T08:07:16.000Z | src/mplfe/bc_input/src/bc_class.cpp | MapleSystem/OpenArkCompiler | fc250857642ca38ac8b83ae7486513fadf3ab742 | [
"MulanPSL-1.0"
] | 4 | 2019-09-02T04:46:52.000Z | 2020-09-10T11:30:03.000Z | /*
* Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
... | 35.372093 | 117 | 0.676435 | MapleSystem |
1cfee9f4d7acfd474e6662a128ee9c82f29fd60c | 7,667 | cpp | C++ | GlowWormEngine/src/gwBoxMesh.cpp | Flugschildkrote/GEII-Robot-Simulation | 2756e693fbc5ccba431b21224f9361705207b438 | [
"MIT"
] | null | null | null | GlowWormEngine/src/gwBoxMesh.cpp | Flugschildkrote/GEII-Robot-Simulation | 2756e693fbc5ccba431b21224f9361705207b438 | [
"MIT"
] | null | null | null | GlowWormEngine/src/gwBoxMesh.cpp | Flugschildkrote/GEII-Robot-Simulation | 2756e693fbc5ccba431b21224f9361705207b438 | [
"MIT"
] | null | null | null | #include "gwBoxMesh.h"
using namespace gwe;
gwe::gwBoxMesh::gwBoxMesh(const std::string &name, float width, float height, float depth) : gwPrimitiveShape(name), mWidth(width), mHeight(height), mDepth(depth)
{
}
gwe::gwBoxMesh::~gwBoxMesh()
{
}
float gwe::gwBoxMesh::getWidth(void) const { return mWidth; }
float gw... | 48.525316 | 162 | 0.503456 | Flugschildkrote |
e801cf78ee5c87cd11cabbc31fbd35e9a65100e9 | 2,767 | hpp | C++ | src/concurrent/blocking_queue.hpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | 5 | 2019-04-24T13:37:05.000Z | 2021-01-29T16:37:55.000Z | src/concurrent/blocking_queue.hpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | null | null | null | src/concurrent/blocking_queue.hpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | 1 | 2021-02-03T03:11:03.000Z | 2021-02-03T03:11:03.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 29.126316 | 114 | 0.68811 | ifplusor |
e8054ed8bad581e4c6ee7f22377ba4aef07865b2 | 278 | cpp | C++ | 171-Excel_Sheet_Column_Number.cpp | elsdrium/LeetCode-practice | a3b1fa5dd200155a636d36cd570e2454f7194e10 | [
"MIT"
] | null | null | null | 171-Excel_Sheet_Column_Number.cpp | elsdrium/LeetCode-practice | a3b1fa5dd200155a636d36cd570e2454f7194e10 | [
"MIT"
] | null | null | null | 171-Excel_Sheet_Column_Number.cpp | elsdrium/LeetCode-practice | a3b1fa5dd200155a636d36cd570e2454f7194e10 | [
"MIT"
] | null | null | null | class Solution {
public:
int titleToNumber(string s) {
int result = 0, base = 1;
char c = char('A' - 1);
for ( int i=s.size()-1; i>=0; --i ) {
result += (s[i] - c) * base;
base *= 26;
}
return result;
}
};
| 21.384615 | 45 | 0.413669 | elsdrium |
e805a0b69441342f27e658a29c15531e039b4208 | 270 | cpp | C++ | esphome/components/light/light_output.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 249 | 2018-04-07T12:04:11.000Z | 2019-01-25T01:11:34.000Z | esphome/components/light/light_output.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 243 | 2018-04-11T16:37:11.000Z | 2019-01-25T16:50:37.000Z | esphome/components/light/light_output.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 40 | 2018-04-10T05:50:14.000Z | 2019-01-25T15:20:36.000Z | #include "light_output.h"
#include "transformers.h"
namespace esphome {
namespace light {
std::unique_ptr<LightTransformer> LightOutput::create_default_transition() {
return make_unique<LightTransitionTransformer>();
}
} // namespace light
} // namespace esphome
| 20.769231 | 76 | 0.77037 | OttoWinter |
e80a0766fae30180bbe8f8067cc989fcb0d7cd68 | 1,022 | cpp | C++ | leetcode/236.cpp | Moonshile/MyAlgorithmCandy | e1ab006a5abe7d2749ae564ad2bffc4a628ed31b | [
"Apache-2.0"
] | 2 | 2016-11-26T02:56:35.000Z | 2019-06-17T04:09:02.000Z | leetcode/236.cpp | Moonshile/MyAlgorithmCandy | e1ab006a5abe7d2749ae564ad2bffc4a628ed31b | [
"Apache-2.0"
] | null | null | null | leetcode/236.cpp | Moonshile/MyAlgorithmCandy | e1ab006a5abe7d2749ae564ad2bffc4a628ed31b | [
"Apache-2.0"
] | 3 | 2016-07-18T14:13:20.000Z | 2019-06-17T04:08:32.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
private:
bool findPath(TreeNode *root, TreeNode *node, vector<TreeNode*> &res) {
if (root) {
... | 28.388889 | 102 | 0.489237 | Moonshile |
e80aa5242d47f19ebea8dd15b83ecdb140dd48c4 | 14,146 | cpp | C++ | test/JSONSettingsRESTAPITest/Tests/SettingsSetValueEndpointTest.cpp | systelab/cpp-json-settings | d9283ea97ea31bd2730127f996b6d7b1f91cf8a2 | [
"MIT"
] | null | null | null | test/JSONSettingsRESTAPITest/Tests/SettingsSetValueEndpointTest.cpp | systelab/cpp-json-settings | d9283ea97ea31bd2730127f996b6d7b1f91cf8a2 | [
"MIT"
] | 2 | 2020-06-11T12:58:00.000Z | 2020-06-11T18:15:55.000Z | test/JSONSettingsRESTAPITest/Tests/SettingsSetValueEndpointTest.cpp | systelab/cpp-json-settings | d9283ea97ea31bd2730127f996b6d7b1f91cf8a2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "SettingsEndpointBaseTest.h"
#include "JSONSettingsRESTAPI/Endpoints/SettingsSetValueEndpoint.h"
#include "RESTAPICore/Endpoint/EndpointRequestData.h"
#include "WebServerAdapterInterface/Model/Reply.h"
#include "JSONAdapterTestUtilities/JSONAdapterUtilities.h"
using namespace testing;
... | 45.194888 | 163 | 0.765517 | systelab |
e80acbdb590acad486f57b22858631f77fa9b758 | 1,410 | cc | C++ | resonance_audio/utils/sum_and_difference_processor_test.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 396 | 2018-03-14T09:55:52.000Z | 2022-03-27T14:58:38.000Z | resonance_audio/utils/sum_and_difference_processor_test.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 46 | 2018-04-18T17:14:29.000Z | 2022-02-19T21:35:57.000Z | resonance_audio/utils/sum_and_difference_processor_test.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 96 | 2018-03-14T17:20:50.000Z | 2022-03-03T01:12:37.000Z | /*
Copyright 2018 Google Inc. 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
Unless required by applicable law or agreed to in ... | 32.790698 | 72 | 0.734043 | seba10000 |
e813de0a7669a25f03aaac77f5df1c74f9434dce | 6,033 | cpp | C++ | Data/Juliet-C/Juliet-C-v102/testcases/CWE620_Unverified_Password_Change/main.cpp | b19e93n/PLC-Pyramid | 6d5b57be6995a94ef7402144cee965862713b031 | [
"MIT"
] | null | null | null | Data/Juliet-C/Juliet-C-v102/testcases/CWE620_Unverified_Password_Change/main.cpp | b19e93n/PLC-Pyramid | 6d5b57be6995a94ef7402144cee965862713b031 | [
"MIT"
] | null | null | null | Data/Juliet-C/Juliet-C-v102/testcases/CWE620_Unverified_Password_Change/main.cpp | b19e93n/PLC-Pyramid | 6d5b57be6995a94ef7402144cee965862713b031 | [
"MIT"
] | null | null | null | /* NOTE - eventually this file will be automatically updated using a Perl script that understand
* the naming of test case files, functions, and namespaces.
*/
#include <time.h> /* for time() */
#include <stdlib.h> /* for srand() */
#include "std_testcase.h"
#include "testcases.h"
int main(int argc, ch... | 34.084746 | 97 | 0.802917 | b19e93n |
e819cde9d0c5b65887b08a125a144e40513fe00f | 430 | cpp | C++ | Simple_Problem/BOJ(9095).cpp | kkkHoon/algorithm_study | b16ab6118511059d28e77c1807f3e8fabb13e5f0 | [
"MIT"
] | null | null | null | Simple_Problem/BOJ(9095).cpp | kkkHoon/algorithm_study | b16ab6118511059d28e77c1807f3e8fabb13e5f0 | [
"MIT"
] | null | null | null | Simple_Problem/BOJ(9095).cpp | kkkHoon/algorithm_study | b16ab6118511059d28e77c1807f3e8fabb13e5f0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <queue>
#include <functional>
using namespace std;
int n, num, cnt;
void calculate(int num);
int main()
{
cin >> n;
for (int i = 0; i < n; i++) {
cin >> num;
cnt = 0;
calculate(num);
cout << cnt << endl;
}
return 0;
}
void calculate(int num)
{
if (num <=... | 13.030303 | 30 | 0.574419 | kkkHoon |
e81ad576080bb897a8df9fc83debde671fd663ed | 845 | cpp | C++ | TPP/TBB/material/actividad2.cpp | zhonskate/MCPD | 14e8f41c5b9317dc5c4ccbddba95e6db69087d29 | [
"MIT"
] | null | null | null | TPP/TBB/material/actividad2.cpp | zhonskate/MCPD | 14e8f41c5b9317dc5c4ccbddba95e6db69087d29 | [
"MIT"
] | null | null | null | TPP/TBB/material/actividad2.cpp | zhonskate/MCPD | 14e8f41c5b9317dc5c4ccbddba95e6db69087d29 | [
"MIT"
] | null | null | null |
/* El código desarrollado en la Actividad 2 debe funcionar con el siguiente programa principal */
/* donde getN es el método que permite obtener la dimensión de la Tabla */
/* Si el código está correcto mostrará lo siguiente */
/* Tabla 1: [ 83 86 77 15 93 35 86 92 49 21 ] */
/* Tabla 2: ... | 26.40625 | 97 | 0.47574 | zhonskate |
e81aebed47e6eb18ed58f218cee4be929d85bbbe | 6,460 | hpp | C++ | models/epidemic/epidemic.hpp | pvelesko/warped2-models | e0afe5119374c9e2191c946f70510bb6d7558f44 | [
"MIT"
] | 4 | 2015-04-13T17:22:51.000Z | 2018-01-16T14:54:33.000Z | models/epidemic/epidemic.hpp | pvelesko/warped2-models | e0afe5119374c9e2191c946f70510bb6d7558f44 | [
"MIT"
] | 3 | 2017-08-14T21:41:32.000Z | 2020-08-21T08:21:14.000Z | models/epidemic/epidemic.hpp | pvelesko/warped2-models | e0afe5119374c9e2191c946f70510bb6d7558f44 | [
"MIT"
] | 8 | 2015-09-28T08:25:34.000Z | 2020-04-01T12:25:15.000Z | #ifndef EPIDEMIC_HPP
#define EPIDEMIC_HPP
#include <string>
#include <vector>
#include <map>
#include <random>
#include "memory.hpp"
#include "warped.hpp"
#include "Person.hpp"
#include "DiseaseModel.hpp"
#include "DiffusionNetwork.hpp"
WARPED_DEFINE_LP_STATE_STRUCT(LocationState) {
LocationState() {
cu... | 38.224852 | 106 | 0.644582 | pvelesko |
e81c23115fc18d2098aad9d464d36b3d17d027d9 | 352 | hpp | C++ | include/LevelSettings.hpp | vyorkin/asteroids | 870256e338eefb07466af27735d5b8df0c5c7d42 | [
"MIT"
] | 1 | 2015-03-13T10:09:54.000Z | 2015-03-13T10:09:54.000Z | include/LevelSettings.hpp | vyorkin-personal/asteroids | 870256e338eefb07466af27735d5b8df0c5c7d42 | [
"MIT"
] | null | null | null | include/LevelSettings.hpp | vyorkin-personal/asteroids | 870256e338eefb07466af27735d5b8df0c5c7d42 | [
"MIT"
] | null | null | null | #pragma once
#include "Base.hpp"
enum LevelDifficulty { Easy, Normal, Hard };
struct LevelSettings {
LevelSettings();
LevelSettings(const LevelSettings&) = default;
LevelSettings(const LevelDifficulty difficulty, const int numAsteroids);
LevelDifficulty difficulty;
int numAsteroids;
static ... | 20.705882 | 76 | 0.741477 | vyorkin |
e8267e60757fdd2e5eda623f9d6321b427be89c7 | 4,428 | cpp | C++ | ros/src/sensing/fusion/packages/calibration_camera_lidar/nodes/calibration_test/scan_window.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 4 | 2019-04-22T10:18:26.000Z | 2019-05-20T05:16:03.000Z | ros/src/sensing/fusion/packages/calibration_camera_lidar/nodes/calibration_test/scan_window.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 1 | 2019-03-05T05:52:41.000Z | 2019-03-05T05:52:41.000Z | ros/src/sensing/fusion/packages/calibration_camera_lidar/nodes/calibration_test/scan_window.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 2 | 2019-06-23T18:08:04.000Z | 2019-07-04T14:14:59.000Z | /*
* Copyright 2015-2019 Autoware Foundation. 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
*
* Unless requi... | 36.9 | 149 | 0.651536 | filiperinaldi |
e826be4a7e76bd740d4f56a76693422e6828e30d | 4,274 | hpp | C++ | test/verify_r1cs_scheme.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | 6 | 2021-05-27T04:52:42.000Z | 2022-01-23T23:33:40.000Z | test/verify_r1cs_scheme.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | 12 | 2020-12-08T15:17:00.000Z | 2022-03-17T22:19:43.000Z | test/verify_r1cs_scheme.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | 5 | 2021-05-20T20:02:17.000Z | 2022-01-14T12:26:24.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... | 46.967033 | 146 | 0.710108 | skywinder |
e829eb40a826947ae467322d8d56f897a0e6b444 | 541 | cpp | C++ | 2579/2579.cpp14.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 14 | 2017-05-02T02:00:42.000Z | 2021-11-16T07:25:29.000Z | 2579/2579.cpp14.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 1 | 2017-12-25T14:18:14.000Z | 2018-02-07T06:49:44.000Z | 2579/2579.cpp14.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 9 | 2016-03-03T22:06:52.000Z | 2020-04-30T22:06:24.000Z | #include <cstdio>
#include <algorithm>
using namespace std;
int v[301] = {0};
int dp[301][2] = {0};
int solve(int n, bool is_prev_stepped) {
int &p = dp[n][is_prev_stepped];
if (p != -1) return p;
int a = is_prev_stepped ? 0 : solve(n - 1, true);
int b = solve(n - 2, false);
return p = max(a, b) + v[n];
}... | 16.393939 | 50 | 0.502773 | isac322 |
e82aaa5af5b4eaaca57de857ffb8e12bfb29f08d | 10,138 | cpp | C++ | Viewer/ecflowUI/src/LimitEditor.cpp | ecmwf/ecflow | 2498d0401d3d1133613d600d5c0e0a8a30b7b8eb | [
"Apache-2.0"
] | 11 | 2020-08-07T14:42:45.000Z | 2021-10-21T01:59:59.000Z | Viewer/ecflowUI/src/LimitEditor.cpp | CoollRock/ecflow | db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d | [
"Apache-2.0"
] | 10 | 2020-08-07T14:36:27.000Z | 2022-02-22T06:51:24.000Z | Viewer/ecflowUI/src/LimitEditor.cpp | CoollRock/ecflow | db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d | [
"Apache-2.0"
] | 6 | 2020-08-07T14:34:38.000Z | 2022-01-10T12:06:27.000Z | //============================================================================
// Copyright 2009-2020 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
// In applying this licence, ECMWF does not waive the privil... | 25.665823 | 105 | 0.633951 | ecmwf |
e82b49954587ce2af6d6688c086789f562529784 | 812 | cpp | C++ | coj.uci.cu/FirstvsSecond.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 6 | 2016-09-10T03:16:34.000Z | 2020-04-07T14:45:32.000Z | coj.uci.cu/FirstvsSecond.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | null | null | null | coj.uci.cu/FirstvsSecond.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 2 | 2018-08-11T20:55:35.000Z | 2020-01-15T23:23:11.000Z | /*
By: facug91
From: http://coj.uci.cu/24h/problem.xhtml?pid=2691
Name: First vs Second
Date: 05/04/2015
*/
#include <bits/stdc++.h>
#define EPS 1e-9
#define DEBUG(x) cerr << "#" << (#x) << ": " << (x) << endl
const double PI = 2.0*acos(0.0);
#define INF 1000000000
//#define MOD 100000... | 21.368421 | 59 | 0.565271 | facug91 |
e82d2cb5dcf66a271197b6dc5b78044987cfe354 | 599 | cpp | C++ | avs/vis_avs/g_unkn.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 18 | 2020-07-30T11:55:23.000Z | 2022-02-25T02:39:15.000Z | avs/vis_avs/g_unkn.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 34 | 2021-01-13T02:02:12.000Z | 2022-03-23T12:09:55.000Z | avs/vis_avs/g_unkn.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 3 | 2021-03-18T12:53:58.000Z | 2021-10-02T20:24:41.000Z | #include "g__lib.h"
#include "g__defs.h"
#include "c_unkn.h"
#include "resource.h"
#include <windows.h>
int win32_dlgproc_unknown(HWND hwndDlg, UINT uMsg, WPARAM, LPARAM)
{
C_UnknClass* g_this = (C_UnknClass*)g_current_render;
switch (uMsg)
{
case WM_INITDIALOG:
{
char s[512]="";
if (g_thi... | 23.038462 | 76 | 0.63606 | semiessessi |
e82d366ad09f8a438f44b4123bdd65819ad0d51f | 5,774 | cpp | C++ | src/renderer/surface_smoothing_pass.cpp | gustavo4passos/opengl-fluidrendering | 572a84760b4338559e16dbca4865931e5062d34a | [
"MIT"
] | 2 | 2019-10-23T09:54:18.000Z | 2020-02-05T23:05:33.000Z | src/renderer/surface_smoothing_pass.cpp | gustavo4passos/opengl-fluidrendering | 572a84760b4338559e16dbca4865931e5062d34a | [
"MIT"
] | null | null | null | src/renderer/surface_smoothing_pass.cpp | gustavo4passos/opengl-fluidrendering | 572a84760b4338559e16dbca4865931e5062d34a | [
"MIT"
] | null | null | null | #include "surface_smoothing_pass.h"
#include "../utils/logger.h"
#include "../utils/glcall.h"
#include <assert.h>
namespace fluidity
{
SurfaceSmoothingPass::SurfaceSmoothingPass(
const unsigned bufferWidth,
const unsigned bufferHeight,
const unsigned kernelRadius,
const unsigned nIt... | 31.380435 | 93 | 0.579841 | gustavo4passos |
e82f09d5ce4b9de3e9f6c2bb9579fd7ffdbab01f | 4,686 | cpp | C++ | tests/DocTest_Tests/CombinationTests.cpp | ExternalRepositories/ApprovalTests.cpp | 04fcc5b7345288d043d88ed6ffc08e2f69123284 | [
"Apache-2.0"
] | 259 | 2017-12-19T08:18:13.000Z | 2022-03-22T08:05:30.000Z | tests/DocTest_Tests/CombinationTests.cpp | ExternalRepositories/ApprovalTests.cpp | 04fcc5b7345288d043d88ed6ffc08e2f69123284 | [
"Apache-2.0"
] | 179 | 2018-02-01T11:20:38.000Z | 2022-02-28T09:40:21.000Z | tests/DocTest_Tests/CombinationTests.cpp | ExternalRepositories/ApprovalTests.cpp | 04fcc5b7345288d043d88ed6ffc08e2f69123284 | [
"Apache-2.0"
] | 55 | 2017-11-27T18:56:47.000Z | 2022-03-17T09:06:24.000Z | #include "doctest/doctest.h"
#include <vector>
#include <string>
#include "ApprovalTests/core/ApprovalException.h"
#include "ApprovalTests/reporters/BlockingReporter.h"
#include "ApprovalTests/CombinationApprovals.h"
#include "reporters/FakeReporter.h"
using namespace ApprovalTests;
TEST_CASE("YouCanVerifyCombination... | 29.658228 | 90 | 0.573197 | ExternalRepositories |
e830a64d4feda6e6919727636b138853ffdfe68b | 3,268 | cpp | C++ | src/Cylinder.cpp | Dav-v/Rha | 77fa838ea0830bd1f335349dd88d0a7005b4a921 | [
"Apache-2.0"
] | null | null | null | src/Cylinder.cpp | Dav-v/Rha | 77fa838ea0830bd1f335349dd88d0a7005b4a921 | [
"Apache-2.0"
] | null | null | null | src/Cylinder.cpp | Dav-v/Rha | 77fa838ea0830bd1f335349dd88d0a7005b4a921 | [
"Apache-2.0"
] | null | null | null | /*
* Author: Davide Viero - dviero42@gmail.com
* Rha raytracer
* 2019
* License: see LICENSE file
*
*/
#define GLM_ENABLE_EXPERIMENTAL
#include "cylinder.h"
#include "gtx/transform.hpp"
#include <iostream>
using namespace glm;
Cylinder::Cylinder(std::string name,
vec3 pos,
vec3 scal... | 25.333333 | 77 | 0.596389 | Dav-v |
e83299e1f2750c578e2c66549ae886f37be633c1 | 903 | cpp | C++ | 500-600/587.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 500-600/587.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 500-600/587.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
typedef double flt;
const flt pi = acos(-1.0), eps = 1e-9;
flt k;
flt calc(flt x) {
flt y = 1 - sqrt(1 - (x - 1) * (x - 1));
return std::min(y, k * x);
}
flt simpson(flt a, flt b) {
flt c = (a + b) * 0.5;
return (calc(a) + 4 * calc(c) + calc(b)) * (b -a) / 6;
}
... | 21.5 | 68 | 0.419712 | Thomaw |
e8329c11566599a4077900a8f21b72554f741107 | 1,222 | cpp | C++ | 02.autocomplete-template/binary_search_deluxe.cpp | MrHakimov/CPP-COURSE | 7abd5251b153c7024a294bdcf92dd2671130748a | [
"MIT"
] | null | null | null | 02.autocomplete-template/binary_search_deluxe.cpp | MrHakimov/CPP-COURSE | 7abd5251b153c7024a294bdcf92dd2671130748a | [
"MIT"
] | null | null | null | 02.autocomplete-template/binary_search_deluxe.cpp | MrHakimov/CPP-COURSE | 7abd5251b153c7024a294bdcf92dd2671130748a | [
"MIT"
] | null | null | null | #include "binary_search_deluxe.hpp"
int binary_search_deluxe::first_index_of(const std::vector<term> &a, const term &key,
const std::function<bool(const term &left,
const term &right)> &comparator) {
int left... | 35.941176 | 100 | 0.501637 | MrHakimov |
e836c767dab22097db382c4364e130cb44e5b488 | 48 | cpp | C++ | chapter_2/ex_2.32.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | chapter_2/ex_2.32.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | chapter_2/ex_2.32.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | /**
* int null = 0, *p = null; it's legal
*/
| 9.6 | 38 | 0.4375 | YasserKa |
e8391600bbf2026275e2b2631d9938ab48d8308b | 1,495 | hpp | C++ | include/gl/primitives/plane.hpp | scholli/unvox | 879e06f45a40963527e0a895d742f7be6fb3d490 | [
"MIT"
] | null | null | null | include/gl/primitives/plane.hpp | scholli/unvox | 879e06f45a40963527e0a895d742f7be6fb3d490 | [
"MIT"
] | null | null | null | include/gl/primitives/plane.hpp | scholli/unvox | 879e06f45a40963527e0a895d742f7be6fb3d490 | [
"MIT"
] | 1 | 2019-10-30T09:35:35.000Z | 2019-10-30T09:35:35.000Z | //******************************************************************************
// Module: UnVox
// Author: Sebastian Thiele / Andre Schollmeyer
//
// Copyright 2019
// All rights reserved
//******************************************************************************
#ifndef UNVOX_GL_PLANE_HPP
#define UNVOX_GL_PLA... | 25.338983 | 111 | 0.506355 | scholli |
e83bc97b368b34510632f4702e0282cbd32d4cde | 1,206 | hpp | C++ | Hardware/Sensor/IMU/mpu9150.hpp | SaurusQ/FoamPilot | 562acfc50feb19d1216a0fabe6b85cf2f85057e4 | [
"MIT"
] | null | null | null | Hardware/Sensor/IMU/mpu9150.hpp | SaurusQ/FoamPilot | 562acfc50feb19d1216a0fabe6b85cf2f85057e4 | [
"MIT"
] | null | null | null | Hardware/Sensor/IMU/mpu9150.hpp | SaurusQ/FoamPilot | 562acfc50feb19d1216a0fabe6b85cf2f85057e4 | [
"MIT"
] | null | null | null |
#ifndef MPU9150_HPP
#define MPU9150_HPP
#include "hwSelect.hpp"
#ifdef SELECT_MPU9150
#include "imu.hpp"
#include "I2cBus.hpp"
#define MPU9150_I2C_ADDR 0x68
#define MPU9150_GYRO_CONFIG 0x27
#define MPU9150_ACCEL_CONFIG 0x28
#define MPU9150_ACCEL_XOUT_H 0x3B
#define MPU9150_PWR_MGMT_1 0x6B
// ... | 19.451613 | 51 | 0.635158 | SaurusQ |
e83c1f860b03d287c74fb377b04d55131ea06345 | 465 | cpp | C++ | UVa 11958 - Coming Home/sample/11958 - Coming Home.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 11958 - Coming Home/sample/11958 - Coming Home.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 11958 - Coming Home/sample/11958 - Coming Home.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
int main() {
int t, cases = 0;
scanf("%d", &t);
while(t--) {
int n, H, M;
scanf("%d %d:%d", &n, &H, &M);
int mn = 0xfffffff, h, m, c;
H = H*60+M;
while(n--) {
scanf("%d:%d %d", &h, &m, &c);
h = h*60+m;
if(h < H) ... | 21.136364 | 47 | 0.324731 | tadvi |
e83d9cfcb45faf934945b047f904ca93c2f1c934 | 470 | cxx | C++ | athena/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimEvent/src/TFCSEnergyParametrization.cxx | atif4461/FCS-GPU | 181865f55d299287873f99c777aad2ef9404e961 | [
"Apache-2.0"
] | 2 | 2022-01-25T20:32:53.000Z | 2022-02-16T01:15:47.000Z | athena/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimEvent/src/TFCSEnergyParametrization.cxx | atif4461/FCS-GPU | 181865f55d299287873f99c777aad2ef9404e961 | [
"Apache-2.0"
] | null | null | null | athena/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimEvent/src/TFCSEnergyParametrization.cxx | atif4461/FCS-GPU | 181865f55d299287873f99c777aad2ef9404e961 | [
"Apache-2.0"
] | 1 | 2022-02-11T15:54:10.000Z | 2022-02-11T15:54:10.000Z | /*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
#include "ISF_FastCaloSimEvent/TFCSEnergyParametrization.h"
#include "ISF_FastCaloSimEvent/FastCaloSim_CaloCell_ID.h"
//=============================================
//======= TFCSEnergyParametrization =========
//========================... | 29.375 | 121 | 0.621277 | atif4461 |
e83e7037bc2eca8708f055dd79642d02c5c6967a | 5,623 | cpp | C++ | indra/newview/fsfloaterprotectedfolders.cpp | SaladDais/LLUDP-Encryption | 8a426cd0dd154e1a10903e0e6383f4deb2a6098a | [
"ISC"
] | 1 | 2022-01-29T07:10:03.000Z | 2022-01-29T07:10:03.000Z | indra/newview/fsfloaterprotectedfolders.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | null | null | null | indra/newview/fsfloaterprotectedfolders.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | 1 | 2021-10-01T22:22:27.000Z | 2021-10-01T22:22:27.000Z | /**
* @file fsfloaterprotectedfolders.cpp
* @brief Class for the protected folders floater
*
* $LicenseInfo:firstyear=2020&license=viewerlgpl$
* Phoenix Firestorm Viewer Source Code
* Copyright (c) 2020 Ansariel Hiller @ Second Life
*
* This library is free software; you can redistribute it and/or
* modify it ... | 29.439791 | 195 | 0.764183 | SaladDais |
e84aad78cb7c40555ddc41b8a8e2a6a6d231abe4 | 13,788 | cpp | C++ | src/common/motion_model/test/test_differential_motion_model.cpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 19 | 2021-05-28T06:14:21.000Z | 2022-03-10T10:03:08.000Z | src/common/motion_model/test/test_differential_motion_model.cpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 222 | 2021-10-29T22:00:27.000Z | 2022-03-29T20:56:34.000Z | src/common/motion_model/test/test_differential_motion_model.cpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 14 | 2021-05-29T14:59:17.000Z | 2022-03-10T10:03:09.000Z | // Copyright 2021 Apex.AI, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 42.819876 | 96 | 0.715912 | ruvus |
e84bd307a0b127644bc42956a19244650e5e8920 | 3,065 | cpp | C++ | aws-cpp-sdk-cloudformation/source/model/StackDriftDetectionStatus.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-cloudformation/source/model/StackDriftDetectionStatus.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-cloudformation/source/model/StackDriftDetectionStatus.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 34.829545 | 104 | 0.679935 | curiousjgeorge |
e84f306d88c484e88a6b89bfcadf2b5bea567ef6 | 4,540 | hpp | C++ | inc/phi_BLR.hpp | rchan26/hierarchicalFusion | 20cb965526b47ae8f0373bdbdcbdb76d99ab8618 | [
"CC-BY-4.0"
] | 1 | 2021-09-27T15:32:50.000Z | 2021-09-27T15:32:50.000Z | inc/phi_BLR.hpp | rchan26/hierarchicalFusion | 20cb965526b47ae8f0373bdbdcbdb76d99ab8618 | [
"CC-BY-4.0"
] | null | null | null | inc/phi_BLR.hpp | rchan26/hierarchicalFusion | 20cb965526b47ae8f0373bdbdcbdb76d99ab8618 | [
"CC-BY-4.0"
] | 1 | 2021-12-09T03:22:51.000Z | 2021-12-09T03:22:51.000Z | #ifndef PHI_BLR
#define PHI_BLR
#include <RcppArmadillo.h>
arma::vec log_BLR_gradient(const arma::vec &beta,
const arma::vec &y_labels,
const arma::mat &X,
const arma::vec &X_beta,
const arma::vec &count,
... | 47.291667 | 79 | 0.396035 | rchan26 |
e850145eff970058bfbda746530cd3ee98a51fcd | 9,709 | cpp | C++ | OpenGL_GLFW_Project/GeometryShaderExplosion.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null | OpenGL_GLFW_Project/GeometryShaderExplosion.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null | OpenGL_GLFW_Project/GeometryShaderExplosion.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null | //See header file for details
//This file will most likely closely resemble the file "RenderProject1.cpp"
#include "GeometryShaderExplosion.h"
void GeometryShaderExplosion::initialize() {
error = false;
window = nullptr;
frameNumber = 0ull;
frameUnpaused = 0ull;
frameOfMostRecentColorRecording = 0ull;
counter ... | 29.782209 | 126 | 0.712947 | millerf1234 |
e854014f23a145200dc306d02dfdc052063084a5 | 591 | cpp | C++ | ace/examples/corba/client.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/examples/corba/client.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/examples/corba/client.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | // client.cpp,v 4.3 1998/07/31 22:55:09 gonzo Exp
#include "Test.hh"
ACE_RCSID(CORBA, client, "client.cpp,v 4.3 1998/07/31 22:55:09 gonzo Exp")
int
main (int argc, char *argv[])
{
char *host = argc == 2 ? argv[1] : ACE_DEFAULT_SERVER_HOST;
Test_var my_test;
TRY {
my_test = Test::_bind ("", ... | 21.107143 | 75 | 0.605753 | tharindusathis |
e858c316154a7c9e1f62b57de38d96608393a30b | 14,735 | cpp | C++ | setup.cpp | jessexm/dbgutils | 149e5ee1a49ff87861601ea992918d1d56873bc2 | [
"BSD-3-Clause"
] | 2 | 2019-12-28T10:33:42.000Z | 2020-04-02T01:53:33.000Z | setup.cpp | jessexm/dbgutils | 149e5ee1a49ff87861601ea992918d1d56873bc2 | [
"BSD-3-Clause"
] | null | null | null | setup.cpp | jessexm/dbgutils | 149e5ee1a49ff87861601ea992918d1d56873bc2 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (C) 2002, 2003, 2004 Zilog, Inc.
*
* $Id: setup.cpp,v 1.6 2005/10/20 18:39:37 jnekl Exp $
*
* This file initializes the debugger enviroment by reading
* settings from a config file and by parsing command-line
* options.
*/
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <sys/sta... | 19.111543 | 84 | 0.55134 | jessexm |
e8591699457d2855917c3569dd261352061e7df4 | 4,730 | hpp | C++ | inc/Matrixes.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | 1 | 2022-03-08T03:16:48.000Z | 2022-03-08T03:16:48.000Z | inc/Matrixes.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | null | null | null | inc/Matrixes.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | null | null | null | /**
* @file Matrixes.hpp
* @author Delicat Jakub (delicat.kuba@gmail.com)
* @brief File describes implemetations for template class Matrix.
* Instantiation of template class Matrix like Matrix4x4, Matrix3x3, Matrix2x2 and MatrixRot.
* @version 0.1
* @date 2021-06-23
*
* @copyright Copyright (c) 2021
*
*/
... | 29.018405 | 109 | 0.572939 | KPO-2020-2021 |
e859f22bdab86a51b4ab7ca4786ef6bf0bad2939 | 25,353 | cpp | C++ | AviSynthPlus/plugins/Shibatch/ssrc.cpp | wurui1994/AviSynth | d318f4b455c49a8864c30b3cce84925ebb16c002 | [
"MIT"
] | 1 | 2018-09-27T09:37:42.000Z | 2018-09-27T09:37:42.000Z | AviSynthPlus/plugins/Shibatch/ssrc.cpp | wurui1994/AviSynth | d318f4b455c49a8864c30b3cce84925ebb16c002 | [
"MIT"
] | null | null | null | AviSynthPlus/plugins/Shibatch/ssrc.cpp | wurui1994/AviSynth | d318f4b455c49a8864c30b3cce84925ebb16c002 | [
"MIT"
] | null | null | null | /******************************************************
A fast and high quality sampling rate converter SSRC
written by Naoki Shibata
Homepage : http://shibatch.sourceforge.net/
e-mail : shibatch@users.sourceforge.net
Some changes are:
Copyright (c) 2001-2003, Peter P... | 22.278559 | 117 | 0.541711 | wurui1994 |
e85abaf9084edff95cf3b43144191390184028c3 | 142 | cpp | C++ | src/Debug.cpp | JurisPolevskis/PolygonFinder | dd09a89c246f959071ebb1148c2cbe38cdc60edb | [
"Unlicense"
] | null | null | null | src/Debug.cpp | JurisPolevskis/PolygonFinder | dd09a89c246f959071ebb1148c2cbe38cdc60edb | [
"Unlicense"
] | null | null | null | src/Debug.cpp | JurisPolevskis/PolygonFinder | dd09a89c246f959071ebb1148c2cbe38cdc60edb | [
"Unlicense"
] | null | null | null | #include "Debug.h"
#include <iostream>
void Debug::print(const std::string& str)
{
#ifdef DEBUG
std::cout << str << std::endl;
#endif
} | 14.2 | 42 | 0.640845 | JurisPolevskis |
e85d05c1eddad62c9ec79e5d962f64270864c35e | 820 | cpp | C++ | jobtaskitem.cpp | dayuanyuan1989/RemoteBinder | 6c07896828187bbb890115fa1326f9db4fbd7b68 | [
"MIT"
] | null | null | null | jobtaskitem.cpp | dayuanyuan1989/RemoteBinder | 6c07896828187bbb890115fa1326f9db4fbd7b68 | [
"MIT"
] | null | null | null | jobtaskitem.cpp | dayuanyuan1989/RemoteBinder | 6c07896828187bbb890115fa1326f9db4fbd7b68 | [
"MIT"
] | null | null | null | #include "jobtaskitem.h"
#include "ui_jobtaskitem.h"
JobTaskItem::JobTaskItem(QWidget *parent) :
QWidget(parent),
ui(new Ui::JobTaskItem)
{
ui->setupUi(this);
// SetBodyVisible(false);
}
JobTaskItem::~JobTaskItem()
{
delete ui;
}
void JobTaskItem::SetTitle(const QString& str)
{
... | 17.826087 | 54 | 0.634146 | dayuanyuan1989 |
e86220fd31d629176ceb8d429c28bdc75b743123 | 386 | cpp | C++ | HackerRank/University-Codesprint-5/Exceeding-the-Speed-Limit.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | HackerRank/University-Codesprint-5/Exceeding-the-Speed-Limit.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | HackerRank/University-Codesprint-5/Exceeding-the-Speed-Limit.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | /**
* > Author : TISparta
* > Date : 09-09-18
* > Tags : Implementation
* > Difficulty : 1 / 10
*/
#include <bits/stdc++.h>
using namespace std;
int main () {
int s;
cin >> s;
if (s <= 90) printf("%d %s\n", 0, "No punishment");
else if (s <= 110) printf("%d %s\n", (s - 90) * 300, "Warning");
else prin... | 19.3 | 66 | 0.523316 | TISparta |
e8628b6b7b6a594051ce4cfd1f1c842b4ca0866c | 12,960 | cpp | C++ | copyworker.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 5 | 2018-08-19T05:45:45.000Z | 2020-10-09T09:37:57.000Z | copyworker.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 95 | 2018-04-26T12:13:24.000Z | 2020-05-03T08:23:56.000Z | copyworker.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 1 | 2018-08-19T05:46:02.000Z | 2018-08-19T05:46:02.000Z | #include <QDebug>
#include <QFileInfo>
#include <QDir>
#include <QFile>
#include <QTemporaryFile>
#include <QDateTime>
#include <QMutex>
#include <QThread>
#include "copyworker.h"
#include "workerresult.h"
#include "default_settings.h"
namespace Farman
{
CopyWorker::CopyWorker(const QStringList& srcPaths, const QStr... | 29.930716 | 140 | 0.568519 | haraki |
e8643795d6a7607cb957f73e500daddd2ac3a37a | 2,283 | hpp | C++ | src/mfx/hw/RPiDmaBlocks.hpp | D-J-Roberts/pedalevite | 157611b5ccf2bb97f0007d7d17b4c07bd6a21fba | [
"WTFPL"
] | 69 | 2017-01-17T13:17:31.000Z | 2022-03-01T14:56:32.000Z | src/mfx/hw/RPiDmaBlocks.hpp | D-J-Roberts/pedalevite | 157611b5ccf2bb97f0007d7d17b4c07bd6a21fba | [
"WTFPL"
] | 1 | 2020-11-03T14:52:45.000Z | 2020-12-01T20:31:15.000Z | src/mfx/hw/RPiDmaBlocks.hpp | D-J-Roberts/pedalevite | 157611b5ccf2bb97f0007d7d17b4c07bd6a21fba | [
"WTFPL"
] | 8 | 2017-02-08T13:30:42.000Z | 2021-12-09T08:43:09.000Z | /*****************************************************************************
RPiDmaBlocks.hpp
Author: Laurent de Soras, 2021
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under th... | 16.911111 | 78 | 0.551905 | D-J-Roberts |