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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a602f9f5123a3670e8b693e3b9852c589b22c54 | 30 | cpp | C++ | src/expression.cpp | koraxkorakos/mv | b5f589bd089fd05fde7a0837f39746e2e343499e | [
"BSD-2-Clause"
] | null | null | null | src/expression.cpp | koraxkorakos/mv | b5f589bd089fd05fde7a0837f39746e2e343499e | [
"BSD-2-Clause"
] | null | null | null | src/expression.cpp | koraxkorakos/mv | b5f589bd089fd05fde7a0837f39746e2e343499e | [
"BSD-2-Clause"
] | null | null | null | //#include <mv/expression.hpp> | 30 | 30 | 0.733333 | koraxkorakos |
9a6070ae0d84e05add8020fe843e371cff24d5a0 | 16,062 | cpp | C++ | src/cpm_BaseParaManager_MPI.cpp | jorji/CPMlib | 7ba683d1abc60f11bafcc5732da831278b002afa | [
"BSD-2-Clause"
] | 4 | 2015-03-17T17:30:10.000Z | 2019-01-31T15:13:59.000Z | src/cpm_BaseParaManager_MPI.cpp | jorji/CPMlib | 7ba683d1abc60f11bafcc5732da831278b002afa | [
"BSD-2-Clause"
] | null | null | null | src/cpm_BaseParaManager_MPI.cpp | jorji/CPMlib | 7ba683d1abc60f11bafcc5732da831278b002afa | [
"BSD-2-Clause"
] | 4 | 2015-12-09T02:42:29.000Z | 2022-03-18T09:03:28.000Z | /*
###################################################################################
#
# CPMlib - Computational space Partitioning Management library
#
# Copyright (c) 2012-2014 Institute of Industrial Science (IIS), The University of Tokyo.
# All rights reserved.
#
# Copyright (c) 2014-2016 Advanced Institute for Co... | 23.86627 | 119 | 0.577886 | jorji |
9a666e5b485039da1cb223c3e70bf30f808f2da4 | 28 | cpp | C++ | DataStructures/Src/Precompiled.cpp | ikarusx/ModernCpp | 8c0111dec2d0a2a183250e2f9594573b99687ec5 | [
"MIT"
] | null | null | null | DataStructures/Src/Precompiled.cpp | ikarusx/ModernCpp | 8c0111dec2d0a2a183250e2f9594573b99687ec5 | [
"MIT"
] | null | null | null | DataStructures/Src/Precompiled.cpp | ikarusx/ModernCpp | 8c0111dec2d0a2a183250e2f9594573b99687ec5 | [
"MIT"
] | null | null | null |
#include "Precompiled.hpp"
| 9.333333 | 26 | 0.75 | ikarusx |
9a6726017803c35221f177ec07786cb6a428563f | 10,074 | cpp | C++ | coh2_rgt_extractor/Rainman_src/CRgdHashTable.cpp | tranek/coh2_rgt_extractor | dba2db9a06d3f31fb815ca865181d8f631306522 | [
"MIT"
] | 1 | 2016-09-24T14:57:56.000Z | 2016-09-24T14:57:56.000Z | coh2_rgt_extractor/Rainman_src/CRgdHashTable.cpp | tranek/coh2_rgt_extractor | dba2db9a06d3f31fb815ca865181d8f631306522 | [
"MIT"
] | null | null | null | coh2_rgt_extractor/Rainman_src/CRgdHashTable.cpp | tranek/coh2_rgt_extractor | dba2db9a06d3f31fb815ca865181d8f631306522 | [
"MIT"
] | null | null | null | /*
Rainman Library
Copyright (C) 2006 Corsix <corsix@gmail.com>
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 2.1 of the License, or (at your option) any later version.
This ... | 23.105505 | 123 | 0.571074 | tranek |
9a6b74f17a9d9e386a1fb0d561ea3f9cb5dada08 | 1,518 | hpp | C++ | include/pichi/common/endpoint.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 164 | 2018-09-28T09:41:05.000Z | 2021-11-13T09:17:07.000Z | include/pichi/common/endpoint.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 5 | 2018-12-21T13:40:02.000Z | 2021-07-24T04:23:44.000Z | include/pichi/common/endpoint.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 14 | 2018-12-18T09:35:42.000Z | 2021-07-06T12:16:34.000Z | #ifndef PICHI_COMMON_ENDPOINT_HPP
#define PICHI_COMMON_ENDPOINT_HPP
#include <algorithm>
#include <functional>
#include <iterator>
#include <pichi/common/buffer.hpp>
#include <pichi/common/enumerations.hpp>
#include <string>
#include <string_view>
#include <type_traits>
namespace std {
inline string to_string(string... | 27.107143 | 88 | 0.746377 | imuzi |
9a6c9753edc8507678f6e6f21f471beed68494d1 | 3,668 | cpp | C++ | oneEngine/oneGame/source/renderer/camera/RrRTCamera.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 8 | 2017-12-08T02:59:31.000Z | 2022-02-02T04:30:03.000Z | oneEngine/oneGame/source/renderer/camera/RrRTCamera.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 2 | 2021-04-16T03:44:42.000Z | 2021-08-30T06:48:44.000Z | oneEngine/oneGame/source/renderer/camera/RrRTCamera.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 1 | 2021-04-16T02:09:54.000Z | 2021-04-16T02:09:54.000Z | #include "core/time/time.h"
#include "renderer/state/Settings.h"
#include "renderer/types/ObjectSettings.h"
#include "renderer/texture/RrRenderTexture.h"
#include "renderer/state/RrHybridBufferChain.h"
#include "RrRTCamera.h"
RrRTCamera::RrRTCamera (
renderer::rrInternalSettings* const targetSettings,
Vector2i cons... | 26.014184 | 101 | 0.730098 | jonting |
9a7253aa706747c7104c81bf942ca292d57d6aa9 | 1,303 | cpp | C++ | src/trace/GLLib/Texture/TextureTarget.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/trace/GLLib/Texture/TextureTarget.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/trace/GLLib/Texture/TextureTarget.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | /**************************************************************************
*
* Copyright (c) 2002 - 2011 by Computer Architecture Department,
* Universitat Politecnica de Catalunya.
* All rights reserved.
*
* The contents of this file may not be disclosed to third parties,
* copied or duplicated in any form, in... | 30.302326 | 90 | 0.604758 | attila-sim |
9a77b287a6fd0647a604244033677071702b2567 | 187,010 | cpp | C++ | libs/graph_parallel/test/performance_test.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | 1 | 2021-09-03T10:22:04.000Z | 2021-09-03T10:22:04.000Z | libs/graph_parallel/test/performance_test.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | libs/graph_parallel/test/performance_test.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2014 The Trustees of Indiana University.
// Use, modification and distribution is subject to 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)
// Authors: Nicholas Edmonds
// Andrew Lumsdaine
// ... | 31.594864 | 637 | 0.650848 | thejkane |
9a790e854bb7dd080b0f2c05900dcf25ae79e48e | 1,049 | cpp | C++ | ColliderBit/src/models/SUSY.cpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 1 | 2021-09-17T22:53:26.000Z | 2021-09-17T22:53:26.000Z | ColliderBit/src/models/SUSY.cpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 3 | 2021-07-22T11:23:48.000Z | 2021-08-22T17:24:41.000Z | ColliderBit/src/models/SUSY.cpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 1 | 2021-08-14T10:31:41.000Z | 2021-08-14T10:31:41.000Z | // GAMBIT: Global and Modular BSM Inference Tool
// *********************************************
/// \file
///
/// SUSY-specific sources for ColliderBit.
///
/// *********************************************
///
/// Authors (add name and date if you modify):
///
/// \author Pat Scott
/// (p.scott@imp... | 25.585366 | 89 | 0.602479 | GambitBSM |
9a79c2c2fa51bd1c9e2221f7d752573c9e3b04d5 | 1,540 | cpp | C++ | problemes/probleme0xx/probleme035.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | 6 | 2015-10-13T17:07:21.000Z | 2018-05-08T11:50:22.000Z | problemes/probleme0xx/probleme035.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | problemes/probleme0xx/probleme035.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | #include "problemes.h"
#include "chiffres.h"
#include "premiers.h"
#include <set>
#include <iterator>
typedef unsigned long long nombre;
namespace {
nombre rotation(nombre n) {
auto liste = chiffres::extraire_chiffres(n);
liste.push_back(liste.front());
liste.pop_front();
nombre r... | 27.5 | 100 | 0.572727 | ZongoForSpeed |
9a7b0b6bba3acded392a03976227887f3a2be9d6 | 506 | cc | C++ | trash/trash/standard-template-library/csrc/stub.cc | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | trash/trash/standard-template-library/csrc/stub.cc | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | trash/trash/standard-template-library/csrc/stub.cc | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | #include "template.hh"
w_printout(int)
w_printout(double)
w_push_back(int)
w_push_back(double)
w_new(int)
w_new(double)
w_at(int)
w_at(double)
w_delete(int)
w_delete(double)
// template void printout<int> (std::vector<int>*);
// template std::vector<int>* create();
// template void push_back<int> (std::vector<... | 15.333333 | 66 | 0.703557 | uphere-co |
9a830a8865590c235673400e4b769f04a41dc433 | 4,625 | cpp | C++ | android-28/org/xml/sax/helpers/AttributesImpl.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/org/xml/sax/helpers/AttributesImpl.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/org/xml/sax/helpers/AttributesImpl.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../../JArray.hpp"
#include "../../../../JString.hpp"
#include "./AttributesImpl.hpp"
namespace org::xml::sax::helpers
{
// Fields
// QJniObject forward
AttributesImpl::AttributesImpl(QJniObject obj) : JObject(obj) {}
// Constructors
AttributesImpl::AttributesImpl()
: JObject(
"org.xml.sax... | 21.118721 | 121 | 0.663568 | YJBeetle |
9a87f30402171d900d7ba8421b2866e86d6d186f | 61,766 | cpp | C++ | src/shell/shell_misc.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | 3 | 2022-02-20T11:06:29.000Z | 2022-03-11T08:16:55.000Z | src/shell/shell_misc.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | src/shell/shell_misc.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2002-2021 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This p... | 36.853222 | 230 | 0.531862 | mediaexplorer74 |
9a88cd7485d9be176cfdf7a7b72b2ff0da28b238 | 11,274 | hpp | C++ | ESMF/src/Infrastructure/Mesh/src/Moab/SweptElementData.hpp | joeylamcy/gchp | 0e1676300fc91000ecb43539cabf1f342d718fb3 | [
"NCSA",
"Apache-2.0",
"MIT"
] | 1 | 2018-07-05T16:48:58.000Z | 2018-07-05T16:48:58.000Z | ESMF/src/Infrastructure/Mesh/src/Moab/SweptElementData.hpp | joeylamcy/gchp | 0e1676300fc91000ecb43539cabf1f342d718fb3 | [
"NCSA",
"Apache-2.0",
"MIT"
] | 1 | 2022-03-04T16:12:02.000Z | 2022-03-04T16:12:02.000Z | ESMF/src/Infrastructure/Mesh/src/Moab/SweptElementData.hpp | joeylamcy/gchp | 0e1676300fc91000ecb43539cabf1f342d718fb3 | [
"NCSA",
"Apache-2.0",
"MIT"
] | null | null | null | /**
* MOAB, a Mesh-Oriented datABase, is a software component for creating,
* storing and accessing finite element mesh data.
*
* Copyright 2004 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
* retains certain rights in this software.
*
* This... | 36.134615 | 105 | 0.638283 | joeylamcy |
893c71e6fee5711ebd8b2e222cd3c594e69455d9 | 1,925 | cpp | C++ | firmware/examples/PinConfigure/source/main.cpp | 2721Aperez/SJSU-Dev2 | 87052080d2754803dbd1dae2864bd9024d123086 | [
"Apache-2.0"
] | 1 | 2018-07-07T01:41:34.000Z | 2018-07-07T01:41:34.000Z | firmware/examples/PinConfigure/source/main.cpp | 2721Aperez/SJSU-Dev2 | 87052080d2754803dbd1dae2864bd9024d123086 | [
"Apache-2.0"
] | null | null | null | firmware/examples/PinConfigure/source/main.cpp | 2721Aperez/SJSU-Dev2 | 87052080d2754803dbd1dae2864bd9024d123086 | [
"Apache-2.0"
] | 1 | 2018-09-19T01:58:48.000Z | 2018-09-19T01:58:48.000Z | #include <cstdarg>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include "config.hpp"
#include "L0_LowLevel/LPC40xx.h"
#include "L1_Drivers/pin_configure.hpp"
#include "L2_Utilities/debug_print.hpp"
int main(void)
{
// This application assumes that all pins are set to function 0 (GPIO)
DEBUG_PRINT(... | 40.104167 | 80 | 0.714805 | 2721Aperez |
893dfb6e98893ed83575b82458c15e8f2a1ae6a6 | 3,405 | cpp | C++ | Source/Components/MenuComponent.cpp | Aavu/MIDI-Editor | 4991beec683e75d5867117230dcafb2709192c81 | [
"MIT"
] | 5 | 2020-06-06T02:14:00.000Z | 2020-12-03T12:54:57.000Z | Source/Components/MenuComponent.cpp | Aavu/MIDI-Editor | 4991beec683e75d5867117230dcafb2709192c81 | [
"MIT"
] | 9 | 2020-03-28T22:26:10.000Z | 2020-04-29T04:55:08.000Z | Source/Components/MenuComponent.cpp | Aavu/MIDI-Editor | 4991beec683e75d5867117230dcafb2709192c81 | [
"MIT"
] | 1 | 2020-12-01T22:42:48.000Z | 2020-12-01T22:42:48.000Z | /*
==============================================================================
MenuComponent.cpp
Created: 12 Jan 2020 12:28:18pm
Author: Raghavasimhan Sankaranarayanan
==============================================================================
*/
#include "../JuceLibraryCode/JuceHeader.h"
#inc... | 31.238532 | 107 | 0.636417 | Aavu |
893f27dd8c8dd25c02eaa7feec68cd3029314d8b | 3,408 | cpp | C++ | src/apps/patchbay/MidiEventMeter.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/apps/patchbay/MidiEventMeter.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/apps/patchbay/MidiEventMeter.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /* MidiEventMeter.cpp
* ------------------
* Implements the MidiEventMeter class.
*
* Copyright 2013, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Revisions by Pete Goodeve
*
* Copyright 1999, Be Incorporated. All Rights Reserved.
* This file may be used under the t... | 23.342466 | 72 | 0.683392 | Kirishikesan |
894065a760a2faf36fd63bdbe81ef6b0315a143b | 1,301 | hpp | C++ | include/cpp2py/signal_handler.hpp | Algomorph/cpp2py | 0febc3f923f0a72e36796e6f2932382419e2b878 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-06-26T13:05:11.000Z | 2020-06-26T13:05:11.000Z | include/cpp2py/signal_handler.hpp | Algomorph/cpp2py | 0febc3f923f0a72e36796e6f2932382419e2b878 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/cpp2py/signal_handler.hpp | Algomorph/cpp2py | 0febc3f923f0a72e36796e6f2932382419e2b878 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-12-28T00:47:14.000Z | 2020-12-28T00:47:14.000Z | /*******************************************************************************
*
* TRIQS: a Toolbox for Research in Interacting Quantum Systems
*
* Copyright (C) 2014 by O. Parcollet
*
* TRIQS is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as publ... | 31.731707 | 80 | 0.607225 | Algomorph |
8947090d3e9a56d48781d56c2698dc154885bdf0 | 420 | cpp | C++ | hackerrank/sansa-and-xor/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | hackerrank/sansa-and-xor/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | hackerrank/sansa-and-xor/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
typedef signed long long ll;
typedef unsigned long long ull;
#define FOR(x, to) for (x = 0; x < (to); ++x)
#define FORR(x, arr) for (auto &x : arr)
using namespace std;
int main() {
int t;
cin >> t;
while (t--) {
int n, i, x, ans;
ans = 0;
cin >> n;
FOR(i, n) {
c... | 16.153846 | 45 | 0.485714 | SamProkopchuk |
894745f19fa7a9f07ecace1540adf076cd461e69 | 2,180 | hpp | C++ | src/avatar.hpp | tilnewman/halloween | 7cea37e31b2e566be76707cd8dc48527cec95bc5 | [
"MIT"
] | null | null | null | src/avatar.hpp | tilnewman/halloween | 7cea37e31b2e566be76707cd8dc48527cec95bc5 | [
"MIT"
] | null | null | null | src/avatar.hpp | tilnewman/halloween | 7cea37e31b2e566be76707cd8dc48527cec95bc5 | [
"MIT"
] | null | null | null | #ifndef AVATAR_HPP_INCLUDED
#define AVATAR_HPP_INCLUDED
//
// avatar.hpp
//
#include "avatar-anim.hpp"
#include "blood.hpp"
#include <vector>
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Graphics/Texture.hpp>
namespace halloween
{
struct Settings;
struct Context;
enum class Action
{
Id... | 27.25 | 77 | 0.649083 | tilnewman |
89475fdf52859e38581f578ec22f6a95c93fd0e6 | 61,755 | cpp | C++ | lighthub/main.cpp | anklimov/lighthub | 99e9c1a27aca52bf38efec000547720fb8f82860 | [
"Apache-2.0"
] | 83 | 2017-11-05T14:05:16.000Z | 2022-02-21T16:34:53.000Z | lighthub/main.cpp | anklimov/lighthub | 99e9c1a27aca52bf38efec000547720fb8f82860 | [
"Apache-2.0"
] | 27 | 2018-03-12T21:49:33.000Z | 2022-01-20T19:06:05.000Z | lighthub/main.cpp | anklimov/lighthub | 99e9c1a27aca52bf38efec000547720fb8f82860 | [
"Apache-2.0"
] | 20 | 2017-11-20T08:27:17.000Z | 2022-03-28T02:26:17.000Z | /* Copyright © 2017-2018 Andrey Klimov. 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 a... | 28.160055 | 146 | 0.580147 | anklimov |
8947c0699f9f8d747a3eea649857d17fb32f2382 | 284 | hpp | C++ | include/Pomdog/Math/Vector3.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | include/Pomdog/Math/Vector3.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | include/Pomdog/Math/Vector3.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Math/detail/FloatingPointVector3.hpp"
namespace Pomdog {
///@brief vector in three-dimensional space.
using Vector3 = Detail::FloatingPointVector3<float>;
} // namespace Pomdog
| 21.846154 | 71 | 0.767606 | ValtoForks |
8949109c19fa8629dfda11dd3767539f2739ed2f | 2,028 | hpp | C++ | firmware/battery_board/include/hal/analogInput.hpp | introlab/securbot | 0652ddf3e2dbcf0bb6ffcf76898749b67e443327 | [
"Apache-2.0"
] | 20 | 2019-03-13T13:37:51.000Z | 2022-01-25T16:56:35.000Z | firmware/battery_board/include/hal/analogInput.hpp | introlab/securbot | 0652ddf3e2dbcf0bb6ffcf76898749b67e443327 | [
"Apache-2.0"
] | 15 | 2019-02-27T20:29:34.000Z | 2020-08-24T19:44:20.000Z | firmware/battery_board/include/hal/analogInput.hpp | introlab/securbot | 0652ddf3e2dbcf0bb6ffcf76898749b67e443327 | [
"Apache-2.0"
] | 13 | 2019-07-31T00:47:49.000Z | 2021-04-15T01:33:02.000Z | /**
* @file analogInput.hpp
* @author Cedric Godin (cedric.godin@me.com)
* @brief Driver to read analog inputs
* @version 0.1
* @date 2019-10-02
*
* @copyright Copyright (c) 2019
*
*/
#pragma once
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
#include <freertos/semphr.h>
#include <freertos/task.h>
#... | 25.35 | 75 | 0.658777 | introlab |
8949c49dccf37d5502a34bb34760e119946a12fb | 1,422 | cpp | C++ | Code/LeetCode/Linked List Cycle/Linked List Cycle.cpp | myhgew/CodePractice | c3313623d973192d6c2f20255bb01088b970ee80 | [
"MIT"
] | null | null | null | Code/LeetCode/Linked List Cycle/Linked List Cycle.cpp | myhgew/CodePractice | c3313623d973192d6c2f20255bb01088b970ee80 | [
"MIT"
] | null | null | null | Code/LeetCode/Linked List Cycle/Linked List Cycle.cpp | myhgew/CodePractice | c3313623d973192d6c2f20255bb01088b970ee80 | [
"MIT"
] | null | null | null | /*
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
*/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
#include <iostream>
#include <stdlib.h>
... | 18.230769 | 55 | 0.517581 | myhgew |
894a65414c61aa2a3ce16e79e32541ec2d1c6570 | 5,939 | cpp | C++ | KolFloat.cpp | ekoly/kollang | 824b6a3cccad8316874485d0ead63d38b6a9699b | [
"MIT"
] | null | null | null | KolFloat.cpp | ekoly/kollang | 824b6a3cccad8316874485d0ead63d38b6a9699b | [
"MIT"
] | null | null | null | KolFloat.cpp | ekoly/kollang | 824b6a3cccad8316874485d0ead63d38b6a9699b | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <cstdlib>
#include "KolMain.h"
#include "KolScopes.h"
#include "KolInt.h"
#include "KolString.h"
#include "KolFloat.h"
using namespace std;
// class methods
KolFloat::KolFloat(double value) : KolObject("float") {
this->value = value;
}
double KolFloat::getValue() {... | 32.812155 | 139 | 0.653814 | ekoly |
894e2e35083a65042d02fb0e8fae5f3caef5d4e8 | 1,749 | cpp | C++ | code/client/src/core/hooks/camera.cpp | mufty/MafiaMP | 2dc0e3362c505079e26e598bd4a7f4b5de7400bc | [
"OpenSSL"
] | 16 | 2021-10-08T17:47:04.000Z | 2022-03-28T13:26:37.000Z | code/client/src/core/hooks/camera.cpp | mufty/MafiaMP | 2dc0e3362c505079e26e598bd4a7f4b5de7400bc | [
"OpenSSL"
] | 4 | 2022-01-19T08:11:57.000Z | 2022-01-29T19:02:24.000Z | code/client/src/core/hooks/camera.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 <logging/logger.h>
typedef int64_t(__fastcall *C_Camera__ModeChangeImmediate_t)(void *_this, int, void *, bool, bool, bool);
C_Camera__ModeChangeImmediate_t C_Camera__ModeChangeImmediate_original = nullptr;
type... | 58.3 | 152 | 0.748428 | mufty |
89511bba821f84f6fb0f43bbb73432eb9e6f8772 | 1,665 | cpp | C++ | google/code_jam/2018/r3/raise_the_roof__pnd.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | 4 | 2018-06-05T14:15:52.000Z | 2022-02-08T05:14:23.000Z | google/code_jam/2018/r3/raise_the_roof__pnd.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | null | null | null | google/code_jam/2018/r3/raise_the_roof__pnd.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | 1 | 2018-10-21T11:01:35.000Z | 2018-10-21T11:01:35.000Z | #include "common/geometry/d3/base.h"
#include "common/geometry/d3/plane_pn.h"
#include "common/geometry/d3/point_io.h"
#include "common/geometry/d3/utils/plane_pn_from_points.h"
#include "common/geometry/d3/vector.h"
#include "common/stl/base.h"
int main_raise_the_roof__pnd() {
struct Point {
unsigned index;
... | 23.785714 | 67 | 0.44985 | Loks- |
89521a2f8e08b3841fc650e84cc9d2fa32279159 | 6,844 | cc | C++ | src/renderer/renderers/gl/renderer.cc | cptaffe/actor | 4faf785fba098481b5e5582f53e15cfa5d431a73 | [
"MIT"
] | null | null | null | src/renderer/renderers/gl/renderer.cc | cptaffe/actor | 4faf785fba098481b5e5582f53e15cfa5d431a73 | [
"MIT"
] | null | null | null | src/renderer/renderers/gl/renderer.cc | cptaffe/actor | 4faf785fba098481b5e5582f53e15cfa5d431a73 | [
"MIT"
] | null | null | null | // Copyright 2016 Connor Taffe
#include "src/renderer/renderers/gl/renderer.h"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <fstream>
#include <iostream>
#include <map>
#include <random>
#include <stdexcept>
#include <vector>
#include "src/renderer/event/event.h"
#include "src/render... | 31.109091 | 79 | 0.577732 | cptaffe |
89552baf8354d476b1f83329e5ae979335d68843 | 3,562 | cpp | C++ | librtt/Rtt_FillTesselatorStream.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 1,968 | 2018-12-30T21:14:22.000Z | 2022-03-31T23:48:16.000Z | librtt/Rtt_FillTesselatorStream.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 303 | 2019-01-02T19:36:43.000Z | 2022-03-31T23:52:45.000Z | librtt/Rtt_FillTesselatorStream.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 254 | 2019-01-02T19:05:52.000Z | 2022-03-30T06:32:28.000Z | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
////////////////////////... | 26.191176 | 98 | 0.613981 | agramonte |
8955f6a271f64452ec97e572e655f66fc1c54a7f | 2,488 | cpp | C++ | libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_set_union.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_set_union.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_set_union.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_algorithm_ranges_set_union.cpp
*
* @brief ranges::set_union のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/algorithm/ranges/set_union.hpp>
#include <bksge/fnd/algorithm/ranges/equal.hpp>
#include <bksge/fnd/functional/ranges/greater.hpp>
#include <bksge/fnd/iterator/ranges... | 26.189474 | 71 | 0.62701 | myoukaku |
895a7fdd0a6c74066df90a4cb3b37716808a4e9d | 1,153 | cpp | C++ | galois/utilities/friend_close_helper.cpp | 7starsea/galois | a83c2b57baca3e09d6ec9258e16d37e35e1e404b | [
"MIT"
] | null | null | null | galois/utilities/friend_close_helper.cpp | 7starsea/galois | a83c2b57baca3e09d6ec9258e16d37e35e1e404b | [
"MIT"
] | null | null | null | galois/utilities/friend_close_helper.cpp | 7starsea/galois | a83c2b57baca3e09d6ec9258e16d37e35e1e404b | [
"MIT"
] | null | null | null | ///
/// Copyright(c) 2018 Aimin Huang
/// Distributed under the MIT License (http://opensource.org/licenses/MIT)
///
#include "friend_close_helper.h"
#include <iostream>
#include <chrono> ///std::chrono::seconds
#include <thread>
#include <csignal>
#include <boost/predef.h>
void FriendCloseHelperImpl::registerSignal... | 24.531915 | 85 | 0.738942 | 7starsea |
895d8d8fa1e492c2c93fb1b44909c01965beb426 | 2,147 | cpp | C++ | src/bonefish/roles/wamp_role_type.cpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 58 | 2015-08-24T18:43:56.000Z | 2022-01-09T00:55:06.000Z | src/bonefish/roles/wamp_role_type.cpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 47 | 2015-08-25T11:04:51.000Z | 2018-02-28T22:38:12.000Z | src/bonefish/roles/wamp_role_type.cpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 32 | 2015-08-25T15:14:45.000Z | 2020-03-23T09:35:31.000Z | /**
* Copyright (C) 2015 Topology LP
*
* 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... | 25.258824 | 76 | 0.607825 | aiwc |
89602bfa213172311b2146bed903d2192a822b2f | 397 | cpp | C++ | MOS_6502_Emulator/ProcessingUnit_Shift.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | MOS_6502_Emulator/ProcessingUnit_Shift.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | MOS_6502_Emulator/ProcessingUnit_Shift.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | #include "ProcessingUnit.h"
BYTE ProcessingUnit::ASL(BYTE value)
{
BYTE result = value << 1;
m_negative = (result & 0x80) != 0;
m_zero = result == 0;
m_carry = (value & 0x80) != 0;
return result;
}
BYTE ProcessingUnit::LSR(BYTE value)
{
BYTE result = value >> 1;
m_zero = result == 0;
m_carry = (value & 0x0... | 17.26087 | 49 | 0.639798 | yu830425 |
89632196bcc20b530d1612c02a82d34e5a9764cd | 2,086 | cpp | C++ | Phoenix/Server/Source/Server.cpp | NicolasRicard/Phoenix | 5eae2bd716a933fd405487d93c0e91e5ca56b3e4 | [
"BSD-3-Clause"
] | 1 | 2020-05-02T14:46:39.000Z | 2020-05-02T14:46:39.000Z | Phoenix/Server/Source/Server.cpp | NicolasRicard/Phoenix | 5eae2bd716a933fd405487d93c0e91e5ca56b3e4 | [
"BSD-3-Clause"
] | null | null | null | Phoenix/Server/Source/Server.cpp | NicolasRicard/Phoenix | 5eae2bd716a933fd405487d93c0e91e5ca56b3e4 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019-20 Genten Studios
//
// 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 list of conditions and the following disclai... | 40.901961 | 80 | 0.719559 | NicolasRicard |
896328db15c7251956079514284a32b07b515624 | 311 | cpp | C++ | package/standalone_kr_usn/lib/nvs_flash/src/cpp_config.cpp | teledatics/nrc7292_sdk | d0ba3f17e1bef3d6fec7370e7f0ffa77db56e3a4 | [
"MIT"
] | 7 | 2020-07-20T03:58:40.000Z | 2022-03-15T13:29:18.000Z | package/standalone_kr_usn/lib/nvs_flash/src/cpp_config.cpp | teledatics/nrc7292_sdk | d0ba3f17e1bef3d6fec7370e7f0ffa77db56e3a4 | [
"MIT"
] | 3 | 2021-07-16T12:39:36.000Z | 2022-02-02T18:19:51.000Z | package/standalone_kr_usn/lib/nvs_flash/src/cpp_config.cpp | teledatics/nrc7292_sdk | d0ba3f17e1bef3d6fec7370e7f0ffa77db56e3a4 | [
"MIT"
] | 4 | 2020-09-19T18:03:04.000Z | 2022-02-02T13:17:34.000Z | /* below parameters defined to get around build error */
/* must check if there's any side effect */
void *__dso_handle = 0;
extern "C" int __aeabi_atexit(void *object,
void (*destructor)(void *),
void *dso_handle)
{
return 0;
}
namespace __gnu_cxx {
void __verbose_terminate_handler()
{
while(1);
}
}
| 17.277778 | 56 | 0.700965 | teledatics |
896535198381655801c4caebea02bd10f7724930 | 6,599 | cpp | C++ | svntrunk/src/BlueMatter/probspec/src/ffheaderhandler.cpp | Bhaskers-Blu-Org1/BlueMatter | 1ab2c41af870c19e2e1b1095edd1d5c85eeb9b5e | [
"BSD-2-Clause"
] | 7 | 2020-02-25T15:46:18.000Z | 2022-02-25T07:04:47.000Z | svntrunk/src/BlueMatter/probspec/src/ffheaderhandler.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | null | null | null | svntrunk/src/BlueMatter/probspec/src/ffheaderhandler.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | 5 | 2019-06-06T16:30:21.000Z | 2020-11-16T19:43:01.000Z | /* Copyright 2001, 2019 IBM Corporation
*
* 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 list of conditions and the
* following d... | 32.995 | 118 | 0.651462 | Bhaskers-Blu-Org1 |
8966877555ac45ef7737404533a0b76718f8289b | 2,530 | cpp | C++ | ModelViewer/ViewerFoundation/Utilities/Mac/NuoMathVectorMac.cpp | erpapa/NuoModelViewer | 0dcb8bf99cb49c6e2c9535ed178e01674fa26824 | [
"MIT"
] | 265 | 2017-03-15T17:11:27.000Z | 2022-03-30T07:50:00.000Z | ModelViewer/ViewerFoundation/Utilities/Mac/NuoMathVectorMac.cpp | erpapa/NuoModelViewer | 0dcb8bf99cb49c6e2c9535ed178e01674fa26824 | [
"MIT"
] | 6 | 2017-07-03T01:57:49.000Z | 2020-01-24T19:28:22.000Z | ModelViewer/ViewerFoundation/Utilities/Mac/NuoMathVectorMac.cpp | erpapa/NuoModelViewer | 0dcb8bf99cb49c6e2c9535ed178e01674fa26824 | [
"MIT"
] | 39 | 2016-09-30T03:26:44.000Z | 2022-01-24T07:37:20.000Z | //
// NuoMathVectorMac.cpp
// ModelViewer
//
// Created by Dong on 5/11/18.
// Copyright © 2018 middleware. All rights reserved.
//
#include "NuoMathVector.h"
NuoMatrix<float, 4> NuoMatrixPerspective(float aspect, float fovy, float near, float far)
{
// NOT use OpenGL persepctive!
// Metal uses a 2x2x1 ... | 32.025316 | 108 | 0.574308 | erpapa |
89695b0c3ce7a7ca5653d58a6d4d5ac2992fa841 | 5,038 | cpp | C++ | src/3d/terrain/qgsterraintexturegenerator_p.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/3d/terrain/qgsterraintexturegenerator_p.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/3d/terrain/qgsterraintexturegenerator_p.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgsterraintexturegenerator_p.cpp
--------------------------------------
Date : July 2017
Copyright : (C) 2017 by Martin Dobias
Email : wonder dot sk at gmail dot com
************************... | 32.503226 | 113 | 0.636364 | dyna-mis |
896a764a59b612ca80555b65214fb7f02534698c | 2,823 | cpp | C++ | services/minijail/av_services_minijail_unittest.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | services/minijail/av_services_minijail_unittest.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | services/minijail/av_services_minijail_unittest.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | 2 | 2021-07-08T07:42:11.000Z | 2021-07-09T21:56:10.000Z | // Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 32.079545 | 111 | 0.678711 | Dreadwyrm |
896ca4d778cd2355e08c687be98e524c1b250c5c | 38,985 | cc | C++ | L1Trigger/L1TMuonEndCap/src/PrimitiveSelection.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 2 | 2020-01-21T11:23:39.000Z | 2020-01-21T11:23:42.000Z | L1Trigger/L1TMuonEndCap/src/PrimitiveSelection.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 8 | 2020-03-20T23:18:36.000Z | 2020-05-27T11:00:06.000Z | L1Trigger/L1TMuonEndCap/src/PrimitiveSelection.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2019-03-09T13:06:43.000Z | 2020-07-03T00:47:30.000Z | #include "L1Trigger/L1TMuonEndCap/interface/PrimitiveSelection.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "DataFormats/MuonDetId/interface/GEMDetId.h"
#include "L1Trigger/L1TMuonEndCap/... | 41.473404 | 120 | 0.61085 | NTrevisani |
896ec41d3f737e552a62203d2087690a18c7e4c8 | 3,819 | hpp | C++ | opencv/sources/modules/videoio/src/precomp.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | opencv/sources/modules/videoio/src/precomp.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | opencv/sources/modules/videoio/src/precomp.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... | 36.028302 | 102 | 0.701231 | vrushank-agrawal |
89702e71cf3a93e27441480fdfd461f2bff7935b | 522 | hpp | C++ | lock_screen_widget.hpp | eggfly/singsang | d59ec88f7ad1dcc89f4c86f7e4b20256e32225ec | [
"MIT"
] | 1 | 2022-02-14T13:48:32.000Z | 2022-02-14T13:48:32.000Z | lock_screen_widget.hpp | eggfly/singsang | d59ec88f7ad1dcc89f4c86f7e4b20256e32225ec | [
"MIT"
] | null | null | null | lock_screen_widget.hpp | eggfly/singsang | d59ec88f7ad1dcc89f4c86f7e4b20256e32225ec | [
"MIT"
] | null | null | null | #ifndef SINGSANG_LOCK_SCREEN_WIDGET_HPP
#define SINGSANG_LOCK_SCREEN_WIDGET_HPP
#include "base_widget.hpp"
namespace singsang
{
class CLockScreenWidget : public CBaseWidget
{
public:
CLockScreenWidget() : CBaseWidget(251, 30, 64, 64) {}
void update() {}
void draw(const bool f_updateOnly)
{
M... | 20.88 | 72 | 0.693487 | eggfly |
89704a7a5083eedf076c0369a1476f54670b12a5 | 3,127 | cpp | C++ | first/src/tests/test3d_textures/Test3dTextures.cpp | DeeJack/opengl_first_project | 29a6ec89d80046ceb575c02d009e611b835f49fe | [
"MIT"
] | null | null | null | first/src/tests/test3d_textures/Test3dTextures.cpp | DeeJack/opengl_first_project | 29a6ec89d80046ceb575c02d009e611b835f49fe | [
"MIT"
] | null | null | null | first/src/tests/test3d_textures/Test3dTextures.cpp | DeeJack/opengl_first_project | 29a6ec89d80046ceb575c02d009e611b835f49fe | [
"MIT"
] | null | null | null | #include "Test3dTextures.h"
#include "../../textures/Texture.h"
#include "imgui/imgui.h"
namespace test
{
Test3dTextures::Test3dTextures()
: _shader("res/shaders/basic3d_texture.shader")
{
_shader.bind();
glDisable(GL_BLEND);
/*float colors[] = {
1.F, 0.F, 0.F,
1.F, 0.3F, 0.F,
1.F, 0.6F, 0.F,
... | 29.780952 | 96 | 0.62552 | DeeJack |
89705103fc7ceb3592557f9cbbc1f57c2b7479ee | 431 | cc | C++ | examples/0006.file_io/file_loader.cc | clayne/fast_io | 1d7e12ea551d87e187a5a8881d9227ba3ea3b8a0 | [
"MIT"
] | 157 | 2021-07-12T07:19:15.000Z | 2022-02-16T02:22:45.000Z | examples/0006.file_io/file_loader.cc | clayne/fast_io | 1d7e12ea551d87e187a5a8881d9227ba3ea3b8a0 | [
"MIT"
] | 7 | 2021-08-02T05:06:23.000Z | 2021-12-26T10:32:18.000Z | examples/0006.file_io/file_loader.cc | clayne/fast_io | 1d7e12ea551d87e187a5a8881d9227ba3ea3b8a0 | [
"MIT"
] | 17 | 2022-02-19T20:16:18.000Z | 2022-03-29T20:50:49.000Z | #include<fast_io.h>
int main(int argc,char** argv)
{
if(argc!=2)
{
perr("Usage: ",fast_io::mnp::os_c_str(*argv)," <file>\n");
return 1;
}
fast_io::native_file_loader loader(::fast_io::mnp::os_c_str(argv[1]));
//This will load entire file to memory through memory mapping.
/*
This is a contiguous container o... | 20.52381 | 71 | 0.663573 | clayne |
897085571ccad7980acbdf142423925e953d4f52 | 927 | hpp | C++ | include/State/Menu.hpp | sarahkittyy/platform.sh | 8ddd8f412a70041153f555b4ba5bb56056e804e4 | [
"MIT"
] | null | null | null | include/State/Menu.hpp | sarahkittyy/platform.sh | 8ddd8f412a70041153f555b4ba5bb56056e804e4 | [
"MIT"
] | null | null | null | include/State/Menu.hpp | sarahkittyy/platform.sh | 8ddd8f412a70041153f555b4ba5bb56056e804e4 | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
#include <cmath>
#include <iostream>
#include "GFX/Tilemap.hpp"
#include "State/Edit.hpp"
#include "State/Game.hpp"
#include "State/State.hpp"
#include "Util/ImGuiShell.hpp"
#include "imgui/imgui-SFML.h"
#include "imgui/imgui.h"
namespace State
{
/**
* @brief The main menu.... | 17.490566 | 76 | 0.686084 | sarahkittyy |
8972776657dfc55ad0be921f0f03d98ba0191869 | 4,079 | cpp | C++ | cpp/0_check/modernes_cpp_source/source/newAlgorithm.cpp | shadialameddin/numerical_tools_and_friends | cc9f10f58886ee286ed89080e38ebd303d3c72a5 | [
"Unlicense"
] | null | null | null | cpp/0_check/modernes_cpp_source/source/newAlgorithm.cpp | shadialameddin/numerical_tools_and_friends | cc9f10f58886ee286ed89080e38ebd303d3c72a5 | [
"Unlicense"
] | null | null | null | cpp/0_check/modernes_cpp_source/source/newAlgorithm.cpp | shadialameddin/numerical_tools_and_friends | cc9f10f58886ee286ed89080e38ebd303d3c72a5 | [
"Unlicense"
] | null | null | null | // newAlgorithm.cpp
#include <hpx/hpx_init.hpp>
#include <hpx/hpx.hpp>
#include <hpx/include/parallel_numeric.hpp>
#include <hpx/include/parallel_algorithm.hpp>
#include <hpx/include/iostreams.hpp>
#include <string>
#include <vector>
int hpx_main(){
hpx::cout << hpx::endl;
// for_each_n
std::vector<i... | 38.847619 | 149 | 0.471439 | shadialameddin |
897499ebbbd3e9d568eacbfdc6527aaac1a4bd89 | 8,295 | cpp | C++ | src/runtime/regiondataraw.cpp | petabricks/petabricks | b498b93880b0c4ac3924ddb82cff2e6541e60bd1 | [
"MIT"
] | 10 | 2015-03-12T18:09:57.000Z | 2022-03-17T03:18:36.000Z | src/runtime/regiondataraw.cpp | petabricks/petabricks | b498b93880b0c4ac3924ddb82cff2e6541e60bd1 | [
"MIT"
] | 2 | 2021-01-12T15:12:21.000Z | 2022-03-22T07:47:37.000Z | src/runtime/regiondataraw.cpp | petabricks/petabricks | b498b93880b0c4ac3924ddb82cff2e6541e60bd1 | [
"MIT"
] | 3 | 2017-06-28T06:01:03.000Z | 2021-01-12T15:05:34.000Z | #include "regiondataraw.h"
#include "matrixio.h"
using namespace petabricks;
using namespace petabricks::RegionDataRemoteMessage;
RegionDataRaw::RegionDataRaw(const int dimensions, const IndexT* size) {
init(dimensions, size, NULL);
}
RegionDataRaw::RegionDataRaw(const int dimensions, const IndexT* size, const El... | 33.995902 | 249 | 0.729837 | petabricks |
89767ac7fa89a5fa716a4ebbcc997fddb5c791c1 | 674 | cpp | C++ | Source/DemoScene/Vector2.cpp | ookumaneko/PC-Psp-Cross-Platform-Demoscene | 0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e | [
"MIT"
] | null | null | null | Source/DemoScene/Vector2.cpp | ookumaneko/PC-Psp-Cross-Platform-Demoscene | 0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e | [
"MIT"
] | null | null | null | Source/DemoScene/Vector2.cpp | ookumaneko/PC-Psp-Cross-Platform-Demoscene | 0c192f9ecf5a4fd9db3c9a2c9998b365bf480c1e | [
"MIT"
] | null | null | null | #include "Vector2.h"
//--------------------------------------//
//---------------Common Methods---------//
//--------------------------------------//
Vector2::Vector2(void)
{
_vec.x = 0;
_vec.y = 0;
}
Vector2::Vector2(float x, float y)
{
_vec.x = x;
_vec.y = y;
}
Vector2::~Vector2(void)
{
}
float& Vector2::X(... | 10.369231 | 42 | 0.510386 | ookumaneko |
8977a8c6504a2a0c971d8880dbe16757ec3d590f | 297 | cpp | C++ | getdate.cpp | eqvpkbz/old.eqvpkbz.github.io | 0adb4b7400248d3caf4a8e12525279d19c2ba83f | [
"MIT"
] | null | null | null | getdate.cpp | eqvpkbz/old.eqvpkbz.github.io | 0adb4b7400248d3caf4a8e12525279d19c2ba83f | [
"MIT"
] | null | null | null | getdate.cpp | eqvpkbz/old.eqvpkbz.github.io | 0adb4b7400248d3caf4a8e12525279d19c2ba83f | [
"MIT"
] | null | null | null | #include<iostream>
#include<ctime>
#include<cstdio>
using namespace std;
int main()
{
time_t tt;time(&tt);
tt = tt + 8*3600;
tm* t= gmtime(&tt);
printf("%d-%02d-%02d %02d:%02d:%02d\n",t->tm_year + 1900,t->tm_mon + 1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);
return 0;
}
| 17.470588 | 118 | 0.599327 | eqvpkbz |
897b1f2443e279c14f2cb3ebcb348f03175a96c1 | 2,440 | cc | C++ | ash/capture_mode/capture_mode_source_view.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/capture_mode/capture_mode_source_view.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/capture_mode/capture_mode_source_view.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/capture_mode/capture_mode_source_view.h"
#include <memory>
#include "ash/capture_mode/capture_mode_controller.h"
#include "ash/capture_mod... | 38.730159 | 79 | 0.707377 | mghgroup |
897b956ca89388f61334f61f6fb6d5126ee42123 | 26,785 | cpp | C++ | CPP/Targets/GlobeLib/globe/src/gbGlobe.cpp | wayfinder/Wayfinder-S60-Navigator | 14d1b729b2cea52f726874687e78f17492949585 | [
"BSD-3-Clause"
] | 6 | 2015-12-01T01:12:33.000Z | 2021-07-24T09:02:34.000Z | CPP/Targets/GlobeLib/globe/src/gbGlobe.cpp | wayfinder/Wayfinder-S60-Navigator | 14d1b729b2cea52f726874687e78f17492949585 | [
"BSD-3-Clause"
] | null | null | null | CPP/Targets/GlobeLib/globe/src/gbGlobe.cpp | wayfinder/Wayfinder-S60-Navigator | 14d1b729b2cea52f726874687e78f17492949585 | [
"BSD-3-Clause"
] | 2 | 2017-02-02T19:31:29.000Z | 2018-12-17T21:00:45.000Z | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 ... | 27.843035 | 756 | 0.532612 | wayfinder |
897d147d0850d676513a5ba5caea01cb3371d90d | 2,007 | cpp | C++ | DiscoveryService.cpp | jambamamba/DiscoveryService | 0eae060bb9ac43ee91ca7c5596862588d130a4f6 | [
"Apache-2.0"
] | null | null | null | DiscoveryService.cpp | jambamamba/DiscoveryService | 0eae060bb9ac43ee91ca7c5596862588d130a4f6 | [
"Apache-2.0"
] | null | null | null | DiscoveryService.cpp | jambamamba/DiscoveryService | 0eae060bb9ac43ee91ca7c5596862588d130a4f6 | [
"Apache-2.0"
] | null | null | null | #include "DiscoveryService.h"
#include <arpa/inet.h>
#include <iostream>
#include <netinet/in.h>
#include <regex>
#include <string>
#include <sys/socket.h>
#include <sys/stat.h>
#include "Utils.h"
namespace {
}//namespace
//---------------------------------------------------------------------------... | 35.839286 | 139 | 0.567015 | jambamamba |
897d896ac45b96e0c76ab0c732c90bfafc71e0c0 | 2,054 | cpp | C++ | Engine/Plugins/Tests/EditorTests/Source/EditorTests/Private/UnrealEd/EditorOpenAssetAutomationTests.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Plugins/Tests/EditorTests/Source/EditorTests/Private/UnrealEd/EditorOpenAssetAutomationTests.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Plugins/Tests/EditorTests/Source/EditorTests/Private/UnrealEd/EditorOpenAssetAutomationTests.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "CoreMinimal.h"
#include "Misc/Paths.h"
#include "Misc/AutomationTest.h"
#include "Misc/App.h"
#include "UObject/Object.h"
#include "Tests/AutomationTestSettings.h"
#include "Tests/AutomationEditorCommon.h"
#include "Tests/AutomationCommon.h"
#incl... | 35.413793 | 158 | 0.777507 | windystrife |
897effcc6d0ab478ccc799fb07f40f44c35f68e9 | 769 | cpp | C++ | ECOO/ECOO_21_P4_Chris_Candy.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | null | null | null | ECOO/ECOO_21_P4_Chris_Candy.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-10-14T18:26:56.000Z | 2021-10-14T18:26:56.000Z | ECOO/ECOO_21_P4_Chris_Candy.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-08-06T03:39:55.000Z | 2021-08-06T03:39:55.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll K, cnt, sqrtK;
vector<ll> nums;
void fetch(ll x) {
cnt++;
for (ll i = 0; i < x; i++) {
nums.push_back(cnt);
if (nums.size() > 1e5) {
return;
}
}
}
int main() {
ios::sync_with_stdio(0);
c... | 14.509434 | 37 | 0.383615 | Togohogo1 |
89869fe4cb06b29a57c1a2e7077528ea2a55a90d | 12,463 | cpp | C++ | test/OpenDDLIntegrationTest.cpp | lerppana/openddl-parser | a9bc8a5dee880d546136e33a5977d7a0a28eaa20 | [
"MIT"
] | 24 | 2015-02-08T23:16:05.000Z | 2021-07-15T07:31:08.000Z | test/OpenDDLIntegrationTest.cpp | lerppana/openddl-parser | a9bc8a5dee880d546136e33a5977d7a0a28eaa20 | [
"MIT"
] | 64 | 2015-01-28T21:42:06.000Z | 2021-11-01T07:49:24.000Z | test/OpenDDLIntegrationTest.cpp | lerppana/openddl-parser | a9bc8a5dee880d546136e33a5977d7a0a28eaa20 | [
"MIT"
] | 10 | 2015-11-17T09:18:57.000Z | 2021-10-06T18:59:05.000Z | /*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2014-2020 Kim Kulling
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 ... | 43.425087 | 340 | 0.569686 | lerppana |
8986eef35057cab8245c6d8823d2b202f636f0a1 | 1,126 | cpp | C++ | PhysicalLayer/Crc.cpp | roncato/PhysicalLayerSimulator | 06570f402f2aef230ebf3cb36a4372c03c08e504 | [
"BSD-3-Clause"
] | 1 | 2021-09-23T08:25:37.000Z | 2021-09-23T08:25:37.000Z | PhysicalLayer/Crc.cpp | roncato/PhysicalLayerSimulator | 06570f402f2aef230ebf3cb36a4372c03c08e504 | [
"BSD-3-Clause"
] | null | null | null | PhysicalLayer/Crc.cpp | roncato/PhysicalLayerSimulator | 06570f402f2aef230ebf3cb36a4372c03c08e504 | [
"BSD-3-Clause"
] | null | null | null | #include "Crc.h"
Crc::Crc()
{
Initialize();
}
void Crc::Initialize(void)
{
uint16_T remainder;
/*
* Compute the remainder of each possible dividend.
*/
for (int dividend = 0; dividend < 256; ++dividend)
{
/*
* Start with the dividend followed by zeros.
*/
remainder = dividend << (WIDTH - 8);
/*
*... | 16.558824 | 63 | 0.595027 | roncato |
898a9117b2f5593cd6a8e6350897187ab58b7a28 | 6,746 | cpp | C++ | ProjectEuler+/euler-0058.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0058.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0058.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | 1 | 2021-05-28T11:14:34.000Z | 2021-05-28T11:14:34.000Z | // ////////////////////////////////////////////////////////
// # Title
// Spiral primes
//
// # URL
// https://projecteuler.net/problem=58
// http://euler.stephan-brumme.com/58/
//
// # Problem
// Starting with 1 and spiralling anticlockwise in the following way, a square spiral with side length 7 is formed.
//
// ''__... | 29.203463 | 151 | 0.589386 | sarvekash |
898b35ac17755bdec68108bcf95660ead020c425 | 499 | cpp | C++ | ch1/Babylonian_sqr/algorithm.cpp | omar659/Algorithms-Sequential-Parallel-Distributed | 3543631139a20625f413cea2ba1f013f3a40d123 | [
"MIT"
] | 2 | 2020-02-19T09:27:20.000Z | 2020-02-19T09:28:21.000Z | ch1/Babylonian_sqr/algorithm.cpp | omar-3/Algorithms-Sequential-Parallel-Distributed | 3543631139a20625f413cea2ba1f013f3a40d123 | [
"MIT"
] | null | null | null | ch1/Babylonian_sqr/algorithm.cpp | omar-3/Algorithms-Sequential-Parallel-Distributed | 3543631139a20625f413cea2ba1f013f3a40d123 | [
"MIT"
] | null | null | null | /*
sqrt(a) * sqrt(a) = a
so sqrt(a) is the side of square with area a
and we keep two numbers as the side of a polygon with area a
and make them get closer together by averaging <3
*/
#include <iostream>
using namespace std;
typedef long double number; //you need to use double so t... | 24.95 | 107 | 0.607214 | omar659 |
89909eaa0da1334b197f4a98dac4e37d652b9dbe | 6,066 | cpp | C++ | nohotspot-skiplist/skiplist.cpp | jyizheng/hydralist | 910dad17eab4815057e3ea3e46b02f6ce45d7e46 | [
"Apache-2.0"
] | 17 | 2020-11-25T17:45:21.000Z | 2021-12-24T06:18:33.000Z | nohotspot-skiplist/skiplist.cpp | jyizheng/hydralist | 910dad17eab4815057e3ea3e46b02f6ce45d7e46 | [
"Apache-2.0"
] | null | null | null | nohotspot-skiplist/skiplist.cpp | jyizheng/hydralist | 910dad17eab4815057e3ea3e46b02f6ce45d7e46 | [
"Apache-2.0"
] | 6 | 2020-11-20T17:21:46.000Z | 2022-01-21T04:35:24.000Z | /*
* skiplist.c: definitions of the skip list data stucture
*
* Author: Ian Dick, 2013
*
*/
/*
Module overview
This module provides the basic structures used to create the
skip list data structure, as described in:
Crain, T., Gramoli, V., Raynal, M. (2013)
"No Hot-Spot Non-Blocking Skip List", to appear in
T... | 25.487395 | 77 | 0.5788 | jyizheng |
8993ddc93dcddec9532c3760f4c4a6294eb18841 | 2,032 | cpp | C++ | Blake2/Blake2/MacDescription.cpp | Steppenwolfe65/Blake2 | 9444e194323f98bb797816bc774d202276d17243 | [
"Intel",
"MIT"
] | 1 | 2016-11-09T05:34:58.000Z | 2016-11-09T05:34:58.000Z | Blake2/Blake2/MacDescription.cpp | Steppenwolfe65/Blake2 | 9444e194323f98bb797816bc774d202276d17243 | [
"Intel",
"MIT"
] | null | null | null | Blake2/Blake2/MacDescription.cpp | Steppenwolfe65/Blake2 | 9444e194323f98bb797816bc774d202276d17243 | [
"Intel",
"MIT"
] | null | null | null | #include "MacDescription.h"
#include "StreamWriter.h"
NAMESPACE_PROCESSING
MacDescription MacDescription::HMACSHA256()
{
return MacDescription(64, Digests::SHA256);
}
MacDescription MacDescription::HMACSHA512()
{
return MacDescription(128, Digests::SHA512);
}
MacDescription MacDescription::CMACAES256()
{
return ... | 22.086957 | 66 | 0.745079 | Steppenwolfe65 |
899427e31a052756f875032d960f415a91e758b1 | 1,295 | cpp | C++ | Demo/widget.cpp | Skycoder42/qtrng | 4bb840d80ff270c3c8cbe5bcd8bdda0503ce030e | [
"BSD-3-Clause"
] | 2 | 2019-03-21T12:32:11.000Z | 2020-09-25T01:00:17.000Z | Demo/widget.cpp | Skycoder42/qtrng | 4bb840d80ff270c3c8cbe5bcd8bdda0503ce030e | [
"BSD-3-Clause"
] | null | null | null | Demo/widget.cpp | Skycoder42/qtrng | 4bb840d80ff270c3c8cbe5bcd8bdda0503ce030e | [
"BSD-3-Clause"
] | null | null | null | #include "widget.h"
#include "ui_widget.h"
#include <QDebug>
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget),
random(new QRng(this))
{
ui->setupUi(this);
on_entropyButton_clicked();
connect(ui->securityLevelComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
random, [this](in... | 21.583333 | 88 | 0.677992 | Skycoder42 |
8997b298451bb1e58de3c8a7830040160a7c6ace | 2,028 | cpp | C++ | Src/Plugin/Wonderland/WonderlandPlugin.cpp | prophecy/Pillar | a60b07857e66312ee94d69678b1ca8c97b1a19eb | [
"MIT"
] | 2 | 2017-07-19T03:23:27.000Z | 2018-01-16T04:26:53.000Z | Src/Plugin/Wonderland/WonderlandPlugin.cpp | prophecy/Pillar | a60b07857e66312ee94d69678b1ca8c97b1a19eb | [
"MIT"
] | null | null | null | Src/Plugin/Wonderland/WonderlandPlugin.cpp | prophecy/Pillar | a60b07857e66312ee94d69678b1ca8c97b1a19eb | [
"MIT"
] | null | null | null | /*
* This source file is part of Wonderland, the C++ Cross-platform middleware for game
*
* For the latest information, see https://github.com/prophecy/Wonderland
*
* The MIT License (MIT)
* Copyright (c) 2015 Adawat Chanchua
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of... | 34.965517 | 85 | 0.751972 | prophecy |
89a3b1a7c81e269e6830dee582b3d8210e6fa052 | 315 | cxx | C++ | example/wake_ptr.cxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 2 | 2016-11-20T04:59:17.000Z | 2017-02-13T01:44:37.000Z | example/wake_ptr.cxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 3 | 2015-09-28T12:00:02.000Z | 2015-09-28T12:03:21.000Z | example/wake_ptr.cxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 3 | 2017-07-02T06:09:47.000Z | 2018-07-09T01:00:57.000Z | #include <usagi/memory/wake_ptr.hxx>
#include <vector>
#include <iostream>
auto main() -> int
{
using t = std::vector<int>;
auto b = std::make_shared< t >();
using namespace usagi::memory;
wake_ptr< t > a = b;
a->emplace_back( 123 );
a->emplace_back( 456 );
std::cout << a->front() << (*a)[1];
}
| 18.529412 | 37 | 0.6 | usagi |
89aa380bf9a9743deae08388709215a54b70e8cb | 12,846 | cpp | C++ | MACHINATH/MACHINATH/sound.cpp | susajin/MACHINATH | 1e75097f86218f143411885240bbcf211a6e9c99 | [
"MIT"
] | null | null | null | MACHINATH/MACHINATH/sound.cpp | susajin/MACHINATH | 1e75097f86218f143411885240bbcf211a6e9c99 | [
"MIT"
] | null | null | null | MACHINATH/MACHINATH/sound.cpp | susajin/MACHINATH | 1e75097f86218f143411885240bbcf211a6e9c99 | [
"MIT"
] | null | null | null | //=============================================================================
//
// �T�E���h���� [sound.cpp]
//
//=============================================================================
#include <XAudio2.h>
#include <mmsystem.h>
#include "sound.h"
#include "common.h"
#pragma comment (lib, "xaudio2.li... | 27.74514 | 114 | 0.553324 | susajin |
89af011de156c8e203dc82c575ccc2e901652609 | 1,993 | hpp | C++ | src/tests/sequential/cusum.hpp | ropufu/aftermath | ab9364c41672a188879d84ebebb5a23f2d6641ec | [
"MIT"
] | null | null | null | src/tests/sequential/cusum.hpp | ropufu/aftermath | ab9364c41672a188879d84ebebb5a23f2d6641ec | [
"MIT"
] | null | null | null | src/tests/sequential/cusum.hpp | ropufu/aftermath | ab9364c41672a188879d84ebebb5a23f2d6641ec | [
"MIT"
] | null | null | null |
#ifndef ROPUFU_AFTERMATH_TESTS_SEQUENTIAL_CUSUM_HPP_INCLUDED
#define ROPUFU_AFTERMATH_TESTS_SEQUENTIAL_CUSUM_HPP_INCLUDED
#include <doctest/doctest.h>
#include "../core.hpp"
#include "../../ropufu/random/binomial_sampler.hpp"
#include "../../ropufu/random/normal_sampler_512.hpp"
#include "../../ropufu/random/uniform... | 31.634921 | 85 | 0.690416 | ropufu |
89afea239baecbe7c4dc22b736d7ac16a69051df | 5,574 | hpp | C++ | include/dca/math/gaussian_processes/gaussian_fit.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 27 | 2018-08-02T04:28:23.000Z | 2021-07-08T02:14:20.000Z | include/dca/math/gaussian_processes/gaussian_fit.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 200 | 2018-08-02T18:19:03.000Z | 2022-03-16T21:28:41.000Z | include/dca/math/gaussian_processes/gaussian_fit.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 22 | 2018-08-15T15:50:00.000Z | 2021-09-30T13:41:46.000Z | // Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Peter Staar (taa@zurich.ibm.com)
//
// This class implements a Gaussian fit.
#ifn... | 32.406977 | 99 | 0.679046 | PMDee |
89b0a22fac661cc0d7f9419e6fba137712dc3791 | 1,112 | cpp | C++ | Programacion Competitiva/Contest/HighestValuePalindrome.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | Programacion Competitiva/Contest/HighestValuePalindrome.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | Programacion Competitiva/Contest/HighestValuePalindrome.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
std::string highest_value_palindrome(std::string s, int k);
int main(){
int n,k;
std::cin >> n >> k;
std::string s;
std::cin >> s;
std::cout << highest_value_palindrome(s, k) << std::endl;
return 0;
}
std::string hi... | 20.592593 | 61 | 0.417266 | Angel1612 |
89b0dba6edb269ea1581158ed9ad3025e2c63032 | 14,659 | cpp | C++ | ds/security/gina/snapins/ade/rsoputil.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/gina/snapins/ade/rsoputil.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/gina/snapins/ade/rsoputil.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1994 - 1997.
//
// File: rsoputil.cpp
//
// Contents: helper functions for working with the RSOP databases
//
// History: 10-18-1999 stevebl Created
... | 25.762742 | 125 | 0.497442 | npocmaka |
89b2197cab272b06bd62ceea4dbd7ab38ed77dc4 | 1,774 | cc | C++ | archetype/TestWrappedOutput.cc | gitosaurus/archetype | 849cd50e653adab6e5ca6f23d5350217a8a4d025 | [
"MIT"
] | 6 | 2015-05-04T17:18:54.000Z | 2021-01-24T16:23:56.000Z | archetype/TestWrappedOutput.cc | gitosaurus/archetype | 849cd50e653adab6e5ca6f23d5350217a8a4d025 | [
"MIT"
] | null | null | null | archetype/TestWrappedOutput.cc | gitosaurus/archetype | 849cd50e653adab6e5ca6f23d5350217a8a4d025 | [
"MIT"
] | null | null | null | //
// TestWrappedOutput.cpp
// archetype
//
// Created by Derek Jones on 9/21/14.
// Copyright (c) 2014 Derek Jones. All rights reserved.
//
#include <iostream>
#include <string>
#include <sstream>
#include <deque>
#include <iterator>
#include "TestWrappedOutput.hh"
#include "TestRegistry.hh"
#include "StringOutp... | 31.122807 | 99 | 0.654453 | gitosaurus |
89b5081b750a5e5ac1fcd4fe39900575790b25e8 | 404 | cpp | C++ | pow_sha1/src/_main.cpp | mzk84/phi | 69c0535eff9f301daaa67e80aa01f39d7ace2b4b | [
"Unlicense"
] | null | null | null | pow_sha1/src/_main.cpp | mzk84/phi | 69c0535eff9f301daaa67e80aa01f39d7ace2b4b | [
"Unlicense"
] | null | null | null | pow_sha1/src/_main.cpp | mzk84/phi | 69c0535eff9f301daaa67e80aa01f39d7ace2b4b | [
"Unlicense"
] | null | null | null | #include "_includes.h"
#include "mzk84_commons.h"
#include "PoW_SHA1.h"
int main() {
std::cout << "\n************************************************************\n";
std::cout << "Proof of Work SHA1 Test\n\n";
size_t prefix_len = 64;
size_t difficulty = 6;
for (auto i = 0; i < 5; i++) {
std::string prefix = ... | 23.764706 | 81 | 0.554455 | mzk84 |
89b63e39c6bf70d33d9364c1447d494aaa788823 | 971 | hpp | C++ | src/LoadInformations.hpp | jkalter11/freeshop | c7b1858ed713732b8ff9afa116f05a1ed9a4d4c3 | [
"MIT"
] | 1 | 2021-05-11T10:40:14.000Z | 2021-05-11T10:40:14.000Z | src/LoadInformations.hpp | jkalter11/freeshop | c7b1858ed713732b8ff9afa116f05a1ed9a4d4c3 | [
"MIT"
] | null | null | null | src/LoadInformations.hpp | jkalter11/freeshop | c7b1858ed713732b8ff9afa116f05a1ed9a4d4c3 | [
"MIT"
] | 2 | 2021-06-05T15:51:05.000Z | 2022-02-03T20:44:33.000Z | #ifndef FREESHOP_LOADINFORMATIONS_HPP
#define FREESHOP_LOADINFORMATIONS_HPP
#include <cpp3ds/Graphics/Drawable.hpp>
#include <cpp3ds/Graphics/Text.hpp>
#include <cpp3ds/Window/Event.hpp>
#include "TweenObjects.hpp"
#include <TweenEngine/Tween.h>
#include <TweenEngine/TweenManager.h>
namespace FreeShop {
class LoadIn... | 23.119048 | 109 | 0.797116 | jkalter11 |
89b846212984ab98ac5310f8acd9ec1139074a7c | 1,978 | cpp | C++ | src/tt.cpp | am1w1zz/CppLearn | 16db21cb5cc9ca14e488f4f40923b756de18e354 | [
"MIT"
] | null | null | null | src/tt.cpp | am1w1zz/CppLearn | 16db21cb5cc9ca14e488f4f40923b756de18e354 | [
"MIT"
] | null | null | null | src/tt.cpp | am1w1zz/CppLearn | 16db21cb5cc9ca14e488f4f40923b756de18e354 | [
"MIT"
] | null | null | null | #include<iostream>
#include <vector>
#include "tt.h"
struct aa {
void f(int x ,int y) {
std::cout<<"void"<<std::endl;
return ;
}
void f(int x,int y )const {
std::cout<<"int"<<std::endl;
return ;
}
~aa() {
std::cout<<"aa"<<std::endl;
}
};
struct bb : a... | 18.314815 | 80 | 0.455005 | am1w1zz |
89b8a472747572f02648ee1674f0857d0aa23f25 | 1,400 | cpp | C++ | Sudoku/Sudoku_cpp_linux/src/main.cpp | SleepyLGod/Miscellaneous | 1e4e1d5b915de9e2c4a6240f4940e9eeabe7e943 | [
"Apache-2.0"
] | 1 | 2021-09-06T12:22:59.000Z | 2021-09-06T12:22:59.000Z | Sudoku/Sudoku_cpp_linux/src/main.cpp | SleepyLGod/GitRepository_lhd | e41db820a2b7f1efc109a9d23002d6ebb7785b10 | [
"Apache-2.0"
] | null | null | null | Sudoku/Sudoku_cpp_linux/src/main.cpp | SleepyLGod/GitRepository_lhd | e41db820a2b7f1efc109a9d23002d6ebb7785b10 | [
"Apache-2.0"
] | null | null | null | /**
* main.c
* 基于SAT的数独游戏求解程序
*
* Created by 路昊东 on 2021/9/10
* Copyright ? 2021 路昊东. All rights reserved.
*/
#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include "../cnf.h"
#include "../DPLL.h"
#include "../Sudoku.h"
extern ArgueValue *ValueList;
extern Root *r;
int main(int argc, const ch... | 27.45098 | 160 | 0.39 | SleepyLGod |
89bdb539249e2db4bad0da72bebba8cbc08e72fc | 2,550 | hpp | C++ | src/solvers/temporal/point_algebra/QualitativeTimePoint.hpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T12:15:15.000Z | 2022-03-31T12:15:15.000Z | src/solvers/temporal/point_algebra/QualitativeTimePoint.hpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | null | null | null | src/solvers/temporal/point_algebra/QualitativeTimePoint.hpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | 1 | 2021-12-29T10:38:07.000Z | 2021-12-29T10:38:07.000Z | #ifndef TEMPL_SOLVERS_TEMPORAL_POINT_ALGEBRA_QUALITATIVE_TIME_POINT_HPP
#define TEMPL_SOLVERS_TEMPORAL_POINT_ALGEBRA_QUALITATIVE_TIME_POINT_HPP
#include <graph_analysis/VertexRegistration.hpp>
#include "TimePoint.hpp"
namespace templ {
namespace solvers {
namespace temporal {
namespace point_algebra {
/**
* \class ... | 29.651163 | 113 | 0.717255 | tomcreutz |
89c1670532dfc7e5456bbf05a770a97ea580a086 | 16,394 | cc | C++ | network/slirp/bootp.cc | rahimazizarab/sand-dyn75 | f5462445ce53b9b769e295928cc1e9203bce78b1 | [
"BSD-2-Clause"
] | null | null | null | network/slirp/bootp.cc | rahimazizarab/sand-dyn75 | f5462445ce53b9b769e295928cc1e9203bce78b1 | [
"BSD-2-Clause"
] | null | null | null | network/slirp/bootp.cc | rahimazizarab/sand-dyn75 | f5462445ce53b9b769e295928cc1e9203bce78b1 | [
"BSD-2-Clause"
] | null | null | null | /////////////////////////////////////////////////////////////////////////
// $Id: bootp.cc 12269 2014-04-02 17:38:09Z vruppert $
/////////////////////////////////////////////////////////////////////////
/*
* BOOTP/DHCP server (ported from Qemu)
* Bochs additions: parameter list and some other options
*
* Copyright ... | 34.22547 | 107 | 0.485909 | rahimazizarab |
89c340ae80e58b5779e1aa36976412f7276cfd8d | 3,389 | cpp | C++ | VC2010Samples/MFC/general/dlgcbr32/Dlgcbar.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/MFC/general/dlgcbr32/Dlgcbar.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/MFC/general/dlgcbr32/Dlgcbar.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // Dlgcbar.cpp : Defines the class behaviors for the application.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// el... | 27.552846 | 77 | 0.643848 | alonmm |
89c67bff10e8091cc9f928b4191649d6f988b318 | 440 | cpp | C++ | DSA/Notes and examples/comparator.cpp | thefool76/hacktoberfest2021 | 237751e17a4fc325ded29fca013fb9f5853cd27c | [
"CC0-1.0"
] | 448 | 2021-10-01T04:24:14.000Z | 2022-03-06T14:34:20.000Z | DSA/Notes and examples/comparator.cpp | Chanaka-Madushan-Herath/hacktoberfest2021 | 8473df9e058ccb6049720dd372342e0ea60f0e59 | [
"CC0-1.0"
] | 282 | 2021-10-01T04:29:06.000Z | 2022-03-07T12:42:57.000Z | DSA/Notes and examples/comparator.cpp | Chanaka-Madushan-Herath/hacktoberfest2021 | 8473df9e058ccb6049720dd372342e0ea60f0e59 | [
"CC0-1.0"
] | 1,807 | 2021-10-01T04:24:02.000Z | 2022-03-28T04:51:25.000Z | #include <iostream>
#include<algorithm>
using namespace std;
bool compare(int a,int b)
{
//sorts array in decreasing order
return a>b;
}
int main() {
int a[]={10,2,4,5};
cout<<"given array:"<<endl;
for(int i=0;i<4;i++)
{
cout<<a[i]<<endl;
}
//adding function as parameter
... | 15.714286 | 37 | 0.536364 | thefool76 |
89cc12b6fd4de91b2c89b339bf96667e19205a32 | 7,018 | cpp | C++ | HiveCore/src/Buffer/BufferVolumeData.cpp | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | HiveCore/src/Buffer/BufferVolumeData.cpp | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | HiveCore/src/Buffer/BufferVolumeData.cpp | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | /**
* @file BufferVolumeData.cpp
* BufferVolumeDataクラス
*/
#include "BufferVolumeData.h"
#include "Buffer.h"
#include <vector>
#include <algorithm>
namespace {
inline float remap(float x, const float *table, int n) {
int idx = x * n;
idx = (std::max)((std::min)(n - 1, idx), 0);
return table[idx];
}
} // na... | 20.051429 | 105 | 0.568681 | digirea |
89ce1eb64b6faa1b0bcb2dc61cd980cfe26ff6b7 | 571,683 | cc | C++ | ns-allinone-3.27/ns-3.27/build/src/lr-wpan/bindings/ns3module.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | null | null | null | ns-allinone-3.27/ns-3.27/build/src/lr-wpan/bindings/ns3module.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | null | null | null | ns-allinone-3.27/ns-3.27/build/src/lr-wpan/bindings/ns3module.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | null | null | null | #include "ns3module.h"
static PyMethodDef lr_wpan_FatalImpl_functions[] = {
{NULL, NULL, 0, NULL}
};
#if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef lr_wpan_FatalImpl_moduledef = {
PyModuleDef_HEAD_INIT,
"lr_wpan.FatalImpl",
NULL,
-1,
lr_wpan_FatalImpl_functions,
};
#endif
static PyO... | 40.160379 | 494 | 0.676347 | zack-braun |
89cf563a8a467269e12fc835a7fbd6f2d9a44a7f | 6,914 | hh | C++ | RAVL2/Math/Indexing/VectorIndexIterN.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Math/Indexing/VectorIndexIterN.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Math/Indexing/VectorIndexIterN.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2004, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 26.189394 | 153 | 0.59083 | isuhao |
89d1b96a977fae6664c2cb09355c1dd481fa1b41 | 336 | hpp | C++ | inode.hpp | macdice/ds9fs | d6676d7996a2f3b5722b7d37f3aa58233a397aa5 | [
"BSD-2-Clause"
] | 3 | 2021-05-18T18:45:47.000Z | 2021-05-24T14:31:21.000Z | inode.hpp | macdice/dsfs | d6676d7996a2f3b5722b7d37f3aa58233a397aa5 | [
"BSD-2-Clause"
] | null | null | null | inode.hpp | macdice/dsfs | d6676d7996a2f3b5722b7d37f3aa58233a397aa5 | [
"BSD-2-Clause"
] | null | null | null | #ifndef INODE_HPP
#define INODE_HPP
#include <cstddef>
#include <sys/types.h>
struct inode {
virtual ~inode() {}
virtual void write(int fd, const char *data, std::size_t size, off_t offset) = 0;
virtual void truncate(int fd, std::size_t size) = 0;
virtual void synchronize(int fd) = 0;
virtual void lose_power() ... | 19.764706 | 82 | 0.699405 | macdice |
89d4a4127f21642f4525fc464e4f8db5a0456a86 | 6,216 | cpp | C++ | 11_CPP/02_CPP02/ex03/main.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | 11_CPP/02_CPP02/ex03/main.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | 11_CPP/02_CPP02/ex03/main.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... | 56.509091 | 80 | 0.42471 | tderwedu |
89d8899149f99a2917ad76d922e6428c5e7a10cd | 5,161 | cpp | C++ | Akel/src/Renderer/Buffers/vk_buffer.cpp | NurissGames/Akel | 9580f7eb1d4a0dbe20459bd83a5e681a040c29de | [
"MIT"
] | 3 | 2021-12-01T17:59:30.000Z | 2022-01-22T20:29:08.000Z | Akel/src/Renderer/Buffers/vk_buffer.cpp | NurissGames/Akel | 9580f7eb1d4a0dbe20459bd83a5e681a040c29de | [
"MIT"
] | null | null | null | Akel/src/Renderer/Buffers/vk_buffer.cpp | NurissGames/Akel | 9580f7eb1d4a0dbe20459bd83a5e681a040c29de | [
"MIT"
] | 1 | 2021-12-01T17:59:32.000Z | 2021-12-01T17:59:32.000Z | // This file is a part of Akel
// Authors : @kbz_8
// Created : 10/04/2022
// Updated : 08/05/2022
#include "vk_buffer.h"
namespace Ak
{
void Buffer::create(Buffer::kind type, VkDeviceSize size, VkBufferUsageFlags usage, const void* data)
{
if(type == Buffer::kind::constant)
{
if(data == nullptr)
{
Co... | 30.720238 | 140 | 0.757605 | NurissGames |
89dac5024f306b7fca25809226bb3c32db59760f | 1,637 | cpp | C++ | pen/class2.cpp | harveywangdao/earth | 665660120a00834f0963ad9163bf4f6a97d11c35 | [
"Apache-2.0"
] | null | null | null | pen/class2.cpp | harveywangdao/earth | 665660120a00834f0963ad9163bf4f6a97d11c35 | [
"Apache-2.0"
] | null | null | null | pen/class2.cpp | harveywangdao/earth | 665660120a00834f0963ad9163bf4f6a97d11c35 | [
"Apache-2.0"
] | null | null | null | #include <cstring>
#include <string>
#include <cstdio>
#include <iostream>
#include <unistd.h>
using namespace std;
class People1
{
public:
int age1;
People1()
{
cout << "People1 object is being created" << endl;
}
virtual int getAge()
{
cout << "People1 getAge" << endl;
return age1;
}
... | 14.234783 | 63 | 0.564447 | harveywangdao |
89dfb0507644feeb4104cdbfdf7c99a4f47ca371 | 54,289 | cpp | C++ | qtensor/qtensor.cpp | ClarkResearchGroup/tensor-tools | 25fe4553991d2680b43301aef1960e4c20f1e146 | [
"Apache-2.0"
] | 8 | 2020-07-14T01:55:51.000Z | 2022-02-12T14:06:59.000Z | qtensor/qtensor.cpp | ClarkResearchGroup/tensor-tools | 25fe4553991d2680b43301aef1960e4c20f1e146 | [
"Apache-2.0"
] | 1 | 2020-07-31T02:43:25.000Z | 2020-08-08T16:18:36.000Z | qtensor/qtensor.cpp | ClarkResearchGroup/tensor-tools | 25fe4553991d2680b43301aef1960e4c20f1e146 | [
"Apache-2.0"
] | 1 | 2020-12-01T03:40:26.000Z | 2020-12-01T03:40:26.000Z | /*
* Copyright 2020 Ryan Levy, Xiongjie Yu, and Bryan K. Clark
*
* 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... | 32.45009 | 141 | 0.607895 | ClarkResearchGroup |
89e1274278a0bff99a3783c7779dbe8b65955b92 | 339 | cpp | C++ | src/Interface/Handling/JsonAPIResourceBuilder.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | 1 | 2021-07-01T18:45:35.000Z | 2021-07-01T18:45:35.000Z | src/Interface/Handling/JsonAPIResourceBuilder.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | null | null | null | src/Interface/Handling/JsonAPIResourceBuilder.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | null | null | null | #include "Interface/Handling/JsonAPIResourceBuilder.h"
namespace Interface::Handling {
JsonAPIResourceBuilder::JsonAPIResourceBuilder()
: JsonAPIAbstractRootResourceBuilder("")
{ }
JsonAPIResourceBuilder::JsonAPIResourceBuilder(const std::string & url)
: JsonAPIAbstractRootResourceBuild... | 21.1875 | 75 | 0.734513 | korenandr |
89e394cf4d0768c3326a5aa7ca1bf8345abddfc5 | 1,494 | cpp | C++ | src/client/sdl/drawables/drawable_text_entry_button.cpp | Santoi/quantum-chess | a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9 | [
"MIT"
] | 9 | 2021-12-22T02:10:34.000Z | 2021-12-30T17:14:25.000Z | src/client/sdl/drawables/drawable_text_entry_button.cpp | Santoi/quantum-chess | a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9 | [
"MIT"
] | null | null | null | src/client/sdl/drawables/drawable_text_entry_button.cpp | Santoi/quantum-chess | a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9 | [
"MIT"
] | null | null | null | #include "drawable_text_entry_button.h"
#include <utility>
#include <string>
DrawableTextEntryButton::DrawableTextEntryButton(
TextSpriteRepository &text_repository,
ButtonSpriteRepository &button_repository,
std::string default_text) :
text_repository(text_repository),
button_repository(button_re... | 31.125 | 80 | 0.668675 | Santoi |
89e7a7d2a32ad560b594975537a29bb715877bda | 5,001 | cpp | C++ | srcdll/cdc.cpp | HPC-Factor/232usb | aaf0e43e20e7e7ea9d5f8b0a2c0ba37bcf0d1567 | [
"BSD-3-Clause"
] | null | null | null | srcdll/cdc.cpp | HPC-Factor/232usb | aaf0e43e20e7e7ea9d5f8b0a2c0ba37bcf0d1567 | [
"BSD-3-Clause"
] | null | null | null | srcdll/cdc.cpp | HPC-Factor/232usb | aaf0e43e20e7e7ea9d5f8b0a2c0ba37bcf0d1567 | [
"BSD-3-Clause"
] | null | null | null | // 232usb Copyright (c) 03-04 Zoroyoshi, Japan
// See source.txt for detail
#include <windows.h>
#include "usbdi.h"
#include "common.h"
#include "file.h"
#include "device.h"
#include "cdc.h"
int cdc_extension::
classissue()
{
if(classut) return -1; //issued
int pkt= classendp->Descriptor.wMaxPacketS... | 27.327869 | 98 | 0.667666 | HPC-Factor |
89e8aa346df247c24ff451f5559150e4d972bc32 | 8,291 | hpp | C++ | rgcmidcpp/src/binutils.hpp | mdsitton/rhythmChartFormat | 1e53aaff34603bee258582293d11d29e0bf53bde | [
"BSD-2-Clause"
] | 8 | 2017-09-20T20:24:29.000Z | 2019-08-10T22:55:13.000Z | rgcmidcpp/src/binutils.hpp | mdsitton/rhythmChartFormat | 1e53aaff34603bee258582293d11d29e0bf53bde | [
"BSD-2-Clause"
] | null | null | null | rgcmidcpp/src/binutils.hpp | mdsitton/rhythmChartFormat | 1e53aaff34603bee258582293d11d29e0bf53bde | [
"BSD-2-Clause"
] | 1 | 2018-08-28T19:28:20.000Z | 2018-08-28T19:28:20.000Z | // Copyright (c) 2015-2017 Matthew Sitton <matthewsitton@gmail.com>
// See LICENSE in the RhythmGameChart root for license information.
#pragma once
#include <cstdint>
#include <istream>
#include <ostream>
#include <vector>
#include <stdexcept>
#include <algorithm>
#include <string>
#include <string_view>
// This is ... | 24.457227 | 92 | 0.569051 | mdsitton |
89e9eb41496407e950fa2e4dfa325f03fbd589ab | 1,064 | hpp | C++ | test/mock/src/runtime/block_builder_api_mock.hpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | 1 | 2021-07-10T21:25:03.000Z | 2021-07-10T21:25:03.000Z | test/mock/src/runtime/block_builder_api_mock.hpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | null | null | null | test/mock/src/runtime/block_builder_api_mock.hpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | null | null | null |
#ifndef SUPERGENIUS_TEST_MOCK_SRC_RUNTIME_BLOCK_BUILDER_API_MOCK_HPP
#define SUPERGENIUS_TEST_MOCK_SRC_RUNTIME_BLOCK_BUILDER_API_MOCK_HPP
#include <gmock/gmock.h>
#include "runtime/block_builder.hpp"
namespace sgns::runtime {
class BlockBuilderApiMock : public BlockBuilder {
public:
MOCK_METHOD1(apply_extr... | 36.689655 | 77 | 0.696429 | GeniusVentures |
89ea91dc748032a9aa5dcfa585deb49f6d17fce0 | 9,269 | cxx | C++ | test/itkVectorKernelPCATest.cxx | mseng10/ITKPrincipalComponentsAnalysis | ae0107041089450f0e921fef811f647808d27b79 | [
"Apache-2.0"
] | 2 | 2018-04-26T15:26:29.000Z | 2018-04-26T15:55:50.000Z | test/itkVectorKernelPCATest.cxx | mseng10/ITKPrincipalComponentsAnalysis | ae0107041089450f0e921fef811f647808d27b79 | [
"Apache-2.0"
] | 15 | 2017-04-21T13:16:53.000Z | 2021-01-11T20:59:30.000Z | test/itkVectorKernelPCATest.cxx | mseng10/ITKPrincipalComponentsAnalysis | ae0107041089450f0e921fef811f647808d27b79 | [
"Apache-2.0"
] | 4 | 2017-04-11T16:54:54.000Z | 2020-07-03T00:21:32.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 35.243346 | 120 | 0.678067 | mseng10 |
89eb2120447028e417e22256bded7dcdc1020ad4 | 1,728 | cc | C++ | chromium/extensions/shell/browser/shell_oauth2_token_service_delegate.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/extensions/shell/browser/shell_oauth2_token_service_delegate.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/extensions/shell/browser/shell_oauth2_token_service_delegate.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 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 "extensions/shell/browser/shell_oauth2_token_service_delegate.h"
#include <vector>
namespace extensions {
ShellOAuth2TokenServiceDelegate::She... | 28.8 | 76 | 0.782407 | wedataintelligence |
8852a42eff8e4b8e8846aa31b40a7b2a69c52a73 | 1,299 | cpp | C++ | ex00/srcs/megaphone.cpp | JonathanDUFOUR/cpp_modul_00 | d7ebbf1a42b0af46309ed835644e2d2f8897ad06 | [
"MIT"
] | null | null | null | ex00/srcs/megaphone.cpp | JonathanDUFOUR/cpp_modul_00 | d7ebbf1a42b0af46309ed835644e2d2f8897ad06 | [
"MIT"
] | null | null | null | ex00/srcs/megaphone.cpp | JonathanDUFOUR/cpp_modul_00 | d7ebbf1a42b0af46309ed835644e2d2f8897ad06 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* megaphone.cpp :+: :+: :+: ... | 40.59375 | 80 | 0.277136 | JonathanDUFOUR |
8856f46ea022534fedca141936406e76b9b777bc | 4,996 | cpp | C++ | tightvnc/desktop/WinD3D11Device.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 47 | 2016-08-17T03:18:32.000Z | 2022-01-14T01:33:15.000Z | tightvnc/desktop/WinD3D11Device.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 3 | 2018-06-29T06:13:28.000Z | 2020-11-26T02:31:49.000Z | tightvnc/desktop/WinD3D11Device.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 15 | 2016-08-17T07:03:55.000Z | 2021-08-02T14:42:02.000Z | // Copyright (C) 2012 GlavSoft LLC.
// All rights reserved.
//
//-------------------------------------------------------------------------
// This file is part of the TightVNC software. Please visit our Web site:
//
// http://www.tightvnc.com/
//
// This program is free software; you can redistri... | 29.916168 | 136 | 0.657326 | jjzhang166 |
885a29976d90fc532e7db7e3dd64f5ba1ce0a8e1 | 958 | cpp | C++ | codechef/MAY COOK 15/REARRSTR.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | codechef/MAY COOK 15/REARRSTR.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | codechef/MAY COOK 15/REARRSTR.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N = 1234567;
char s[N], res[N];
pair <int, int> e[42];
int main() {
int tt;
scanf("%d", &tt);
while (tt--) {
scanf("%s", s);
int n = strlen(s);
int cnt[42];
for (int j = 0; j < 26; j++) {
cnt[j] = 0;
}
for (int i = 0; i ... | 17.740741 | 44 | 0.368476 | DevGithub007 |
885cb59e61a9a3bccd94588f2776de5036634e70 | 1,768 | cc | C++ | src/hardware_limits.cc | yotabits/sleep_analyzer | 20cddedf3682badf89694c2e1ef8a37e32b469fd | [
"MIT"
] | null | null | null | src/hardware_limits.cc | yotabits/sleep_analyzer | 20cddedf3682badf89694c2e1ef8a37e32b469fd | [
"MIT"
] | null | null | null | src/hardware_limits.cc | yotabits/sleep_analyzer | 20cddedf3682badf89694c2e1ef8a37e32b469fd | [
"MIT"
] | null | null | null | // Copyrigth (c) 2015
// Mines-Paristech
// 60, boulevard Saint-Michel
// 75271 Paris cedex 06 (FRANCE). All rights reserved.
// This file is a part of GLCU library.
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//... | 19.010753 | 93 | 0.70871 | yotabits |
885d118ccb5971df73ddbcdfb944c637722db389 | 494 | cpp | C++ | GFSSOC/Equation Solver.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 2 | 2021-04-13T00:19:56.000Z | 2021-04-13T01:19:45.000Z | GFSSOC/Equation Solver.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | null | null | null | GFSSOC/Equation Solver.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 1 | 2020-08-26T12:36:08.000Z | 2020-08-26T12:36:08.000Z | #include <bits/stdc++.h>
#define forn(i, n) for (int i = 0; i < n; ++i)
#define pb push_back
#define endl "\n"
using namespace std;
int main()
{
int current;
cin >> current;
char op; int value;
while (true)
{
cin >> op;
if (op == '=') break;
cin >> value;
if (op ... | 14.969697 | 46 | 0.423077 | Joon7891 |
8860acc08b23db785b649ae1f4d3e9bf23e03462 | 1,612 | cpp | C++ | test/math/vector/hypersphere_to_cartesian.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | test/math/vector/hypersphere_to_cartesian.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | test/math/vector/hypersphere_to_cartesian.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 <fcppt/math/vector/componentwise_equal.hpp>
#include <fcppt/math/vector/hypersphere_to_ca... | 13.777778 | 61 | 0.597395 | pmiddend |
8865092e6cbea3b4d4128f0e80fc9c5da9a14a20 | 6,309 | cpp | C++ | examples/tutorial/dynatype.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | examples/tutorial/dynatype.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | examples/tutorial/dynatype.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************
*
* dynatype.cpp - Example program of map. See Class Reference Section
*
* $Id: //stdlib/dev/examples/stdlib/tutorial/dynatype.cpp#11 $
*
***************************************************************************
*
* Copyright (c) 1994... | 27.430435 | 76 | 0.574735 | Hower91 |
8869c530483f17355d8fb24b24a2f801b994fc7a | 811 | cpp | C++ | EDCBSupport/EDCBSupport/StatusBar.cpp | abt8WG/EDCB | 669262b158a25e1c84443ff00597fc981fa78aa6 | [
"MIT"
] | 13 | 2016-04-26T09:00:46.000Z | 2021-04-17T00:24:01.000Z | EDCBSupport/EDCBSupport/StatusBar.cpp | abt8WG/EDCB | 669262b158a25e1c84443ff00597fc981fa78aa6 | [
"MIT"
] | 16 | 2016-07-02T07:43:51.000Z | 2016-10-13T23:03:32.000Z | EDCBSupport/EDCBSupport/StatusBar.cpp | abt8WG/EDCB | 669262b158a25e1c84443ff00597fc981fa78aa6 | [
"MIT"
] | 9 | 2015-11-26T12:12:24.000Z | 2019-09-23T02:40:02.000Z | #include "stdafx.h"
#include "EDCBSupport.h"
#include "StatusBar.h"
namespace EDCBSupport
{
CStatusBar::CStatusBar()
{
}
CStatusBar::~CStatusBar()
{
Destroy();
}
bool CStatusBar::Create(HWND hwndParent,INT_PTR ID)
{
Destroy();
m_hwnd=::CreateWindowEx(0,STATUSCLASSNAME,NULL,
... | 16.55102 | 82 | 0.633785 | abt8WG |