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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
215e2ba19080e1f82bcc2a2e33d9b5e21c576525 | 1,538 | cc | C++ | fhiclcpp/test/types/searchAllowedConfiguration_t.cc | art-framework-suite/fhicl-cpp | 302a8ca52dba4b922812ead406599cd535676252 | [
"BSD-3-Clause"
] | null | null | null | fhiclcpp/test/types/searchAllowedConfiguration_t.cc | art-framework-suite/fhicl-cpp | 302a8ca52dba4b922812ead406599cd535676252 | [
"BSD-3-Clause"
] | 2 | 2021-12-10T14:54:24.000Z | 2022-03-25T16:33:23.000Z | fhiclcpp/test/types/searchAllowedConfiguration_t.cc | art-framework-suite/fhicl-cpp | 302a8ca52dba4b922812ead406599cd535676252 | [
"BSD-3-Clause"
] | null | null | null | #define BOOST_TEST_MODULE (search allowed configuration test)
#include "boost/test/unit_test.hpp"
#include "fhiclcpp/types/Atom.h"
#include "fhiclcpp/types/Sequence.h"
#include "fhiclcpp/types/Table.h"
#include "fhiclcpp/types/Tuple.h"
#include "fhiclcpp/types/detail/SearchAllowedConfiguration.h"
#include <string>
... | 26.982456 | 61 | 0.708062 | art-framework-suite |
216191eae850363824975047adbcbd028eb99cc8 | 13,627 | hpp | C++ | engine/common/ShadersGL.hpp | ColinGilbert/noobwerkz-engine | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 23 | 2015-03-02T10:56:40.000Z | 2021-01-27T03:32:49.000Z | engine/common/ShadersGL.hpp | ColinGilbert/noobwerkz-engine-borked | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 73 | 2015-04-14T09:39:05.000Z | 2020-11-11T21:49:10.000Z | engine/common/ShadersGL.hpp | ColinGilbert/noobwerkz-engine-borked | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 3 | 2016-02-22T01:29:32.000Z | 2018-01-02T06:07:12.000Z | #pragma once
namespace noob
{
namespace glsl
{
////////////////////////////////////////////////////////////
// Extremely useful for getting rid of shader conditionals
////////////////////////////////////////////////////////////
// http://theorangeduck.com/page/avoiding-shader-conditionals
static const std... | 44.825658 | 149 | 0.488736 | ColinGilbert |
2167af865b1236cabbe027af392640cc9abe4441 | 981 | cpp | C++ | ch15/test15_5.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | 3 | 2019-09-21T13:03:57.000Z | 2020-04-05T02:42:53.000Z | ch15/test15_5.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | null | null | null | ch15/test15_5.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | null | null | null | /*************************************************************************
> File Name: test15_5.cpp
> Author: shenzhuo
> Mail: im.shenzhuo@gmail.com
> Created Time: 2019年09月19日 星期四 09时59分30秒
************************************************************************/
#include<iostream>
using namespace ... | 17.210526 | 74 | 0.490316 | imshenzhuo |
216aa3a32caa8ada6f2adda842ffc176e2b4676a | 1,491 | cpp | C++ | libnd4j/include/helpers/impl/ProviderRNG.cpp | KolyaIvankov/deeplearning4j | 61c02d31fa950259d7458a021de7db167a3410ae | [
"Apache-2.0"
] | null | null | null | libnd4j/include/helpers/impl/ProviderRNG.cpp | KolyaIvankov/deeplearning4j | 61c02d31fa950259d7458a021de7db167a3410ae | [
"Apache-2.0"
] | null | null | null | libnd4j/include/helpers/impl/ProviderRNG.cpp | KolyaIvankov/deeplearning4j | 61c02d31fa950259d7458a021de7db167a3410ae | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 28.673077 | 101 | 0.625755 | KolyaIvankov |
2173d652f61867037b50442277f36bca9603f213 | 2,651 | cpp | C++ | libs/lfd/src/resource_file.cpp | tiaanl/red5 | ea7593b38f61f64f8aeb7d58854106bd58c05736 | [
"MIT"
] | 1 | 2020-11-24T13:26:11.000Z | 2020-11-24T13:26:11.000Z | libs/lfd/src/resource_file.cpp | tiaanl/red5 | ea7593b38f61f64f8aeb7d58854106bd58c05736 | [
"MIT"
] | null | null | null | libs/lfd/src/resource_file.cpp | tiaanl/red5 | ea7593b38f61f64f8aeb7d58854106bd58c05736 | [
"MIT"
] | null | null | null | #include "lfd/resource_file.h"
#include <base/streams/file_input_stream.h>
#include <base/streams/file_output_stream.h>
std::vector<ResourceEntry> ResourceFile::loadEntries() const {
if (!std::filesystem::exists(m_path)) {
spdlog::error("Resource file not found: {}", m_path.string());
return {};
}
spdl... | 29.786517 | 102 | 0.6639 | tiaanl |
2175d53d0705dd963399a9aa73bb84b81a9ecb1c | 1,056 | cpp | C++ | source/System/ThreadPool/ThreadPool.cpp | Fabrice-Praxinos/ULIS | 232ad5c0804da1202d8231fda67ff4aea70f57ef | [
"RSA-MD"
] | 30 | 2020-09-16T17:39:36.000Z | 2022-02-17T08:32:53.000Z | source/System/ThreadPool/ThreadPool.cpp | Fabrice-Praxinos/ULIS | 232ad5c0804da1202d8231fda67ff4aea70f57ef | [
"RSA-MD"
] | 7 | 2020-11-23T14:37:15.000Z | 2022-01-17T11:35:32.000Z | source/System/ThreadPool/ThreadPool.cpp | Fabrice-Praxinos/ULIS | 232ad5c0804da1202d8231fda67ff4aea70f57ef | [
"RSA-MD"
] | 5 | 2020-09-17T00:39:14.000Z | 2021-08-30T16:14:07.000Z | // IDDN FR.001.250001.004.S.X.2019.000.00000
// ULIS is subject to copyright laws and is the legal and intellectual property of Praxinos,Inc
/*
* ULIS
*__________________
* @file ThreadPool.cpp
* @author Clement Berthaud
* @brief This file provides the definition for the FThreadPool class.
* @cop... | 19.924528 | 95 | 0.726326 | Fabrice-Praxinos |
217ba72be5dff268cda027470b84457415138e80 | 5,641 | hpp | C++ | rmf_traffic/include/rmf_traffic/schedule/Patch.hpp | methylDragon/rmf_core | 4099921bea576c2fde87c3dc852cc4d8f86a5d1a | [
"Apache-2.0"
] | 109 | 2019-10-31T02:02:50.000Z | 2022-03-30T04:42:19.000Z | rmf_traffic/include/rmf_traffic/schedule/Patch.hpp | methylDragon/rmf_core | 4099921bea576c2fde87c3dc852cc4d8f86a5d1a | [
"Apache-2.0"
] | 155 | 2019-11-15T04:43:31.000Z | 2021-04-22T09:45:32.000Z | rmf_traffic/include/rmf_traffic/schedule/Patch.hpp | methylDragon/rmf_core | 4099921bea576c2fde87c3dc852cc4d8f86a5d1a | [
"Apache-2.0"
] | 51 | 2019-10-31T11:30:34.000Z | 2022-01-27T03:07:01.000Z | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... | 32.41954 | 80 | 0.70413 | methylDragon |
217f4eea802c216218e09170d96722b90697c39b | 7,191 | cpp | C++ | test/state_machine_test.cpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 139 | 2020-08-17T20:10:24.000Z | 2022-03-28T12:22:44.000Z | test/state_machine_test.cpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 89 | 2020-08-28T16:41:01.000Z | 2022-03-28T19:10:49.000Z | test/state_machine_test.cpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 19 | 2020-10-19T00:54:40.000Z | 2022-02-28T05:34:17.000Z | #include <rive/core/binary_reader.hpp>
#include <rive/file.hpp>
#include <rive/animation/state_machine_bool.hpp>
#include <rive/animation/state_machine_layer.hpp>
#include <rive/animation/animation_state.hpp>
#include <rive/animation/entry_state.hpp>
#include <rive/animation/state_transition.hpp>
#include <rive/animati... | 32.686364 | 77 | 0.695175 | kariem2k |
2186f8dcb78f27fa11418cdb0781536905738bba | 1,408 | cpp | C++ | tcp_async_server.cpp | opensvn/boost_learning | 7f21551a7f3db38bea2c31d95d0c8b4e00f4537e | [
"BSL-1.0"
] | null | null | null | tcp_async_server.cpp | opensvn/boost_learning | 7f21551a7f3db38bea2c31d95d0c8b4e00f4537e | [
"BSL-1.0"
] | null | null | null | tcp_async_server.cpp | opensvn/boost_learning | 7f21551a7f3db38bea2c31d95d0c8b4e00f4537e | [
"BSL-1.0"
] | 1 | 2021-10-01T04:27:44.000Z | 2021-10-01T04:27:44.000Z | #include <iostream>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
using namespace std;
using namespace boost::asio;
class server
{
private:
io_service &ios;
ip::tcp::acceptor acceptor;
typedef boost::shared_ptr<ip::tcp::socket> sock_pt;
public:
server(io_service& ... | 22.349206 | 95 | 0.534801 | opensvn |
219f4474b7a0e490495e53119708bdffb0737351 | 950 | cpp | C++ | test/linux/main.cpp | 77Z/Shadow-Engine | a07121d56dcf71a040580e9d4e563f36a70123a3 | [
"MIT"
] | 3 | 2020-08-31T20:38:54.000Z | 2021-06-17T12:31:44.000Z | test/linux/main.cpp | 77Z/Shadow-Engine | a07121d56dcf71a040580e9d4e563f36a70123a3 | [
"MIT"
] | 3 | 2020-08-31T19:08:43.000Z | 2022-03-25T19:11:50.000Z | test/linux/main.cpp | 77Z/Shadow-Engine | a07121d56dcf71a040580e9d4e563f36a70123a3 | [
"MIT"
] | null | null | null | //Copyright © Vince Richter 2020
//Copyright © 77Z™ 2020
#include "main.h"
void print(std::string text) {
std::cout << text << std::endl;
}
inline bool exists(const std::string& name) {
struct stat buffer;
return (stat (name.c_str(), &buffer) == 0);
}
int main() {
print("Running Lin... | 21.111111 | 68 | 0.532632 | 77Z |
21a16fb2c835e0de58984b52ed7b0ce6a9144ce8 | 6,168 | cpp | C++ | source/function.cpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 27 | 2020-06-05T15:39:31.000Z | 2022-01-07T05:03:01.000Z | source/function.cpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 1 | 2021-02-12T04:51:40.000Z | 2021-02-12T04:51:40.000Z | source/function.cpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 4 | 2021-02-12T04:39:55.000Z | 2021-11-15T08:00:06.000Z | #include "../engine/function.hpp"
#include "../engine/engine.hpp"
#include "../engine/core/operation_base.hpp"
namespace zhetapi {
// Static variables
Engine *Function::shared_context = new Engine();
double Function::h = 0.0001;
// Methods
// TODO: use macro
ZHP_TOKEN_METHOD(ftn_deriv_method)
{
// TODO: remove as... | 19.769231 | 88 | 0.645266 | Venkster123 |
21a19ad1a17a1917353ab7501f275153fac025e1 | 20,888 | cc | C++ | src/benchmark.cc | mtrofin/benchmark | 99cfbdd53357477fb328aa54d271178911bd2a84 | [
"Apache-2.0"
] | null | null | null | src/benchmark.cc | mtrofin/benchmark | 99cfbdd53357477fb328aa54d271178911bd2a84 | [
"Apache-2.0"
] | null | null | null | src/benchmark.cc | mtrofin/benchmark | 99cfbdd53357477fb328aa54d271178911bd2a84 | [
"Apache-2.0"
] | null | null | null | // Copyright 2015 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.463497 | 80 | 0.69121 | mtrofin |
426f8c942f3ef9d9433a3321aedf5ad1d7a5757f | 1,819 | cpp | C++ | ibp_external__libtommatch_set01__bn_mp_clamp.cpp | dmitry-lipetsk/libtommath-for-ibprovider--set01 | b7b8e7cf76bd0b2d265d0c31a99836a3b4bad882 | [
"WTFPL"
] | null | null | null | ibp_external__libtommatch_set01__bn_mp_clamp.cpp | dmitry-lipetsk/libtommath-for-ibprovider--set01 | b7b8e7cf76bd0b2d265d0c31a99836a3b4bad882 | [
"WTFPL"
] | null | null | null | ibp_external__libtommatch_set01__bn_mp_clamp.cpp | dmitry-lipetsk/libtommath-for-ibprovider--set01 | b7b8e7cf76bd0b2d265d0c31a99836a3b4bad882 | [
"WTFPL"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
#include <_pch_.h>
#pragma hdrstop
#include "source/external/libtommath/set01/ibp_external__libtommatch_set01__tommath_private.h"
namespace ibp{namespace external{namespace libtommath{namespace set01{
////////////////////////////////////... | 24.581081 | 94 | 0.601979 | dmitry-lipetsk |
42768a0b65d6e98e69e348eb23106fa73cff1c2a | 741 | cc | C++ | base/at_exit.cc | Arpan-2109/caroline | 23aba9ac9a35697c02358aeb88ed121d3d97a99c | [
"MIT"
] | 1 | 2017-07-27T15:08:19.000Z | 2017-07-27T15:08:19.000Z | base/at_exit.cc | Arpan-2109/caroline | 23aba9ac9a35697c02358aeb88ed121d3d97a99c | [
"MIT"
] | null | null | null | base/at_exit.cc | Arpan-2109/caroline | 23aba9ac9a35697c02358aeb88ed121d3d97a99c | [
"MIT"
] | 1 | 2020-10-01T08:46:10.000Z | 2020-10-01T08:46:10.000Z | // Copyright (c) 2014 The Caroline authors. All rights reserved.
// Use of this source file is governed by a MIT license that can be found in the
// LICENSE file.
// @author Aleksandr Derbenev <13alexac@gmail.com>
#include "base/at_exit.h"
namespace base {
AtExitManager* AtExitManager::instance_ = nullptr;
AtExitMa... | 22.454545 | 80 | 0.735493 | Arpan-2109 |
428076b9e4ff076bd95fb24def4b4ac59b016772 | 2,905 | inl | C++ | Engine/Core/Headers/Molten/Renderer/Shader/Visual/VisualShaderConstant.inl | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 2 | 2019-11-11T21:17:14.000Z | 2019-11-11T22:07:26.000Z | Engine/Core/Headers/Molten/Renderer/Shader/Visual/VisualShaderConstant.inl | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | null | null | null | Engine/Core/Headers/Molten/Renderer/Shader/Visual/VisualShaderConstant.inl | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 1 | 2020-04-05T03:50:57.000Z | 2020-04-05T03:50:57.000Z | /*
* MIT License
*
* Copyright (c) 2021 Jimmie Bergmann
*
* 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, m... | 28.203883 | 80 | 0.67642 | jimmiebergmann |
4282699a05745276022b2dfd0b68112ee07565d8 | 2,255 | cpp | C++ | src/Hola_Common/src/Base/ShaderCompiler.cpp | dfnzhc/Hola | d0fd46e9966baafd03c994e49efaa3dd8057309e | [
"MIT"
] | null | null | null | src/Hola_Common/src/Base/ShaderCompiler.cpp | dfnzhc/Hola | d0fd46e9966baafd03c994e49efaa3dd8057309e | [
"MIT"
] | null | null | null | src/Hola_Common/src/Base/ShaderCompiler.cpp | dfnzhc/Hola | d0fd46e9966baafd03c994e49efaa3dd8057309e | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ShaderCompiler.h"
#include "Misc/Misc.h"
//--------------------------------------------------------------------------------------
// 哈希一串源代码,并在它的 #include 文件中递归
//--------------------------------------------------------------------------------------
size_t HashShaderString(const char *pR... | 29.285714 | 89 | 0.2949 | dfnzhc |
4285112808835de0c0cd70175a6e99999ba1b8b8 | 1,852 | cpp | C++ | modules/task_2/vodeneev_m_broadcast/ops_mpi.cpp | Vodeneev/pp_2020_autumn_math | 9b7e5ec56e09474c9880810a6124e3e416bb7e16 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/vodeneev_m_broadcast/ops_mpi.cpp | Vodeneev/pp_2020_autumn_math | 9b7e5ec56e09474c9880810a6124e3e416bb7e16 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/vodeneev_m_broadcast/ops_mpi.cpp | Vodeneev/pp_2020_autumn_math | 9b7e5ec56e09474c9880810a6124e3e416bb7e16 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 Mikhail Vodeneev
#include <mpi.h>
#include <math.h>
#include <random>
#include <ctime>
#include <vector>
#include <algorithm>
#include "../../../modules/test_tasks/test_mpi/ops_mpi.h"
int Bcast(void* buffer, int count,
MPI_Datatype datatype, int root, MPI_Comm comm) {
int size, rank... | 25.369863 | 80 | 0.513499 | Vodeneev |
42875ddf68b8e6e231f1c34c497127cff79de585 | 3,214 | hpp | C++ | src/Engine/Renderer/Renderers/DebugRender.hpp | david49az/Radium-Engine | 2600039e5c0658057b8b35f79222a332feceb026 | [
"Apache-2.0"
] | 1 | 2021-02-03T17:47:04.000Z | 2021-02-03T17:47:04.000Z | src/Engine/Renderer/Renderers/DebugRender.hpp | david49az/Radium-Engine | 2600039e5c0658057b8b35f79222a332feceb026 | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/Renderers/DebugRender.hpp | david49az/Radium-Engine | 2600039e5c0658057b8b35f79222a332feceb026 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Engine/RaEngine.hpp>
#include <memory>
#include <vector>
#include <Core/Containers/VectorArray.hpp>
#include <Core/Types.hpp>
#include <Core/Utils/Color.hpp>
#include <Core/Utils/Singleton.hpp>
namespace Ra {
namespace Engine {
class ShaderProgram;
class AttribArrayDisplayable;
} // namespace... | 30.903846 | 99 | 0.645924 | david49az |
4289fc2aa5fd2402e2a86bec3fa4524c70cf973e | 4,556 | cpp | C++ | rtc_stack/utils/Worker.cpp | anjisuan783/media_lib | c09c7d48f495a803df79e39cf837bbcb1320ceb8 | [
"MIT"
] | 9 | 2022-01-07T03:10:45.000Z | 2022-03-31T03:29:02.000Z | rtc_stack/utils/Worker.cpp | anjisuan783/mia | c09c7d48f495a803df79e39cf837bbcb1320ceb8 | [
"MIT"
] | 16 | 2021-12-17T08:32:57.000Z | 2022-03-10T06:16:14.000Z | rtc_stack/utils/Worker.cpp | anjisuan783/media_lib | c09c7d48f495a803df79e39cf837bbcb1320ceb8 | [
"MIT"
] | 1 | 2022-02-21T15:47:21.000Z | 2022-02-21T15:47:21.000Z | #include "./Worker.h"
#include <algorithm>
#include <memory>
#include "myrtc/api/default_task_queue_factory.h"
#include "myrtc/rtc_base/to_queued_task.h"
namespace wa {
bool ScheduledTaskReference::isCancelled() {
return cancelled_;
}
void ScheduledTaskReference::cancel() {
cancelled_ = true;
}
//////////////... | 28.298137 | 92 | 0.628402 | anjisuan783 |
428b536e834ccef6abc90d9128f9c7ae8b192e75 | 15,383 | cpp | C++ | test/unit_tests/test_duration.cpp | slavslav/sydevs | 3106c38d327be652638bd8bd75dbe02c938800e5 | [
"Apache-2.0"
] | 26 | 2018-04-24T23:47:58.000Z | 2021-05-27T16:56:27.000Z | test/unit_tests/test_duration.cpp | slavslav/sydevs | 3106c38d327be652638bd8bd75dbe02c938800e5 | [
"Apache-2.0"
] | 2 | 2018-08-13T23:49:55.000Z | 2020-03-27T21:09:47.000Z | test/unit_tests/test_duration.cpp | slavslav/sydevs | 3106c38d327be652638bd8bd75dbe02c938800e5 | [
"Apache-2.0"
] | 9 | 2018-08-29T20:12:31.000Z | 2021-06-09T12:08:51.000Z | #include <catch2/catch.hpp>
#include <sydevs/core/string_builder.h>
#include <sydevs/core/quantity.h>
namespace sydevs {
TEST_CASE("test duration constructors")
{
CHECK(!duration().valid());
CHECK(duration(0).multiplier() == 0);
CHECK(duration(0).precision() == unit);
CHECK(duration(100).multiplier()... | 45.646884 | 120 | 0.62075 | slavslav |
429707e171dda3277947c6ae92f83456590edfbc | 29,271 | cc | C++ | src/JobMaker.cc | ganibc/btcpool | 360c90900922edab95c4759e8da7158dd12382b5 | [
"MIT"
] | 1 | 2018-05-29T13:13:47.000Z | 2018-05-29T13:13:47.000Z | src/JobMaker.cc | ganibc/btcpool | 360c90900922edab95c4759e8da7158dd12382b5 | [
"MIT"
] | null | null | null | src/JobMaker.cc | ganibc/btcpool | 360c90900922edab95c4759e8da7158dd12382b5 | [
"MIT"
] | 1 | 2019-02-28T06:20:07.000Z | 2019-02-28T06:20:07.000Z | /*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
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, me... | 30.909187 | 148 | 0.633084 | ganibc |
429d0615f39c89daee4ce5a114d49518a0210c93 | 2,191 | cpp | C++ | code/core/chattablabel.cpp | detrax/gobby | 21160017e1f7ffe1123d80acadac88a22bd7f838 | [
"ISC"
] | 542 | 2015-01-03T21:43:38.000Z | 2022-03-26T11:43:54.000Z | code/core/chattablabel.cpp | detrax/gobby | 21160017e1f7ffe1123d80acadac88a22bd7f838 | [
"ISC"
] | 116 | 2015-01-14T08:08:43.000Z | 2021-08-03T19:24:46.000Z | code/core/chattablabel.cpp | detrax/gobby | 21160017e1f7ffe1123d80acadac88a22bd7f838 | [
"ISC"
] | 60 | 2015-01-03T21:43:42.000Z | 2022-03-19T12:04:52.000Z | /* Gobby - GTK-based collaborative text editor
* Copyright (C) 2008-2015 Armin Burgmeier <armin@arbur.net>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in al... | 31.753623 | 75 | 0.74806 | detrax |
42a78b36f1ed4f5b61e6d008cc12cbd9eb5cb7b9 | 1,087 | cpp | C++ | C++/010_Regular_Expression_Matching.cpp | stephenkid/LeetCode-Sol | 8cb429652e0741ca4078b6de5f9eeaddcb8607a8 | [
"MIT"
] | 1,958 | 2015-01-30T01:19:03.000Z | 2022-03-17T03:34:47.000Z | src/main/cpp/010_Regular_Expression_Matching.cpp | TechnoBlogger14o3/LeetCode-Sol-Res | 04621f21a76fab29909c1fa04a37417257a88f63 | [
"MIT"
] | 135 | 2016-03-03T04:53:10.000Z | 2022-03-03T21:14:37.000Z | src/main/cpp/010_Regular_Expression_Matching.cpp | TechnoBlogger14o3/LeetCode-Sol-Res | 04621f21a76fab29909c1fa04a37417257a88f63 | [
"MIT"
] | 914 | 2015-01-27T22:27:22.000Z | 2022-03-05T04:25:10.000Z | //10. Regular Expression Matching
/*
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
The function prototype should be:
bool isMatch(const char *s, const char *p)
Some examples:
isMatch("aa","a") → false
isMatch("aa"... | 22.183673 | 118 | 0.581417 | stephenkid |
42a8d987cbe42d8674866946c625ae148a31e200 | 730 | cpp | C++ | tests/data_structure/test_quad_tree.cpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | tests/data_structure/test_quad_tree.cpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | tests/data_structure/test_quad_tree.cpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "geometricks/data_structure/quad_tree.hpp"
#include <tuple>
#include <type_traits>
struct element_t {
int x, y, hw, hh;
};
namespace geometricks {
namespace rectangle_customization {
template<>
struct make_rectangle<element_t> {
static constexpr geometric... | 21.470588 | 113 | 0.610959 | mitthy |
42a8e775526ada85918d187049907b4bfbaa8ac9 | 13,240 | hpp | C++ | src/xpcc/architecture/platform/cortex_m3/stm32/stm32f4/sdio/sdio_hal.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | src/xpcc/architecture/platform/cortex_m3/stm32/stm32f4/sdio/sdio_hal.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | src/xpcc/architecture/platform/cortex_m3/stm32/stm32f4/sdio/sdio_hal.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | /*
* sdio.hpp
*
* Created on: Apr 20, 2015
* Author: walmis
*/
#ifndef SRC_XPCC_ARCHITECTURE_PLATFORM_CORTEX_M3_STM32_STM32F4_SDIO_SDIO_HPP_
#define SRC_XPCC_ARCHITECTURE_PLATFORM_CORTEX_M3_STM32_STM32F4_SDIO_SDIO_HPP_
#include "../../../stm32.hpp"
namespace xpcc {
namespace stm32 {
/* ------------------... | 28.908297 | 115 | 0.656193 | walmis |
42a9208251f39477bf054939e4474f914c29221c | 18,316 | cpp | C++ | rclcpp/src/rclcpp/time_source.cpp | RTI-BDI/rclcpp | c29a916429285362d4d8072b698b6c200d1d2a37 | [
"Apache-2.0"
] | 1 | 2022-02-28T21:29:12.000Z | 2022-02-28T21:29:12.000Z | rclcpp/src/rclcpp/time_source.cpp | stokekld/rclcpp | 025cd5ccc8202a52f7c7a3f037d8faf46f7dc3f3 | [
"Apache-2.0"
] | null | null | null | rclcpp/src/rclcpp/time_source.cpp | stokekld/rclcpp | 025cd5ccc8202a52f7c7a3f037d8faf46f7dc3f3 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 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... | 33.001802 | 100 | 0.71473 | RTI-BDI |
42ad3848e22a63e1e8823742916de5544ff84725 | 1,730 | hh | C++ | grasp/Grasp.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 70 | 2018-10-17T17:37:22.000Z | 2022-02-28T15:19:47.000Z | grasp/Grasp.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 3 | 2020-12-08T13:02:17.000Z | 2022-02-22T11:59:00.000Z | grasp/Grasp.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 17 | 2018-10-29T04:09:45.000Z | 2022-03-19T11:34:55.000Z | /*!
\file grasp/Grasp.hh
\brief Grasp representation
\author João Borrego : jsbruglie
*/
#ifndef _GRASP_HH_
#define _GRASP_HH_
// Gazebo
#include <gazebo/gazebo_client.hh>
// Open YAML config files
#include "yaml-cpp/yaml.h"
// Debug streams
#include "debug.hh"
/// \brief Grasp representation class
clas... | 27.903226 | 78 | 0.666474 | el-cangrejo |
42b16212868354cd93abf75113e378f0054ddfd3 | 3,500 | cpp | C++ | encoderlame.cpp | napcode/appstream | f4e5452e2f3cc68899a3a1e7033435a56d8a7c79 | [
"MIT"
] | null | null | null | encoderlame.cpp | napcode/appstream | f4e5452e2f3cc68899a3a1e7033435a56d8a7c79 | [
"MIT"
] | null | null | null | encoderlame.cpp | napcode/appstream | f4e5452e2f3cc68899a3a1e7033435a56d8a7c79 | [
"MIT"
] | null | null | null | #include "encoderlame.h"
EncoderLame::EncoderLame(EncoderConfig c)
: Encoder(c)
{
}
EncoderLame::~EncoderLame()
{
if (_lgf) {
lame_close(_lgf);
_lgf = 0;
}
delete[] _buffer;
}
bool EncoderLame::init()
{
if (isInitialized())
return true;
int rc;
_lgf = lame_init();
/... | 27.559055 | 159 | 0.624571 | napcode |
42b2b194989dff2b2dd44420dd2d5941c206551b | 3,702 | hpp | C++ | src/integration/IntegrationNSphere.hpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2018-01-09T19:56:29.000Z | 2022-03-03T06:38:54.000Z | src/integration/IntegrationNSphere.hpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2018-01-29T18:01:42.000Z | 2022-03-31T07:01:09.000Z | src/integration/IntegrationNSphere.hpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 12 | 2018-03-14T00:24:14.000Z | 2022-03-03T06:40:07.000Z | /*
* Hélène Perrier helene.perrier@liris.cnrs.fr
* and David Coeurjolly david.coeurjolly@liris.cnrs.fr
*
* Copyright (c) 2018 CNRS Université de Lyon
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 32.473684 | 105 | 0.700702 | FrancoisGaits |
42b5735b3471a7446cdf2188bd48234ed6b3765c | 3,014 | hpp | C++ | libbitcoin/include/bitcoin/constants.hpp | mousewu/bcclient | 64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c | [
"MIT"
] | 8 | 2019-05-31T01:37:08.000Z | 2021-10-19T05:52:45.000Z | libbitcoin/include/bitcoin/constants.hpp | mousewu/bcclient | 64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c | [
"MIT"
] | 3 | 2017-12-18T17:27:09.000Z | 2018-01-15T16:50:05.000Z | libbitcoin/include/bitcoin/constants.hpp | mousewu/bcclient | 64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c | [
"MIT"
] | 5 | 2018-01-09T15:05:55.000Z | 2020-12-17T13:27:25.000Z | /*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Fou... | 31.395833 | 76 | 0.736231 | mousewu |
42b713a94aed7da16b1cf74cfd6e5e60937a2e40 | 5,781 | cc | C++ | tensorflow_io/core/azure/azfs/azfs_client.cc | pshiko/io | a1793e6b41ed7a8db572249aba15a8e513a348a5 | [
"Apache-2.0"
] | 1 | 2020-01-20T17:48:31.000Z | 2020-01-20T17:48:31.000Z | tensorflow_io/core/azure/azfs/azfs_client.cc | pshiko/io | a1793e6b41ed7a8db572249aba15a8e513a348a5 | [
"Apache-2.0"
] | null | null | null | tensorflow_io/core/azure/azfs/azfs_client.cc | pshiko/io | a1793e6b41ed7a8db572249aba15a8e513a348a5 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 34.207101 | 80 | 0.669953 | pshiko |
42b976415bed9557543a9e1dd17c9c84c33fe02a | 593 | cpp | C++ | 03/exam03.cpp | Sadik326-ctrl/computer_programming | cbae264ffa04fc487008fa6a0a32e0a1a316e01e | [
"MIT"
] | null | null | null | 03/exam03.cpp | Sadik326-ctrl/computer_programming | cbae264ffa04fc487008fa6a0a32e0a1a316e01e | [
"MIT"
] | null | null | null | 03/exam03.cpp | Sadik326-ctrl/computer_programming | cbae264ffa04fc487008fa6a0a32e0a1a316e01e | [
"MIT"
] | null | null | null | // Demonstration of compound assignments
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float x, y;
cout << "\n Please enter a starting value:
cin >> x;
";
cout << "\n Please enter the increment value: ";
cin >> y;
x += y;
cout << "\n And now multiplication! ";
cout << "\n Please enter a facto... | 19.766667 | 48 | 0.625632 | Sadik326-ctrl |
42b9e0ae70299b5c0c42b2aa5b291bf768be26c4 | 485 | cpp | C++ | Part_Fourteen/BasePtrDerivedObj.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | Part_Fourteen/BasePtrDerivedObj.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | Part_Fourteen/BasePtrDerivedObj.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | //To depict pointer to a derived class objeof base class type
#include <iostream>
using namespace std;
class parent
{
public:
void func()
{
cout<<"Base's function\n";
}
};
class child:public parent
{
public:
void meth()
{
cout<<"Derived's function\n";
}
};
int main()
{
... | 16.724138 | 61 | 0.548454 | ayushpareek179 |
42bf6c136b9f6b914ccb85044ba0132dc453ba41 | 470 | cpp | C++ | bzoj/1261.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/1261.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/1261.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int a[5050], len, n;
int mul(int val){
for(int i = 1; i <= len; i++)
a[i]*=val;
for(int i = 1; i <= len; i++){
a[i+1]+=a[i]/10;
a[i]%=10;
}
if(a[len+1])len++;
}
int main(){
scanf("%d", &n);
a[len=1]=1;
while(n > 4) mul(3), n-=3; mul(n);
pr... | 19.583333 | 66 | 0.510638 | swwind |
42cc99107701f2f6cd3ea17c5e1ebb7147bd583b | 340 | cpp | C++ | Proyecto_Final-Jorge_Pastor_V2/Trabajo de informatica/Trabajo_InformaticaI/propietarios.cpp | jorgepastor5/Spaceships-shop-manager | 51ec0aad6042f4a247a4d385c7ff4ab9233f7c35 | [
"MIT"
] | null | null | null | Proyecto_Final-Jorge_Pastor_V2/Trabajo de informatica/Trabajo_InformaticaI/propietarios.cpp | jorgepastor5/Spaceships-shop-manager | 51ec0aad6042f4a247a4d385c7ff4ab9233f7c35 | [
"MIT"
] | null | null | null | Proyecto_Final-Jorge_Pastor_V2/Trabajo de informatica/Trabajo_InformaticaI/propietarios.cpp | jorgepastor5/Spaceships-shop-manager | 51ec0aad6042f4a247a4d385c7ff4ab9233f7c35 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
#include "propietarios.h"
#include <aplicacion.h>
#include <naves.h>
using namespace std;
propietarios::propietarios(){
}
void propietarios::setPlaneta(string planeta){
this->planeta = planeta;
}
string propietarios::getPlaneta(){
return planeta;
}
propietarios:... | 12.592593 | 46 | 0.714706 | jorgepastor5 |
42cd05326a8fba4bdf024c553065cb2b6aaab797 | 1,716 | cpp | C++ | model/src/ConstraintBlockImpl.cpp | mballance-sf/open-ps | a5ed44ce30bfe59462801ca7de4361d16950bcd2 | [
"Apache-2.0"
] | null | null | null | model/src/ConstraintBlockImpl.cpp | mballance-sf/open-ps | a5ed44ce30bfe59462801ca7de4361d16950bcd2 | [
"Apache-2.0"
] | null | null | null | model/src/ConstraintBlockImpl.cpp | mballance-sf/open-ps | a5ed44ce30bfe59462801ca7de4361d16950bcd2 | [
"Apache-2.0"
] | null | null | null | /*
* ConstraintBlockImpl.cpp
*
*
* Copyright 2016 Mentor Graphics Corporation
* All Rights Reserved Worldwide
*
* 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
*
*... | 26.4 | 78 | 0.685897 | mballance-sf |
42ce15e3ef1c818c6fa7f3164b3ea50efac752c3 | 720 | cpp | C++ | 0-100/7/main.cpp | KevinEsh/LeetCode-Problems | 7e29509ad1cdc907bbba339f82e89f9e210e8249 | [
"MIT"
] | null | null | null | 0-100/7/main.cpp | KevinEsh/LeetCode-Problems | 7e29509ad1cdc907bbba339f82e89f9e210e8249 | [
"MIT"
] | null | null | null | 0-100/7/main.cpp | KevinEsh/LeetCode-Problems | 7e29509ad1cdc907bbba339f82e89f9e210e8249 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <algorithm>
#define lower -2147483648
#define upper 2147483647
class Solution
{
public:
int reverse(int x)
{
std::string sx = x < 0 ? "-" : "";
sx += std::to_string(abs(x));
if (x < 0)
{
std::reverse(sx.begin() + 1, s... | 16.744186 | 51 | 0.475 | KevinEsh |
42d20121235ebecbae7e13193478f3f5503966f2 | 619 | cpp | C++ | max_profit.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | max_profit.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | max_profit.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution
{
public:
int maxProfit(vector<int> &prices)
{
int minprice = 0x7FFFFFFF;
int maxprofit = 0;
for (int i = 0; i < prices.size(); i++)
{
if (prices[i] < minprice)
minprice = prices[i];
else if (prices[i] - ... | 18.205882 | 48 | 0.588045 | shirishbahirat |
42d36a7ff407d996315af2f45511739d597bc098 | 8,305 | hpp | C++ | SDK/PUBG_GameplayTasks_classes.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 7 | 2019-03-06T11:04:52.000Z | 2019-07-10T20:00:51.000Z | SDK/PUBG_GameplayTasks_classes.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | null | null | null | SDK/PUBG_GameplayTasks_classes.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 10 | 2019-03-06T11:53:46.000Z | 2021-02-18T14:01:11.000Z | #pragma once
// PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_GameplayTasks_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------... | 43.710526 | 270 | 0.586635 | realrespecter |
42d3a2f68e017ecba874aac3207ad55e3241fd65 | 981 | cpp | C++ | src/sharding/hasher.cpp | oystr-foss/proxy-load-balancer | 14a58a1db4a189f27d0671cb89cfa4a06bd8b415 | [
"BSL-1.0"
] | 9 | 2020-10-06T16:36:11.000Z | 2021-07-25T15:06:25.000Z | src/sharding/hasher.cpp | oystr-foss/proxy-load-balancer | 14a58a1db4a189f27d0671cb89cfa4a06bd8b415 | [
"BSL-1.0"
] | null | null | null | src/sharding/hasher.cpp | oystr-foss/proxy-load-balancer | 14a58a1db4a189f27d0671cb89cfa4a06bd8b415 | [
"BSL-1.0"
] | null | null | null | //
// Created by realngnx on 11/06/2021.
//
#include <openssl/sha.h>
#include <openssl/md5.h>
#include "./hasher.hpp"
long Digest::to_md5_hash(std::string key) {
const char * hashed = reinterpret_cast<const char *>(md5(key));
return calculate_hash(hashed);
}
long Digest::to_sha256_hash(std::string key) {
... | 25.815789 | 85 | 0.64526 | oystr-foss |
42d504427440ff4dcf5cf5f7baa66f1310cf7b39 | 917 | cpp | C++ | AddIn/DemoAddIn/cpp/DemoAddIn/EdgeBarDialog.cpp | XelaNimed/Samples | 2b509c985d99b53a9de1e2fb377a5a54dae43987 | [
"MIT"
] | 34 | 2015-06-08T05:10:28.000Z | 2022-02-08T20:15:42.000Z | AddIn/DemoAddIn/cpp/DemoAddIn/EdgeBarDialog.cpp | kabircosta/Samples | 3ffe1b268d49ec63686078d5c4f4d6eccb8f6f5f | [
"MIT"
] | 1 | 2019-04-03T06:32:23.000Z | 2019-04-03T06:32:23.000Z | AddIn/DemoAddIn/cpp/DemoAddIn/EdgeBarDialog.cpp | kabircosta/Samples | 3ffe1b268d49ec63686078d5c4f4d6eccb8f6f5f | [
"MIT"
] | 44 | 2015-03-26T17:29:45.000Z | 2021-12-29T03:41:29.000Z | // EdgeBarDialog.cpp : implementation file
//
#include "stdafx.h"
#include "DemoAddIn.h"
#include "EdgeBarDialog.h"
#include "afxdialogex.h"
// CEdgeBarDialog dialog
IMPLEMENT_DYNAMIC(CEdgeBarDialog, CDialogEx)
CEdgeBarDialog::CEdgeBarDialog(CWnd* pParent /*=NULL*/)
: CDialogEx(CEdgeBarDialog::IDD, pParent)
{
}
... | 16.981481 | 55 | 0.742639 | XelaNimed |
42da23d3f9b47e5504e83b1de7b6fb30fa6face1 | 6,368 | cpp | C++ | analysis_pipelines/scripts/scVILP/scripts/PerfectPhy/tools/convert.cpp | ProSolo/benchmarking_prosolo | 60fc1fcc990be9eedcdf024670fa81e68c0d3e2f | [
"MIT"
] | 2 | 2020-04-29T02:56:42.000Z | 2021-03-04T21:17:15.000Z | analysis_pipelines/scripts/scVILP/scripts/PerfectPhy/tools/convert.cpp | ProSolo/benchmarking_prosolo | 60fc1fcc990be9eedcdf024670fa81e68c0d3e2f | [
"MIT"
] | null | null | null | analysis_pipelines/scripts/scVILP/scripts/PerfectPhy/tools/convert.cpp | ProSolo/benchmarking_prosolo | 60fc1fcc990be9eedcdf024670fa81e68c0d3e2f | [
"MIT"
] | null | null | null | #include<vector>
#include<fstream>
#include<iostream>
#include<cctype>
using namespace std;
enum ArgError { ERROR = -1, QUIT = 0, NONE = 1 };
ArgError handleArguments(int argc, char** argv, char &dummychar, string &index, string &mapfile ) {
const char* helpmessage =
"Usage: ./convert.out [option] \n"
"\n"
"Opti... | 26.533333 | 126 | 0.400911 | ProSolo |
42ddfb6b787055c1ca8ab033ae14936586fa5e59 | 2,590 | cpp | C++ | src/schemas/project/mutations/CreateTrade.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | 12 | 2021-09-28T14:37:22.000Z | 2022-03-04T17:54:11.000Z | src/schemas/project/mutations/CreateTrade.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | null | null | null | src/schemas/project/mutations/CreateTrade.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | 8 | 2021-11-05T18:56:55.000Z | 2022-01-10T11:14:24.000Z | /* Copyright 2021 Enjin Pte. 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 or agreed to... | 35.479452 | 117 | 0.72973 | BlockChain-Station |
0cd31c2d57119c4b743b42991bf7b19b70237050 | 915 | cpp | C++ | src/boost/archive/yaml_oarchive.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 1 | 2018-01-27T23:35:21.000Z | 2018-01-27T23:35:21.000Z | src/boost/archive/yaml_oarchive.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 2 | 2019-08-17T05:37:36.000Z | 2019-08-17T22:57:26.000Z | src/boost/archive/yaml_oarchive.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 1 | 2021-03-19T11:53:53.000Z | 2021-03-19T11:53:53.000Z | /** @file
*
* @brief Defines narrow concrete output archives.
*
* @author Raoul Wols
*
* @date 2017
*
* @copyright See LICENSE.md
*
*/
#if (defined _MSC_VER) && (_MSC_VER == 1200)
#pragma warning(disable : 4786) // too long name, harmless warning
#endif
#define BOOST_ARCHIVE_SOURCE
#include <boost/a... | 25.416667 | 66 | 0.76612 | rwols |
0cd88d993983b62868af471659f79d4d06a7acfd | 1,513 | cpp | C++ | course1/Laba2/G/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | course1/Laba2/G/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | course1/Laba2/G/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#define ui unsigned int
#define ull unsigned long long
#define us unsigned long long
#pragma GCC optimize("03")
using namespace std;
ui cur = 0;
ui a, b;
inline ui nextRand24() {
cur = cur * a + b;
return cur >> 8;
}
inline ui next... | 20.173333 | 69 | 0.432254 | flydzen |
0cd9c66e0780db9a044edb30d4d606f462b86e57 | 3,313 | cpp | C++ | src/BlockEntities/ChestEntity.cpp | planetx/MCServer | 4e119b522409af682e62ed38f4d22ddd9da40170 | [
"Apache-2.0"
] | null | null | null | src/BlockEntities/ChestEntity.cpp | planetx/MCServer | 4e119b522409af682e62ed38f4d22ddd9da40170 | [
"Apache-2.0"
] | null | null | null | src/BlockEntities/ChestEntity.cpp | planetx/MCServer | 4e119b522409af682e62ed38f4d22ddd9da40170 | [
"Apache-2.0"
] | null | null | null |
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "ChestEntity.h"
#include "../Item.h"
#include "../Entities/Player.h"
#include "../UI/Window.h"
cChestEntity::cChestEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World, BLOCKTYPE a_Type) :
super(... | 23.167832 | 170 | 0.689104 | planetx |
0cda9a014ed43d1a287d252950ea53b778b22bfa | 5,656 | cpp | C++ | src/libv/ui/component/stretch.cpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 2 | 2018-04-11T03:07:03.000Z | 2019-03-29T15:24:12.000Z | src/libv/ui/component/stretch.cpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | null | null | null | src/libv/ui/component/stretch.cpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 1 | 2021-06-13T06:39:06.000Z | 2021-06-13T06:39:06.000Z | // Project: libv.ui, File: src/libv/ui/component/stretch.cpp, Author: Császár Mátyás [Vader]
// hpp
#include <libv/ui/component/stretch.hpp>
// pro
#include <libv/ui/context/context_layout.hpp>
#include <libv/ui/context/context_render.hpp>
#include <libv/ui/context/context_style.hpp>
#include <libv/ui/context/context_... | 31.248619 | 112 | 0.589993 | cpplibv |
0cdf589e598c31402e68e86595e88ef22d2c8193 | 9,280 | cpp | C++ | SwapChain/Driver/OpenGL/src/Win32/SwapChain.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | SwapChain/Driver/OpenGL/src/Win32/SwapChain.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | SwapChain/Driver/OpenGL/src/Win32/SwapChain.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | #include <GL/Win32/SwapChain.hpp>
#include <GL/Win32/PresentGeometry.hpp>
#include <GL/Win32/PresentPixels.hpp>
#include <GL/Win32/PresentShader.hpp>
#include <GL/Win32/PresentTexture.hpp>
#include <GL/Surface.hpp>
#include <GL/Win32/Error.hpp>
#include <GL/Win32/OpenGL.hpp>
#include <GL/Device.hpp>
#include <GL/Image... | 35.968992 | 117 | 0.628017 | Gpinchon |
0ce83d17e36b56392ae66bdda1e9e462aede0061 | 865 | cpp | C++ | PAT/Advanced Level/Simulation_Math/1148 Werewolf.cpp | MuZi-lh/AlgorithmExecise | 88411f52ad65ef002ed8bcbcffc402f64985958f | [
"MulanPSL-1.0"
] | null | null | null | PAT/Advanced Level/Simulation_Math/1148 Werewolf.cpp | MuZi-lh/AlgorithmExecise | 88411f52ad65ef002ed8bcbcffc402f64985958f | [
"MulanPSL-1.0"
] | null | null | null | PAT/Advanced Level/Simulation_Math/1148 Werewolf.cpp | MuZi-lh/AlgorithmExecise | 88411f52ad65ef002ed8bcbcffc402f64985958f | [
"MulanPSL-1.0"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
int N;
vector<int> p(100);
bool tellingTruth(int a, int b, int t) {
return (abs(p[t]) != a && abs(p[t]) != b && p[t] > 0) || (p[t] == -a || p[t] == -b);
}
// a, b are wolf,
// assume a, b don't point at themselves
// a tell a truth, b tell a lie
bool legal(i... | 18.804348 | 85 | 0.491329 | MuZi-lh |
0ce92d47507b7639fa18ea1fb22e4d36ef08339a | 9,890 | cpp | C++ | Source/Game/GameState/IntroState/IntroState.cpp | Crazykingjammy/bkbotz | 6cdaa4164ff02e40f2909982f6dacad161c7d6cf | [
"Unlicense"
] | null | null | null | Source/Game/GameState/IntroState/IntroState.cpp | Crazykingjammy/bkbotz | 6cdaa4164ff02e40f2909982f6dacad161c7d6cf | [
"Unlicense"
] | null | null | null | Source/Game/GameState/IntroState/IntroState.cpp | Crazykingjammy/bkbotz | 6cdaa4164ff02e40f2909982f6dacad161c7d6cf | [
"Unlicense"
] | null | null | null | #include "../GameState.h"
CIntroGameState* CIntroGameState::pInstance = 0;
void CIntroGameState::Initalize(Game* game)
{
//Get the Pointer to the game.
pGame = game;
//////////////////////////////////////////////////////////////////////////
// Lights Setup
//////////////////////////////////////////////////////... | 25.101523 | 163 | 0.649848 | Crazykingjammy |
0ced71d029ec7f52b67c86ddfcffcb90d56d756d | 9,437 | cpp | C++ | C++/vbHmmModel_GaussDiffusion.cpp | okamoto-kenji/varBayes-HMM | 77afe3c336c9e1ebeb115ca4f0b2bc25060556bd | [
"MIT"
] | 7 | 2016-03-31T06:59:00.000Z | 2019-11-01T06:35:57.000Z | C++/vbHmmModel_GaussDiffusion.cpp | okamoto-kenji/varBayes-HMM | 77afe3c336c9e1ebeb115ca4f0b2bc25060556bd | [
"MIT"
] | null | null | null | C++/vbHmmModel_GaussDiffusion.cpp | okamoto-kenji/varBayes-HMM | 77afe3c336c9e1ebeb115ca4f0b2bc25060556bd | [
"MIT"
] | null | null | null | /*
* vbHmmModel_GaussDiffusion.c
* Model-specific functions for VB-HMM-GAUSS-DIFFUSION.
*
* Created by OKAMOTO Kenji, SAKO Yasushi and RIKEN
* Copyright 2011-2018
* Cellular Informatics Laboratory, Advance Science Institute, RIKEN, Japan.
* All rights reserved.
*
* Ver. 1.0.0
* Last modified on 2018.1... | 27.51312 | 115 | 0.431175 | okamoto-kenji |
0cf2f397849efc524d2c82873c589cc900e91101 | 14,286 | cpp | C++ | src/ui/screens/viewfilescreen.cpp | hrxcodes/cbftp | bf2784007dcc4cc42775a2d40157c51b80383f81 | [
"MIT"
] | 8 | 2019-04-30T00:37:00.000Z | 2022-02-03T13:35:31.000Z | src/ui/screens/viewfilescreen.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 2 | 2019-11-19T12:46:13.000Z | 2019-12-20T22:13:57.000Z | src/ui/screens/viewfilescreen.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 9 | 2020-01-15T02:38:36.000Z | 2022-02-15T20:05:20.000Z | #include "viewfilescreen.h"
#include "transfersscreen.h"
#include "../ui.h"
#include "../menuselectoption.h"
#include "../resizableelement.h"
#include "../menuselectadjustableline.h"
#include "../menuselectoptiontextbutton.h"
#include "../termint.h"
#include "../misc.h"
#include "../../transferstatus.h"
#include "..... | 29.395062 | 158 | 0.635167 | hrxcodes |
0cf47a1d8c1d0f3b8941f22a174d4530afc93b7d | 1,063 | hpp | C++ | alignment/files/ReaderAgglomerateImpl.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 4 | 2015-07-03T11:59:54.000Z | 2018-05-17T00:03:22.000Z | alignment/files/ReaderAgglomerateImpl.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 79 | 2015-06-29T18:07:21.000Z | 2018-09-19T13:38:39.000Z | alignment/files/ReaderAgglomerateImpl.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 19 | 2015-06-23T08:43:29.000Z | 2021-04-28T18:37:47.000Z | #ifndef _BLASR_READER_AGGLOMERATE_IMPL_HPP_
#define _BLASR_READER_AGGLOMERATE_IMPL_HPP_
template <typename T_Sequence>
int ReaderAgglomerate::GetNext(T_Sequence &seq, int &randNum)
{
randNum = rand();
return GetNext(seq);
}
template <typename T_Sequence>
int ReadChunkByNReads(ReaderAgglomerate &reader, std::v... | 23.108696 | 97 | 0.627469 | ggraham |
0cf54ce58b46f3ba5654eef039f7fb86939d2e7e | 375 | cpp | C++ | GameEngine/CoreEngine/CoreEngine/src/DrawSceneOperation.cpp | mettaursp/SuddenlyGames | e2ff1c2771d4ca54824650e4f1a33a527536ca61 | [
"Apache-2.0"
] | 1 | 2021-01-17T13:05:20.000Z | 2021-01-17T13:05:20.000Z | GameEngine/CoreEngine/CoreEngine/src/DrawSceneOperation.cpp | suddenly-games/SuddenlyGames | e2ff1c2771d4ca54824650e4f1a33a527536ca61 | [
"Apache-2.0"
] | null | null | null | GameEngine/CoreEngine/CoreEngine/src/DrawSceneOperation.cpp | suddenly-games/SuddenlyGames | e2ff1c2771d4ca54824650e4f1a33a527536ca61 | [
"Apache-2.0"
] | null | null | null | #include "DrawSceneOperation.h"
#include "Graphics.h"
namespace GraphicsEngine
{
void DrawSceneOperation::Configure(const std::shared_ptr<Scene>& scene)
{
CurrentScene = scene;
}
void DrawSceneOperation::Render()
{
Graphics::SetClearColor(RGBA(0x000000FF));
Graphics::ClearScreen(GL_COLOR_BUFFER_BIT | GL_D... | 18.75 | 72 | 0.749333 | mettaursp |
0cf7d3785efe69b943c01dc937f7f1bc78493d04 | 625 | cpp | C++ | Framework/Sources/o2/Utils/Memory/Allocators/StackAllocator.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Framework/Sources/o2/Utils/Memory/Allocators/StackAllocator.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Framework/Sources/o2/Utils/Memory/Allocators/StackAllocator.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2/stdafx.h"
#include "StackAllocator.h"
namespace o2
{
StackAllocator::StackAllocator(size_t capacity, IAllocator* baseAllocator /*= DefaultAllocator::GetInstance()*/):
mBaseAllocator(baseAllocator)
{
mInitialCapacity = capacity;
Initialize();
}
StackAllocator::~StackAllocator()
{
Clear();
}
... | 18.939394 | 114 | 0.7168 | zenkovich |
490922b8449248ae20f988401452233f96ebe02d | 922 | hpp | C++ | src/app/validator-manager.hpp | mimo31/fluid-sim | 481c3e5a5456350bccb8795aa119a3487dff3021 | [
"MIT"
] | 1 | 2020-11-26T17:20:28.000Z | 2020-11-26T17:20:28.000Z | src/app/validator-manager.hpp | mimo31/brandy0 | 481c3e5a5456350bccb8795aa119a3487dff3021 | [
"MIT"
] | null | null | null | src/app/validator-manager.hpp | mimo31/brandy0 | 481c3e5a5456350bccb8795aa119a3487dff3021 | [
"MIT"
] | null | null | null | /**
* validator-manager.hpp
*
* Author: Viktor Fukala
* Created on 2021/01/16
*/
#ifndef VALIDATOR_MANAGER_HPP
#define VALIDATOR_MANAGER_HPP
#include "func.hpp"
#include "vec.hpp"
namespace brandy0
{
/**
* Container for arbitrarily many bool(void) callbacks.
* Callbacks (a.k.a. validators) can be dynamically... | 22.487805 | 152 | 0.736443 | mimo31 |
490a0b2c5d3f200f97d3a3bb3d45a66064b53d8d | 2,408 | cpp | C++ | utilities/Socket.cpp | JKowalsky/ftp-client | daa81b546b399907cdd77bc639ad61a3b17b5939 | [
"MIT"
] | null | null | null | utilities/Socket.cpp | JKowalsky/ftp-client | daa81b546b399907cdd77bc639ad61a3b17b5939 | [
"MIT"
] | null | null | null | utilities/Socket.cpp | JKowalsky/ftp-client | daa81b546b399907cdd77bc639ad61a3b17b5939 | [
"MIT"
] | null | null | null | /*
* File: Socket.cpp
* Author: kowalsky
*
* Created on November 30, 2014, 4:49 PM
*/
#include "Socket.h"
Socket::Socket(int port)
: port(port), clientFd(NULL_FD), serverFd(NULL_FD) {
}
Socket::~Socket() {
if (clientFd != NULL_FD)
close(clientFd);
if (serverFd != NULL_FD)
close(serve... | 27.678161 | 79 | 0.616694 | JKowalsky |
490b9fb710f1e9195b51c1e5af31415cecfc6a0f | 1,996 | cpp | C++ | test/test_crossentropyloss_layer.cpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | 1 | 2018-10-02T15:29:14.000Z | 2018-10-02T15:29:14.000Z | test/test_crossentropyloss_layer.cpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | null | null | null | test/test_crossentropyloss_layer.cpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | null | null | null | #include "crossentropyloss_layer.hpp"
#include "common.hpp"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <glog/logging.h>
TEST(CrossEntropyLossLayer, CheckNumInputs)
{
// if zero inputs, then a problem will occour
std::vector<dtensor_t> input(2);
std::vector<dtensor_t> labels(2);
dpl:... | 25.922078 | 105 | 0.648798 | sdadia |
490ead04603ff489afc8802626c59b089b8e5a47 | 2,791 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_RobotoCondensed_Bold_42_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_RobotoCondensed_Bold_42_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_RobotoCondensed_Bold_42_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null |
#include <touchgfx/Font.hpp>
#ifndef NO_USING_NAMESPACE_TOUCHGFX
using namespace touchgfx;
#endif
FONT_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::GlyphNode glyphs_RobotoCondensed_Bold_42_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE = {
{ 0, 2, 0, 0, 0, 0, 1, 255, 0, touchgfx::GLYPH_DATA_FORMAT_A4|0... | 66.452381 | 109 | 0.58402 | ramkumarkoppu |
490fbeba6c6750fd5f4936f931923bec5b4fc099 | 1,940 | hpp | C++ | caffe/include/caffe/layers/sparse_hypercolumn_extractor_layer.hpp | gustavla/autocolorizer | 79d4ce1054d35c06bdfcc93236b71e161e082ebb | [
"BSD-3-Clause"
] | 234 | 2016-04-04T15:12:24.000Z | 2022-03-14T12:55:09.000Z | caffe/include/caffe/layers/sparse_hypercolumn_extractor_layer.hpp | TrinhQuocNguyen/autocolorize | 79d4ce1054d35c06bdfcc93236b71e161e082ebb | [
"BSD-3-Clause"
] | 20 | 2016-04-05T12:44:04.000Z | 2022-02-22T06:02:17.000Z | caffe/include/caffe/layers/sparse_hypercolumn_extractor_layer.hpp | TrinhQuocNguyen/autocolorize | 79d4ce1054d35c06bdfcc93236b71e161e082ebb | [
"BSD-3-Clause"
] | 71 | 2016-07-12T15:28:16.000Z | 2021-12-16T12:22:57.000Z | #ifndef CAFFE_SPARSE_HYPERCOLUMN_LAYER_HPP
#define CAFFE_SPARSE_HYPERCOLUMN_LAYER_HPP
#include <string>
#include <utility>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/layer.hpp"
namespace caffe {
/**
* \ingroup ttic
* @brief This extracts locations of hypercolumns. It s... | 32.333333 | 82 | 0.737629 | gustavla |
49108ddf6d4c6c7194aeb7664774efa5285a70e3 | 2,316 | cpp | C++ | src/level/button/pressureButton.cpp | kirbyUK/duo | 85155fcce81086ea39593750f042a8f518f09804 | [
"MIT"
] | null | null | null | src/level/button/pressureButton.cpp | kirbyUK/duo | 85155fcce81086ea39593750f042a8f518f09804 | [
"MIT"
] | null | null | null | src/level/button/pressureButton.cpp | kirbyUK/duo | 85155fcce81086ea39593750f042a8f518f09804 | [
"MIT"
] | null | null | null | /* Copyright (c) 2014, Alex Kerr
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR... | 28.592593 | 78 | 0.71848 | kirbyUK |
49198bef6748357995d737585a3a125683391cd6 | 5,281 | cpp | C++ | src/commands.cpp | rhoot/pantryman | 4df649b811f8321efe49893ed69fefb03b0977d6 | [
"0BSD"
] | 7 | 2021-01-30T01:27:24.000Z | 2021-11-14T20:32:01.000Z | src/commands.cpp | rhoot/pantryman | 4df649b811f8321efe49893ed69fefb03b0977d6 | [
"0BSD"
] | null | null | null | src/commands.cpp | rhoot/pantryman | 4df649b811f8321efe49893ed69fefb03b0977d6 | [
"0BSD"
] | null | null | null | //
// Copyright (c) 2018 Johan Sköld
// License: https://opensource.org/licenses/ISC
//
#include "commands.hpp"
#include "config.hpp"
#include <cassert>
#include <cstring>
#include <algorithm>
namespace pm
{
HostCommand::HostCommand()
{ }
HostCommands::HostCommands()
: m_buffer{PM_CONFIG_COMMAN... | 30.005682 | 94 | 0.589093 | rhoot |
491c7e635e7a39b17f3b6f7ca37a096e82866725 | 738 | cpp | C++ | UnLive2DAsset/Source/UnLive2DAsset/Private/UnLive2DMotion.cpp | Monocluar/UnLive2D | f4e255d3d5c12ebd56f6b248c65db7ffb7f58571 | [
"MIT"
] | null | null | null | UnLive2DAsset/Source/UnLive2DAsset/Private/UnLive2DMotion.cpp | Monocluar/UnLive2D | f4e255d3d5c12ebd56f6b248c65db7ffb7f58571 | [
"MIT"
] | null | null | null | UnLive2DAsset/Source/UnLive2DAsset/Private/UnLive2DMotion.cpp | Monocluar/UnLive2D | f4e255d3d5c12ebd56f6b248c65db7ffb7f58571 | [
"MIT"
] | null | null | null | #include "UnLive2DMotion.h"
#include "Misc/FileHelper.h"
#if WITH_EDITOR
bool UUnLive2DMotion::LoadLive2DMotionData(const FString& ReadMotionPath, EUnLive2DMotionGroup InMotionGroupType, int32 InMotionCount, float FadeInTime, float FadeOutTime)
{
const bool ReadSuc = FFileHelper::LoadFileToArray(MotionData.MotionB... | 23.806452 | 171 | 0.817073 | Monocluar |
491d4d9781e754486e2d6adee12d3b075a0aa0c8 | 734 | hpp | C++ | src/interfaces/json_storage.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 4 | 2019-11-14T10:41:34.000Z | 2021-12-09T23:54:52.000Z | src/interfaces/json_storage.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 2 | 2021-10-04T20:12:53.000Z | 2021-12-14T18:13:03.000Z | src/interfaces/json_storage.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 2 | 2021-08-05T11:17:03.000Z | 2021-12-13T15:22:48.000Z | #pragma once
#include <boost/serialization/strong_typedef.hpp>
#include <nlohmann/json.hpp>
#include <filesystem>
#include <optional>
#include <string>
namespace interfaces
{
class JsonStorage
{
public:
BOOST_STRONG_TYPEDEF(std::filesystem::path, FilePath)
BOOST_STRONG_TYPEDEF(std::filesystem::path, Direc... | 24.466667 | 80 | 0.719346 | aahmed-2 |
491db81b8315955dbd6a8777eb20a33854432efc | 107,574 | cc | C++ | sandboxed_api/sandbox2/syscall_defs.cc | oshogbo/sandboxed-api | 8e82b900f4d873219b3abfa2fd06ecbd416edefd | [
"Apache-2.0"
] | 1,562 | 2019-03-07T10:02:53.000Z | 2022-03-31T17:43:05.000Z | sandboxed_api/sandbox2/syscall_defs.cc | oshogbo/sandboxed-api | 8e82b900f4d873219b3abfa2fd06ecbd416edefd | [
"Apache-2.0"
] | 70 | 2019-03-19T01:02:49.000Z | 2022-03-30T17:26:53.000Z | sandboxed_api/sandbox2/syscall_defs.cc | oshogbo/sandboxed-api | 8e82b900f4d873219b3abfa2fd06ecbd416edefd | [
"Apache-2.0"
] | 181 | 2019-03-18T19:41:30.000Z | 2022-03-29T13:08:26.000Z | #include "sandboxed_api/sandbox2/syscall_defs.h"
#include <cstdint>
#include <type_traits>
#include <glog/logging.h>
#include "absl/algorithm/container.h"
#include "absl/strings/escaping.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "sandboxed_api/config.h"
#include "sandboxed_api... | 56.291994 | 80 | 0.652844 | oshogbo |
4920e34b4bc7e375aef545fb49136ef9e39dd7f1 | 34,971 | cpp | C++ | src/pvrt/PVRTMatrixF.cpp | aunali1/sauerbraten-ios | 247de70e6889d424b041ce08627aa446caaef46c | [
"Cube",
"Zlib"
] | 1 | 2019-10-25T05:46:42.000Z | 2019-10-25T05:46:42.000Z | src/pvrt/PVRTMatrixF.cpp | aunali1/sauerbraten-ios | 247de70e6889d424b041ce08627aa446caaef46c | [
"Cube",
"Zlib"
] | 1 | 2015-05-24T01:30:20.000Z | 2015-05-24T01:30:20.000Z | src/pvrt/PVRTMatrixF.cpp | aunali1/sauerbraten-ios | 247de70e6889d424b041ce08627aa446caaef46c | [
"Cube",
"Zlib"
] | null | null | null | /******************************************************************************
@File PVRTMatrixF.cpp
@Title
@Copyright Copyright (C) 1999 - 2008 by Imagination Technologies Limited.
@Platform ANSI compatible
@Description Set of mathematical functions involving matrices, vectors and
... | 30.436031 | 132 | 0.528552 | aunali1 |
49221953ee2738b15d33786523097b56f7c985b5 | 384 | cpp | C++ | fre_check.cpp | 1432junaid/cpp | 8faf7ac856a50937f3a563dc8d23ee8e205a489c | [
"MIT"
] | null | null | null | fre_check.cpp | 1432junaid/cpp | 8faf7ac856a50937f3a563dc8d23ee8e205a489c | [
"MIT"
] | null | null | null | fre_check.cpp | 1432junaid/cpp | 8faf7ac856a50937f3a563dc8d23ee8e205a489c | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstring>
using namespace std;
int main(){
char *city = "lucknow junction";
char *c = "lucknow";
int hash[26]= {0};
int len = strlen(city);
for(int i = 0; i<len ; i++){
if(city[i] >= 97 && city[i] <= 122)
hash[city[i] - 'a']++;
}
for(int i=0; i<26;i++){
if(hash[i]>0){
cout<<ch... | 17.454545 | 42 | 0.533854 | 1432junaid |
49267adedbd3f62879ef3c4aa4e7a8c28800caa1 | 6,300 | cpp | C++ | src/libs/qlib/qdmvideoout.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qdmvideoout.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qdmvideoout.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | 1 | 2021-01-03T16:16:47.000Z | 2021-01-03T16:16:47.000Z | /*
* QDMVideoOut - definition/implementation
* 13-11-99: Support for VL65 interface
* NOTES:
* - Generated by mkclass
* BUGS:
* - Same bugs apply as for QDMVideoIn; event handling of VL was changed
* to generate events for all paths in one place. Need to demultiplex.
* (C) 01-01-98 MarketGraph/RVG
*/
#include... | 27.272727 | 75 | 0.685079 | 3dhater |
492baaf94ed04edfec0954b99b40d808fec4c397 | 3,165 | cpp | C++ | src/daemon/CmdListener.cpp | klx99/Elastos.Service.CarrierGroup | a1922402af66308178f048352ab6038f4c2d848b | [
"MIT"
] | null | null | null | src/daemon/CmdListener.cpp | klx99/Elastos.Service.CarrierGroup | a1922402af66308178f048352ab6038f4c2d848b | [
"MIT"
] | null | null | null | src/daemon/CmdListener.cpp | klx99/Elastos.Service.CarrierGroup | a1922402af66308178f048352ab6038f4c2d848b | [
"MIT"
] | null | null | null | #include "CmdListener.hpp"
#include <vector>
#include <Carrier.hpp>
#include <CmdParser.hpp>
#include <DateTime.hpp>
#include <ErrCode.hpp>
#include <GroupCmdParser.hpp>
#include <Log.hpp>
#include <OptParser.hpp>
namespace elastos {
/* =========================================== */
/* === static variables initializ... | 29.305556 | 80 | 0.484044 | klx99 |
49349850ebfb8542f3cc77a64fea0828cdd3fc4b | 443 | cpp | C++ | PAT/PAT Basic/1016.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | 1 | 2019-09-18T23:45:27.000Z | 2019-09-18T23:45:27.000Z | PAT/PAT Basic/1016.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | null | null | null | PAT/PAT Basic/1016.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | 1 | 2019-09-18T23:45:28.000Z | 2019-09-18T23:45:28.000Z | #include <iostream>
#include <string>
using namespace std;
//PAT Basic No.1016 “部分A+B”
int P(string K, int Dk) {
int count = 0;
for (int i = 0; i < K.length(); ++i)
if (K.at(i) - '0' == Dk)
count++;
if (count == 0)
return 0;
else {
string Pk(count, Dk + '0');
return strtol(Pk.c_str(), nullptr, 10);
}... | 16.407407 | 41 | 0.532731 | Accelerator404 |
493e6aa31a226a2337839854bbb7f925721783ea | 1,602 | cpp | C++ | tests/DBCParserTest.cpp | aiekick/dbcppp | 8f433e7b3ce5ee11aa6061ba82ba3cc4ddbbbfbe | [
"MIT"
] | 93 | 2019-12-26T08:35:22.000Z | 2022-03-29T07:30:30.000Z | tests/DBCParserTest.cpp | Raufoon/dbcppp | f6db52bbca5a2272804ccdd8e38955e5b6cd7abd | [
"MIT"
] | 54 | 2020-02-26T23:12:09.000Z | 2022-03-13T18:21:20.000Z | tests/DBCParserTest.cpp | ozzdemir/dbcppp | c7ea82b799c3dd945b399c75a6cf38fff6d61a4e | [
"MIT"
] | 26 | 2020-02-01T00:46:10.000Z | 2022-03-29T12:40:37.000Z |
#include <fstream>
#include <iomanip>
#include <filesystem>
#include "dbcppp/Network.h"
#include "dbcppp/Network2Functions.h"
#include "Config.h"
#include "Catch2.h"
TEST_CASE("DBCParserTest", "[]")
{
std::size_t i = 0;
for (const auto& dbc_file : std::filesystem::directory_iterator(std::filesystem::path(T... | 31.411765 | 116 | 0.553059 | aiekick |
494023c248b5d96d68510482a00fbafad820c649 | 19,717 | cpp | C++ | aby3-DB_tests/PermutaitonTests.cpp | vincehong/aby3 | 1a5277b37249545e967fc58a9235666a2453c104 | [
"MIT"
] | 121 | 2019-06-25T01:35:50.000Z | 2022-03-24T12:53:17.000Z | aby3-DB_tests/PermutaitonTests.cpp | vincehong/aby3 | 1a5277b37249545e967fc58a9235666a2453c104 | [
"MIT"
] | 33 | 2020-01-21T16:47:09.000Z | 2022-01-23T12:41:22.000Z | aby3-DB_tests/PermutaitonTests.cpp | vincehong/aby3 | 1a5277b37249545e967fc58a9235666a2453c104 | [
"MIT"
] | 36 | 2019-09-05T08:35:09.000Z | 2022-01-14T11:57:22.000Z |
#include <cryptoTools/Network/IOService.h>
#include <cryptoTools/Network/Session.h>
#include <cryptoTools/Network/Channel.h>
#include <cryptoTools/Common/Matrix.h>
#include <aby3-DB/OblvPermutation.h>
#include <aby3-DB/OblvSwitchNet.h>
#include <cryptoTools/Crypto/PRNG.h>
#include "PermutaitonTests.h"
#include <ioman... | 28.95301 | 149 | 0.4417 | vincehong |
494363cf5e51c77fae1c46c961b84dfed7424c3c | 2,230 | hpp | C++ | include/Aether/Screen.hpp | NightYoshi370/Aether | 87d2b81f5d3143e39c363a9c81c195d440d7a4e8 | [
"MIT"
] | 1 | 2021-02-04T07:27:46.000Z | 2021-02-04T07:27:46.000Z | libs/Aether/include/Aether/Screen.hpp | tkgstrator/SeedHack | 227566d993bdea7a2851a8fc664b539186509697 | [
"MIT"
] | null | null | null | libs/Aether/include/Aether/Screen.hpp | tkgstrator/SeedHack | 227566d993bdea7a2851a8fc664b539186509697 | [
"MIT"
] | null | null | null | #ifndef AETHER_SCREEN_HPP
#define AETHER_SCREEN_HPP
#include "Aether/base/Container.hpp"
#include <unordered_map>
namespace Aether {
/**
* @brief A class that represents a screen layout
* Stores all screen elements for a specific screen.
*/
class Screen : public Container {
private:
... | 33.283582 | 76 | 0.54843 | NightYoshi370 |
4948f63c5fa04d8ea292d283e330409a91d25e3a | 1,360 | hpp | C++ | inc/sexpr-ident.hpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | inc/sexpr-ident.hpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | inc/sexpr-ident.hpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | // vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab :
/*
* Copyright (c) 2014-2017, Ryan V. Bissell
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
* See the enclosed "LICENSE" file for exact license terms.
*/
#ifndef DSLANG_SEXPR_IDENT_HPP
#define DSLANG_SEXPR_IDENT_HPP
#include "sexpr.... | 21.935484 | 72 | 0.710294 | ryanvbissell |
4953016766edc08efab4acd6241229c0075c519d | 3,474 | cpp | C++ | depends/acransac/conditioning.cpp | mmrwizard/RenderMatch-1 | a427138e6823675eaa76c693bc31a28566b4dcd8 | [
"MIT"
] | null | null | null | depends/acransac/conditioning.cpp | mmrwizard/RenderMatch-1 | a427138e6823675eaa76c693bc31a28566b4dcd8 | [
"MIT"
] | null | null | null | depends/acransac/conditioning.cpp | mmrwizard/RenderMatch-1 | a427138e6823675eaa76c693bc31a28566b4dcd8 | [
"MIT"
] | 1 | 2020-05-12T08:19:14.000Z | 2020-05-12T08:19:14.000Z | // Copyright (c) 2010 libmv authors.
//
// 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, publish... | 39.477273 | 109 | 0.678181 | mmrwizard |
4953051a9c59971d6ec2529ea8a90a8789ebb2eb | 5,339 | cpp | C++ | src/utils.cpp | molendijk/InfoClock | 98719495800cd930d51c495e83b08ddf9b99fc5b | [
"MIT"
] | null | null | null | src/utils.cpp | molendijk/InfoClock | 98719495800cd930d51c495e83b08ddf9b99fc5b | [
"MIT"
] | null | null | null | src/utils.cpp | molendijk/InfoClock | 98719495800cd930d51c495e83b08ddf9b99fc5b | [
"MIT"
] | null | null | null | /*
* utils.cpp
*
* Created on: 04.01.2017
* Author: Bartosz Bielawski
*/
#include <time.h>
#include <stdio.h>
#include <vector>
#include <memory>
#include "utils.h"
#include "config.h"
#include "Client.h"
#include "Arduino.h"
#include "FS.h"
#include "DataStore.h"
#include "WiFiUdp.h"
#include "SyslogSende... | 19.067857 | 100 | 0.65649 | molendijk |
495489fcb847b90b12ad90cef1f5bc51d903b3c3 | 691 | cpp | C++ | test/unit/api/terminal.cpp | jfalcou/nucog | 186808bec04af4f1138bc5362510fffbe690fdd3 | [
"MIT"
] | 1 | 2022-02-13T20:11:06.000Z | 2022-02-13T20:11:06.000Z | test/unit/api/terminal.cpp | jfalcou/nucog | 186808bec04af4f1138bc5362510fffbe690fdd3 | [
"MIT"
] | null | null | null | test/unit/api/terminal.cpp | jfalcou/nucog | 186808bec04af4f1138bc5362510fffbe690fdd3 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
NuCoG - Numerical Code Generator
Copyright : NuCoG Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//================================================================================================... | 31.409091 | 100 | 0.413893 | jfalcou |
495848907d3023ec87db4db2dde46671f499404e | 3,311 | cpp | C++ | src/chess/Loc.cpp | owengage/chess | 777ba282c66ce750a1f1604483b14a99b0122eba | [
"Unlicense"
] | null | null | null | src/chess/Loc.cpp | owengage/chess | 777ba282c66ce750a1f1604483b14a99b0122eba | [
"Unlicense"
] | null | null | null | src/chess/Loc.cpp | owengage/chess | 777ba282c66ce750a1f1604483b14a99b0122eba | [
"Unlicense"
] | null | null | null | #include <chess/Loc.h>
#include <perf/StackVector.h>
#include <unordered_map>
using chess::LocInvalid;
using chess::Loc;
using chess::Sign;
namespace
{
std::vector<Loc> create_all_locs() {
std::vector<Loc> all;
all.reserve(static_cast<std::size_t>(Loc::board_size));
for (int y = 0; y < L... | 26.488 | 126 | 0.536998 | owengage |
4958a96e54b627eab4400680cdac314ae51a30c0 | 9,803 | cpp | C++ | src/stellar/stellar.arg_parser.cpp | marehr/dream_stellar | 03ffc33cba4336d585108a22c8e166d0fbd7ac4b | [
"BSD-3-Clause"
] | null | null | null | src/stellar/stellar.arg_parser.cpp | marehr/dream_stellar | 03ffc33cba4336d585108a22c8e166d0fbd7ac4b | [
"BSD-3-Clause"
] | 16 | 2021-11-12T16:42:35.000Z | 2022-01-11T15:28:23.000Z | src/stellar/stellar.arg_parser.cpp | marehr/dream_stellar | 03ffc33cba4336d585108a22c8e166d0fbd7ac4b | [
"BSD-3-Clause"
] | null | null | null | #include <stellar/app/stellar.arg_parser.hpp>
#include <seqan/seq_io.h>
namespace stellar
{
namespace app
{
///////////////////////////////////////////////////////////////////////////////
// Parses options from command line parser and writes them into options object
ArgumentParser::ParseResult
_parseOptions(Argumen... | 50.530928 | 154 | 0.656738 | marehr |
4958e0e4495d1dcfdd543aa69b57e04b3080d15d | 542 | cpp | C++ | leetcode/1328. Break a Palindrome/s1.cpp | joycse06/LeetCode-1 | ad105bd8c5de4a659c2bbe6b19f400b926c82d93 | [
"Fair"
] | 1 | 2021-02-11T01:23:10.000Z | 2021-02-11T01:23:10.000Z | leetcode/1328. Break a Palindrome/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 1 | 2021-08-08T18:44:24.000Z | 2021-08-08T18:44:24.000Z | leetcode/1328. Break a Palindrome/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 1 | 2021-03-25T17:11:14.000Z | 2021-03-25T17:11:14.000Z | // OJ: https://leetcode.com/problems/break-a-palindrome/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(1)
class Solution {
public:
string breakPalindrome(string palindrome) {
int N = palindrome.size(), end = N / 2;
for (int i = 0; i < end; ++i) {
if (palindrome[i] != 'a') {
... | 25.809524 | 56 | 0.46679 | joycse06 |
495ad89e432ab9f0af10b5534737b962cd0de0d5 | 441 | cpp | C++ | class/constructors.cpp | Abhilekhgautam/Cpp-college | 3101cb061e36eee9d42226a8cfaf86ad5c695ef2 | [
"CC0-1.0"
] | 1 | 2021-07-22T08:38:25.000Z | 2021-07-22T08:38:25.000Z | class/constructors.cpp | Abhilekhgautam/Cpp-college | 3101cb061e36eee9d42226a8cfaf86ad5c695ef2 | [
"CC0-1.0"
] | null | null | null | class/constructors.cpp | Abhilekhgautam/Cpp-college | 3101cb061e36eee9d42226a8cfaf86ad5c695ef2 | [
"CC0-1.0"
] | null | null | null | /* A c++ program to describe "objects are destroyed int reverse order of their creation"*/
#include<iostream>
class Table{
public:
Table(){std::cout<<"Object Created"<<'\n';}
~Table(){std::cout<<"Object Destoyed"<<'\n';}
};
void f(int i)
{
Table aa;
Table bb;
if(i>0){
//cc will be created ... | 17.64 | 90 | 0.589569 | Abhilekhgautam |
495d1ce5531b5f88d17985d2c1a900531e11b56a | 484 | cpp | C++ | src/core/test/src/net/test_Socket.cpp | SimpleTalkCpp/libsita | e0c13f16cebf799f0d57b8345d21de7407f59e2b | [
"MIT"
] | 2 | 2021-03-19T13:19:27.000Z | 2021-04-03T17:42:30.000Z | src/core/test/src/net/test_Socket.cpp | SimpleTalkCpp/libsita | e0c13f16cebf799f0d57b8345d21de7407f59e2b | [
"MIT"
] | null | null | null | src/core/test/src/net/test_Socket.cpp | SimpleTalkCpp/libsita | e0c13f16cebf799f0d57b8345d21de7407f59e2b | [
"MIT"
] | null | null | null | #include <sita_core/base/UnitTest.h>
#include <sita_core/net/Socket.h>
namespace sita {
class Test_Socket : public UnitTestBase {
public:
void test_resolveIPv4() {
Vector<int> a;
IPv4 ip;
ip.resolve("localhost");
SITA_DUMP_VAR(ip);
SITA_TEST_CHECK(ip == IPv4(127,0,0,1));
SITA_TEST_CHE... | 17.925926 | 50 | 0.663223 | SimpleTalkCpp |
495d6d0beddca557ede7775b6206744dafd4081b | 582 | cpp | C++ | snippets/cpp/VS_Snippets_Data/Classic WebData XmlElement.SetAttributeNode1 Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-03-12T19:26:36.000Z | 2022-01-10T21:45:33.000Z | snippets/cpp/VS_Snippets_Data/Classic WebData XmlElement.SetAttributeNode1 Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_Data/Classic WebData XmlElement.SetAttributeNode1 Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
// <Snippet1>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{
XmlDocument^ doc = gcnew XmlDocument;
doc->LoadXml( "<book xmlns:bk='urn:samples' bk:ISBN='1-861001-57-5'><title>Pride And Prejudice</title></book>" );
XmlElement^ root = doc->... | 25.304348 | 116 | 0.670103 | BohdanMosiyuk |
495d74a4b2c72b6b43a2f4ca7d741b10949046a2 | 5,119 | cpp | C++ | src/modules/MouseUtils/FindMyMouse/dllmain.cpp | szlatkow/PowerToys | e62df46c6181551e80b7ce2cf85f03beccbfadf2 | [
"MIT"
] | 3 | 2021-11-21T03:03:41.000Z | 2021-11-21T23:57:28.000Z | src/modules/MouseUtils/FindMyMouse/dllmain.cpp | szlatkow/PowerToys | e62df46c6181551e80b7ce2cf85f03beccbfadf2 | [
"MIT"
] | 9 | 2021-05-12T17:12:35.000Z | 2021-10-30T14:57:56.000Z | src/modules/MouseUtils/FindMyMouse/dllmain.cpp | szlatkow/PowerToys | e62df46c6181551e80b7ce2cf85f03beccbfadf2 | [
"MIT"
] | 2 | 2021-05-26T09:02:21.000Z | 2021-05-26T09:02:22.000Z | #include "pch.h"
#include <interface/powertoy_module_interface.h>
#include <common/SettingsAPI/settings_objects.h>
#include "trace.h"
#include "FindMyMouse.h"
#include <thread>
#include <common/utils/logger_helper.h>
namespace
{
const wchar_t JSON_KEY_PROPERTIES[] = L"properties";
const wchar_t JSON_KEY_VALUE... | 27.521505 | 145 | 0.671616 | szlatkow |
4964b54bcc941dd66b264ede259bbf384a01cb92 | 416 | cpp | C++ | functions/prime_between_two_nums.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | functions/prime_between_two_nums.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | functions/prime_between_two_nums.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool prime_between_two_nums(int num)
{
for (int i = 2; i < sqrt(num); i++)
if (num % 2 == 0)
{
return false;
}
else
{
return true;
}
}
int main()
{
int a, b;
for (int i = a; i <= b; i++)
... | 16 | 39 | 0.427885 | sahilduhan |
496bf95d0aaecdc00598dc9fb87e2231003b1054 | 2,591 | cpp | C++ | ffl/source/utils/FFL_Clock.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | ffl/source/utils/FFL_Clock.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | ffl/source/utils/FFL_Clock.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | /*
* This file is part of FFL project.
*
* The MIT License (MIT)
* Copyright (C) 2017-2018 zhufeifei All rights reserved.
*
* FFL_Clock.cpp
* Created by zhufeifei(34008081@qq.com) on 2018/04/29
* https://github.com/zhenfei2016/FFL-v2.git
*
* 时钟类,可以获取当前时间,改变时钟速度,修改时钟原点偏移
* y=ax +b
*/
#include <utils/FFL_Clock.h... | 17.868966 | 95 | 0.565033 | zhenfei2016 |
496c85b7a32734eabd51d4fa2d7f9cce3a028f70 | 2,001 | cpp | C++ | nmainwindow.cpp | NeoProject/NeoPaintPrototype | ebfca88f7ddc2011daebf6d221c8e099f6e03645 | [
"Info-ZIP"
] | null | null | null | nmainwindow.cpp | NeoProject/NeoPaintPrototype | ebfca88f7ddc2011daebf6d221c8e099f6e03645 | [
"Info-ZIP"
] | null | null | null | nmainwindow.cpp | NeoProject/NeoPaintPrototype | ebfca88f7ddc2011daebf6d221c8e099f6e03645 | [
"Info-ZIP"
] | null | null | null | #include "nmainwindow.h"
#include "NGadget/nstatusbar.h"
#include "NGadget/nmenubar.h"
#include "NGadget/ntoolbar.h"
#include <QLabel>
#include <NCanvas/ncanvas.h>
#include "NGadget/nabout.h"
#include "NCanvas/ntabwidget.h"
#include <QMenu>
#include <QAction>
#include "NGadget/ntablettest.h"
#include "NDockWidget/ndock... | 31.761905 | 109 | 0.74013 | NeoProject |
4971d7fbcdd6db28eff49825d3b8a5b959f4e86a | 3,757 | cpp | C++ | Project/Part Five: Data Cache/Code/CacheStats.cpp | HernandezDerekJ/Computer-Architecture-3339 | 03785b02169a76ca0b1b38205bd5e64adde2b727 | [
"MIT"
] | null | null | null | Project/Part Five: Data Cache/Code/CacheStats.cpp | HernandezDerekJ/Computer-Architecture-3339 | 03785b02169a76ca0b1b38205bd5e64adde2b727 | [
"MIT"
] | null | null | null | Project/Part Five: Data Cache/Code/CacheStats.cpp | HernandezDerekJ/Computer-Architecture-3339 | 03785b02169a76ca0b1b38205bd5e64adde2b727 | [
"MIT"
] | null | null | null | /******************************
* CacheStats.cpp submitted by: Derek Hernandez (djh119)
* CS 3339 - Spring 2019
* Project 4 Branch Predictor
* Copyright 2019, all rights reserved
* Updated by Lee B. Hinkle based on prior work by Martin Burtscher and Molly O'Neil
******************************/
#include <iostream>... | 28.24812 | 94 | 0.526218 | HernandezDerekJ |
49724ecba26a56c2e2550a77eae9f9b0eabb32ef | 2,919 | cpp | C++ | application/CMatrix.cpp | HO-COOH/Console | f6132e4135db0c5432a2943a8f5f367a6ce1167d | [
"MIT"
] | 3 | 2020-06-05T05:18:32.000Z | 2021-07-29T01:13:07.000Z | application/CMatrix.cpp | HO-COOH/Console | f6132e4135db0c5432a2943a8f5f367a6ce1167d | [
"MIT"
] | null | null | null | application/CMatrix.cpp | HO-COOH/Console | f6132e4135db0c5432a2943a8f5f367a6ce1167d | [
"MIT"
] | null | null | null | #include "Console.h"
#include "ConsoleEngine.h"
#include "TimedEvent.hpp"
#include <iostream>
#include <thread>
#include <random>
#include <vector>
#include <array>
#include <functional>
static std::mt19937 rdEng{ std::random_device{}() };
char randomChar()
{
static std::uniform_int_distribution<int> rdNum{ '!', ... | 31.053191 | 115 | 0.488866 | HO-COOH |
49777283d6c10ab1c31f8cbaa2667c61dda384cf | 3,352 | hh | C++ | geometry2.hh | lnw/nano-tori | 5f43722085154c9315ada572108a360e6601dd1a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | geometry2.hh | lnw/nano-tori | 5f43722085154c9315ada572108a360e6601dd1a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | geometry2.hh | lnw/nano-tori | 5f43722085154c9315ada572108a360e6601dd1a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | // Copyright (c) 2019, Lukas Wirz
// All rights reserved.
// This file is part of 'nano-tori' which is released under the BSD-2-clause license.
// See file LICENSE in this project.
#ifndef GEOMETRY2_HH
#define GEOMETRY2_HH
#include <cassert>
#include <cmath>
#include <fstream>
#include <iostream>
#include <sstream>
... | 31.622642 | 123 | 0.636038 | lnw |
497938523755e3be70e0d1cc9bdad40f50ed3590 | 4,777 | cpp | C++ | playlistTable.cpp | allenyin/musicplayer2 | 429c5e86afc01df21161023d359826d65c9b35ec | [
"MIT"
] | 1 | 2016-06-05T15:14:22.000Z | 2016-06-05T15:14:22.000Z | playlistTable.cpp | allenyin/musicplayer2 | 429c5e86afc01df21161023d359826d65c9b35ec | [
"MIT"
] | null | null | null | playlistTable.cpp | allenyin/musicplayer2 | 429c5e86afc01df21161023d359826d65c9b35ec | [
"MIT"
] | 1 | 2019-04-17T15:19:08.000Z | 2019-04-17T15:19:08.000Z | #include "playlistTable.h"
#include "playlistmodel.h"
#include <stdio.h>
#include <iostream>
#include <QApplication>
#include <QHeaderView>
#include <QMimeData>
#include <QDebug>
class PlaylistModel;
PlaylistTable::PlaylistTable(QWidget* parent) : QTableView(parent) {
// edit only when F2 is pressed
setEditTr... | 30.621795 | 86 | 0.609378 | allenyin |
497a1492afe717c7f57e2f374dd963873003af7b | 28,261 | cpp | C++ | benchmark/message/message.cpp | smart-cloud/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 20 | 2016-01-07T07:37:52.000Z | 2019-06-02T12:04:25.000Z | benchmark/message/message.cpp | smart-cloud/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 30 | 2017-03-10T14:47:46.000Z | 2019-05-09T19:23:25.000Z | benchmark/message/message.cpp | jinncrafters/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 6 | 2017-03-10T14:06:01.000Z | 2018-08-13T18:19:37.000Z | #include <benchmark/benchmark.h>
#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include <actor-zeta/make_message.hpp>
#include "fixtures.hpp"
#include "register_benchmark.hpp"
namespace benchmark_messages {
static volatile int64_t message_sz = 0;
using raw_t = ac... | 81.20977 | 186 | 0.78695 | smart-cloud |
21a316b503d0458ef2a590ffd7f9f0cc7481d0d4 | 1,234 | cpp | C++ | Modeler/ScriptDoc.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Modeler/ScriptDoc.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Modeler/ScriptDoc.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | // ScriptDoc.cpp : implementation file
//
#include "stdafx.h"
#ifdef _DEBUG
#undef new
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CScriptDoc
IMPLEMENT_DYNCREATE(CScriptDoc, CDocument)
CScriptDoc:... | 18.984615 | 77 | 0.551053 | openlastchaos |
21a55d0c5e3ca82fd2e04d7ccd567e8d7846fe1a | 4,204 | cpp | C++ | Source/Cache/FrameCache.cpp | Karshilov/Dorothy-SSR | cce19ed2218d76f941977370f6b3894e2f87236a | [
"MIT"
] | 43 | 2020-01-29T02:22:41.000Z | 2021-12-06T04:20:12.000Z | Source/Cache/FrameCache.cpp | Jilliana8397/Dorothy-SSR | 5ad647909c5e20cb7ebde9a1a054cdb944969dcb | [
"MIT"
] | 1 | 2020-03-19T16:23:12.000Z | 2020-03-19T16:23:12.000Z | Source/Cache/FrameCache.cpp | Jilliana8397/Dorothy-SSR | 5ad647909c5e20cb7ebde9a1a054cdb944969dcb | [
"MIT"
] | 8 | 2020-03-08T13:46:08.000Z | 2021-07-19T11:30:23.000Z | /* Copyright (c) 2021 Jin Li, http://www.luvfight.me
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, publi... | 34.178862 | 463 | 0.672217 | Karshilov |
21a5dad926c4e000099bd64e80dadf40be432e3f | 381 | hpp | C++ | src/delta.hpp | crockeo/hc | a5f9eaa1051e8825fa765d120d8ea76682909a5a | [
"MIT"
] | null | null | null | src/delta.hpp | crockeo/hc | a5f9eaa1051e8825fa765d120d8ea76682909a5a | [
"MIT"
] | null | null | null | src/delta.hpp | crockeo/hc | a5f9eaa1051e8825fa765d120d8ea76682909a5a | [
"MIT"
] | null | null | null | #ifndef _DELTA_HPP_
#define _DELTA_HPP_
//////////
// Code //
// Getting the current system time in milliseconds.
int getTimeMillis();
// A utility to do some delta timing stuff.
class Delta {
private:
int last, curr;
bool first;
public:
// Constructing a delta.
Delta();
// Getting the time sin... | 15.24 | 57 | 0.650919 | crockeo |
21a5f501ef3650eec5efbe46f08a594997b372d5 | 652 | cpp | C++ | Codeforces/A_Games.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Codeforces/A_Games.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Codeforces/A_Games.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define endl "\n"
#define pi acos(-1)
#define faster_io ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;
int main()
{
//freopen("/home/sohel/Documents/my_codes/out.txt", "wt", stdout);
faster_io;
int n, cnt_rep = 0, cnt = 0;
cin >> n;
int h[... | 21.733333 | 77 | 0.435583 | Sohelr360 |
21a61f52b9ddbd1d42dcc22dee17ed910b20266f | 6,950 | hpp | C++ | include/crocoddyl/multibody/frames.hpp | ggory15/crocoddyl | 4708428676f596f93ffe2df739faeb5cc38d2326 | [
"BSD-3-Clause"
] | null | null | null | include/crocoddyl/multibody/frames.hpp | ggory15/crocoddyl | 4708428676f596f93ffe2df739faeb5cc38d2326 | [
"BSD-3-Clause"
] | null | null | null | include/crocoddyl/multibody/frames.hpp | ggory15/crocoddyl | 4708428676f596f93ffe2df739faeb5cc38d2326 | [
"BSD-3-Clause"
] | null | null | null |
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2018-2020, LAAS-CNRS, University of Edinburgh
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
////////////////////////////////////////////////////////... | 36.387435 | 119 | 0.684029 | ggory15 |
21a97cdb8a3aca9743c770e22e6a6be248f6da18 | 1,163 | cpp | C++ | bzoj/1064.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/1064.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/1064.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=(x<<3)+(x<<1)+ch-'0';ch=getchar();}
return x*f;
}
const int inf = 1<<30;
int n, m, cnt, maxn, minx, ans, tmp;
struct edge{int to,nxt,val;}e[2... | 24.744681 | 62 | 0.545142 | swwind |
21afeaaaffd32f0e17161a02333cff232f80cdef | 790 | hpp | C++ | src/beast/include/beast/core/detail/clamp.hpp | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | 5 | 2018-02-02T04:50:43.000Z | 2020-10-14T08:15:01.000Z | src/beast/include/beast/core/detail/clamp.hpp | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | 10 | 2019-01-07T05:33:34.000Z | 2020-07-15T00:09:26.000Z | src/beast/include/beast/core/detail/clamp.hpp | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | 4 | 2017-06-06T12:49:07.000Z | 2021-07-01T07:44:49.000Z | //
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BEAST_CORE_DETAIL_CLAMP_HPP
#define BEAST_CORE_DETAIL_CLAMP_HPP
#include... | 19.268293 | 79 | 0.696203 | Py9595 |
21b0580c4ba426b315ac89f33121ce92e45e01e7 | 1,098 | cpp | C++ | src/main.cpp | rathyon/xgp | 8aba899746665d4d6afd51c9e83d5065e2f51abb | [
"MIT"
] | null | null | null | src/main.cpp | rathyon/xgp | 8aba899746665d4d6afd51c9e83d5065e2f51abb | [
"MIT"
] | null | null | null | src/main.cpp | rathyon/xgp | 8aba899746665d4d6afd51c9e83d5065e2f51abb | [
"MIT"
] | null | null | null | #include "XGPApp.h"
using namespace xgp;
XGPApp* app;
void errorCallback(int error, const char* description) {
app->errorCallback(error, description);
}
void reshapeCallback(GLFWwindow* window, int width, int height) {
app->reshapeCallback(width, height);
}
void keyCallback(GLFWwindow* window, int key, int scancod... | 26.780488 | 83 | 0.752277 | rathyon |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.