hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
78a21db9c35c14e171b161afd36f7550d6438374 | 567 | hpp | C++ | plugins/community/repos/Bogaudio/src/Switch.hpp | x42/VeeSeeVSTRack | 0f5576f92e026ac1480e1477e55084911eca4052 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | plugins/community/repos/Bogaudio/src/Switch.hpp | x42/VeeSeeVSTRack | 0f5576f92e026ac1480e1477e55084911eca4052 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | plugins/community/repos/Bogaudio/src/Switch.hpp | x42/VeeSeeVSTRack | 0f5576f92e026ac1480e1477e55084911eca4052 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "bogaudio.hpp"
extern Model* modelSwitch;
namespace bogaudio {
struct Switch : Module {
enum ParamsIds {
GATE_PARAM,
NUM_PARAMS
};
enum InputsIds {
GATE_INPUT,
HIGH1_INPUT,
LOW1_INPUT,
HIGH2_INPUT,
LOW2_INPUT,
NUM_INPUTS
};
enum OutputsIds {
OUT1_OUTPUT,
OUT2_OUTPUT,... | 12.6 | 69 | 0.700176 | x42 |
78a55d99f8497d34258d2ac649927972bf4c2776 | 441 | hpp | C++ | src/utils/log.hpp | talyian/GB-emulator | 33edfc990cfeed410915334f707615bd3eabefd9 | [
"MIT"
] | 1 | 2020-08-06T15:25:01.000Z | 2020-08-06T15:25:01.000Z | src/utils/log.hpp | talyian/spgb | 33edfc990cfeed410915334f707615bd3eabefd9 | [
"MIT"
] | null | null | null | src/utils/log.hpp | talyian/spgb | 33edfc990cfeed410915334f707615bd3eabefd9 | [
"MIT"
] | null | null | null | #pragma once
#include "../base.hpp"
#include "../gb/lib_gb.hpp"
#include "str.hpp"
namespace logs {
void _log(u8 v);
void _log(u16 v);
void _log(u32 v);
void _log(i32 v);
void _log(double f);
void _log(const char * s);
void _log(str s);
void _log(void* s);
template<class T>
void log(T x) { _log(x); spgb_showlog (); ... | 18.375 | 49 | 0.639456 | talyian |
78a5e1cd2fca40b30eef31167c42abc8d681b939 | 3,896 | cpp | C++ | src/http/handler.cpp | halivor/php-flame | 5674bcb11838cfcfdaf4d0211bd3b062945775d3 | [
"MIT"
] | null | null | null | src/http/handler.cpp | halivor/php-flame | 5674bcb11838cfcfdaf4d0211bd3b062945775d3 | [
"MIT"
] | null | null | null | src/http/handler.cpp | halivor/php-flame | 5674bcb11838cfcfdaf4d0211bd3b062945775d3 | [
"MIT"
] | null | null | null | #include "../coroutine.h"
#include "value_body.h"
#include "server_request.h"
#include "server_response.h"
#include "server.h"
#include "handler.h"
#include "http.h"
namespace flame {
namespace http {
handler::handler(server* svr, tcp::socket&& sock, std::shared_ptr<flame::coroutine> co)
: svr_(svr)
, s... | 37.104762 | 135 | 0.600103 | halivor |
78ac704dfcbf2ab4148780997d8e21784de22e1f | 3,269 | hpp | C++ | include/lapack/lacpy.hpp | tlapack/tlapack | 18840a2a4e3bad4384baf4b3a2204ad54246aefa | [
"BSD-3-Clause"
] | 3 | 2021-06-09T13:47:13.000Z | 2022-02-08T01:13:15.000Z | include/lapack/lacpy.hpp | weslleyspereira/tlapack | 18840a2a4e3bad4384baf4b3a2204ad54246aefa | [
"BSD-3-Clause"
] | 17 | 2021-07-01T15:05:15.000Z | 2022-03-31T20:37:10.000Z | include/lapack/lacpy.hpp | weslleyspereira/tlapack | 18840a2a4e3bad4384baf4b3a2204ad54246aefa | [
"BSD-3-Clause"
] | 4 | 2021-06-09T13:46:38.000Z | 2022-03-21T13:48:31.000Z | /// @file lacpy.hpp
/// @author Weslley S Pereira, University of Colorado Denver, USA
/// Adapted from @see https://github.com/langou/latl/blob/master/include/lacpy.h
//
// Copyright (c) 2012-2021, University of Colorado Denver. All rights reserved.
//
// This file is part of <T>LAPACK.
// <T>LAPACK is free software: y... | 33.020202 | 107 | 0.603243 | tlapack |
78b4b2ef5968a9199d290d7f204e7f4ffa66cffe | 27,537 | cpp | C++ | openstudiocore/src/model/Loop.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/Loop.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/Loop.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publ... | 28.895068 | 116 | 0.54454 | bobzabcik |
78b512ccb2d3d385533bbc161e367dfb25c0add0 | 75,307 | hpp | C++ | contrib/autoboost/autoboost/preprocessor/comparison/not_equal.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/preprocessor/comparison/not_equal.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/preprocessor/comparison/not_equal.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | # /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * 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)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... | 92.401227 | 150 | 0.80792 | CaseyCarter |
78b65c2544c68f9f425054c8cd27655f7b258a75 | 1,904 | cpp | C++ | samples/Common/ObjLoader.cpp | SoulForMachine/GLSlayer | 37a0fab90c4e2c3a22279cc93d39e8f3091b5e12 | [
"MIT"
] | null | null | null | samples/Common/ObjLoader.cpp | SoulForMachine/GLSlayer | 37a0fab90c4e2c3a22279cc93d39e8f3091b5e12 | [
"MIT"
] | 1 | 2017-10-24T12:19:52.000Z | 2017-10-24T12:19:52.000Z | samples/Common/ObjLoader.cpp | SoulForMachine/GLSlayer | 37a0fab90c4e2c3a22279cc93d39e8f3091b5e12 | [
"MIT"
] | null | null | null |
#include "ObjLoader.h"
#include "Utils.h"
using namespace std;
using namespace math3d;
bool ObjLoader::Load(const char* file_name)
{
string full_path = GetFullPath(file_name);
FILE* file = fopen(full_path.c_str(), "rt");
if(!file)
return false;
const int BUF_SIZE = 1024;
char buf[BUF_SIZE];
while(!feof(fi... | 19.428571 | 104 | 0.588761 | SoulForMachine |
78b6795a106af9138907a2b5aa93f21b4b00001f | 7,768 | cpp | C++ | test/parser_test.cpp | bsurmanski/wlc-ng | 7c72a3172e910b2907a73957cc6cbd6477b2ea5e | [
"MIT"
] | null | null | null | test/parser_test.cpp | bsurmanski/wlc-ng | 7c72a3172e910b2907a73957cc6cbd6477b2ea5e | [
"MIT"
] | null | null | null | test/parser_test.cpp | bsurmanski/wlc-ng | 7c72a3172e910b2907a73957cc6cbd6477b2ea5e | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <stdio.h>
#include "ast/ast.hpp"
#include "common/string.hpp"
#include "io/environment.hpp"
#include "io/stringInput.hpp"
#include "lex/lexer.hpp"
#include "parse/parser.hpp"
#include "program.hpp"
#define TRY(X) { try { (X); } catch(std::exception &e) { printf("%s\n", e.what()); ADD... | 29.536122 | 155 | 0.575695 | bsurmanski |
78ba3f8deb89a55e2b4ac0a2aa4429e2a5311a2d | 12,656 | cpp | C++ | plugins/mmstd_datatools/src/OverrideParticleBBox.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | plugins/mmstd_datatools/src/OverrideParticleBBox.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | plugins/mmstd_datatools/src/OverrideParticleBBox.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | /*
* OverrideParticleBBox.h
*
* Copyright (C) 2015 by S. Grottel
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "OverrideParticleBBox.h"
#include <float.h>
#include "mmcore/param/BoolParam.h"
#include "mmcore/param/ButtonParam.h"
#include "mmcore/param/IntParam.h"
#include "mmcore/param/Vector3fParam.h... | 48.864865 | 136 | 0.604772 | azuki-monster |
78c01f013e7bb16547c22020cf96ab5312c76125 | 1,165 | cpp | C++ | Contest/200911/20009.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | 1 | 2020-10-05T02:07:52.000Z | 2020-10-05T02:07:52.000Z | Contest/200911/20009.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | null | null | null | Contest/200911/20009.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
#include <queue>
#include <set>
using namespace std;
const int maxn=1007;
const int MAX=1.1e9;
int n,a[maxn],b[maxn],ans[maxn],cnt;
bool v[maxn];
int main(){
scanf("%d",&n);
for(int i=1;i<=n;i++) scanf("%d",&a[i]);
for(int i=1;i<=n;i++) scanf("%d",&b[i]);
sort(b+1... | 23.77551 | 109 | 0.461803 | wzl19371 |
78c1089cb8bbbd3fb0fa90b1c11af01e7aaef393 | 230 | cpp | C++ | (1)Beginner/1020/c++/1020.cpp | G4DavidAlmeida/mySolutionsUriOnline | 47e427e3205124da00a8a44fb9900086d85c30ec | [
"MIT"
] | null | null | null | (1)Beginner/1020/c++/1020.cpp | G4DavidAlmeida/mySolutionsUriOnline | 47e427e3205124da00a8a44fb9900086d85c30ec | [
"MIT"
] | null | null | null | (1)Beginner/1020/c++/1020.cpp | G4DavidAlmeida/mySolutionsUriOnline | 47e427e3205124da00a8a44fb9900086d85c30ec | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int x;
cin >> x;
cout << x / 365 << " ano(s)" << endl; x = x % 365;
cout << x / 30 << " mes(es)" << endl; x = x % 30;
cout << x << " dia(s)" << endl;
return 0;
}
| 14.375 | 51 | 0.469565 | G4DavidAlmeida |
78c2d9c9df41d8acb647225b53a67f6eb35a45f6 | 2,281 | cc | C++ | llvm_codegen/generate_expression.cc | maciekgajewski/cougar | 038a0c6f901928946b03e203c2154ca02bce9524 | [
"Apache-2.0"
] | null | null | null | llvm_codegen/generate_expression.cc | maciekgajewski/cougar | 038a0c6f901928946b03e203c2154ca02bce9524 | [
"Apache-2.0"
] | 4 | 2021-05-02T08:27:25.000Z | 2021-05-15T08:37:26.000Z | llvm_codegen/generate_expression.cc | maciekgajewski/cougar | 038a0c6f901928946b03e203c2154ca02bce9524 | [
"Apache-2.0"
] | 1 | 2021-04-24T20:20:58.000Z | 2021-04-24T20:20:58.000Z | #include "code_generator.hh"
#include "ast/expression.hh"
#include "meta/type_info.hh"
#include <llvm/IR/GlobalVariable.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Type.h>
#include <llvm/IR/Value.h>
namespace Cougar::LlvmCodeGenerator {
llvm::Value *CodeGenerator::generateExpression(Ast::Expression *e) {
... | 34.560606 | 78 | 0.633932 | maciekgajewski |
78c3ae72d634ee5a60dfb15364a02c654b288887 | 5,681 | hpp | C++ | include/opentxs/core/contract/UnitDefinition.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | include/opentxs/core/contract/UnitDefinition.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | include/opentxs/core/contract/UnitDefinition.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef OPENTXS_CORE_CONTRACT_UNITDEFINITION_HPP
#define OPENT... | 33.417647 | 80 | 0.6696 | nopdotcom |
78c6abe1bd327b96f70d2dbc8fa355c23249fb48 | 8,536 | cc | C++ | TrkBase/TrkExpectedTrk.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkBase/TrkExpectedTrk.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkBase/TrkExpectedTrk.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: TrkExpectedTrk.cc,v 1.8 2004/09/10 18:00:17 bartoldu Exp $
//
// Description:
// Class TrkExpectedTrack. Stores lists of expected hits for a given
// track in the Trk.
//
// Environment:
// Softwar... | 30.162544 | 120 | 0.618088 | brownd1978 |
78ca57bdd81971745bbde289c7b9e01783ff7396 | 1,469 | cpp | C++ | user/gui/windowserver/src/Log.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | 4 | 2021-06-22T20:52:30.000Z | 2022-02-04T00:19:44.000Z | user/gui/windowserver/src/Log.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | user/gui/windowserver/src/Log.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | #include "Log.h"
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
extern const char *gLogTag;
#ifdef NDEBUG
static bool gLogTraceEnabled = false;
#else
static bool gLogTraceEnabled = true;
#endif
/// Outputs a message if trace logging is enabled
void Trace(const char * _Nonnull str, ...) {
if(!gLogTraceE... | 18.135802 | 49 | 0.59224 | tristanseifert |
78ca5b24eec67d81b4cc663faa393e01be8e64ff | 1,014 | cpp | C++ | heap/23 Merge k Sorted Lists.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | heap/23 Merge k Sorted Lists.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | heap/23 Merge k Sorted Lists.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | //
// 23 Merge k Sorted Lists.cpp
// Leetcode
//
// Created by Quinn on 2020/9/12.
// Copyright © 2020 Quinn. All rights reserved.
//
#include "ListNode.h"
#include <queue>
using namespace std;
class Solution {
public:
struct Cmp {
bool operator() (ListNode *a, ListNode *b) const {
return ... | 21.574468 | 65 | 0.453649 | CoderQuinnYoung |
78d083d1338810b6dddb9e19bd00cd4ee23b4cbd | 3,034 | cpp | C++ | src/ATmega328P/L3G4200D/TWI.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null | src/ATmega328P/L3G4200D/TWI.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null | src/ATmega328P/L3G4200D/TWI.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null |
#include "TWI.h"
TWI::TWI(void)
{
}
void TWI::initAsMaster(void)
{
// 400kHz of SCL from 16MHz of fSYS
TWSR &= ~(1 << 1) & ~(1 << 0); // Sets prescaler as 1
TWBR = 12; // Calc reference value for SCL
//(IF YOU'RE GONNA USE INTERRUPT)
//TWCR != (1 << 0); ... | 21.069444 | 74 | 0.567238 | smurilogs |
78d19cfafd2eba97716670f93ba999f2671d77d8 | 8,865 | cc | C++ | agent/php7/utils/yaml_reader.cc | yuesicheng/openrasp | 60d772184887dcbec595ba7011b5b807ff652fba | [
"Apache-2.0"
] | 1 | 2020-05-29T13:30:02.000Z | 2020-05-29T13:30:02.000Z | agent/php7/utils/yaml_reader.cc | yuesicheng/openrasp | 60d772184887dcbec595ba7011b5b807ff652fba | [
"Apache-2.0"
] | null | null | null | agent/php7/utils/yaml_reader.cc | yuesicheng/openrasp | 60d772184887dcbec595ba7011b5b807ff652fba | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017-2018 Baidu 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... | 26.701807 | 135 | 0.529611 | yuesicheng |
78d1ad92e7c48f297c8a95f2d836f390838ab959 | 12,013 | cpp | C++ | shared/source/command_stream/scratch_space_controller_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/source/command_stream/scratch_space_controller_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/source/command_stream/scratch_space_controller_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_stream/scratch_space_controller_xehp_and_later.h"
#include "shared/source/command_stream/command_stream_receiver.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "share... | 56.135514 | 214 | 0.640889 | mattcarter2017 |
78d3c15eb43c582cd3409cfcf836e5e87acc4816 | 670 | hpp | C++ | external/boost_1_60_0/qsboost/mpl/advance_fwd.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/mpl/advance_fwd.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/mpl/advance_fwd.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null |
#ifndef QSBOOST_MPL_ADVANCE_FWD_HPP_INCLUDED
#define QSBOOST_MPL_ADVANCE_FWD_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// 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)
//
// See http://www.boost.... | 23.103448 | 62 | 0.773134 | wouterboomsma |
78d60a209dd1753a947441bc733d2cca0eb9dcda | 1,554 | cpp | C++ | src/Sound/Sound.cpp | WapaMario63/PonyGL | 3b170e53d9e98f55c70bc7947970e8c63dea62d9 | [
"MIT"
] | 1 | 2017-02-07T22:42:15.000Z | 2017-02-07T22:42:15.000Z | src/Sound/Sound.cpp | WapaMario63/PonyGL | 3b170e53d9e98f55c70bc7947970e8c63dea62d9 | [
"MIT"
] | null | null | null | src/Sound/Sound.cpp | WapaMario63/PonyGL | 3b170e53d9e98f55c70bc7947970e8c63dea62d9 | [
"MIT"
] | null | null | null | #include "Sound.h"
Sound::Sound(const char* file, SoundType type)
{
_filename = file;
_soundType = type;
if (_soundType == snd_BGM)
{
_sound = nullptr;
SetupBGM();
}
else if (_soundType == snd_SFX)
{
}
}
void Sound::SetupBGM()
{
_music.openFromFile(_filename);
... | 16.1875 | 69 | 0.579794 | WapaMario63 |
78d84e9b0cff555cbec3472cb363986d0ae8935a | 548 | hpp | C++ | src/modules/api/api_rest_error.hpp | dmortondev/openperf | dc142aa9bddcd578fd3491275cf36c016209df2e | [
"Apache-2.0"
] | null | null | null | src/modules/api/api_rest_error.hpp | dmortondev/openperf | dc142aa9bddcd578fd3491275cf36c016209df2e | [
"Apache-2.0"
] | null | null | null | src/modules/api/api_rest_error.hpp | dmortondev/openperf | dc142aa9bddcd578fd3491275cf36c016209df2e | [
"Apache-2.0"
] | null | null | null | #ifndef _OP_API_REST_ERRORS_HPP_
#define _OP_API_REST_ERRORS_HPP_
#include <utility>
#include "json.hpp"
#include "pistache/http.h"
namespace openperf::api::rest {
enum class error_type { NONE = 0, NOT_FOUND, ZMQ_ERROR, POSIX };
struct typed_error
{
error_type type = error_type::NONE;
int value = 0;
};
st... | 20.296296 | 64 | 0.737226 | dmortondev |
78d90ff3c41d7f4e3cc8781f36c9d883b307b34c | 973 | cpp | C++ | Game/src/Game.cpp | xfanw/XjEngine | 37ce289ede14445e7b1ed5a7a9c74e781c7eadab | [
"Apache-2.0"
] | null | null | null | Game/src/Game.cpp | xfanw/XjEngine | 37ce289ede14445e7b1ed5a7a9c74e781c7eadab | [
"Apache-2.0"
] | null | null | null | Game/src/Game.cpp | xfanw/XjEngine | 37ce289ede14445e7b1ed5a7a9c74e781c7eadab | [
"Apache-2.0"
] | null | null | null |
// Frank (32) Abstract VA
// Frank (33) Renderer
#include "Xj.h"
#include <Core\Application.h>
#include "imgui.h"
// TEMP
class ExampleLayer : public Xj::Layer {
public:
ExampleLayer() :Layer("Example") {}
void OnUpdate() override {
if (Xj::Input::IsKeyPressed(XJ_KEY_TAB))
XJ_INFO("Tab Key is pressed (p... | 17.375 | 58 | 0.642343 | xfanw |
78dd9b8a1331cd1abb7448af36726533a261c986 | 1,082 | hpp | C++ | src/tree_diameter.hpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | src/tree_diameter.hpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | src/tree_diameter.hpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <vector>
struct Diameter {
int distance;
std::vector<int> path;
};
// Tree diameter.
// Returns the maximum diameter and two endpoint nodes of the diameter.
Diameter tree_diameter(const std::vector<std::vector<int>> &g) {
std::vector<int> parent(g.size());
aut... | 25.761905 | 78 | 0.593346 | keijak |
78df313891d23140edf8f24c0cccb7d9106c32b4 | 1,100 | hpp | C++ | src/termui/file_status.hpp | numerodix/bmon-cpp | fae0613776b879a33e327f9ccf1d3819383634dd | [
"MIT"
] | 1 | 2020-07-31T01:34:47.000Z | 2020-07-31T01:34:47.000Z | src/termui/file_status.hpp | numerodix/bmon-cpp | fae0613776b879a33e327f9ccf1d3819383634dd | [
"MIT"
] | null | null | null | src/termui/file_status.hpp | numerodix/bmon-cpp | fae0613776b879a33e327f9ccf1d3819383634dd | [
"MIT"
] | null | null | null | #ifndef FILE_STATUS_H
#define FILE_STATUS_H
#include <memory>
#include <macros.hpp>
namespace bandwit {
namespace termui {
class FileStatusSetter {
public:
explicit FileStatusSetter(int fileno, int status_on, int status_off)
: fileno_{fileno}, status_on_{status_on}, status_off_{status_off} {}
voi... | 20 | 76 | 0.700909 | numerodix |
78e33ebb5fcc9e693745f525dd7ed590f9e831b2 | 49,971 | cpp | C++ | opencl/test/unit_test/api/cl_create_image_tests.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | 1 | 2019-03-01T13:54:45.000Z | 2019-03-01T13:54:45.000Z | opencl/test/unit_test/api/cl_create_image_tests.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | 5 | 2019-03-26T17:26:07.000Z | 2021-03-30T12:17:10.000Z | opencl/test/unit_test/api/cl_create_image_tests.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | 4 | 2018-05-09T10:04:27.000Z | 2018-07-12T13:33:31.000Z | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_info.h"
#include "shared/test/common/helpers/unit_test_helper.h"
#include "shared/test/common/mocks/mock_device.h"
#include "opencl/source/context/context.h"
#include "opencl/source/mem_obj/ima... | 35.091994 | 168 | 0.711973 | kcencele |
78e377f26bd1f7e583c1d0d264a7350ff95e74ef | 706 | cpp | C++ | Lesson6/Triangle/triangle.cpp | gonini/Codility-Lesson | c362a7357752b2cf89b9ad92d9e512c97b988a4e | [
"MIT"
] | null | null | null | Lesson6/Triangle/triangle.cpp | gonini/Codility-Lesson | c362a7357752b2cf89b9ad92d9e512c97b988a4e | [
"MIT"
] | null | null | null | Lesson6/Triangle/triangle.cpp | gonini/Codility-Lesson | c362a7357752b2cf89b9ad92d9e512c97b988a4e | [
"MIT"
] | null | null | null | // you can use includes, for example:
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <cstring>
#include <set>
using namespace std;
// you can write to stdout for debugging purposes, e.g.
// cout << "this is a debug message" << endl;
int solution(vector<int> &A);
int main(void) {... | 20.171429 | 55 | 0.526912 | gonini |
78e86ba9a0d9913e2e955f4cecb50452834c54e1 | 1,229 | hpp | C++ | library/src/blas1/rocblas_amax_amin.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | library/src/blas1/rocblas_amax_amin.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | library/src/blas1/rocblas_amax_amin.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2018-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#pragma once
#include "rocblas_reduction_template.hpp"
//!
//! @brief Struct-operator a default_value of rocbl... | 25.604167 | 95 | 0.558991 | amcamd |
78ef4f08d8a165c04c23503148476fb2e91fe5ca | 117 | cpp | C++ | Basics/Destructors/music.cpp | srini1392/Programming-in-Cpp | 099f44d65cbe976b27625e5806b32ab88414b019 | [
"MIT"
] | null | null | null | Basics/Destructors/music.cpp | srini1392/Programming-in-Cpp | 099f44d65cbe976b27625e5806b32ab88414b019 | [
"MIT"
] | null | null | null | Basics/Destructors/music.cpp | srini1392/Programming-in-Cpp | 099f44d65cbe976b27625e5806b32ab88414b019 | [
"MIT"
] | null | null | null | #include <iostream>
#include "song.hpp"
int main() {
Song back_to_black("Back to Black", "Amy Winehouse");
} | 14.625 | 55 | 0.649573 | srini1392 |
78f146e4f4b81f38ee25ea00821910807fa270ec | 5,261 | hpp | C++ | src/umpire/util/AllocationMap.hpp | agcapps/Umpire | ecea50674437a3cac09fab53e5b842979158b44b | [
"MIT-0",
"MIT"
] | null | null | null | src/umpire/util/AllocationMap.hpp | agcapps/Umpire | ecea50674437a3cac09fab53e5b842979158b44b | [
"MIT-0",
"MIT"
] | null | null | null | src/umpire/util/AllocationMap.hpp | agcapps/Umpire | ecea50674437a3cac09fab53e5b842979158b44b | [
"MIT-0",
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2016-20, Lawrence Livermore National Security, LLC and Umpire
// project contributors. See the COPYRIGHT file for details.
//
// SPDX-License-Identifier: (MIT)
////////////////////////////////////////////////////////////////... | 28.748634 | 102 | 0.692074 | agcapps |
78f3d5fb59b10214f57a97c3f539b3ff16f6abb0 | 303 | cc | C++ | src/utils/src/threads/synchronization/lock.cc | Kozoriz/c-plus-utils | b64b283aa37be9526edb229b1e01d5107f4c7c78 | [
"MIT"
] | null | null | null | src/utils/src/threads/synchronization/lock.cc | Kozoriz/c-plus-utils | b64b283aa37be9526edb229b1e01d5107f4c7c78 | [
"MIT"
] | null | null | null | src/utils/src/threads/synchronization/lock.cc | Kozoriz/c-plus-utils | b64b283aa37be9526edb229b1e01d5107f4c7c78 | [
"MIT"
] | null | null | null | #include "utils/threads/synchronization/lock.h"
utils::synchronization::Lock::Lock() {}
void utils::synchronization::Lock::Acquire() {
std_mutex_.lock();
}
void utils::synchronization::Lock::Release() {
std_mutex_.unlock();
}
void utils::synchronization::Lock::Try() {
std_mutex_.try_lock();
}
| 20.2 | 47 | 0.712871 | Kozoriz |
78f50b2420169644c1e10ec8c1fcf8bcd1f25ea5 | 5,454 | cpp | C++ | Game/FinFan/Global.cpp | aldonunez/FinFan_script | eca35c0983252cc0f1536ec15c294cd726883ca6 | [
"Apache-2.0"
] | 4 | 2021-02-11T18:48:01.000Z | 2021-12-02T18:12:50.000Z | Game/FinFan/Global.cpp | aldonunez/FinFan_script | eca35c0983252cc0f1536ec15c294cd726883ca6 | [
"Apache-2.0"
] | null | null | null | Game/FinFan/Global.cpp | aldonunez/FinFan_script | eca35c0983252cc0f1536ec15c294cd726883ca6 | [
"Apache-2.0"
] | 1 | 2021-02-17T23:25:44.000Z | 2021-02-17T23:25:44.000Z | /*
Copyright 2012 Aldo J. Nunez
Licensed under the Apache License, Version 2.0.
See the LICENSE text file for details.
*/
#include "Common.h"
#include "Global.h"
static uint32_t timeBaseMillis;
static uint32_t runStartMillis;
int GetNextRandom( int range )
{
// The original game uses... | 21.816 | 98 | 0.578291 | aldonunez |
78fd211db23fcdf4a7537954bac3d1e94b949bf2 | 37,857 | cpp | C++ | media_driver/media_driver_next/linux/common/os/mos_graphicsresource_specific_next.cpp | Alex1Zhang/media-driver | b285f47f1fb127cc3ca4f677631b6a71321a2db4 | [
"MIT",
"Intel",
"BSD-3-Clause"
] | 6 | 2019-04-18T02:51:40.000Z | 2021-07-07T01:32:26.000Z | media_driver/media_driver_next/linux/common/os/mos_graphicsresource_specific_next.cpp | sushma08/media-driver | 2eeb7e50604232e9a67fef0301adb4af108faccd | [
"Intel",
"BSD-3-Clause",
"MIT"
] | 2 | 2019-04-12T03:00:14.000Z | 2019-10-17T06:01:19.000Z | media_driver/media_driver_next/linux/common/os/mos_graphicsresource_specific_next.cpp | yangnin/media-driver | 2c12eac7bdd5bb5ab97c740c9ad66cfaa9ba23be | [
"MIT",
"Intel",
"BSD-3-Clause"
] | 6 | 2018-12-20T06:39:59.000Z | 2019-09-25T06:24:02.000Z | /*
* Copyright (c) 2019-2020, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, p... | 35.546479 | 198 | 0.605753 | Alex1Zhang |
60025aa3b9b349ccacfefd74e2f9dc6bf594e3dc | 2,081 | cpp | C++ | plugins/qm-dsp/dsp/tonal/TonalEstimator.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | plugins/qm-dsp/dsp/tonal/TonalEstimator.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2021-11-14T16:31:59.000Z | 2021-12-11T19:53:10.000Z | plugins/qm-dsp/dsp/tonal/TonalEstimator.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
QM DSP Library
Centre for Digital Music, Queen Mary, University of London.
This file copyright 2006 Martin Gasser.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU G... | 22.619565 | 78 | 0.521864 | horstsoft0815 |
60034d1aa83362c86f9a17ceb94fc8fc17325b3a | 1,268 | cpp | C++ | options.cpp | kimushu/serialport-server | 1cf84bc3adb86023f39c63940b967e830c8fe5c5 | [
"MIT"
] | null | null | null | options.cpp | kimushu/serialport-server | 1cf84bc3adb86023f39c63940b967e830c8fe5c5 | [
"MIT"
] | null | null | null | options.cpp | kimushu/serialport-server | 1cf84bc3adb86023f39c63940b967e830c8fe5c5 | [
"MIT"
] | null | null | null | #include "options.hpp"
#include <iostream>
bool Options::parse(OsPort& os, int argc, char *argv[])
{
int ch;
char *optarg = nullptr;
int optind = 0;
while ((ch = os.getopt(argc, argv, "a:p:i:m:vh", optarg, optind)) != -1)
{
switch (ch)
{
case 'a':
// -a <address>
address = optarg;
... | 24.862745 | 94 | 0.51183 | kimushu |
60040cee6792901b65114f996a0dae3d82a6cb2f | 3,243 | cpp | C++ | tests/iob_calc_test.cpp | beached/oref0_cpp | f3cc43948aeae7f857a6618588f44ace601099d6 | [
"MIT"
] | 1 | 2016-12-18T08:58:57.000Z | 2016-12-18T08:58:57.000Z | tests/iob_calc_test.cpp | beached/oref0_cpp | f3cc43948aeae7f857a6618588f44ace601099d6 | [
"MIT"
] | null | null | null | tests/iob_calc_test.cpp | beached/oref0_cpp | f3cc43948aeae7f857a6618588f44ace601099d6 | [
"MIT"
] | 3 | 2016-12-18T08:59:04.000Z | 2018-10-01T21:40:22.000Z | //
// Copyright (c) 2016 Darrell Wright
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files( the "Software" ), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... | 37.709302 | 276 | 0.731113 | beached |
60079244b23b0bc4aadd32f995204b72fb4de077 | 2,569 | cc | C++ | contrib/gcc-4.1/libstdc++-v3/src/stdexcept.cc | masami256/dfly-3.0.2-bhyve | 6f6c18db6fa90734135a2044769035eb82b821c1 | [
"BSD-3-Clause"
] | 3 | 2017-03-06T14:12:57.000Z | 2019-11-23T09:35:10.000Z | contrib/gcc-4.1/libstdc++-v3/src/stdexcept.cc | masami256/dfly-3.0.2-bhyve | 6f6c18db6fa90734135a2044769035eb82b821c1 | [
"BSD-3-Clause"
] | null | null | null | contrib/gcc-4.1/libstdc++-v3/src/stdexcept.cc | masami256/dfly-3.0.2-bhyve | 6f6c18db6fa90734135a2044769035eb82b821c1 | [
"BSD-3-Clause"
] | null | null | null | // Methods for Exception Support for -*- C++ -*-
// Copyright (C) 1997, 1999, 2001, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by th... | 32.518987 | 79 | 0.72752 | masami256 |
60088ca33cc474a4f64ad94b1e97e5089f097db0 | 495,429 | cpp | C++ | perf/collation_element_lookup_perf_000.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | perf/collation_element_lookup_perf_000.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | perf/collation_element_lookup_perf_000.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | // Warning! This file is autogenerated.
#include <boost/text/collate.hpp>
#include <boost/text/collation_table.hpp>
#include <benchmark/benchmark.h>
boost::text::detail::collation_trie_t const & trie()
{
static auto const retval = boost::text::detail::make_default_trie();
return retval;
}
boost::text::collat... | 80.926005 | 691 | 0.655196 | eightysquirrels |
600afc24f9fd5020507343c361e01efafcfc9780 | 58,388 | cpp | C++ | test/unit/api/x_init_reset_close.cpp | wd13384/oneVPL-cpu | f46bc287cbd4f7438d96ac76e460ccbf561fd958 | [
"MIT"
] | null | null | null | test/unit/api/x_init_reset_close.cpp | wd13384/oneVPL-cpu | f46bc287cbd4f7438d96ac76e460ccbf561fd958 | [
"MIT"
] | null | null | null | test/unit/api/x_init_reset_close.cpp | wd13384/oneVPL-cpu | f46bc287cbd4f7438d96ac76e460ccbf561fd958 | [
"MIT"
] | null | null | null | /*############################################################################
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
############################################################################*/
#include <gtest/gtest.h>
#include "vpl/mfxjpeg.h"
#include "vpl/mfxvideo.h"
/* I... | 37.452213 | 168 | 0.697249 | wd13384 |
600edb88e66f1e9a3d53f6be9c357d8c3e6b074d | 3,724 | cpp | C++ | third-part/7z/CPP/7zip/UI/FileManager/RegistryPlugins.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 33 | 2018-07-04T09:38:12.000Z | 2021-06-19T06:11:45.000Z | third-part/7z/CPP/7zip/UI/FileManager/RegistryPlugins.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | null | null | null | third-part/7z/CPP/7zip/UI/FileManager/RegistryPlugins.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 13 | 2018-07-01T01:55:17.000Z | 2021-08-03T10:55:45.000Z | // RegistryPlugins.cpp
#include "../../../Windows/DLL.h"
#include "../../../Windows/FileFind.h"
#include "../../../Windows/PropVariant.h"
#include "IFolder.h"
#include "RegistryPlugins.h"
using namespace NWindows;
using namespace NFile;
/*
static const TCHAR *kLMBasePath = TEXT("Software\\7-Zip\\FM... | 26.985507 | 101 | 0.667562 | wzaen |
6010d295332ffaeb8b43347412f2b95e7f55ad2d | 209 | cpp | C++ | src/SeekProcess.cpp | stevefolta/dawlet | 429ffba85f00acf05c15daf2597d97f79cb4f2f2 | [
"MIT"
] | null | null | null | src/SeekProcess.cpp | stevefolta/dawlet | 429ffba85f00acf05c15daf2597d97f79cb4f2f2 | [
"MIT"
] | null | null | null | src/SeekProcess.cpp | stevefolta/dawlet | 429ffba85f00acf05c15daf2597d97f79cb4f2f2 | [
"MIT"
] | null | null | null | #include "SeekProcess.h"
bool SeekProcess::is_done()
{
return state == Done;
}
void SeekProcess::next()
{
switch (state) {
case InEngine:
engine->seek(position);
state = Done;
break;
}
}
| 9.5 | 27 | 0.62201 | stevefolta |
6011013701aa982641f9644bb36224a0b8dfd54e | 19,713 | cpp | C++ | src/libtriton/format/pe/peOptionalHeader.cpp | codesabaka/triton | ec90cfc94d86dcfff03d0753ff4ec98154c07d4c | [
"BSD-3-Clause"
] | 1 | 2020-11-15T15:21:12.000Z | 2020-11-15T15:21:12.000Z | src/libtriton/format/pe/peOptionalHeader.cpp | codesabaka/triton | ec90cfc94d86dcfff03d0753ff4ec98154c07d4c | [
"BSD-3-Clause"
] | null | null | null | src/libtriton/format/pe/peOptionalHeader.cpp | codesabaka/triton | ec90cfc94d86dcfff03d0753ff4ec98154c07d4c | [
"BSD-3-Clause"
] | null | null | null | //! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the BSD License.
*/
#include <cstdio>
#include <exceptions.hpp>
#include <peOptionalHeader.hpp>
namespace triton {
namespace format {
namespace pe {
PeOptionalHeader::PeOptionalHeader() {
this->magic ... | 41.676533 | 91 | 0.601583 | codesabaka |
60124f52773fa9d49e337d3185b9833be2bf9d6e | 515 | cpp | C++ | Loyalty/DataModel/Entities/BuyTxDesc.cpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | null | null | null | Loyalty/DataModel/Entities/BuyTxDesc.cpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | 1 | 2021-03-06T11:38:01.000Z | 2021-03-15T21:33:16.000Z | Loyalty/DataModel/Entities/BuyTxDesc.cpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | null | null | null | #include "BuyTxDesc.hpp"
namespace Sol::Loyalty::DataModel {
TYPE_STRUCT_IMPLEMENT(BuyTxDesc, GP_MODULE_UUID)
BuyTxDesc::BuyTxDesc (void) noexcept
{
}
BuyTxDesc::~BuyTxDesc (void) noexcept
{
}
void BuyTxDesc::_SCollectStructProps (GpTypePropInfo::C::Vec::Val& aPropsOut)
{
PROP(id);
PROP(items);
PROP(create_ts)... | 16.612903 | 77 | 0.743689 | uno-labs-solana-hackathon |
6013cd3b9f85f93d7c99e790ff95d7ac72ebf5de | 1,261 | cc | C++ | src/utl/tsk_js_c_opts.cc | FRG-UPC-Deliverables/tsk-js | 9dd4fcd1c88cb690361cc2a8429cdd127684acea | [
"MIT"
] | null | null | null | src/utl/tsk_js_c_opts.cc | FRG-UPC-Deliverables/tsk-js | 9dd4fcd1c88cb690361cc2a8429cdd127684acea | [
"MIT"
] | 5 | 2021-05-08T07:21:28.000Z | 2021-09-21T03:54:39.000Z | src/utl/tsk_js_c_opts.cc | FRG-UPC-Deliverables/tsk-js | 9dd4fcd1c88cb690361cc2a8429cdd127684acea | [
"MIT"
] | null | null | null | #include "tsk_js_utl.h"
#include <string.h>
namespace tsk_js {
using v8::Isolate;
using v8::HandleScope;
using v8::Local;
using v8::Object;
using v8::Number;
using v8::String;
using v8::Boolean;
using v8::Value;
// -----------------------------
// --- B a s e O b j e c t ---
// -----------------------------
T... | 17.513889 | 80 | 0.596352 | FRG-UPC-Deliverables |
601cbb05fa4c299c79eaee4848350840ea6c9000 | 4,022 | cpp | C++ | src/Nes.cpp | amaiorano/nes-emu | 6e4e446d8eee923de48db6e2a2c800b38dfb333e | [
"MIT"
] | 54 | 2015-03-24T14:05:12.000Z | 2022-03-24T14:03:01.000Z | src/Nes.cpp | amaiorano/nes-emu | 6e4e446d8eee923de48db6e2a2c800b38dfb333e | [
"MIT"
] | 3 | 2015-02-03T17:43:26.000Z | 2020-11-12T19:56:01.000Z | src/Nes.cpp | amaiorano/nes-emu | 6e4e446d8eee923de48db6e2a2c800b38dfb333e | [
"MIT"
] | 18 | 2015-02-01T15:27:27.000Z | 2021-07-19T04:17:16.000Z | #include "Nes.h"
#include "Stream.h"
#include "Rom.h"
#include "System.h"
#include "Serializer.h"
#include "Renderer.h"
#include "IO.h"
#include "CircularBuffer.h"
Nes::~Nes()
{
// Save sram on exit
SerializeSaveRam(true);
}
void Nes::Initialize()
{
m_apu.Initialize();
m_cpu.Initialize(m_cpuMemoryBus, m_apu);
m_... | 21.740541 | 111 | 0.712829 | amaiorano |
6020b30a6da64902670d8e8d93a3c43c8c701135 | 1,579 | cpp | C++ | src/python/PyImath/PyImathBox2Array.cpp | JenusL/Imath | 749a1bfe017b2daccb3eb9759fbe837ea4718a0a | [
"BSD-3-Clause"
] | 156 | 2020-06-14T06:29:06.000Z | 2022-03-29T22:55:55.000Z | src/python/PyImath/PyImathBox2Array.cpp | JenusL/Imath | 749a1bfe017b2daccb3eb9759fbe837ea4718a0a | [
"BSD-3-Clause"
] | 146 | 2020-06-13T18:17:33.000Z | 2022-03-28T16:47:29.000Z | src/python/PyImath/PyImathBox2Array.cpp | JenusL/Imath | 749a1bfe017b2daccb3eb9759fbe837ea4718a0a | [
"BSD-3-Clause"
] | 48 | 2020-06-16T18:44:16.000Z | 2022-03-24T20:50:06.000Z | //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenEXR Project.
//
// clang-format off
#include "PyImathBoxArrayImpl.h"
#include "PyImathExport.h"
namespace PyImath {
using namespace boost::python;
template PYIMATH_EXPORT class_<FixedArray<IMATH_NAMESPACE::Box2s> > register_BoxArray<... | 60.730769 | 156 | 0.79734 | JenusL |
e741e5e46ed8a9522b78aa49d8b2608048a33145 | 32,085 | cpp | C++ | squid/test/unit/test_parameter.cpp | patrick-rotsaert/squid | 385159c17924d910c0f8a966b4b5dc531b0c1d49 | [
"BSL-1.0"
] | null | null | null | squid/test/unit/test_parameter.cpp | patrick-rotsaert/squid | 385159c17924d910c0f8a966b4b5dc531b0c1d49 | [
"BSL-1.0"
] | null | null | null | squid/test/unit/test_parameter.cpp | patrick-rotsaert/squid | 385159c17924d910c0f8a966b4b5dc531b0c1d49 | [
"BSL-1.0"
] | null | null | null | #include <gtest/gtest.h>
#include <squid/parameter.h>
namespace squid {
TEST(ParameterTest, ByValueConstructFromScalars)
{
#define TEST_CONSTRUCT_FROM_SCALAR(TYPE, VALUE) \
do ... | 48.835616 | 140 | 0.463519 | patrick-rotsaert |
e74758b9c44dd3fd33ec02416c67fe0ff297a090 | 15,805 | cpp | C++ | tests/test_selu.cpp | Arech/nntl | fdcd7f33216c6414547acea3c4c172734ef9412a | [
"BSD-3-Clause"
] | 12 | 2015-12-22T19:55:56.000Z | 2020-05-28T13:10:19.000Z | tests/test_selu.cpp | Arech/nntl | fdcd7f33216c6414547acea3c4c172734ef9412a | [
"BSD-3-Clause"
] | null | null | null | tests/test_selu.cpp | Arech/nntl | fdcd7f33216c6414547acea3c4c172734ef9412a | [
"BSD-3-Clause"
] | 1 | 2017-10-15T11:12:33.000Z | 2017-10-15T11:12:33.000Z | /*
This file is a part of NNTL project (https://github.com/Arech/nntl)
Copyright (c) 2015-2021, Arech (aradvert@gmail.com; https://github.com/Arech)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met... | 39.811083 | 145 | 0.690984 | Arech |
e7484af3bd1c0655640406fc4a79bdc42ac7ef31 | 756 | cpp | C++ | src/mbedTLS++/X509Cert.cpp | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | 4,126 | 2015-06-12T21:56:49.000Z | 2022-03-31T06:33:12.000Z | src/mbedTLS++/X509Cert.cpp | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | 2,931 | 2015-06-11T17:13:15.000Z | 2022-03-31T22:46:31.000Z | src/mbedTLS++/X509Cert.cpp | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | 917 | 2015-06-11T21:47:41.000Z | 2022-03-30T10:32:55.000Z |
// X509Cert.cpp
// Implements the cX509Cert class representing a wrapper over X509 certs in mbedTLS
#include "Globals.h"
#include "X509Cert.h"
cX509Cert::cX509Cert(void)
{
mbedtls_x509_crt_init(&m_Cert);
}
cX509Cert::~cX509Cert()
{
mbedtls_x509_crt_free(&m_Cert);
}
int cX509Cert::Parse(const void * ... | 18 | 118 | 0.752646 | wbrbr |
e74f144bc86d3f5cc1801042f1cdbe5a7e1c4223 | 982 | cpp | C++ | TLG.cpp | absnaik810/SPOJ-Repository | ec938a4670491f915432e25490b72a765089ae6c | [
"Unlicense"
] | 3 | 2015-06-07T15:53:42.000Z | 2018-02-20T06:15:10.000Z | TLG.cpp | harrypotter0/SPOJ | 3965c5a2c01e47a6cda06f26c26c871a3a1fc028 | [
"Unlicense"
] | null | null | null | TLG.cpp | harrypotter0/SPOJ | 3965c5a2c01e47a6cda06f26c26c871a3a1fc028 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
std::ios::sync_with_stdio(false);
int rounds,j=0,k=0;
cin>>rounds;
int player1[rounds];
int player2[rounds];
abc: for(;j<rounds;)
{
cin>>player1[j];
//cout<<"For player 1: "<<player1[j]<<endl;
j++;
break;
}
for(;k<rounds;)
... | 14.231884 | 45 | 0.541752 | absnaik810 |
e757083bcf6dd36e445dfd7c6979d13f34f85cac | 3,289 | cpp | C++ | 3DLfC4D/source/DisplayTranslator.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 3 | 2018-10-06T17:05:53.000Z | 2020-06-29T21:31:11.000Z | 3DLfC4D/source/DisplayTranslator.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 28 | 2018-11-14T19:08:18.000Z | 2019-06-30T10:25:13.000Z | 3DLfC4D/source/DisplayTranslator.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 6 | 2018-08-29T11:02:39.000Z | 2019-05-13T13:35:17.000Z | #include "DisplayTranslator.h"
#include "odisplay.h"
#include "DL_Utilities.h"
#include "DL_TypeConversions.h"
#include "c4d.h"
#include "nsi.hpp"
#include <customgui_inexclude.h>
void DisplayTranslator::CreateNSINodes(const char* Handle, const char* ParentTransformHandle, BaseList2D* C4DNode, BaseDocument* ... | 29.366071 | 159 | 0.704165 | FMalmberg |
e75d9a4b97316da4250a8a0c8380bea0f9dba715 | 2,341 | cpp | C++ | src/imu/imu.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | src/imu/imu.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | src/imu/imu.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | /**-------------------------------------------------------------------------
@file imu.cpp
@brief Implementation of an Inertial Measurement Unit
This a generic abstraction layer for IMU sensor fusion. It is a mean to
provide a common interface to different sensor fusion library out there.
@author Hoang Nguyen Hoan
... | 29.632911 | 112 | 0.717642 | tmaltesen |
e760465d02d1b604c9b96d129a71fe677636455c | 2,180 | cc | C++ | snapshot/ios/memory_snapshot_ios.cc | rbxeyl/crashpad | 95b4e6276836283a91e18382fb258598bd77f8aa | [
"Apache-2.0"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | snapshot/ios/memory_snapshot_ios.cc | rbxeyl/crashpad | 95b4e6276836283a91e18382fb258598bd77f8aa | [
"Apache-2.0"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | snapshot/ios/memory_snapshot_ios.cc | rbxeyl/crashpad | 95b4e6276836283a91e18382fb258598bd77f8aa | [
"Apache-2.0"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2020 The Crashpad Authors. 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 ... | 33.030303 | 78 | 0.760092 | rbxeyl |
e764037cd2d2b44a760465b8b68a2aef1705c258 | 334 | cpp | C++ | impuestoVehicular/src/Moto.cpp | Kamjue/Tricode | 430ce79a4b3cbd198bf32f1fbe90dd4947507d4d | [
"MIT"
] | null | null | null | impuestoVehicular/src/Moto.cpp | Kamjue/Tricode | 430ce79a4b3cbd198bf32f1fbe90dd4947507d4d | [
"MIT"
] | 1 | 2018-05-05T04:41:35.000Z | 2018-05-05T04:51:31.000Z | impuestoVehicular/src/Moto.cpp | Kamjue/Tricode | 430ce79a4b3cbd198bf32f1fbe90dd4947507d4d | [
"MIT"
] | null | null | null | #include <Moto.h>
Moto::Moto(){
motorCC = 0;
tasa = 2;
}
Moto::Moto(float cc){
motorCC = cc;
}
Moto::Moto(Moto &m){
motorCC = m.getMotorCC();
}
Moto::~Moto(){}
void Moto::setMotorCC(float cc){
motorCC = cc;
}
float Moto::getMotorCC(){
return motorCC;
}
float Moto::calcularMontoExtra(){
return tasa * ge... | 12.846154 | 33 | 0.625749 | Kamjue |
e7650657d0b9f21048651a2be989ca9c116e6950 | 527 | cpp | C++ | src/openpose/wrapper/wrapperStructVnect.cpp | mooktj/openpose | f4ee9cba3621093bba88bb17d1ea6a19ff3236ad | [
"DOC"
] | null | null | null | src/openpose/wrapper/wrapperStructVnect.cpp | mooktj/openpose | f4ee9cba3621093bba88bb17d1ea6a19ff3236ad | [
"DOC"
] | null | null | null | src/openpose/wrapper/wrapperStructVnect.cpp | mooktj/openpose | f4ee9cba3621093bba88bb17d1ea6a19ff3236ad | [
"DOC"
] | null | null | null | #include <openpose/wrapper/wrapperStructVnect.hpp>
#include <iostream>
namespace op
{
WrapperStructVnect::WrapperStructVnect(
const bool vnectEnable_, const std::string& modelFolder_,
const std::string& protoTxtFile_, const std::string& trainedModelFile_) :
vnectEnable{vnectEnable_},
... | 31 | 82 | 0.70019 | mooktj |
e7699a65fcbdc716b64dfadd1bb2b3f0f47335ad | 9,567 | cpp | C++ | daito-manabe-01/src/ofApp.cpp | eaviles/sfpc-2020-rtp | ca36258cf126ce668c6688ba88986d88407fe6b6 | [
"MIT"
] | 5 | 2020-07-12T08:02:28.000Z | 2021-11-21T17:56:48.000Z | daito-manabe-01/src/ofApp.cpp | eaviles/sfpc-2020-rtp | ca36258cf126ce668c6688ba88986d88407fe6b6 | [
"MIT"
] | null | null | null | daito-manabe-01/src/ofApp.cpp | eaviles/sfpc-2020-rtp | ca36258cf126ce668c6688ba88986d88407fe6b6 | [
"MIT"
] | 1 | 2021-11-21T17:57:05.000Z | 2021-11-21T17:57:05.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetWindowShape(IMAGE_WIDTH * 2, IMAGE_HEIGHT * 2);
ofSetFrameRate(60);
ofSetVerticalSync(true);
// grabber.setDeviceID(1);
grabber.setup(IMAGE_WIDTH, IMAGE_HEIGHT);
tracker.setup();
... | 31.996656 | 80 | 0.503711 | eaviles |
e769d813b5c51759681e90356c3301b0d2c7685b | 4,979 | cc | C++ | src/google_cloud_debugger/google_cloud_debugger_lib/breakpoint_location_collection.cc | emzeq/google-cloud-dotnet-debugger | 8eafe29b40582ebf735186b574af4d544158033e | [
"Apache-2.0"
] | 12 | 2018-06-05T04:06:26.000Z | 2021-10-09T14:14:18.000Z | src/google_cloud_debugger/google_cloud_debugger_lib/breakpoint_location_collection.cc | emzeq/google-cloud-dotnet-debugger | 8eafe29b40582ebf735186b574af4d544158033e | [
"Apache-2.0"
] | 47 | 2018-06-01T20:26:22.000Z | 2021-03-20T14:26:21.000Z | src/google_cloud_debugger/google_cloud_debugger_lib/breakpoint_location_collection.cc | emzeq/google-cloud-dotnet-debugger | 8eafe29b40582ebf735186b574af4d544158033e | [
"Apache-2.0"
] | 14 | 2018-06-04T17:12:25.000Z | 2021-10-09T14:14:04.000Z | // Copyright 2017 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... | 30.359756 | 77 | 0.709982 | emzeq |
e770b1b430223a781c8d895aa0861d711ebb383d | 898 | cpp | C++ | src/127.word_ladder/code2.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/127.word_ladder/code2.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/127.word_ladder/code2.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | class Solution {
public:
int ladderLength(string beginWord, string endWord, unordered_set<string>& wordList) {
queue<pair<string, int> > q;
q.push(make_pair(beginWord, 1));
wordList.erase(beginWord);
while (!q.empty()) {
string u = q.front().first;
int len = q... | 33.259259 | 89 | 0.398664 | cloudzfy |
e773122ab12d5e4f909382d14ac428b88265be8a | 1,071 | cpp | C++ | src/grid_service/src/MappedCell.cpp | phildkim/Swarmathon-PCC | 20cae8db6e58f696b83eb4ce71a7cb8913bde1aa | [
"MIT"
] | null | null | null | src/grid_service/src/MappedCell.cpp | phildkim/Swarmathon-PCC | 20cae8db6e58f696b83eb4ce71a7cb8913bde1aa | [
"MIT"
] | null | null | null | src/grid_service/src/MappedCell.cpp | phildkim/Swarmathon-PCC | 20cae8db6e58f696b83eb4ce71a7cb8913bde1aa | [
"MIT"
] | null | null | null | #include <cmath>
#include <sys/types.h>
#include <sys/mman.h>
#include <new>
#include <unistd.h>
#include "MappedCell.h"
// Static Class Variables
const uint8_t MappedCell::STATUS_REGISTER_OFFSET = 0;
const uint8_t MappedCell::STATISTIC_REGISTER_OFFSET = 4;
// Public Member Functions
MappedCell::MappedCell(uint8_t * ... | 28.945946 | 95 | 0.754435 | phildkim |
e7754e57ce66ff347cb643c30aae7259efb503fd | 8,577 | cpp | C++ | Source/SpaceTarget/Private/ARCoreSlamGenerator.cpp | zhmxiaowo/SpaceTarget | 32649a9eef3e6a1806cde7589f5065b17d3e72ab | [
"MIT"
] | 1 | 2021-12-13T12:43:03.000Z | 2021-12-13T12:43:03.000Z | Source/SpaceTarget/Private/ARCoreSlamGenerator.cpp | zhmxiaowo/SpaceTarget | 32649a9eef3e6a1806cde7589f5065b17d3e72ab | [
"MIT"
] | null | null | null | Source/SpaceTarget/Private/ARCoreSlamGenerator.cpp | zhmxiaowo/SpaceTarget | 32649a9eef3e6a1806cde7589f5065b17d3e72ab | [
"MIT"
] | 1 | 2022-03-02T08:51:59.000Z | 2022-03-02T08:51:59.000Z | #include "ARCoreSlamGenerator.h"
#if PLATFORM_ANDROID
#include "Runtime/Launch/Public/Android/AndroidJNI.h"
#include "Runtime/ApplicationCore/Public/Android/AndroidApplication.h"
#include "GoogleARCoreCameraImage.h"
#include "GoogleARCoreTypes.h"
#include "GoogleARCoreFunctionLibrary.h"
#include "GoogleARCoreCameraInt... | 30.30742 | 186 | 0.689868 | zhmxiaowo |
e776594fbd598c95b3e81560af668d272e915e5b | 1,119 | cpp | C++ | nowcoder/contest/33540/L.cpp | StableAgOH/solution-codes | 1fde9424a40f989570e05d7340ddd5497a0d390d | [
"CC0-1.0"
] | null | null | null | nowcoder/contest/33540/L.cpp | StableAgOH/solution-codes | 1fde9424a40f989570e05d7340ddd5497a0d390d | [
"CC0-1.0"
] | null | null | null | nowcoder/contest/33540/L.cpp | StableAgOH/solution-codes | 1fde9424a40f989570e05d7340ddd5497a0d390d | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <chrono>
using namespace std;
//==========================================
typedef long long ll;
inline ll s(ll a,ll b) { return a*(a+1)/2*b*(b+1)/2; }
signed main(signed argc, char const *argv[])
{
#ifdef LOCAL
freopen("in.in", "r", stdin);
freopen("out.out", "w", stdout);
auto... | 27.292683 | 95 | 0.495085 | StableAgOH |
e77a26c34f01769bc8dc5eff54281cff525c16ea | 1,235 | cpp | C++ | BZOJ/4518/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/4518/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/4518/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#define rep(i,x,y) for(register int i=(x);i<=(y);++i)
#define per(i,x,y) for(register int i=(x);i>=(y);--i)
typedef long long LL;
const int maxn=3010;
using namespace std;
inline LL sqr(LL x){return x*x;}
inline LL read(){LL tmp=0;char c=getchar();while(c<'0'||c>'9')c=getchar();while... | 30.121951 | 136 | 0.551417 | sjj118 |
e77bd28725cce947d5285e06c0006be2daa9a6e2 | 2,142 | cc | C++ | src/xqp/qpconfig.cc | DouglasRMiles/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | 5 | 2019-11-20T02:05:31.000Z | 2022-01-06T18:59:16.000Z | src/xqp/qpconfig.cc | logicmoo/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | null | null | null | src/xqp/qpconfig.cc | logicmoo/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | 2 | 2022-01-08T13:52:24.000Z | 2022-03-07T17:41:37.000Z | /***************************************************************************
qpconfig.cc - configuration
-------------------
begin : April 2004
copyright : (C) 2004 by Peter Robinson
email : pjr@itee.uq.edu.au
... | 33.46875 | 77 | 0.457983 | DouglasRMiles |
e77cfd5b99f366a07db61d2aa365c203a381c272 | 1,213 | cpp | C++ | Plugins/CaptionMod/SourceSDK/scheme.cpp | anchurcn/MetaHookSv | 8408f57d5abb2109285ed9f7897e3a0776e51c87 | [
"MIT"
] | 31 | 2021-01-20T08:12:48.000Z | 2022-03-29T16:47:50.000Z | Plugins/CaptionMod/SourceSDK/scheme.cpp | anchurcn/MetaHookSv | 8408f57d5abb2109285ed9f7897e3a0776e51c87 | [
"MIT"
] | 118 | 2021-02-04T17:57:48.000Z | 2022-03-31T13:03:21.000Z | Plugins/CaptionMod/SourceSDK/scheme.cpp | anchurcn/MetaHookSv | 8408f57d5abb2109285ed9f7897e3a0776e51c87 | [
"MIT"
] | 13 | 2021-01-21T01:43:19.000Z | 2022-03-15T04:51:19.000Z | #include <vgui/IScheme.h>
using namespace vgui;
//-----------------------------------------------------------------------------
// Purpose:
// Input : font -
// Output : char const
//-----------------------------------------------------------------------------
char const *IScheme::GetFontName( const HFont& font )
... | 31.921053 | 110 | 0.564716 | anchurcn |
e780f72bbebf1dd2ddbdde14ef266bebf9bf5557 | 504 | cpp | C++ | src/mdlitr2d.cpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | src/mdlitr2d.cpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | src/mdlitr2d.cpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | #include "tfnode_base2d.hpp"
namespace beat {
namespace g2 {
MdlItr::MdlItr(const Tf_SP& sp):
_sp(sp)
{}
MdlItr& MdlItr::operator ++ () {
_sp = _sp->getSibling();
return *this;
}
bool MdlItr::operator == (const MdlItr& m) const {
return _sp == m._sp;
}
bool MdlItr::operator != (const MdlItr&... | 19.384615 | 52 | 0.597222 | degarashi |
e78114aaae1075dd73c71898b3fe53a8fc32ebec | 12,461 | cpp | C++ | amd_openvx_extensions/amd_winml/utilities/MIVisionX-WinML-Validate/source/mivisionx_winml_validate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | null | null | null | amd_openvx_extensions/amd_winml/utilities/MIVisionX-WinML-Validate/source/mivisionx_winml_validate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | 8 | 2021-12-10T14:07:28.000Z | 2022-03-04T02:53:11.000Z | amd_openvx_extensions/amd_winml/utilities/MIVisionX-WinML-Validate/source/mivisionx_winml_validate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | 2 | 2021-06-01T09:42:51.000Z | 2021-11-09T14:35:36.000Z | /*
Copyright (c) 2019 - 2022 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use,... | 32.792105 | 149 | 0.654843 | Indumathi31 |
e782a4e227c4c146fe76286be7a466a8071860b5 | 528 | hpp | C++ | include/burndown/parser.hpp | winsider/burndown | fe1242ead437002184d4062797a8c0387cdd7fcc | [
"MIT"
] | null | null | null | include/burndown/parser.hpp | winsider/burndown | fe1242ead437002184d4062797a8c0387cdd7fcc | [
"MIT"
] | null | null | null | include/burndown/parser.hpp | winsider/burndown | fe1242ead437002184d4062797a8c0387cdd7fcc | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <burndown/string_segment.hpp>
namespace ltc
{
namespace bd
{
/**
* Parse buffer with csp template data
*
* \param csp_txt Buffer with CSP data
*/
std::vector<string_segment> parse_csp_buffer(const std:... | 22.956522 | 87 | 0.573864 | winsider |
e7899ddaaaf11e9348d60698ee382a470bf9d35e | 1,464 | cpp | C++ | frameworks/qt/libs/util/dmzQtUtil.cpp | tongli/dmz | f2242027a17ea804259f9412b07d69f719a527c5 | [
"MIT"
] | 1 | 2016-05-08T22:02:35.000Z | 2016-05-08T22:02:35.000Z | frameworks/qt/libs/util/dmzQtUtil.cpp | ashok/dmz | 2f8d4bced646f25abf2e98bdc0d378dafb4b32ed | [
"MIT"
] | null | null | null | frameworks/qt/libs/util/dmzQtUtil.cpp | ashok/dmz | 2f8d4bced646f25abf2e98bdc0d378dafb4b32ed | [
"MIT"
] | null | null | null | #include <dmzQtUtil.h>
#include <math.h>
#include <QtGui/QtGui>
dmz::Float64
dmz::get_qmatrix_scale (const QMatrix &Source) {
qreal scaleX = Source.m11 ();
qreal scaleY = Source.m12 ();
qreal scale = sqrt (scaleX * scaleX + scaleY + scaleY);
return scale;
}
void
dmz::set_qobject_properties (const Strin... | 20.914286 | 89 | 0.599044 | tongli |
e78a7495dc31b658e56b1ac6c1de7d0089ab3979 | 15,856 | cpp | C++ | engine/graphics/opengl/android/OGLRenderDeviceAndroid.cpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | engine/graphics/opengl/android/OGLRenderDeviceAndroid.cpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | engine/graphics/opengl/android/OGLRenderDeviceAndroid.cpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | // Ouzel by Elviss Strazdins
#include "../../../core/Setup.h"
#if defined(__ANDROID__) && OUZEL_COMPILE_OPENGL
#include <algorithm>
#include "OGLRenderDeviceAndroid.hpp"
#include "../EGLErrorCategory.hpp"
#include "../../../core/Engine.hpp"
#include "../../../core/Window.hpp"
#include "../../../core/android/NativeWi... | 40.243655 | 116 | 0.60135 | tsukoyumi |
e78feb19e9af87d73f00bc2d2232fd9613159261 | 393 | cpp | C++ | 2016-maximum-difference-between-increasing-elements/2016-maximum-difference-between-increasing-elements.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 2016-maximum-difference-between-increasing-elements/2016-maximum-difference-between-increasing-elements.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 2016-maximum-difference-between-increasing-elements/2016-maximum-difference-between-increasing-elements.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | class Solution {
public:
int maximumDifference(vector<int>& nums) {
int n=nums.size();
int dif=0;
for(int i=0;i<n;i++){
for(int j=i+1;j<n;j++){
if(nums[i]<nums[j] && i<j){
dif=max((nums[j]-nums[i]),dif);
}
}
... | 23.117647 | 51 | 0.379135 | SouvikChan |
e79339d8380068bb8c9df637b649068911060de7 | 419 | cpp | C++ | 01.02-variadicTemplateSum1/main.cpp | curtkim/programming-with-cpp20 | 7f2e4441e3ea550a9177499b0805481efc23685d | [
"MIT"
] | null | null | null | 01.02-variadicTemplateSum1/main.cpp | curtkim/programming-with-cpp20 | 7f2e4441e3ea550a9177499b0805481efc23685d | [
"MIT"
] | null | null | null | 01.02-variadicTemplateSum1/main.cpp | curtkim/programming-with-cpp20 | 7f2e4441e3ea550a9177499b0805481efc23685d | [
"MIT"
] | null | null | null | // Copyright (c) Andreas Fertig.
// SPDX-License-Identifier: MIT
#include <cstdio>
#include <type_traits>
template<typename T, typename... Ts>
inline constexpr bool are_same_v =
std::conjunction_v<std::is_same<T, Ts>...>;
template<typename... Args>
auto add(Args&&... args)
{
static_assert(are_same_v<Args...>);
... | 17.458333 | 45 | 0.639618 | curtkim |
e794dd27b5ee186d36ca63a6c095d14583731dea | 1,099 | cc | C++ | src/reindexer/core/perfstatcounter.cc | arock121/pocketnet.core | bc08bf9dc565c60d7e7d53e3cc615408b76f9bde | [
"ECL-2.0",
"Apache-2.0"
] | 72 | 2019-06-23T07:48:03.000Z | 2022-03-31T03:47:04.000Z | src/reindexer/core/perfstatcounter.cc | arock121/pocketnet.core | bc08bf9dc565c60d7e7d53e3cc615408b76f9bde | [
"ECL-2.0",
"Apache-2.0"
] | 153 | 2021-01-20T08:10:23.000Z | 2022-03-31T23:30:50.000Z | src/reindexer/core/perfstatcounter.cc | arock121/pocketnet.core | bc08bf9dc565c60d7e7d53e3cc615408b76f9bde | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2019-10-10T22:18:25.000Z | 2022-02-12T01:08:29.000Z |
#include "perfstatcounter.h"
#include "estl/shared_mutex.h"
namespace reindexer {
template <typename Mutex>
void PerfStatCounter<Mutex>::Hit(std::chrono::microseconds time) {
std::unique_lock<Mutex> lck(mtx_);
totalTime += time;
calcTime += time;
calcHitCount++;
totalHitCount++;
lap();
}
template <typename Mu... | 26.166667 | 112 | 0.744313 | arock121 |
e79c0d1778b4cde8c5ba93a0b52a63d628bca142 | 3,061 | cpp | C++ | tests/src/parse_string_tests.cpp | stac47/jsoncons | b9e95d6a0bcb2dc8a821d33f98a530f10cfe1bc0 | [
"BSL-1.0"
] | null | null | null | tests/src/parse_string_tests.cpp | stac47/jsoncons | b9e95d6a0bcb2dc8a821d33f98a530f10cfe1bc0 | [
"BSL-1.0"
] | null | null | null | tests/src/parse_string_tests.cpp | stac47/jsoncons | b9e95d6a0bcb2dc8a821d33f98a530f10cfe1bc0 | [
"BSL-1.0"
] | 2 | 2020-09-15T13:00:19.000Z | 2020-11-13T13:17:44.000Z | // Copyright 2016 Daniel Parker
// Distributed under Boost license
#include <jsoncons/json.hpp>
#include <jsoncons/json_encoder.hpp>
#include <jsoncons/json_reader.hpp>
#include <catch/catch.hpp>
#include <sstream>
#include <vector>
#include <utility>
#include <ctime>
using namespace jsoncons;
struct jsonpath_filter... | 23.015038 | 87 | 0.590003 | stac47 |
e79e0c8f527fcec565ec54f980be810dc9b7c57d | 3,618 | cpp | C++ | PROJECTS/smarthome/hub/multiregistrar/registrar.cpp | afatom/core-program | 7886acf67f6b81bd06edef41f6ddab83cc993927 | [
"MIT"
] | null | null | null | PROJECTS/smarthome/hub/multiregistrar/registrar.cpp | afatom/core-program | 7886acf67f6b81bd06edef41f6ddab83cc993927 | [
"MIT"
] | null | null | null | PROJECTS/smarthome/hub/multiregistrar/registrar.cpp | afatom/core-program | 7886acf67f6b81bd06edef41f6ddab83cc993927 | [
"MIT"
] | null | null | null | #include <multiregistrar.h>
typedef std::map<const string, vector<Ilistener_t*> > SingleMap;
typedef std::map<const string, map <const string, vector<Ilistener_t*> > > DualMap;
typedef std::map<const string, map < const string, map <const string, vector<Ilistener_t*> > > > TrippleMap;
MRegistrar_t::MRegistrar_t()
{... | 25.125 | 124 | 0.694859 | afatom |
e79e39b55e2233cf58c603da71ec8aa82e5cc591 | 12,744 | cpp | C++ | lib/_studio/mfx_lib/shared/src/libmfxsw_plugin.cpp | 3xLOGICKevinHan/MediaSDK | 92b6ee70f5ea45d08527f81cb93105f9ee71d84e | [
"MIT"
] | null | null | null | lib/_studio/mfx_lib/shared/src/libmfxsw_plugin.cpp | 3xLOGICKevinHan/MediaSDK | 92b6ee70f5ea45d08527f81cb93105f9ee71d84e | [
"MIT"
] | null | null | null | lib/_studio/mfx_lib/shared/src/libmfxsw_plugin.cpp | 3xLOGICKevinHan/MediaSDK | 92b6ee70f5ea45d08527f81cb93105f9ee71d84e | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publ... | 31.312039 | 114 | 0.579488 | 3xLOGICKevinHan |
e79ebd9d3f1a4d91954888a8a46f89065e9ff6a2 | 553 | cpp | C++ | src/distance.cpp | dickoa/euclid | 6588a6f56c73779152ff99eb06f41b3ec61170bc | [
"MIT"
] | 68 | 2020-09-17T13:17:03.000Z | 2022-02-20T09:14:54.000Z | src/distance.cpp | dickoa/euclid | 6588a6f56c73779152ff99eb06f41b3ec61170bc | [
"MIT"
] | 27 | 2020-09-17T13:35:53.000Z | 2022-01-20T09:12:48.000Z | src/distance.cpp | dickoa/euclid | 6588a6f56c73779152ff99eb06f41b3ec61170bc | [
"MIT"
] | 11 | 2020-09-17T11:43:37.000Z | 2022-01-10T13:08:27.000Z | #include "geometry_vector.h"
#include "exact_numeric.h"
#include <cpp11/matrix.hpp>
#include <cpp11/external_pointer.hpp>
[[cpp11::register]]
exact_numeric_p geometry_squared_distance(geometry_vector_base_p geo1, geometry_vector_base_p geo2) {
std::vector<Exact_number> res = geo1->squared_distance(*geo2);
exact_nu... | 32.529412 | 116 | 0.792043 | dickoa |
e7a12ce94f49e99bbfdd6fd80e4ea05440370372 | 766 | cpp | C++ | src/Memory/FrameMemoryResource.cpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | 2 | 2019-06-10T06:51:27.000Z | 2021-11-20T19:57:46.000Z | src/Memory/FrameMemoryResource.cpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | 1 | 2019-07-12T03:05:02.000Z | 2019-08-12T12:01:06.000Z | src/Memory/FrameMemoryResource.cpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | null | null | null | #include "FrameMemoryResource.h"
#include "MemoryResource.h"
XE::FrameMemoryResource::FrameMemoryResource()
:std::pmr::monotonic_buffer_resource( KBYTE( 16 ), MemoryResource::GetDefaultMemoryResource() )
{
}
XE::FrameMemoryResource::~FrameMemoryResource() noexcept
{
}
void * XE::FrameMemoryResource::do_allocate(... | 25.533333 | 99 | 0.766319 | xenginez |
e7a1e9d61a3a125bb6ddbcd3f3ae7ea581885cca | 15,656 | cc | C++ | src/xenia/cpu/frontend/ppc_emit_fpu.cc | Parovozik/Xenia_UI | 3f12becc1845a8fc264ae74d25e28e543f61b5b4 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/cpu/frontend/ppc_emit_fpu.cc | Parovozik/Xenia_UI | 3f12becc1845a8fc264ae74d25e28e543f61b5b4 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/cpu/frontend/ppc_emit_fpu.cc | Parovozik/Xenia_UI | 3f12becc1845a8fc264ae74d25e28e543f61b5b4 | [
"BSD-3-Clause"
] | 1 | 2018-10-16T16:45:27.000Z | 2018-10-16T16:45:27.000Z | /*
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... | 26.762393 | 79 | 0.627172 | Parovozik |
e7a232b376eb7f58d05f150495b52e63d05dda83 | 598 | cpp | C++ | checkersProgram/checkersProgram/checker.cpp | madv/CheckersProgram | b671efbdbe3d0e7442d347eb361bc35d771f78da | [
"MIT"
] | null | null | null | checkersProgram/checkersProgram/checker.cpp | madv/CheckersProgram | b671efbdbe3d0e7442d347eb361bc35d771f78da | [
"MIT"
] | null | null | null | checkersProgram/checkersProgram/checker.cpp | madv/CheckersProgram | b671efbdbe3d0e7442d347eb361bc35d771f78da | [
"MIT"
] | null | null | null | #include "checker.h"
checker::checker(const char& color, const bool& isKing, int x, int y) : color(color), isKing(isKing), x(x), y(y)
{
}
checker::~checker()
{
}
void checker::setColor(char color)
{
this->color = color;
}
void checker::setKing(bool isKing)
{
this->isKing = isKing;
}
char checker::getColor() const
{
... | 13.590909 | 112 | 0.658863 | madv |
e7a640e4dd78ce1e0a3243720c6aeee719b78355 | 47 | cpp | C++ | core/Drawable.cpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | core/Drawable.cpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | core/Drawable.cpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | #include "Drawable.hpp"
namespace glider{
}
| 6.714286 | 23 | 0.702128 | Xecutor |
e7a9a1d731a4f54e845be7ee2cd398ad8dd3f193 | 1,753 | cpp | C++ | source/serialization/EpAttribute.cpp | soundandform/epigram | f4f560b405e529e84ffd4e8a0b1101bf57148b90 | [
"MIT"
] | 3 | 2018-02-16T04:30:22.000Z | 2021-03-26T02:06:51.000Z | source/serialization/EpAttribute.cpp | soundandform/epigram | f4f560b405e529e84ffd4e8a0b1101bf57148b90 | [
"MIT"
] | null | null | null | source/serialization/EpAttribute.cpp | soundandform/epigram | f4f560b405e529e84ffd4e8a0b1101bf57148b90 | [
"MIT"
] | null | null | null | //
// EpAttribute.cpp
// Tape
//
// Created by Steven Massey on 6/23/20.
// Copyright © 2020 Massey Plugins Inc. All rights reserved.
//
#include <string_view>
#include "EpAttribute.hpp"
u8 EpAttributes::GetTypeForName_ (const string & i_attributeName)
{
return m_attributes [i_attributeName].type;
}
string EpA... | 22.766234 | 138 | 0.6081 | soundandform |
e7aab713ad1ba20154560e68f28536dfec1fe541 | 6,186 | cpp | C++ | cvs/objects/target_finder/source/target_factory.cpp | cmcormack/gcam-core | ccbe826dbfeb9ed85472977aac6d36dbbf763a23 | [
"ECL-2.0"
] | 157 | 2016-10-13T17:44:11.000Z | 2022-03-30T09:34:50.000Z | cvs/objects/target_finder/source/target_factory.cpp | cmcormack/gcam-core | ccbe826dbfeb9ed85472977aac6d36dbbf763a23 | [
"ECL-2.0"
] | 190 | 2016-10-13T20:19:10.000Z | 2022-03-25T19:17:05.000Z | cvs/objects/target_finder/source/target_factory.cpp | cmcormack/gcam-core | ccbe826dbfeb9ed85472977aac6d36dbbf763a23 | [
"ECL-2.0"
] | 95 | 2016-10-13T17:44:44.000Z | 2022-03-28T02:10:52.000Z | /*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... | 45.485294 | 86 | 0.622373 | cmcormack |
e7aee99a19c3e594eb93e9aef69b4c41d41fe0b9 | 151 | cpp | C++ | src/src/XEngine/Components/SpawnComponent.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 11 | 2017-01-17T15:02:25.000Z | 2020-11-27T16:54:42.000Z | src/src/XEngine/Components/SpawnComponent.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 9 | 2016-10-23T20:15:38.000Z | 2018-02-06T11:23:17.000Z | src/src/XEngine/Components/SpawnComponent.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 2 | 2019-08-29T10:23:51.000Z | 2020-04-03T06:08:34.000Z | #include <XEngine/Components/SpawnComponent.hpp>
namespace XE
{
SpawnComponent::SpawnComponent()
: group(0)
, spawnPointId(0)
{
}
} // ns XE | 11.615385 | 48 | 0.682119 | devxkh |
e7b360ab160b9b751a5d1e68f47fd9cd95e23e58 | 1,669 | hpp | C++ | generator/list.hpp | kindone/cppproptest | db3cace33af7914d6d2b65945baa5554da281725 | [
"MIT"
] | 1 | 2021-06-19T05:40:33.000Z | 2021-06-19T05:40:33.000Z | generator/list.hpp | kindone/cppproptest | db3cace33af7914d6d2b65945baa5554da281725 | [
"MIT"
] | null | null | null | generator/list.hpp | kindone/cppproptest | db3cace33af7914d6d2b65945baa5554da281725 | [
"MIT"
] | null | null | null | #pragma once
#include "../gen.hpp"
#include "../Random.hpp"
#include "../util/printing.hpp"
#include "../shrinker/listlike.hpp"
#include "util.hpp"
#include "../util/std.hpp"
namespace proptest {
template <typename T>
class PROPTEST_API Arbi<list<T>> final : public ArbiContainer<list<T>> {
public:
using List = l... | 29.803571 | 109 | 0.673457 | kindone |
e7b4027dbb3b186fae3b8eac56714ab036cf69dc | 321 | cpp | C++ | ch03/ex3_25.cpp | yunongzhou/cppprimer | 331cdc69f9063fca3466fda994a06de12387d0b3 | [
"MIT"
] | 2 | 2018-08-22T15:04:17.000Z | 2018-08-26T16:05:59.000Z | ch03/ex3_25.cpp | yunongzhou/cppprimer | 331cdc69f9063fca3466fda994a06de12387d0b3 | [
"MIT"
] | null | null | null | ch03/ex3_25.cpp | yunongzhou/cppprimer | 331cdc69f9063fca3466fda994a06de12387d0b3 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
using Vector = vector<unsigned>;
int main(){
Vector score(11,0);
unsigned grade;
while(cin >> grade){
++(*(score.begin() + grade/10));
}
for(auto i:score) cout << i << endl;
return 0;
} // main... | 13.956522 | 38 | 0.619938 | yunongzhou |
e7b788bd461f209151b61cf5f52dd1ea7f50de69 | 974 | cpp | C++ | kalimat/Parser/parserexception.cpp | mobadarah/kalimat-lang | 9eb6c64dd5380efaf863b619a506ebf000be7fd9 | [
"Apache-2.0"
] | 6 | 2021-07-05T15:35:33.000Z | 2022-03-25T21:21:43.000Z | kalimat/Parser/parserexception.cpp | anasawad/kalimat | 830cbe9ddde13865bc1f77a2f74efd3dac3b58cc | [
"Apache-2.0"
] | null | null | null | kalimat/Parser/parserexception.cpp | anasawad/kalimat | 830cbe9ddde13865bc1f77a2f74efd3dac3b58cc | [
"Apache-2.0"
] | 1 | 2022-03-25T21:15:33.000Z | 2022-03-25T21:15:33.000Z | #include "../Lexer/token.h"
#include "parserexception.h"
ParserException::ParserException(QString fileName, QString msg)
{
this->fileName = fileName;
message = msg;
hasPosInfo = false;
ErrType = -1;
}
ParserException::ParserException(QString fileName, Token pos, QString msg)
{
this->f... | 24.974359 | 75 | 0.568789 | mobadarah |
e7b7db709e137c39e4fac6d2d4c394eb1d98e3d7 | 10,673 | cc | C++ | sparse_operation_kit/kit_cc/kit_cc_infra/src/embeddings/embedding_layer.cc | marsmiao/HugeCTR | c9ff359a69565200fcc0c7aae291d9c297bea70e | [
"Apache-2.0"
] | null | null | null | sparse_operation_kit/kit_cc/kit_cc_infra/src/embeddings/embedding_layer.cc | marsmiao/HugeCTR | c9ff359a69565200fcc0c7aae291d9c297bea70e | [
"Apache-2.0"
] | null | null | null | sparse_operation_kit/kit_cc/kit_cc_infra/src/embeddings/embedding_layer.cc | marsmiao/HugeCTR | c9ff359a69565200fcc0c7aae291d9c297bea70e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021, NVIDIA 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 45.033755 | 120 | 0.696805 | marsmiao |
e7baf270c19223d17fd5cefdf85648a50b45b32b | 325 | cpp | C++ | test/main.cpp | Sharma117555448/Robot_Contoller-1 | 2656345bd24b34153ea1f5751d99438e199e8546 | [
"MIT"
] | 1 | 2022-03-25T13:42:01.000Z | 2022-03-25T13:42:01.000Z | test/main.cpp | Sharma117555448/Robot_Contoller-1 | 2656345bd24b34153ea1f5751d99438e199e8546 | [
"MIT"
] | null | null | null | test/main.cpp | Sharma117555448/Robot_Contoller-1 | 2656345bd24b34153ea1f5751d99438e199e8546 | [
"MIT"
] | 1 | 2021-10-06T19:48:46.000Z | 2021-10-06T19:48:46.000Z | /**
* @file main.cpp
* @authors Vivek Sood and Charu Sharma
* @brief primary source file
* @date 2021-10-16
* @copyright Copyright (c) 2021
*
* ENPM808X Midterm - Phase 0 Proposal
*
*/
#include <gtest/gtest.h>
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS(... | 18.055556 | 41 | 0.661538 | Sharma117555448 |
e7c0f769c870cef1dee6a63a884e943e9cff3765 | 5,774 | cpp | C++ | blingfireclient.library/src/FAWftConfKeeper.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | blingfireclient.library/src/FAWftConfKeeper.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | blingfireclient.library/src/FAWftConfKeeper.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#include "blingfire-client_src_pch.h"
#include "FAConfig.h"
#include "FAWftConfKeeper.h"
#include "FAFsmConst.h"
#include "FALDB.h"
#include "FARSDfa_pack_triv.h"
#include "FAState2Ows_pack_triv.h"
#in... | 23.376518 | 91 | 0.520783 | ameyac-msft |
b10e05d29d08ba326046ea0d635cd56fedada92d | 3,572 | cpp | C++ | src/event/event_emitter.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/event/event_emitter.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/event/event_emitter.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#include "event_emitter.hpp"
namespace Zen {
std::vector<std::string> EventEmitter::getEventNames (Entity entity_)
{
auto iterator_ = eventMap.fi... | 22.465409 | 92 | 0.707167 | hexoctal |
b1113c895c52c9ea12d0332e7e26c57b72f5c320 | 936 | cpp | C++ | connect_nodes_at_same_level.cpp | Gauawa12/GFG-codes | c790efb783c463187dcfce4b7155d9f86227dbed | [
"MIT"
] | null | null | null | connect_nodes_at_same_level.cpp | Gauawa12/GFG-codes | c790efb783c463187dcfce4b7155d9f86227dbed | [
"MIT"
] | null | null | null | connect_nodes_at_same_level.cpp | Gauawa12/GFG-codes | c790efb783c463187dcfce4b7155d9f86227dbed | [
"MIT"
] | null | null | null | void connect(Node *p)
{
queue<Node*>q;
q.push(p);
while(!q.empty())
{
int s=q.size();
while(s>=1)
{
if(s==1)
{
Node* t=q.front();
q.pop();
if(t->left)
{
q.push(t->left);
... | 19.5 | 36 | 0.208333 | Gauawa12 |
b1118c1008c7ac10f8f94b2174409eed8c829373 | 386 | cpp | C++ | templates/others/zeller.cpp | st1vdy/Algorithm-Library | 7fdab3190afbb7076e95650bce712857107c80ef | [
"MIT"
] | 4 | 2021-11-05T08:57:30.000Z | 2022-03-23T06:45:38.000Z | templates/others/zeller.cpp | st1vdy/Algorithm-Library | 7fdab3190afbb7076e95650bce712857107c80ef | [
"MIT"
] | null | null | null | templates/others/zeller.cpp | st1vdy/Algorithm-Library | 7fdab3190afbb7076e95650bce712857107c80ef | [
"MIT"
] | null | null | null | int zeller(int y, int m, int d) { // 蔡勒公式 返回星期几
if (m <= 2) y--, m += 12;
int c = y / 100; y %= 100;
int w = ((c >> 2) - (c << 1) + y + (y >> 2) +
(13 * (m + 1) / 5) + d - 1) % 7;
if (w < 0) w += 7;
return (w);
}
int getId(int y, int m, int d) { // 返回到公元1年1月1日的天数
if (m < 3) { y--; m += 12; }
return 365 * y + ... | 29.692308 | 50 | 0.401554 | st1vdy |
b111a24146b20b1b91f6f267045611d2c5b15212 | 1,049 | cpp | C++ | coordinate.cpp | nyczbrandon/RushHour | decb78ae430314a07f2cde5673e36a7b6ec9976a | [
"Xnet",
"X11",
"CECILL-B"
] | 1 | 2018-02-11T01:33:53.000Z | 2018-02-11T01:33:53.000Z | coordinate.cpp | nyczbrandon/RushHour | decb78ae430314a07f2cde5673e36a7b6ec9976a | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | coordinate.cpp | nyczbrandon/RushHour | decb78ae430314a07f2cde5673e36a7b6ec9976a | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | #include "coordinate.hh"
Coordinate::Coordinate(char r, int c)
{
row = r;
col = c;
}
char Coordinate::getRow()
{
return row;
}
int Coordinate::getColumn()
{
return col;
}
Coordinate Coordinate::getLeft()
{
return Coordinate(row, col - 1);
}
Coordinate Coordinate::getRight()
{
return ... | 14.774648 | 48 | 0.628217 | nyczbrandon |
b111e59f63297c0c9ef425fe2e9b59a3c4d2ceae | 399 | cc | C++ | leetcode/powx-n.cc | Waywrong/leetcode-solution | 55115aeab4040f5ff84bdce6ffcfe4a98f879616 | [
"MIT"
] | null | null | null | leetcode/powx-n.cc | Waywrong/leetcode-solution | 55115aeab4040f5ff84bdce6ffcfe4a98f879616 | [
"MIT"
] | null | null | null | leetcode/powx-n.cc | Waywrong/leetcode-solution | 55115aeab4040f5ff84bdce6ffcfe4a98f879616 | [
"MIT"
] | null | null | null | // Pow(x,n)
class Solution {
public:
double myPow(double x, int n) {
if (x == 0) return 0;
if (n == 0) return 1;
if (n < 0) {
n = abs(n);
x = 1 / x;
}
double t = myPow(x, n/2);
double res;
if (n % 2)
res = t * t * x;
... | 19.95 | 37 | 0.353383 | Waywrong |
b11225f85adcbb6befe38f5161391a8f99f2951f | 6,104 | cpp | C++ | Source/Foundation/bsfCore/Renderer/BsSkybox.cpp | hhyyrylainen/bsf | b8c1f88d9e5a236a8623a39d0fb91d65995a7660 | [
"MIT"
] | null | null | null | Source/Foundation/bsfCore/Renderer/BsSkybox.cpp | hhyyrylainen/bsf | b8c1f88d9e5a236a8623a39d0fb91d65995a7660 | [
"MIT"
] | null | null | null | Source/Foundation/bsfCore/Renderer/BsSkybox.cpp | hhyyrylainen/bsf | b8c1f88d9e5a236a8623a39d0fb91d65995a7660 | [
"MIT"
] | null | null | null | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "Renderer/BsSkybox.h"
#include "Private/RTTI/BsSkyboxRTTI.h"
... | 25.864407 | 124 | 0.710518 | hhyyrylainen |
b1135147f3327846a203cb35f53ff558946f9eb5 | 2,718 | hpp | C++ | include/boost/webclient/asio/has_timeout.hpp | madmongo1/webclient | 7eb52899443a76ced83b6f286b0e0d688f02fc65 | [
"BSL-1.0"
] | 3 | 2020-06-12T02:22:41.000Z | 2021-03-23T14:18:01.000Z | include/boost/webclient/asio/has_timeout.hpp | madmongo1/webclient | 7eb52899443a76ced83b6f286b0e0d688f02fc65 | [
"BSL-1.0"
] | 1 | 2020-06-12T02:29:08.000Z | 2020-07-18T10:07:05.000Z | include/boost/webclient/asio/has_timeout.hpp | madmongo1/webclient | 7eb52899443a76ced83b6f286b0e0d688f02fc65 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2020 Richard Hodges (hodges.r@gmail.com)
//
// 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)
//
// Official repository: https://github.com/madmongo1/webclient
//
// This project was made possible ... | 28.610526 | 94 | 0.668874 | madmongo1 |
b11426218e399d5f9c11b9fd2a26731b719f63d4 | 3,042 | cc | C++ | gr-dip/lib/gradient_magnitude_impl.cc | mattdarc/gr-dip | 34d2a0d3ec8b78376928df48d4433ab813f702d1 | [
"MIT"
] | 1 | 2018-05-16T04:24:06.000Z | 2018-05-16T04:24:06.000Z | gr-dip/lib/gradient_magnitude_impl.cc | mattdarc/gnuradio-image-processing | 34d2a0d3ec8b78376928df48d4433ab813f702d1 | [
"MIT"
] | null | null | null | gr-dip/lib/gradient_magnitude_impl.cc | mattdarc/gnuradio-image-processing | 34d2a0d3ec8b78376928df48d4433ab813f702d1 | [
"MIT"
] | null | null | null | /* -*- c++ -*- */
/*
* Copyright 2018 <+YOU OR YOUR COMPANY+>.
*
* This 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 3, or (at your option)
* any later version.
*
* This software is d... | 29.25 | 82 | 0.605523 | mattdarc |
b116bf4434fee9f330b2513eec2eb44336c5973e | 435 | cpp | C++ | Holiday Of Equality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | 1 | 2021-04-07T05:13:21.000Z | 2021-04-07T05:13:21.000Z | Holiday Of Equality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | null | null | null | Holiday Of Equality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | null | null | null | /*
This code is written by Manavesh Narendra
E-mail : manu.karenite@gmail.com
LinkedIn : https://www.linkedin.com/in/manavesh-narendra-489833196/
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
sort(arr,arr+... | 15 | 67 | 0.611494 | manu-karenite |
b1238ce5a116d004e1fdf30c2a67e67bad42044b | 20,591 | cpp | C++ | test/matcher.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | null | null | null | test/matcher.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | 63 | 2020-10-05T07:01:49.000Z | 2022-03-15T20:08:22.000Z | test/matcher.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | null | null | null | #include "matcher.h"
#include "3rd-party/catch.hpp"
#include <map>
#include "matchable.h"
#include "matcherexception.h"
#include "test-helpers/stringmaker/optional.h"
using namespace newsboat;
class MatcherMockMatchable : public Matchable {
public:
MatcherMockMatchable() = default;
MatcherMockMatchable(
std::... | 24.77858 | 88 | 0.635957 | amritbrar |
b127b77c2f1c5fa80304bae37934bf96e265a1d1 | 314 | hpp | C++ | Source/Colyseus/Protocol.hpp | endel/colyseus-cocos2d-x | 96a12a15d1f70f061365769e6cc84ba9bde49c72 | [
"MIT"
] | 15 | 2019-01-24T22:05:12.000Z | 2022-01-19T08:40:42.000Z | Source/Colyseus/Protocol.hpp | endel/colyseus-cocos2d-x | 96a12a15d1f70f061365769e6cc84ba9bde49c72 | [
"MIT"
] | 3 | 2019-02-09T14:19:21.000Z | 2021-05-08T01:41:38.000Z | Source/Colyseus/Protocol.hpp | endel/colyseus-cocos2d-x | 96a12a15d1f70f061365769e6cc84ba9bde49c72 | [
"MIT"
] | 2 | 2019-02-05T04:52:12.000Z | 2020-03-17T17:21:16.000Z | #ifndef Protocol_hpp
#define Protocol_hpp
enum class Protocol : int {
// Room-related (10~19)
JOIN_ROOM = 10,
JOIN_ERROR = 11,
LEAVE_ROOM = 12,
ROOM_DATA = 13,
ROOM_STATE = 14,
ROOM_STATE_PATCH = 15,
// Generic messages (50~60)
BAD_REQUEST = 50,
};
#endif /* Protocol_hpp */
| 17.444444 | 31 | 0.624204 | endel |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.