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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8810075e6d4e4e72fc54b7f19189439774961e2f | 230 | cpp | C++ | tests/simple.cpp | LongJohnCoder/compile-time-regular-expressions | 329bba1590069b6bd24e50294f12c8c7b4e79231 | [
"MIT"
] | 1 | 2020-04-19T20:35:31.000Z | 2020-04-19T20:35:31.000Z | tests/simple.cpp | LongJohnCoder/compile-time-regular-expressions | 329bba1590069b6bd24e50294f12c8c7b4e79231 | [
"MIT"
] | null | null | null | tests/simple.cpp | LongJohnCoder/compile-time-regular-expressions | 329bba1590069b6bd24e50294f12c8c7b4e79231 | [
"MIT"
] | null | null | null | #include <ctre.hpp>
using namespace ctre::test_literals;
// basics
static_assert(""_simple_test);
static_assert("a"_simple_test);
static_assert("ab"_simple_test);
static_assert("a|b"_simple_test);
static_assert("n"_simple_test); | 23 | 36 | 0.791304 | LongJohnCoder |
881315d1fa82b5355d54ef9ee765cca98b163b86 | 4,665 | cpp | C++ | examples/game/constants.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 58 | 2015-08-09T14:56:35.000Z | 2022-01-15T22:06:58.000Z | examples/game/constants.cpp | mamontov-cpp/saddy-graphics-engine-2d | e25a6637fcc49cb26614bf03b70e5d03a3a436c7 | [
"BSD-2-Clause"
] | 245 | 2015-08-08T08:44:22.000Z | 2022-01-04T09:18:08.000Z | examples/game/constants.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 23 | 2015-12-06T03:57:49.000Z | 2020-10-12T14:15:50.000Z | #include "constants.h"
#include <cstdlib>
sad::Sprite2D::Options * sad::p2d::app::Constants<Player>::sprite()
{
sad::Sprite2D::Options * o = new sad::Sprite2D::Options();
o->Texture = "objects";
o->TextureRectangle = sad::Rect2D(sad::Point2D(0,88),sad::Point2D(88,174));
o->Rectangle = sad::Rect... | 29.339623 | 82 | 0.607503 | mamontov-cpp |
88137c10c8e76804cbb0c481f21014e0ab6b0646 | 2,096 | cpp | C++ | checkers/nyesno.cpp | Supermagzzz/testlib | 1277b269ec417dc01a786a6775a10b9189a0fadc | [
"MIT"
] | 2 | 2022-01-14T13:34:09.000Z | 2022-02-21T07:27:29.000Z | checkers/nyesno.cpp | Bedoazim/testlib | f28d52804011c5dca2e62fbe7cff45888579b0e8 | [
"MIT"
] | null | null | null | checkers/nyesno.cpp | Bedoazim/testlib | f28d52804011c5dca2e62fbe7cff45888579b0e8 | [
"MIT"
] | 3 | 2021-09-28T14:16:29.000Z | 2021-11-12T12:23:59.000Z | #include "testlib.h"
#include <string>
using namespace std;
const string YES = "YES";
const string NO = "NO";
int main(int argc, char * argv[])
{
setName("%s", ("multiple " + YES + "/" + NO + " (case insensetive)").c_str());
registerTestlibCmd(argc, argv);
int index = 0, yesCount = 0, noCou... | 30.823529 | 134 | 0.530534 | Supermagzzz |
88142ccf89922e80dcfda083b690183e8c9c32e7 | 8,123 | cpp | C++ | NeoMathEngine/src/GPU/Vulkan/VulkanShader.cpp | AlinaKalyakina/neoml | 328eac0d23e45faedb07a336ebfaf36288bb0db9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoMathEngine/src/GPU/Vulkan/VulkanShader.cpp | AlinaKalyakina/neoml | 328eac0d23e45faedb07a336ebfaf36288bb0db9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoMathEngine/src/GPU/Vulkan/VulkanShader.cpp | AlinaKalyakina/neoml | 328eac0d23e45faedb07a336ebfaf36288bb0db9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* Copyright © 2017-2020 ABBYY Production LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 37.261468 | 117 | 0.744183 | AlinaKalyakina |
8816240d2f02ad9f708e1532280e7a512c306ee3 | 16,447 | cpp | C++ | mesh/src/reader/VtkMeshReader.cpp | AvciRecep/chaste_2019 | 1d46cdac647820d5c5030f8a9ea3a1019f6651c1 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-04-05T12:11:54.000Z | 2020-04-05T12:11:54.000Z | mesh/src/reader/VtkMeshReader.cpp | AvciRecep/chaste_2019 | 1d46cdac647820d5c5030f8a9ea3a1019f6651c1 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | mesh/src/reader/VtkMeshReader.cpp | AvciRecep/chaste_2019 | 1d46cdac647820d5c5030f8a9ea3a1019f6651c1 | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2020-04-05T14:26:13.000Z | 2021-03-09T08:18:17.000Z | /*
Copyright (C) Fujitsu Laboratories of Europe, 2009
*/
/*
Copyright (c) 2005-2019, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part o... | 30.513915 | 151 | 0.68438 | AvciRecep |
8816bc8ddd3b2b8f28137877aa1d922f36c22009 | 13,465 | cpp | C++ | src/common/IvGraphics/D3D11/IvResourceManagerD3D11.cpp | jsaynysa/Ksiazka | 657b81f5a291170df8a61e9cded09a14c1d3219e | [
"BSD-3-Clause"
] | 344 | 2015-08-17T01:37:08.000Z | 2022-03-09T23:59:09.000Z | src/common/IvGraphics/D3D11/IvResourceManagerD3D11.cpp | jsaynysa/Ksiazka | 657b81f5a291170df8a61e9cded09a14c1d3219e | [
"BSD-3-Clause"
] | 10 | 2015-08-25T14:49:35.000Z | 2021-09-10T08:07:10.000Z | src/common/IvGraphics/D3D11/IvResourceManagerD3D11.cpp | jsaynysa/Ksiazka | 657b81f5a291170df8a61e9cded09a14c1d3219e | [
"BSD-3-Clause"
] | 74 | 2015-09-23T16:36:13.000Z | 2022-03-07T11:15:35.000Z | //===============================================================================
// @ IvResourceManagerD3D11.cpp
//
// D3D11 implementation of resource manager
// ------------------------------------------------------------------------------
// Copyright (C) 2008-2015 James M. Van Verth and Lars M. Bishop.
// All ri... | 39.719764 | 97 | 0.416636 | jsaynysa |
8816f49e5e109430278fa1b5d42a672c90529bf7 | 3,979 | cc | C++ | src/mlio/memory/file_backed_memory_allocator.cc | babak2520/ml-io | 87bedf9537959260723ed0419a0803c76e015ef5 | [
"Apache-2.0"
] | 69 | 2019-10-14T18:55:50.000Z | 2022-02-28T05:50:39.000Z | src/mlio/memory/file_backed_memory_allocator.cc | cbalioglu/ml-io | d79a895c3fe5e10f0f832cfdcee5a73058abb7c7 | [
"Apache-2.0"
] | 18 | 2019-11-16T12:45:40.000Z | 2022-01-29T03:47:52.000Z | src/mlio/memory/file_backed_memory_allocator.cc | cbalioglu/ml-io | d79a895c3fe5e10f0f832cfdcee5a73058abb7c7 | [
"Apache-2.0"
] | 16 | 2019-10-24T22:35:51.000Z | 2021-09-03T18:23:04.000Z | /*
* Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... | 29.043796 | 130 | 0.707716 | babak2520 |
881a9b8d96e9a4f6635dacd5ef1c2a11b74a0fa7 | 2,295 | cpp | C++ | src/router.cpp | timotto/ardumower-modem | 3391e41a8013cef572f0c4b42d4023b9a20f5463 | [
"MIT"
] | 1 | 2022-02-28T07:21:55.000Z | 2022-02-28T07:21:55.000Z | src/router.cpp | timotto/ardumower-modem | 3391e41a8013cef572f0c4b42d4023b9a20f5463 | [
"MIT"
] | 3 | 2022-02-18T04:16:10.000Z | 2022-02-18T04:29:58.000Z | src/router.cpp | timotto/ardumower-modem | 3391e41a8013cef572f0c4b42d4023b9a20f5463 | [
"MIT"
] | null | null | null | #include "router.h"
#include "log.h"
using namespace ArduMower::Modem;
// expect an answer from ArduMower within expectDownResponseTimeout ms or respond to caller with "Error::TIMEOUT"
static const uint32_t expectDownResponseTimeout = 1000;
void Router::begin()
{
while (down.available())
down.read();
}
void R... | 16.510791 | 113 | 0.617865 | timotto |
881c486dc028c501a83dc6de425086d175126abd | 5,072 | cpp | C++ | pwiz_tools/BiblioSpec/src/saxhandler.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 2 | 2019-12-28T21:24:36.000Z | 2020-04-18T03:52:05.000Z | pwiz_tools/BiblioSpec/src/saxhandler.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | null | null | null | pwiz_tools/BiblioSpec/src/saxhandler.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | null | null | null | //
// $Id: saxhandler.cpp 9228 2015-12-22 00:28:23Z kaipot $
//
//
// Original author: Barbara Frewen <frewen@u.washington.edu>
//
// Copyright 2012 University of Washington - Seattle, WA 98195
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with ... | 29.149425 | 97 | 0.621254 | shze |
882141527a195aa70f7216186e746baaeff97eb4 | 1,193 | cpp | C++ | C++/construct-binary-search-tree-from-preorder-traversal.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/construct-binary-search-tree-from-preorder-traversal.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/construct-binary-search-tree-from-preorder-traversal.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(h)
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
TreeNode* bstFromPreorder(vector<int>& preorder) {
int i... | 29.097561 | 79 | 0.473596 | jaiskid |
8823bb651906fc68556573cb85d1e0ea4ea919f5 | 7,008 | cpp | C++ | source/drivers/AKHILAFLEXI2C.cpp | AkhilaLabs/bsp-AkhilaFlex-0 | 302a4f4aa4b9d3b0a5bea2c3a7f97707ebf3cfd2 | [
"MIT"
] | null | null | null | source/drivers/AKHILAFLEXI2C.cpp | AkhilaLabs/bsp-AkhilaFlex-0 | 302a4f4aa4b9d3b0a5bea2c3a7f97707ebf3cfd2 | [
"MIT"
] | null | null | null | source/drivers/AKHILAFLEXI2C.cpp | AkhilaLabs/bsp-AkhilaFlex-0 | 302a4f4aa4b9d3b0a5bea2c3a7f97707ebf3cfd2 | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2016 British Broadcasting Corporation.
This software is provided by Lancaster University by arrangement with the BBC.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to dea... | 33.5311 | 130 | 0.679509 | AkhilaLabs |
8827d8ac58efe81b7e0b75ad7b036abd9e9a15d7 | 1,228 | cpp | C++ | src/armnn/OutputHandler.cpp | Srivathsav-max/armnn-clone | af2daa6526623c91ee97f7141be4d1b07de92a48 | [
"MIT"
] | 1 | 2022-03-31T18:21:59.000Z | 2022-03-31T18:21:59.000Z | src/armnn/OutputHandler.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | src/armnn/OutputHandler.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "OutputHandler.hpp"
#include <armnn/backends/ITensorHandle.hpp>
#include <backendsCommon/WorkloadDataCollector.hpp>
#include <armnn/backends/WorkloadFactory.hpp>
namespace armnn
{
void OutputHandler::Se... | 25.583333 | 104 | 0.781759 | Srivathsav-max |
88292c5b9302cd3ff3f7664376a27a228579ac21 | 17,622 | cpp | C++ | sample/src/DX12/SPDCS.cpp | adv-sw/FidelityFX-SPD | 254099a5111dbcbd9b02f629a55991789ec5a9d0 | [
"MIT"
] | 1 | 2021-03-08T17:21:11.000Z | 2021-03-08T17:21:11.000Z | sample/src/DX12/SPDCS.cpp | adv-sw/FidelityFX-SPD | 254099a5111dbcbd9b02f629a55991789ec5a9d0 | [
"MIT"
] | null | null | null | sample/src/DX12/SPDCS.cpp | adv-sw/FidelityFX-SPD | 254099a5111dbcbd9b02f629a55991789ec5a9d0 | [
"MIT"
] | null | null | null | // SPDSample
//
// Copyright (c) 2020 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 th... | 43.085575 | 238 | 0.647486 | adv-sw |
882982bc7208f570f1190822076b2f0fc3a3fb07 | 305 | cc | C++ | chapter-01/1.16.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | 1 | 2017-04-01T06:57:30.000Z | 2017-04-01T06:57:30.000Z | chapter-01/1.16.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | chapter-01/1.16.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | //output the larger of two number
#include <iostream>
int main()
{
std::cout << "Enter two numbers : " << std::endl;
int v1, v2;
std::cin >> v1 >> v2;
int max;
if (v1 <= v2) {
max = v2;
} else {
max = v1;
}
std::cout << "the max number is " << max << std::endl;
return 0;
}
| 13.863636 | 56 | 0.518033 | hongmi |
882be3b26494918b9c08310232504911f8fa8642 | 1,302 | cpp | C++ | Runner.cpp | johnwyz88/calculator | c6707c5c8b93923ee038aa2ef11934635726a23f | [
"Apache-2.0"
] | 1 | 2021-06-14T04:38:02.000Z | 2021-06-14T04:38:02.000Z | Runner.cpp | johnwyz88/calculator | c6707c5c8b93923ee038aa2ef11934635726a23f | [
"Apache-2.0"
] | null | null | null | Runner.cpp | johnwyz88/calculator | c6707c5c8b93923ee038aa2ef11934635726a23f | [
"Apache-2.0"
] | null | null | null | //
// Created by Wang, John on 2021-06-12.
//
#include <vector>
#include <sstream>
#include <iostream>
#include "Calculator.h"
#include "operator/Operator.h"
void showHelp();
int main() {
EvaluationContext context;
Calculator calculator;
std::cout << "Welcome to RU! Type 'help' for list of available oper... | 21.7 | 92 | 0.510753 | johnwyz88 |
882d7d303f5c137868555f595b60bd0790f6c853 | 45,170 | cpp | C++ | source/owlcore/panespli.cpp | pierrebestwork/owl-next | 94ba85e8b4dcb978f095b479f85fe4ba3af2fe4e | [
"Zlib"
] | null | null | null | source/owlcore/panespli.cpp | pierrebestwork/owl-next | 94ba85e8b4dcb978f095b479f85fe4ba3af2fe4e | [
"Zlib"
] | null | null | null | source/owlcore/panespli.cpp | pierrebestwork/owl-next | 94ba85e8b4dcb978f095b479f85fe4ba3af2fe4e | [
"Zlib"
] | null | null | null | //----------------------------------------------------------------------------
// ObjectWindows
// Copyright (c) 1995, 1997 by Borland International, All Rights Reserved
//
/// \file
/// Implementation of Pane Splitter classes
//----------------------------------------------------------------------------
#includ... | 26.019585 | 112 | 0.626411 | pierrebestwork |
882dd114faec0a52b724fca15b129a128b688f3d | 22 | cc | C++ | src/fiber/detail/StdTimer.cc | dpicken/utils | 53d214cd81d45c29578e3165c1b188057e6ac9e1 | [
"MIT"
] | null | null | null | src/fiber/detail/StdTimer.cc | dpicken/utils | 53d214cd81d45c29578e3165c1b188057e6ac9e1 | [
"MIT"
] | null | null | null | src/fiber/detail/StdTimer.cc | dpicken/utils | 53d214cd81d45c29578e3165c1b188057e6ac9e1 | [
"MIT"
] | null | null | null | #include "StdTimer.h"
| 11 | 21 | 0.727273 | dpicken |
882eec27bf0c082cec8085f52a5e90696c6124ce | 45,259 | cpp | C++ | src/infozip/trees.cpp | yayapoi/fastzip | f6426254c1181de356cca4b8071f55d796ecfba8 | [
"RSA-MD"
] | null | null | null | src/infozip/trees.cpp | yayapoi/fastzip | f6426254c1181de356cca4b8071f55d796ecfba8 | [
"RSA-MD"
] | null | null | null | src/infozip/trees.cpp | yayapoi/fastzip | f6426254c1181de356cca4b8071f55d796ecfba8 | [
"RSA-MD"
] | null | null | null | /*
trees.h - Zip 3
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2005-Feb-10 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp:... | 37.747289 | 87 | 0.579266 | yayapoi |
882f894b2d9590c8611394829c102e098e07f270 | 9,519 | cc | C++ | dcmsr/libcmr/cid29.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | null | null | null | dcmsr/libcmr/cid29.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | null | null | null | dcmsr/libcmr/cid29.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright (C) 2015-2016, J. Riesmeier, Oldenburg, Germany
* All rights reserved. See COPYRIGHT file for details.
*
* Source file for class CID29_AcquisitionModality
*
* Generated automatically from DICOM PS 3.16-2016e
* File created on 2016-11-23 13:58:37 by J. Riesmeier
*
*/
#include "dcmtk/co... | 47.834171 | 158 | 0.690619 | palmerc |
88312b2b91c634809f623a246213d118c041dda7 | 390 | cpp | C++ | gpu/src/dawn/sources/dawn_native_utils_gen.cpp | zigster64/mach | 2fa4f42b1ecd2acf198ebf8faff4547b91000066 | [
"CC-BY-4.0",
"Apache-2.0",
"MIT-0",
"MIT",
"ECL-2.0"
] | 522 | 2021-07-10T09:35:59.000Z | 2022-03-31T19:28:42.000Z | gpu/src/dawn/sources/dawn_native_utils_gen.cpp | zigster64/mach | 2fa4f42b1ecd2acf198ebf8faff4547b91000066 | [
"CC-BY-4.0",
"Apache-2.0",
"MIT-0",
"MIT",
"ECL-2.0"
] | 121 | 2021-07-18T22:27:45.000Z | 2022-03-31T23:01:10.000Z | gpu/src/dawn/sources/dawn_native_utils_gen.cpp | zigster64/mach | 2fa4f42b1ecd2acf198ebf8faff4547b91000066 | [
"CC-BY-4.0",
"Apache-2.0",
"MIT-0",
"MIT",
"ECL-2.0"
] | 38 | 2021-08-13T20:40:48.000Z | 2022-03-30T08:23:30.000Z | #include "out/Debug/gen/src/dawn_native/ChainUtils_autogen.cpp"
#include "out/Debug/gen/src/dawn_native/ProcTable.cpp"
#include "out/Debug/gen/src/dawn_native/wgpu_structs_autogen.cpp"
#include "out/Debug/gen/src/dawn_native/ValidationUtils_autogen.cpp"
#include "out/Debug/gen/src/dawn_native/webgpu_absl_format_autogen... | 55.714286 | 71 | 0.830769 | zigster64 |
8834aba430ed870c23b6f7281e6712652af1cdb1 | 535 | cpp | C++ | Code Chef/May Lunchtime 2020/LOSTWKND.cpp | aldew5/Competitve-Programming | eb0b93a35af3bd5e806aedc44b835830af01d496 | [
"MIT"
] | 2 | 2020-05-09T15:54:18.000Z | 2021-01-23T22:32:53.000Z | Code Chef/May Lunchtime 2020/LOSTWKND.cpp | aldew5/Competitive-Programming | fc93723fae739d0b06bcf2dbe3b9274584a79a66 | [
"MIT"
] | null | null | null | Code Chef/May Lunchtime 2020/LOSTWKND.cpp | aldew5/Competitive-Programming | fc93723fae739d0b06bcf2dbe3b9274584a79a66 | [
"MIT"
] | null | null | null | /*
Aldew
PROBLEM: Lost Weekend
CLASSIFICATION:
DIFFICULTY:
*/
#include <iostream>
#include <vector>
#include <bits/stdc++.h>
#include <cmath>
#include <string>
#include <map>
#include <math.h>
#include <cstdio>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--){
int a1, a2, a3, a4, a5, p;
... | 13.717949 | 54 | 0.53271 | aldew5 |
883e2d70df61ee6dc30770f0ee870e42cbbd4570 | 3,626 | cpp | C++ | src/tools/tools/src/project/project_loader.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | 1 | 2019-11-27T20:23:45.000Z | 2019-11-27T20:23:45.000Z | src/tools/tools/src/project/project_loader.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | null | null | null | src/tools/tools/src/project/project_loader.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | null | null | null | #include "halley/tools/project/project_loader.h"
#include "halley/core/game/halley_statics.h"
#include "halley/tools/file/filesystem.h"
#include "halley/support/debug.h"
using namespace Halley;
ProjectLoader::ProjectLoader(const HalleyStatics& statics, const Path& halleyPath)
: statics(statics)
, halleyPath(halleyP... | 27.679389 | 116 | 0.711804 | lye |
88401b86b344e62b61bfa28af235ade982a3d3ee | 5,002 | cpp | C++ | EasyTwitchChat/Source/EasyTwitchChat/Private/EasyTwitchChatComponent.cpp | Skiftsu/EasyTwitchChatUE4Plugin | a40ed574ae536c73e76be5660ce2fc79a7b98529 | [
"MIT"
] | null | null | null | EasyTwitchChat/Source/EasyTwitchChat/Private/EasyTwitchChatComponent.cpp | Skiftsu/EasyTwitchChatUE4Plugin | a40ed574ae536c73e76be5660ce2fc79a7b98529 | [
"MIT"
] | null | null | null | EasyTwitchChat/Source/EasyTwitchChat/Private/EasyTwitchChatComponent.cpp | Skiftsu/EasyTwitchChatUE4Plugin | a40ed574ae536c73e76be5660ce2fc79a7b98529 | [
"MIT"
] | null | null | null | #include "EasyTwitchChatComponent.h"
#include <string>
#include "Networking.h"
void UEasyTwitchChatComponent::Connect(bool& Connected)
{
Connected = false;
SocketSubsystem = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM);
const TSharedRef<FInternetAddr> ConnectionAddr = SocketSubsystem->CreateInternetAddr();
... | 28.747126 | 157 | 0.719912 | Skiftsu |
88454bdc77612d37dda6478cc83560289ce701de | 1,881 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/gui/src/custom_controls_screen/ThreeWayProgressBarCircle.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/gui/src/custom_controls_screen/ThreeWayProgressBarCircle.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/gui/src/custom_controls_screen/ThreeWayProgressBarCircle.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* @attention
*
* Copyright (c) 2018 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
... | 26.492958 | 87 | 0.669325 | ramkumarkoppu |
88483869d5a44e0cc4e84e1ccbfe1ee9b4f38929 | 4,728 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_VisualStudioDemo/cpp/OutputView.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_VisualStudioDemo/cpp/OutputView.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_VisualStudioDemo/cpp/OutputView.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these source... | 23.405941 | 122 | 0.708122 | BaruaSourav |
88483bc16e9db4b3524084d517cd1af47e70852b | 49,091 | cpp | C++ | surena4/src/trajectory_generation/src/trajectory_generation_march_walk.cpp | amin-amani/humanoid | 7493fc566064ff903deb130376eb67e684c6a303 | [
"MIT"
] | 1 | 2021-11-16T08:51:26.000Z | 2021-11-16T08:51:26.000Z | surena4/src/trajectory_generation/src/trajectory_generation_march_walk.cpp | amin-amani/humanoid | 7493fc566064ff903deb130376eb67e684c6a303 | [
"MIT"
] | 1 | 2018-10-27T13:34:18.000Z | 2018-10-27T13:34:18.000Z | surena4/src/trajectory_generation/src/trajectory_generation_march_walk.cpp | amin-amani/humanoid | 7493fc566064ff903deb130376eb67e684c6a303 | [
"MIT"
] | null | null | null | #include "ros/ros.h"
#include "std_msgs/String.h"
#include"Eigen/Dense"
#include <vector>
#include <iostream>
#include <QString>
#include <QList>
#include "Robot.h"
#include"taskspaceonline3.h"
#include <qmath.h>
#include <cstring>
#include<qdebug.h>
#include <Eigen/Geometry>
#include <cstdlib>
#include "Eigen/eiquadpr... | 40.074286 | 192 | 0.627121 | amin-amani |
884a2658a7188998c04b366b56a07c5d5862e99e | 287 | hpp | C++ | agency/execution/executor/parallel_executor.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 129 | 2016-08-18T23:24:15.000Z | 2022-03-25T12:06:05.000Z | agency/execution/executor/parallel_executor.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 86 | 2016-08-19T03:43:33.000Z | 2020-07-20T14:27:41.000Z | agency/execution/executor/parallel_executor.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 23 | 2016-08-18T23:52:13.000Z | 2022-02-28T16:28:20.000Z | #pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/concurrency/thread_pool.hpp>
#include <agency/execution/executor/detail/this_thread_parallel_executor.hpp>
namespace agency
{
using parallel_executor = detail::parallel_thread_pool_executor;
} // end agency
| 17.9375 | 77 | 0.804878 | nerikhman |
884b0faa9ed45b563aad31d62bd4bd35893d16a8 | 1,261 | cpp | C++ | tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp | nettrino/IntFlow | 0400aef5da2c154268d8b020e393c950435395b3 | [
"Unlicense"
] | 16 | 2015-09-08T08:49:11.000Z | 2019-07-20T14:46:20.000Z | src/llvm/tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2019-02-10T08:27:48.000Z | 2019-02-10T08:27:48.000Z | src/llvm/tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 7 | 2016-05-26T17:31:46.000Z | 2020-11-04T06:39:23.000Z | //===--- APSIntType.cpp - Simple record of the type of APSInts ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 32.333333 | 80 | 0.662173 | nettrino |
884b32ab7000844997cd5b132072fa509b57c5df | 16,805 | cpp | C++ | data_compression/L3/demos/libzso/src/host.cpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | data_compression/L3/demos/libzso/src/host.cpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | data_compression/L3/demos/libzso/src/host.cpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | #include "cmdlineparser.h"
#include <assert.h>
#include <boost/lexical_cast.hpp>
#include <boost/filesystem.hpp>
#include <chrono>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <zlib.h>
extern int d... | 37.595078 | 120 | 0.578637 | Aperture-Electronic |
885123ca08bcd90e05ee995fae601775374e6857 | 3,807 | cpp | C++ | src/executor/executor.cpp | fezcode/boxer | 89139da2a93ae55d54bdf57a582d5eb7b1e157b0 | [
"Unlicense"
] | 1 | 2022-02-07T08:58:29.000Z | 2022-02-07T08:58:29.000Z | src/executor/executor.cpp | fezcode/boxer | 89139da2a93ae55d54bdf57a582d5eb7b1e157b0 | [
"Unlicense"
] | null | null | null | src/executor/executor.cpp | fezcode/boxer | 89139da2a93ae55d54bdf57a582d5eb7b1e157b0 | [
"Unlicense"
] | null | null | null | //======================================
// Executor class
//======================================
//
#include "executor.h"
#include "../commands/command.h"
#include <filesystem>
namespace boxer::executor {
Executor::Executor(const command_list_t & list_of_commands, string_t temp_tar_filename, string... | 33.394737 | 140 | 0.481481 | fezcode |
71fed2b99724c64c551aca54fb0fdfbcd004fbd4 | 43,349 | cpp | C++ | src/LoboFEM/LoboVolumtricMesh/LoboTetMesh.cpp | lrquad/LoboFEM2 | 4ac80bd7b6e347d5b1650f5241f7b7b53c9716f5 | [
"MIT"
] | 5 | 2020-05-09T12:33:08.000Z | 2021-12-17T08:07:29.000Z | src/LoboFEM/LoboVolumtricMesh/LoboTetMesh.cpp | FYTalon/LoboFEM2 | 4ac80bd7b6e347d5b1650f5241f7b7b53c9716f5 | [
"MIT"
] | null | null | null | src/LoboFEM/LoboVolumtricMesh/LoboTetMesh.cpp | FYTalon/LoboFEM2 | 4ac80bd7b6e347d5b1650f5241f7b7b53c9716f5 | [
"MIT"
] | 2 | 2021-02-11T10:00:37.000Z | 2021-04-18T02:08:11.000Z | #include "LoboTetMesh.h"
#include <igl/copyleft/tetgen/tetrahedralize.h>
#include <igl/unproject_onto_mesh.h>
#include <igl/project.h>
#include <igl/barycentric_coordinates.h>
#include <igl/in_element.h>
#include <igl/AABB.h>
#include <igl/per_vertex_normals.h>
#include <igl/tet_tet_adjacency.h>
// boost headers
#inc... | 34.322249 | 110 | 0.575815 | lrquad |
71ff73f8824cff9d6f5dce5f3a73ce85e3397a6e | 128 | cpp | C++ | tests/dummy.cpp | alcros33/cpp-project | 039184192ebbdf968ee0ab722e5eb46c0dbcf916 | [
"MIT"
] | null | null | null | tests/dummy.cpp | alcros33/cpp-project | 039184192ebbdf968ee0ab722e5eb46c0dbcf916 | [
"MIT"
] | null | null | null | tests/dummy.cpp | alcros33/cpp-project | 039184192ebbdf968ee0ab722e5eb46c0dbcf916 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "example.hpp"
TEST(Dummy, example) {
Dummy d = Dummy();
ASSERT_TRUE(d.doSomething());
}
| 14.222222 | 31 | 0.664063 | alcros33 |
71ff94ef4f7537126d5902cc0fb8fe08f6655bd5 | 2,931 | cpp | C++ | NOLF/Shared/CRC32.cpp | haekb/nolf1-modernizer | 25bac3d43c40a83b8e90201a70a14ef63b4240e7 | [
"Unlicense"
] | 38 | 2019-09-16T14:46:42.000Z | 2022-03-10T20:28:10.000Z | NOLF/Shared/CRC32.cpp | haekb/nolf1-modernizer | 25bac3d43c40a83b8e90201a70a14ef63b4240e7 | [
"Unlicense"
] | 39 | 2019-08-12T01:35:33.000Z | 2022-02-28T16:48:16.000Z | NOLF/Shared/CRC32.cpp | haekb/nolf1-modernizer | 25bac3d43c40a83b8e90201a70a14ef63b4240e7 | [
"Unlicense"
] | 6 | 2019-09-17T12:49:18.000Z | 2022-03-10T20:28:12.000Z | //////////////////////////////////////////////////////////////////////////////
// CRC-32 calculation routines
#include "stdafx.h"
#include "CRC32.h"
#include "CommonUtilities.h"
#include <stdio.h>
using namespace CRC32;
// Table management class
class CRC32Table
{
public:
CRC32Table();
enum { k_Polynomial = 0xedb... | 23.637097 | 88 | 0.676902 | haekb |
9c017e53b6f82297a10af1e859a3cb239922263c | 563 | cpp | C++ | src/classwork/03_assign/main.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-derekoko | 437f55150491c2b89eb4ef730ac73d55a6ed07a2 | [
"MIT"
] | null | null | null | src/classwork/03_assign/main.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-derekoko | 437f55150491c2b89eb4ef730ac73d55a6ed07a2 | [
"MIT"
] | null | null | null | src/classwork/03_assign/main.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-derekoko | 437f55150491c2b89eb4ef730ac73d55a6ed07a2 | [
"MIT"
] | null | null | null | //Write the include statement for decisions.h here
#include "decision.h"
//Write namespace using statements for cout and cin
using std::cout; using std::cin;
int main()
{
auto grade = 0;
cout << "Enter your letter grade here: ";
cin >> grade;
auto if_letter_grade = get_letter_grade_using_if(grade);
cout << "Y... | 23.458333 | 86 | 0.726465 | acc-cosc-1337-spring-2021 |
9c029200068009e7df5c1b9d22e6f7d7443d5d82 | 454 | cpp | C++ | test/tests.cpp | eacousineau/yaml_cpp_0_2_7 | 26c6ce550b8acc571239e7645c02ed250d045a60 | [
"MIT"
] | 1 | 2021-11-18T04:36:22.000Z | 2021-11-18T04:36:22.000Z | test/tests.cpp | eacousineau/yaml_cpp_0_2_7 | 26c6ce550b8acc571239e7645c02ed250d045a60 | [
"MIT"
] | null | null | null | test/tests.cpp | eacousineau/yaml_cpp_0_2_7 | 26c6ce550b8acc571239e7645c02ed250d045a60 | [
"MIT"
] | 1 | 2021-08-04T21:22:48.000Z | 2021-08-04T21:22:48.000Z | #include "tests.h"
#include "emittertests.h"
#include "parsertests.h"
#include "spectests.h"
#include "yaml-cpp-0.2.7/yaml.h"
#include <fstream>
#include <sstream>
#include <vector>
#include <iostream>
namespace Test
{
void RunAll()
{
bool passed = true;
if(!RunParserTests())
passed = false;
if(!RunEmit... | 15.133333 | 38 | 0.647577 | eacousineau |
9c09d126ee156e53a778fb7c41a68478328033a2 | 12,916 | cpp | C++ | meshers/blocky/voxel_blocky_library.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | meshers/blocky/voxel_blocky_library.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | meshers/blocky/voxel_blocky_library.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | #include "voxel_blocky_library.h"
#include "../../util/macros.h"
#include <core/math/geometry_2d.h>
#include <core/os/time.h>
#include <bitset>
namespace zylann::voxel {
VoxelBlockyLibrary::VoxelBlockyLibrary() {}
VoxelBlockyLibrary::~VoxelBlockyLibrary() {}
unsigned int VoxelBlockyLibrary::get_voxel_count() cons... | 29.623853 | 117 | 0.683958 | swimming92404 |
9c09d3a81b3c728ca9615bbb11287fe1eb1e8dec | 4,776 | hpp | C++ | include/ting/debug.hpp | bobsomers/haste | eb33c3862d79cc90185044e0fdb44c6ce01a89c6 | [
"MIT"
] | 1 | 2016-10-24T03:52:23.000Z | 2016-10-24T03:52:23.000Z | include/ting/debug.hpp | bobsomers/haste | eb33c3862d79cc90185044e0fdb44c6ce01a89c6 | [
"MIT"
] | null | null | null | include/ting/debug.hpp | bobsomers/haste | eb33c3862d79cc90185044e0fdb44c6ce01a89c6 | [
"MIT"
] | null | null | null | /* The MIT License:
Copyright (c) 2008-2010 Ivan Gagis
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, pu... | 27.136364 | 119 | 0.722362 | bobsomers |
9c0f676adf652392f977b568c755483ce38915ec | 8,981 | hpp | C++ | PolyEngine/Core/Src/Queue.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 1 | 2017-04-30T13:55:54.000Z | 2017-04-30T13:55:54.000Z | PolyEngine/Core/Src/Queue.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | null | null | null | PolyEngine/Core/Src/Queue.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 3 | 2017-11-22T16:37:26.000Z | 2019-04-24T17:47:58.000Z | #pragma once
#include "ObjectLifetimeHelpers.hpp"
#include "Defines.hpp"
#include "Allocator.hpp"
namespace Poly
{
/// <summary>
/// Queue is a vector based container thet allocates its memory in one, continous block and provides
/// API that is very fast when instering/popping from back/front.
/// <para>This sho... | 32.777372 | 119 | 0.623205 | MuniuDev |
9c11053054d76ea341ed1acaad18970ddaa5b1e8 | 1,119 | hpp | C++ | demos/text_detection_demo/include/image_grabber.hpp | lachinov/open_model_zoo | e458c1f0407d0303e36be4828bb963a67d6d050a | [
"Apache-2.0"
] | 5 | 2020-03-09T07:39:04.000Z | 2021-08-16T07:17:28.000Z | demos/text_detection_demo/include/image_grabber.hpp | lachinov/open_model_zoo | e458c1f0407d0303e36be4828bb963a67d6d050a | [
"Apache-2.0"
] | 8 | 2020-09-26T00:40:13.000Z | 2022-03-12T00:14:30.000Z | demos/text_detection_demo/include/image_grabber.hpp | lachinov/open_model_zoo | e458c1f0407d0303e36be4828bb963a67d6d050a | [
"Apache-2.0"
] | 4 | 2019-06-26T09:35:25.000Z | 2019-07-04T02:51:46.000Z | // Copyright (C) 2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <string>
#include <vector>
#include <opencv2/opencv.hpp>
class Grabber {
public:
virtual void GrabNextImage(cv::Mat *frame) = 0;
static std::unique_ptr<Grabber> make_grabber(const std:... | 20.722222 | 99 | 0.689902 | lachinov |
9c14921ea6f0958f0b06fc7058a5ba33d2e2adcd | 3,017 | hpp | C++ | hwlib/library/ports/hwlib-port-demos.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 1 | 2020-11-27T09:10:50.000Z | 2020-11-27T09:10:50.000Z | hwlib/library/ports/hwlib-port-demos.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 3 | 2019-03-21T12:14:06.000Z | 2019-05-08T19:30:46.000Z | hwlib/library/ports/hwlib-port-demos.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 1 | 2019-05-17T11:57:10.000Z | 2019-05-17T11:57:10.000Z | // ==========================================================================
//
// File : hwlib-demo.hpp
// Part of : C++ hwlib library for close-to-the-hardware OO programming
// Copyright : wouter@voti.nl 2017-2019
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICE... | 30.17 | 78 | 0.579383 | TheBlindMick |
9c17cfaa5b7760371df4bd11f3a1b98d9f9dcdf5 | 3,428 | cpp | C++ | src/engine/Sort.cpp | graue70/QLever | 2cc44a1bb595fae05e0897715a7bb88619a1b4d1 | [
"Apache-2.0"
] | 55 | 2018-03-21T22:26:11.000Z | 2021-09-06T18:19:54.000Z | src/engine/Sort.cpp | graue70/QLever | 2cc44a1bb595fae05e0897715a7bb88619a1b4d1 | [
"Apache-2.0"
] | 261 | 2018-03-13T11:27:44.000Z | 2021-09-13T15:27:01.000Z | src/engine/Sort.cpp | graue70/QLever | 2cc44a1bb595fae05e0897715a7bb88619a1b4d1 | [
"Apache-2.0"
] | 17 | 2018-03-30T13:47:32.000Z | 2021-08-13T16:14:39.000Z | // Copyright 2015, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)
#include "./Sort.h"
#include <sstream>
#include "CallFixedSize.h"
#include "QueryExecutionTree.h"
using std::string;
// ____________________________________________... | 38.088889 | 80 | 0.706243 | graue70 |
9c1b0ee9066dba2342104dd85a512b701eaafbc3 | 3,243 | cpp | C++ | libs/logger/logger_spdlog.cpp | artyom-yurin/iroha-archive | 1ad3a149d21d30e99c650a9a4bad88b2792d751d | [
"Apache-2.0"
] | 31 | 2019-04-17T19:32:05.000Z | 2022-02-05T01:35:02.000Z | libs/logger/logger_spdlog.cpp | artyom-yurin/iroha-archive | 1ad3a149d21d30e99c650a9a4bad88b2792d751d | [
"Apache-2.0"
] | 1 | 2021-06-01T23:38:54.000Z | 2021-06-01T23:38:54.000Z | libs/logger/logger_spdlog.cpp | artyom-yurin/iroha-archive | 1ad3a149d21d30e99c650a9a4bad88b2792d751d | [
"Apache-2.0"
] | 12 | 2019-06-03T10:31:31.000Z | 2021-12-13T12:17:15.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "logger/logger_spdlog.hpp"
#include <atomic>
#include <mutex>
#define SPDLOG_FMT_EXTERNAL
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
#include <boost/assert.hpp>
namespace {
... | 30.59434 | 80 | 0.64169 | artyom-yurin |
9c1b9ba04e5183a06f25ce91c5d072df78fea6d7 | 953 | cpp | C++ | raygame/FleeBehavior.cpp | BryceDeso/Pac-Like | 1658e70211470cc0c4b2d4e9a023cfa59d97859c | [
"MIT"
] | null | null | null | raygame/FleeBehavior.cpp | BryceDeso/Pac-Like | 1658e70211470cc0c4b2d4e9a023cfa59d97859c | [
"MIT"
] | null | null | null | raygame/FleeBehavior.cpp | BryceDeso/Pac-Like | 1658e70211470cc0c4b2d4e9a023cfa59d97859c | [
"MIT"
] | null | null | null | #include "FleeBehavior.h"
#include "Agent.h"
#include "Actor.h"
FleeBehavior::FleeBehavior()
{
m_target = nullptr;
setForceScale(1);
}
FleeBehavior::FleeBehavior(Actor* target, float fleeForce)
{
m_target = target;
setForceScale(fleeForce);
}
MathLibrary::Vector2 FleeBehavior::calculateForce(Agent* agent)
{
//F... | 25.756757 | 124 | 0.759706 | BryceDeso |
9c1bd6e0714438fb8cc7e78ed7edcc44101fd282 | 37,897 | cxx | C++ | PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtUnifiedAnalysisTask.cxx | gkornakov/AliPhysics | 98097b8e2f443d26e1ed236bbd63a0cdd6558231 | [
"BSD-3-Clause"
] | null | null | null | PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtUnifiedAnalysisTask.cxx | gkornakov/AliPhysics | 98097b8e2f443d26e1ed236bbd63a0cdd6558231 | [
"BSD-3-Clause"
] | null | null | null | PWGLF/SPECTRA/ChargedHadrons/dNdPt/AlidNdPtUnifiedAnalysisTask.cxx | gkornakov/AliPhysics | 98097b8e2f443d26e1ed236bbd63a0cdd6558231 | [
"BSD-3-Clause"
] | null | null | null | #include "TList.h"
#include "TTree.h"
#include "TH1F.h"
#include "TH3D.h"
#include "TCanvas.h"
#include "TF1.h"
#include "AliAnalysisTask.h"
#include "AliAnalysisManager.h"
#include "AliVEvent.h"
#include "AliVTrack.h"
#include "AliVVertex.h"
#include "AliESDEvent.h"
#include "AliESDInputHandler.h"
#include "AliESDt... | 45.22315 | 340 | 0.673536 | gkornakov |
9c1e9b551cb42782f5eaa00a44a82e53bc28e0eb | 163 | hpp | C++ | src/players/Skill.hpp | wagnrd/Pong | 0c50b22e0805b2ae19ff07d25859a6358217b377 | [
"MIT"
] | 4 | 2019-03-06T16:53:27.000Z | 2021-07-28T03:05:08.000Z | src/players/Skill.hpp | wagnrd/Pong | 0c50b22e0805b2ae19ff07d25859a6358217b377 | [
"MIT"
] | 1 | 2021-02-11T17:10:29.000Z | 2021-02-11T20:54:03.000Z | src/players/Skill.hpp | wagnrd/Pong | 0c50b22e0805b2ae19ff07d25859a6358217b377 | [
"MIT"
] | null | null | null | //
// Created by Denis Wagner on 2/26/19.
//
#ifndef PONG_SKILL_HPP
#define PONG_SKILL_HPP
enum class Skill {
EASY, MEDIUM, HARD
};
#endif //PONG_SKILL_HPP
| 12.538462 | 38 | 0.699387 | wagnrd |
9c2065139b3927a3daf70bfbc776b933f4596eae | 1,816 | cpp | C++ | benchmarks/raster_benchmarks.cpp | aseprite/raster | 9d0d902afc7babf60c99b85da9ef7dce034e1ff6 | [
"MIT"
] | 2 | 2016-06-21T23:41:50.000Z | 2022-01-13T06:59:23.000Z | benchmarks/raster_benchmarks.cpp | aseprite/raster | 9d0d902afc7babf60c99b85da9ef7dce034e1ff6 | [
"MIT"
] | null | null | null | benchmarks/raster_benchmarks.cpp | aseprite/raster | 9d0d902afc7babf60c99b85da9ef7dce034e1ff6 | [
"MIT"
] | null | null | null | // Raster Library
// Copyright (c) 2019 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include "raster/raster.h"
#include <benchmark/benchmark.h>
using namespace raster;
template<typename Pixel>
static void BM_RasterForEach(benchmark::State& s... | 33.018182 | 75 | 0.698238 | aseprite |
9c21cd3ea896906e67223972e9440cdc6a6ea48e | 1,354 | cpp | C++ | micrOS/micrOS_Power_Management.cpp | becker88/ArduOS | cc6a8edba4fed17be871acdbf801937e1d55a960 | [
"MIT"
] | 28 | 2018-01-03T13:09:27.000Z | 2022-01-18T02:16:06.000Z | micrOS/micrOS_Power_Management.cpp | becker88/ArduOS | cc6a8edba4fed17be871acdbf801937e1d55a960 | [
"MIT"
] | 2 | 2019-03-11T04:01:20.000Z | 2021-04-15T16:01:22.000Z | micrOS/micrOS_Power_Management.cpp | becker88/ArduOS | cc6a8edba4fed17be871acdbf801937e1d55a960 | [
"MIT"
] | 6 | 2018-03-20T13:49:10.000Z | 2021-07-12T13:14:34.000Z | #include "micrOS_Power_Management.h"
#include "micrOS_Graphics_Cache.h"
#include "IODisplay.h"
#include <Vcc.h>
#include <avr/sleep.h>
const float VccMin = 0.0;
const float VccMax = 5.0;
const float VccCorrection = 1.0 / 1.0;
Vcc vcc(VccCorrection);
int wakePin = 2;
int sleepStatus = 0;
int count = 0;
bool low_battery_... | 27.632653 | 69 | 0.72452 | becker88 |
9c276d1a30e1e41c873b28e967fb6bd821d07e23 | 775 | cpp | C++ | demos/palette/color_display.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | demos/palette/color_display.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | demos/palette/color_display.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | #include "color_display.hpp"
#include <cppurses/painter/color.hpp>
#include <cppurses/widget/border.hpp>
using namespace cppurses;
namespace palette {
Color_patch::Color_patch(Color value) {
this->set_color(value);
this->width_policy.maximum(5);
this->height_policy.maximum(2);
}
void Color_patch::set_c... | 22.794118 | 51 | 0.71871 | RyanDraves |
9c29f28ece472cf632d16b5e3980c53586424e32 | 1,422 | cpp | C++ | FastWindows.UI.Composition/ImplicitAnimationCollection.cpp | kennykerr/Minesweeper | 6f28abab141d80725beb746073d994833075b862 | [
"MIT"
] | 2 | 2019-06-13T16:29:07.000Z | 2019-12-17T18:06:59.000Z | FastWindows.UI.Composition/ImplicitAnimationCollection.cpp | kennykerr/Minesweeper | 6f28abab141d80725beb746073d994833075b862 | [
"MIT"
] | null | null | null | FastWindows.UI.Composition/ImplicitAnimationCollection.cpp | kennykerr/Minesweeper | 6f28abab141d80725beb746073d994833075b862 | [
"MIT"
] | 2 | 2019-09-21T13:15:58.000Z | 2020-08-30T06:48:59.000Z | #include "pch.h"
#include "ImplicitAnimationCollection.h"
#include "ImplicitAnimationCollection.g.cpp"
namespace winrt::FastWindows::UI::Composition::implementation
{
Windows::Foundation::Collections::IIterator<Windows::Foundation::Collections::IKeyValuePair<hstring, FastWindows::UI::Composition::ICompositionAnima... | 35.55 | 199 | 0.730661 | kennykerr |
9c2bf858635592c7d2087826b0a11606d4e887c9 | 1,603 | cpp | C++ | Plugins/Moneytalks/Source/Moneytalks/Private/IMoneytalks.cpp | BrUnOXaVIeRLeiTE/MoneytalksUE4 | cb1c2b70c8a1d9911b0109898a2257d42b1b8202 | [
"MIT"
] | 13 | 2017-02-09T01:42:53.000Z | 2021-12-17T12:17:38.000Z | Plugins/Moneytalks/Source/Moneytalks/Private/IMoneytalks.cpp | BrUnOXaVIeRLeiTE/MoneytalksUE4 | cb1c2b70c8a1d9911b0109898a2257d42b1b8202 | [
"MIT"
] | null | null | null | Plugins/Moneytalks/Source/Moneytalks/Private/IMoneytalks.cpp | BrUnOXaVIeRLeiTE/MoneytalksUE4 | cb1c2b70c8a1d9911b0109898a2257d42b1b8202 | [
"MIT"
] | 3 | 2017-05-15T02:21:09.000Z | 2021-11-07T04:49:48.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////... | 64.12 | 165 | 0.147224 | BrUnOXaVIeRLeiTE |
9c2dbcb613690995bbf32309ac6b8833529403f1 | 773 | cpp | C++ | ch16/ex16.16/main.cpp | zhang1990215/Cpp-Primer | 81e51869c02f2ba75e4fe491dee07eaedce2bbc9 | [
"CC0-1.0"
] | null | null | null | ch16/ex16.16/main.cpp | zhang1990215/Cpp-Primer | 81e51869c02f2ba75e4fe491dee07eaedce2bbc9 | [
"CC0-1.0"
] | null | null | null | ch16/ex16.16/main.cpp | zhang1990215/Cpp-Primer | 81e51869c02f2ba75e4fe491dee07eaedce2bbc9 | [
"CC0-1.0"
] | null | null | null | /***************************************************************************
* @file main.cpp
* @author Alan.W
* @date 02 Feb 2014
* @remark This code is for the exercises from C++ Primer 5th Edition
* @note
***************************************************************************/
//
... | 21.472222 | 77 | 0.417853 | zhang1990215 |
9c2de83c209e61f19f8342a071a99d6ae2b061fe | 43,646 | cpp | C++ | hyperCore/source/ResourceProperty.cpp | sadcatsoft/hyperui | f26242a9034ad1e0abf54bd7691fe48809262f5b | [
"MIT"
] | 2 | 2019-05-17T16:16:21.000Z | 2019-08-21T20:18:22.000Z | hyperCore/source/ResourceProperty.cpp | sadcatsoft/hyperui | f26242a9034ad1e0abf54bd7691fe48809262f5b | [
"MIT"
] | 1 | 2018-10-18T22:05:12.000Z | 2018-10-18T22:05:12.000Z | hyperCore/source/ResourceProperty.cpp | sadcatsoft/hyperui | f26242a9034ad1e0abf54bd7691fe48809262f5b | [
"MIT"
] | null | null | null | #include "stdafx.h"
namespace HyperCore
{
template < class KEY_TYPE, class STORAGE_TYPE >
const CHAR_TYPE* TResourceProperty<KEY_TYPE, STORAGE_TYPE>::mapPropertyKeyToString(const PropertyMapper* pMapper, PropertyType eProp) { return pMapper->getPropertyString(eProp); }
template < class KEY_TYPE, class STORAGE_... | 31.109052 | 204 | 0.619415 | sadcatsoft |
9c2e5d667549205a66fd9e377f812b8448e665ab | 437 | cpp | C++ | 1SST/3LW/3task11.cpp | AVAtarMod/University | 3c784a1e109b7a6f6ea495278ec3dc126258625a | [
"BSD-3-Clause"
] | 1 | 2021-07-31T06:55:08.000Z | 2021-07-31T06:55:08.000Z | 1SST/3LW/3task11.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | 1 | 2020-11-25T12:00:11.000Z | 2021-01-13T08:51:52.000Z | 1SST/3LW/3task11.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | null | null | null | //все числа x, y и z равны между собой;
#include <iostream>
int main(){
using namespace std;
int x,y,z;
printf("\n\nВведите х,у,z через пробел.Пример: 1 2 3\n");
scanf("%d %d %d",&x,&y,&z);
(x == y && x == z) ? printf("\nTrue\n\n") : printf("\nFalse\n\n");
/*
После ввода данных проверка ... | 24.277778 | 81 | 0.590389 | AVAtarMod |
9c31dbb2a4666bc51a6a245a871a5a1b3e7d635e | 4,570 | cpp | C++ | src/Encryption/HashFunctions/MD5HashFunction.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | 1 | 2019-04-29T05:31:32.000Z | 2019-04-29T05:31:32.000Z | src/Encryption/HashFunctions/MD5HashFunction.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | src/Encryption/HashFunctions/MD5HashFunction.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | /*
* MD5Hash.cpp
*
* Created on: 15.12.2014
* Author: Darius Malysiak
*/
#include "MD5HashFunction.h"
namespace Lazarus {
MD5HashFunction::MD5HashFunction() {
#ifdef USETOMCRYPT
m_hashsize = 16;
/* register hash function*/
if (register_hash(&md5_desc) == -1)
{
printf("Error registering MD5.\n");
... | 17.442748 | 90 | 0.7 | dmalysiak |
9c355d6b2287e92a051f8db3afd009456ad8f1e5 | 1,425 | hpp | C++ | external/boost_1_60_0/qsboost/fusion/adapted/mpl/detail/end_impl.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/fusion/adapted/mpl/detail/end_impl.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/fusion/adapted/mpl/detail/end_impl.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005-2006 Dan Marsden
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)
... | 29.6875 | 81 | 0.532632 | wouterboomsma |
9c36a0da746f83bd3c3ea8c00372d3ca6c37f6a4 | 529 | hpp | C++ | cpp/src/samchon/templates/external/base/ExternalSystemArrayBase.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 111 | 2016-04-08T14:10:15.000Z | 2020-12-21T12:25:10.000Z | cpp/src/samchon/templates/external/base/ExternalSystemArrayBase.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 16 | 2016-05-27T05:41:56.000Z | 2020-06-23T14:55:00.000Z | cpp/src/samchon/templates/external/base/ExternalSystemArrayBase.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 49 | 2016-10-27T09:45:35.000Z | 2020-12-21T12:25:13.000Z | #pragma once
#include <samchon/API.hpp>
#include <vector>
#include <memory>
#include <samchon/library/RWMutex.hpp>
namespace samchon
{
namespace templates
{
namespace external
{
class ExternalSystem;
namespace base
{
class ExternalSystemArrayBase
{
private:
library::RWMutex mtx;
public:
virtual auto _Get_c... | 16.53125 | 89 | 0.706994 | wydingez |
9c36cf20fd1539132eba20396aeec539b60100d0 | 2,781 | cpp | C++ | CLR/Tools/StubWinHal/minheap.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | CLR/Tools/StubWinHal/minheap.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | CLR/Tools/StubWinHal/minheap.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... | 27.534653 | 201 | 0.502697 | PervasiveDigital |
9c3800e277a4bbdf41260e9af7f719fe37d533ac | 2,686 | hpp | C++ | engine/runtime/rendering/generator/subdivide_path.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | engine/runtime/rendering/generator/subdivide_path.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | engine/runtime/rendering/generator/subdivide_path.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #ifndef GENERATOR_SUBDIVIDEPATH_HPP
#define GENERATOR_SUBDIVIDEPATH_HPP
#include "edge.hpp"
#include "path_vertex.hpp"
#include "shape_vertex.hpp"
#include "utils.hpp"
namespace generator
{
template <typename path_t>
class subdivide_path_t
{
public:
class edges_t
{
public:
bool done() const noexcept
{
retu... | 18.915493 | 95 | 0.679449 | ValtoForks |
9c39130d30f6200f241179a1f9a2b800adea4eb0 | 42,373 | cpp | C++ | lib/DxcSupport/HLSLOptions.cpp | troughton/DirectXShaderCompiler | 794ba5da1ad6bafe296455ca30117d4ccd05b689 | [
"NCSA"
] | null | null | null | lib/DxcSupport/HLSLOptions.cpp | troughton/DirectXShaderCompiler | 794ba5da1ad6bafe296455ca30117d4ccd05b689 | [
"NCSA"
] | null | null | null | lib/DxcSupport/HLSLOptions.cpp | troughton/DirectXShaderCompiler | 794ba5da1ad6bafe296455ca30117d4ccd05b689 | [
"NCSA"
] | null | null | null | //===--- HLSLOptions.cpp - Driver Options Table ---------------------------===//
///////////////////////////////////////////////////////////////////////////////
// //
// HLSLOptions.cpp //... | 40.087985 | 138 | 0.688788 | troughton |
9c3ea8e82a03966dca6a4657a7c6b1f65821c8b9 | 10,522 | hpp | C++ | src/blas/impl/KokkosBlas1_abs_spec.hpp | purdue-aalp/kokkos-kernels | a86b60232950b62a84514c161b6551e516b6565f | [
"BSD-3-Clause"
] | null | null | null | src/blas/impl/KokkosBlas1_abs_spec.hpp | purdue-aalp/kokkos-kernels | a86b60232950b62a84514c161b6551e516b6565f | [
"BSD-3-Clause"
] | 1 | 2021-12-08T14:31:15.000Z | 2021-12-08T14:31:15.000Z | src/blas/impl/KokkosBlas1_abs_spec.hpp | purdue-aalp/kokkos-kernels | a86b60232950b62a84514c161b6551e516b6565f | [
"BSD-3-Clause"
] | null | null | null | /*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... | 41.588933 | 114 | 0.674777 | purdue-aalp |
9c407f068bcb5daa7e3b8283fab3f8b652ae3489 | 532 | cpp | C++ | AIC/AIC'20 - Level 2 Training/Week #1.2/S.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 2 Training/Week #1.2/S.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 2 Training/Week #1.2/S.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://vjudge.net/contest/416254#problem/S
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
int main ()
{
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
ll a, b, cnt = 0;
cin >> a >> b;
for (ll ... | 20.461538 | 61 | 0.466165 | MaGnsio |
9c4ab7312a9d7e6ebfdb9b03b05bcbfca3824b9b | 443 | cpp | C++ | ArithmeticSlices.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | 3 | 2017-11-27T03:01:50.000Z | 2021-03-13T08:14:00.000Z | ArithmeticSlices.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | ArithmeticSlices.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | class Solution {
public:
int numberOfArithmeticSlices(vector<int>& A) {
if (A.size() <= 2) return 0;
int ans = 0;
int j = 0;
int n = A.size();
for (int i = 0; i < n - 1; i++) {
j = max(j, i + 1);
while (j + 1 < n && ... | 27.6875 | 73 | 0.325056 | yplusplus |
9c4dc17be0816f3c7c3dc675befb2febf3926f97 | 1,325 | cpp | C++ | test/ssc_test/cmod_trough_physical_iph_test.cpp | ajcressman/ssc | e99db2a67e7a5808026cb28d56c03e32a463557d | [
"BSD-3-Clause"
] | null | null | null | test/ssc_test/cmod_trough_physical_iph_test.cpp | ajcressman/ssc | e99db2a67e7a5808026cb28d56c03e32a463557d | [
"BSD-3-Clause"
] | null | null | null | test/ssc_test/cmod_trough_physical_iph_test.cpp | ajcressman/ssc | e99db2a67e7a5808026cb28d56c03e32a463557d | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include "trough_physical_iph_defaults.h"
#include "csp_common_test.h"
#include "vs_google_test_explorer_namespace.h"
namespace csp_trough {}
using namespace csp_trough;
//========Tests===================================================================================
NAMESPACE_TEST(csp_troug... | 50.961538 | 108 | 0.729811 | ajcressman |
9c51ac26148c6edd876bc5d1c27d536f0db9283a | 718 | cpp | C++ | NorthstarDedicatedTest/voicebasic.cpp | R2Northstar-A11y/NorthstarLauncher | ef459a40afca3a00b432f93e0c28179bfed937db | [
"MIT"
] | 1 | 2022-01-23T18:48:32.000Z | 2022-01-23T18:48:32.000Z | NorthstarDedicatedTest/voicebasic.cpp | R2Northstar-A11y/NorthstarLauncher | ef459a40afca3a00b432f93e0c28179bfed937db | [
"MIT"
] | null | null | null | NorthstarDedicatedTest/voicebasic.cpp | R2Northstar-A11y/NorthstarLauncher | ef459a40afca3a00b432f93e0c28179bfed937db | [
"MIT"
] | null | null | null | #include "pch.h"
#include "voicebasic.h"
void BasicVoice::speakText(char* input)
{
spdlog::info("Saying \"{}\"", input);
//if (SUCCEEDED(hr)) {
size_t size = strlen(input) + 1;
wchar_t* wtext = new wchar_t[size];
size_t outSize;
mbstowcs_s(&outSize, wtext, size, input, size - 1);
LPWSTR ptr = wtext;
hr ... | 19.405405 | 68 | 0.672702 | R2Northstar-A11y |
9c52d7825f65532eba7f21432659e7ea44a843a3 | 17,534 | cc | C++ | test/regression/aarch64/instructions/store.cc | ABagdia/SimEng | 63b52fbb6e07c75100e03a153191b9c548f537c5 | [
"Apache-2.0"
] | 12 | 2021-08-14T10:16:36.000Z | 2022-01-30T11:31:24.000Z | test/regression/aarch64/instructions/store.cc | ABagdia/SimEng | 63b52fbb6e07c75100e03a153191b9c548f537c5 | [
"Apache-2.0"
] | 25 | 2021-08-13T21:45:49.000Z | 2022-03-24T17:41:08.000Z | test/regression/aarch64/instructions/store.cc | ABagdia/SimEng | 63b52fbb6e07c75100e03a153191b9c548f537c5 | [
"Apache-2.0"
] | 2 | 2021-09-07T06:31:51.000Z | 2022-01-06T15:39:44.000Z | #include "AArch64RegressionTest.hh"
namespace {
using InstStore = AArch64RegressionTest;
TEST_P(InstStore, stlr) {
// stlrb
RUN_AARCH64(R"(
mov w0, 0xAB
mov w1, 0x12
mov w2, 0xCD
mov w3, 0x34
sub sp, sp, #4
stlrb w0, [sp]
add sp, sp, #1
stlrb w1, [sp]
add sp, sp, #1
stlrb ... | 31.199288 | 80 | 0.627181 | ABagdia |
9c53b231d491f2b471b508e5f0a55b16bcc992f5 | 28,530 | cpp | C++ | Some awesome Code basics and plan by Mitul.cpp | Mit382/Mitul-s-Competitive-Programming-March-August | 3b0d9b3d018444584020e37b892021f7e9ec984d | [
"MIT"
] | 1 | 2021-04-23T16:53:35.000Z | 2021-04-23T16:53:35.000Z | Some awesome Code basics and plan by Mitul.cpp | Mit382/Mitul-s-Competitive-Programming-March-August | 3b0d9b3d018444584020e37b892021f7e9ec984d | [
"MIT"
] | null | null | null | Some awesome Code basics and plan by Mitul.cpp | Mit382/Mitul-s-Competitive-Programming-March-August | 3b0d9b3d018444584020e37b892021f7e9ec984d | [
"MIT"
] | 1 | 2021-03-27T19:56:19.000Z | 2021-03-27T19:56:19.000Z | 1)Let’s learn to code for negative and non-negative number detection
We know that if x is the number and x>0 , it is positive and if x<0 is a negative . then the code is :
#include<stdio.h>
int main(){
int num;
printf("Enter an integer: ");
scanf("%d",&num);
if(num<0){
printf("Number is... | 21.196137 | 278 | 0.583211 | Mit382 |
9c5d0ca40b7a883feba88d4b22f4e05a3b17395b | 5,851 | cpp | C++ | src/rgbaselect.cpp | holocronweaver/accidental-noise-library-stable | 9b781c8a33a1ebdbd64ffb8ef0b770c01a8e47f8 | [
"MIT"
] | null | null | null | src/rgbaselect.cpp | holocronweaver/accidental-noise-library-stable | 9b781c8a33a1ebdbd64ffb8ef0b770c01a8e47f8 | [
"MIT"
] | null | null | null | src/rgbaselect.cpp | holocronweaver/accidental-noise-library-stable | 9b781c8a33a1ebdbd64ffb8ef0b770c01a8e47f8 | [
"MIT"
] | null | null | null | #include "rgbaselect.h"
#include "utility.h"
namespace anl
{
CRGBASelect::CRGBASelect() : m_low(0,0,0,0), m_high(0,0,0,0), m_control(0), m_threshold(0), m_falloff(0){}
CRGBASelect::CRGBASelect(double thresh, double fall) : m_low(0,0,0,0), m_high(0,0,0,0), m_control(0), m_threshold(thresh), m_falloff(fall... | 29.852041 | 145 | 0.453939 | holocronweaver |
9c5e7160457a22b7c012a9805f521a95e4206199 | 5,998 | hpp | C++ | Libraries/Serialization/SerializationTraits.hpp | DaveTheGameDev/PlasmaEngine | bb5013e7ba1731b2269f4e4aea1109870ab82092 | [
"MIT"
] | null | null | null | Libraries/Serialization/SerializationTraits.hpp | DaveTheGameDev/PlasmaEngine | bb5013e7ba1731b2269f4e4aea1109870ab82092 | [
"MIT"
] | null | null | null | Libraries/Serialization/SerializationTraits.hpp | DaveTheGameDev/PlasmaEngine | bb5013e7ba1731b2269f4e4aea1109870ab82092 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
#include "Serialization/Serialization.hpp"
namespace Plasma
{
class Serializer;
namespace Serialization
{
template <typename type>
struct Trait
{
enum
{
Type = StructureType::Object
};
static inline cstr TypeName()
{
return "Object";
}
};
#define ... | 49.163934 | 120 | 0.273925 | DaveTheGameDev |
9c6293483bd9d4215613b2df58a92ee2afda1c5f | 1,319 | cpp | C++ | Engine_Core/source/ProfilerData.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | 2 | 2016-04-01T21:10:33.000Z | 2018-02-26T19:36:56.000Z | Engine_Core/source/ProfilerData.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | 1 | 2017-04-05T01:33:08.000Z | 2017-04-05T01:33:08.000Z | Engine_Core/source/ProfilerData.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | null | null | null | #include "ProfilerData.h"
#include "Profiler.h"
#include <algorithm>
#include <glm/glm.hpp>
FSectionStatistics::FSectionStatistics(FCategoryNameIdentifier ParentIdentifier, FCategoryNameIdentifier Identifier) : ParentIdentifier(ParentIdentifier), Identifier(Identifier)
{
Samples.Resize(kMaxSampleSize);
}
void FSecti... | 23.140351 | 177 | 0.751327 | subr3v |
9c65cc13201269e1fa67074390dc9a5b7ceb3d10 | 3,229 | cpp | C++ | tuw_voronoi_graph/src/dxf_to_graph_node.cpp | sgermanserrano/tuw_multi_robot | 97fba5f6d896f20d95445dfa719b4512296dffc0 | [
"BSD-3-Clause"
] | 146 | 2018-07-21T09:50:13.000Z | 2022-03-31T22:49:01.000Z | tuw_voronoi_graph/src/dxf_to_graph_node.cpp | sgermanserrano/tuw_multi_robot | 97fba5f6d896f20d95445dfa719b4512296dffc0 | [
"BSD-3-Clause"
] | 34 | 2018-09-28T09:54:23.000Z | 2022-03-10T08:05:01.000Z | tuw_voronoi_graph/src/dxf_to_graph_node.cpp | sgermanserrano/tuw_multi_robot | 97fba5f6d896f20d95445dfa719b4512296dffc0 | [
"BSD-3-Clause"
] | 79 | 2018-01-27T23:25:26.000Z | 2022-03-31T22:51:36.000Z | /*
* Copyright (c) 2017, <copyright holder> <email>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this... | 42.486842 | 150 | 0.659647 | sgermanserrano |
9c6867263dfa20848e477f29de9e8e1c3ec7e34d | 1,669 | cpp | C++ | nd-coursework/books/cpp/BeginningC++17/Chapter04/Examples/Ex4_05/Ex4_05.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/BeginningC++17/Chapter04/Examples/Ex4_05/Ex4_05.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/BeginningC++17/Chapter04/Examples/Ex4_05/Ex4_05.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Ivor Horton and Peter Van Weert. Some rights reserved.
// Licensed under the Freeware License. See the LICENSE file in the project root for more information.
//
// Name: Ex4_05.cpp
// Author: cdrisko
// Date: 04/25/2020-08:56:00
// Description: Combining logical operators for load approval
#inclu... | 34.770833 | 102 | 0.55722 | crdrisko |
9c6f34c8d9098f60131c762fcf16f3bf2052d153 | 1,033 | cpp | C++ | lab06_recursionExercises/permuteString.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | lab06_recursionExercises/permuteString.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | lab06_recursionExercises/permuteString.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | /*
* @assignment: EECS_268 Lab5.2
* @author: permuteString.cpp
* @author: Jack Gould
* @brief: Implementation file for the permuteString class, which will print all possible permutations of a passed in string.
* Assumes string contains all unique characters. If this is not the case, duplicates will occur.
* @d... | 25.825 | 125 | 0.644724 | JackNGould |
9c702c0758e958d19345aa0d966cd1668a6085ea | 6,472 | cxx | C++ | cgv/gui/gui_group.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | cgv/gui/gui_group.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | cgv/gui/gui_group.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | #include "gui_group.h"
#include "gui_driver.h"
#include "provider.h"
#include <cgv/base/named.h>
#include <algorithm>
namespace cgv {
namespace gui {
// construct from name
gui_group::gui_group(const std::string& name) : cgv::base::group(name) {}
// access to protected provider method
void gui_group::s... | 27.079498 | 197 | 0.714153 | MarioHenze |
9c777a2c11a562ec73025486fe587a50a8609a52 | 827 | hpp | C++ | octotiger/node_registry.hpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 35 | 2016-11-17T22:35:11.000Z | 2022-01-24T19:07:36.000Z | octotiger/node_registry.hpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 123 | 2016-11-17T21:29:25.000Z | 2022-03-03T21:40:04.000Z | octotiger/node_registry.hpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 10 | 2018-11-28T18:17:42.000Z | 2022-01-25T12:52:37.000Z | // Copyright (c) 2019 AUTHORS
//
// 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)
#ifndef ___NODE_REGISTRY_H
#define ___NODE_REGISTRY_H
#include "octotiger/defs.hpp"
#include "octotiger/node_server.hpp"
#inclu... | 17.978261 | 80 | 0.750907 | srinivasyadav18 |
9c7e7b437b0cf641bd8b3009c669fbea05477e7d | 8,625 | cpp | C++ | mitobrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | mitobrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | mitobrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | /******************************************************/
/* */
/* mitobrevno.cpp - event logging */
/* */
/******************************************************/
/* Copyright 2020 Pierre Abbat.
* ... | 24.159664 | 102 | 0.671536 | phma |
9c815ee123b80f1c8e9a79643e5e384835548b72 | 450 | cpp | C++ | C++/wiggle-sort.cpp | xenron/sandbox-dev-lintcode | 114145723af43eafc84ff602ad3ac7b353a9fc38 | [
"MIT"
] | 695 | 2015-04-18T16:11:56.000Z | 2022-03-11T13:28:44.000Z | C++/wiggle-sort.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 4 | 2015-07-04T13:07:35.000Z | 2020-08-11T11:32:29.000Z | C++/wiggle-sort.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 338 | 2015-04-28T04:39:03.000Z | 2022-03-16T03:00:15.000Z | // Time: O(n)
// Space: O(1)
class Solution {
public:
/**
* @param nums a list of integer
* @return void
*/
void wiggleSort(vector<int>& nums) {
for (int i = 1; i < nums.size(); ++i) {
if (((i % 2) && nums[i] < nums[i - 1]) ||
(!(i % 2) && nums[i] > nums[i ... | 22.5 | 54 | 0.386667 | xenron |
9c85a8a930568f9dcb5d3e1e7c7a1c7beba8d729 | 3,236 | cpp | C++ | test/test_global.cpp | kohei101/multidimalgorithm | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | 3 | 2018-10-08T16:30:06.000Z | 2018-10-24T05:05:11.000Z | test/test_global.cpp | kohei101/mdds | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | null | null | null | test/test_global.cpp | kohei101/mdds | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* Copyright (c) 2021 Kohei Yoshida
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated document... | 30.819048 | 114 | 0.618356 | kohei101 |
9c8b911e58150a8573ebc0a5fb27e635a60c1ad4 | 5,130 | cpp | C++ | clib/xdag_runtime.cpp | swordlet/goXdagWallet | 4b6033c9624a21b4cacfe8381809bee5a1209314 | [
"MIT"
] | 2 | 2021-06-30T05:29:00.000Z | 2021-07-01T05:25:34.000Z | clib/xdag_runtime.cpp | swordlet/goXdagWallet | 4b6033c9624a21b4cacfe8381809bee5a1209314 | [
"MIT"
] | null | null | null | clib/xdag_runtime.cpp | swordlet/goXdagWallet | 4b6033c9624a21b4cacfe8381809bee5a1209314 | [
"MIT"
] | 1 | 2021-07-01T05:25:37.000Z | 2021-07-01T05:25:37.000Z | //
// Created by swordlet on 2021/3/24.
//
#if defined(_WIN32) || defined(_WIN64)
#else
#include <unistd.h>
#endif
#include <cstdlib>
#include <cstring>
#include "xdag_runtime.h"
////------------------------------------
extern pthread_t g_client_thread;
static int g_client_init_done = 0;
////---- Exporting functions w... | 19.358491 | 97 | 0.531774 | swordlet |
9c8c61cf2b49a86eb3a450a7567ec1f6191c415b | 2,947 | cpp | C++ | common/time_util.cpp | xmoeproject/VivienneVMM | f058777d86cc82e6f3e30dd4ba2ca5c32e8cf73b | [
"MIT"
] | 1 | 2021-11-21T15:50:57.000Z | 2021-11-21T15:50:57.000Z | common/time_util.cpp | xmoeproject/VivienneVMM | f058777d86cc82e6f3e30dd4ba2ca5c32e8cf73b | [
"MIT"
] | null | null | null | common/time_util.cpp | xmoeproject/VivienneVMM | f058777d86cc82e6f3e30dd4ba2ca5c32e8cf73b | [
"MIT"
] | null | null | null | /*++
Module Name:
time_util.cpp
Abstract:
This module implements time utilities.
Author:
changeofpace
Environment:
Kernel and user mode.
--*/
#include "time_util.h"
#ifdef _KERNEL_MODE
#include "..\VivienneVMM\log_util.h"
#else
#include <cstdio>
#endif
//====================================... | 17.233918 | 79 | 0.592128 | xmoeproject |
9c8c9840fdfae7816b8cc5fa08258cf831f4cb02 | 989 | cpp | C++ | 歷屆試題/1368/1368.cpp | LuckyPigeon/CPE_Previous_Questions | 14005407c52922dea28e861e8f591d74da3c3df5 | [
"MIT"
] | 26 | 2020-10-08T02:44:20.000Z | 2022-03-25T09:59:31.000Z | 歷屆試題/1368/1368.cpp | LuckyPigeon/CPE_Previous_Questions | 14005407c52922dea28e861e8f591d74da3c3df5 | [
"MIT"
] | 61 | 2020-10-08T17:03:53.000Z | 2021-06-17T01:05:51.000Z | 歷屆試題/1368/1368.cpp | LuckyPigeon/CPE_Previous_Questions | 14005407c52922dea28e861e8f591d74da3c3df5 | [
"MIT"
] | 27 | 2020-10-04T05:30:23.000Z | 2021-08-21T15:39:58.000Z | //uva1368
#include <bits/stdc++.h>
using namespace std;
int main() {
int cas, m, n, err;
int a[4][1001], temp;
string s, s1 = {'A', 'C', 'G', 'T'};
scanf("%d", &cas);
while (cas--) {
scanf("%d %d", &m, &n);
getchar();
memset(a, 0, sizeof(a));
for (int i = 0; i<m; i... | 24.121951 | 69 | 0.286148 | LuckyPigeon |
9c8d92c1bbb0e06fdc073ff54311e4ad2bbbbf1f | 1,702 | cc | C++ | resonance_audio/dsp/occlusion_calculator.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 396 | 2018-03-14T09:55:52.000Z | 2022-03-27T14:58:38.000Z | resonance_audio/dsp/occlusion_calculator.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 46 | 2018-04-18T17:14:29.000Z | 2022-02-19T21:35:57.000Z | resonance_audio/dsp/occlusion_calculator.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 96 | 2018-03-14T17:20:50.000Z | 2022-03-03T01:12:37.000Z | /*
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 32.113208 | 79 | 0.683901 | seba10000 |
9c8f265ac3e3ee9e88cdcf743043bedcb07da2d7 | 129 | hxx | C++ | src/Providers/UNIXProviders/CompatibleProduct/UNIX_CompatibleProduct_HPUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/CompatibleProduct/UNIX_CompatibleProduct_HPUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/CompatibleProduct/UNIX_CompatibleProduct_HPUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_HPUX
#ifndef __UNIX_COMPATIBLEPRODUCT_PRIVATE_H
#define __UNIX_COMPATIBLEPRODUCT_PRIVATE_H
#endif
#endif
| 10.75 | 42 | 0.852713 | brunolauze |
9c9015883bb92a069c1d59de23f7c6519382a0c3 | 1,988 | cpp | C++ | cpp/monoalphabetic_cipher.cpp | DK770/hacktoberfest2020-5 | 536057db6eede58b7108fc22e5709d4b94875049 | [
"MIT"
] | 71 | 2020-10-06T05:53:59.000Z | 2021-11-27T03:14:42.000Z | cpp/monoalphabetic_cipher.cpp | DK770/hacktoberfest2020-5 | 536057db6eede58b7108fc22e5709d4b94875049 | [
"MIT"
] | 92 | 2020-10-05T19:18:14.000Z | 2021-10-09T04:35:16.000Z | cpp/monoalphabetic_cipher.cpp | DK770/hacktoberfest2020-5 | 536057db6eede58b7108fc22e5709d4b94875049 | [
"MIT"
] | 572 | 2020-10-05T20:11:28.000Z | 2021-10-10T16:28:29.000Z | // CPP program for encoding the string using classical cipher
#include<bits/stdc++.h>
using namespace std;
// Function generates the encoded text
string encoder(string key)
{
string encoded = "";
// This array represents the
// 26 letters of alphabets
bool arr[26] = {0};
// This loop inserts the keywo... | 20.285714 | 68 | 0.564386 | DK770 |
9c91126994c70468b83eeeaf2d2663115bca673c | 15,957 | cpp | C++ | test_rmw_implementation/test/test_client.cpp | iuhilnehc-ynos/rmw_implementation | 55b893da0d844cf324cbcf9aee259bb2c41e1b44 | [
"Apache-2.0"
] | null | null | null | test_rmw_implementation/test/test_client.cpp | iuhilnehc-ynos/rmw_implementation | 55b893da0d844cf324cbcf9aee259bb2c41e1b44 | [
"Apache-2.0"
] | null | null | null | test_rmw_implementation/test/test_client.cpp | iuhilnehc-ynos/rmw_implementation | 55b893da0d844cf324cbcf9aee259bb2c41e1b44 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Open Source Robotics Foundation, 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 appli... | 38.543478 | 98 | 0.769568 | iuhilnehc-ynos |
9c941300006de8a848751df2b4077a3c01ef2d98 | 446 | cpp | C++ | Chapter4/pizza2.cpp | enotcode/Informatics | 581be994a4aed7b18c8e359eb5240eca04b9b573 | [
"MIT"
] | null | null | null | Chapter4/pizza2.cpp | enotcode/Informatics | 581be994a4aed7b18c8e359eb5240eca04b9b573 | [
"MIT"
] | null | null | null | Chapter4/pizza2.cpp | enotcode/Informatics | 581be994a4aed7b18c8e359eb5240eca04b9b573 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct pizza {
char name[25];
double d;
double mass;
void print() {
cout << name << "\n" << d << "\n" << mass << endl;
}
};
int main() {
pizza *ps = new pizza;
cout << "Enter company name:";
cin.getline(ps->name, 25);
cout << "Ent... | 16.518519 | 58 | 0.508969 | enotcode |
9c9ad8bd75a84417479b9f4c1bcd47b383bdb493 | 2,479 | cc | C++ | src/165_compare-version-numbers.cc | q191201771/yoko_leetcode | a29b163169f409856e9c9808890bcb25ca976f78 | [
"MIT"
] | 2 | 2018-07-28T06:11:30.000Z | 2019-01-15T15:16:54.000Z | src/165_compare-version-numbers.cc | q191201771/yoko_leetcode | a29b163169f409856e9c9808890bcb25ca976f78 | [
"MIT"
] | null | null | null | src/165_compare-version-numbers.cc | q191201771/yoko_leetcode | a29b163169f409856e9c9808890bcb25ca976f78 | [
"MIT"
] | null | null | null | // Compare two version numbers version1 and version2.
// If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0.
//
// You may assume that the version strings are non-empty and contain only digits and the . character.
// The . character does not represent a decimal point and is used to sep... | 27.241758 | 121 | 0.509883 | q191201771 |
9c9f80eabce58eb71e853f5960e08a9de216c4b2 | 4,913 | hpp | C++ | src/telnet_manager.hpp | digitalcraig/EtherTerm | 4f994bb9ecbb48fbb77875d4d655b65a8b257d42 | [
"Zlib"
] | 106 | 2015-02-01T18:01:48.000Z | 2022-02-10T04:51:11.000Z | src/telnet_manager.hpp | digitalcraig/EtherTerm | 4f994bb9ecbb48fbb77875d4d655b65a8b257d42 | [
"Zlib"
] | 60 | 2015-02-01T18:00:39.000Z | 2022-01-17T17:27:34.000Z | src/telnet_manager.hpp | digitalcraig/EtherTerm | 4f994bb9ecbb48fbb77875d4d655b65a8b257d42 | [
"Zlib"
] | 16 | 2015-02-02T00:00:35.000Z | 2021-08-17T01:42:58.000Z | #ifndef __TELNET_MANAGER_H_
#define __TELNET_MANAGER_H_
#include <algorithm>
#include <string>
#include <memory>
#include <vector>
// Forward Declaration
class Session;
typedef std::shared_ptr<Session> session_ptr;
typedef std::weak_ptr<Session> session_weak_ptr;
/**
* @class TelnetManager
* @author... | 24.321782 | 81 | 0.574598 | digitalcraig |
9c9ff9b45bbc7145a0bc7612a96967f99d2fc63f | 10,668 | cpp | C++ | demos/SouiEditor/ResManger.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 33 | 2018-07-04T09:38:12.000Z | 2021-06-19T06:11:45.000Z | demos/SouiEditor/ResManger.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | null | null | null | demos/SouiEditor/ResManger.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 13 | 2018-07-01T01:55:17.000Z | 2021-08-03T10:55:45.000Z | #include "stdafx.h"
#include "ResManger.h"
#include "CDebug.h"
#include "helpapi.h"
#include <vector>
ResManger::ResManger()
{
}
ResManger::~ResManger()
{
}
void ResManger::LoadUIResFromFile(SStringT strPath)
{
m_strProPath = strPath.Mid(0, strPath.ReverseFind(_T('\\')));
m_strUIResFile = strPath;
LoadUIRes();... | 22.36478 | 95 | 0.678103 | wzaen |
9ca6b8476a39a309cf6c680fb916781f2c9ad47d | 592 | cpp | C++ | C++/172. Factorial Trailing Zeroes.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | 3 | 2018-07-28T15:36:18.000Z | 2020-03-17T01:26:22.000Z | C++/172. Factorial Trailing Zeroes.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | null | null | null | C++/172. Factorial Trailing Zeroes.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | null | null | null | //
// Created by 王阳 on 2018/8/12.
//
#include "header.h"
class Solution {
public:
// 计算包含的2和5组成的pair的个数就可以了,一开始想错了,还算了包含的10的个数。
// 因为5的个数比2少,所以2和5组成的pair的个数由5的个数决定。
// 观察15! = 有3个5(来自其中的5, 10, 15), 所以计算n/5就可以。
// 但是25! = 有6个5(有5个5来自其中的5, 10, 15, 20, 25, 另外还有1个5来自25=(5*5)的另外一个5),
// 所以除了计算n/5, 还要计... | 20.413793 | 73 | 0.515203 | WangYang-wy |
9cabc187d7e120cff388b4ff991bbb246f6e4ac2 | 3,401 | cpp | C++ | autobetlib/src/debug/debug.cpp | MarkusJx/GTA-Online-Autobet | 26c6257d5c730ec0de48d4891e88efb53838e23f | [
"MIT"
] | 2 | 2019-12-23T04:33:37.000Z | 2019-12-23T17:58:03.000Z | autobetlib/src/debug/debug.cpp | MarkusJx/GTA-Online-Autobet | 26c6257d5c730ec0de48d4891e88efb53838e23f | [
"MIT"
] | 4 | 2019-12-23T04:23:54.000Z | 2020-03-08T14:02:49.000Z | autobetlib/src/debug/debug.cpp | MarkusJx/GTA-Online-Autobet | 26c6257d5c730ec0de48d4891e88efb53838e23f | [
"MIT"
] | null | null | null | #include <filesystem>
#include <chrono>
#include <ctime>
#include <memory>
#include "debug/debug.hpp"
#include "debug/zip.hpp"
#include "util/shared_releaser.hpp"
#include "logger.hpp"
#include "util/utils.hpp"
using namespace logger;
std::string home_dir;
unsigned short lastImg = 0;
void _finish();
minizip::zip z... | 25.765152 | 94 | 0.5813 | MarkusJx |
9cacaef340c0e1f1d959e297247d0aaedb9d7037 | 174 | hpp | C++ | lumino/LuminoEngine/include/LuminoEngine/Tilemap/Common.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 113 | 2020-03-05T01:27:59.000Z | 2022-03-28T13:20:51.000Z | lumino/LuminoEngine/include/LuminoEngine/Tilemap/Common.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 35 | 2016-04-18T06:14:08.000Z | 2020-02-09T15:51:58.000Z | lumino/LuminoEngine/include/LuminoEngine/Tilemap/Common.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 12 | 2020-12-21T12:03:59.000Z | 2021-12-15T02:07:49.000Z |
#pragma once
namespace ln {
class Material;
namespace detail {
struct TilemapBounds
{
float l, t, r, b;
};
} // namespace detail
} // namespace ln
| 10.235294 | 22 | 0.591954 | GameDevery |
66d3e926940a32efd34cf14cd5a1b7b3ea26b5ea | 9,792 | inl | C++ | SignalProcessing/FourierSO3.inl | asmaster/ShapeSPH_for_Linux | 19eb77296193559ea05953bddb21e5fae51c1190 | [
"MIT"
] | null | null | null | SignalProcessing/FourierSO3.inl | asmaster/ShapeSPH_for_Linux | 19eb77296193559ea05953bddb21e5fae51c1190 | [
"MIT"
] | null | null | null | SignalProcessing/FourierSO3.inl | asmaster/ShapeSPH_for_Linux | 19eb77296193559ea05953bddb21e5fae51c1190 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2013, Michael Kazhdan
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the following di... | 31.085714 | 149 | 0.616626 | asmaster |
66d8cfb2ac25319946846cc8a2fed466bd64b1cf | 1,176 | cpp | C++ | src/trace/D3DPixRunPlayer/D3DConfiguration.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/trace/D3DPixRunPlayer/D3DConfiguration.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/trace/D3DPixRunPlayer/D3DConfiguration.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | /**************************************************************************
*
* Copyright (c) 2002 - 2011 by Computer Architecture Department,
* Universitat Politecnica de Catalunya.
* All rights reserved.
*
* The contents of this file may not be disclosed to third parties,
* copied or duplicated in any form, in... | 28.682927 | 80 | 0.691327 | attila-sim |
66d8d05f006261714624ed7738aca01cc13a759e | 1,738 | hpp | C++ | include/rlss/ValidityCheckers/RLSSValidityChecker.hpp | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | include/rlss/ValidityCheckers/RLSSValidityChecker.hpp | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | include/rlss/ValidityCheckers/RLSSValidityChecker.hpp | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | #ifndef RLSS_RLSS_VALIDITY_CHECKER_HPP
#define RLSS_RLSS_VALIDITY_CHECKER_HPP
#include <rlss/internal/Util.hpp>
#include <rlss/ValidityCheckers/ValidityChecker.hpp>
namespace rlss {
template<typename T, unsigned int DIM>
class RLSSValidityChecker: public ValidityChecker<T, DIM> {
public:
using Base = ValidityChec... | 30.491228 | 72 | 0.512658 | sieniven |
66db0acaabfa85c3e3f1719c441d52a583104af7 | 15,897 | cc | C++ | test/syscalls/linux/proc_net_unix.cc | akhand9999/gvisor | 001d57df10531208c048450c8e0bc4c5a9ec9caf | [
"Apache-2.0"
] | 2 | 2021-02-23T03:14:54.000Z | 2021-04-16T08:46:24.000Z | test/syscalls/linux/proc_net_unix.cc | akhand9999/gvisor | 001d57df10531208c048450c8e0bc4c5a9ec9caf | [
"Apache-2.0"
] | 8 | 2020-06-25T09:43:46.000Z | 2022-03-31T01:01:00.000Z | test/syscalls/linux/proc_net_unix.cc | akhand9999/gvisor | 001d57df10531208c048450c8e0bc4c5a9ec9caf | [
"Apache-2.0"
] | 3 | 2021-02-08T17:44:27.000Z | 2022-01-14T16:48:26.000Z | // Copyright 2019 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 35.804054 | 111 | 0.694596 | akhand9999 |
66dc46b1552493209dba3c59f96ff3ac286f8ed6 | 1,298 | cpp | C++ | 0500/00/508a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0500/00/508a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0500/00/508a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <vector>
template <typename T, typename U>
std::istream& operator >>(std::istream& input, std::pair<T, U>& v)
{
return input >> v.first >> v.second;
}
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
... | 19.666667 | 79 | 0.479199 | actium |
66dde2dd9862841add8fbef103c3b6e34978fa78 | 1,077 | cpp | C++ | plugins/robots/common/kitBase/src/robotModel/robotParts/scalarSensor.cpp | ladaegorova18/trik-studio | f8d9ce50301fd93c948ac774e85c0e6bfff820bc | [
"Apache-2.0"
] | 17 | 2019-06-04T06:22:47.000Z | 2022-02-11T18:27:25.000Z | plugins/robots/common/kitBase/src/robotModel/robotParts/scalarSensor.cpp | ladaegorova18/trik-studio | f8d9ce50301fd93c948ac774e85c0e6bfff820bc | [
"Apache-2.0"
] | 1,248 | 2019-02-21T19:32:09.000Z | 2022-03-29T16:50:04.000Z | plugins/robots/common/kitBase/src/robotModel/robotParts/scalarSensor.cpp | khodand/trik-studio | 3d2de6809d38b621433c7ccb1cd98da8868d022d | [
"Apache-2.0"
] | 17 | 2019-02-12T07:58:23.000Z | 2022-03-10T11:39:21.000Z | /* Copyright 2007-2015 QReal Research Group
*
* 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... | 30.771429 | 112 | 0.747447 | ladaegorova18 |
66e30032a62af7a49b4629017baf44055212061d | 2,406 | hpp | C++ | libcaf_core/caf/detail/parser/add_ascii.hpp | dcode/actor-framework | 47ebe211f07d31725a3910ed966db1c31192d984 | [
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2019-05-03T05:38:15.000Z | 2020-08-25T15:23:19.000Z | libcaf_core/caf/detail/parser/add_ascii.hpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-11-26T13:14:47.000Z | 2021-11-26T16:29:58.000Z | libcaf_core/caf/detail/parser/add_ascii.hpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2020-05-21T20:54:58.000Z | 2020-06-17T13:44:13.000Z |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *... | 41.482759 | 80 | 0.434331 | dcode |
66e315fd754c43d79d890b393108c90134f6c329 | 3,859 | cpp | C++ | dbms/src/Common/FileChecker.cpp | ArielLily/ClickHouse | 8f145da1e8056d21453149f436e2c5d87eb3294f | [
"Apache-2.0"
] | null | null | null | dbms/src/Common/FileChecker.cpp | ArielLily/ClickHouse | 8f145da1e8056d21453149f436e2c5d87eb3294f | [
"Apache-2.0"
] | null | null | null | dbms/src/Common/FileChecker.cpp | ArielLily/ClickHouse | 8f145da1e8056d21453149f436e2c5d87eb3294f | [
"Apache-2.0"
] | 2 | 2018-11-29T11:15:02.000Z | 2019-04-12T16:56:31.000Z | #include <common/JSON.h>
#include <Poco/Path.h>
#include <IO/WriteBufferFromFile.h>
#include <IO/ReadBufferFromFile.h>
#include <IO/WriteBufferFromString.h>
#include <IO/WriteHelpers.h>
#include <IO/ReadHelpers.h>
#include <Common/escapeForFileName.h>
#include <Common/FileChecker.h>
namespace DB
{
FileChecker::Fil... | 24.737179 | 133 | 0.599637 | ArielLily |
66e6bdba83e7c45569b3a31feb6f8104ca26ae6a | 1,875 | hpp | C++ | engine/platform/dispatch/Semaphore.hpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | engine/platform/dispatch/Semaphore.hpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | engine/platform/dispatch/Semaphore.hpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | // Ouzel by Elviss Strazdins
#ifndef OUZEL_PLATFORM_DISPATCH_SEMAPHORE_HPP
#define OUZEL_PLATFORM_DISPATCH_SEMAPHORE_HPP
#include <stdexcept>
#include <dispatch/dispatch.h>
namespace ouzel::platform::dispatch
{
class Semaphore final
{
public:
explicit Semaphore(intptr_t value):
semaph... | 26.041667 | 80 | 0.5888 | tsukoyumi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.