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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1edc6499c34792d8c0b527c17a5f51f5e12b038 | 6,108 | cc | C++ | Sources/Process.cc | TaliskerPlatform/FoundationKit.framework | 9bac5ae0c54a79c1a2d80619d75b41b71919895b | [
"Apache-2.0"
] | 1 | 2019-02-22T05:35:32.000Z | 2019-02-22T05:35:32.000Z | Sources/Process.cc | TaliskerPlatform/FoundationKit.framework | 9bac5ae0c54a79c1a2d80619d75b41b71919895b | [
"Apache-2.0"
] | null | null | null | Sources/Process.cc | TaliskerPlatform/FoundationKit.framework | 9bac5ae0c54a79c1a2d80619d75b41b71919895b | [
"Apache-2.0"
] | null | null | null | /* Talisker
* Foundation Toolkit
*/
/* Copyright 2012-2017 Mo McRoberts.
*
* 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
*
* ... | 19.268139 | 76 | 0.670596 | TaliskerPlatform |
e1efd917ca8ed716a180f994c7e7e9f17a78649a | 2,549 | cc | C++ | algorithms/imu-integrator-rk4/test/imu_integrator_eigen_test_fixture.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 1,936 | 2017-11-27T23:11:37.000Z | 2022-03-30T14:24:14.000Z | algorithms/imu-integrator-rk4/test/imu_integrator_eigen_test_fixture.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 353 | 2017-11-29T18:40:39.000Z | 2022-03-30T15:53:46.000Z | algorithms/imu-integrator-rk4/test/imu_integrator_eigen_test_fixture.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 661 | 2017-11-28T07:20:08.000Z | 2022-03-28T08:06:29.000Z | #include <memory>
#include <Eigen/Core>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <maplab-common/test/testing-entrypoint.h>
#include <maplab-common/test/testing-predicates.h>
#include "imu-integrator/imu-integrator-eigen.h"
using namespace imu_integrator; // NOLINT
Eigen::Vector4d getOrientationF... | 29.639535 | 68 | 0.734798 | AdronTech |
e1f405e439ae1b5881ad4611a5550f61933f81b5 | 860 | cpp | C++ | hi_tools/mcl_editor/mcl_editor.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | hi_tools/mcl_editor/mcl_editor.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | hi_tools/mcl_editor/mcl_editor.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | /** ============================================================================
*
* mcl_editor JUCE module
*
* Copyright (C) Jonathan Zrake
*
* You may use, distribute and modify this code under the terms of the GPL3
* license.
* =============================================================================
*/... | 31.851852 | 80 | 0.636047 | Matt-Dub |
e1fccab5e9522a0800e51c6c64cc89a62fe5936b | 2,411 | hpp | C++ | llarp/crypto/encrypted_frame.hpp | Cipherwraith/loki-network | 44e941d0b894ead3ca7d488fc3fb6f2d9b3a34ff | [
"Zlib"
] | 1 | 2021-03-05T18:23:45.000Z | 2021-03-05T18:23:45.000Z | llarp/crypto/encrypted_frame.hpp | gjyoung1974/loki-network | 6559bb8f9e80095b4a7462ccb8fdf12e8ce19527 | [
"Zlib"
] | null | null | null | llarp/crypto/encrypted_frame.hpp | gjyoung1974/loki-network | 6559bb8f9e80095b4a7462ccb8fdf12e8ce19527 | [
"Zlib"
] | null | null | null | #ifndef LLARP_ENCRYPTED_FRAME_HPP
#define LLARP_ENCRYPTED_FRAME_HPP
#include <crypto/encrypted.hpp>
#include <crypto/types.hpp>
#include <util/buffer.hpp>
#include <utility>
#include <util/mem.h>
#include <util/thread/threadpool.h>
namespace llarp
{
static constexpr size_t EncryptedFrameOverheadSize =
PUBKEYS... | 24.353535 | 78 | 0.644961 | Cipherwraith |
c008120488eac64317434c2e40ed55c1cddb484f | 148 | cpp | C++ | Source/xplode/Private/xplodeGameStateBase.cpp | hyprblast/xplode | d9bcdfe4773e3429163c67c0bc10f0c357b666e7 | [
"MIT"
] | null | null | null | Source/xplode/Private/xplodeGameStateBase.cpp | hyprblast/xplode | d9bcdfe4773e3429163c67c0bc10f0c357b666e7 | [
"MIT"
] | null | null | null | Source/xplode/Private/xplodeGameStateBase.cpp | hyprblast/xplode | d9bcdfe4773e3429163c67c0bc10f0c357b666e7 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "xplodeGameStateBase.h"
#include "Net/UnrealNetwork.h"
| 16.444444 | 78 | 0.77027 | hyprblast |
c008db0cce5a43b4f22f9f56ec15ca1a1cea1425 | 1,798 | hpp | C++ | libs/core/render/include/bksge/core/render/d3d12/detail/inl/hlsl_texture_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/include/bksge/core/render/d3d12/detail/inl/hlsl_texture_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/include/bksge/core/render/d3d12/detail/inl/hlsl_texture_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file hlsl_texture_inl.hpp
*
* @brief HlslTexture クラスの実装
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_RENDER_D3D12_DETAIL_INL_HLSL_TEXTURE_INL_HPP
#define BKSGE_CORE_RENDER_D3D12_DETAIL_INL_HLSL_TEXTURE_INL_HPP
#include <bksge/core/render/config.hpp>
#if BKSGE_CORE_RENDER_HAS_D3D12_RENDERER
... | 22.759494 | 76 | 0.749166 | myoukaku |
c009df682d54ae88f68ada5689fcbe22c7239df1 | 1,010 | cpp | C++ | src/dawn/common/Result.cpp | encounter/dawn-cmake | 64a23ce0ede5f232cc209b69d64164ede6810b65 | [
"Apache-2.0"
] | null | null | null | src/dawn/common/Result.cpp | encounter/dawn-cmake | 64a23ce0ede5f232cc209b69d64164ede6810b65 | [
"Apache-2.0"
] | null | null | null | src/dawn/common/Result.cpp | encounter/dawn-cmake | 64a23ce0ede5f232cc209b69d64164ede6810b65 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The Dawn Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 32.580645 | 75 | 0.739604 | encounter |
c00c1656b9a97d4d39abbe6dc9906310bfd56341 | 900 | cpp | C++ | parallelism/std_threads.cpp | mtosi/esc19 | 9e41d4b411eb3346a4822341efb6f06ee0ba0ca8 | [
"CC-BY-4.0"
] | null | null | null | parallelism/std_threads.cpp | mtosi/esc19 | 9e41d4b411eb3346a4822341efb6f06ee0ba0ca8 | [
"CC-BY-4.0"
] | null | null | null | parallelism/std_threads.cpp | mtosi/esc19 | 9e41d4b411eb3346a4822341efb6f06ee0ba0ca8 | [
"CC-BY-4.0"
] | null | null | null | #include <thread>
#include <iostream>
#include <stdio.h>
#include <chrono>
int main()
{
auto f = [](int i) {
auto start = std::chrono::system_clock::now();
// std::cout << "hello world from thread " << i << std::endl;
std::cout << "hello world" << " " << "from thread " << i << std::endl;
// pri... | 29.032258 | 115 | 0.57 | mtosi |
c00e183c4ded16f6f42f2ab917fac96c9d68a61f | 2,903 | cpp | C++ | try_dfs+bfs.cpp | Fisher-Wang/GraphPackaging | 6dd42f65a7d41cc1c5b679e4b41b0a3385e2c7fd | [
"MIT"
] | 1 | 2022-03-21T05:28:49.000Z | 2022-03-21T05:28:49.000Z | try_dfs+bfs.cpp | Fisher-Wang/GraphPackaging | 6dd42f65a7d41cc1c5b679e4b41b0a3385e2c7fd | [
"MIT"
] | null | null | null | try_dfs+bfs.cpp | Fisher-Wang/GraphPackaging | 6dd42f65a7d41cc1c5b679e4b41b0a3385e2c7fd | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#include <queue>
#include <cmath>
#include "graph.h"
using namespace std;
double loss_prob = 0.2;
vector<int> edges[NODE_NUM_MAX];
int weight[NODE_NUM_MAX];
int TW;
int n; // tot node number
int in_deg[NODE_NUM_MAX];
double value[NODE_NUM_MA... | 24.811966 | 89 | 0.541853 | Fisher-Wang |
c00e89f97b0484d0ffb747a5508384580f20e9b1 | 1,153 | cpp | C++ | Graphics.DX11/DX11Shader.cpp | MartijnTerpstra/CainEngine | da52dc065e619ba5761521a024055c6f03d04c8e | [
"MIT"
] | null | null | null | Graphics.DX11/DX11Shader.cpp | MartijnTerpstra/CainEngine | da52dc065e619ba5761521a024055c6f03d04c8e | [
"MIT"
] | null | null | null | Graphics.DX11/DX11Shader.cpp | MartijnTerpstra/CainEngine | da52dc065e619ba5761521a024055c6f03d04c8e | [
"MIT"
] | null | null | null | #include "Precomp.h"
#include "DX11Shader.h"
using namespace ::CainEngine::Graphics;
using namespace ::CainEngine::Graphics::DX11;
API::VertexShader::VertexShader(ID3D11Device* device, API::CompiledShaderData&& shaderData, vector<byte>&& byteCode, uint64_t inputRegisterHash)
: m_byteCode(move(byteCode)),
m_inputRe... | 25.065217 | 144 | 0.773634 | MartijnTerpstra |
84fc05b55712991ece24f8cc57f5f2622a4b5608 | 20,399 | cpp | C++ | Source/Common/NetBuffer.cpp | rotators/fonline | cd479200c424f220c9b84891621bba48c637df8a | [
"MIT"
] | 4 | 2019-01-22T07:15:23.000Z | 2021-07-29T03:10:47.000Z | Source/Common/NetBuffer.cpp | rotators/fonline | cd479200c424f220c9b84891621bba48c637df8a | [
"MIT"
] | null | null | null | Source/Common/NetBuffer.cpp | rotators/fonline | cd479200c424f220c9b84891621bba48c637df8a | [
"MIT"
] | null | null | null | // __________ ___ ______ _
// / ____/ __ \____ / (_)___ ___ / ____/___ ____ _(_)___ ___
// / /_ / / / / __ \/ / / __ \/ _ \ / __/ / __ \/ __ `/ / __ \/ _ \
// / __/ / /_/ / / / / / / / / / __/ / /___/ / / / /_/ / / / / / __/
// /_/ \____/_/ /_/_/_/_/ /_/\_... | 31.873438 | 131 | 0.661699 | rotators |
84fcac43369c9724efec97363f321cffa7d40433 | 894 | cpp | C++ | 18.03-fromValueToList1/main.cpp | andreasfertig/notebookcpp-tips-and-tricks-with-templates | 22e38e1245d6e2c625e0ff96d556927918bfaa5a | [
"MIT"
] | 5 | 2022-02-12T17:12:23.000Z | 2022-03-15T03:01:14.000Z | 18.03-fromValueToList1/main.cpp | andreasfertig/notebookcpp-tips-and-tricks-with-templates | 22e38e1245d6e2c625e0ff96d556927918bfaa5a | [
"MIT"
] | null | null | null | 18.03-fromValueToList1/main.cpp | andreasfertig/notebookcpp-tips-and-tricks-with-templates | 22e38e1245d6e2c625e0ff96d556927918bfaa5a | [
"MIT"
] | 6 | 2021-08-09T23:32:37.000Z | 2022-03-15T03:01:17.000Z | // Copyright (c) Andreas Fertig.
// SPDX-License-Identifier: MIT
#include <cstddef>
#include <utility>
using Object = int;
namespace details {
template<typename T, size_t N, size_t... I>
constexpr bool Compare(const T (&a)[N],
const T (&b)[N],
std::index_sequence... | 21.285714 | 52 | 0.535794 | andreasfertig |
84fe082d5bec6e72129a1ef931c728c5abe235bf | 639 | hpp | C++ | include/ct/math/detail/setup.hpp | purpurina-engine/purpurina-frwk | 1df6fc2768f346fd47fd5cc3dd05daa59dea3726 | [
"MIT"
] | null | null | null | include/ct/math/detail/setup.hpp | purpurina-engine/purpurina-frwk | 1df6fc2768f346fd47fd5cc3dd05daa59dea3726 | [
"MIT"
] | null | null | null | include/ct/math/detail/setup.hpp | purpurina-engine/purpurina-frwk | 1df6fc2768f346fd47fd5cc3dd05daa59dea3726 | [
"MIT"
] | null | null | null |
#ifndef _CHRONOTRIX_FRWK_MATH_SETUP_HPP_
#define _CHRONOTRIX_FRWK_MATH_SETUP_HPP_
#include <ct/config.hpp>
#if defined(CT_ASSERT)
#define __CT_MATH_ASSERT CT_ASSERT
#elif defined(assert)
#define __CT_MATH_ASSERT assert
#else
#define __CT_MATH_ASSERT(...) (void)0
#endif
#define CT_MATH_FUNC CT_CONSTEXPR
#define C... | 16.815789 | 53 | 0.779343 | purpurina-engine |
84ff62c20798917744973703cf75c9cbea695590 | 10,673 | cpp | C++ | src/Identity/Identity.cpp | jspark311/CppPotpourri | e68acc26161d02835be6efc212b9e74e7795a208 | [
"Apache-2.0"
] | 3 | 2020-02-23T01:29:20.000Z | 2021-01-27T21:26:34.000Z | src/Identity/Identity.cpp | jspark311/CppPotpourri | e68acc26161d02835be6efc212b9e74e7795a208 | [
"Apache-2.0"
] | null | null | null | src/Identity/Identity.cpp | jspark311/CppPotpourri | e68acc26161d02835be6efc212b9e74e7795a208 | [
"Apache-2.0"
] | 1 | 2020-09-08T01:08:10.000Z | 2020-09-08T01:08:10.000Z | /*
File: Identity.cpp
Author: J. Ian Lindsay
Date: 2016.08.28
Copyright 2016 Manuvr, 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 ... | 33.66877 | 119 | 0.549986 | jspark311 |
17046d53adc530e2f95fbe6283f3db0cfd190cd0 | 8,219 | cpp | C++ | projects/parameterization/src/main.cpp | MarekMarchlewicz/ddg-exercises | 18db65d06769633f7dc8181d08d6f8b3a227eb0e | [
"MIT"
] | 54 | 2021-02-02T00:23:47.000Z | 2022-03-25T04:36:37.000Z | projects/parameterization/src/main.cpp | MarekMarchlewicz/ddg-exercises | 18db65d06769633f7dc8181d08d6f8b3a227eb0e | [
"MIT"
] | 5 | 2021-02-13T11:45:57.000Z | 2022-03-21T18:24:34.000Z | projects/parameterization/src/main.cpp | MarekMarchlewicz/ddg-exercises | 18db65d06769633f7dc8181d08d6f8b3a227eb0e | [
"MIT"
] | 34 | 2021-02-12T19:01:18.000Z | 2022-03-24T22:12:22.000Z | // PARAMETERIZATION
#include "geometrycentral/surface/manifold_surface_mesh.h"
#include "geometrycentral/surface/meshio.h"
#include "geometrycentral/surface/vertex_position_geometry.h"
#include "polyscope/polyscope.h"
#include "polyscope/surface_mesh.h"
#include "args/args.hxx"
#include "imgui.h"
#include "distorti... | 33.410569 | 112 | 0.684146 | MarekMarchlewicz |
1704885a8ab3a3cfc02fa976140ef4ac86240b2d | 6,779 | cpp | C++ | Pos.cpp | pasosdeJesus/Mt77 | d00c90509eddfd47b091bf4ce6d8c84aa7d775c7 | [
"0BSD"
] | 2 | 2020-08-20T16:17:03.000Z | 2020-09-17T19:58:43.000Z | Pos.cpp | pasosdeJesus/Mt77 | d00c90509eddfd47b091bf4ce6d8c84aa7d775c7 | [
"0BSD"
] | 2 | 2020-08-05T19:43:58.000Z | 2021-01-27T16:51:08.000Z | Pos.cpp | pasosdeJesus/Mt77 | d00c90509eddfd47b091bf4ce6d8c84aa7d775c7 | [
"0BSD"
] | 1 | 2020-07-10T14:31:28.000Z | 2020-07-10T14:31:28.000Z | // vim: set expandtab tabstop=8 shiftwidth=8 foldmethod=marker:
/** @file Pos.cpp
* Posición
*
* @package Mt77
* @author Vladimir Támara Patiño. vtamara@pasosdeJesus.org
* Dominio público. 2009. Sin garantías
* http://creativecommons.org/licenses/publicdomain/
* @version $Id: Pos.cpp,v 1.13 2010/01/18 16:12:5... | 34.237374 | 136 | 0.352559 | pasosdeJesus |
1708196087d85c999a513b13dd278fbe25f49759 | 1,018 | cpp | C++ | src/station_base.cpp | seanhagen/sf_mm_weather | 31ca00046fc16ad6ac29a01d1c258d12803acabf | [
"MIT"
] | null | null | null | src/station_base.cpp | seanhagen/sf_mm_weather | 31ca00046fc16ad6ac29a01d1c258d12803acabf | [
"MIT"
] | null | null | null | src/station_base.cpp | seanhagen/sf_mm_weather | 31ca00046fc16ad6ac29a01d1c258d12803acabf | [
"MIT"
] | null | null | null | #include <station.h>
void Station::readAll(allMeasurements *measurements) {
measurements->immediate = (immediateMeasurements){
.temperature = tempLast,
.humidity = humLast,
.pressure = presLast,
.uva = uvaLast,
.uvb = uvbLast,
.uvIndex = uviLast,
.windDir = currentWindDir,
... | 26.102564 | 54 | 0.644401 | seanhagen |
170e86a77fa704791f7af740a351fa3b731dde59 | 15,746 | cpp | C++ | iceoryx_hoofs/test/moduletests/test_ipc_channel.cpp | fengqikai1414/iceoryx | 82dd00c5804e4dcd3ffcbeeb78f46bfcfb700648 | [
"Apache-2.0"
] | null | null | null | iceoryx_hoofs/test/moduletests/test_ipc_channel.cpp | fengqikai1414/iceoryx | 82dd00c5804e4dcd3ffcbeeb78f46bfcfb700648 | [
"Apache-2.0"
] | null | null | null | iceoryx_hoofs/test/moduletests/test_ipc_channel.cpp | fengqikai1414/iceoryx | 82dd00c5804e4dcd3ffcbeeb78f46bfcfb700648 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI 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:... | 36.962441 | 120 | 0.716055 | fengqikai1414 |
17103a5375177fb1ad75a3547709ab7645074490 | 508 | cpp | C++ | WaveRender.cpp | oormicreations/naad2 | 0e881b669f370b916efe429e4db79fd66bfb18b0 | [
"MIT"
] | 4 | 2019-01-09T13:39:59.000Z | 2021-11-16T17:15:58.000Z | WaveRender.cpp | oormicreations/naad2 | 0e881b669f370b916efe429e4db79fd66bfb18b0 | [
"MIT"
] | null | null | null | WaveRender.cpp | oormicreations/naad2 | 0e881b669f370b916efe429e4db79fd66bfb18b0 | [
"MIT"
] | 1 | 2021-12-01T02:12:01.000Z | 2021-12-01T02:12:01.000Z | #include "stdafx.h"
#include "WaveRender.h"
CWaveRender::CWaveRender()
{
}
CWaveRender::~CWaveRender()
{
}
BOOL CWaveRender::CreateDesWav()
{
BOOL bResult = false;
//m_Dest.
return bResult;
}
BOOL CWaveRender::Render(CString bolpath)
{
BOOL bResult = false;
CString str;
str = bolpath + "\\Acc\\Render.wav";... | 13.368421 | 41 | 0.677165 | oormicreations |
1711a6d99397cd936d6cd37b5871aa760be58ea3 | 3,197 | hpp | C++ | DT3Core/Resources/Importers/ImporterShaderSHDR.hpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3Core/Resources/Importers/ImporterShaderSHDR.hpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | null | null | null | DT3Core/Resources/Importers/ImporterShaderSHDR.hpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2016-01-14T07:51:52.000Z | 2021-08-21T08:02:51.000Z | #ifndef DT3_IMPORTERSHADERSHDR
#define DT3_IMPORTERSHADERSHDR
//==============================================================================
///
/// File: ImporterShaderSHDR.hpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and con... | 38.518072 | 109 | 0.467 | 9heart |
17126c127a31dcdbd6ef5112e776d69bd5800895 | 1,924 | cpp | C++ | Linear Recurrence/LinearRecurrence.cpp | pranav230/CP_TRICKS | b7a6bdb7604f75324606a27f1752102900780c88 | [
"MIT"
] | null | null | null | Linear Recurrence/LinearRecurrence.cpp | pranav230/CP_TRICKS | b7a6bdb7604f75324606a27f1752102900780c88 | [
"MIT"
] | null | null | null | Linear Recurrence/LinearRecurrence.cpp | pranav230/CP_TRICKS | b7a6bdb7604f75324606a27f1752102900780c88 | [
"MIT"
] | 1 | 2020-05-15T11:58:43.000Z | 2020-05-15T11:58:43.000Z | /*
*
* Author: Pranav Bansal
*
*/
// Solving linear Recurrance Equation with Transformation matrix and Matrix Exponentiation
#include<bits/stdc++.h>
#define fast ios_base::sync_with_stdio(false); cin.tie(0);
#define rep(i,a,n) for(int i=a;i<n;i++)
#define all(x) x.begin(),x.end()
#define watch(x) cout<<#x<<" = ... | 17.026549 | 90 | 0.551455 | pranav230 |
171d84da1983155f3dfdda41f8137ddf8bc196e1 | 4,551 | cpp | C++ | src/runtime/NEON/functions/NELogical.cpp | wql15/ComputeLibrary | 11eac125873e91c828e318224db45701e2f32b39 | [
"MIT"
] | 2,313 | 2017-03-24T16:25:28.000Z | 2022-03-31T03:00:30.000Z | src/runtime/NEON/functions/NELogical.cpp | wql15/ComputeLibrary | 11eac125873e91c828e318224db45701e2f32b39 | [
"MIT"
] | 952 | 2017-03-28T07:05:58.000Z | 2022-03-30T09:54:02.000Z | src/runtime/NEON/functions/NELogical.cpp | wql15/ComputeLibrary | 11eac125873e91c828e318224db45701e2f32b39 | [
"MIT"
] | 714 | 2017-03-24T22:21:51.000Z | 2022-03-18T19:49:57.000Z | /*
* Copyright (c) 2020-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... | 34.218045 | 110 | 0.733465 | wql15 |
171e83ca5a3759a86273c5f7aa7b6b889c33ad8d | 3,679 | cpp | C++ | src/video_output.cpp | janjachnik/Pangolin | fafe8c9f72f7c4d07d940e27975a53b7811ec9c4 | [
"MIT"
] | null | null | null | src/video_output.cpp | janjachnik/Pangolin | fafe8c9f72f7c4d07d940e27975a53b7811ec9c4 | [
"MIT"
] | 3 | 2015-04-24T20:33:26.000Z | 2015-05-05T17:22:07.000Z | src/video_output.cpp | janjachnik/Pangolin | fafe8c9f72f7c4d07d940e27975a53b7811ec9c4 | [
"MIT"
] | 4 | 2016-03-18T13:20:37.000Z | 2019-10-08T22:36:20.000Z | /* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) 2011-2013 Steven Lovegrove
*
* 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 Softwar... | 25.19863 | 89 | 0.643381 | janjachnik |
171f3722db8b5378d2c5b01b1b24d83151557709 | 639 | cc | C++ | Guerra/src/Card/Card.cc | errowdrigorena/Guerra | d33d47831e2817bb1e19b75b61806c7aa6358026 | [
"MIT"
] | null | null | null | Guerra/src/Card/Card.cc | errowdrigorena/Guerra | d33d47831e2817bb1e19b75b61806c7aa6358026 | [
"MIT"
] | null | null | null | Guerra/src/Card/Card.cc | errowdrigorena/Guerra | d33d47831e2817bb1e19b75b61806c7aa6358026 | [
"MIT"
] | null | null | null | /*
* Card.cc
*
* Created on: Feb 11, 2022
* Author: iban
*/
#include <Card/Card.h>
namespace card
{
Card::Card(unsigned int colour, unsigned int value) : colour_id_{colour },
value_{value }
{
; //do nothing
}
Card::~Card()
{
// TODO Auto-generated destructor stub
}
bool operator > (const Card& lho, ... | 14.2 | 74 | 0.636933 | errowdrigorena |
1723f30369da9fc03bde1b390b12899e683ad72b | 217 | cpp | C++ | EpicForceEngine/MagnumEngineLib/MagnumCore/GXDepthBuffer.cpp | MacgyverLin/MagnumEngine | 975bd4504a1e84cb9698c36e06bd80c7b8ced0ff | [
"MIT"
] | 1 | 2021-03-30T06:28:32.000Z | 2021-03-30T06:28:32.000Z | EpicForceEngine/MagnumEngineLib/MagnumCore/GXDepthBuffer.cpp | MacgyverLin/MagnumEngine | 975bd4504a1e84cb9698c36e06bd80c7b8ced0ff | [
"MIT"
] | null | null | null | EpicForceEngine/MagnumEngineLib/MagnumCore/GXDepthBuffer.cpp | MacgyverLin/MagnumEngine | 975bd4504a1e84cb9698c36e06bd80c7b8ced0ff | [
"MIT"
] | null | null | null | #include "GXDepthBuffer.h"
GXDepthBuffer::GXDepthBuffer(int width_, int height_, const GXPixelFormat &format_)
: GXPixelBuffer(GXPixelBufferType::DepthBuffer, width_, height_, format_, GXPixelBufferOption::None)
{
} | 36.166667 | 100 | 0.806452 | MacgyverLin |
1723f432be1d551986d385d8d4b02b2e00268031 | 1,425 | hpp | C++ | third_party/include/mvscxx/oglplus/object/name.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | 24 | 2015-01-31T15:30:49.000Z | 2022-01-29T08:36:42.000Z | third_party/include/mvscxx/oglplus/object/name.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | 4 | 2015-08-21T02:29:15.000Z | 2020-05-02T13:50:36.000Z | third_party/include/mvscxx/oglplus/object/name.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /**
* @file oglplus/object/name.hpp
* @brief Base class for OpenGL "named" objects
*
* @author Matus Chochlik
*
* Copyright 2010-2014 Matus Chochlik. 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)
*/
... | 30.978261 | 68 | 0.795088 | Simmesimme |
172d05acdc52e85608372fb425002efbd5f662bb | 20,938 | cpp | C++ | projects/world/terrain/GroundBiomes.cpp | Bycob/world | c6d943f9029c1bb227891507e5c6fe2b94cecfeb | [
"MIT"
] | 16 | 2021-03-14T16:30:32.000Z | 2022-03-18T13:41:53.000Z | projects/world/terrain/GroundBiomes.cpp | Bycob/world | c6d943f9029c1bb227891507e5c6fe2b94cecfeb | [
"MIT"
] | 1 | 2020-04-21T12:59:37.000Z | 2020-04-23T17:49:03.000Z | projects/world/terrain/GroundBiomes.cpp | BynaryCobweb/world | c6d943f9029c1bb227891507e5c6fe2b94cecfeb | [
"MIT"
] | 4 | 2020-03-08T14:04:50.000Z | 2020-12-03T08:51:04.000Z | #include "GroundBiomes.h"
#include <vector>
#include <map>
#include <memory>
#include <list>
#include "world/core/WorldTypes.h"
#include "world/core/Chunk.h"
#include "world/math/Vector.h"
#include "world/math/BoundingBox.h"
#include "world/math/RandomHelper.h"
#include "world/assets/ColorOps.h"
#include "Terrain.h"
... | 35.85274 | 80 | 0.55287 | Bycob |
173041ac32b71e2d0624abf164c72ea72d09252e | 4,959 | cpp | C++ | gui/dialogs/dialogunits.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 4 | 2019-07-18T15:05:09.000Z | 2020-03-14T09:50:07.000Z | gui/dialogs/dialogunits.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 328 | 2019-06-30T12:03:01.000Z | 2020-10-05T15:56:35.000Z | gui/dialogs/dialogunits.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 1 | 2019-06-08T22:47:14.000Z | 2019-06-08T22:47:14.000Z | #include "dialogunits.hpp"
#include "dialogeditunit.hpp"
#include "sme/logger.hpp"
#include "ui_dialogunits.h"
DialogUnits::DialogUnits(sme::model::ModelUnits &modelUnits, QWidget *parent)
: QDialog(parent), ui{std::make_unique<Ui::DialogUnits>()},
units(modelUnits) {
ui->setupUi(this);
connect(ui->butt... | 35.676259 | 79 | 0.699738 | lkeegan |
173425ebdb6cb34278d89ff9f561ae581e4f7954 | 497 | cpp | C++ | exchange/src/LocalTrade.cpp | pestotoast/mmx-node | eb9e27aa077c111e814c62cc5b716c4957eac09e | [
"Apache-2.0"
] | 154 | 2021-12-24T19:18:15.000Z | 2022-03-24T04:49:45.000Z | exchange/src/LocalTrade.cpp | pestotoast/mmx-node | eb9e27aa077c111e814c62cc5b716c4957eac09e | [
"Apache-2.0"
] | 33 | 2021-12-26T03:21:54.000Z | 2022-03-24T12:52:40.000Z | exchange/src/LocalTrade.cpp | pestotoast/mmx-node | eb9e27aa077c111e814c62cc5b716c4957eac09e | [
"Apache-2.0"
] | 23 | 2021-12-26T03:23:33.000Z | 2022-02-20T18:10:45.000Z | /*
* LocalTrade.cpp
*
* Created on: Feb 11, 2022
* Author: mad
*/
#include <mmx/exchange/LocalTrade.hxx>
#include <mmx/exchange/trade_pair_t.hpp>
namespace mmx {
namespace exchange {
std::shared_ptr<const LocalTrade> LocalTrade::reverse() const
{
auto out = std::make_shared<LocalTrade>(*this);
out->pai... | 17.75 | 82 | 0.665996 | pestotoast |
173426a348a2f2de7b0cc187acd543b3fab4689e | 9,979 | cpp | C++ | base/source/ESBConnectionPool.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | base/source/ESBConnectionPool.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | base/source/ESBConnectionPool.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | #ifndef ESB_CONNECTION_POOL_H
#include <ESBConnectionPool.h>
#endif
#ifndef ESB_LOGGER_H
#include <ESBLogger.h>
#endif
#ifndef ESB_CLIENT_TLS_SOCKET_H
#include <ESBClientTLSSocket.h>
#endif
#ifndef ESB_CLEAR_SOCKET_H
#include <ESBClearSocket.h>
#endif
namespace ESB {
ConnectionPool::ConnectionPool(const char *pref... | 28.757925 | 120 | 0.672612 | duderino |
17347908af4a8681e47e298d0ab7281e1feb12ff | 9,358 | cpp | C++ | code/engine.vc2008/xrParticles/ParticlesPlayer.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 1 | 2021-04-26T07:32:34.000Z | 2021-04-26T07:32:34.000Z | code/engine.vc2008/xrParticles/ParticlesPlayer.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrParticles/ParticlesPlayer.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 3 | 2021-11-01T06:21:26.000Z | 2022-01-08T16:13:23.000Z | ///////////////////////////////////////////////////////////////
// ParticlesPlayer.cpp
// интерфейс для проигрывания партиклов на объекте
///////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ParticlesPlayer.h"
#include "../xrEngine/xr_object.h"
#include "../Include/xrRender/Kine... | 27.282799 | 153 | 0.696516 | Rikoshet-234 |
1738072a82c747b208c56501ceadaa73f11e6fad | 2,722 | hpp | C++ | main/include/tux/init_request.hpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | main/include/tux/init_request.hpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | main/include/tux/init_request.hpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | /** @file init_request.hpp
@c init_request class and related functions.
@ingroup buffers*/
#pragma once
#include <string>
#include <utility>
#include <memory>
#include "atmi.h"
#include "tux/buffer.hpp"
namespace tux
{
/** Models a "TPINIT" typed buffer; used to connect to a domain.
@ingroup buffers*/
class init_requ... | 41.876923 | 134 | 0.662013 | georgekap1an |
173ba955f0026ed4606a311cb5653d3f14e0a5d6 | 464 | hh | C++ | LAMPS-HighEnergy/task/LHScintDigiTask.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 3 | 2021-05-24T19:43:30.000Z | 2022-01-06T21:03:23.000Z | LAMPS-HighEnergy/task/LHScintDigiTask.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 4 | 2020-05-04T15:52:26.000Z | 2021-09-13T10:51:03.000Z | LAMPS-HighEnergy/task/LHScintDigiTask.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 3 | 2020-06-14T10:53:58.000Z | 2022-01-06T21:03:30.000Z | #ifndef LHSCINTDIGITIZER_HH
#define LHSCINTDIGITIZER_HH
#include "KBTask.hh"
#include "LHNeutronScintArray.hh"
#include "TH2D.h"
#include "TF1.h"
#include "TClonesArray.h"
class LHScintDigiTask : public KBTask
{
public:
LHScintDigiTask();
virtual ~LHScintDigiTask() {}
bool Init();
void Exec(Optio... | 16 | 49 | 0.715517 | ggfdsa10 |
173c57826f356ebbfb2bfd702f0f3af605034218 | 2,811 | hpp | C++ | Include/CX/Util/Platform/Windows/Time.hpp | draede/cx | f3ce4aec9b99095760481b1507e383975b2827e3 | [
"MIT"
] | 1 | 2016-08-28T18:29:17.000Z | 2016-08-28T18:29:17.000Z | Include/CX/Util/Platform/Windows/Time.hpp | draede/cx | f3ce4aec9b99095760481b1507e383975b2827e3 | [
"MIT"
] | null | null | null | Include/CX/Util/Platform/Windows/Time.hpp | draede/cx | f3ce4aec9b99095760481b1507e383975b2827e3 | [
"MIT"
] | null | null | null | /*
* CX - C++ framework for general purpose development
*
* https://github.com/draede/cx
*
* Copyright (C) 2014 - 2021 draede - draede [at] outlook [dot] com
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associate... | 20.822222 | 91 | 0.722163 | draede |
173cd02657be73f32924c7a026b1812179b90461 | 2,501 | hpp | C++ | include/MPITypeTraits.hpp | browngrg/caledonia | 79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94 | [
"BSD-3-Clause"
] | null | null | null | include/MPITypeTraits.hpp | browngrg/caledonia | 79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94 | [
"BSD-3-Clause"
] | null | null | null | include/MPITypeTraits.hpp | browngrg/caledonia | 79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94 | [
"BSD-3-Clause"
] | null | null | null | #ifndef MPITypeTraits_H_
#define MPITypeTraits_H_
#include<mpi.h>
/** \file MPITypeTraits.hpp
* \author Gregory Brown
* \brief A convenient way to handle templated overloading of MPI functions
*/
// namespace psimag {
/** \class MPITypeTraits
* \author Gregory Brown
* \brief Traits class that converts c... | 37.893939 | 87 | 0.777689 | browngrg |
173cfd5df480642461c5825598acb0db1758dd71 | 5,277 | tpp | C++ | cml/mathlib/vector/transform.tpp | egorodet/CML | e3fd8ccbe9775ff6e0e41fd6a274b557a80c9d1f | [
"BSL-1.0"
] | 125 | 2015-07-22T11:39:51.000Z | 2022-03-06T13:41:44.000Z | cml/mathlib/vector/transform.tpp | egorodet/CML | e3fd8ccbe9775ff6e0e41fd6a274b557a80c9d1f | [
"BSL-1.0"
] | 45 | 2015-06-03T15:50:08.000Z | 2021-05-26T01:35:01.000Z | cml/mathlib/vector/transform.tpp | egorodet/CML | e3fd8ccbe9775ff6e0e41fd6a274b557a80c9d1f | [
"BSL-1.0"
] | 28 | 2015-06-03T09:26:26.000Z | 2022-03-06T13:42:06.000Z | /* -*- C++ -*- ------------------------------------------------------------
@@COPYRIGHT@@
*-----------------------------------------------------------------------*/
/** @file
*/
#ifndef __CML_MATHLIB_VECTOR_TRANSFORM_TPP
#error "mathlib/vector/transform.tpp not included correctly"
#endif
#include <cml/vector/fixed... | 26.923469 | 79 | 0.630472 | egorodet |
173d0bf7c8dc52f81f1402d3ec68e19843615e08 | 252 | cpp | C++ | test/window/LinuxWindow.spec.cpp | violetcraze/CreativeXX | d86c5412f80d86ecdeaec6e687afc303dba083d0 | [
"MIT"
] | null | null | null | test/window/LinuxWindow.spec.cpp | violetcraze/CreativeXX | d86c5412f80d86ecdeaec6e687afc303dba083d0 | [
"MIT"
] | null | null | null | test/window/LinuxWindow.spec.cpp | violetcraze/CreativeXX | d86c5412f80d86ecdeaec6e687afc303dba083d0 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <CreativeXXspec.h>
TEST_CASE("Basic Linux Window", "[window][LinuxWindow]") {
auto a = creative::window::Window::create();
REQUIRE(a->width() == 800);
REQUIRE(a->height() == 600);
}
| 22.909091 | 58 | 0.65873 | violetcraze |
1743a0aa91151ae499879975fa9f89715344e668 | 2,496 | cpp | C++ | src/editorLib/AsyncTasks/LoadEnvironmentTask.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | src/editorLib/AsyncTasks/LoadEnvironmentTask.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | src/editorLib/AsyncTasks/LoadEnvironmentTask.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | #include <QtCore/QCoreApplication>
#include <QtCore/QFileInfo>
#include <QtCore/QFile>
#include <mtt/application/EditCommands/UndoStack.h>
#include <mtt/editorLib/AsyncTasks/SaveEnvironmentTask.h>
#include <mtt/editorLib/AsyncTasks/LoadEnvironmentTask.h>
#include <mtt/editorLib/Objects/EnvironmentObjectFactory.h>
#inc... | 34.191781 | 113 | 0.660657 | AluminiumRat |
1743a0ec7a7ff595411b5d75e593acb9658ad2e0 | 10,184 | cc | C++ | src/renderer/unix/infolist_window.cc | KawaneRio/mozc | 215e669e6fdac2040a28dd3f97cfa0910ee4c9df | [
"BSD-3-Clause"
] | 1,144 | 2015-04-23T16:18:45.000Z | 2022-03-29T19:37:33.000Z | src/renderer/unix/infolist_window.cc | KawaneRio/mozc | 215e669e6fdac2040a28dd3f97cfa0910ee4c9df | [
"BSD-3-Clause"
] | 291 | 2015-05-04T07:53:37.000Z | 2022-03-22T00:09:05.000Z | src/renderer/unix/infolist_window.cc | KawaneRio/mozc | 215e669e6fdac2040a28dd3f97cfa0910ee4c9df | [
"BSD-3-Clause"
] | 301 | 2015-05-03T00:07:18.000Z | 2022-03-21T10:48:29.000Z | // Copyright 2010-2021, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | 40.573705 | 80 | 0.713963 | KawaneRio |
1743b3d48bccd72a8e6ebf51c2f267849c4021b2 | 493 | cpp | C++ | src/weapon.cpp | murilobnt/vulnus | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | 13 | 2017-05-23T05:38:07.000Z | 2022-03-26T16:08:47.000Z | src/weapon.cpp | Murilo-Bento/Gnjk | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | null | null | null | src/weapon.cpp | Murilo-Bento/Gnjk | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | 1 | 2017-08-12T22:25:17.000Z | 2017-08-12T22:25:17.000Z | #include "generics/weapon.hpp"
Weapon::Weapon(float damage, WeaponTypes weaponType){
this->damage = damage;
this->weaponType = weaponType;
this->active = false;
}
float Weapon::getDamage() const{
return this->damage;
}
void Weapon::setDamage(const float damage){
this->damage = damage;
}
bool Weapon::isActive()... | 18.259259 | 53 | 0.728195 | murilobnt |
17450fb3b56521d847e103d30091054b29c12b39 | 111 | hh | C++ | include/stdbool.hh | smindinvern/usb-micro | 89b24a70a422352a71f92a5d3a6df796bcf32956 | [
"BSD-3-Clause"
] | null | null | null | include/stdbool.hh | smindinvern/usb-micro | 89b24a70a422352a71f92a5d3a6df796bcf32956 | [
"BSD-3-Clause"
] | null | null | null | include/stdbool.hh | smindinvern/usb-micro | 89b24a70a422352a71f92a5d3a6df796bcf32956 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STDBOOL_HH_
#define STDBOOL_HH_
#ifndef __cplusplus
typedef _Bool bool;
#endif
#endif // STDBOOL_HH_
| 12.333333 | 21 | 0.792793 | smindinvern |
1751ff4e89dfc95122f4d536fddf44fce985aaac | 812 | cpp | C++ | c++/delete-first-matching-node-dll.cpp | nspsam/int | 895e017fe91396927520303bd2d8d99db1cbb878 | [
"MIT"
] | null | null | null | c++/delete-first-matching-node-dll.cpp | nspsam/int | 895e017fe91396927520303bd2d8d99db1cbb878 | [
"MIT"
] | null | null | null | c++/delete-first-matching-node-dll.cpp | nspsam/int | 895e017fe91396927520303bd2d8d99db1cbb878 | [
"MIT"
] | null | null | null | /**
Given: doubly-linked list
Implement: Remove first element matching a specified key.
1. Duplicates allowed [Unnecessary statement]
2. Define API
**/
class Solution {
bool deleteFirstMatchingNodeofdll(ListNode **node, int key) {
ListNode **head = node;
if(nullptr == node)
return false;
... | 18.454545 | 63 | 0.541872 | nspsam |
1753476ce946940bd41ef748be553743f8bc9568 | 3,429 | hpp | C++ | lib/shared/EventPropertiesCX.hpp | dipatid/cpp_client_telemetry | da74d671d904395a1f4c52262c4d78f624d261e9 | [
"Apache-2.0"
] | null | null | null | lib/shared/EventPropertiesCX.hpp | dipatid/cpp_client_telemetry | da74d671d904395a1f4c52262c4d78f624d261e9 | [
"Apache-2.0"
] | null | null | null | lib/shared/EventPropertiesCX.hpp | dipatid/cpp_client_telemetry | da74d671d904395a1f4c52262c4d78f624d261e9 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2015-2020 Microsoft Corporation and Contributors.
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#pragma warning( push )
#pragma warning( disable : 4454 )
#include <Version.hpp>
#include "PlatformHelpers.h"
#include "SchemaStub.hpp"
namespace Microsoft {
namespace Applications {
... | 44.532468 | 154 | 0.573053 | dipatid |
17546204e7a7a500da6bd5cd8f9d35d7a03ff467 | 11,033 | cc | C++ | liblat/test/src/test_compound_all.cc | stiegerc/winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 2 | 2020-10-06T09:14:23.000Z | 2020-11-25T06:08:54.000Z | liblat/test/src/test_compound_all.cc | stiegerc/Winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 1 | 2020-12-23T04:20:33.000Z | 2020-12-23T04:20:33.000Z | liblat/test/src/test_compound_all.cc | stiegerc/Winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 1 | 2020-07-14T13:53:32.000Z | 2020-07-14T13:53:32.000Z | // 2014-2019, ETH Zurich, Integrated Systems Laboratory
// Authors: Christian Stieger
#include "test_compound_all.h"
#include "ll_compound.h"
#include "ll_testTools.h"
#include "lm_testTools.h"
using namespace lm__;
using namespace lm__::test;
using namespace ll__;
using namespace ll__::test;
void test_compound_all:... | 27.721106 | 71 | 0.691652 | stiegerc |
17564ae0a6f2d7b4fe84db21807cb9d90922b13b | 773 | cpp | C++ | pybnesian/models/HeterogeneousBN.cpp | davenza/PyBNesian | 3ed65e6a24d8e16ee00bf8c47ab6828692463499 | [
"MIT"
] | 8 | 2021-06-22T19:21:12.000Z | 2022-03-26T13:08:05.000Z | pybnesian/models/HeterogeneousBN.cpp | davenza/PyBNesian | 3ed65e6a24d8e16ee00bf8c47ab6828692463499 | [
"MIT"
] | null | null | null | pybnesian/models/HeterogeneousBN.cpp | davenza/PyBNesian | 3ed65e6a24d8e16ee00bf8c47ab6828692463499 | [
"MIT"
] | 3 | 2021-08-20T13:44:46.000Z | 2022-03-27T02:57:02.000Z | #include <models/HeterogeneousBN.hpp>
namespace models {
MapDataToFactor keep_MapDataToFactor_alive(MapDataToFactor& m) {
MapDataToFactor alive;
for (auto& item : m) {
alive.insert({item.first, FactorType::keep_python_alive(item.second)});
}
return alive;
}
std::shared_ptr<BayesianNetworkBa... | 32.208333 | 111 | 0.755498 | davenza |
175e96d7c27e535262498c64827a7374985f322a | 2,384 | hpp | C++ | libs/ledger/include/ledger/protocols/main_chain_rpc_protocol.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 3 | 2019-07-11T08:49:27.000Z | 2021-09-07T16:49:15.000Z | libs/ledger/include/ledger/protocols/main_chain_rpc_protocol.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/ledger/include/ledger/protocols/main_chain_rpc_protocol.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 2 | 2019-07-13T12:45:22.000Z | 2021-03-12T08:48:57.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 25.361702 | 88 | 0.65646 | devjsc |
1760192fbde048262f867bc9f08009fd897b9acf | 2,066 | hh | C++ | ssh/inc/com/centreon/connector/ssh/orders/listener.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 8 | 2020-07-26T09:12:02.000Z | 2022-03-30T17:24:29.000Z | ssh/inc/com/centreon/connector/ssh/orders/listener.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 47 | 2020-06-18T12:11:37.000Z | 2022-03-16T10:28:56.000Z | ssh/inc/com/centreon/connector/ssh/orders/listener.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 6 | 2016-02-05T15:12:03.000Z | 2021-09-02T19:40:35.000Z | /*
** Copyright 2011-2013 Centreon
**
** 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 t... | 31.784615 | 79 | 0.642304 | centreon-lab |
17696d95dd4336bc5dfcc0888241e67a2ae09fc6 | 1,471 | hpp | C++ | build/R/src/Headers/f_ising_1D.hpp | nojhan/IOHexperimenter | 5ffab0487103db88ffb8b48801f40355b37516a0 | [
"BSD-3-Clause"
] | null | null | null | build/R/src/Headers/f_ising_1D.hpp | nojhan/IOHexperimenter | 5ffab0487103db88ffb8b48801f40355b37516a0 | [
"BSD-3-Clause"
] | null | null | null | build/R/src/Headers/f_ising_1D.hpp | nojhan/IOHexperimenter | 5ffab0487103db88ffb8b48801f40355b37516a0 | [
"BSD-3-Clause"
] | null | null | null | /// \file f_ising_1D.hpp
/// \brief cpp file for class f_ising_1D.
///
/// A detailed file description.
///
/// \author Naama Horesh and Furong Ye
/// \date 2019-06-27
#ifndef _F_ISING_ONED_H
#define _F_ISING_ONED_H
#include "IOHprofiler_problem.hpp"
class Ising_1D : public IOHprofiler_problem<int> {
public:
Ising_... | 27.754717 | 107 | 0.681169 | nojhan |
1769844c805ddcb85fe31e221ed1e6f1e84d8342 | 3,113 | cxx | C++ | src-plugins/libs/vtkInria/vtkDataManagement/vtkFiberDataSet.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/libs/vtkInria/vtkDataManagement/vtkFiberDataSet.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/libs/vtkInria/vtkDataManagement/vtkFiberDataSet.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... | 22.395683 | 95 | 0.644716 | ocommowi |
176b2e2fd6186fb6099b914f9e2d42c86c01dfdb | 121 | hpp | C++ | iehl/src/application/renderer/statistics/all.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | iehl/src/application/renderer/statistics/all.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | iehl/src/application/renderer/statistics/all.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | #pragma once
#include "frustrum_culling.hpp"
struct AllStatistics {
FrustrumCullingStatistics frustrum_culling;
};
| 15.125 | 47 | 0.793388 | the-last-willy |
176ecf10a2df37acc2ca0d35ad46c3ac9a3b607b | 8,627 | cpp | C++ | src/openms/source/ANALYSIS/OPENSWATH/SpectrumAddition.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | src/openms/source/ANALYSIS/OPENSWATH/SpectrumAddition.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | src/openms/source/ANALYSIS/OPENSWATH/SpectrumAddition.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 39.939815 | 137 | 0.629303 | raghav17083 |
1770278f04909dec24bdf13794f9dad5e1a6f896 | 3,530 | cpp | C++ | piLibs/src/libMath/piFft.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | 6 | 2021-03-27T01:54:55.000Z | 2021-12-15T22:50:28.000Z | piLibs/src/libMath/piFft.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | null | null | null | piLibs/src/libMath/piFft.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | null | null | null | #include <math.h>
#define DDC_PI 3.1415926535897932384626433832795f
static __forceinline unsigned int ReverseBits ( unsigned int index, unsigned int NumBits )
{
unsigned int rev = 0;
for ( unsigned int i=0; i < NumBits; i++ )
{
rev = (rev << 1) | (index & 1);
index >>= 1;
}
retur... | 23.851351 | 107 | 0.446742 | Livictor213 |
1770a81e5f1b7c1b732688e66893923f91281fa7 | 25,295 | cpp | C++ | src/modules/graphics/opengl/Canvas.cpp | cyborgize/love | dc2d3378fc63ea7b01d0817054b7338b81bc50ea | [
"Zlib"
] | null | null | null | src/modules/graphics/opengl/Canvas.cpp | cyborgize/love | dc2d3378fc63ea7b01d0817054b7338b81bc50ea | [
"Zlib"
] | null | null | null | src/modules/graphics/opengl/Canvas.cpp | cyborgize/love | dc2d3378fc63ea7b01d0817054b7338b81bc50ea | [
"Zlib"
] | null | null | null | /**
* Copyright (c) 2006-2015 LOVE Development Team
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... | 26.07732 | 129 | 0.729828 | cyborgize |
1770acb934699db8940002855abd0a141e4197bc | 99,475 | cpp | C++ | src/Regard3DMainFrame.cpp | bradsk88/Regard3D-Arch | 396d7c80cb072d246108aefdf54563ac28eff73d | [
"MIT"
] | null | null | null | src/Regard3DMainFrame.cpp | bradsk88/Regard3D-Arch | 396d7c80cb072d246108aefdf54563ac28eff73d | [
"MIT"
] | null | null | null | src/Regard3DMainFrame.cpp | bradsk88/Regard3D-Arch | 396d7c80cb072d246108aefdf54563ac28eff73d | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2015 Roman Hiestand
*
* 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... | 33.16939 | 180 | 0.771088 | bradsk88 |
1772939a951d604408d8a9e6ce284798576f7e3b | 2,260 | hpp | C++ | src/parsers/urdf/utils.hpp | yDMhaven/pinocchio | fabed17d5ad0dc1c8d251c64cfa656a0215469a5 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-06-22T15:42:45.000Z | 2021-06-22T15:42:45.000Z | src/parsers/urdf/utils.hpp | yDMhaven/pinocchio | fabed17d5ad0dc1c8d251c64cfa656a0215469a5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/parsers/urdf/utils.hpp | yDMhaven/pinocchio | fabed17d5ad0dc1c8d251c64cfa656a0215469a5 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-02-25T13:34:37.000Z | 2020-02-25T13:34:37.000Z | //
// Copyright (c) 2015-2016 CNRS
//
#ifndef __pinocchio_parsers_urdf_utils_hpp__
#define __pinocchio_parsers_urdf_utils_hpp__
#include <urdf_model/model.h>
#include "pinocchio/spatial/se3.hpp"
#include "pinocchio/spatial/inertia.hpp"
namespace pinocchio
{
namespace urdf
{
///
/// \brief Convert URDF ... | 27.901235 | 94 | 0.595133 | yDMhaven |
17743783bd2c824af88e95bb13a513768c9153a1 | 1,987 | cc | C++ | 洛谷/省选-/POJ-1155.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | 洛谷/省选-/POJ-1155.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | 洛谷/省选-/POJ-1155.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | /*
* Author : OFShare
* E-mail : OFShare@outlook.com
* Created Time : 2020-05-15 22:42:13 PM
* File Name : POJ-1155.cc
*/
//#include <bits/stdc++.h>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cstring>
#include <string>
#define ll long long
void debug() {
#ifdef Acui
... | 24.231707 | 93 | 0.485657 | OFShare |
17781a2b984def6e1da5af7807c4af09c85944e7 | 574 | hh | C++ | src/grid.hh | AymGal/ParallelMandelbrot | 69fe94267466112b53af6d2677f841f92eaeb4ae | [
"MIT"
] | 2 | 2017-05-28T22:54:06.000Z | 2018-02-21T06:02:26.000Z | src/grid.hh | AymGal/ParallelMandelbrot | 69fe94267466112b53af6d2677f841f92eaeb4ae | [
"MIT"
] | null | null | null | src/grid.hh | AymGal/ParallelMandelbrot | 69fe94267466112b53af6d2677f841f92eaeb4ae | [
"MIT"
] | 1 | 2018-02-21T06:02:30.000Z | 2018-02-21T06:02:30.000Z | #ifndef GRID_HH
#define GRID_HH
#include <vector>
#include "gvars.hh"
class Grid {
public:
Grid(int m, int n);
/// access the value [i][j] of the grid
inline dfloat & operator()(int ix, int iy) {
return m_storage[ix * m_ny + iy];
}
inline const dfloat & operator()(int ix, int iy) const {
return m_... | 15.944444 | 58 | 0.627178 | AymGal |
17796eb02b985650dd2c0a13c3506dac231aa88d | 5,439 | cpp | C++ | laser_mapper/src/laser_mapper.cpp | shibowing/segmatch | 4c93c465108f0a6e103526486aae894ea3d2ae9f | [
"BSD-3-Clause"
] | 13 | 2018-11-28T12:02:48.000Z | 2021-12-22T01:04:49.000Z | laser_mapper/src/laser_mapper.cpp | yuekaka/segmatch | c662324d23b9e049fbb49b52cda7895d1a4d2798 | [
"BSD-3-Clause"
] | 2 | 2019-03-03T01:50:51.000Z | 2019-08-19T08:06:41.000Z | laser_mapper/src/laser_mapper.cpp | yuekaka/segmatch | c662324d23b9e049fbb49b52cda7895d1a4d2798 | [
"BSD-3-Clause"
] | 8 | 2019-06-18T19:40:35.000Z | 2020-06-15T17:43:06.000Z | #include "laser_mapper/laser_mapper.hpp"
#include <stdlib.h>
#include <laser_slam_ros/common.hpp>
#include <ros/ros.h>
#include <tf_conversions/tf_eigen.h>
#include <tf/transform_listener.h>
using namespace laser_slam;
using namespace laser_slam_ros;
using namespace segmatch;
using namespace segmatch_ros;
LaserMapp... | 34.865385 | 90 | 0.703438 | shibowing |
177c833393b35e4ac46ee7621e89e05b3a53914d | 11,366 | cpp | C++ | iRODS/server/api/src/rsGsiAuthRequest.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/server/api/src/rsGsiAuthRequest.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/server/api/src/rsGsiAuthRequest.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* See gsiAuthRequest.h for a description of this API call.*/
#include "gsiAuthRequest.hpp"
#include "authResponse.hpp"
#include "genQuery.hpp"
#include "reGlo... | 35.630094 | 91 | 0.579975 | PlantandFoodResearch |
ed002471a9ce181c468b382e2766eddb1c2e0371 | 453 | cpp | C++ | AED 2/Prova 1/exercicio 1.cpp | andreflabr/EstudoCC | b89aa2dbe48cc8adeef1c955cd4f7775705f70e4 | [
"MIT"
] | null | null | null | AED 2/Prova 1/exercicio 1.cpp | andreflabr/EstudoCC | b89aa2dbe48cc8adeef1c955cd4f7775705f70e4 | [
"MIT"
] | null | null | null | AED 2/Prova 1/exercicio 1.cpp | andreflabr/EstudoCC | b89aa2dbe48cc8adeef1c955cd4f7775705f70e4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
void recursividade(int v[], int t, int cont){
int aux;
if(cont<t){
aux=v[cont];
v[cont]=v[t];
v[t]=aux;
recursividade(v, t-1, cont+1);
} else{
for(int i=0;i<10;i++){
printf("%d ", v[i]);
}
}
}
int main(){
... | 15.62069 | 45 | 0.430464 | andreflabr |
ed0144dfc18a7dd9fa269d5c61ab786242781e95 | 750 | cpp | C++ | 204_Count_Primes.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | 204_Count_Primes.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | 204_Count_Primes.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | /*
204. Count Primes
Medium
Given an integer n, return the number of prime numbers that are strictly less than n.
Example 1:
Input: n = 10
Output: 4
Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7.
Example 2:
Input: n = 0
Output: 0
Example 3:
Input: n = 1
Output: 0
Constraints:
0... | 17.045455 | 85 | 0.532 | AvadheshChamola |
ed03b97348906654f467585f6439c1bd11f591eb | 10,898 | hpp | C++ | test-suite/utilities.hpp | markxio/Quantuccia | ebe71a1b9c2a9ee7fc4ea918a9602f100316869d | [
"BSD-3-Clause"
] | 29 | 2017-03-20T14:17:39.000Z | 2021-12-22T08:00:52.000Z | test-suite/utilities.hpp | markxio/Quantuccia | ebe71a1b9c2a9ee7fc4ea918a9602f100316869d | [
"BSD-3-Clause"
] | 10 | 2017-04-02T14:34:07.000Z | 2021-01-13T05:31:12.000Z | test-suite/utilities.hpp | markxio/Quantuccia | ebe71a1b9c2a9ee7fc4ea918a9602f100316869d | [
"BSD-3-Clause"
] | 22 | 2017-03-19T05:56:19.000Z | 2022-03-16T13:30:20.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2003, 2004, 2008 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redi... | 32.531343 | 86 | 0.627638 | markxio |
ed0a391dd5fc7877c1b591b25594812c131cc2eb | 1,081 | cpp | C++ | Kaminec/check/CheckJson.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 23 | 2017-06-23T11:58:27.000Z | 2022-03-05T06:58:49.000Z | Kaminec/check/CheckJson.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 4 | 2017-12-08T11:41:19.000Z | 2021-04-03T17:50:39.000Z | Kaminec/check/CheckJson.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 5 | 2019-02-19T13:03:42.000Z | 2021-11-04T13:58:04.000Z | #include "CheckJson.h"
CheckJson::CheckJson(const QString &version) :
jsonKit_(version)
{}
QList<CheckInfo> CheckJson::getLibraryCheckInfos() const
{
QList<CheckInfo> libraryCheckInfos;
for(const auto& library : jsonKit_.libraries()){
libraryCheckInfos << CheckInfo(library.name(),
library.size(),
... | 22.520833 | 56 | 0.66235 | kaniol-lck |
ed1022eba37d87389b41492e0e2df1401d8d56c4 | 732 | cpp | C++ | src/embedded/q_test.cpp | ENGN2912B-2018/EE-A | f3017265535b0f619c06f54167fd4b8939195a8f | [
"MIT"
] | null | null | null | src/embedded/q_test.cpp | ENGN2912B-2018/EE-A | f3017265535b0f619c06f54167fd4b8939195a8f | [
"MIT"
] | null | null | null | src/embedded/q_test.cpp | ENGN2912B-2018/EE-A | f3017265535b0f619c06f54167fd4b8939195a8f | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include "circularfifo_memory_sequential_consistent.hpp"
#include <bitset>
using namespace std;
using namespace memory_sequential_consistent;
void thread_spi(CircularFifo<char*, 10> *queue){
char data[] = {0xFF, 0x0F, 0x00};
queue->push(data);
}
int main(){
// init queu... | 19.263158 | 63 | 0.635246 | ENGN2912B-2018 |
ed103979967e026cd2ee360a2a960522c21ba30e | 4,919 | cpp | C++ | src/main.cpp | ierturk/cpp-sql-practice | e9468f840ca5d53d87bd73975b99c95e503add7c | [
"Unlicense"
] | null | null | null | src/main.cpp | ierturk/cpp-sql-practice | e9468f840ca5d53d87bd73975b99c95e503add7c | [
"Unlicense"
] | null | null | null | src/main.cpp | ierturk/cpp-sql-practice | e9468f840ca5d53d87bd73975b99c95e503add7c | [
"Unlicense"
] | null | null | null | //
// Created by Ibrahim ERTURK on 23.01.2022.
//
#include <cstdio>
#include <sqlite3.h>
#include <sqlcpp.h>
constexpr const char * db_file = DB_PATH "/scratch.db";
constexpr const char * table1 = "temp1";
constexpr const char * table2 = "temp2";
constexpr const char * sql_drop = "DROP TABLE IF EXISTS %s";
constexpr ... | 34.640845 | 95 | 0.637325 | ierturk |
ed142415353d76807847ebdf175f402d62fa71dd | 39,338 | cpp | C++ | accessor/accessorstr.cpp | webigorkiev/columnar | ee39d80f62b0aa1a7bf5a21e70397f66928d3146 | [
"Apache-2.0"
] | null | null | null | accessor/accessorstr.cpp | webigorkiev/columnar | ee39d80f62b0aa1a7bf5a21e70397f66928d3146 | [
"Apache-2.0"
] | null | null | null | accessor/accessorstr.cpp | webigorkiev/columnar | ee39d80f62b0aa1a7bf5a21e70397f66928d3146 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com)
// 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/l... | 34.236728 | 197 | 0.727948 | webigorkiev |
ed15209b73ca04893457e26c5f43407108768151 | 3,395 | cpp | C++ | tests/audio_programme_tests.cpp | rsjtaylor/libadm | 146670a28a6add571065e6493e9bcc2099c12677 | [
"Apache-2.0"
] | 7 | 2020-10-14T09:13:42.000Z | 2022-01-21T06:21:43.000Z | tests/audio_programme_tests.cpp | rsjtaylor/libadm | 146670a28a6add571065e6493e9bcc2099c12677 | [
"Apache-2.0"
] | 79 | 2020-07-10T15:50:09.000Z | 2022-03-28T01:31:42.000Z | tests/audio_programme_tests.cpp | rsjtaylor/libadm | 146670a28a6add571065e6493e9bcc2099c12677 | [
"Apache-2.0"
] | 4 | 2020-07-10T14:11:12.000Z | 2021-09-09T01:54:29.000Z | #define CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER
#include <catch2/catch.hpp>
#include "adm/elements/audio_programme.hpp"
TEST_CASE("audio_programme") {
using namespace adm;
// Attributes / Elements
{
auto audioProgramme =
AudioProgramme::create(AudioProgrammeName("MyProgramme"));
audioProgramme->se... | 42.4375 | 79 | 0.725773 | rsjtaylor |
ed1819af86d9f064747ba3931b3dcb8954063624 | 1,697 | cpp | C++ | 201412/2.cpp | YiqinXiong/CSP_Practice | b5840117175f0370d4c1fbcc3c6ffd1fd337a04c | [
"MIT"
] | null | null | null | 201412/2.cpp | YiqinXiong/CSP_Practice | b5840117175f0370d4c1fbcc3c6ffd1fd337a04c | [
"MIT"
] | null | null | null | 201412/2.cpp | YiqinXiong/CSP_Practice | b5840117175f0370d4c1fbcc3c6ffd1fd337a04c | [
"MIT"
] | null | null | null | /*
* 用时 59分
* 得分 100分
*/
#include <stdio.h>
#include <iostream>
using namespace std;
const int N = 505;
int map[N][N];
int n;
int x, y;
int main()
{
cin >> n;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
cin >> map[i][j];
}
}
//初始位置
x = ... | 18.855556 | 39 | 0.198586 | YiqinXiong |
ed2a88a3ec48e1075d83ba8c70ed95981a2bd124 | 3,316 | cpp | C++ | openstudiocore/src/energyplus/ForwardTranslator/ForwardTranslateAirLoopHVACReturnPlenum.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | openstudiocore/src/energyplus/ForwardTranslator/ForwardTranslateAirLoopHVACReturnPlenum.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | openstudiocore/src/energyplus/ForwardTranslator/ForwardTranslateAirLoopHVACReturnPlenum.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... | 33.836735 | 120 | 0.688179 | ORNL-BTRIC |
ed2b5a50f8f02ca5ab3a5955d21fdc32de1231dc | 8,158 | cpp | C++ | src/file_utils.cpp | janjachnik/Pangolin | fafe8c9f72f7c4d07d940e27975a53b7811ec9c4 | [
"MIT"
] | null | null | null | src/file_utils.cpp | janjachnik/Pangolin | fafe8c9f72f7c4d07d940e27975a53b7811ec9c4 | [
"MIT"
] | 3 | 2015-04-24T20:33:26.000Z | 2015-05-05T17:22:07.000Z | src/file_utils.cpp | janjachnik/Pangolin | fafe8c9f72f7c4d07d940e27975a53b7811ec9c4 | [
"MIT"
] | 4 | 2016-03-18T13:20:37.000Z | 2019-10-08T22:36:20.000Z | /* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) 2013 Steven Lovegrove
*
* 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 wit... | 29.451264 | 108 | 0.60505 | janjachnik |
ed33fd7cf0f2ba9f4c249713cbff49a100acbef6 | 837 | cpp | C++ | src/HashMaker/TestData.cpp | ZehMatt/HashMaker | 4303e9ba7edbaedde7d7b039d44faf743f5fc386 | [
"MIT"
] | 2 | 2019-01-18T21:44:40.000Z | 2020-07-24T22:42:58.000Z | src/HashMaker/TestData.cpp | ZehMatt/HashMaker | 4303e9ba7edbaedde7d7b039d44faf743f5fc386 | [
"MIT"
] | null | null | null | src/HashMaker/TestData.cpp | ZehMatt/HashMaker | 4303e9ba7edbaedde7d7b039d44faf743f5fc386 | [
"MIT"
] | null | null | null | #include "TestData.h"
#include <fstream>
#include <iostream>
static TestData _testData;
TestData& TestData::get()
{
return _testData;
}
bool TestData::importTextFile(const std::string& filePath)
{
std::ifstream ifs(filePath);
if (ifs.is_open() == false)
{
return false;
}
std::string... | 16.411765 | 60 | 0.565114 | ZehMatt |
ed370627a939754f7264346dd48ced4c6903953a | 2,721 | cpp | C++ | src/Util.cpp | AbyssAlley/freeShop | 58111cc9eff02ab3096c479c2c84ad4441209b36 | [
"MIT"
] | 9 | 2016-12-31T19:56:26.000Z | 2018-08-19T19:40:25.000Z | src/Util.cpp | AbyssAlley/freeShop | 58111cc9eff02ab3096c479c2c84ad4441209b36 | [
"MIT"
] | null | null | null | src/Util.cpp | AbyssAlley/freeShop | 58111cc9eff02ab3096c479c2c84ad4441209b36 | [
"MIT"
] | 4 | 2017-01-06T16:21:47.000Z | 2022-03-25T17:56:39.000Z | #include "Util.hpp"
#include "Config.hpp"
#include <dirent.h>
#include <sys/unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <cpp3ds/System/FileSystem.hpp>
#include <cpp3ds/System/I18n.hpp>
namespace FreeShop
{
bool pathExists(const char* path, bool escape)
{
struct stat buffer;
if (esc... | 21.257813 | 84 | 0.589489 | AbyssAlley |
ed390c997f079eb9f06efb37ee497620aeba46a0 | 667 | cpp | C++ | src/UOJ_1429 - (710529) Accepted.cpp | miguelarauj1o/UOJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 80 | 2015-01-07T01:18:40.000Z | 2021-05-04T15:23:18.000Z | src/UOJ_1429 - (710529) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 1 | 2019-01-07T01:13:32.000Z | 2019-01-07T01:13:32.000Z | src/UOJ_1429 - (710529) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 28 | 2015-03-05T11:53:23.000Z | 2020-07-05T15:50:42.000Z |
#include <iostream>
#include <string>
using namespace std;
int fatorial(int n)
{
int res = 1;
for (int i = n; i > 0; --i)
{
res *= i;
}
return res;
}
int main()
{
string n;
char c;
int s, fat, res, tmp;
while(cin >> n)
{
if(n == "0")
... | 15.159091 | 45 | 0.34033 | miguelarauj1o |
ed3a8520a7d69ac1ab2d83db4118c67383adf2a0 | 3,095 | cpp | C++ | ext/glshader/src/opengl/loader.cpp | f-schroeder/orvis | 440de86bc4331100f24efb192d8781240a59f80e | [
"MIT"
] | null | null | null | ext/glshader/src/opengl/loader.cpp | f-schroeder/orvis | 440de86bc4331100f24efb192d8781240a59f80e | [
"MIT"
] | null | null | null | ext/glshader/src/opengl/loader.cpp | f-schroeder/orvis | 440de86bc4331100f24efb192d8781240a59f80e | [
"MIT"
] | null | null | null | #include "loader.hpp"
#include <array>
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
namespace glshader::process::impl::loader
{
class function_loader
{
public:
function_loader()
{
for (size_t i = 0; i < std::size(libs); ++i) {
#ifdef _WIN32
... | 25.368852 | 107 | 0.568982 | f-schroeder |
ed3dff97e13f9e7ba327be23ae966c72f434a160 | 1,050 | cpp | C++ | Chapter 4/4.28 printing the decimal equivalent of a binary number/4.28 printing the decimal equivalent of a binary number/main.cpp | MarvelousAudio/CPlusPlus-How-to-program-tenth-edition | a667b080938cf964909d79b272f0d863adc300e0 | [
"MIT"
] | null | null | null | Chapter 4/4.28 printing the decimal equivalent of a binary number/4.28 printing the decimal equivalent of a binary number/main.cpp | MarvelousAudio/CPlusPlus-How-to-program-tenth-edition | a667b080938cf964909d79b272f0d863adc300e0 | [
"MIT"
] | null | null | null | Chapter 4/4.28 printing the decimal equivalent of a binary number/4.28 printing the decimal equivalent of a binary number/main.cpp | MarvelousAudio/CPlusPlus-How-to-program-tenth-edition | a667b080938cf964909d79b272f0d863adc300e0 | [
"MIT"
] | null | null | null | //
// main.cpp
// 4.28 printing the decimal equivalent of a binary number
//
// Created by ben haywood on 6/28/20.
// Copyright © 2020 ben haywood. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
// insert code here...
int input; // holds binary... | 20.192308 | 80 | 0.514286 | MarvelousAudio |
ed3f8fd5f4286b4f09c9f65e4ee074c922e00fff | 669 | hpp | C++ | meshInfo/faceInfo.hpp | lhb8125/unstructured_frame | 3f28879cd7eb69e5fd9d5e812b6b36b6186125fe | [
"Apache-2.0"
] | null | null | null | meshInfo/faceInfo.hpp | lhb8125/unstructured_frame | 3f28879cd7eb69e5fd9d5e812b6b36b6186125fe | [
"Apache-2.0"
] | null | null | null | meshInfo/faceInfo.hpp | lhb8125/unstructured_frame | 3f28879cd7eb69e5fd9d5e812b6b36b6186125fe | [
"Apache-2.0"
] | null | null | null | /**
* @file: faceInfo.cpp
* @author: Liu Hongbin
* @brief:
* @date: 2019-09-09 14:12:42
* @last Modified by: lenovo
* @last Modified time: 2019-09-09 14:51:24
*/
#include "meshInfo.hpp"
/**
Geometry information of face element, organized as SoAoS layout
*/
class FaceInfo : public MeshInfo
{
private:... | 18.583333 | 65 | 0.626308 | lhb8125 |
ed4062b6f5b87b3e984a40bf1d207486fc5eb7bd | 7,334 | cc | C++ | src/transform/msl_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | src/transform/msl_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | src/transform/msl_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 22.635802 | 223 | 0.675211 | haocxy |
ed4075f751817624141671fe08ee37e710b4645b | 18,868 | cpp | C++ | src/tools/doall/src/Builder.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | null | null | null | src/tools/doall/src/Builder.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | null | null | null | src/tools/doall/src/Builder.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | null | null | null | /*
* Copyright 2016 - 2019 Angelo Matni, Simone Campanoni
*
* 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, ... | 44.5 | 435 | 0.72827 | SusanTan |
ed46b7bc3cad93579608e8c8adcdf7bbe4bc85b9 | 2,300 | hpp | C++ | Herschels/src/Sweep.hpp | JohnMulligan/Herschels | 75737999f150ba69e5457ce386c83cf0fefb7fc2 | [
"CC0-1.0"
] | 2 | 2018-06-01T16:36:49.000Z | 2018-06-04T17:09:27.000Z | Herschels/src/Sweep.hpp | JohnMulligan/Herschels | 75737999f150ba69e5457ce386c83cf0fefb7fc2 | [
"CC0-1.0"
] | null | null | null | Herschels/src/Sweep.hpp | JohnMulligan/Herschels | 75737999f150ba69e5457ce386c83cf0fefb7fc2 | [
"CC0-1.0"
] | 2 | 2018-05-29T17:43:23.000Z | 2021-01-04T20:06:25.000Z | /*
This is the header for the Sweep function
*/
#ifndef SWEEP_HPP_
#define SWEEP_HPP_
#include <QDebug>
#include <QObject>
#include <QString>
#include <QSettings>
//class Telescope;
//class Lens;
//! @ingroup sweeps
class Sweep : public QObject
{
Q_OBJECT
//This is an object with a variety of properties that wi... | 27.710843 | 87 | 0.755652 | JohnMulligan |
ed48e1d1f09b268623aa08cb7302235ed84f4a7d | 1,127 | cc | C++ | system-test/maxtest/src/fw_copy_rules.cc | DatabasKarlsson/MaxScale | ccf90f2e5d28f589eecd54bcb3fb20dfec5b14ff | [
"BSD-3-Clause"
] | 1 | 2021-02-07T01:57:32.000Z | 2021-02-07T01:57:32.000Z | system-test/maxtest/src/fw_copy_rules.cc | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | 1 | 2021-02-12T10:08:58.000Z | 2021-02-18T02:57:57.000Z | system-test/maxtest/src/fw_copy_rules.cc | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | null | null | null | #include <maxtest/fw_copy_rules.hh>
#include <sstream>
#include <maxtest/testconnections.hh>
void copy_rules(TestConnections* Test, const char* rules_name, const char* rules_dir)
{
std::stringstream src;
std::stringstream dest;
Test->maxscales->ssh_node_f(0,
true,
... | 36.354839 | 85 | 0.465839 | DatabasKarlsson |
ed4d8ca88202e64c6c5aa1299e5738b6220f189b | 2,453 | cpp | C++ | src/Layer.cpp | lectroMathew/Core | cfc12b3331d426ebea7a5d4b574fc8f69b7854f9 | [
"MIT"
] | 14 | 2021-04-04T18:03:34.000Z | 2022-03-22T10:11:15.000Z | src/Layer.cpp | lectroMathew/Core | cfc12b3331d426ebea7a5d4b574fc8f69b7854f9 | [
"MIT"
] | 73 | 2021-04-27T15:45:58.000Z | 2021-11-15T10:03:50.000Z | src/Layer.cpp | lectroMathew/Core | cfc12b3331d426ebea7a5d4b574fc8f69b7854f9 | [
"MIT"
] | 1 | 2021-05-23T13:52:03.000Z | 2021-05-23T13:52:03.000Z | /*
MIT License
Copyright (c) 2021 lectroMathew <contact@lectro.moe>
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, co... | 31.448718 | 81 | 0.689768 | lectroMathew |
ed5183f589416dfd45b680dbc9f07104e5d123a2 | 7,240 | cpp | C++ | diagnostics/diagnostic_aggregator/src/aggregator.cpp | zhj-buffer/ROS2-driver-for-Realsense | 936cf27be4e7dc3d699ff99499e72ea8638cc622 | [
"Apache-2.0"
] | null | null | null | diagnostics/diagnostic_aggregator/src/aggregator.cpp | zhj-buffer/ROS2-driver-for-Realsense | 936cf27be4e7dc3d699ff99499e72ea8638cc622 | [
"Apache-2.0"
] | null | null | null | diagnostics/diagnostic_aggregator/src/aggregator.cpp | zhj-buffer/ROS2-driver-for-Realsense | 936cf27be4e7dc3d699ff99499e72ea8638cc622 | [
"Apache-2.0"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... | 33.831776 | 99 | 0.689088 | zhj-buffer |
ed51be07c6f3ab95e58e891dd9cea49899f4fdbe | 22,353 | cpp | C++ | src/kinematics_plugin.cpp | shadow-robot/bio_ik | d9ee015652b419d46c30ac070a1ca916c5865699 | [
"BSD-3-Clause"
] | null | null | null | src/kinematics_plugin.cpp | shadow-robot/bio_ik | d9ee015652b419d46c30ac070a1ca916c5865699 | [
"BSD-3-Clause"
] | null | null | null | src/kinematics_plugin.cpp | shadow-robot/bio_ik | d9ee015652b419d46c30ac070a1ca916c5865699 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2016-2017, Philipp Sebastian Ruppel
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | 33.412556 | 80 | 0.630206 | shadow-robot |
ed5687a39bb3c8d1c2c7b83339f1b5fac74e1f83 | 6,328 | hpp | C++ | .pio/libdeps/nodemcuv2/ArduinoJson/src/ArduinoJson/Configuration.hpp | paulobazooka/automacao-residencial | 7ffb386b7792cb44dc51e2780aee079e645cfefb | [
"Apache-2.0"
] | 81 | 2022-01-22T17:35:01.000Z | 2022-03-08T09:59:02.000Z | .pio/libdeps/nodemcuv2/ArduinoJson/src/ArduinoJson/Configuration.hpp | paulobazooka/automacao-residencial | 7ffb386b7792cb44dc51e2780aee079e645cfefb | [
"Apache-2.0"
] | 6 | 2022-01-25T20:23:08.000Z | 2022-03-07T23:50:32.000Z | .pio/libdeps/nodemcuv2/ArduinoJson/src/ArduinoJson/Configuration.hpp | paulobazooka/automacao-residencial | 7ffb386b7792cb44dc51e2780aee079e645cfefb | [
"Apache-2.0"
] | 14 | 2022-01-22T18:16:11.000Z | 2022-03-07T21:32:41.000Z | // ArduinoJson - https://arduinojson.org
// Copyright © 2014-2022, Benoit BLANCHON
// MIT License
#pragma once
#if __cplusplus >= 201103L
# define ARDUINOJSON_HAS_LONG_LONG 1
# define ARDUINOJSON_HAS_RVALUE_REFERENCES 1
#else
# define ARDUINOJSON_HAS_LONG_LONG 0
# define ARDUINOJSON_HAS_RVALUE_REFERENCES 0
#endif... | 26.700422 | 83 | 0.761536 | paulobazooka |
ed5b1246c3c7f84dcb24b9a54515e41bcde8e84d | 2,134 | cpp | C++ | CSX_Cvar.cpp | aljawary/PZ_CSGO_CHEAT-master | f27ffdec8514df89d6d72b4b319d63933b114695 | [
"MIT"
] | null | null | null | CSX_Cvar.cpp | aljawary/PZ_CSGO_CHEAT-master | f27ffdec8514df89d6d72b4b319d63933b114695 | [
"MIT"
] | null | null | null | CSX_Cvar.cpp | aljawary/PZ_CSGO_CHEAT-master | f27ffdec8514df89d6d72b4b319d63933b114695 | [
"MIT"
] | null | null | null | #include "CSX_Cvar.h"
#define ENCRYPTION_KEY 0xA67D7
//[junk_enable /]
namespace CSX
{
namespace Cvar
{
string IniFile = "";
size_t IniFileLen = 0;
void IniFileED()
{
for ( size_t i = 0; i < IniFileLen; i++ ) {
IniFile[i] ^= ENCRYPTION_KEY;
}
}
void InitPath( const char* szPath )
{
IniFi... | 9.359649 | 139 | 0.605904 | aljawary |
ed60408383391744d47e8b53ebade60a4266ef80 | 151 | cpp | C++ | general-lang/general.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | 2 | 2021-03-30T15:25:44.000Z | 2021-05-14T07:22:25.000Z | general-lang/general.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | null | null | null | general-lang/general.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | null | null | null | #include "general.hpp"
std::unique_ptr<SyntaxTreeFactory> SyntaxTree::factory = unique_ptr<GeneralSyntaxTreeFactory>(new GeneralSyntaxTreeFactory());
| 37.75 | 126 | 0.827815 | SleepyToDeath |
ed61324cc7b89e6e4e68f67053d782248cc54b93 | 16,448 | cpp | C++ | sdk/ovr_sdk_linux_0.5.0.1/LibOVR/Src/CAPI/GL/CAPI_GL_Util.cpp | sbt-tbs/owr_with_oculus | a4b1e5160d086642a02700bc0d10fa0914a0a785 | [
"MIT"
] | 144 | 2015-03-12T15:35:44.000Z | 2022-02-28T03:38:36.000Z | sdk/ovr_sdk_linux_0.5.0.1/LibOVR/Src/CAPI/GL/CAPI_GL_Util.cpp | sbt-tbs/owr_with_oculus | a4b1e5160d086642a02700bc0d10fa0914a0a785 | [
"MIT"
] | 16 | 2015-03-13T09:31:36.000Z | 2021-12-03T14:43:59.000Z | sdk/ovr_sdk_linux_0.5.0.1/LibOVR/Src/CAPI/GL/CAPI_GL_Util.cpp | sbt-tbs/owr_with_oculus | a4b1e5160d086642a02700bc0d10fa0914a0a785 | [
"MIT"
] | 20 | 2015-03-13T11:03:58.000Z | 2020-03-30T06:57:10.000Z | /************************************************************************************
Filename : CAPI_GL_Util.cpp
Content : RenderDevice implementation for OpenGL
Created : September 10, 2012
Authors : David Borel, Andrew Reisse
Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved.... | 26.701299 | 117 | 0.636308 | sbt-tbs |
ed668ce9a6e6e44cbe1bfa7f95921e683679eed6 | 337 | hpp | C++ | src/WindowsUtilities.hpp | xilwen/servant-base-lib | 432c67cb90774b67b350cf1f9e642665ef8c4f4d | [
"MIT"
] | null | null | null | src/WindowsUtilities.hpp | xilwen/servant-base-lib | 432c67cb90774b67b350cf1f9e642665ef8c4f4d | [
"MIT"
] | null | null | null | src/WindowsUtilities.hpp | xilwen/servant-base-lib | 432c67cb90774b67b350cf1f9e642665ef8c4f4d | [
"MIT"
] | null | null | null | #ifndef SERVANTBASE_WINDOWSUTILITIES_HPP
#define SERVANTBASE_WINDOWSUTILITIES_HPP
#include <string>
class WindowsUtilities
{
public:
static std::wstring getHomePath();
static void ipconfigAndSave();
static std::string getIpconfig();
static void startURI(std::string uri);
};
#endif //SERVANTBASE_WIND... | 19.823529 | 42 | 0.774481 | xilwen |
ed70254de7beb3120db427f747eac84d54024e90 | 434 | cpp | C++ | CodeFourses/A.BeautifulMatrix.cpp | Rafat97/RafatProgtammingContest | f39ef6a71511abb91d42c6af469e4b24959be226 | [
"Apache-2.0"
] | null | null | null | CodeFourses/A.BeautifulMatrix.cpp | Rafat97/RafatProgtammingContest | f39ef6a71511abb91d42c6af469e4b24959be226 | [
"Apache-2.0"
] | null | null | null | CodeFourses/A.BeautifulMatrix.cpp | Rafat97/RafatProgtammingContest | f39ef6a71511abb91d42c6af469e4b24959be226 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<vector>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
int x = 0,y = 0;
int array[5][5];
for(int i = 0;i<5;i++){
for(int j = 0 ; j<5;j++)
{
cin>>array[i][j];
if(array[i][j] == 1)
{
x = j... | 14 | 38 | 0.387097 | Rafat97 |
ed72c81ad9641ab8638fbc1127487d648865ac2e | 1,241 | cpp | C++ | demo/src/demo_set_positions.cpp | Srikiranrao/ROS-Industrial-techman | ba157ba702e727e5bf836d0691b989ad4c29ea72 | [
"BSD-3-Clause"
] | 28 | 2020-07-07T03:52:34.000Z | 2022-03-29T13:28:17.000Z | demo/src/demo_set_positions.cpp | Srikiranrao/ROS-Industrial-techman | ba157ba702e727e5bf836d0691b989ad4c29ea72 | [
"BSD-3-Clause"
] | 17 | 2020-09-29T11:59:57.000Z | 2022-03-09T12:10:38.000Z | demo/src/demo_set_positions.cpp | Srikiranrao/ROS-Industrial-techman | ba157ba702e727e5bf836d0691b989ad4c29ea72 | [
"BSD-3-Clause"
] | 19 | 2020-10-16T05:48:59.000Z | 2022-03-28T06:31:56.000Z | // ROS headers
#include <ros/ros.h>
#include <std_msgs/String.h>
// std header
#include <sstream>
#include <cstdlib>
// TM Driver header
#include "tm_msgs/SetPositions.h"
int main(int argc, char **argv)
{
ros::init(argc, argv, "demo_set_positions");
ros::NodeHandle nh_demo;
ros::ServiceClient client =... | 26.978261 | 102 | 0.690572 | Srikiranrao |
ed7acf6473aec5b5d2c5d2da598314ff78f6db4c | 1,456 | cpp | C++ | skse64/Hooks_Event.cpp | Acro748/CBPCSSE | fabd56ce8f8ac10cde17325f0bd61ecc8cbcda20 | [
"MIT"
] | 13 | 2020-06-06T09:08:55.000Z | 2022-01-22T12:21:21.000Z | skse64/Hooks_Event.cpp | Erstori/SkyrimPriority-Mod | 50a5adeb78766fba25d4f28626621e9df38df4ba | [
"MIT"
] | 1 | 2020-09-08T19:38:55.000Z | 2020-09-08T19:38:55.000Z | skse64/Hooks_Event.cpp | Erstori/SkyrimPriority-Mod | 50a5adeb78766fba25d4f28626621e9df38df4ba | [
"MIT"
] | 4 | 2020-06-05T12:32:58.000Z | 2022-01-15T00:17:44.000Z | #include "Hooks_Event.h"
#include "skse64_common/Utilities.h"
#include "skse64/GameInput.h"
#include "skse64/GameMenus.h"
#include "skse64/PapyrusEvents.h"
#include "skse64/PluginManager.h"
#include "skse64_common/BranchTrampoline.h"
RelocAddr <uintptr_t> PlayerControls_ctor_Call(0x005ACC20 + 0xD4B);
PlayerControls ... | 32.355556 | 97 | 0.81044 | Acro748 |
ed7b0bf9b247f1c78eb2f090842e30ae9ef1ed10 | 224 | cpp | C++ | VK/VKKinect.cpp | voxarlabs/Virtual-Kinect | 435e37f8414772578177492d755f402cd9098a90 | [
"MIT"
] | 1 | 2021-10-19T17:16:20.000Z | 2021-10-19T17:16:20.000Z | VK/VKKinect.cpp | voxarlabs/Virtual-Kinect | 435e37f8414772578177492d755f402cd9098a90 | [
"MIT"
] | null | null | null | VK/VKKinect.cpp | voxarlabs/Virtual-Kinect | 435e37f8414772578177492d755f402cd9098a90 | [
"MIT"
] | null | null | null | #include "VKKinect.h"
#include "VKKinectSensor.h"
extern "C" HRESULT VK_API WINAPI GetDefaultKinectSensor(_COM_Outptr_ IKinectSensor * *defaultKinectSensor) {
*defaultKinectSensor = new VKKinectSensor();
return 0;
} | 32 | 109 | 0.772321 | voxarlabs |
ed7d4f8f1093d325da09c8461220aedfcbd3cb25 | 15,880 | cpp | C++ | build/moc/moc_AirframeComponentController.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | 1 | 2018-11-07T06:10:53.000Z | 2018-11-07T06:10:53.000Z | build/moc/moc_AirframeComponentController.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | null | null | null | build/moc/moc_AirframeComponentController.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | 1 | 2018-11-07T06:10:47.000Z | 2018-11-07T06:10:47.000Z | /****************************************************************************
** Meta object code from reading C++ file 'AirframeComponentController.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************... | 33.715499 | 128 | 0.635831 | UNIST-ESCL |
ed7dba4f3cfa382f34fc2efb9d87ee47aaf6f283 | 448 | cpp | C++ | src/language.cpp | kpsuhair/QTRemoteFileEditor | dec7effa4b90493e71e9476a10235804560167cb | [
"MIT"
] | null | null | null | src/language.cpp | kpsuhair/QTRemoteFileEditor | dec7effa4b90493e71e9476a10235804560167cb | [
"MIT"
] | null | null | null | src/language.cpp | kpsuhair/QTRemoteFileEditor | dec7effa4b90493e71e9476a10235804560167cb | [
"MIT"
] | null | null | null | #include "language.h"
QString ProgrammingLanguage::toString(Language language)
{
switch (language)
{
case (Language::C):
return "Language: C";
case (Language::CPP):
return "Language: C++";
case (Language::Java):
return "Language: Java";
case ... | 22.4 | 56 | 0.540179 | kpsuhair |
142e8ce22e55c72ba68b745ba8d34dab01fc09c4 | 676 | hpp | C++ | include/wge/scripting/error.hpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 5 | 2016-09-18T01:39:19.000Z | 2020-05-24T02:37:45.000Z | include/wge/scripting/error.hpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 25 | 2017-02-11T21:13:24.000Z | 2020-06-24T08:48:33.000Z | include/wge/scripting/error.hpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 2 | 2017-04-29T22:12:16.000Z | 2018-04-05T10:35:25.000Z | #pragma once
#include <wge/util/uuid.hpp>
#include <string>
#include <vector>
namespace wge::scripting
{
struct error_info
{
std::string source;
std::string message;
int line = 0;
bool operator==(const error_info& pOther) const noexcept
{
return source == pOther.source &&
message == pOther.message && lin... | 15.363636 | 57 | 0.696746 | clman94 |
142f001118757de8d41253d8bb2411b1146981f2 | 1,079 | hpp | C++ | src/mapnik_feature.hpp | tomhughes/node-mapnik | 81488c5b1c504e41673f8a1a60af3f104a66d628 | [
"BSD-3-Clause"
] | null | null | null | src/mapnik_feature.hpp | tomhughes/node-mapnik | 81488c5b1c504e41673f8a1a60af3f104a66d628 | [
"BSD-3-Clause"
] | 1 | 2019-04-01T17:59:26.000Z | 2019-04-01T20:29:32.000Z | src/mapnik_feature.hpp | tomhughes/node-mapnik | 81488c5b1c504e41673f8a1a60af3f104a66d628 | [
"BSD-3-Clause"
] | 2 | 2017-07-18T03:11:15.000Z | 2021-08-07T20:40:39.000Z | #ifndef __NODE_MAPNIK_FEATURE_H__
#define __NODE_MAPNIK_FEATURE_H__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wshadow"
#include <nan.h>
#pragma GCC diagnostic pop
#include <memory>
// mapnik
#include <mapnik/version.hpp>
#include <mapnik/feature.... | 23.977778 | 71 | 0.722892 | tomhughes |
14368dc596d7322bf374d7a41c7356865cd16235 | 643 | cpp | C++ | kinect_dash/Gui/GuiCheckbox.cpp | kOFReadie/driver_kinectV2 | 78a4064cbd20551fe2ee090b53122ff9e031da3b | [
"MIT"
] | 28 | 2020-02-04T10:16:53.000Z | 2022-03-07T18:53:45.000Z | kinect_dash/Gui/GuiCheckbox.cpp | kOFReadie/driver_kinectV2 | 78a4064cbd20551fe2ee090b53122ff9e031da3b | [
"MIT"
] | 4 | 2020-07-18T11:08:27.000Z | 2021-01-13T19:07:44.000Z | kinect_dash/Gui/GuiCheckbox.cpp | kOFReadie/driver_kinectV2 | 78a4064cbd20551fe2ee090b53122ff9e031da3b | [
"MIT"
] | 4 | 2020-06-04T17:09:25.000Z | 2021-12-28T16:41:15.000Z | #include "stdafx.h"
#include "Gui/GuiCheckbox.h"
GuiCheckbox::GuiCheckbox(const std::string &f_name, bool f_state) : GuiElement(f_name)
{
m_lastState = f_state;
m_currentState = f_state;
}
GuiCheckbox::~GuiCheckbox()
{
}
void GuiCheckbox::SetCheckCallback(const std::function<void(bool)> &f_callback)
{
m_... | 20.741935 | 86 | 0.699844 | kOFReadie |
1438a54a9831d07d14523cbb147ea6ae7b094dae | 4,208 | cpp | C++ | src/Util/pybind11/PySceneGraph.cpp | Naoki-Hiraoka/choreonoid-1 | 77e3c0da5cec7a0046fff5c5d7e68ccc208e5364 | [
"MIT"
] | null | null | null | src/Util/pybind11/PySceneGraph.cpp | Naoki-Hiraoka/choreonoid-1 | 77e3c0da5cec7a0046fff5c5d7e68ccc208e5364 | [
"MIT"
] | null | null | null | src/Util/pybind11/PySceneGraph.cpp | Naoki-Hiraoka/choreonoid-1 | 77e3c0da5cec7a0046fff5c5d7e68ccc208e5364 | [
"MIT"
] | null | null | null | /*!
@author Shin'ichiro Nakaoka
*/
#include "PyReferenced.h"
#include "PyEigenTypes.h"
#include "../SceneGraph.h"
#include "../CloneMap.h"
using namespace cnoid;
namespace py = pybind11;
namespace cnoid {
void exportPySceneGraph(py::module& m)
{
py::class_<SgUpdate> sgUpdate(m, "SgUpdate");
sgUpdate
... | 42.505051 | 111 | 0.600998 | Naoki-Hiraoka |
1439cfed6d6f5d673e53e5537c6d28661a58112b | 5,350 | cpp | C++ | NightFall/source/UI/DownloadUpdate.cpp | StarDustCFW/NightFall | b66be81a6d10cfd71773e74156fcaf5e513ae262 | [
"MIT"
] | null | null | null | NightFall/source/UI/DownloadUpdate.cpp | StarDustCFW/NightFall | b66be81a6d10cfd71773e74156fcaf5e513ae262 | [
"MIT"
] | null | null | null | NightFall/source/UI/DownloadUpdate.cpp | StarDustCFW/NightFall | b66be81a6d10cfd71773e74156fcaf5e513ae262 | [
"MIT"
] | null | null | null | /*Copyright (c) 2020 D3fau4
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, distribute, sublicens... | 36.643836 | 137 | 0.683551 | StarDustCFW |
143ab08d05331718ad563be03d3add4cef8ad8ba | 1,807 | cpp | C++ | Graph/Minimum Spanning Tree/Kruskal's Algorithm/Solution_1.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 8 | 2021-02-14T13:13:27.000Z | 2022-01-08T23:58:32.000Z | Graph/Minimum Spanning Tree/Kruskal's Algorithm/Solution_1.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 17 | 2021-02-28T17:03:50.000Z | 2021-10-19T13:02:03.000Z | Graph/Minimum Spanning Tree/Kruskal's Algorithm/Solution_1.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 15 | 2021-03-01T03:54:29.000Z | 2021-10-19T18:29:00.000Z | #include <iostream>
#include<vector>
#include<algorithm>
#include<list>
using namespace std;
// DSU
class DSU{
int *parent;
int *rank;
public:
DSU(int n){
parent = new int[n];
rank = new int[n];
for(int i=0; i<n; i++){
parent[i] = -1;
rank[i] = 1;
}
... | 20.303371 | 63 | 0.427227 | shouryagupta21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.