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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6e3c240f69dbf0efe4f5387bed47dcfb9dff54ab | 6,606 | cc | C++ | src/native/tchmain/TchMainExportWin.cc | dudes-come/tchapp | 24844869813edafff277e8c0ca6126d195423134 | [
"MIT"
] | 8 | 2016-11-08T08:56:58.000Z | 2017-03-30T02:34:00.000Z | src/native/tchmain/TchMainExportWin.cc | dudes-come/tchapp | 24844869813edafff277e8c0ca6126d195423134 | [
"MIT"
] | 32 | 2016-11-08T10:22:08.000Z | 2016-12-19T07:51:55.000Z | src/native/tchmain/TchMainExportWin.cc | dudes-come/tchapp | 24844869813edafff277e8c0ca6126d195423134 | [
"MIT"
] | 5 | 2016-11-08T08:57:02.000Z | 2022-01-29T09:22:46.000Z | #include "TchMainExport.h"
#include <Windows.h>
#include <iostream>
#include <string>
#include <locale>
#include <cstring>
#include <experimental/filesystem>
#include "../tch_include/TchVersion.h"
#include <io.h>
namespace gnu_fs = std::experimental::filesystem;
mbstate_t in_cvt_state;
mbstate_t out_cvt_state;
std... | 30.725581 | 165 | 0.725401 | dudes-come |
6e3e9583df39fc0cae7f47d412ce2a06cbc3621f | 2,468 | cpp | C++ | utils/L1/examples/tag_select_processing/tb.cpp | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | 1 | 2021-06-14T17:02:06.000Z | 2021-06-14T17:02:06.000Z | utils/L1/examples/tag_select_processing/tb.cpp | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | null | null | null | utils/L1/examples/tag_select_processing/tb.cpp | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | 1 | 2021-04-28T05:58:38.000Z | 2021-04-28T05:58:38.000Z | /*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 30.469136 | 89 | 0.549838 | vmayoral |
6e44146463e32b7e0207db0fc807c245742eedf4 | 865 | cpp | C++ | Source/Shared/UI/WidgetGameButton.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | 5 | 2022-02-09T21:19:03.000Z | 2022-03-03T01:53:03.000Z | Source/Shared/UI/WidgetGameButton.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | null | null | null | Source/Shared/UI/WidgetGameButton.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | null | null | null | #include "Shared/UI/WidgetGameButton.h"
#include "Components/Button.h"
#include "Components/TextBlock.h"
#include "Kismet/GameplayStatics.h"
void UWidgetGameButton::NativeConstruct()
{
Super::NativeConstruct();
if (IsValid(this->Button))
{
this->Button->OnClicked.AddUniqueDynamic(this, &ThisClass::OnClicked);
... | 19.659091 | 74 | 0.734104 | PsichiX |
6e4589cabeade3926d44ee96da95ded4970060a0 | 16,224 | cpp | C++ | tests/utilities/20.meta.rel.cpp | isabella232/stdcxx | b0b0cab391b7b1f2d17ef4342aeee6b792bde63c | [
"Apache-2.0"
] | 53 | 2015-01-13T05:46:43.000Z | 2022-02-24T23:46:04.000Z | tests/utilities/20.meta.rel.cpp | mann-patel/stdcxx | a22c5192f4b2a8b0b27d3588ea8f6d1faf8b037a | [
"Apache-2.0"
] | 1 | 2021-11-04T12:35:39.000Z | 2021-11-04T12:35:39.000Z | tests/utilities/20.meta.rel.cpp | isabella232/stdcxx | b0b0cab391b7b1f2d17ef4342aeee6b792bde63c | [
"Apache-2.0"
] | 33 | 2015-07-09T13:31:00.000Z | 2021-11-04T12:12:20.000Z | // -*- C++ -*-
/***************************************************************************
*
* 20.meta.rel.cpp - test exercising meta.rel
*
* $Id$
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor... | 35.116883 | 81 | 0.612857 | isabella232 |
6e45f2a66417dc67c04cfc99f03269b9a4486a3f | 599 | cpp | C++ | src/Context.cpp | desktopgame/ofxLua | 098cc40277dd00d42aaf191bbf0cc43d3b2349fd | [
"BSL-1.0",
"MIT"
] | 1 | 2020-01-28T05:10:19.000Z | 2020-01-28T05:10:19.000Z | src/Context.cpp | desktopgame/ofxLua | 098cc40277dd00d42aaf191bbf0cc43d3b2349fd | [
"BSL-1.0",
"MIT"
] | null | null | null | src/Context.cpp | desktopgame/ofxLua | 098cc40277dd00d42aaf191bbf0cc43d3b2349fd | [
"BSL-1.0",
"MIT"
] | null | null | null | #include "Context.h"
#include <stdexcept>
namespace ofxLua {
std::stack<Context::Instance> Context::stack;
Context::Instance Context::push() {
Instance inst = std::shared_ptr<Context>(new Context());
stack.push(inst);
return inst;
}
Context::Instance Context::top() {
if (stack.empty()) {
throw std::logic_error(... | 19.966667 | 57 | 0.672788 | desktopgame |
6e4b9ab17d46534a56a7934aab995fb8b4c08fcd | 414 | cpp | C++ | Sources/C++/TypeSupport/is_member_pointer.cpp | wurui1994/test | 027cef75f98dbb252b322113dacd4a9a6997d84f | [
"MIT"
] | 27 | 2017-12-19T09:15:36.000Z | 2021-07-30T13:02:00.000Z | Sources/C++/TypeSupport/is_member_pointer.cpp | wurui1994/test | 027cef75f98dbb252b322113dacd4a9a6997d84f | [
"MIT"
] | null | null | null | Sources/C++/TypeSupport/is_member_pointer.cpp | wurui1994/test | 027cef75f98dbb252b322113dacd4a9a6997d84f | [
"MIT"
] | 29 | 2018-04-10T13:25:54.000Z | 2021-12-24T01:51:03.000Z | #include <iostream>
#include <type_traits>
int main() {
class cls {};
std::cout << (std::is_member_pointer<int(cls::*)>::value
? "T is member pointer"
: "T is not a member pointer") << '\n';
std::cout << (std::is_member_pointer<int>::value
... | 34.5 | 61 | 0.471014 | wurui1994 |
6e4cb71385fec4a18bfc6f76cfff779e1e0b2c14 | 989 | cpp | C++ | SLogLib/AddToCallStack.cpp | saurabhg17/SLogLib | bb5bbc1ae4f83f01947d2b1232ad7b7e4b7d4aee | [
"MIT"
] | 9 | 2015-05-16T05:59:14.000Z | 2019-10-30T00:49:20.000Z | SLogLib/AddToCallStack.cpp | saurabhg17/SLogLib | bb5bbc1ae4f83f01947d2b1232ad7b7e4b7d4aee | [
"MIT"
] | null | null | null | SLogLib/AddToCallStack.cpp | saurabhg17/SLogLib | bb5bbc1ae4f83f01947d2b1232ad7b7e4b7d4aee | [
"MIT"
] | 2 | 2017-10-15T13:29:35.000Z | 2019-09-09T08:08:59.000Z | //
// This file is part of SLogLib; you can redistribute it and/or
// modify it under the terms of the MIT License.
// Author: Saurabh Garg (saurabhgarg@mysoc.net)
//
#include "AddToCallStack.h"
#include "LoggingManager.h"
namespace SLogLib {
;
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++... | 26.72973 | 80 | 0.466127 | saurabhg17 |
6e5192c204f0327c507d2eb370e626d5e9d3cda0 | 67 | hpp | C++ | tests/src/utils/generate_unique_mock_id.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 4 | 2019-11-14T10:41:34.000Z | 2021-12-09T23:54:52.000Z | tests/src/utils/generate_unique_mock_id.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 2 | 2021-10-04T20:12:53.000Z | 2021-12-14T18:13:03.000Z | tests/src/utils/generate_unique_mock_id.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 2 | 2021-08-05T11:17:03.000Z | 2021-12-13T15:22:48.000Z | #pragma once
#include <cstdint>
uint64_t generateUniqueMockId();
| 11.166667 | 32 | 0.776119 | aahmed-2 |
6e5296191454b28306a2722dc1d12cfda2fef7b7 | 1,302 | cpp | C++ | Enviados/Brinde_Face_2015.cpp | VictorCurti/URI | abc344597682a3099e8b1899c78584f9b762a494 | [
"MIT"
] | null | null | null | Enviados/Brinde_Face_2015.cpp | VictorCurti/URI | abc344597682a3099e8b1899c78584f9b762a494 | [
"MIT"
] | null | null | null | Enviados/Brinde_Face_2015.cpp | VictorCurti/URI | abc344597682a3099e8b1899c78584f9b762a494 | [
"MIT"
] | null | null | null | /* Brinde Face 2015
Data: 25/03/2019 Autor: Victor Curti
ex:
4
0 1 2 3 4
(F A C E - E C F A - A C F E - A C E F - F E C A)
F A C E E C F A A C F E A C E F F E C A
F A C E E C F A A C F E
A C E F - F E C A
Stack A:
F
E
... | 21 | 54 | 0.417819 | VictorCurti |
6e58d6692a7aaca7a90bb12f68d407cb7ef56f34 | 1,549 | cpp | C++ | utiles/source/Stemming.cpp | miglesias91/herramientas_desarrollo | dad021289e6562b925444b04af2b06b1272fd70c | [
"MIT"
] | null | null | null | utiles/source/Stemming.cpp | miglesias91/herramientas_desarrollo | dad021289e6562b925444b04af2b06b1272fd70c | [
"MIT"
] | null | null | null | utiles/source/Stemming.cpp | miglesias91/herramientas_desarrollo | dad021289e6562b925444b04af2b06b1272fd70c | [
"MIT"
] | null | null | null | #include <utiles/include/Stemming.h>
// stl
#include <locale>
#include <codecvt>
using namespace herramientas::utiles;
stemming::spanish_stem<> Stemming::stem_spanish;
Stemming::Stemming()
{
}
Stemming::~Stemming()
{
}
void Stemming::stemUTF8(std::string & string_a_hashear)
{
std::wstring_... | 26.254237 | 133 | 0.684958 | miglesias91 |
6e59e9c273bfd71e626210828711b2681f7ecb8e | 1,062 | cpp | C++ | Gems/GraphModel/Code/Source/Integration/GraphCanvasMetadata.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Gems/GraphModel/Code/Source/Integration/GraphCanvasMetadata.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/GraphModel/Code/Source/Integration/GraphCanvasMetadata.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
// AZ
#include <AzCore/Serialization/SerializeContext.h>
// Graph Canvas
#include <GraphCanvas/Type... | 32.181818 | 158 | 0.684557 | aaarsene |
6e5b52dd869faa243903a19d3e2f3ae1221c8412 | 619 | cpp | C++ | AllCombinationsOfString/combinations.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 6 | 2019-08-29T23:31:17.000Z | 2021-11-14T20:35:47.000Z | AllCombinationsOfString/combinations.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | null | null | null | AllCombinationsOfString/combinations.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 1 | 2019-09-01T12:22:58.000Z | 2019-09-01T12:22:58.000Z | #include <iostream>
#include <string>
void find_permutations( std::string first, std::string others )
{
if( others.size() <= 0 ) {
std::cout << first << "\n";
return;
}
int len = others.size();
for( int i = 0; i < len; ++i ) {
std::string sub = others;
std::string first_tmp = first;
first_tmp += sub[ i ]... | 19.967742 | 63 | 0.573506 | Electrux |
6e5bca89d247516231fb68cf075693d455fd0450 | 422 | hpp | C++ | src/tree/base/import.hpp | Azer0s/littl | 3d2bfd979bdeee74cded9f31b62640b45b86a155 | [
"MIT"
] | 4 | 2018-12-30T13:15:55.000Z | 2019-05-12T17:39:38.000Z | src/tree/base/import.hpp | Azer0s/littl | 3d2bfd979bdeee74cded9f31b62640b45b86a155 | [
"MIT"
] | null | null | null | src/tree/base/import.hpp | Azer0s/littl | 3d2bfd979bdeee74cded9f31b62640b45b86a155 | [
"MIT"
] | 1 | 2018-12-29T19:12:07.000Z | 2018-12-29T19:12:07.000Z | #pragma once
#include "../syntaxtree.hpp"
namespace littl {
class Import : public SyntaxTree{
public:
Import(SyntaxTree* name){
this->name = name;
}
virtual ~Import(){
delete name;
};
virtual std::string toCode() co... | 21.1 | 47 | 0.440758 | Azer0s |
6e5d5f620d9a2aeb6eb2c8f7d3ed7e8e2902cedf | 2,181 | cpp | C++ | src/HumanPlayer.cpp | ColinVDH/checkers | bbcdac94a9d9f4c61625780902b891b12311d62d | [
"MIT"
] | null | null | null | src/HumanPlayer.cpp | ColinVDH/checkers | bbcdac94a9d9f4c61625780902b891b12311d62d | [
"MIT"
] | null | null | null | src/HumanPlayer.cpp | ColinVDH/checkers | bbcdac94a9d9f4c61625780902b891b12311d62d | [
"MIT"
] | null | null | null | //
// Created by colin on 11/10/16.
//
#include "HumanPlayer.h"
#include <sstream>
using namespace std;
//constructor
HumanPlayer::HumanPlayer(Color color): input(""), Player(color){}
//return the current input
string HumanPlayer::getInput() {
return input;
}
//set the current input by getting it from the user
v... | 29.08 | 164 | 0.630445 | ColinVDH |
6e5e03b24741ecdc6c83cae97aedd0b7b61eff5e | 1,328 | cpp | C++ | Code/C++/selection_sort.cpp | parthmshah1302/Algo-Tree | 451e3d3fde2b841f77bed0dfaa9b83e5d9a7d3dc | [
"MIT"
] | 356 | 2021-01-24T11:34:15.000Z | 2022-03-16T08:39:02.000Z | Code/C++/selection_sort.cpp | parthmshah1302/Algo-Tree | 451e3d3fde2b841f77bed0dfaa9b83e5d9a7d3dc | [
"MIT"
] | 1,778 | 2021-01-24T10:52:44.000Z | 2022-01-30T12:34:05.000Z | Code/C++/selection_sort.cpp | parthmshah1302/Algo-Tree | 451e3d3fde2b841f77bed0dfaa9b83e5d9a7d3dc | [
"MIT"
] | 782 | 2021-01-24T10:54:10.000Z | 2022-03-23T10:16:04.000Z | /*
Selection sort is an algorithm that selects the smallest element from an unsorted list in each iteration
and places that element at the beginning of the unsorted list.
* Strategy:
find the smallest number in the array and exchange it with the value in first position of array.
Now, find the seco... | 16.395062 | 124 | 0.576054 | parthmshah1302 |
6e61a110389e77a76be83f94d795d9465eb0c47f | 2,646 | hpp | C++ | include/stl2/detail/algorithm/swap_ranges.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | include/stl2/detail/algorithm/swap_ranges.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | include/stl2/detail/algorithm/swap_ranges.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | // cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2015
//
// 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)
//
// Project home: https://github.c... | 31.5 | 88 | 0.688209 | marehr |
6e6281a18b516b647e016e47df7b5113b35c998e | 23,820 | cc | C++ | third_party/blink/renderer/platform/loader/fetch/resource_response.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/platform/loader/fetch/resource_response.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/platform/loader/fetch/resource_response.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | /*
* Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retai... | 38.051118 | 79 | 0.767045 | zipated |
6e637694e3e4aff5c1efb30f44f91330b7b5d80e | 1,287 | hpp | C++ | bunsan/process/include/bunsan/interprocess/sync/file_guard.hpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | null | null | null | bunsan/process/include/bunsan/interprocess/sync/file_guard.hpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | 10 | 2018-02-06T14:46:36.000Z | 2018-03-20T13:37:20.000Z | bunsan/process/include/bunsan/interprocess/sync/file_guard.hpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | 1 | 2021-11-26T10:59:09.000Z | 2021-11-26T10:59:09.000Z | #pragma once
#include <bunsan/error.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/optional.hpp>
namespace bunsan::interprocess {
struct file_guard_error : virtual bunsan::error {
using lock_path =
boost::error_info<struct tag_lock_path, boost::filesystem::path>;
};
struct file_guard_create_erro... | 23.4 | 73 | 0.724165 | bacsorg |
6e66f1f9b926dc031a644f8d3c082542629decc0 | 792 | cc | C++ | C++/Bit Magic/closest_int_same_weight.cc | aditya30394/Interview-Questions | 2e114e30a17b4e99ecf7d8416781374a4dc475e2 | [
"MIT"
] | 2 | 2019-05-15T04:37:13.000Z | 2022-01-28T08:01:51.000Z | C++/Bit Magic/closest_int_same_weight.cc | aditya30394/Interview-Questions | 2e114e30a17b4e99ecf7d8416781374a4dc475e2 | [
"MIT"
] | null | null | null | C++/Bit Magic/closest_int_same_weight.cc | aditya30394/Interview-Questions | 2e114e30a17b4e99ecf7d8416781374a4dc475e2 | [
"MIT"
] | null | null | null | #include <stdexcept>
#include "../../test_framework/generic_test.h"
using std::invalid_argument;
unsigned long long ClosestIntSameBitCount(unsigned long long x) {
const int bitSize = 64;
for(int i=0;i<bitSize-1;++i)
{
if(( (x>>i)&1) != ((x>>(i+1))&1))
{
x = x ^ ((1UL<<i) | (1UL << (i+1)));... | 28.285714 | 80 | 0.590909 | aditya30394 |
6e67824c151ab4c88abb82b79f8cae650ddf9a22 | 4,406 | cpp | C++ | src/compiler/lowering/DistributeComputationsPass.cpp | daphne-eu/daphne | 64d4040132cf4059efaf184c4e363dbb921c87d6 | [
"Apache-2.0"
] | 10 | 2022-03-31T21:49:35.000Z | 2022-03-31T23:37:06.000Z | src/compiler/lowering/DistributeComputationsPass.cpp | daphne-eu/daphne | 64d4040132cf4059efaf184c4e363dbb921c87d6 | [
"Apache-2.0"
] | 3 | 2022-03-31T22:10:10.000Z | 2022-03-31T22:46:30.000Z | src/compiler/lowering/DistributeComputationsPass.cpp | daphne-eu/daphne | 64d4040132cf4059efaf184c4e363dbb921c87d6 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 The DAPHNE Consortium
*
* 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 l... | 37.338983 | 113 | 0.655697 | daphne-eu |
6e6a804df0c9963523df7aef487638803473235b | 7,687 | cpp | C++ | Source/EditorScriptingTools/Private/EditorScriptingToolsCommon/AssetTypeActions/EditorScriptingAssetTypeActions_Base.cpp | jswigart/UE4-EditorScriptingToolsPlugin | 5fa4012bf10c1fc918d2c6ddeab0d1c6bbac85ca | [
"MIT"
] | 77 | 2020-12-04T21:10:16.000Z | 2021-09-20T03:47:47.000Z | Source/EditorScriptingTools/Private/EditorScriptingToolsCommon/AssetTypeActions/EditorScriptingAssetTypeActions_Base.cpp | ProjectBorealis/UE4-EditorScriptingToolsPlugin | 251b9b4f64bb465e74514fac2cec82a824ea2200 | [
"MIT"
] | 11 | 2021-03-03T19:00:05.000Z | 2021-06-19T18:11:42.000Z | Source/EditorScriptingTools/Private/EditorScriptingToolsCommon/AssetTypeActions/EditorScriptingAssetTypeActions_Base.cpp | ProjectBorealis/UE4-EditorScriptingToolsPlugin | 251b9b4f64bb465e74514fac2cec82a824ea2200 | [
"MIT"
] | 12 | 2020-12-09T04:47:41.000Z | 2021-09-11T12:19:34.000Z | //==========================================================================//
// Copyright Elhoussine Mehnik (ue4resources@gmail.com). All Rights Reserved.
//================== http://unrealengineresources.com/ =====================//
#include "EditorScriptingAssetTypeActions_Base.h"
#include "Framework/MultiBox/Mult... | 38.435 | 160 | 0.802133 | jswigart |
6e6af7e66d17cac6043592b01643c412a5d6ba4d | 6,374 | cpp | C++ | lib/Dialect/TPU/Analysis/GenFakeWeightNpz.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | 3 | 2022-03-14T11:47:20.000Z | 2022-03-16T01:45:37.000Z | lib/Dialect/TPU/Analysis/GenFakeWeightNpz.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | null | null | null | lib/Dialect/TPU/Analysis/GenFakeWeightNpz.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | null | null | null | //===- TpuOpPrint.cpp - Implementation of TPU Op Print ---------===//
//
// Copyright 2019 The MLIR Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/... | 37.05814 | 95 | 0.566677 | sophgo |
6e6b8012cee881f82a10cc8c3fbec6bc0897f308 | 22,364 | cpp | C++ | phe/seal/SEAL/decryptor.cpp | BNext-IQT/GEMstone | 3fba78440bf1cbedc21dd7d96566696227f0b6a2 | [
"Apache-2.0"
] | 6 | 2017-08-24T17:49:18.000Z | 2021-10-16T06:17:46.000Z | phe/seal/SEAL/decryptor.cpp | BNext-IQT/GEMstone | 3fba78440bf1cbedc21dd7d96566696227f0b6a2 | [
"Apache-2.0"
] | 6 | 2017-10-31T11:28:18.000Z | 2017-10-31T11:28:43.000Z | phe/seal/SEAL/decryptor.cpp | BNext-IQT/GEMstone | 3fba78440bf1cbedc21dd7d96566696227f0b6a2 | [
"Apache-2.0"
] | 3 | 2017-12-20T20:00:35.000Z | 2019-06-14T10:36:37.000Z | #include <algorithm>
#include <stdexcept>
#include "decryptor.h"
#include "util/common.h"
#include "util/uintcore.h"
#include "util/uintarith.h"
#include "util/polycore.h"
#include "util/polyarith.h"
#include "util/polyarithmod.h"
#include "util/polyfftmultmod.h"
#include "bigpoly.h"
#include "util/uintarith... | 51.648961 | 200 | 0.661062 | BNext-IQT |
6e6c5ded5de564bb58c9911c3dbdb1d927458c82 | 12,194 | cpp | C++ | process_data.cpp | skpang/Teensy32_can_fd_to_usb_converter | 8717188d059dbfe67185815e7dc223b60355c511 | [
"MIT"
] | 1 | 2020-01-13T23:50:15.000Z | 2020-01-13T23:50:15.000Z | process_data.cpp | skpang/Teensy32_can_fd_to_usb_converter | 8717188d059dbfe67185815e7dc223b60355c511 | [
"MIT"
] | 1 | 2018-10-20T21:58:40.000Z | 2018-10-20T21:58:40.000Z | process_data.cpp | skpang/Teensy32_can_fd_to_usb_converter | 8717188d059dbfe67185815e7dc223b60355c511 | [
"MIT"
] | null | null | null | #include "process_data.h"
#include "drv_canfdspi_defines.h"
#include "drv_canfdspi_api.h"
unsigned char timestamping = 0;
CAN_BITTIME_SETUP bt;
extern CAN_TX_MSGOBJ txObj;
extern CAN_RX_MSGOBJ rxObj;
extern uint8_t txd[MAX_DATA_BYTES];
extern uint8_t rxd[MAX_DATA_BYTES];
extern uint8_t prompt;
extern volatile uint8_t... | 27.525959 | 115 | 0.454568 | skpang |
6e6d46d3f098ac9491d606ac53421d7ae2c024ce | 13,964 | cpp | C++ | Nesis/Common/CanUnitInfo/MagSphereCalibration.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | 3 | 2015-11-08T07:17:46.000Z | 2019-04-05T17:08:05.000Z | Nesis/Common/CanUnitInfo/MagSphereCalibration.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | Nesis/Common/CanUnitInfo/MagSphereCalibration.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* *
* Copyright (C) 2008 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: *
* Ales... | 27.488189 | 84 | 0.533228 | jpoirier |
6e6e458bc3694dd2c6548bebe2889912422c33d2 | 143 | cpp | C++ | examples/polar_plots/ezpolar/ezpolar_1.cpp | solosuper/matplotplusplus | 87ff5728b14ad904bc6acaa2bf010c1a03c6cb4a | [
"MIT"
] | 2,709 | 2020-08-29T01:25:40.000Z | 2022-03-31T18:35:25.000Z | examples/polar_plots/ezpolar/ezpolar_1.cpp | p-ranav/matplotplusplus | b45015e2be88e3340b400f82637b603d733d45ce | [
"MIT"
] | 124 | 2020-08-29T04:48:17.000Z | 2022-03-25T15:45:59.000Z | examples/polar_plots/ezpolar/ezpolar_1.cpp | p-ranav/matplotplusplus | b45015e2be88e3340b400f82637b603d733d45ce | [
"MIT"
] | 203 | 2020-08-29T04:16:22.000Z | 2022-03-30T02:08:36.000Z | #include <cmath>
#include <matplot/matplot.h>
int main() {
using namespace matplot;
ezpolar("1+cos(t)");
show();
return 0;
} | 13 | 28 | 0.594406 | solosuper |
6e753663e1cde35adcad68f05d4318cc1c092f18 | 1,410 | inl | C++ | Win32.FlexiSpy/Symbian/Trunk/CodeBase/inc/Global.inl | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 2 | 2021-02-04T06:47:45.000Z | 2021-07-28T10:02:10.000Z | Win32.FlexiSpy/Symbian/Trunk/CodeBase/inc/Global.inl | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Win32.FlexiSpy/Symbian/Trunk/CodeBase/inc/Global.inl | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | #include "Global.h"
inline CCoeEnv& Global::CoeEnv()
{
return AppUi().CoeEnv();
}
inline CFxsAppUi& Global::AppUi()
{
return *STATIC_CAST(CFxsAppUi*, CEikonEnv::Static()->AppUi());
}
inline CFxsAppUi* Global::AppUiPtr()
{
return STATIC_CAST(CFxsAppUi*, CEikonEnv::Static()->AppUi());
}
inline CFxsSettings&... | 16.206897 | 63 | 0.692908 | 010001111 |
6e7672a2b632a5a3c092e701bccec80007eaa4b7 | 16,329 | cpp | C++ | vision/blackItem/image_converter.cpp | Eithwa/kymavoid | 2cd099021f111aa342c3f655c0eee06f9e2e3f2a | [
"Apache-2.0"
] | null | null | null | vision/blackItem/image_converter.cpp | Eithwa/kymavoid | 2cd099021f111aa342c3f655c0eee06f9e2e3f2a | [
"Apache-2.0"
] | null | null | null | vision/blackItem/image_converter.cpp | Eithwa/kymavoid | 2cd099021f111aa342c3f655c0eee06f9e2e3f2a | [
"Apache-2.0"
] | 1 | 2020-08-10T03:19:27.000Z | 2020-08-10T03:19:27.000Z | #include "image_converter.hpp"
#include "math.h"
#include "omp.h"
using namespace std;
using namespace cv;
const double ALPHA = 0.5;
ImageConverter::ImageConverter():
it_(nh),
FrameRate(0.0),
obj_filter_size(500)
{
get_Camera();
get_center();
get_distance();
get_whitedata();
image_sub... | 32.334653 | 172 | 0.519873 | Eithwa |
6e797c232267aa24a883602c87355ef60000f3c7 | 5,818 | cc | C++ | src/d3d11/d3d11_main.cc | R2Northstar/NorthstarStubs | e60bba45092f7fdb70b60c0e2e920584f78f1b85 | [
"Zlib"
] | 3 | 2022-02-17T03:11:52.000Z | 2022-02-20T21:20:16.000Z | src/d3d11/d3d11_main.cc | pg9182/NorthstarStubs | e60bba45092f7fdb70b60c0e2e920584f78f1b85 | [
"Zlib"
] | null | null | null | src/d3d11/d3d11_main.cc | pg9182/NorthstarStubs | e60bba45092f7fdb70b60c0e2e920584f78f1b85 | [
"Zlib"
] | 2 | 2022-02-17T14:04:09.000Z | 2022-02-20T17:52:55.000Z | #include "d3d11_device.h"
#include "dxgi_factory.h"
#include "d3d11_include.h"
extern "C" {
using namespace dxvk;
DLLEXPORT HRESULT __stdcall D3D11CoreCreateDevice(
IDXGIFactory* pFactory,
IDXGIAdapter* pAdapter,
UINT Flags,
const D3D_FEATURE_LEVEL* pF... | 32.502793 | 115 | 0.630113 | R2Northstar |
6e7acaaeb160f14ee94a4b522c3d80999863bbcf | 2,197 | cpp | C++ | test/unittests/test_parser.cpp | SmaranTum/syrec | 7fd0eece4c3376e52c1f5f17add71a49e5826dac | [
"MIT"
] | 1 | 2022-03-19T21:51:58.000Z | 2022-03-19T21:51:58.000Z | test/unittests/test_parser.cpp | SmaranTum/syrec | 7fd0eece4c3376e52c1f5f17add71a49e5826dac | [
"MIT"
] | 9 | 2022-02-28T17:03:50.000Z | 2022-03-25T16:02:39.000Z | test/unittests/test_parser.cpp | cda-tum/syrec | 43dcdd997edd02c80304f53f66118f9dd0fc5f68 | [
"MIT"
] | 2 | 2022-02-02T10:35:09.000Z | 2022-02-02T15:52:24.000Z | #include "core/syrec/program.hpp"
#include "gtest/gtest.h"
using namespace syrec;
class SyrecParserTest: public testing::TestWithParam<std::string> {
protected:
std::string test_circuits_dir = "./circuits/";
std::string file_name;
void SetUp() override {
file_name = test_circuits_dir + GetParam(... | 38.54386 | 93 | 0.383705 | SmaranTum |
6e7b2e21e7f082665dd3ed0d7e291a0edf4bfa1d | 518 | cpp | C++ | mcc/mcc/MccIdentifierConflictError.cpp | Goclis/mcc | 475ff1a1e92db749bc935f979d79296ca466470d | [
"MIT"
] | null | null | null | mcc/mcc/MccIdentifierConflictError.cpp | Goclis/mcc | 475ff1a1e92db749bc935f979d79296ca466470d | [
"MIT"
] | null | null | null | mcc/mcc/MccIdentifierConflictError.cpp | Goclis/mcc | 475ff1a1e92db749bc935f979d79296ca466470d | [
"MIT"
] | null | null | null | #include "MccIdentifierConflictError.h"
#include <iostream>
using std::cout;
MccIdentifierConflictError::MccIdentifierConflictError(const string &name)
{
m_id_name = name;
m_line_no_cause_conflict = 0;
m_line_no_having_conflict = 0;
}
MccIdentifierConflictError::~MccIdentifierConflictError(void)
{
}
void MccIde... | 22.521739 | 74 | 0.735521 | Goclis |
6e7e54b9a9a38df535c5340485638e5c4fe83116 | 1,820 | hpp | C++ | include/header.hpp | Skvortsovvv/lab-05-stack-Skvortsovvv | e658a314c8a729dc024daba28dbd585c21987526 | [
"MIT"
] | null | null | null | include/header.hpp | Skvortsovvv/lab-05-stack-Skvortsovvv | e658a314c8a729dc024daba28dbd585c21987526 | [
"MIT"
] | null | null | null | include/header.hpp | Skvortsovvv/lab-05-stack-Skvortsovvv | e658a314c8a729dc024daba28dbd585c21987526 | [
"MIT"
] | null | null | null | // Copyright 2020 Your Name <your_email>
#ifndef INCLUDE_HEADER_HPP_
#define INCLUDE_HEADER_HPP_
#include <memory>
#include <atomic>
#include <type_traits>
#include <utility>
#include <iostream>
#include <stdexcept>
template<typename T>
class Stack
{
private:
Stack(Stack&) = delete;
Stack& operator=(Stack&) = ... | 23.947368 | 56 | 0.558242 | Skvortsovvv |
6e7e621088102c1f3a2229315eb53a33bd6452c0 | 4,501 | hpp | C++ | include/mserialize/make_template_tag.hpp | linhanwang/binlog | b4da55f2ae9b61c31c34bf307c0937ec515293df | [
"Apache-2.0"
] | 248 | 2019-12-05T20:59:51.000Z | 2021-01-19T15:56:12.000Z | include/mserialize/make_template_tag.hpp | Galaxy2416/binlog | 14bf705b51602d43403733670d6110f8742b0409 | [
"Apache-2.0"
] | 57 | 2019-12-18T07:00:46.000Z | 2021-01-04T14:04:16.000Z | include/mserialize/make_template_tag.hpp | Galaxy2416/binlog | 14bf705b51602d43403733670d6110f8742b0409 | [
"Apache-2.0"
] | 22 | 2021-03-27T20:43:40.000Z | 2022-03-31T10:01:38.000Z | #ifndef MSERIALIZE_MAKE_TEMPLATE_TAG_HPP
#define MSERIALIZE_MAKE_TEMPLATE_TAG_HPP
#include <mserialize/cx_string.hpp>
#include <mserialize/detail/foreach.hpp>
#include <mserialize/detail/preprocessor.hpp>
#include <mserialize/make_struct_tag.hpp>
/**
* MSERIALIZE_MAKE_TEMPLATE_TAG(TemplateArgs, TypenameWithTemplateA... | 40.1875 | 94 | 0.582537 | linhanwang |
6e8026c4eacc4dc6bff492879ed3821c9a2ad587 | 4,897 | cpp | C++ | Framework/DrawPass/ShadowMapPass.cpp | kiorisyshen/newbieGameEngine | d1e68fbd75884fdf0f171212396d8bc5fec8ad9e | [
"MIT"
] | 3 | 2019-06-07T15:29:45.000Z | 2019-11-11T01:26:12.000Z | Framework/DrawPass/ShadowMapPass.cpp | kiorisyshen/newbieGameEngine | d1e68fbd75884fdf0f171212396d8bc5fec8ad9e | [
"MIT"
] | null | null | null | Framework/DrawPass/ShadowMapPass.cpp | kiorisyshen/newbieGameEngine | d1e68fbd75884fdf0f171212396d8bc5fec8ad9e | [
"MIT"
] | null | null | null | #include "ShadowMapPass.hpp"
#include "GraphicsManager.hpp"
using namespace std;
using namespace newbieGE;
void ShadowMapPass::Draw(Frame &frame) {
if (frame.frameContext.shadowMapLight.size() > 0 ||
frame.frameContext.cubeShadowMapLight.size() > 0 ||
frame.frameContext.globalShadowMapLight.size()... | 51.547368 | 125 | 0.627731 | kiorisyshen |
6e819d93aa468191533a76b7b5862970a87b8cb9 | 2,524 | cpp | C++ | Shrek2ModdingSDK/Shrek2ModdingSDK/Shrek2Timer.cpp | kevinjpetersen/Shrek2ModdingSDK | 1d517fccc4d83b24342e62f80951318fd4f7c707 | [
"MIT"
] | 1 | 2022-03-24T21:43:49.000Z | 2022-03-24T21:43:49.000Z | Shrek2ModdingSDK/Shrek2ModdingSDK/Shrek2Timer.cpp | kevinjpetersen/Shrek2ModdingSDK | 1d517fccc4d83b24342e62f80951318fd4f7c707 | [
"MIT"
] | null | null | null | Shrek2ModdingSDK/Shrek2ModdingSDK/Shrek2Timer.cpp | kevinjpetersen/Shrek2ModdingSDK | 1d517fccc4d83b24342e62f80951318fd4f7c707 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021 Kevin J. Petersen https://github.com/kevinjpetersen/
*/
#include "Shrek2ModdingSDK.h"
void Shrek2Timer::Start()
{
try {
if (IsRunning) return;
IsRunning = true;
timer.start();
}
catch (std::exception& ex)
{
Shrek2Logging::LogError("Shrek2Timer::Start", ex.what());
}
}
void Shrek2T... | 18.028571 | 97 | 0.650951 | kevinjpetersen |
6e822a4c8963a206f5724481f638fbf508424e85 | 1,107 | hh | C++ | exp.hh | aicodix/dsp | c83add357c695482590825ddd2713dc29fd903d2 | [
"0BSD"
] | 16 | 2019-01-25T02:02:21.000Z | 2022-02-11T04:05:54.000Z | exp.hh | aicodix/dsp | c83add357c695482590825ddd2713dc29fd903d2 | [
"0BSD"
] | 2 | 2020-12-10T05:46:36.000Z | 2020-12-15T00:16:25.000Z | exp.hh | aicodix/dsp | c83add357c695482590825ddd2713dc29fd903d2 | [
"0BSD"
] | 4 | 2019-01-25T02:02:15.000Z | 2021-10-06T13:50:59.000Z | /*
Exponentiation approximations
Constants below lifted from the Cephes Mathematical Library:
https://www.netlib.org/cephes/cmath.tgz
Copyright 2018 Ahmet Inan <inan@aicodix.de>
*/
#pragma once
namespace DSP {
template <typename TYPE>
TYPE ldexp(TYPE x, int n)
{
int a = n < 0 ? -n : n;
int a8 = a / 8;
int ar = ... | 20.5 | 60 | 0.630533 | aicodix |
6e87cd251d1062079c2f6635787a5405e720e4d7 | 143 | cpp | C++ | compiler/useful_visitors.cpp | Bhare8972/Cyth | 334194be4b00456ed3fbf279f18bb22458d4ca81 | [
"Apache-2.0"
] | null | null | null | compiler/useful_visitors.cpp | Bhare8972/Cyth | 334194be4b00456ed3fbf279f18bb22458d4ca81 | [
"Apache-2.0"
] | 1 | 2016-01-09T19:00:14.000Z | 2016-01-09T19:00:14.000Z | compiler/useful_visitors.cpp | Bhare8972/Cyth | 334194be4b00456ed3fbf279f18bb22458d4ca81 | [
"Apache-2.0"
] | null | null | null |
#include "AST_visitor.hpp"
#include "useful_visitors.hpp"
#include <string>
#include <sstream>
using namespace csu;
using namespace std;
| 11 | 30 | 0.748252 | Bhare8972 |
6e8a30e159ef58180085f2e1d99af91a543eca85 | 571 | hpp | C++ | data_structure/graph/include/edge/readers/EdgeListEdgeReader.hpp | vlad-iancu/alg-lib | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | null | null | null | data_structure/graph/include/edge/readers/EdgeListEdgeReader.hpp | vlad-iancu/alg-lib | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | 11 | 2021-09-04T19:12:23.000Z | 2021-09-25T21:13:06.000Z | data_structure/graph/include/edge/readers/EdgeListEdgeReader.hpp | vlad-iancu/libalg | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | null | null | null | #ifndef ALG_LIB_DATA_STRUCTURE_EDGE_EDGE_LIST_READER_H_
#define ALG_LIB_DATA_STRUCTURE_EDGE_EDGE_LIST_READER_H_
#include <graph/EdgeList.hpp>
#include <graph/types.hpp>
#include <edge/readers/EdgeReader.hpp>
namespace graph
{
class EdgeListEdgeReader : public EdgeReader
{
private:
const EdgeList ... | 19.033333 | 55 | 0.69352 | vlad-iancu |
6e8a540e10842778612cec396c18b7549b904169 | 9,551 | cpp | C++ | Flw_Piano.cpp | jpcima/Flw_Piano | 115ca63d8068c9bedbe40bc5ea8aeec5f1363855 | [
"BSL-1.0"
] | 1 | 2019-08-15T13:57:23.000Z | 2019-08-15T13:57:23.000Z | Flw_Piano.cpp | jpcima/Flw_Piano | 115ca63d8068c9bedbe40bc5ea8aeec5f1363855 | [
"BSL-1.0"
] | null | null | null | Flw_Piano.cpp | jpcima/Flw_Piano | 115ca63d8068c9bedbe40bc5ea8aeec5f1363855 | [
"BSL-1.0"
] | null | null | null | // Copyright Jean Pierre Cimalando 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "Flw_Piano.h"
#include <FL/Fl_Button.H>
#include <FL/Fl.H>
#include <vector>
#include <math.h>
enum... | 24.872396 | 104 | 0.564548 | jpcima |
6e8fd61636a4415133c16e1c79dc719373bfd776 | 1,299 | cpp | C++ | UVaOnlineJudge/Contest_Volumes(10000...)/Volume101(10100-10199)/10189/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | 3 | 2015-10-21T18:56:43.000Z | 2017-06-06T10:44:22.000Z | UVaOnlineJudge/Contest_Volumes(10000...)/Volume101(10100-10199)/10189/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | null | null | null | UVaOnlineJudge/Contest_Volumes(10000...)/Volume101(10100-10199)/10189/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
ios_base::sync_with_stdio (false);
int game = 1;
char field[100][100];
int rows, columns, i, j, count, ii, jj;
string line;
cin >> rows >> columns;
cin.ignore();
while(rows > 0 && columns > 0){
for(i = 0; i < rows; i++){
... | 25.470588 | 65 | 0.345651 | luiscbr92 |
6e96f5995213da096cfa6fade9cccfd43d3c8f5f | 3,558 | cpp | C++ | src/data/resources.cpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | src/data/resources.cpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | src/data/resources.cpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <algorithm>
#include "resources/VarCopy.txt"
#include "resources/anaquin.txt"
#include "resources/VarFlip.txt"
#include "resources/VarTrim.txt"
#include "resources/VarAlign.txt"
#include "resources/VarKmer.txt"
#include "resources/VarGermline.txt"
#include "resources/VarSomatic.txt"
#include... | 40.896552 | 79 | 0.769252 | danielnavarrogomez |
6e96facabae3ab4a3127b68592fbc7300e284c49 | 2,610 | cpp | C++ | src/lib/netlist/devices/nld_7493.cpp | mamedev/netedit | 815723fc4772ee7f47558d1a63abc189a65e01b6 | [
"BSD-3-Clause"
] | 3 | 2017-04-12T16:13:34.000Z | 2021-02-24T03:42:19.000Z | src/lib/netlist/devices/nld_7493.cpp | mamedev/netedit | 815723fc4772ee7f47558d1a63abc189a65e01b6 | [
"BSD-3-Clause"
] | null | null | null | src/lib/netlist/devices/nld_7493.cpp | mamedev/netedit | 815723fc4772ee7f47558d1a63abc189a65e01b6 | [
"BSD-3-Clause"
] | 7 | 2017-01-24T23:07:50.000Z | 2021-01-28T04:10:59.000Z | // license:GPL-2.0+
// copyright-holders:Couriersud
/*
* nld_7493.c
*
*/
#include "nld_7493.h"
#include "nl_setup.h"
namespace netlist
{
namespace devices
{
NETLIB_OBJECT(7493ff)
{
NETLIB_CONSTRUCTOR(7493ff)
, m_I(*this, "CLK")
, m_Q(*this, "Q")
, m_reset(*this, "m_reset", 0)
, m_state(*this, "m_stat... | 18.913043 | 56 | 0.628352 | mamedev |
6e99926adbca19f6123b18b537f0df682fbdc9c6 | 1,031 | cpp | C++ | compiler-rt/test/tsan/custom_mutex3.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | compiler-rt/test/tsan/custom_mutex3.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | compiler-rt/test/tsan/custom_mutex3.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clangxx_tsan -O1 --std=c++11 %s -o %t
// RUN: %env_tsan_opts=report_destroy_locked=0 %run %t 2>&1 | FileCheck %s
#include "custom_mutex.h"
// Regression test for a bug.
// Thr1 destroys a locked mutex, previously such mutex was not removed from
// sync map and as the result subsequent uses of a mutex located ... | 21.93617 | 76 | 0.673133 | medismailben |
6e9a8efb9828b129ea420d8fbc55b1e351bdceb9 | 6,287 | cpp | C++ | hpritl/bicgstab.cpp | stillwater-sc/hpr-itl | b9cb650054be432189257e51af943138f3970eee | [
"MIT"
] | null | null | null | hpritl/bicgstab.cpp | stillwater-sc/hpr-itl | b9cb650054be432189257e51af943138f3970eee | [
"MIT"
] | null | null | null | hpritl/bicgstab.cpp | stillwater-sc/hpr-itl | b9cb650054be432189257e51af943138f3970eee | [
"MIT"
] | 1 | 2019-10-25T07:09:36.000Z | 2019-10-25T07:09:36.000Z | // hpr-itl bicgstab.cpp: HPR Bi-Conjugate Gradient Stabilized algorithm
//
// Copyright (C) 2017-2018 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include "common.hpp"
// enable posit arithmetic exceptions
#define POSIT_... | 27.818584 | 315 | 0.610943 | stillwater-sc |
6e9ea6e4b61a6d3da6cf48e4f2cf9a035fa43ea1 | 6,118 | hpp | C++ | cvlib/include/cvlib.hpp | Pol22/cvclasses18 | 94c3b398349c739dcbce5e02b0e9a277456cd85b | [
"MIT"
] | null | null | null | cvlib/include/cvlib.hpp | Pol22/cvclasses18 | 94c3b398349c739dcbce5e02b0e9a277456cd85b | [
"MIT"
] | null | null | null | cvlib/include/cvlib.hpp | Pol22/cvclasses18 | 94c3b398349c739dcbce5e02b0e9a277456cd85b | [
"MIT"
] | 1 | 2019-12-22T12:51:06.000Z | 2019-12-22T12:51:06.000Z | /* Computer Vision Functions.
* @file
* @date 2018-09-05
* @author Anonymous
*/
#ifndef __CVLIB_HPP__
#define __CVLIB_HPP__
#include <opencv2/opencv.hpp>
namespace cvlib
{
/// \brief Split and merge algorithm for image segmentation
/// \param image, in - input image
/// \param stddev, in - threshold to treat reg... | 31.374359 | 143 | 0.695652 | Pol22 |
6ea09188ed70c796d8f58ef20a5909ecc3062b2b | 351 | cpp | C++ | src/musl/poll.cpp | paulyc/IncludeOS | 5c82bad4a22838bc2219fbadef57d94f006b4760 | [
"Apache-2.0"
] | 5 | 2016-10-01T11:50:51.000Z | 2019-10-24T12:54:36.000Z | src/musl/poll.cpp | paulyc/IncludeOS | 5c82bad4a22838bc2219fbadef57d94f006b4760 | [
"Apache-2.0"
] | 1 | 2016-11-25T22:37:41.000Z | 2016-11-25T22:37:41.000Z | src/musl/poll.cpp | paulyc/IncludeOS | 5c82bad4a22838bc2219fbadef57d94f006b4760 | [
"Apache-2.0"
] | 3 | 2016-09-28T18:15:50.000Z | 2017-07-18T17:02:25.000Z | #include "stub.hpp"
#include <poll.h>
static long sys_poll(struct pollfd *fds, nfds_t nfds, int /*timeout*/)
{
for (nfds_t i = 0; i < nfds; i++)
{
fds[i].revents = fds[i].events;
}
return nfds;
}
extern "C"
long syscall_SYS_poll(struct pollfd *fds, nfds_t nfds, int timeout)
{
return stubtrace(sys_poll, ... | 19.5 | 70 | 0.655271 | paulyc |
6ea1b3c0fb1d8209dbb6367eb49c38c79242a5ff | 2,842 | cpp | C++ | source/playlunky/mod/fix_mod_structure.cpp | C-ffeeStain/Playlunky | c0df8a993712192fb44048c8542776ead110441d | [
"MIT"
] | null | null | null | source/playlunky/mod/fix_mod_structure.cpp | C-ffeeStain/Playlunky | c0df8a993712192fb44048c8542776ead110441d | [
"MIT"
] | null | null | null | source/playlunky/mod/fix_mod_structure.cpp | C-ffeeStain/Playlunky | c0df8a993712192fb44048c8542776ead110441d | [
"MIT"
] | null | null | null | #include "unzip_mod.h"
#include "log.h"
#include "util/algorithms.h"
#include "util/regex.h"
static constexpr ctll::fixed_string s_FontRule{ ".*\\.fnb" };
static constexpr std::string_view s_FontTargetPath{ "Data/Fonts" };
static constexpr ctll::fixed_string s_ArenaLevelRule{ "dm.*\\.lvl" };
static constexpr ctll::f... | 37.893333 | 102 | 0.724138 | C-ffeeStain |
6ea3c7dba877c577794b2a764d864917f79e3026 | 631 | cpp | C++ | Sculptor2_0/putbox.cpp | igorsergioJS/sculptor-2.0 | c4224d8485dfb0305bb5ebc8c816c527c8c6f698 | [
"MIT"
] | null | null | null | Sculptor2_0/putbox.cpp | igorsergioJS/sculptor-2.0 | c4224d8485dfb0305bb5ebc8c816c527c8c6f698 | [
"MIT"
] | null | null | null | Sculptor2_0/putbox.cpp | igorsergioJS/sculptor-2.0 | c4224d8485dfb0305bb5ebc8c816c527c8c6f698 | [
"MIT"
] | null | null | null | #include "putbox.h"
PutBox::PutBox(int x0, int x1, int y0, int y1, int z0, int z1, float r, float g, float b, float a)
{
this->x0 = x0;
this->x1 = x1;
this->y0 = y0;
this->y1 = y1;
this->z0 = z0;
this->z1 = z1;
this->r = r;
this->g = g;
this->b = b;
this->a = a;
}
PutBox::~PutB... | 17.527778 | 98 | 0.397781 | igorsergioJS |
6ea4430ee8412eaa0f0e3d093e9038a3ec51d343 | 1,118 | cpp | C++ | src/ServiceDescription.cpp | ruurdadema/dnssd | 5c444ed901d177e57dd7f9338cf9466fa12f7794 | [
"MIT"
] | null | null | null | src/ServiceDescription.cpp | ruurdadema/dnssd | 5c444ed901d177e57dd7f9338cf9466fa12f7794 | [
"MIT"
] | 1 | 2022-02-25T19:03:49.000Z | 2022-02-25T19:03:49.000Z | src/ServiceDescription.cpp | ruurdadema/dnssd | 5c444ed901d177e57dd7f9338cf9466fa12f7794 | [
"MIT"
] | null | null | null | #include <dnssd/ServiceDescription.h>
#include <sstream>
using namespace dnssd;
std::string ServiceDescription::description() const noexcept
{
std::string txtRecordDescription;
for (auto& kv : txtRecord)
{
txtRecordDescription += kv.first;
txtRecordDescription += "=";
txtRecordDes... | 23.787234 | 64 | 0.580501 | ruurdadema |
6ea4728f3dd90a5457945af3a0aec7c0fe3ebe7d | 601 | cpp | C++ | cpp/codefestival_2016_qualB_b/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | cpp/codefestival_2016_qualB_b/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | cpp/codefestival_2016_qualB_b/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int N, A, B;
cin >> N >> A >> B;
string S;
cin >> S;
int total_pass = 0;
int b_rank = 0;
for(int i = 0; i < S.size(); i++) {
if(S[i] == 'b') {
b_rank += 1;
}
if(S[i] == 'a' && total_pass < (A+B)) {
... | 19.387097 | 69 | 0.371048 | kokosabu |
6ea61efaeacce9a946491e7f090cb47b8d85d3f0 | 3,576 | hpp | C++ | src/Client/GUI3/Widgets/Panels/AbstractPanel.hpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 10 | 2018-02-12T16:14:07.000Z | 2022-03-19T15:08:29.000Z | src/Client/GUI3/Widgets/Panels/AbstractPanel.hpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 11 | 2018-02-08T16:46:49.000Z | 2022-02-03T20:48:12.000Z | src/Client/GUI3/Widgets/Panels/AbstractPanel.hpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 3 | 2018-02-12T22:08:55.000Z | 2021-06-24T16:29:17.000Z | #ifndef SRC_CLIENT_GUI3_WIDGETS_ABSTRACTPANEL_HPP_
#define SRC_CLIENT_GUI3_WIDGETS_ABSTRACTPANEL_HPP_
#include <Client/GUI3/Container.hpp>
#include <Client/GUI3/Events/Callback.hpp>
#include <Client/GUI3/Events/StateEvent.hpp>
#include <Client/GUI3/Types.hpp>
#include <SFML/System/Vector2.hpp>
#include <algorithm>
#in... | 19.021277 | 104 | 0.682606 | AlexWayfer |
6ea7a381371e7b64f10f2b39a65c8c700401b0b4 | 13,376 | cpp | C++ | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/tests/auto/corelib/itemmodels/qitemmodel/modelstotest.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/tests/auto/corelib/itemmodels/qitemmodel/modelstotest.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/tests/auto/corelib/itemmodels/qitemmodel/modelstotest.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid comm... | 35.107612 | 104 | 0.619767 | GrinCash |
6eaf4b56574eea425bc9c9e89831da13e21e93f2 | 62,518 | cpp | C++ | src/Prey/prey_baseweapons.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | 2 | 2018-08-30T23:48:22.000Z | 2021-04-07T19:16:18.000Z | src/Prey/prey_baseweapons.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | src/Prey/prey_baseweapons.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | #include "../idlib/precompiled.h"
#pragma hdrstop
#include "prey_local.h"
#define WEAPON_DEBUG if(g_debugWeapon.GetBool()) gameLocal.Warning
/***********************************************************************
hhWeapon
***********************************************************************/
const idEventDef... | 24.749802 | 321 | 0.648869 | AMS21 |
6eb0235879f977d48605c503d1bae02b99905776 | 1,543 | cpp | C++ | Centipede/GameComponents/Player.cpp | anunez97/centipede | 871bb505c7726dfa4b16caeb0f5b9c2d0e2660f8 | [
"MIT"
] | null | null | null | Centipede/GameComponents/Player.cpp | anunez97/centipede | 871bb505c7726dfa4b16caeb0f5b9c2d0e2660f8 | [
"MIT"
] | null | null | null | Centipede/GameComponents/Player.cpp | anunez97/centipede | 871bb505c7726dfa4b16caeb0f5b9c2d0e2660f8 | [
"MIT"
] | null | null | null | // Player
#include "Player.h"
#include "MushroomField.h"
#include "BlasterFactory.h"
#include "Settings.h"
#include "Grid.h"
#include "PlayerManager.h"
#include "KeyboardController.h"
#include "Blaster.h"
Player::Player()
:lives(3), score(0), pController(0), pBlaster(0), wave(1)
{
pGrid = new Grid;
... | 15.585859 | 126 | 0.652625 | anunez97 |
6eb04f751f7d32c88637bc22fb504b39e1237eb9 | 21,193 | cpp | C++ | src/UI/Reports/FactoryReport.cpp | gogoprog/OPHD | 70604dda83042ef9124728bebeaa70eb57f3dfca | [
"BSD-3-Clause"
] | null | null | null | src/UI/Reports/FactoryReport.cpp | gogoprog/OPHD | 70604dda83042ef9124728bebeaa70eb57f3dfca | [
"BSD-3-Clause"
] | null | null | null | src/UI/Reports/FactoryReport.cpp | gogoprog/OPHD | 70604dda83042ef9124728bebeaa70eb57f3dfca | [
"BSD-3-Clause"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "FactoryReport.h"
#include "../../Constants.h"
#include "../../FontManager.h"
#include "../../StructureManager.h"
#include "../../Things/Structures/... | 32.806502 | 477 | 0.750106 | gogoprog |
6eb137bdfbd0fc38213efd55d1944c4146b05242 | 2,776 | hpp | C++ | src/parser/symbols/letterlike.hpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | 4 | 2021-04-02T02:52:05.000Z | 2021-12-11T00:42:35.000Z | src/parser/symbols/letterlike.hpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | null | null | null | src/parser/symbols/letterlike.hpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | null | null | null | #pragma once
#include "mfl/code_point.hpp"
#include <array>
#include <utility>
namespace mfl::parser
{
constexpr auto letterlike_symbols = std::array<std::pair<const char*, code_point>, 93>{{
{"AA", 0x00c5},
{"AE", 0x00c6},
{"BbbC", 0x2102},
{"BbbN", 0x2115},
{"BbbP", 0x21... | 26.188679 | 92 | 0.440562 | cpp-niel |
6eb333ffd0637682d57f8119b1498e63397f860e | 2,727 | cpp | C++ | Plugins/Experimental/Experimentals/SuppressPlayerLoginInfo.cpp | Mefi100/unified | b12a6cc27f291ff779d5ce1226c180ba3f3db800 | [
"MIT"
] | 1 | 2021-07-13T19:21:57.000Z | 2021-07-13T19:21:57.000Z | Plugins/Experimental/Experimentals/SuppressPlayerLoginInfo.cpp | Mefi100/unified | b12a6cc27f291ff779d5ce1226c180ba3f3db800 | [
"MIT"
] | null | null | null | Plugins/Experimental/Experimentals/SuppressPlayerLoginInfo.cpp | Mefi100/unified | b12a6cc27f291ff779d5ce1226c180ba3f3db800 | [
"MIT"
] | null | null | null | #include "Experimentals/SuppressPlayerLoginInfo.hpp"
#include "API/CNWSPlayer.hpp"
#include "API/CNWSMessage.hpp"
#include "API/Functions.hpp"
#include "API/Globals.hpp"
#include "API/Constants.hpp"
namespace Experimental {
using namespace NWNXLib;
using namespace NWNXLib::API;
static NWNXLib::Hooks::Hook s_SendSe... | 45.45 | 165 | 0.807847 | Mefi100 |
6eb6fe112022e783839e132a269c3f48b17ebea5 | 2,993 | hpp | C++ | physic.hpp | Bethoth/SComputer | ce3547a0b7065f4422050ca03f3b05c50dee1772 | [
"MIT"
] | null | null | null | physic.hpp | Bethoth/SComputer | ce3547a0b7065f4422050ca03f3b05c50dee1772 | [
"MIT"
] | null | null | null | physic.hpp | Bethoth/SComputer | ce3547a0b7065f4422050ca03f3b05c50dee1772 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <string>
#include <cmath>
#include <optional>
#include "maths.hpp"
using std::stod;
namespace physic {
const double G = 6.67e-11;
std::optional<double> voluminal_mass(const std::string& rho, const std::string& mass, const std::string& volume) {
const bool rho_is_searched... | 39.906667 | 149 | 0.696625 | Bethoth |
6eb9947dd875ba85d14cb31d167e62ee8aefe111 | 321 | cpp | C++ | atcoder/abc092/b.cpp | yuik46/competition_programming_code | 0c47db99ce7fb9bcf6e3b0dbfb8c84d9cfa165fd | [
"MIT"
] | null | null | null | atcoder/abc092/b.cpp | yuik46/competition_programming_code | 0c47db99ce7fb9bcf6e3b0dbfb8c84d9cfa165fd | [
"MIT"
] | null | null | null | atcoder/abc092/b.cpp | yuik46/competition_programming_code | 0c47db99ce7fb9bcf6e3b0dbfb8c84d9cfa165fd | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int n;
int d;
int x;
cin >> n;
cin >> d >> x;
int a;
int result = x;
for(int i = 0; i < n; i++){
cin >> a;
result += d / a;
if(d % a != 0){
result += 1;
}
}
cout << result << endl;
}... | 14.590909 | 31 | 0.383178 | yuik46 |
6ebd6a92172b5081434b69543f6a97c823542698 | 5,565 | cpp | C++ | Partmod/free_space_manager.cpp | Null665/partmod | 11f2b90c745e27bdb47b105e0bf45834c62d3527 | [
"BSD-3-Clause"
] | 1 | 2017-02-12T15:10:38.000Z | 2017-02-12T15:10:38.000Z | Partmod/free_space_manager.cpp | Null665/partmod | 11f2b90c745e27bdb47b105e0bf45834c62d3527 | [
"BSD-3-Clause"
] | 1 | 2016-06-03T18:20:16.000Z | 2016-10-10T22:22:41.000Z | Partmod/free_space_manager.cpp | Null665/partmod | 11f2b90c745e27bdb47b105e0bf45834c62d3527 | [
"BSD-3-Clause"
] | null | null | null | #include "free_space_manager.h"
#include "disk.h"
#include "disk_exception.h"
#include <algorithm>
using namespace std;
bool cmp_frs(FREE_SPACE a,FREE_SPACE b)
{
return a.begin_sector < b.begin_sector;
}
void FreeSpaceManager::sort_vectors()
{
sort(free_space.begin(),free_space.end(),cmp_frs);
}
FreeSp... | 25.527523 | 116 | 0.654447 | Null665 |
6ebff0ee1d9f67afa95d19050693d78b9c8d6a70 | 1,828 | cpp | C++ | tests/src/Helpers/TestRoutes.cpp | nemu-framework/core | dea0ab4382684d0efc7f387e8a69a51a170c9305 | [
"MIT"
] | null | null | null | tests/src/Helpers/TestRoutes.cpp | nemu-framework/core | dea0ab4382684d0efc7f387e8a69a51a170c9305 | [
"MIT"
] | 3 | 2022-03-26T12:52:32.000Z | 2022-03-28T19:35:21.000Z | tests/src/Helpers/TestRoutes.cpp | nemu-framework/core | dea0ab4382684d0efc7f387e8a69a51a170c9305 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2019 Xavier Leclercq
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, ... | 41.545455 | 98 | 0.715536 | nemu-framework |
6ec047d8a2d0a5e30086b6632aefb5e40e2b136e | 292 | hpp | C++ | src/Qt5Network/QNetworkCookieJar.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | 128 | 2015-01-07T19:47:09.000Z | 2022-01-22T19:42:14.000Z | src/Qt5Network/QNetworkCookieJar.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | null | null | null | src/Qt5Network/QNetworkCookieJar.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | 24 | 2015-01-07T19:47:10.000Z | 2022-01-25T17:42:37.000Z | #ifndef luacxx_QNetworkCookieJar_INCLUDED
#define luacxx_QNetworkCookieJar_INCLUDED
#include "../stack.hpp"
#include <QNetworkCookieJar>
LUA_METATABLE_BUILT(QNetworkCookieJar)
extern "C" int luaopen_luacxx_QNetworkCookieJar(lua_State* const);
#endif // luacxx_QNetworkCookieJar_INCLUDED
| 22.461538 | 66 | 0.84589 | dafrito |
6ec84435134d26540a86ea3ea7a58b7de7f6e4dd | 1,472 | hpp | C++ | include/threepp/math/float_view.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | include/threepp/math/float_view.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | include/threepp/math/float_view.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null |
#ifndef THREEPP_FLOAT_VIEW_HPP
#define THREEPP_FLOAT_VIEW_HPP
#include <functional>
#include <utility>
#include <optional>
namespace threepp {
class float_view {
public:
float value{};
float operator()() const {
return value;
}
float_view &operator=(float v) {... | 18.871795 | 51 | 0.44837 | maidamai0 |
6ec9087c5d75826f569be263ef3cfecfaca5e0f8 | 1,415 | cpp | C++ | episode3/episode3/episode3.cpp | thenets/ngon_cs_s2 | ffbfd5ef9f213355aafa1aca1a1e318be784a8d6 | [
"MIT"
] | null | null | null | episode3/episode3/episode3.cpp | thenets/ngon_cs_s2 | ffbfd5ef9f213355aafa1aca1a1e318be784a8d6 | [
"MIT"
] | null | null | null | episode3/episode3/episode3.cpp | thenets/ngon_cs_s2 | ffbfd5ef9f213355aafa1aca1a1e318be784a8d6 | [
"MIT"
] | null | null | null | #include <iostream>
int max(int a, int b) {
return a > b ? a : b;
}
bool isLowercase(char c)
{
if (c >= 'a' and c <= 'z')
return true;
return false;
}
bool isUppercase(char c)
{
if (c >= 'A' and c <= 'Z')
return true;
return false;
}
bool isLetter(char c)
{
if (isUppercase(c)... | 17.048193 | 48 | 0.435336 | thenets |
6ecd27327e29418e36ffd3b391dc26babac7cdd4 | 8,330 | cpp | C++ | hash/appl_hash_test.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | hash/appl_hash_test.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | hash/appl_hash_test.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | /* See LICENSE for license details */
/*
*/
#include <stdio.h>
#include <string.h>
#include <appl.h>
#include <hash/appl_hash_test.h>
#include <misc/appl_unused.h>
/*
*/
struct appl_hash_test_node
{
struct appl_list
o_list;
/* -- */
char const *
p_string;
int
i_string... | 19.739336 | 84 | 0.460384 | fboucher9 |
6ed2838e809f41f084155b727183638f3ee85b12 | 287 | cpp | C++ | 628.三个数的最大乘积/maximumProduct.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2019-10-21T14:40:39.000Z | 2019-10-21T14:40:39.000Z | 628.三个数的最大乘积/maximumProduct.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | null | null | null | 628.三个数的最大乘积/maximumProduct.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2020-11-04T07:33:34.000Z | 2020-11-04T07:33:34.000Z | class Solution {
public:
int maximumProduct(vector<int>& nums) {
sort(nums.begin(),nums.end());
int first=nums[0]*nums[1]*nums[nums.size()-1];
int second=nums[nums.size()-1]*nums[nums.size()-2]*nums[nums.size()-3];
return max(first,second);
}
}; | 26.090909 | 79 | 0.585366 | YichengZhong |
6ed3e03729815f12c9f7265a696a4b63af6dbb5b | 291 | hpp | C++ | include/unordered_map/details/align_helper.hpp | Wizermil/unordered_map | 4d60bf16384b7ea9db1d43d8b15313f8752490ee | [
"MIT"
] | null | null | null | include/unordered_map/details/align_helper.hpp | Wizermil/unordered_map | 4d60bf16384b7ea9db1d43d8b15313f8752490ee | [
"MIT"
] | null | null | null | include/unordered_map/details/align_helper.hpp | Wizermil/unordered_map | 4d60bf16384b7ea9db1d43d8b15313f8752490ee | [
"MIT"
] | null | null | null | #pragma once
#include "unordered_map/details/config.hpp"
#include "unordered_map/details/type.hpp"
namespace wiz::details {
WIZ_HIDE_FROM_ABI constexpr usize next_aligned(usize sz, usize a_minus_one) noexcept { return (sz + a_minus_one) & ~a_minus_one; }
} // namespace wiz::details
| 26.454545 | 134 | 0.762887 | Wizermil |
6ed439ae01ec6187b401af8f78ee13a8a24300a5 | 10,283 | cpp | C++ | src/FealStream.cpp | ruben2020/leaf | 2927582ad2f6af0f683ad4e73a80c79f997857fa | [
"Apache-2.0"
] | null | null | null | src/FealStream.cpp | ruben2020/leaf | 2927582ad2f6af0f683ad4e73a80c79f997857fa | [
"Apache-2.0"
] | null | null | null | src/FealStream.cpp | ruben2020/leaf | 2927582ad2f6af0f683ad4e73a80c79f997857fa | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 ruben2020 https://github.com/ruben2020
*
* Licensed under the Apache License, Version 2.0
* with LLVM Exceptions (the "License");
* you may not use this file except in compliance with the License.
* You can find a copy of the License in the LICENSE file.
*
* Unless required by applicable law... | 27.791892 | 93 | 0.664495 | ruben2020 |
6ed43db9683a69209dcd8456a6ebf6cc857b15a7 | 1,383 | cpp | C++ | engine/Engine/src/game/parameter/ParameterType.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | engine/Engine/src/game/parameter/ParameterType.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | 10 | 2018-03-20T21:32:16.000Z | 2018-04-23T19:42:59.000Z | engine/Engine/src/game/parameter/ParameterType.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | #include "ghpch.h"
#include "ParameterType.h"
#include "core/Pointer.h"
namespace Ghurund {
using namespace ::DirectX;
const ParameterType ParameterType::INT = ParameterType(ParameterTypeEnum::INT, "int", sizeof(int));
const ParameterType ParameterType::INT2 = ParameterType(ParameterTypeEnum::INT2, "int2... | 49.392857 | 120 | 0.735358 | Kartikeyapan598 |
6ed6f82f450ae78f18aa2c743cdf90f9bd3435f9 | 452 | hpp | C++ | Axis.Mint/foundation/definitions/ElementBlockSyntax.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Mint/foundation/definitions/ElementBlockSyntax.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Mint/foundation/definitions/ElementBlockSyntax.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include "foundation/Axis.Mint.hpp"
#include "AxisString.hpp"
namespace axis { namespace foundation { namespace definitions {
class AXISMINT_API ElementBlockSyntax
{
private:
ElementBlockSyntax(void);
public:
~ElementBlockSyntax(void);
static const axis::String::char_type * BlockName;
static const a... | 21.52381 | 63 | 0.776549 | renato-yuzup |
6ed9830a8e46658d328c233054830732c8b6ef62 | 7,566 | cpp | C++ | code_reading/oceanbase-master/src/observer/ob_root_service_monitor.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/observer/ob_root_service_monitor.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/observer/ob_root_service_monitor.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 31.924051 | 115 | 0.648824 | wangcy6 |
6edc886b9560de46f95509370ffe6ef1d84e329f | 1,562 | hpp | C++ | library/felix/maxflow.hpp | fffelix-huang/CP | ed7b481a6643bee1b6d89dec0be89aea205114ca | [
"MIT"
] | 1 | 2021-12-16T13:57:11.000Z | 2021-12-16T13:57:11.000Z | library/felix/maxflow.hpp | fffelix-huang/CP | ed7b481a6643bee1b6d89dec0be89aea205114ca | [
"MIT"
] | null | null | null | library/felix/maxflow.hpp | fffelix-huang/CP | ed7b481a6643bee1b6d89dec0be89aea205114ca | [
"MIT"
] | null | null | null | #ifndef FELIX_MAXFLOW_HPP
#define FELIX_MAXFLOW_HPP 1
#include <vector>
#include <queue>
#include <numeric>
namespace felix {
template<class T>
class mf_graph {
public:
struct Edge {
int to;
T cap;
Edge(int _to, T _cap) : to(_to), cap(_cap) {}
};
static constexpr T inf = std::numeric_limits<T>::max() / 3 -... | 16.617021 | 64 | 0.495519 | fffelix-huang |
6ede0060d2d169dbf4110b4f333770a7d3a75050 | 1,905 | cpp | C++ | numpy_benchmarks/benchmarks/periodic_dist.cpp | adriendelsalle/numpy-benchmarks | 5c09448d045726b347e868756f9e1b004d0876ea | [
"BSD-3-Clause"
] | 33 | 2015-03-18T23:16:55.000Z | 2021-12-17T11:00:01.000Z | numpy_benchmarks/benchmarks/periodic_dist.cpp | adriendelsalle/numpy-benchmarks | 5c09448d045726b347e868756f9e1b004d0876ea | [
"BSD-3-Clause"
] | 8 | 2015-04-17T15:14:15.000Z | 2021-02-24T13:34:55.000Z | numpy_benchmarks/benchmarks/periodic_dist.cpp | adriendelsalle/numpy-benchmarks | 5c09448d045726b347e868756f9e1b004d0876ea | [
"BSD-3-Clause"
] | 12 | 2015-04-17T12:24:31.000Z | 2021-01-27T08:06:01.000Z | #include "xtensor/xnoalias.hpp"
#include "xtensor/xtensor.hpp"
#include "xtensor/xarray.hpp"
#include "xtensor/xrandom.hpp"
#include "xtensor/xview.hpp"
#include "xtensor/xfixed.hpp"
#include "xtensor/xpad.hpp"
#include "xtensor/xindex_view.hpp"
#define FORCE_IMPORT_ARRAY
#include "xtensor-python/pyarray.hpp"
#includ... | 27.608696 | 162 | 0.655118 | adriendelsalle |
6ee2a7582bd29f96c6ec8838d399081ce4086521 | 2,170 | cpp | C++ | test/huge_page_test.cpp | WeipingQu/memkind | f1c4ac9efd17e45b5bd669023a018e8b47bda398 | [
"BSD-3-Clause"
] | null | null | null | test/huge_page_test.cpp | WeipingQu/memkind | f1c4ac9efd17e45b5bd669023a018e8b47bda398 | [
"BSD-3-Clause"
] | null | null | null | test/huge_page_test.cpp | WeipingQu/memkind | f1c4ac9efd17e45b5bd669023a018e8b47bda398 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-2-Clause
/* Copyright (C) 2016 - 2020 Intel Corporation. */
#include "common.h"
#include "allocator_perf_tool/HugePageUnmap.hpp"
#include "allocator_perf_tool/HugePageOrganizer.hpp"
#include "TimerSysTime.hpp"
#include "Thread.hpp"
/*
* This test was created because of the munmap() fai... | 31 | 87 | 0.660369 | WeipingQu |
6ee31609c9d7542d46eb1439d70d83dc5c6ff7d4 | 2,493 | hpp | C++ | include/franka_o80/actuator.hpp | Data-Science-in-Mechanical-Engineering/franka_o80 | 3457f5d844fa504b15bcc6a3265a5beecfb239c4 | [
"MIT"
] | null | null | null | include/franka_o80/actuator.hpp | Data-Science-in-Mechanical-Engineering/franka_o80 | 3457f5d844fa504b15bcc6a3265a5beecfb239c4 | [
"MIT"
] | null | null | null | include/franka_o80/actuator.hpp | Data-Science-in-Mechanical-Engineering/franka_o80 | 3457f5d844fa504b15bcc6a3265a5beecfb239c4 | [
"MIT"
] | 1 | 2022-01-28T09:52:11.000Z | 2022-01-28T09:52:11.000Z | #pragma once
namespace franka_o80
{
///Actuator number
static const int actuator_number = 65;
///Actuator number corresponding to robot control mode. Contains `franka_o80::RobotMode` values
static const int robot_mode = 0;
///Actuator number corresponding to robot control mode. Contains `franka_o80::Robot... | 48.882353 | 95 | 0.734456 | Data-Science-in-Mechanical-Engineering |
6ee4764d0c7fe64deb3fbca465e42a5eb45c1215 | 8,658 | cc | C++ | rest/testing/service_peer_link_test.cc | kstepanmpmg/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 665 | 2015-12-09T17:00:14.000Z | 2022-03-25T07:46:46.000Z | rest/testing/service_peer_link_test.cc | tomzhang/mldb | a09cf2d9ca454d1966b9e49ae69f2fe6bf571494 | [
"Apache-2.0"
] | 797 | 2015-12-09T19:48:19.000Z | 2022-03-07T02:19:47.000Z | rest/testing/service_peer_link_test.cc | matebestek/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 103 | 2015-12-25T04:39:29.000Z | 2022-02-03T02:55:22.000Z | // This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
/* service_peer_test.cc
Jeremy Barnes, 4 March 2014
Copyright (c) 2014 mldb.ai inc. All rights reserved.
*/
#include "mldb/rest/service_peer.h"
#include "temporary_etcd_server.h"
#include "mldb/rest/etcd_client.h"
#include "mldb/re... | 31.714286 | 83 | 0.638716 | kstepanmpmg |
6ee5312f3b09eac6769a296dcd6b0f44d8eeb5d6 | 2,461 | cpp | C++ | dev/spark/Gem/Code/Utils/Filter.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | 2 | 2020-08-20T03:40:24.000Z | 2021-02-07T20:31:43.000Z | dev/spark/Gem/Code/Utils/Filter.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | null | null | null | dev/spark/Gem/Code/Utils/Filter.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | #include "spark_precompiled.h"
#include "Filter.h"
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Serialization/EditContext.h>
namespace spark
{
static AZStd::stack<FilterResult*> resultsStack;
void FilterResult::FilterResultScriptConstructor(FilterResult* self, AZ::ScriptDataContext& dc)
... | 25.371134 | 121 | 0.686306 | chrisinajar |
6ee773b2c4ba39334e1f478c53bd4b59776b933d | 203 | hpp | C++ | src/modules/osg/generated_code/FrontFace.pypp.hpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | src/modules/osg/generated_code/FrontFace.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | src/modules/osg/generated_code/FrontFace.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | // This file has been generated by Py++.
#ifndef FrontFace_hpp__pyplusplus_wrapper
#define FrontFace_hpp__pyplusplus_wrapper
void register_FrontFace_class();
#endif//FrontFace_hpp__pyplusplus_wrapper
| 22.555556 | 41 | 0.847291 | JaneliaSciComp |
6ee9f5eff929c9c70575f862fcd112847b4376d9 | 977 | cpp | C++ | main_server/src/entities/hourly_rate/hourly_rate.cpp | GrassoMichele/uPark | d96310c165c3efa9b0251c51ababe06639c4570a | [
"MIT"
] | null | null | null | main_server/src/entities/hourly_rate/hourly_rate.cpp | GrassoMichele/uPark | d96310c165c3efa9b0251c51ababe06639c4570a | [
"MIT"
] | null | null | null | main_server/src/entities/hourly_rate/hourly_rate.cpp | GrassoMichele/uPark | d96310c165c3efa9b0251c51ababe06639c4570a | [
"MIT"
] | null | null | null | #include "hourly_rate.hpp"
HourlyRate::HourlyRate(){}
HourlyRate::HourlyRate(int id) : id(id) {}
HourlyRate::HourlyRate(int id, float amount): id(id), amount(amount) {}
void HourlyRate::setId(int id){
this->id = id;
}
void HourlyRate::setAmount(float amount){
this->amount = amount;
}
int HourlyRate::getId... | 20.787234 | 93 | 0.651996 | GrassoMichele |
6eebb790af7bd43fe9d2373147c269e0b47407b7 | 1,013 | cpp | C++ | TestExcel/pageMargins.cpp | antonyenergy-dev/QXlsx | 865c0de9f8bf019100b90ef2528422d55ee92206 | [
"MIT"
] | 1 | 2020-01-03T14:00:29.000Z | 2020-01-03T14:00:29.000Z | TestExcel/pageMargins.cpp | antonyenergy-dev/QXlsx | 865c0de9f8bf019100b90ef2528422d55ee92206 | [
"MIT"
] | null | null | null | TestExcel/pageMargins.cpp | antonyenergy-dev/QXlsx | 865c0de9f8bf019100b90ef2528422d55ee92206 | [
"MIT"
] | 1 | 2021-04-03T23:11:39.000Z | 2021-04-03T23:11:39.000Z | // pageMargins.cpp
#include <QtGlobal>
#include <QObject>
#include <QString>
#include <QDebug>
#include "xlsxdocument.h"
#include "xlsxchartsheet.h"
#include "xlsxcellrange.h"
#include "xlsxchart.h"
#include "xlsxrichstring.h"
#include "xlsxworkbook.h"
using namespace QXlsx;
#include <cstdio>
#include <iostream>
//... | 17.77193 | 78 | 0.611056 | antonyenergy-dev |
6eef0975793233a2fd83d773d95c7e7ac8f7ab6f | 598 | cpp | C++ | problems/104.Maximum_Depth_of_Binary_Tree/AC_recursive_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/104.Maximum_Depth_of_Binary_Tree/AC_recursive_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/104.Maximum_Depth_of_Binary_Tree/AC_recursive_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | /*
* Author: illuz <iilluzen[at]gmail.com>
* File: AC_recursive_n.cpp
* Create Date: 2014-12-19 08:48:06
* Descripton: recursive
*/
#include <bits/stdc++.h>
using namespace std;
const int N = 0;
// Definition for binary tree
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
... | 16.611111 | 68 | 0.590301 | subramp-prep |
6ef036e9eae822b44864ca9595b31fa50868afd6 | 12,437 | cpp | C++ | Editor/LevelEditor/DOShuffle.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | Editor/LevelEditor/DOShuffle.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | Editor/LevelEditor/DOShuffle.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | //---------------------------------------------------------------------------
#include "stdafx.h"
#pragma hdrstop
#include "DOShuffle.h"
#include "ChoseForm.h"
#include "ImageThumbnail.h"
#include "xr_trims.h"
#include "Library.h"
#include "DOOneColor.h"
#include "EditObject.h"
#include "Scene.h"
#includ... | 34.451524 | 183 | 0.508 | ixray-team |
6ef20269959ae5ffc807efc792952ac7e2822e33 | 16,995 | hpp | C++ | opencv_contrib-3.3.0/modules/surface_matching/src/c_utils.hpp | AmericaGL/TrashTalk_Dapp | 401f17289261b5f537b239e7759dc039d53211e1 | [
"MIT"
] | 2 | 2020-05-27T13:28:03.000Z | 2021-03-21T15:39:11.000Z | opencv_contrib-3.3.0/modules/surface_matching/src/c_utils.hpp | AmericaGL/TrashTalk_Dapp | 401f17289261b5f537b239e7759dc039d53211e1 | [
"MIT"
] | null | null | null | opencv_contrib-3.3.0/modules/surface_matching/src/c_utils.hpp | AmericaGL/TrashTalk_Dapp | 401f17289261b5f537b239e7759dc039d53211e1 | [
"MIT"
] | 1 | 2019-03-01T09:46:20.000Z | 2019-03-01T09:46:20.000Z | //
// 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, install,
// copy or use the software.
//
//
// License Agreement
// ... | 25.327869 | 133 | 0.533098 | AmericaGL |
6ef4330113e8fee3d2cb0d3e541194ca7b600a82 | 2,958 | cc | C++ | paddle/fluid/distributed/ps/table/sparse_geo_table.cc | ZibinGuo/Paddle | 6e0892312de5e4ba76d980ff0e4322ac55ca0d07 | [
"Apache-2.0"
] | 2 | 2022-03-30T09:55:45.000Z | 2022-03-30T09:55:49.000Z | paddle/fluid/distributed/ps/table/sparse_geo_table.cc | ZibinGuo/Paddle | 6e0892312de5e4ba76d980ff0e4322ac55ca0d07 | [
"Apache-2.0"
] | null | null | null | paddle/fluid/distributed/ps/table/sparse_geo_table.cc | ZibinGuo/Paddle | 6e0892312de5e4ba76d980ff0e4322ac55ca0d07 | [
"Apache-2.0"
] | 1 | 2022-03-02T11:36:03.000Z | 2022-03-02T11:36:03.000Z | // Copyright (c) 2020 PaddlePaddle 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... | 32.152174 | 79 | 0.667343 | ZibinGuo |
6ef4630fb60252ff3ead8fda9d590727def2f723 | 5,886 | cpp | C++ | source/Win32/XCondition.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null | source/Win32/XCondition.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null | source/Win32/XCondition.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null |
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// XSDK
// Copyright (c) 2015 Schneider Electric
//
// Use, modification, and distribution is subject to the Boost Software License,
// Version 1.0 (See accompanying file LICENSE).
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | 33.634286 | 115 | 0.666157 | MultiSight |
6ef4e0df22cae77eefa9664ef8696f04eb88ce9e | 722 | hpp | C++ | include/back_off.hpp | cblauvelt/connection-pool | ea6e6fd1b4bea750fa694e10e36a53a3f0d0456d | [
"MIT"
] | null | null | null | include/back_off.hpp | cblauvelt/connection-pool | ea6e6fd1b4bea750fa694e10e36a53a3f0d0456d | [
"MIT"
] | 7 | 2022-02-02T04:57:24.000Z | 2022-03-20T23:07:02.000Z | include/back_off.hpp | cblauvelt/connection-pool | ea6e6fd1b4bea750fa694e10e36a53a3f0d0456d | [
"MIT"
] | 1 | 2021-09-19T17:55:20.000Z | 2021-09-19T17:55:20.000Z | #pragma once
#include <chrono>
#include <random>
#include <stdexcept>
#include "types.hpp"
namespace cpool {
inline milliseconds
timer_delay(uint8_t num_retries,
std::chrono::milliseconds maximum_backoff = 32s) {
// prevent int rollover
int retries = std::min(num_retries, (uint8_t)29);
std:... | 24.896552 | 80 | 0.693906 | cblauvelt |
6ef50c9002cb8fad355e0a9992ff005f2543ce57 | 119 | cpp | C++ | f9_os/inc/os/vnode.cpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | null | null | null | f9_os/inc/os/vnode.cpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | null | null | null | f9_os/inc/os/vnode.cpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | 1 | 2020-03-08T01:08:38.000Z | 2020-03-08T01:08:38.000Z | /*
* vnode.cpp
*
* Created on: May 3, 2017
* Author: Paul
*/
#include <os/vnode.hpp>
namespace os {
};
| 7.933333 | 27 | 0.529412 | ghsecuritylab |
6ef57bddc556034f284838f43f68d0cfdece60b1 | 4,861 | cpp | C++ | src/Engine/Platform/Thread.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | 2 | 2020-02-03T04:58:17.000Z | 2021-03-13T06:03:52.000Z | src/Engine/Platform/Thread.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | null | null | null | src/Engine/Platform/Thread.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Thread.h"
//=============================================================================
SE_NAMESPACE_BEGIN
#if SE_PLATFORM_WINDOWS
//-----------------------------------------------------------------------------
bool Mutex::Init(uint32_t spinCount, const char *name)
{
return InitializeC... | 33.524138 | 93 | 0.424193 | SapphireEngine |
6ef59d31bba551d565b1b536bdda1656c7381f6b | 1,871 | cpp | C++ | snippets/0x03/d_copyctor.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | snippets/0x03/d_copyctor.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | snippets/0x03/d_copyctor.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | // author: a.voss@fh-aachen.de
#include <iostream>
using std::cout;
using std::endl;
class address {
int id;
public:
address() : id{0} { // (A)
cout << "-a| ctor(), id=" << id << endl;
}
address(int id) : id{id} { ... | 26.352113 | 72 | 0.435061 | pblan |
6ef5b2a3c0f8f35b1905b88c47ef7a80e2cbb576 | 1,622 | cpp | C++ | test/perf/os/OSTimerTester.cpp | ORNL-Fusion/xolotl | 993434bea0d3bca439a733a12af78034c911690c | [
"BSD-3-Clause"
] | 13 | 2018-06-13T18:08:57.000Z | 2021-09-30T02:39:01.000Z | test/perf/os/OSTimerTester.cpp | ORNL-Fusion/xolotl | 993434bea0d3bca439a733a12af78034c911690c | [
"BSD-3-Clause"
] | 97 | 2018-02-14T15:24:08.000Z | 2022-03-29T16:29:48.000Z | test/perf/os/OSTimerTester.cpp | ORNL-Fusion/xolotl | 993434bea0d3bca439a733a12af78034c911690c | [
"BSD-3-Clause"
] | 18 | 2018-02-13T20:36:03.000Z | 2022-01-04T14:54:16.000Z | #define BOOST_TEST_MODULE Regression
#include <string>
#include <boost/test/included/unit_test.hpp>
#include <xolotl/perf/os/OSTimer.h>
using namespace std;
using namespace xolotl;
/**
* This suite is responsible for testing the OSTimer.
*/
BOOST_AUTO_TEST_SUITE(OSTimer_testSuite)
BOOST_AUTO_TEST_CASE(checkTimi... | 22.219178 | 77 | 0.74291 | ORNL-Fusion |
6efc04af7e71c2c6aef92cce088b860c1b483427 | 17,430 | cpp | C++ | tests/cuda2.2/tests/SobelFilter/SobelFilter.cpp | florianjacob/gpuocelot | fa63920ee7c5f9a86e264cd8acd4264657cbd190 | [
"BSD-3-Clause"
] | 221 | 2015-03-29T02:05:49.000Z | 2022-03-25T01:45:36.000Z | tests/cuda2.2/tests/SobelFilter/SobelFilter.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 106 | 2015-03-29T01:28:42.000Z | 2022-02-15T19:38:23.000Z | tests/cuda2.2/tests/SobelFilter/SobelFilter.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 83 | 2015-07-10T23:09:57.000Z | 2022-03-25T03:01:00.000Z | /*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this code
* ... | 31.014235 | 114 | 0.635571 | florianjacob |
6efc5d7fe01f241b9c0715c28e342bdbc9a6e094 | 9,872 | hpp | C++ | Source/Math/Matrix4.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Math/Matrix4.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Math/Matrix4.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | // Copyright 2020, Nathan Blane
#pragma once
#include "Math/Vector4.hpp"
#include "Math/MathDefinitions.hpp"
#include "Math/MathAPI.hpp"
struct Quat;
// TODO - Make the set and constructor methods be free floating methods that
// return a constructed matrix of that type
class MATH_API Matrix4
{
public:
static con... | 19.863179 | 102 | 0.718395 | frobro98 |
6efdcea60d391d0bcd0a884c7455856be6b274e6 | 522 | cpp | C++ | KM/03code/book/Thinking-In-C-resource-master/C03/c0316.cpp | wangcy6/weekly.github.io | f249bed5cf5a2b14d798ac33086cea0c1efe432e | [
"Apache-2.0"
] | 10 | 2019-03-17T10:13:04.000Z | 2021-03-03T03:23:34.000Z | KM/03code/book/Thinking-In-C-resource-master/C03/c0316.cpp | wangcy6/weekly.github.io | f249bed5cf5a2b14d798ac33086cea0c1efe432e | [
"Apache-2.0"
] | 44 | 2018-12-14T02:35:47.000Z | 2021-02-06T09:12:10.000Z | KM/03code/book/Thinking-In-C-resource-master/C03/c0316.cpp | wangcy6/weekly | f249bed5cf5a2b14d798ac33086cea0c1efe432e | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
enum Color
{
blue = 1,
red = 2,
black = 3,
white = 4,
yellow = 5,
};
int main()
{
Color mcolor = blue;
for(int i = blue ; i <= yellow; i++)
{
switch(i)
{
case blue:
cout<<"blue color is: "<<blue<<endl;
break;
case red:
cout<<"red color is: "<<red<<endl;
br... | 11.6 | 40 | 0.599617 | wangcy6 |
6efe513761ea1954ddbf39cedcbdab45bba6b1bb | 63 | hpp | C++ | making coffee/coffee.hpp | mattersievers/cpp_basics | 53ca6528ef65af55e4dc2c93f7d2f12ccd6747bc | [
"Apache-2.0"
] | null | null | null | making coffee/coffee.hpp | mattersievers/cpp_basics | 53ca6528ef65af55e4dc2c93f7d2f12ccd6747bc | [
"Apache-2.0"
] | null | null | null | making coffee/coffee.hpp | mattersievers/cpp_basics | 53ca6528ef65af55e4dc2c93f7d2f12ccd6747bc | [
"Apache-2.0"
] | null | null | null | std::string make_coffee(bool milk = false, bool sugar = false); | 63 | 63 | 0.746032 | mattersievers |
6efe6a2198b44083901f948149b2f993ef00259b | 5,537 | cc | C++ | mesh_estimate/src/stereo/inverse_depth_meas_model.cc | pangfumin/okvis_depth_mesh | a6c95a723796b3d9f14db7ec925bb7c046c81039 | [
"BSD-3-Clause"
] | 3 | 2018-09-20T01:41:27.000Z | 2020-06-03T15:13:20.000Z | mesh_estimate/src/stereo/inverse_depth_meas_model.cc | pangfumin/okvis_depth_mesh | a6c95a723796b3d9f14db7ec925bb7c046c81039 | [
"BSD-3-Clause"
] | null | null | null | mesh_estimate/src/stereo/inverse_depth_meas_model.cc | pangfumin/okvis_depth_mesh | a6c95a723796b3d9f14db7ec925bb7c046c81039 | [
"BSD-3-Clause"
] | null | null | null | /**
* This file is part of FLaME.
* Copyright (C) 2017 W. Nicholas Greene (wng@csail.mit.edu)
*
* 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 3 of the License, or
* (at y... | 33.969325 | 178 | 0.590392 | pangfumin |
3e01ac8d1067bf9c01e97f36acbc934061ca3af3 | 160 | hxx | C++ | src/Providers/UNIXProviders/SoftwareFeatureSAPImplementation/UNIX_SoftwareFeatureSAPImplementation_TRU64.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/SoftwareFeatureSAPImplementation/UNIX_SoftwareFeatureSAPImplementation_TRU64.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/SoftwareFeatureSAPImplementation/UNIX_SoftwareFeatureSAPImplementation_TRU64.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_TRU64
#ifndef __UNIX_SOFTWAREFEATURESAPIMPLEMENTATION_PRIVATE_H
#define __UNIX_SOFTWAREFEATURESAPIMPLEMENTATION_PRIVATE_H
#endif
#endif
| 13.333333 | 57 | 0.88125 | brunolauze |
3e026e598383d4eb052638fb6a25a51b3efd37d1 | 787 | hpp | C++ | includes/Graphics/DebugInfoManager.hpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | includes/Graphics/DebugInfoManager.hpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | includes/Graphics/DebugInfoManager.hpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | #ifndef __DXGI_INFO_MANAGER_HPP__
#define __DXGI_INFO_MANAGER_HPP__
#include <CleanWin.hpp>
#include <wrl.h>
#include <vector>
#include <string>
#include <d3d12.h>
using Microsoft::WRL::ComPtr;
class DebugInfoManager {
public:
DebugInfoManager();
~DebugInfoManager() = default;
DebugInfoManager(const ... | 23.147059 | 66 | 0.753494 | razerx100 |
3e03d0985df695dacaabfaf01baafb51955e176a | 30,372 | cpp | C++ | SparCraft/bwapidata/include/UpgradeType.cpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | SparCraft/bwapidata/include/UpgradeType.cpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | SparCraft/bwapidata/include/UpgradeType.cpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | #include <string>
#include <map>
#include <set>
#include <BWAPI/UpgradeType.h>
#include <BWAPI/Race.h>
#include <BWAPI/UnitType.h>
#include <Util/Foreach.h>
#include "Common.h"
namespace BWAPI
{
bool initializingUpgradeType = true;
class UpgradeTypeInternal
{
public:
UpgradeTypeInterna... | 72.314286 | 244 | 0.690307 | iali17 |
3e086ad85c6c673c77ac740a029a3b6fabc19c7c | 3,327 | cpp | C++ | ImageVis3D/UI/BrowseData.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | ImageVis3D/UI/BrowseData.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | ImageVis3D/UI/BrowseData.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation ... | 31.386792 | 144 | 0.701232 | JensDerKrueger |
3e08930efc20de47c9396c39506d8dccc4004ebc | 20,741 | cpp | C++ | net/tapi/skywalker/hidtsp/phonemgr/phonemgr.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/tapi/skywalker/hidtsp/phonemgr/phonemgr.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/tapi/skywalker/hidtsp/phonemgr/phonemgr.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z |
/* Copyright (c) 1999 Microsoft Corporation */
#include "phonemgr.h"
#include <stdlib.h>
#include <stdio.h>
#include <wxdebug.h>
#ifdef _DBG
#define DEBUG(_x_) OutputDebugString(_x_)
#else
#define DEBUG(_x_)
#endif
ITRequest * g_pITRequest = NULL;
HRESULT InitAssistedTelephony(void)
{
HR... | 27.112418 | 103 | 0.405091 | npocmaka |