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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
724f398fa14240dc814292ba0df5538bc14020f5 | 638 | cpp | C++ | Week_3/02 Programming Assignment/Example.cpp | Animart/basics-of-c-plus-plus-development-white-belt | 9ad0aec57a54e505955ad4a93a0636903ba92822 | [
"Unlicense"
] | 1 | 2018-11-22T17:33:45.000Z | 2018-11-22T17:33:45.000Z | Week_3/02 Programming Assignment/Example.cpp | Animart/basics-of-c-plus-plus-development-white-belt | 9ad0aec57a54e505955ad4a93a0636903ba92822 | [
"Unlicense"
] | null | null | null | Week_3/02 Programming Assignment/Example.cpp | Animart/basics-of-c-plus-plus-development-white-belt | 9ad0aec57a54e505955ad4a93a0636903ba92822 | [
"Unlicense"
] | 1 | 2021-03-09T05:26:37.000Z | 2021-03-09T05:26:37.000Z | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void PrintVector(const vector<string>& v)
{
for (const auto i : v)
{
cout << i << " ";
}
}
string Transform(string& s)
{
string temp = "";
for (int i = 0; i < s.size(); ++i)
{
temp ... | 13.869565 | 42 | 0.518809 | Animart |
7251e9c9b6bde9f5987953ad532a5bbd4bdb7e1e | 77,592 | cpp | C++ | sdk/cpp/core/src/network_topology.cpp | YDK-Solutions/ydk | 7ab961284cdc82de8828e53fa4870d3204d7730e | [
"ECL-2.0",
"Apache-2.0"
] | 125 | 2016-03-15T17:04:13.000Z | 2022-03-22T02:46:17.000Z | sdk/cpp/core/src/network_topology.cpp | YDK-Solutions/ydk | 7ab961284cdc82de8828e53fa4870d3204d7730e | [
"ECL-2.0",
"Apache-2.0"
] | 818 | 2016-03-17T17:06:00.000Z | 2022-03-28T03:56:17.000Z | sdk/cpp/core/src/network_topology.cpp | YDK-Solutions/ydk | 7ab961284cdc82de8828e53fa4870d3204d7730e | [
"ECL-2.0",
"Apache-2.0"
] | 93 | 2016-03-15T19:18:55.000Z | 2022-02-24T13:55:07.000Z |
#include <sstream>
#include <iostream>
#include "entity_util.hpp"
#include "network_topology.hpp"
using namespace ydk;
namespace opendaylight {
namespace network_topology {
NetworkTopology::NetworkTopology()
{
yang_name = "network-topology"; yang_parent_name = "network-topology";
}
NetworkTopology::~NetworkTop... | 30.98722 | 809 | 0.695884 | YDK-Solutions |
7252b4cf8166909fdca015773c08d681d5ab6a3c | 2,643 | cc | C++ | src/ufo/marine/adt/ObsADTTLAD.cc | fmahebert/ufo | 2af9b91433553ca473c72fcd131400a01c3aabdb | [
"Apache-2.0"
] | 1 | 2021-10-08T16:37:25.000Z | 2021-10-08T16:37:25.000Z | src/ufo/marine/adt/ObsADTTLAD.cc | fmahebert/ufo | 2af9b91433553ca473c72fcd131400a01c3aabdb | [
"Apache-2.0"
] | 9 | 2021-06-25T17:18:06.000Z | 2021-10-08T17:40:31.000Z | src/ufo/marine/adt/ObsADTTLAD.cc | fmahebert/ufo | 2af9b91433553ca473c72fcd131400a01c3aabdb | [
"Apache-2.0"
] | 31 | 2021-06-24T18:07:53.000Z | 2021-10-08T15:40:39.000Z | /*
* (C) Copyright 2017-2018 UCAR
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
#include "ufo/marine/adt/ObsADTTLAD.h"
#include <ostream>
#include <string>
#include <vector>
#include "ioda/ObsSpace.h"
#in... | 35.716216 | 98 | 0.535376 | fmahebert |
7253d6553eb568b1cf7dacc4b6979c7572e9aac9 | 1,625 | cpp | C++ | library/source/lexicon_tests/terminal_tester.cpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/source/lexicon_tests/terminal_tester.cpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/source/lexicon_tests/terminal_tester.cpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | 1 | 2020-04-17T13:25:25.000Z | 2020-04-17T13:25:25.000Z | #include <sstream>
#include <catch.hpp>
#include "darcel/lexicon/terminal.hpp"
using namespace darcel;
using namespace std;
TEST_CASE("test_terminal_stream", "[Terminal]") {
SECTION("New line") {
Terminal t(Terminal::Type::NEW_LINE);
stringstream ss;
ss << t;
REQUIRE(ss.str() == "\n");
}
SECTION... | 27.083333 | 62 | 0.635692 | spiretrading |
7254dab5c34ed42970c7312394b0ca3c4c543331 | 3,701 | cpp | C++ | Enemies/EnemyTank.cpp | JTuthill01/Hell-on-Treads | a89c939c3f1d0bd47d075d5b02d589637548ca31 | [
"MIT"
] | null | null | null | Enemies/EnemyTank.cpp | JTuthill01/Hell-on-Treads | a89c939c3f1d0bd47d075d5b02d589637548ca31 | [
"MIT"
] | null | null | null | Enemies/EnemyTank.cpp | JTuthill01/Hell-on-Treads | a89c939c3f1d0bd47d075d5b02d589637548ca31 | [
"MIT"
] | null | null | null | #include "stdafx.hpp"
#include "EnemyTank.hpp"
std::vector<sf::Texture> EnemyTank::mEnemyProjectileTextures;
EnemyTank::EnemyTank() : mShootTimer(mShootTimerMax), mShootTimerMax(50.F)
{
this->createMovementComponent(350.f, 16.f, 6.f);
this->createAnimationComponent(this->mEnemyTankTexture);
this->pAnima... | 28.689922 | 118 | 0.705755 | JTuthill01 |
7257004ed1c670e39b57325874d884a14e951af7 | 12,376 | cpp | C++ | cpp/ast/LILRootNode.cpp | veosotano/lil | da2d0774615827d521362ffb731e8abfa3887507 | [
"MIT"
] | 6 | 2021-01-02T16:36:28.000Z | 2022-01-23T21:50:29.000Z | cpp/ast/LILRootNode.cpp | veosotano/lil | 27ef338e7e21403acf2b0202f7db8ef662425d44 | [
"MIT"
] | null | null | null | cpp/ast/LILRootNode.cpp | veosotano/lil | 27ef338e7e21403acf2b0202f7db8ef662425d44 | [
"MIT"
] | null | null | null | /********************************************************************
*
* LIL Is a Language
*
* AUTHORS: Miro Keller
*
* COPYRIGHT: ©2020-today: All Rights Reserved
*
* LICENSE: see LICENSE file
*
* This is a node that participates in local variables
*
*****************************... | 27.380531 | 111 | 0.563995 | veosotano |
725c845dc80289814cd01786bf1351fed338c375 | 270 | cpp | C++ | with_python/extensions/pickling/main.cpp | MengqiYe/Test_Cpp_Standards | 3acf52bd4457be007534b2b481f01a3bdfda0813 | [
"MIT"
] | null | null | null | with_python/extensions/pickling/main.cpp | MengqiYe/Test_Cpp_Standards | 3acf52bd4457be007534b2b481f01a3bdfda0813 | [
"MIT"
] | null | null | null | with_python/extensions/pickling/main.cpp | MengqiYe/Test_Cpp_Standards | 3acf52bd4457be007534b2b481f01a3bdfda0813 | [
"MIT"
] | null | null | null | //
// Created by mqye on 2020/12/7.
//
#include "p.h"
namespace py = pybind11;
int main() {
std::vector<float> float_vector;
float_vector.push_back(.1);
float_vector.push_back(.2);
float_vector.push_back(.3);
auto a_tuple = py::make_tuple(float_vector);
} | 15.882353 | 46 | 0.681481 | MengqiYe |
725d29f662734cb2d88385e300892d020fef6f47 | 19,188 | cpp | C++ | src/db/core/inst.cpp | lbz007/rectanglequery | 59d6eb007bf65480fa3e9245542d0b6071f81831 | [
"BSD-3-Clause"
] | null | null | null | src/db/core/inst.cpp | lbz007/rectanglequery | 59d6eb007bf65480fa3e9245542d0b6071f81831 | [
"BSD-3-Clause"
] | null | null | null | src/db/core/inst.cpp | lbz007/rectanglequery | 59d6eb007bf65480fa3e9245542d0b6071f81831 | [
"BSD-3-Clause"
] | null | null | null | /* @file inst.cpp
* @date <date>
* @brief <Descriptions>
*
* Copyright (C) 2020 NIIC EDA
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
/**
* @file inst.cpp
* @date Apr 2020
*/
#include "db/core/inst... | 28.724551 | 96 | 0.59605 | lbz007 |
725fa44d04ba00d9e9cf81419465ba9ff93feb8d | 1,985 | hpp | C++ | shadow/algorithm/detect_mtcnn.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 20 | 2017-07-04T11:22:47.000Z | 2022-01-16T03:58:32.000Z | shadow/algorithm/detect_mtcnn.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 2 | 2017-12-03T13:07:39.000Z | 2021-01-13T11:11:52.000Z | shadow/algorithm/detect_mtcnn.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 10 | 2017-09-30T05:06:30.000Z | 2020-11-13T05:43:44.000Z | #ifndef SHADOW_ALGORITHM_DETECT_MTCNN_HPP_
#define SHADOW_ALGORITHM_DETECT_MTCNN_HPP_
#include "method.hpp"
#include "core/network.hpp"
namespace Shadow {
struct BoxInfo {
BoxF box;
float box_reg[4], landmark[10];
};
using VecBoxInfo = std::vector<BoxInfo>;
class DetectMTCNN final : public Method {
public:
... | 34.224138 | 80 | 0.741058 | junluan |
7260b0ae81ff011f6d102433ad97a9994ca8e885 | 4,068 | cpp | C++ | modules/physics/bullet/src/components/rigidbody.cpp | weblate/thunder | e9b741b7f23e18cea79cee964c8a62ed9248fbf2 | [
"Apache-2.0"
] | 1 | 2022-03-20T16:13:53.000Z | 2022-03-20T16:13:53.000Z | modules/physics/bullet/src/components/rigidbody.cpp | weblate/thunder | e9b741b7f23e18cea79cee964c8a62ed9248fbf2 | [
"Apache-2.0"
] | null | null | null | modules/physics/bullet/src/components/rigidbody.cpp | weblate/thunder | e9b741b7f23e18cea79cee964c8a62ed9248fbf2 | [
"Apache-2.0"
] | null | null | null | #include "components/rigidbody.h"
#include <components/actor.h>
#include <components/transform.h>
#include "components/volumecollider.h"
#include "resources/physicmaterial.h"
RigidBody::RigidBody() :
m_Mass(1.0f),
m_LockPosition(0),
m_LockRotation(0) {
}
RigidBody::~RigidBody() {
if(m_... | 28.851064 | 108 | 0.592183 | weblate |
7268cb408e412a14a2f92ad2999469cedda1957d | 1,701 | cc | C++ | oflog/libsrc/lloguser.cc | jcfr/DCMTK | 0e42647975cb5e2d00e0ee0c5aba635f0f1db181 | [
"BSD-3-Clause"
] | null | null | null | oflog/libsrc/lloguser.cc | jcfr/DCMTK | 0e42647975cb5e2d00e0ee0c5aba635f0f1db181 | [
"BSD-3-Clause"
] | null | null | null | oflog/libsrc/lloguser.cc | jcfr/DCMTK | 0e42647975cb5e2d00e0ee0c5aba635f0f1db181 | [
"BSD-3-Clause"
] | null | null | null | // Module: Log4CPLUS
// File: logloguser.cxx
// Created: 6/2003
// Author: Tad E. Smith
//
//
// Copyright (C) Tad E. Smith All rights reserved.
//
// This software is published under the terms of the Apache Software
// License version 1.1, a copy of which has been included with this
// distribution in the LICENS... | 23.30137 | 85 | 0.579071 | jcfr |
72690fe5b0e4f61eae99f3f881d26987ff38599f | 10,025 | cpp | C++ | seepage_flows/src/seepageflow/main.cpp | RaymondMcGuire/sph_seepage_flows | 2b135a609abaca4cf02e0538b2818db21478f3f3 | [
"MIT"
] | 2 | 2021-10-02T15:23:27.000Z | 2022-03-14T07:16:58.000Z | seepage_flows/src/seepageflow/main.cpp | RaymondMcGuire/sph_seepage_flows | 2b135a609abaca4cf02e0538b2818db21478f3f3 | [
"MIT"
] | null | null | null | seepage_flows/src/seepageflow/main.cpp | RaymondMcGuire/sph_seepage_flows | 2b135a609abaca4cf02e0538b2818db21478f3f3 | [
"MIT"
] | null | null | null | /***
* @Author: Xu.WANG
* @Date: 2020-10-27 00:49:33
* @LastEditTime: 2021-08-27 23:50:13
* @LastEditors: Xu.WANG
* @Description:
* @FilePath: \sph_seepage_flows\seepage_flows\src\seepageflow\main.cpp
*/
#include <sf_cuda_define.h>
#include <kiri_utils.h>
using namespace KIRI;
// global params
const UInt Ru... | 37.973485 | 194 | 0.70813 | RaymondMcGuire |
726927b926bc4174acea00bd8f90d18b7fb02ad8 | 4,669 | cpp | C++ | common/src/keyfile/LicenceeInfo.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | null | null | null | common/src/keyfile/LicenceeInfo.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | null | null | null | common/src/keyfile/LicenceeInfo.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | null | null | null | // LicenceeInfo.cpp
#include <cstdio>
#include <Message.h>
#include "TimeSupport.h"
#include "LicenceeInfo.h"
// constants for default values
const char* const kDefaultName = "no name";
const char* const kDefaultApplicationID = "no application";
const uint32 kDefaultApplicationVersion = 0;
const bigtime_t kD... | 22.665049 | 73 | 0.74063 | waddlesplash |
7269f9fc8966cc916d265529063cd86484078d22 | 1,499 | hpp | C++ | src/rdf4cpp/rdf/storage/node/BackendNodeHandle.hpp | rdf4cpp/rdf4cpp | 559bf3742871fdf5c2f9dad634193f97e1198c9b | [
"MIT"
] | 3 | 2022-01-10T10:35:44.000Z | 2022-02-18T00:38:38.000Z | src/rdf4cpp/rdf/storage/node/BackendNodeHandle.hpp | rdf4cpp/rdf4cpp | 559bf3742871fdf5c2f9dad634193f97e1198c9b | [
"MIT"
] | 8 | 2021-06-06T17:45:14.000Z | 2022-02-06T17:45:45.000Z | src/rdf4cpp/rdf/storage/node/BackendNodeHandle.hpp | rdf4cpp/rdf4cpp | 559bf3742871fdf5c2f9dad634193f97e1198c9b | [
"MIT"
] | 4 | 2021-09-16T12:49:09.000Z | 2022-02-18T01:58:57.000Z | #ifndef RDF4CPP_BACKENDNODEHANDLE_HPP
#define RDF4CPP_BACKENDNODEHANDLE_HPP
#include <rdf4cpp/rdf/storage/node/NodeStorage.hpp>
#include <compare>
#include <cstddef>
namespace rdf4cpp::rdf::storage::node {
class BackendNodeHandle {
NodeID node_id_;
public:
BackendNodeHandle() = default;
explicit Backen... | 28.826923 | 102 | 0.717145 | rdf4cpp |
726a6abe147dc0d1426714af19b47026789721c6 | 1,441 | cpp | C++ | SampleApplication/src/ExperienceManager/SenseHAT/LEDController/DrawContext.cpp | isabella232/max-toolkit | 6fc0b416efa064094ffc98daf6ee8755c3ec73fe | [
"Apache-2.0"
] | 4 | 2021-09-10T18:35:11.000Z | 2022-01-07T11:33:10.000Z | SampleApplication/src/ExperienceManager/SenseHAT/LEDController/DrawContext.cpp | alexa/max-toolkit | 6fc0b416efa064094ffc98daf6ee8755c3ec73fe | [
"Apache-2.0"
] | 1 | 2022-02-08T19:22:12.000Z | 2022-02-08T20:42:28.000Z | SampleApplication/src/ExperienceManager/SenseHAT/LEDController/DrawContext.cpp | isabella232/max-toolkit | 6fc0b416efa064094ffc98daf6ee8755c3ec73fe | [
"Apache-2.0"
] | 3 | 2021-09-20T22:11:32.000Z | 2022-02-08T17:26:53.000Z | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" f... | 28.254902 | 83 | 0.696738 | isabella232 |
726c2b7c94a78617c6f2d8025c5a0acc3f44059c | 1,214 | cpp | C++ | test/widgets/form.cpp | mattwood-microchip/egt | 6cf491008684feb200585ad1e323a9a02085d9bf | [
"Apache-2.0"
] | 36 | 2019-08-06T06:29:18.000Z | 2022-03-31T09:26:28.000Z | test/widgets/form.cpp | mattwood-microchip/egt | 6cf491008684feb200585ad1e323a9a02085d9bf | [
"Apache-2.0"
] | 19 | 2019-12-06T00:25:35.000Z | 2022-03-28T00:22:27.000Z | test/widgets/form.cpp | mattwood-microchip/egt | 6cf491008684feb200585ad1e323a9a02085d9bf | [
"Apache-2.0"
] | 14 | 2019-08-09T07:23:25.000Z | 2021-09-22T20:08:12.000Z | /*
* Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <egt/ui>
#include <gtest/gtest.h>
using ::testing::Combine;
using ::testing::TestWithParam;
using ::testing::Values;
using ::testing::Range;
class FormTest : public testing::TestWithParam<in... | 25.291667 | 89 | 0.640033 | mattwood-microchip |
726dc1830a34c721af79b6dbd64d07966894f077 | 2,830 | hpp | C++ | node_modules/node-lemmer/include/turglem/morph_compiler.hpp | noduslabs/un1v3r53 | 7684f57721dc16b01f4776f37301e0e1913b60ba | [
"MIT"
] | 2 | 2019-04-17T04:41:00.000Z | 2021-04-01T15:37:04.000Z | node_modules/node-lemmer/include/turglem/morph_compiler.hpp | noduslabs/un1v3r53 | 7684f57721dc16b01f4776f37301e0e1913b60ba | [
"MIT"
] | null | null | null | node_modules/node-lemmer/include/turglem/morph_compiler.hpp | noduslabs/un1v3r53 | 7684f57721dc16b01f4776f37301e0e1913b60ba | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2007, libturglem development team.
*
* This file is released under the LGPL.
*/
#ifndef __MORPH_COMPILER___
#define __MORPH_COMPILER___
#include <txml/txml.hpp>
#include <MAFSA/daciuk.hpp>
namespace MAFSA
{
typedef std::basic_string<MAFSA_letter> l_string;
}
namespace turglem
{
template<typ... | 21.278195 | 87 | 0.671025 | noduslabs |
726e70415fc9114323b1ae718c012bab12933cfb | 581 | cpp | C++ | skia/docs/examples/Path_setLastPt.cpp | jiangkang/renderer-dog | 8081732e2b4dbdb97c8d1f5e23f9e52c6362ff85 | [
"MIT"
] | 1 | 2019-03-25T15:37:48.000Z | 2019-03-25T15:37:48.000Z | docs/examples/Path_setLastPt.cpp | bryphe/esy-skia | 9810a02f28270535de10b584bffc536182224c83 | [
"BSD-3-Clause"
] | 1 | 2020-09-13T11:08:17.000Z | 2020-09-13T11:08:17.000Z | skia/docs/examples/Path_setLastPt.cpp | jiangkang/renderer-dog | 8081732e2b4dbdb97c8d1f5e23f9e52c6362ff85 | [
"MIT"
] | null | null | null | #if 0 // Disabled until updated to use current API.
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "fiddle/examples.h"
// HASH=542c5afaea5f57baa11d0561dd402e18
REG_FIDDLE(Path_setLastPt, 256, 128, false, 0) {
void draw(SkCanva... | 34.176471 | 100 | 0.70568 | jiangkang |
726ec423f6bcd6e9ad5b329780e45c28a248b2f9 | 1,599 | cpp | C++ | codeforces/919C : Seat Arrangements.cpp | him1411/algorithmic-coding-and-data-structures | 685aa95539692daca68ce79c20467c335aa9bb7f | [
"MIT"
] | null | null | null | codeforces/919C : Seat Arrangements.cpp | him1411/algorithmic-coding-and-data-structures | 685aa95539692daca68ce79c20467c335aa9bb7f | [
"MIT"
] | null | null | null | codeforces/919C : Seat Arrangements.cpp | him1411/algorithmic-coding-and-data-structures | 685aa95539692daca68ce79c20467c335aa9bb7f | [
"MIT"
] | 2 | 2018-10-04T19:01:52.000Z | 2018-10-05T08:49:57.000Z | #include <bits/stdc++.h>
#include<string.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl "\n"
#define Max(x,y,z) max(x,max(y,z))
#define Min(x,y,z) min(x,min(y,z))
#define ll long long
#define trace1(x) cerr<<#x<<": "<<x<<endl
#define trace2(x, y) cerr<<... | 17.966292 | 110 | 0.317699 | him1411 |
726f0fc9a56bfd2cfa2b5de400c7489d4451af3e | 626 | hpp | C++ | include/threepp/lights/light_interfaces.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | include/threepp/lights/light_interfaces.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | include/threepp/lights/light_interfaces.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null |
#ifndef THREEPP_LIGHT_INTERFACES_HPP
#define THREEPP_LIGHT_INTERFACES_HPP
#include "LightShadow.hpp"
namespace threepp {
template <class LightShadowType>
class LightWithShadow {
public:
std::shared_ptr<LightShadowType> shadow;
virtual ~LightWithShadow() = default;
protected:
... | 17.388889 | 100 | 0.693291 | maidamai0 |
72714850c7e336f726ad49889c75562f7c549b58 | 1,640 | cpp | C++ | src/Map/MapMovableGameObject.cpp | tizian/Cendric2 | 5b0438c73a751bcc0d63c3af839af04ab0fb21a3 | [
"MIT"
] | 279 | 2015-05-06T19:04:07.000Z | 2022-03-21T21:33:38.000Z | src/Map/MapMovableGameObject.cpp | tizian/Cendric2 | 5b0438c73a751bcc0d63c3af839af04ab0fb21a3 | [
"MIT"
] | 222 | 2016-10-26T15:56:25.000Z | 2021-10-03T15:30:18.000Z | src/Map/MapMovableGameObject.cpp | tizian/Cendric2 | 5b0438c73a751bcc0d63c3af839af04ab0fb21a3 | [
"MIT"
] | 49 | 2015-10-01T21:23:03.000Z | 2022-03-19T20:11:31.000Z | #include "Map/MapMovableGameObject.h"
MapMovableGameObject::MapMovableGameObject(const Map* map) : MovableGameObject() {
m_map = map;
}
MapMovableGameObject::~MapMovableGameObject() {
}
void MapMovableGameObject::updateAnimation(const sf::Time& frameTime) {
// calculate new game state and set animation.
GameObjec... | 31.538462 | 99 | 0.698171 | tizian |
7274f16ba62b32c192035329fa6b30f3d026f976 | 1,844 | cpp | C++ | stm32/bluepill/bluepill.cpp | lupyuen/send-altitude-cocoos | 77f33be2ddf3d243056f78e30a1c86c71b8a9d81 | [
"MIT"
] | 24 | 2018-08-16T09:57:44.000Z | 2020-12-18T22:32:48.000Z | stm32/bluepill/bluepill.cpp | lupyuen/send-altitude-cocoos | 77f33be2ddf3d243056f78e30a1c86c71b8a9d81 | [
"MIT"
] | 1 | 2019-04-13T14:37:06.000Z | 2019-04-17T06:34:03.000Z | stm32/bluepill/bluepill.cpp | lupyuen/send-altitude-cocoos | 77f33be2ddf3d243056f78e30a1c86c71b8a9d81 | [
"MIT"
] | 6 | 2018-09-10T19:48:05.000Z | 2020-12-14T23:12:07.000Z | // Defines functions specific to the STM32 Blue Pill platform.
#include <libopencm3/cm3/cortex.h>
#include <libopencm3/stm32/rcc.h>
#include <logger.h>
#include "bluepill.h"
// Debugging is off by default. Developer must switch it on with enable_debug().
static bool debugEnabled = false;
void platform_setup(void) ... | 28.8125 | 108 | 0.703905 | lupyuen |
72787f476fe49ffcf936c61363935d72ed7f4b1c | 1,276 | cpp | C++ | src/paraboloid.cpp | dkirkby/batoid | 734dccc289eb7abab77a62cdc14563ed5981753b | [
"BSD-2-Clause"
] | null | null | null | src/paraboloid.cpp | dkirkby/batoid | 734dccc289eb7abab77a62cdc14563ed5981753b | [
"BSD-2-Clause"
] | null | null | null | src/paraboloid.cpp | dkirkby/batoid | 734dccc289eb7abab77a62cdc14563ed5981753b | [
"BSD-2-Clause"
] | null | null | null | #include "paraboloid.h"
#include "utils.h"
#include <cmath>
namespace batoid {
Paraboloid::Paraboloid(double R) : _R(R), _Rinv(1./R), _2Rinv(1./2/R) {}
double Paraboloid::sag(double x, double y) const {
if (_R != 0) {
double r2 = x*x + y*y;
return r2*_2Rinv;
}
... | 26.040816 | 76 | 0.431034 | dkirkby |
727a34112dabd03c4ca0d4abbd1bb6170f6e946d | 1,234 | cpp | C++ | src/models/metasprite/compiler/romdata.cpp | undisbeliever/untech-editor | 8598097baf6b2ac0b5580bc000e9adc3bf682043 | [
"MIT"
] | 13 | 2016-05-02T09:00:42.000Z | 2020-11-07T11:21:07.000Z | src/models/metasprite/compiler/romdata.cpp | undisbeliever/untech-editor | 8598097baf6b2ac0b5580bc000e9adc3bf682043 | [
"MIT"
] | 3 | 2016-09-28T13:36:29.000Z | 2020-12-22T12:22:43.000Z | src/models/metasprite/compiler/romdata.cpp | undisbeliever/untech-editor | 8598097baf6b2ac0b5580bc000e9adc3bf682043 | [
"MIT"
] | 1 | 2016-05-08T09:26:01.000Z | 2016-05-08T09:26:01.000Z | /*
* This file is part of the UnTech Editor Suite.
* Copyright (c) 2016 - 2021, Marcus Rowe <undisbeliever@gmail.com>.
* Distributed under The MIT License: https://opensource.org/licenses/MIT
*/
#include "romdata.h"
#include <iomanip>
namespace UnTech::MetaSprite::Compiler {
void RomAddrTable::writeToIncFile(std... | 22.851852 | 73 | 0.509724 | undisbeliever |
727f7dd484bf398f797c732ccc6ae43ed8ec1ccb | 1,680 | cpp | C++ | PPP/drill8/drill82.cpp | siddheshpai/hello-world | 291456962d46c6ce857d75be86bc23634625925f | [
"Apache-2.0"
] | null | null | null | PPP/drill8/drill82.cpp | siddheshpai/hello-world | 291456962d46c6ce857d75be86bc23634625925f | [
"Apache-2.0"
] | null | null | null | PPP/drill8/drill82.cpp | siddheshpai/hello-world | 291456962d46c6ce857d75be86bc23634625925f | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
void swap_v(int a, int b)
{
int temp;
temp = a;
a = b;
b = temp;
return;
}
void swap_r(int & a, int & b)
{
int temp;
temp = a;
a = b;
b = temp;
return;
}
/* This will not compile since we are trying to change constant references
void swap_cr(const int & a, cons... | 22.4 | 95 | 0.523214 | siddheshpai |
728050a4406be9e017ad8b906836e4fc3fd98b5d | 13,064 | cpp | C++ | src/sweepc/source/swp_constant_inception.cpp | sm453/MOpS | f1a706c6552bbdf3ceab504121a02391a1b51ede | [
"MIT"
] | 3 | 2020-09-08T14:06:33.000Z | 2020-12-04T07:52:19.000Z | src/sweepc/source/swp_constant_inception.cpp | sm453/MOpS | f1a706c6552bbdf3ceab504121a02391a1b51ede | [
"MIT"
] | null | null | null | src/sweepc/source/swp_constant_inception.cpp | sm453/MOpS | f1a706c6552bbdf3ceab504121a02391a1b51ede | [
"MIT"
] | 3 | 2021-11-15T05:18:26.000Z | 2022-03-01T13:51:20.000Z | /*!
* \file swp_constant_inception.cpp
* \author Robert I A Patterson
*
* \brief Class for inception at a constant rate
*
* Copyright (C) 2010 Robert I A Patterson.
Licence:
This file is part of "sweepc".
sweepc is free software; you can redistribute it and/or
modify it under the terms of the ... | 36.8 | 140 | 0.648653 | sm453 |
72810e77c91b08e79a4f0165c72a1f1ae8c4102f | 3,231 | cxx | C++ | src/atxmega256a3u/device.cxx | DX-MON/dragonUSB | e3b43d786f767577822ba5e777d01328cd92a80d | [
"BSD-3-Clause"
] | 4 | 2021-06-20T02:20:03.000Z | 2021-12-30T01:43:02.000Z | src/atxmega256a3u/device.cxx | DX-MON/dragonUSB | e3b43d786f767577822ba5e777d01328cd92a80d | [
"BSD-3-Clause"
] | null | null | null | src/atxmega256a3u/device.cxx | DX-MON/dragonUSB | e3b43d786f767577822ba5e777d01328cd92a80d | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
#include "usb/platform.hxx"
#include "usb/internal/core.hxx"
#include "usb/platforms/atxmega256a3u/core.hxx"
#include "usb/internal/device.hxx"
using namespace usb::constants;
using namespace usb::types;
using namespace usb::core;
using namespace usb::core::internal;
using name... | 26.483607 | 114 | 0.717425 | DX-MON |
7283572a416e3d99935afad05c9ac83c928cdc08 | 1,688 | cpp | C++ | QTP/main.cpp | Qu3tzal/TpQt | a741c64659d4808693c92de217261c75ed5fe17a | [
"MIT"
] | null | null | null | QTP/main.cpp | Qu3tzal/TpQt | a741c64659d4808693c92de217261c75ed5fe17a | [
"MIT"
] | null | null | null | QTP/main.cpp | Qu3tzal/TpQt | a741c64659d4808693c92de217261c75ed5fe17a | [
"MIT"
] | 1 | 2018-09-30T10:39:37.000Z | 2018-09-30T10:39:37.000Z | #include "mainwindow.h"
#include "authentificationdialog.h"
#include <QApplication>
#include <QDebug>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include "model/databasecreator.h"
#include "model/staffmodel.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// Uncomment ... | 27.225806 | 94 | 0.64455 | Qu3tzal |
7284539a6a216c96d9fa222abb84fce41f73cd2d | 6,285 | cpp | C++ | guacservice/src/GuacLogger.cpp | ofiriluz/guacamole-server-windows | 6f0230f3053e13536433bbd5fb728c248bab41fd | [
"Apache-2.0"
] | 2 | 2020-10-27T03:50:42.000Z | 2022-01-14T06:01:40.000Z | guacservice/src/GuacLogger.cpp | ofiriluz/guacamole-server-windows | 6f0230f3053e13536433bbd5fb728c248bab41fd | [
"Apache-2.0"
] | 2 | 2018-10-12T15:45:24.000Z | 2020-06-16T10:08:26.000Z | guacservice/src/GuacLogger.cpp | ofiriluz/guacamole-server-windows | 6f0230f3053e13536433bbd5fb728c248bab41fd | [
"Apache-2.0"
] | 2 | 2021-05-21T11:53:43.000Z | 2021-11-07T18:36:32.000Z | //
// Created by oiluz on 9/5/2017.
//
#include <guacservice/GuacLogger.h>
GuacLogger::GuacLogger() : m_Initialized(false), m_IgnoreLogs(false), m_WithConsole(false)
{
}
boost::shared_ptr<GuacLogger> GuacLogger::GetInstance()
{
static boost::shared_ptr<GuacLogger> logger(new GuacLogger());
return logger;
}
v... | 26.297071 | 118 | 0.669212 | ofiriluz |
7288b15e6b0d0caf1465360225709e3a5227ed68 | 17,020 | hpp | C++ | src/Infrastructure/Mesh/src/Moab/moab/GeomTopoTool.hpp | Formatted/esmf | 94561c6a1d539917da5595a8de867e43f43bcafe | [
"NCSA"
] | null | null | null | src/Infrastructure/Mesh/src/Moab/moab/GeomTopoTool.hpp | Formatted/esmf | 94561c6a1d539917da5595a8de867e43f43bcafe | [
"NCSA"
] | null | null | null | src/Infrastructure/Mesh/src/Moab/moab/GeomTopoTool.hpp | Formatted/esmf | 94561c6a1d539917da5595a8de867e43f43bcafe | [
"NCSA"
] | null | null | null | /**
* MOAB, a Mesh-Oriented datABase, is a software component for creating,
* storing and accessing finite element mesh data.
*
* Copyright 2004 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
* retains certain rights in this software.
*
* This... | 42.763819 | 109 | 0.710693 | Formatted |
728bbfd3b353f824eab7ca1245ec584c69b435bf | 5,137 | cpp | C++ | glui_checkbox.cpp | brainoverflow98/glui | 1e3efbea09a63c053a00d7388f105c58178f149a | [
"Zlib"
] | 168 | 2015-09-24T12:41:54.000Z | 2022-03-30T00:59:52.000Z | glui_checkbox.cpp | brainoverflow98/glui | 1e3efbea09a63c053a00d7388f105c58178f149a | [
"Zlib"
] | 101 | 2015-09-13T05:48:17.000Z | 2021-08-10T02:28:31.000Z | glui_checkbox.cpp | brainoverflow98/glui | 1e3efbea09a63c053a00d7388f105c58178f149a | [
"Zlib"
] | 86 | 2015-09-24T12:34:47.000Z | 2022-02-20T22:34:32.000Z |
/****************************************************************************
GLUI User Interface Toolkit
---------------------------
glui_checkbox - GLUI_Checkbox control class
--------------------------------------------------
Copyright (c) 1998 Paul Rademacher
WWW: https://github.com... | 25.181373 | 80 | 0.581078 | brainoverflow98 |
728ca92ed223acacb3019ef7a297546a24aa050f | 3,630 | cpp | C++ | 5_GraphTheory/6_BinaryMatch/4_kuhn_munkres.cpp | JasongLee/Way-to-Algorithm-1 | 249a320845a960d942ae742cb5bd273e814a9e85 | [
"MIT"
] | 1 | 2017-04-16T15:23:29.000Z | 2017-04-16T15:23:29.000Z | 5_GraphTheory/6_BinaryMatch/4_kuhn_munkres.cpp | JasongLee/Way-to-Algorithm-1 | 249a320845a960d942ae742cb5bd273e814a9e85 | [
"MIT"
] | null | null | null | 5_GraphTheory/6_BinaryMatch/4_kuhn_munkres.cpp | JasongLee/Way-to-Algorithm-1 | 249a320845a960d942ae742cb5bd273e814a9e85 | [
"MIT"
] | 1 | 2018-07-19T00:52:39.000Z | 2018-07-19T00:52:39.000Z | //Kuhn-Munkres算法
//kuhn_munkres.cpp
//二分图B中的每条边都拥有一个正权值,为了方便该权值为正整数
//求二分带权图的具有最大权的完备匹配(也称最优匹配,最佳匹配)
//1)基础概念
//二分带权图的最大权完备匹配问题是应用Kuhn-Munkres(简称KM)算法的典型场景
//顶点标号技术:
//对于二分图B=<X,Y,E>的X集合中节点设置顶点标号A,Y集合中节点设置顶点标号B
//即设置数组a_label和b_label,a_label[i](b_label[i])指代X(Y)集合中节点i的标号
//可行顶点标号:
//对于二分图B中的每条边e,一个端点i属于X集合,另一个端点j属于Y集... | 29.04 | 65 | 0.696694 | JasongLee |
728de9f4655a0306ccf2ffd3fc67f8739d17b720 | 3,512 | inl | C++ | cpp/win/include/ktn/stringw.inl | kittttttan/ktn | 70ff0848ea7c97a9fa2ad85e2adfb48312037d58 | [
"MIT"
] | null | null | null | cpp/win/include/ktn/stringw.inl | kittttttan/ktn | 70ff0848ea7c97a9fa2ad85e2adfb48312037d58 | [
"MIT"
] | null | null | null | cpp/win/include/ktn/stringw.inl | kittttttan/ktn | 70ff0848ea7c97a9fa2ad85e2adfb48312037d58 | [
"MIT"
] | null | null | null | #pragma once
#include "ktn/dbg.h"
#include "ktn/util.h"
#include <assert.h>
#include <locale.h>
#include <stdio.h>
#include <algorithm>
#include <sstream>
namespace ktn {
inline StringW& StringW::operator=(const StringW& s)
{
if (this == &s) { return *this; }
str_ = s.str_;
return *this;
}
inline std::wostre... | 17.827411 | 69 | 0.639237 | kittttttan |
728f19ff5d8f3f0b8ff62a652f2e6f83528db037 | 431 | hpp | C++ | obs-studio/UI/double-slider.hpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/double-slider.hpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/double-slider.hpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | #pragma once
#include <QSlider>
#include "slider-ignorewheel.hpp"
class DoubleSlider : public SliderIgnoreScroll {
Q_OBJECT
double minVal, maxVal, minStep;
public:
DoubleSlider(QWidget *parent = nullptr);
void setDoubleConstraints(double newMin, double newMax, double newStep,
double val);
signals:
void... | 17.958333 | 72 | 0.761021 | noelemahcz |
7291161e0ce6363ab4a456ea9301afe94fef1c95 | 685,719 | cpp | C++ | test/generated/tailoring_rule_test_zh_zhuyin_004.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 265 | 2017-07-09T23:23:48.000Z | 2022-03-24T10:14:19.000Z | test/generated/tailoring_rule_test_zh_zhuyin_004.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 185 | 2017-08-30T16:44:51.000Z | 2021-08-13T12:02:46.000Z | test/generated/tailoring_rule_test_zh_zhuyin_004.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 25 | 2017-08-29T23:07:23.000Z | 2021-09-03T06:31:29.000Z | // Copyright (C) 2020 T. Zachary Laine
//
// 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)
// Warning! This file is autogenerated.
#include <boost/text/collation_table.hpp>
#include <boost/text/collate.hpp>
#incl... | 35.148854 | 76 | 0.597449 | Ryan-rsm-McKenzie |
7291f9692107375003ce88c72589d9623cbf9d47 | 725 | hpp | C++ | src/runner_options.hpp | dholmes215/adventofcode-cpp | 2a0ce43c51ec3beccc56fb48bf91de070e6ca136 | [
"BSL-1.0"
] | null | null | null | src/runner_options.hpp | dholmes215/adventofcode-cpp | 2a0ce43c51ec3beccc56fb48bf91de070e6ca136 | [
"BSL-1.0"
] | null | null | null | src/runner_options.hpp | dholmes215/adventofcode-cpp | 2a0ce43c51ec3beccc56fb48bf91de070e6ca136 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2020-2021 David Holmes (dholmes at dholmes dot us)
//
// 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 RUNNER_OPTIONS_HPP
#define RUNNER_OPTIONS_HPP
#include <filesystem>
#include <op... | 21.969697 | 79 | 0.713103 | dholmes215 |
729c8bd7858f55b9933cf7bb0fabdadc9a2eb4b8 | 3,780 | cpp | C++ | disk/DiskAsyncResult.cpp | zukisoft/storage | a8b6ac184377c4a6c25624260d16e7f42f082395 | [
"MIT"
] | 1 | 2016-05-28T04:19:26.000Z | 2016-05-28T04:19:26.000Z | disk/DiskAsyncResult.cpp | zukisoft/storage-legacy | a8b6ac184377c4a6c25624260d16e7f42f082395 | [
"MIT"
] | null | null | null | disk/DiskAsyncResult.cpp | zukisoft/storage-legacy | a8b6ac184377c4a6c25624260d16e7f42f082395 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// Copyright (c) 2014 Michael G. Brehm
//
// 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 restricti... | 35.660377 | 111 | 0.648413 | zukisoft |
729d5c6948cc979a568380c8763aaf305170982d | 1,226 | cpp | C++ | robot/arduino/echo.cpp | kkevlar/bazelrobot | 7b858a0513d6c8e4241641d9132b5d74a9a80ca5 | [
"MIT"
] | 1 | 2020-02-04T23:40:37.000Z | 2020-02-04T23:40:37.000Z | robot/arduino/echo.cpp | kkevlar/bazelrobot | 7b858a0513d6c8e4241641d9132b5d74a9a80ca5 | [
"MIT"
] | 6 | 2019-12-23T02:31:25.000Z | 2019-12-23T02:33:03.000Z | robot/arduino/echo.cpp | kkevlar/roborodentia2020 | 7b858a0513d6c8e4241641d9132b5d74a9a80ca5 | [
"MIT"
] | null | null | null | #include "echo.h"
#include <Arduino.h>
void echo_init()
{
pinMode(PIN_ULTRASONIC_TRIG, OUTPUT);
pinMode(PIN_ULTRASONIC_ECHO_BACK, INPUT);
pinMode(PIN_ULTRASONIC_ECHO_LEFT, INPUT);
pinMode(PIN_ULTRASONIC_ECHO_FRONT, INPUT);
pinMode(PIN_ULTRASONIC_ECHO_RIGHT, INPUT);
#ifdef TEST_ECHO
Se... | 21.892857 | 54 | 0.699837 | kkevlar |
72a040f91a1921b69242cc4bcf014f2af4dad0d4 | 13,346 | cpp | C++ | src/blackmagicsdk/blackmagicsdk_video_source.cpp | mhubii/GIFT-Grab | c9678e25edbd0403b25366d60a3e2e2e5c32320f | [
"BSD-3-Clause"
] | 41 | 2017-06-24T21:58:17.000Z | 2022-03-29T04:44:05.000Z | src/blackmagicsdk/blackmagicsdk_video_source.cpp | mhubii/GIFT-Grab | c9678e25edbd0403b25366d60a3e2e2e5c32320f | [
"BSD-3-Clause"
] | 91 | 2017-06-14T09:57:40.000Z | 2020-12-02T11:36:19.000Z | src/blackmagicsdk/blackmagicsdk_video_source.cpp | mhubii/GIFT-Grab | c9678e25edbd0403b25366d60a3e2e2e5c32320f | [
"BSD-3-Clause"
] | 15 | 2017-05-21T14:04:50.000Z | 2021-11-22T06:03:26.000Z | #include "blackmagicsdk_video_source.h"
#include "deck_link_display_mode_detector.h"
#include <chrono>
namespace gg
{
VideoSourceBlackmagicSDK::VideoSourceBlackmagicSDK()
: IVideoSource()
, _frame_rate(0.0)
, _video_buffer(nullptr)
, _video_buffer_length(0)
, _cols(0)
, _rows(0)
, _buffer_... | 30.263039 | 103 | 0.621385 | mhubii |
72a11eadc3dd83ebd43b738669fdc317af80e726 | 1,838 | cpp | C++ | src/viennautils/filesystem/filesystem.cpp | viennautils/viennautils-dev | 38ef9a088f8df2a59215d27fd38bed8a4effd012 | [
"MIT"
] | 1 | 2015-09-13T03:50:52.000Z | 2015-09-13T03:50:52.000Z | src/viennautils/filesystem/filesystem.cpp | viennautils/viennautils-dev | 38ef9a088f8df2a59215d27fd38bed8a4effd012 | [
"MIT"
] | null | null | null | src/viennautils/filesystem/filesystem.cpp | viennautils/viennautils-dev | 38ef9a088f8df2a59215d27fd38bed8a4effd012 | [
"MIT"
] | 2 | 2017-01-12T09:02:43.000Z | 2021-05-12T07:29:57.000Z | #include "viennautils/filesystem/filesystem.hpp"
namespace viennautils
{
namespace filesystem
{
namespace
{
std::string const path_delimiters = "\\/";
std::string::size_type find_last_path_delimiter(std::string const & path)
{
return path.find_last_of(path_delimiters);
}
std::string::size_type find_extension_deli... | 32.245614 | 122 | 0.735038 | viennautils |
72a44e346584e77c1d9722c2a1426f459cb1a86c | 1,341 | cpp | C++ | Week9/Fractional_Knapsack.cpp | SukalpVishnoi/DAA-PRACTICL | fee6b3f42a90d96de01ccf6af417d7ed29dc30f5 | [
"MIT"
] | null | null | null | Week9/Fractional_Knapsack.cpp | SukalpVishnoi/DAA-PRACTICL | fee6b3f42a90d96de01ccf6af417d7ed29dc30f5 | [
"MIT"
] | null | null | null | Week9/Fractional_Knapsack.cpp | SukalpVishnoi/DAA-PRACTICL | fee6b3f42a90d96de01ccf6af417d7ed29dc30f5 | [
"MIT"
] | 1 | 2021-09-22T18:22:08.000Z | 2021-09-22T18:22:08.000Z | #include <bits/stdc++.h>
using namespace std;
bool compare(pair<pair<int, int>, int> a, pair<pair<int, int>, int> b)
{
return a.first.second * 1.0 / a.first.first > b.first.second * 1.0 / b.first.first;
}
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdou... | 26.294118 | 87 | 0.480239 | SukalpVishnoi |
72a4b92309d39bd9701a8dd076af60135ae76805 | 25,286 | hxx | C++ | ants/lib/antsJointHistogramParzenShapeAndOrientationListSampleFunction.hxx | ncullen93/ANTsPy | a4c990dcd5b7445a45ce7b366ee018c7350e7d9f | [
"Apache-2.0"
] | 3 | 2018-06-07T19:11:47.000Z | 2019-06-10T05:24:06.000Z | ants/lib/antsJointHistogramParzenShapeAndOrientationListSampleFunction.hxx | ncullen93/ANTsPy | a4c990dcd5b7445a45ce7b366ee018c7350e7d9f | [
"Apache-2.0"
] | null | null | null | ants/lib/antsJointHistogramParzenShapeAndOrientationListSampleFunction.hxx | ncullen93/ANTsPy | a4c990dcd5b7445a45ce7b366ee018c7350e7d9f | [
"Apache-2.0"
] | 1 | 2019-04-04T06:18:44.000Z | 2019-04-04T06:18:44.000Z | /*=========================================================================
Program: Advanced Normalization Tools
Copyright (c) ConsortiumOfANTS. All rights reserved.
See accompanying COPYING.txt or
https://github.com/stnava/ANTs/blob/master/ANTSCopyright.txt
for details.
This software is distributed W... | 36.540462 | 121 | 0.642174 | ncullen93 |
72a4db9cdce58e0e49216b312758cd8ca6afbc9d | 14,532 | cpp | C++ | src/mrilucpp/Ifpack_MRILU.cpp | jthies/i-emic | 8bc351e2e6e31ac6a4c14a16fadfa65c0e04b6a7 | [
"Apache-2.0"
] | 2 | 2020-11-30T08:37:53.000Z | 2021-01-18T09:53:59.000Z | src/mrilucpp/Ifpack_MRILU.cpp | jthies/i-emic | 8bc351e2e6e31ac6a4c14a16fadfa65c0e04b6a7 | [
"Apache-2.0"
] | 83 | 2019-03-04T10:07:02.000Z | 2022-01-20T10:45:40.000Z | src/mrilucpp/Ifpack_MRILU.cpp | jthies/i-emic | 8bc351e2e6e31ac6a4c14a16fadfa65c0e04b6a7 | [
"Apache-2.0"
] | 4 | 2019-02-18T10:17:59.000Z | 2019-03-27T12:24:57.000Z | /**********************************************************************
* Copyright by Jonas Thies, Univ. of Groningen 2006/7/8. *
* Permission to use, copy, modify, redistribute is granted *
* as long as this header remains intact. *
* contact: jonas@math.rug.nl ... | 28.217476 | 99 | 0.595789 | jthies |
72a7799234f20ef47ac4bbce25b728ce18f55df6 | 19,959 | cpp | C++ | Base/PLRenderer/src/Texture/TextureAniLoaderPL.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLRenderer/src/Texture/TextureAniLoaderPL.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 19 | 2018-08-24T08:10:13.000Z | 2018-11-29T06:39:08.000Z | Base/PLRenderer/src/Texture/TextureAniLoaderPL.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: TextureAniLoaderPL.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 33.488255 | 130 | 0.66346 | ktotheoz |
72a77e4b706945954b782607100be05740d3aa8e | 553 | cpp | C++ | src/world/particles/systems/blueorbparticlesystem.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | src/world/particles/systems/blueorbparticlesystem.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | src/world/particles/systems/blueorbparticlesystem.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | #include "blueorbparticlesystem.h"
namespace TankGame
{
BlueOrbParticleSystem::BlueOrbParticleSystem(ParticlesManager& particlesManager)
: m_blueOrbEmitter(particlesManager)
{
}
ParticleEmitter* BlueOrbParticleSystem::GetEmitter(size_t n)
{
return &m_blueOrbEmitter;
}
size_t BlueOrbParticleSystem:... | 21.269231 | 109 | 0.802893 | Eae02 |
72a80d75b454af16c09b505bb52363c2106d8d5f | 7,635 | cc | C++ | source/graphics/rasterize.cc | dolfly/plotfx | 6381339d6ea89cf54f47948889ce9d86e178d851 | [
"BSD-3-Clause"
] | null | null | null | source/graphics/rasterize.cc | dolfly/plotfx | 6381339d6ea89cf54f47948889ce9d86e178d851 | [
"BSD-3-Clause"
] | null | null | null | source/graphics/rasterize.cc | dolfly/plotfx | 6381339d6ea89cf54f47948889ce9d86e178d851 | [
"BSD-3-Clause"
] | null | null | null | /**
* This file is part of the "plotfx" project
* Copyright (c) 2018 Paul Asmuth
*
* 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, thi... | 26.695804 | 81 | 0.658546 | dolfly |
72a9ebb06e37ccf9dca67a53cab90886c7b724f0 | 34,270 | cpp | C++ | src/rrgenerator.cpp | sischkg/nxnsattack | c20896e40187bbcacb5c0255ff8f3cc7d0592126 | [
"MIT"
] | 5 | 2020-05-22T10:01:51.000Z | 2022-01-01T04:45:14.000Z | src/rrgenerator.cpp | sischkg/dns-fuzz-server | 6f45079014e745537c2f564fdad069974e727da1 | [
"MIT"
] | 1 | 2020-06-07T14:09:44.000Z | 2020-06-07T14:09:44.000Z | src/rrgenerator.cpp | sischkg/dns-fuzz-server | 6f45079014e745537c2f564fdad069974e727da1 | [
"MIT"
] | 2 | 2020-03-10T03:06:20.000Z | 2021-07-25T15:07:45.000Z | #include "rrgenerator.hpp"
#include <boost/noncopyable.hpp>
#include <sys/types.h>
#include <unistd.h>
#include <cstdlib>
#include <sstream>
namespace dns
{
/**********************************************************
* RandomGenarator
**********************************************************/
Ra... | 37.008639 | 127 | 0.512372 | sischkg |
72ac70593f700c0cf38306c73c6e47e13ac1470c | 11,061 | cpp | C++ | src/filter.cpp | acejarvis/realtime-sdr | 2eaa8fdcbf66b2f8057e382847f8be4050cb740a | [
"MIT"
] | null | null | null | src/filter.cpp | acejarvis/realtime-sdr | 2eaa8fdcbf66b2f8057e382847f8be4050cb740a | [
"MIT"
] | null | null | null | src/filter.cpp | acejarvis/realtime-sdr | 2eaa8fdcbf66b2f8057e382847f8be4050cb740a | [
"MIT"
] | null | null | null | /*
Comp Eng 3DY4 (Computer Systems Integration Project)
Department of Electrical and Computer Engineering
McMaster University
Ontario, Canada
*/
#include "dy4.h"
#include "filter.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <iomanip>
#include <complex>
#include <cmath>
#include <chrono>
// fu... | 32.247813 | 319 | 0.508815 | acejarvis |
72b444be5e0f1bdea1eced5d9ccfc01fc5e3ae00 | 6,786 | cpp | C++ | src/layers/MsnhUpSampleLayer.cpp | Janus1984/Msnhnet | 4e09f2501ba8db789f0a20441a357de3ba468f10 | [
"MIT"
] | 546 | 2020-07-05T13:09:44.000Z | 2022-03-31T01:55:22.000Z | src/layers/MsnhUpSampleLayer.cpp | hengC-137/Msnhnet | b7ae88b41c1c1d715990afe50727c46c09237a5a | [
"MIT"
] | 23 | 2020-07-09T01:26:10.000Z | 2021-12-08T01:18:46.000Z | src/layers/MsnhUpSampleLayer.cpp | hengC-137/Msnhnet | b7ae88b41c1c1d715990afe50727c46c09237a5a | [
"MIT"
] | 114 | 2020-07-06T06:04:40.000Z | 2022-03-30T14:47:50.000Z | #include "Msnhnet/layers/MsnhUpSampleLayer.h"
namespace Msnhnet
{
UpSampleLayer::UpSampleLayer(const int &batch, const int &width, const int &height, const int &channel, const int &strideX, const int &strideY,
const float &scaleX, const float &scaleY, UpSampleParams::UpsampleType upsam... | 28.157676 | 182 | 0.587533 | Janus1984 |
72b454affbf7d906621c52ca284b57f6ca0da826 | 36,002 | cpp | C++ | src/gausskernel/storage/mot/core/src/memory/mm_session_api.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | src/gausskernel/storage/mot/core/src/memory/mm_session_api.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/gausskernel/storage/mot/core/src/memory/mm_session_api.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 42.910608 | 120 | 0.634187 | wotchin |
72b4ba9b6c2f3d52b44c645fc8761d3545940fa2 | 9,688 | cpp | C++ | src/nfagraph/ng_utf8.cpp | a16bitsysop/hyperscan | 2819dc3d1b796e28d23140cb135077a709b7d28a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 146 | 2021-02-15T14:13:57.000Z | 2022-03-30T19:06:13.000Z | src/nfagraph/ng_utf8.cpp | a16bitsysop/hyperscan | 2819dc3d1b796e28d23140cb135077a709b7d28a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 35 | 2021-01-26T10:21:21.000Z | 2022-03-23T09:50:20.000Z | src/nfagraph/ng_utf8.cpp | a16bitsysop/hyperscan | 2819dc3d1b796e28d23140cb135077a709b7d28a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 12 | 2021-03-26T15:02:20.000Z | 2022-03-10T13:14:32.000Z | /*
* Copyright (c) 2015-2017, Intel Corporation
*
* 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 f... | 31.868421 | 79 | 0.59486 | a16bitsysop |
72b58cadd71b2de20d04c1c89d78434cc0c4fbb3 | 14,605 | hpp | C++ | toolkits/test_getdepneighbor_gpu.hpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | 1 | 2022-03-10T07:41:55.000Z | 2022-03-10T07:41:55.000Z | toolkits/test_getdepneighbor_gpu.hpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | null | null | null | toolkits/test_getdepneighbor_gpu.hpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | null | null | null | #include "core/neutronstar.hpp"
class test_get_neighbor_gpu {
public:
int iterations;
ValueType learn_rate;
ValueType weight_decay;
ValueType drop_rate;
ValueType alpha;
ValueType beta1;
ValueType beta2;
ValueType epsilon;
ValueType decay_rate;
ValueType decay_epoch;
// graph
VertexSubset *activ... | 40.796089 | 127 | 0.618624 | Sanzo00 |
72b753174f178dea0751c9c0a76a2c4e7cd18284 | 3,502 | cpp | C++ | src/nfchandler.cpp | YuzukiTsuru/AmiiboTap | ceb8dd57fd87d30078e9927c87cbc80da4239376 | [
"BSD-3-Clause"
] | null | null | null | src/nfchandler.cpp | YuzukiTsuru/AmiiboTap | ceb8dd57fd87d30078e9927c87cbc80da4239376 | [
"BSD-3-Clause"
] | 1 | 2021-10-21T12:05:07.000Z | 2021-11-05T07:40:29.000Z | src/nfchandler.cpp | YuzukiTsuru/AmiiboTap | ceb8dd57fd87d30078e9927c87cbc80da4239376 | [
"BSD-3-Clause"
] | null | null | null | #include <ColorCout.hpp>
#include "nfchandler.h"
NFCHandler::NFCHandler() {
std::cout << cc::cyan << "Initializing NFC adapter" << cc::reset << std::endl;
// init nfc
nfc_init(&context);
if (!context) {
std::cout << cc::red << "Unable to init libnfc (malloc)" << cc::reset << std::endl;
... | 34.673267 | 104 | 0.584809 | YuzukiTsuru |
72b7d6bd60fa0c0510d3dd698c0d4bed63131ce0 | 3,151 | cpp | C++ | src/unittest/AlgorithmsTest.cpp | szekizoli/graphlib | 2be4790024c20f2e2ad3b96010efa1e8aa35907c | [
"MIT"
] | null | null | null | src/unittest/AlgorithmsTest.cpp | szekizoli/graphlib | 2be4790024c20f2e2ad3b96010efa1e8aa35907c | [
"MIT"
] | null | null | null | src/unittest/AlgorithmsTest.cpp | szekizoli/graphlib | 2be4790024c20f2e2ad3b96010efa1e8aa35907c | [
"MIT"
] | null | null | null | #include "GraphLibTestUtils.h"
#include <iostream>
#include "GraphTestHelper.h"
#include "graph\Algorithms.h"
#include "graph\Graph.h"
#include "graph\GraphBuilder.h"
#include "graph\Node.h"
#include "graph\function\Function.h"
namespace GraphLibraryTest
{
using namespace graphlib::graph;
using namespace graphlib... | 30.592233 | 99 | 0.715011 | szekizoli |
72bbfc2087c1d269c123beda08d082c88453644f | 3,034 | hh | C++ | benchmarks/solvers/minizinc/include/minizinc/chain_compressor.hh | 95A31/MDD-LNS | 9b78143e13ce8b3916bf3cc9662d9cbfe63fd7c7 | [
"MIT"
] | null | null | null | benchmarks/solvers/minizinc/include/minizinc/chain_compressor.hh | 95A31/MDD-LNS | 9b78143e13ce8b3916bf3cc9662d9cbfe63fd7c7 | [
"MIT"
] | null | null | null | benchmarks/solvers/minizinc/include/minizinc/chain_compressor.hh | 95A31/MDD-LNS | 9b78143e13ce8b3916bf3cc9662d9cbfe63fd7c7 | [
"MIT"
] | null | null | null | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Jip J. Dekker <jip.dekker@monash.edu>
*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mo... | 30.039604 | 99 | 0.689519 | 95A31 |
72bc188cff3736eb2054c864007c1eb426d48644 | 23,777 | cpp | C++ | data/converted/genre__demoscene_svg.cpp | AdoPi/custom-es-fork | 49d23b57173612531fdf0f1c996592fb161df779 | [
"MIT"
] | null | null | null | data/converted/genre__demoscene_svg.cpp | AdoPi/custom-es-fork | 49d23b57173612531fdf0f1c996592fb161df779 | [
"MIT"
] | null | null | null | data/converted/genre__demoscene_svg.cpp | AdoPi/custom-es-fork | 49d23b57173612531fdf0f1c996592fb161df779 | [
"MIT"
] | null | null | null | // this file was auto-generated from "demoscene.svg" by res2h
#include "../Resources.h"
const uint16_t genre__demoscene_svg_size = 4288;
const uint8_t genre__demoscene_svg_data[4288] = {
0x3c,0x3f,0x78,0x6d,0x6c,0x20,0x76,0x65,0x72,0x73,
0x69,0x6f,0x6e,0x3d,0x22,0x31,0x2e,0x30,0x22,0x20,
0x73,0x74,0x61,0x... | 54.285388 | 61 | 0.727552 | AdoPi |
72bdc0cf2ba737cc4461a473d2c36b8f7560ba23 | 1,149 | cpp | C++ | Arrays/(CODEFORCES) Portal.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | 1 | 2020-08-27T06:59:52.000Z | 2020-08-27T06:59:52.000Z | Arrays/(CODEFORCES) Portal.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | null | null | null | Arrays/(CODEFORCES) Portal.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | null | null | null | #include<stdio.h>
char s[402];
int sum[401][401],f[401];
inline int GetSum(int lx,int ly,int rx,int ry){
return sum[rx][ry]-sum[rx][ly-1]-sum[lx-1][ry]+sum[lx-1][ly-1];
}
inline void Solve(){
int n,m,i,j,k,ans=999999,cur;
scanf("%d%d",&n,&m);
for(i=1;i<=n;i++){
scanf("%s",s+1);
for(j=1;j... | 26.113636 | 112 | 0.375979 | kothariji |
72bef293b29669b20cf58d7f34dd52a00e4bd62e | 20,016 | cpp | C++ | mainwindow.cpp | b0bh00d/ClipNet | cefb3cc8d56d21070bff46e51786dae8b39e81c3 | [
"MIT"
] | null | null | null | mainwindow.cpp | b0bh00d/ClipNet | cefb3cc8d56d21070bff46e51786dae8b39e81c3 | [
"MIT"
] | 1 | 2021-12-24T14:50:32.000Z | 2021-12-24T14:50:32.000Z | mainwindow.cpp | b0bh00d/ClipNet | cefb3cc8d56d21070bff46e51786dae8b39e81c3 | [
"MIT"
] | null | null | null | #include <random>
#include <limits>
#ifdef QT_WIN
#define WIN32_MEAN_AND_LEAN // necessary to avoid compiler errors
#include <Windows.h>
#define AS_LPCWSTR(str) reinterpret_cast<const wchar_t*>(str.utf16())
#define AS_LPBYTE(str) reinterpret_cast<const BYTE*>(str.utf16())
#endif
#include <QTimer>
#includ... | 35.239437 | 142 | 0.648581 | b0bh00d |
72c0a107f6ce55840d3ac585812d1e18774bf5f1 | 334 | cpp | C++ | tournaments/knapsackLight/knapsackLight.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 5 | 2020-02-06T09:51:22.000Z | 2021-03-19T00:18:44.000Z | tournaments/knapsackLight/knapsackLight.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | null | null | null | tournaments/knapsackLight/knapsackLight.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 3 | 2019-09-27T13:06:21.000Z | 2021-04-20T23:13:17.000Z | int knapsackLight(int value1, int weight1,
int value2, int weight2, int maxW) {
if (weight1 + weight2 <= maxW) {
return value1 + value2;
}
if (std::min(weight1, weight2) > maxW) {
return 0;
}
if (weight1 <= maxW && (value1 >= value2 || weight2 > maxW)) {
return value1;
}
ret... | 22.266667 | 64 | 0.57485 | gurfinkel |
72c0c072422b271b0c872612a60d713b4384cbb8 | 757 | hpp | C++ | Firmware/modules/InputSense.hpp | jimkoeh/ActiveLoad | 77ad16cd16365efc226c3384b1ad5ba39d782c83 | [
"MIT"
] | 2 | 2017-12-25T10:00:39.000Z | 2020-05-25T09:03:12.000Z | Firmware/modules/InputSense.hpp | jimkoeh/ActiveLoad | 77ad16cd16365efc226c3384b1ad5ba39d782c83 | [
"MIT"
] | null | null | null | Firmware/modules/InputSense.hpp | jimkoeh/ActiveLoad | 77ad16cd16365efc226c3384b1ad5ba39d782c83 | [
"MIT"
] | 3 | 2019-08-25T05:32:01.000Z | 2021-01-18T00:29:03.000Z | /**
* @file InputSense.hpp
*
* @date 19.12.2015
* @author Andre
* @description
*/
#ifndef INPUTSENSE_HPP_
#define INPUTSENSE_HPP_
#include "SystemState.hpp"
#include "SystemCommand.hpp"
#include "driver/DS18B20.hpp"
#include <stdint.h>
#include "tools/EMAFilter.hpp"
class InputSense
{
public:
InputSense();
... | 18.463415 | 71 | 0.746367 | jimkoeh |
72c0d8fa9db6dc30caa52837c4ea4a02024ee7b6 | 4,812 | cpp | C++ | src/dustfluids/dustfluids_noCs_solver.cpp | PinghuiHuang/athena-pp-dustfluids | fce21992cc107aa553e83dd76b8d03ae90e990c7 | [
"BSD-3-Clause"
] | 2 | 2020-07-02T09:48:49.000Z | 2020-08-25T02:37:21.000Z | src/dustfluids/dustfluids_noCs_solver.cpp | PinghuiHuang/athena-pp-dustfluids | fce21992cc107aa553e83dd76b8d03ae90e990c7 | [
"BSD-3-Clause"
] | null | null | null | src/dustfluids/dustfluids_noCs_solver.cpp | PinghuiHuang/athena-pp-dustfluids | fce21992cc107aa553e83dd76b8d03ae90e990c7 | [
"BSD-3-Clause"
] | 1 | 2021-11-12T13:39:48.000Z | 2021-11-12T13:39:48.000Z | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 42.584071 | 102 | 0.593932 | PinghuiHuang |
72c1f3333c2bc79576dfeef27ab7985f0803b4e5 | 17,317 | cpp | C++ | src/Painless_Mesh/painlessMeshSync.cpp | jaafreitas/IoTmeshToy | bb6bc6b95415f87167ef7fbd489baef9e8829044 | [
"MIT"
] | 7 | 2017-05-04T02:49:02.000Z | 2019-08-01T19:17:46.000Z | src/Painless_Mesh/painlessMeshSync.cpp | jaafreitas/IoTmeshToy | bb6bc6b95415f87167ef7fbd489baef9e8829044 | [
"MIT"
] | null | null | null | src/Painless_Mesh/painlessMeshSync.cpp | jaafreitas/IoTmeshToy | bb6bc6b95415f87167ef7fbd489baef9e8829044 | [
"MIT"
] | 5 | 2017-04-26T01:07:09.000Z | 2020-09-17T15:29:57.000Z | #include "painlessMesh.h"
#include "painlessMeshSync.h"
#include "painlessMeshJson.h"
#include "time.h"
extern painlessMesh* staticThis;
uint32_t timeAdjuster = 0;
// timeSync Functions
//***********************************************************************
uint32_t ICACHE_FLASH_ATTR painlessMesh::getNodeTime(void... | 41.828502 | 162 | 0.620951 | jaafreitas |
72c3cbda03a0d09996564859542dafec9baa5ca8 | 8,128 | cpp | C++ | src/bin/settings.cpp | D7ry/valhallaCombat | 07929d29a48401c2878a1ed5993b7bba14743c6f | [
"MIT"
] | 1 | 2022-01-19T07:13:48.000Z | 2022-01-19T07:13:48.000Z | src/bin/settings.cpp | D7ry/valhallaCombat | 07929d29a48401c2878a1ed5993b7bba14743c6f | [
"MIT"
] | null | null | null | src/bin/settings.cpp | D7ry/valhallaCombat | 07929d29a48401c2878a1ed5993b7bba14743c6f | [
"MIT"
] | 1 | 2022-01-19T07:13:52.000Z | 2022-01-19T07:13:52.000Z | #include "include/stunHandler.h"
#include "include/settings.h"
#include "ValhallaCombat.hpp"
using namespace Utils;
void settings::ReadIntSetting(CSimpleIniA& a_ini, const char* a_sectionName, const char* a_settingName, uint32_t& a_setting) {
const char* bFound = nullptr;
bFound = a_ini.GetValue(a_sectionName, a_sett... | 45.155556 | 126 | 0.779405 | D7ry |
72c3fe1c2eb1c0d8e098ce9d2704980581650056 | 1,207 | cpp | C++ | ch_3/p3-5.cpp | bg2d/accelerated_cpp | a558d90090ceadeedd83e4726f6e7497219e9626 | [
"MIT"
] | null | null | null | ch_3/p3-5.cpp | bg2d/accelerated_cpp | a558d90090ceadeedd83e4726f6e7497219e9626 | [
"MIT"
] | null | null | null | ch_3/p3-5.cpp | bg2d/accelerated_cpp | a558d90090ceadeedd83e4726f6e7497219e9626 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
int main() {
const int NO_HOMEWORKS = 3;
std::vector<std::string> students;
std::vector<double> grades;
std::string name;
std::cout << "Please give the sutend's name: ";
while (std::cin >> name) {
students.push_back(name);
... | 28.069767 | 88 | 0.553438 | bg2d |
72c614948d1978a55a64a0988f3443249e92771e | 570 | hpp | C++ | src/miniframes/miniframe.hpp | helloer/polybobin | 63b2cea40d3afcfc9d6f62f49acbfacf6a8783e1 | [
"MIT"
] | 8 | 2016-10-06T11:49:14.000Z | 2021-11-06T21:06:36.000Z | src/miniframes/miniframe.hpp | helloer/polybobin | 63b2cea40d3afcfc9d6f62f49acbfacf6a8783e1 | [
"MIT"
] | 20 | 2017-04-25T14:23:02.000Z | 2018-12-04T22:46:04.000Z | src/miniframes/miniframe.hpp | helloer/polybobin | 63b2cea40d3afcfc9d6f62f49acbfacf6a8783e1 | [
"MIT"
] | 4 | 2018-07-04T00:14:41.000Z | 2018-07-17T09:08:25.000Z | #ifndef MINIFRAME_HPP
#define MINIFRAME_HPP
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/minifram.h>
/**
* \brief Generic mini frame with custom behavior.
*/
class MiniFrame: public wxMiniFrame
{
public:
MiniFrame(wxWindow *parent, wxWindowID id, const wxString &t... | 21.111111 | 119 | 0.659649 | helloer |
72c640e5c1c99d1e9d1492a77c840eb641a07413 | 121 | cpp | C++ | Source/QuarantineProject/Private/Inventory/QP_InventoryItem.cpp | AInsolence/QuarantineProject | 99e07b82edbf05510453822383d713602c4a3510 | [
"MIT"
] | 1 | 2021-08-28T04:07:58.000Z | 2021-08-28T04:07:58.000Z | Source/QuarantineProject/Private/Inventory/QP_InventoryItem.cpp | AInsolence/QuarantineProject | 99e07b82edbf05510453822383d713602c4a3510 | [
"MIT"
] | null | null | null | Source/QuarantineProject/Private/Inventory/QP_InventoryItem.cpp | AInsolence/QuarantineProject | 99e07b82edbf05510453822383d713602c4a3510 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Inventory/QP_InventoryItem.h"
| 24.2 | 78 | 0.793388 | AInsolence |
72c67f14cdc716bda06664835ca324a5ff1eb16b | 2,326 | cc | C++ | mindspore/lite/tools/converter/parser/onnx/onnx_random_normal_parser.cc | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | mindspore/lite/tools/converter/parser/onnx/onnx_random_normal_parser.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | mindspore/lite/tools/converter/parser/onnx/onnx_random_normal_parser.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 43.886792 | 115 | 0.715821 | httpsgithu |
72caad68f871dedd748f0ac8d3322bee3051eb4e | 5,680 | cpp | C++ | src/utils/MySqlPools.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | src/utils/MySqlPools.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | src/utils/MySqlPools.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 CERN
*
* 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 writ... | 26.542056 | 115 | 0.681514 | EricKTCheung |
72cecc7e5d7d83c7a40a07c1af0dd53f8fc53f4e | 12,655 | cpp | C++ | Settings.cpp | Bozebo/buddhabrot | 71bf4d971c0305e7ef063ebc7bb03b3eab88d81e | [
"Unlicense"
] | 1 | 2018-10-23T21:49:30.000Z | 2018-10-23T21:49:30.000Z | Settings.cpp | Bozebo/buddhabrot | 71bf4d971c0305e7ef063ebc7bb03b3eab88d81e | [
"Unlicense"
] | null | null | null | Settings.cpp | Bozebo/buddhabrot | 71bf4d971c0305e7ef063ebc7bb03b3eab88d81e | [
"Unlicense"
] | null | null | null | #include "Settings.h"
//the constructor sets up some workable defaults
Settings::Settings()
{
// ----- Orbits
//if an orbit has not been determined as being outside the set in at least this many iterations (n, AKA orbit depth), discard it
maxIts = 10000;
//if an orbit _has_ been determined as being o... | 27.391775 | 188 | 0.642197 | Bozebo |
72cf4197d08588a29618b64b9f8326a27d550bd8 | 2,649 | cpp | C++ | src/engine/memory/managermusic.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/engine/memory/managermusic.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/engine/memory/managermusic.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | #include "managermusic.hpp"
#ifdef _USE_MUSIC_
#include "../engine.hpp"
#define MAX_MUSIC_COUNT 105
ManagerMusic::ManagerMusic()
{
}
ManagerMusic::~ManagerMusic()
{
for(auto &i : data)
{
i.second.ptr->stop();
delete (i.second.ptr);
}
}
bool ManagerMusic::load(const std::string &name)
{
... | 19.195652 | 87 | 0.567761 | FoFabien |
72cfb271bfa82b0d5a733965b933eb1095e70d8b | 866 | hpp | C++ | Enemy.hpp | polinaucc/galaga | 6feea0a6a74669c5d3fa6e106653ceacda19b416 | [
"MIT"
] | null | null | null | Enemy.hpp | polinaucc/galaga | 6feea0a6a74669c5d3fa6e106653ceacda19b416 | [
"MIT"
] | null | null | null | Enemy.hpp | polinaucc/galaga | 6feea0a6a74669c5d3fa6e106653ceacda19b416 | [
"MIT"
] | null | null | null | #pragma once
#include "livingobject.hpp"
enum class EnemyType
{
green,
purple
};
class Enemy : public LivingObject
{
private:
mutable bool m_state;
mutable int m_counter;
EnemyType m_type;
protected:
shared_ptr<Sprite> m_sprite_b;
public:
Enemy(double x, double y, shared_ptr<Sprite> s1, shared_ptr<S... | 21.65 | 112 | 0.711316 | polinaucc |
72d46de2edec4d6e4375be7c006ac9b0ce47b791 | 16,952 | cc | C++ | common/test/symbolic_simplification_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 2 | 2021-02-25T02:01:02.000Z | 2021-03-17T04:52:04.000Z | common/test/symbolic_simplification_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | null | null | null | common/test/symbolic_simplification_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 1 | 2021-06-13T12:05:39.000Z | 2021-06-13T12:05:39.000Z | #include "drake/common/symbolic_simplification.h"
#include <functional>
#include <stdexcept>
#include <gtest/gtest.h>
#include "drake/common/test_utilities/symbolic_test_util.h"
namespace drake {
namespace symbolic {
namespace {
using std::function;
using std::runtime_error;
using test::ExprEqual;
class Symbolic... | 39.331787 | 80 | 0.663285 | RobotLocomotion |
72d87bc37bd77a2ba4912e02cbe84d9249aeecc9 | 1,387 | hpp | C++ | tvm_backend/tvm_backend.hpp | elvin-n/dldt_tools | d77b11aafc389f68305b2514db306c3c0b42cddf | [
"MIT"
] | 2 | 2020-06-20T02:54:37.000Z | 2020-07-17T04:38:26.000Z | tvm_backend/tvm_backend.hpp | elvin-nnov/dldt_tools | d77b11aafc389f68305b2514db306c3c0b42cddf | [
"MIT"
] | null | null | null | tvm_backend/tvm_backend.hpp | elvin-nnov/dldt_tools | d77b11aafc389f68305b2514db306c3c0b42cddf | [
"MIT"
] | 1 | 2020-02-11T14:21:32.000Z | 2020-02-11T14:21:32.000Z | // Copyright 2021 the dldt tools authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
#include "backend.hpp"
#include "tvm/runtime/module.h"
extern "C" {
Backend* createBackend();
}
class TVMBackend : public Backend {
public:
virtual bool loadModel(const std::string &model, c... | 30.822222 | 86 | 0.719539 | elvin-n |
72d977939da19ca1218598fd9ee399e38ef04eb7 | 3,090 | hpp | C++ | include/operations/CompoundOperation.hpp | TobiasPrie/qfr | 843db11651763ac3aecf10c9aa0dffebdd572055 | [
"MIT"
] | null | null | null | include/operations/CompoundOperation.hpp | TobiasPrie/qfr | 843db11651763ac3aecf10c9aa0dffebdd572055 | [
"MIT"
] | 1 | 2021-08-09T18:42:16.000Z | 2021-08-09T18:42:16.000Z | include/operations/CompoundOperation.hpp | TobiasPrie/qfr | 843db11651763ac3aecf10c9aa0dffebdd572055 | [
"MIT"
] | 1 | 2021-08-08T08:55:10.000Z | 2021-08-08T08:55:10.000Z | /*
* This file is part of IIC-JKU QFR library which is released under the MIT license.
* See file README.md or go to http://iic.jku.at/eda/research/quantum/ for more information.
*/
#ifndef INTERMEDIATEREPRESENTATION_COMPOUNDOPERATION_H
#define INTERMEDIATEREPRESENTATION_COMPOUNDOPERATION_H
#include "Operation.hpp... | 28.348624 | 166 | 0.653398 | TobiasPrie |
72db52bf57e9bd068259dc6b3f3ab19f284d8d9b | 529 | cpp | C++ | Exam_3/Program4.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | 1 | 2020-12-03T15:26:20.000Z | 2020-12-03T15:26:20.000Z | Exam_3/Program4.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | Exam_3/Program4.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | // Exam 3 - Program 4
/***
Write a C++ Program to find the 15 sequences of Fibonacci number.
**/
# include <iostream>
using namespace std;
int main(void) {
int Num1 = 0, Num2 = 1, Result = 0, Generation = 15;
cout << "\n\t This program finds the fibonacci number after the 15th generation \n";
while (Result <=... | 18.241379 | 85 | 0.642722 | othneildrew |
72dbb6b45ba77fcab92d7e0471026d4f4dea3b6a | 880 | hpp | C++ | ms29/classes/camera.hpp | LeeFoulger/ProxyDll | d8dd9e736055f3263ac8b1671d009c88dc4ecc04 | [
"MIT"
] | 1 | 2022-03-15T21:29:19.000Z | 2022-03-15T21:29:19.000Z | ms29/classes/camera.hpp | TwisterForPosterity/ProxyDll | d8dd9e736055f3263ac8b1671d009c88dc4ecc04 | [
"MIT"
] | null | null | null | ms29/classes/camera.hpp | TwisterForPosterity/ProxyDll | d8dd9e736055f3263ac8b1671d009c88dc4ecc04 | [
"MIT"
] | null | null | null | #pragma once
#include <Utils.hpp>
#include "../memory/local_types.hpp"
char __cdecl sub_553660_hook(uint8_t *a1)
{
auto result = ((char(__cdecl *)(uint8_t *))GetMainModule(0x153660))(a1);
auto fov = ((s_camera_definition*)a1)->Print(true, true, true, true)->field_of_view.Get();
auto new_val = fov < 90 ? Utils::Mat... | 29.333333 | 137 | 0.681818 | LeeFoulger |
72e10863746800a7ea27c702a72b860ec2265d9e | 1,510 | hh | C++ | Reference/HongLi/include/nrmatrix.hh | clwyatt/CTC | 284d52dc888bcd997214804715fe690149e33f85 | [
"BSD-3-Clause"
] | 1 | 2019-07-29T02:04:06.000Z | 2019-07-29T02:04:06.000Z | Reference/HongLi/include/nrmatrix.hh | clwyatt/CTC | 284d52dc888bcd997214804715fe690149e33f85 | [
"BSD-3-Clause"
] | null | null | null | Reference/HongLi/include/nrmatrix.hh | clwyatt/CTC | 284d52dc888bcd997214804715fe690149e33f85 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
File: nrmatrix.hh
Abstract: allocate a memory block for a matrix
Created: 09/2001
(C) 2002 by Wake Forest University School of Medicine
Last Revision ($Revision: 1.1.1.1 $)
by $Author: hongli $ on $Date: 2002/12/06 21:49:30 $
*************... | 28.490566 | 76 | 0.611921 | clwyatt |
72e38c593b970a20f3f17ed36bdbd27083e9fe86 | 7,612 | cc | C++ | syzygy/pdb/pdb_symbol_record_unittest.cc | StanMiller45/syzygy | 2320676a260ab3713c6a4b793ebefa2837cb766c | [
"Apache-2.0"
] | 1 | 2019-04-03T13:56:37.000Z | 2019-04-03T13:56:37.000Z | syzygy/pdb/pdb_symbol_record_unittest.cc | StanMiller45/syzygy | 2320676a260ab3713c6a4b793ebefa2837cb766c | [
"Apache-2.0"
] | null | null | null | syzygy/pdb/pdb_symbol_record_unittest.cc | StanMiller45/syzygy | 2320676a260ab3713c6a4b793ebefa2837cb766c | [
"Apache-2.0"
] | 1 | 2020-10-10T16:09:45.000Z | 2020-10-10T16:09:45.000Z | // Copyright 2012 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... | 35.240741 | 77 | 0.731083 | StanMiller45 |
72e51aaf39e64e9e4b543b50b1dd0e9cfb3b4208 | 1,179 | cpp | C++ | CODECHEF/FTRIP.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | CODECHEF/FTRIP.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | CODECHEF/FTRIP.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#define MAX 1010
using namespace std;
double Nr1[MAX],Nr2[MAX],Dr[MAX];
double nCr1(long long n,long long r)
{
Nr1[0] = 1.0;
for(int i=1;i<=r;i++)
Nr1[i] = (Nr1[i-1]*(n-i+1))/i;
}
double nCr2(long long n,l... | 19.327869 | 49 | 0.425785 | aqfaridi |
72e5e1c703489a3be21ed60b0d06e6fac3eda5f6 | 1,920 | cpp | C++ | src/clear_benchmark.cpp | jlakness-intel/backend-cpu-helib | ff74311abd749809b732f1f2f63fe78e245c726d | [
"Apache-2.0"
] | 1 | 2022-02-28T17:57:32.000Z | 2022-02-28T17:57:32.000Z | src/clear_benchmark.cpp | jlakness-intel/backend-cpu-helib | ff74311abd749809b732f1f2f63fe78e245c726d | [
"Apache-2.0"
] | 2 | 2021-12-06T19:37:42.000Z | 2021-12-16T23:37:53.000Z | src/clear_benchmark.cpp | jlakness-intel/backend-cpu-helib | ff74311abd749809b732f1f2f63fe78e245c726d | [
"Apache-2.0"
] | 1 | 2021-11-05T18:01:48.000Z | 2021-11-05T18:01:48.000Z |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <algorithm>
#include <cstring>
#include <memory>
#include <vector>
#include "../include/clear_benchmark.h"
#include "../include/clear_engine.h"
#include "../include/clear_error.h"
//------------------------
// class ExampleBench... | 37.647059 | 102 | 0.660417 | jlakness-intel |
72e72d422c2cffcc31d6228dc082f7c7d7bc23bb | 3,466 | cc | C++ | src/cable_plot_options_dialog.cc | Transmission-Line-Software/SpanAnalyzer | 37d5f1f849f4c11d83f767b5539845c18ddc371b | [
"Unlicense"
] | 4 | 2017-04-29T19:55:53.000Z | 2020-12-20T13:44:03.000Z | src/cable_plot_options_dialog.cc | Transmission-Line-Software/SpanAnalyzer | 37d5f1f849f4c11d83f767b5539845c18ddc371b | [
"Unlicense"
] | null | null | null | src/cable_plot_options_dialog.cc | Transmission-Line-Software/SpanAnalyzer | 37d5f1f849f4c11d83f767b5539845c18ddc371b | [
"Unlicense"
] | 1 | 2017-12-19T02:13:43.000Z | 2017-12-19T02:13:43.000Z | // This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org/>
#include "spananalyzer/cable_plot_options_dialog.h"
#include "wx/clrpicker.h"
#include "wx/spinctrl.h"
#include "wx/xrc/xmlres.h"
BEGIN_EVENT_TABLE(CablePlotOptionsDialog, wxDia... | 31.798165 | 78 | 0.772072 | Transmission-Line-Software |
72e85d40a6647b36be6c11d7eb5ef29e59a4e08b | 11,563 | cpp | C++ | lib/src/test/audioConverterTest.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | lib/src/test/audioConverterTest.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | lib/src/test/audioConverterTest.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "../audio/converter.hpp"
#include "gpu/testing.hpp"
namespace VideoStitch {
namespace Testing {
std::vector<std::vector<audioSample_t>> makeSamples(size_t nChannels) {
std::vector<std::vector<audioSample_t>> samples;
std::vector<... | 41.894928 | 111 | 0.626481 | tlalexander |
72e92440229ae9d7e56281842b6e9ffb5197ba45 | 1,109 | cpp | C++ | fog/Prim/PrimOstrstream.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | fog/Prim/PrimOstrstream.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | fog/Prim/PrimOstrstream.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | #include <Prim/PrimIncludeAll.h>
PrimOstrstream::PrimOstrstream()
:
_fixed_buffer(false),
_ends(false)
{}
PrimOstrstream::PrimOstrstream(char *fixedBuffer, int fixedSize, ios_base::openmode aMode)
:
Super(fixedBuffer, fixedSize, aMode),
_fixed_buffer(true),
_ends(false)
{}
PrimOstrstream::~PrimOstrstream()... | 15.191781 | 90 | 0.681695 | UltimateScript |
639229c35f0cc8371b20ad7e53135e49c4d6893f | 962 | hpp | C++ | Sources/SolarTears/Rendering/Vulkan/VulkanMemory.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | 4 | 2021-06-30T16:00:20.000Z | 2021-10-13T06:17:56.000Z | Sources/SolarTears/Rendering/Vulkan/VulkanMemory.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | Sources/SolarTears/Rendering/Vulkan/VulkanMemory.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <vulkan/vulkan.h>
#include "../../Logging/LoggerQueue.hpp"
#include "VulkanDeviceParameters.hpp"
#include <span>
namespace Vulkan
{
class MemoryManager
{
public:
enum class BufferAllocationType
{
DEVICE_LOCAL,
HOST_VISIBLE
};
MemoryManager(LoggerQueue* logger, VkPhysicalDevice ... | 29.151515 | 179 | 0.803534 | Sixshaman |
6395e57e1c318de9d4b5b5aba029b9c50177356b | 3,482 | cpp | C++ | src/StepLibrary/Leaker.cpp | dale-wilson/HSQueue | 04d01ed42707069d28e81b5494aba61904e6e591 | [
"BSD-3-Clause"
] | 2 | 2015-12-29T17:33:25.000Z | 2021-12-20T02:30:44.000Z | src/StepLibrary/Leaker.cpp | dale-wilson/HighQueue | 04d01ed42707069d28e81b5494aba61904e6e591 | [
"BSD-3-Clause"
] | null | null | null | src/StepLibrary/Leaker.cpp | dale-wilson/HighQueue | 04d01ed42707069d28e81b5494aba61904e6e591 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2015 Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#include <Steps/StepPch.hpp>
#include "Leaker.hpp"
#include <Steps/StepFactory.hpp>
#include <Steps/SharedResources.hpp>
#include <Steps/Configuration.hpp>
#include <HighQueue/MemoryPool.hpp>
u... | 24.180556 | 139 | 0.571511 | dale-wilson |
6398898050a0be2343b5d84dee818f662871c7b0 | 1,528 | cpp | C++ | isis/src/base/objs/PrincipalComponentAnalysis/unitTest.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | 1 | 2019-10-13T15:31:33.000Z | 2019-10-13T15:31:33.000Z | isis/src/base/objs/PrincipalComponentAnalysis/unitTest.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | null | null | null | isis/src/base/objs/PrincipalComponentAnalysis/unitTest.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | 1 | 2021-07-12T06:05:03.000Z | 2021-07-12T06:05:03.000Z | #include <iostream>
#include "PrincipalComponentAnalysis.h"
#include "Preference.h"
using namespace std;
double Round(double n);
int main(int argc, char *argv[]) {
Isis::Preference::Preferences(true);
int n = 10;
int k = 3;
Isis::PrincipalComponentAnalysis pca(k);
double original[k*n];
for(int i = 0; i... | 21.828571 | 75 | 0.507853 | ihumphrey-usgs |
6398902ff4ec5ba793b8f209850e794e7954368c | 849 | cpp | C++ | examples/with_json_cpp_be/cppbackend.cpp | jnietol/bppgrid | 71efe785a262c5ce4438be2452308499cec45ac9 | [
"MIT"
] | 59 | 2019-11-04T11:19:35.000Z | 2022-02-28T13:15:54.000Z | examples/with_json_cpp_be/cppbackend.cpp | jnietol/bppgrid | 71efe785a262c5ce4438be2452308499cec45ac9 | [
"MIT"
] | 7 | 2020-03-16T15:41:49.000Z | 2022-01-10T08:42:14.000Z | examples/with_json_cpp_be/cppbackend.cpp | jnietol/bppgrid | 71efe785a262c5ce4438be2452308499cec45ac9 | [
"MIT"
] | 10 | 2019-11-05T04:38:57.000Z | 2022-02-15T13:22:21.000Z | #include "cppbackend.h"
#include <QVariantMap>
#include <QColor>
CppBackend::CppBackend(QObject *parent) : QObject(parent)
{
}
QVariantList CppBackend::getData(int whatTab)
{
QVariantList records;
int numRecs(10);
for(int iRec = 0; iRec<numRecs; iRec++){
QVariantMap record;
int r(0), g... | 19.744186 | 79 | 0.515901 | jnietol |
6399098dadb69348216d3863c1a2c08b94ecde2a | 1,983 | cpp | C++ | Inchworm/src/__deprecated/KtreeKmerCounter.cpp | genome-vendor/trinity | edf531351bf5c244ae699d0ad69348a249900cce | [
"BSD-3-Clause"
] | 4 | 2015-02-10T06:56:03.000Z | 2021-06-30T23:33:07.000Z | Inchworm/src/__deprecated/KtreeKmerCounter.cpp | genome-vendor/trinity | edf531351bf5c244ae699d0ad69348a249900cce | [
"BSD-3-Clause"
] | null | null | null | Inchworm/src/__deprecated/KtreeKmerCounter.cpp | genome-vendor/trinity | edf531351bf5c244ae699d0ad69348a249900cce | [
"BSD-3-Clause"
] | 7 | 2015-03-24T14:23:58.000Z | 2020-01-15T16:54:10.000Z | #include <stdlib.h>
#include "Fasta_reader.hpp"
#include "Fasta_entry.hpp"
#include "string_util.hpp"
#include "sequenceUtil.hpp"
#include "argProcessor.hpp"
#include <string>
#include <iostream>
#include <sstream>
#include "Ktree.hpp"
int run(int argc, char* argv[]);
int main (int argc, char* argv[]) {
try {
... | 20.030303 | 89 | 0.475038 | genome-vendor |
639c035b8fa2958a6d4d18fff0b7366fe04bdabc | 21,588 | cpp | C++ | src/utils/crc.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 149 | 2017-10-16T03:24:58.000Z | 2022-03-25T02:29:13.000Z | src/utils/crc.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 297 | 2017-10-19T03:23:34.000Z | 2022-03-17T08:00:12.000Z | src/utils/crc.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 63 | 2017-10-19T01:55:27.000Z | 2022-03-09T11:09:00.000Z | #include <cstdio>
#include <dsn/utility/crc.h>
namespace dsn {
namespace utils {
template <typename uintxx_t, uintxx_t uPoly>
struct crc_generator
{
typedef uintxx_t uint;
static const uintxx_t MSB = ((uintxx_t)1) << (8 * sizeof(uintxx_t) - 1);
static const uintxx_t POLY = uPoly;
static uintxx_t _crc_... | 47.342105 | 100 | 0.659765 | acelyc111 |
639ee49b13bd12ebaa335be234d65a7351ce96c6 | 5,965 | cpp | C++ | engine/screens/source/SkillsScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/screens/source/SkillsScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/screens/source/SkillsScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "Conversion.hpp"
#include "Game.hpp"
#include "SkillsScreen.hpp"
#include "OptionsComponent.hpp"
#include "Prompt.hpp"
#include "Setting.hpp"
#include "TextComponent.hpp"
#include "PromptTextKeys.hpp"
#include "SkillTextKeys.hpp"
using namespace std;
SkillsScreen::SkillsScreen(DisplayPtr new_display, Creatur... | 38.733766 | 271 | 0.713495 | prolog |
63a4210799bd8d6f40449da376383e4f84bd4194 | 432 | cpp | C++ | src/uTensor/core/TensorMap.cpp | victorromeo/uTensor | 1d8866e03469c220a57075473bd102b010a47832 | [
"Apache-2.0"
] | 1,047 | 2017-12-30T06:46:01.000Z | 2022-03-30T05:03:20.000Z | src/uTensor/core/TensorMap.cpp | victorromeo/uTensor | 1d8866e03469c220a57075473bd102b010a47832 | [
"Apache-2.0"
] | 115 | 2018-01-15T12:55:36.000Z | 2021-11-20T19:33:20.000Z | src/uTensor/core/TensorMap.cpp | victorromeo/uTensor | 1d8866e03469c220a57075473bd102b010a47832 | [
"Apache-2.0"
] | 171 | 2017-12-30T17:14:17.000Z | 2022-03-23T12:45:32.000Z | #include "TensorMap.hpp"
namespace uTensor {
const uTensor::string not_found_string("NotFound");
Tensor not_found_tensor(nullptr);
SimpleNamedTensor TensorMapInterface::not_found(not_found_string,
not_found_tensor);
bool compare_named_tensors(const SimpleNamedTensor& a... | 27 | 66 | 0.659722 | victorromeo |
63a974f6d5ddfe16817972bce4142908cbd862ff | 684 | hpp | C++ | include/eve/detail/function/iota.hpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | include/eve/detail/function/iota.hpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | include/eve/detail/function/iota.hpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 22.8 | 100 | 0.44883 | clayne |
63aa836274d91d000c85c4ee6c9a7173b7110b00 | 1,832 | cpp | C++ | src/gameworld/gameworld/effect/skilleffect/effecthurtinc.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/effect/skilleffect/effecthurtinc.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/effect/skilleffect/effecthurtinc.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #include "effecthurtinc.hpp"
EffectIncHurt::EffectIncHurt()
: m_effect_time(0), m_inc_percent_to_role(0), m_inc_percent_to_monster(0)
{
}
EffectIncHurt::EffectIncHurt(ObjID deliverer, UInt16 skill, int effect_time, char product_level, char product_method)
: EffectBase(deliverer, skill, product_method, product_le... | 23.487179 | 121 | 0.76583 | mage-game |
63ad29d2ee1449c72db677003213e9f5e95137f9 | 684 | cpp | C++ | test/throw/main.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 1 | 2020-10-01T14:52:45.000Z | 2020-10-01T14:52:45.000Z | test/throw/main.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 3 | 2020-06-19T01:24:51.000Z | 2020-07-16T14:00:30.000Z | test/throw/main.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
class Sales_item
{
friend istream& operator>>(istream &, Sales_item &);
public:
Sales_item() = default;
int isbn()
{
return bookNo;
}
private:
int bookNo;
};
istream &operator >>(istream &i... | 14.869565 | 60 | 0.511696 | 6923403 |
63ae9da6e245da243f3329b10098605095f3db33 | 2,924 | cpp | C++ | cpp/metaspore/dense_tensor_partition.cpp | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | 32 | 2022-03-30T10:24:00.000Z | 2022-03-31T16:19:15.000Z | cpp/metaspore/dense_tensor_partition.cpp | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | null | null | null | cpp/metaspore/dense_tensor_partition.cpp | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | 3 | 2022-03-30T10:28:57.000Z | 2022-03-30T11:37:39.000Z | //
// Copyright 2022 DMetaSoul
//
// 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... | 35.228916 | 93 | 0.685021 | meta-soul |
63b5456b7e18ed31a2746f75fc4a5591ee10080f | 1,833 | cpp | C++ | MSCL/source/mscl/MicroStrain/MIP/Commands/GetDeviceInfo.cpp | offworld-projects/MSCL | 8388e97c92165e16c26c554aadf1e204ebcf93cf | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | 53 | 2015-08-28T02:41:41.000Z | 2022-03-03T07:50:53.000Z | MSCL/source/mscl/MicroStrain/MIP/Commands/GetDeviceInfo.cpp | offworld-projects/MSCL | 8388e97c92165e16c26c554aadf1e204ebcf93cf | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | 209 | 2015-09-30T19:36:11.000Z | 2022-03-04T21:52:20.000Z | MSCL/source/mscl/MicroStrain/MIP/Commands/GetDeviceInfo.cpp | offworld-projects/MSCL | 8388e97c92165e16c26c554aadf1e204ebcf93cf | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | 55 | 2015-09-03T14:40:01.000Z | 2022-02-04T02:02:01.000Z | /*******************************************************************************
Copyright(c) 2015-2021 Parker Hannifin Corp. All rights reserved.
MIT Licensed. See the included LICENSE.txt for a copy of the full MIT License.
*******************************************************************************/
#include "st... | 32.732143 | 108 | 0.629023 | offworld-projects |
63c0be814da62e4c04ee99599a46e5f60cac9ce2 | 1,701 | hpp | C++ | src/cpp-utility/perf/PerfCounter.hpp | toschmidt/cpp-utility | d58f3a0af32700b742a96143dfee97144dc7c8ce | [
"MIT"
] | 1 | 2021-03-26T19:08:59.000Z | 2021-03-26T19:08:59.000Z | src/cpp-utility/perf/PerfCounter.hpp | toschmidt/cpp-utility | d58f3a0af32700b742a96143dfee97144dc7c8ce | [
"MIT"
] | null | null | null | src/cpp-utility/perf/PerfCounter.hpp | toschmidt/cpp-utility | d58f3a0af32700b742a96143dfee97144dc7c8ce | [
"MIT"
] | null | null | null | #pragma once
#include <cpp-utility/compiler/CompilerHints.hpp>
#include <cstring>
#include <linux/perf_event.h>
#include <sys/ioctl.h>
#include <syscall.h>
#include <unistd.h>
namespace utility::perf {
using PerfConfig = std::pair<uint64_t, uint64_t>;
class PerfCounter {
private:
struct alignas(32)... | 27.435484 | 90 | 0.607878 | toschmidt |
63c45fa8fb0774d276b527ae33646d95bae1f4a1 | 2,918 | cpp | C++ | src/mame/drivers/vt_unknown.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/vt_unknown.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/vt_unknown.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:David Haywood
// unknown platform capable of running high resolution NES games (VT268?)
// is the dump good? can't locate any code, some 0x80000 blocks have what might be vectors at the end, but non-standard?
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "screen... | 28.057692 | 212 | 0.754969 | Robbbert |
63c644f7528d19adcb36891b9e9eb0be17cf9726 | 806 | cpp | C++ | tests/omphost/host_bug_libomp.cpp | ye-luo/openmp-target | f042e9d255b521e07ca32fe08799e736d4b1c70c | [
"BSD-3-Clause"
] | 5 | 2020-02-14T03:32:58.000Z | 2021-06-21T18:13:02.000Z | tests/omphost/host_bug_libomp.cpp | ye-luo/openmp-target | f042e9d255b521e07ca32fe08799e736d4b1c70c | [
"BSD-3-Clause"
] | 1 | 2020-02-24T01:48:06.000Z | 2020-02-24T01:48:57.000Z | tests/omphost/host_bug_libomp.cpp | ye-luo/openmp-target | f042e9d255b521e07ca32fe08799e736d4b1c70c | [
"BSD-3-Clause"
] | 4 | 2020-05-20T16:04:10.000Z | 2021-06-22T20:06:39.000Z | #include <iostream>
#ifdef _OPENMP
#include <omp.h>
#else
int omp_get_thread_num() { return 1; }
#endif
int main()
{
const int size = 4;
int wrong_counts = 0;
#pragma omp parallel reduction(+:wrong_counts)
{
int A[size];
for(int i = 0; i < size; i++)
A[i] = 0;
#pragma omp target teams distri... | 19.190476 | 65 | 0.514888 | ye-luo |
63c7133a66a1680e54953472443ad5aebcc1a164 | 3,784 | cpp | C++ | test/function/scalar/cospi.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | test/function/scalar/cospi.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | test/function/scalar/cospi.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
Copyright 2015 NumScale SAS
Copyright 2015 J.T. Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//=====... | 34.4 | 100 | 0.634514 | yaeldarmon |