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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9a4a95c9acf3a981ec738e765e49587d2d0e909 | 18,645 | hh | C++ | server/dedup/DedupCore.hh | tinoryj/REED | 821e42a84237bdaef809879c1d9243fc047b736a | [
"MIT"
] | 2 | 2021-06-27T06:13:15.000Z | 2021-12-05T11:32:05.000Z | server/dedup/DedupCore.hh | tinoryj/REED | 821e42a84237bdaef809879c1d9243fc047b736a | [
"MIT"
] | null | null | null | server/dedup/DedupCore.hh | tinoryj/REED | 821e42a84237bdaef809879c1d9243fc047b736a | [
"MIT"
] | null | null | null | /*
* DedupCore.hh
*/
#ifndef __DEDUCORE_HH__
#define __DEDUCORE_HH__
#include <bits/stdc++.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <sstream>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>... | 32.482578 | 145 | 0.728131 | tinoryj |
e9a5ba205a7ec589a402572c3582e1a893538d81 | 7,397 | hpp | C++ | glovecompress.hpp | Alvertoo/api_planning | 02b8beb2e523c6f4b99cd6a5e60c5673af9765eb | [
"MIT"
] | 14 | 2016-01-30T10:05:18.000Z | 2021-03-24T08:08:41.000Z | glovecompress.hpp | aepalmaq/prueba | 84abe28ad7a8a9c4af7351b93c20a102b729c518 | [
"MIT"
] | 1 | 2017-02-24T11:18:05.000Z | 2017-02-24T12:56:32.000Z | glovecompress.hpp | aepalmaq/prueba | 84abe28ad7a8a9c4af7351b93c20a102b729c518 | [
"MIT"
] | 2 | 2015-12-09T10:39:11.000Z | 2021-03-24T07:57:25.000Z | #pragma once
#include <zlib.h>
#include <iostream>
#include <string>
#include <algorithm>
#include "utils.hpp"
namespace
{
/* Gets name of compression method */
static std::string getCompressionMethodStr(std::string& accepted, std::vector<std::string>& compatible)
{
auto _accepted = tokenize(accepted, ",", defau... | 28.782101 | 118 | 0.618359 | Alvertoo |
e9a74db0b4e77ab2b980fec64e4b77ede7005a22 | 7,032 | cpp | C++ | src/operators/math/math_builders.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 194 | 2016-07-19T15:40:21.000Z | 2022-03-19T08:06:10.000Z | src/operators/math/math_builders.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 1,021 | 2016-07-19T12:56:31.000Z | 2022-03-29T00:41:47.000Z | src/operators/math/math_builders.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 74 | 2016-07-28T18:24:00.000Z | 2022-01-24T19:41:04.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 65.719626 | 80 | 0.598834 | jonesholger |
e9ab9e062c3d36b7f309efae18734ca85b0bd2de | 130 | cpp | C++ | main.cpp | feniksa/algo-cpp-book | 48dfc05c8c3fa744e4260c60920db1e5efab58bd | [
"MIT"
] | null | null | null | main.cpp | feniksa/algo-cpp-book | 48dfc05c8c3fa744e4260c60920db1e5efab58bd | [
"MIT"
] | null | null | null | main.cpp | feniksa/algo-cpp-book | 48dfc05c8c3fa744e4260c60920db1e5efab58bd | [
"MIT"
] | null | null | null | #include "graph.h"
#include <iostream>
int main(int argc, const char** argv)
{
std::cout << "test" << std::endl;
return 0;
}
| 14.444444 | 38 | 0.615385 | feniksa |
e9ad95f992f092b696a8b115a72f3078a2a25dc1 | 22,700 | hpp | C++ | include/System/Security/SecurityElement.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/System/Security/SecurityElement.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/System/Security/SecurityElement.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
#include "extern/beatsaber-hook/s... | 59.424084 | 256 | 0.729163 | marksteward |
e9b1df6e38558d05ed266280b5d680469d9ccd70 | 364 | hpp | C++ | src/common/LogLevel.hpp | rayrayson/sarus | f605e9b884634522d3778fec9db62de225c4e034 | [
"BSD-3-Clause"
] | null | null | null | src/common/LogLevel.hpp | rayrayson/sarus | f605e9b884634522d3778fec9db62de225c4e034 | [
"BSD-3-Clause"
] | null | null | null | src/common/LogLevel.hpp | rayrayson/sarus | f605e9b884634522d3778fec9db62de225c4e034 | [
"BSD-3-Clause"
] | null | null | null | /*
* Sarus
*
* Copyright (c) 2018-2022, ETH Zurich. All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef sarus_common_LogLevel_hpp
#define sarus_common_LogLevel_hpp
namespace sarus {
namespace common {
enum class LogLevel {DEBU... | 16.545455 | 60 | 0.722527 | rayrayson |
e9b24ede86ccf4980d6946aa9419912152e060e7 | 3,627 | cpp | C++ | src/zenoh_flow_pcd_map_loader.cpp | autocore-ai/zenoh_flow_autoware | 8b5320fe95cfeb3d0573d7f520a6bab925ff6208 | [
"Apache-2.0"
] | 1 | 2022-03-31T08:53:16.000Z | 2022-03-31T08:53:16.000Z | src/zenoh_flow_pcd_map_loader.cpp | autocore-ai/zenoh_flow_autoware | 8b5320fe95cfeb3d0573d7f520a6bab925ff6208 | [
"Apache-2.0"
] | 2 | 2022-01-03T20:36:57.000Z | 2022-01-19T03:55:51.000Z | src/zenoh_flow_pcd_map_loader.cpp | autocore-ai/zenoh_flow_autoware | 8b5320fe95cfeb3d0573d7f520a6bab925ff6208 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The AutoCore.AI.
//
// 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... | 49.013514 | 117 | 0.625586 | autocore-ai |
e9b6cf2b8a199b97d66e42de2cf2f9aab1ffba68 | 1,220 | hpp | C++ | Source/AliveLibAO/Bells.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 1 | 2021-04-11T23:44:43.000Z | 2021-04-11T23:44:43.000Z | Source/AliveLibAO/Bells.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | Source/AliveLibAO/Bells.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | #pragma once
#include "FunctionFwd.hpp"
#include "BaseAnimatedWithPhysicsGameObject.hpp"
#include "FixedPoint.hpp"
namespace AO {
enum class BellSize : __int16
{
eBig_0 = 0,
eMedium_1 = 1,
eSmall_2 = 2,
};
class Bells : public BaseAnimatedWithPhysicsGameObject
{
public:
EXPORT Bells* ctor_40A650(Bel... | 19.677419 | 77 | 0.702459 | THEONLYDarkShadow |
e9bc44cb1a7faee8479ec54dd649da0e7755cfe4 | 15,593 | hpp | C++ | packages/data_gen/electron_photon/src/DataGen_StandardAdjointIncoherentGridGenerator_def.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data_gen/electron_photon/src/DataGen_StandardAdjointIncoherentGridGenerator_def.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data_gen/electron_photon/src/DataGen_StandardAdjointIncoherentGridGenerator_def.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file DataGen_StandardAdjointIncoherentGridGenerator_def.hpp
//! \author Alex Robinson
//! \brief Standard adjoint incoherent grid generator template definition
//!
//--------------------------------------------------------------... | 34.728285 | 169 | 0.722183 | lkersting |
e9bd6394d1307be500727732e533bc41c6a3febb | 1,396 | cpp | C++ | lib/World.cpp | lorenzo-rovigatti/ashell | f6c3d4b009ec9229d972a5cc851e90a772f3575b | [
"MIT"
] | null | null | null | lib/World.cpp | lorenzo-rovigatti/ashell | f6c3d4b009ec9229d972a5cc851e90a772f3575b | [
"MIT"
] | null | null | null | lib/World.cpp | lorenzo-rovigatti/ashell | f6c3d4b009ec9229d972a5cc851e90a772f3575b | [
"MIT"
] | null | null | null | /*
* World.cpp
*
* Created on: 09 feb 2018
* Author: lorenzo
*/
#include "World.h"
#include <algorithm>
namespace ashell {
std::weak_ptr<System> World::_current_system;
std::vector<std::shared_ptr<System> > World::_systems;
World::~World() {
}
std::shared_ptr<System> World::current_system() {
if(_sys... | 21.476923 | 99 | 0.704155 | lorenzo-rovigatti |
e9bdd6cb47d759a40ea577ef7ad252b9f821c6bf | 11,401 | cpp | C++ | core/test/algorand/AlgorandAccountTests.cpp | hlafet-ledger/lib-ledger-core | 44d21837e51cb6dfdecb4af4a674cae0aee9f06d | [
"MIT"
] | null | null | null | core/test/algorand/AlgorandAccountTests.cpp | hlafet-ledger/lib-ledger-core | 44d21837e51cb6dfdecb4af4a674cae0aee9f06d | [
"MIT"
] | null | null | null | core/test/algorand/AlgorandAccountTests.cpp | hlafet-ledger/lib-ledger-core | 44d21837e51cb6dfdecb4af4a674cae0aee9f06d | [
"MIT"
] | null | null | null | /*
* AlgorandAccountTests
*
* Created by Rémi Barjon on 02/06/2020.
*
* The MIT License (MIT)
*
* Copyright (c) 2020 Ledger
*
* 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 withou... | 36.777419 | 141 | 0.594422 | hlafet-ledger |
e9c15e270a752eebe568a1442d01fc6f5d6fb6eb | 927 | cpp | C++ | src/utils.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | src/utils.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | src/utils.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <cstdint>
#include "utils.hpp"
void buildUnionState(const EntryHouse& house, EntryState& out)
{
for (auto it = house.begin(); it != house.end(); ++it)
{
for (auto eit = (*it)->begin(); eit != (*it)->end(); ++eit)
{
out.insert(*eit);
}
}
}
bool removeValueF... | 20.6 | 79 | 0.629989 | sqt |
e9c16c8169b926cff6a0f670d9ae2f5041da3e6f | 1,051 | cpp | C++ | 9.11.7.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | 9.11.7.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | 9.11.7.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | #include<iostream>
#include<cmath>
#include<algorithm>
//#include<ctime>
// to find out the subset of the given set
using namespace std;
int subset(int* arr,int l ,int n,int*brr,int sum=0)
{
static int i=0;
// now we have to make 2 subcases
// either to include the first element or not
if(l>n)
{
... | 17.229508 | 51 | 0.478592 | luckylove |
e9c68d731d12506efe59d2f12c643a6848662ed9 | 749 | hpp | C++ | src/boost/regex/pattern_except.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | src/boost/regex/pattern_except.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | 1 | 2021-08-30T18:02:49.000Z | 2021-08-30T18:02:49.000Z | src/boost/regex/pattern_except.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | /*
*
* Copyright (c) 1998-2002
* John Maddock
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent versi... | 22.69697 | 68 | 0.720961 | 107-systems |
e9cda0fc1b1b0fa62a61b5ec413ff578e4eda2a4 | 14,438 | cpp | C++ | unittest/lib/ref_implementations.cpp | xumia/SymCrypt | b15ec2c87d54704474ee8d26c95e90762c746ba2 | [
"MIT"
] | 170 | 2019-05-07T01:45:42.000Z | 2022-03-28T19:02:38.000Z | unittest/lib/ref_implementations.cpp | xumia/SymCrypt | b15ec2c87d54704474ee8d26c95e90762c746ba2 | [
"MIT"
] | 15 | 2019-05-07T01:25:48.000Z | 2022-03-22T13:51:49.000Z | unittest/lib/ref_implementations.cpp | xumia/SymCrypt | b15ec2c87d54704474ee8d26c95e90762c746ba2 | [
"MIT"
] | 31 | 2019-05-07T07:49:21.000Z | 2022-03-27T03:15:43.000Z | //
// Reference implementations
//
// Copyright (c) Microsoft Corporation. Licensed under the MIT license.
//
#include "precomp.h"
#if INCLUDE_IMPL_REF
char * ImpRef::name = "Ref";
///////////////////////////////////////////////////////
// Poly1305
// For Poly1305 there is a risk that the SymCrypt ... | 33.038902 | 137 | 0.595096 | xumia |
839936dd1e34f6c18e071f7ebe321321d7b9140d | 489 | cpp | C++ | libraries/GhostwareEngine/src/Graphics/Mesh.cpp | Xaer033/PitWizard | 9fb32cb4330d7d83676dc6db1f7cfec65dfb2568 | [
"Apache-2.0"
] | null | null | null | libraries/GhostwareEngine/src/Graphics/Mesh.cpp | Xaer033/PitWizard | 9fb32cb4330d7d83676dc6db1f7cfec65dfb2568 | [
"Apache-2.0"
] | null | null | null | libraries/GhostwareEngine/src/Graphics/Mesh.cpp | Xaer033/PitWizard | 9fb32cb4330d7d83676dc6db1f7cfec65dfb2568 | [
"Apache-2.0"
] | null | null | null |
#include "Mesh.h"
#include "Material.h"
#include "Model.h"
#include <GG/Core/Log.h>
namespace GG
{
Mesh::Mesh() :
geometry(nullptr),
material(nullptr)
{
}
Mesh::Mesh( Model * geo, Material * mat ) :
geometry( geo ), material( mat )
{
}
Mesh::~Mesh()
{
geometry = nullptr;
material = nullptr;
}
... | 13.216216 | 51 | 0.633947 | Xaer033 |
83999dd988d7ff88fb7e34e8b2834f95537c4499 | 2,458 | hpp | C++ | include/RadonFramework/System/Time.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | include/RadonFramework/System/Time.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | include/RadonFramework/System/Time.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #ifndef RF_SYSTEM_TIME_HPP
#define RF_SYSTEM_TIME_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <RadonFramework/Collections/List.hpp>
#include <RadonFramework/Core/Types/String.hpp>
#include <RadonFramework/Memory/PointerID.hpp>
namespace RadonFramework::Time
{
struct DateTime;
}
namespace RF_Time = RadonFram... | 32.342105 | 79 | 0.747762 | tak2004 |
839ad357ea5042203686f9747e9ae9b6d5ee7352 | 2,095 | hpp | C++ | src/imageio/util/Factory.hpp | halfmvsq/histolozee | c624c0d7c3a70bcc0d6aac87b4f24677e064b6a5 | [
"Apache-2.0"
] | null | null | null | src/imageio/util/Factory.hpp | halfmvsq/histolozee | c624c0d7c3a70bcc0d6aac87b4f24677e064b6a5 | [
"Apache-2.0"
] | null | null | null | src/imageio/util/Factory.hpp | halfmvsq/histolozee | c624c0d7c3a70bcc0d6aac87b4f24677e064b6a5 | [
"Apache-2.0"
] | null | null | null | #ifndef FACTORY_H
#define FACTORY_H
#include <functional>
#include <memory>
#include <unordered_map>
/**
* @brief
*
* @tparam TBase Base class type to return
* @tparam KeyType Key type
*/
template< typename TBase, typename KeyType >
class Factory
{
public:
template< typename TDerived >
void registerTyp... | 24.647059 | 91 | 0.571838 | halfmvsq |
839bea3d72aa994688dba3d4ecc2811f0462ea44 | 2,263 | cpp | C++ | Java-and-C++/SourceFunctions/curl_support/VDistLib.cpp | vietnguyen1989/UDx-Examples | 4b72aaa7402c93890500d37c1b888230cc6524e2 | [
"BSD-3-Clause"
] | 12 | 2017-08-16T09:58:50.000Z | 2020-05-08T12:03:57.000Z | Java-and-C++/SourceFunctions/curl_support/VDistLib.cpp | vietnguyen1989/UDx-Examples | 4b72aaa7402c93890500d37c1b888230cc6524e2 | [
"BSD-3-Clause"
] | 1 | 2021-04-21T21:39:03.000Z | 2021-04-21T21:39:03.000Z | Java-and-C++/SourceFunctions/curl_support/VDistLib.cpp | vietnguyen1989/UDx-Examples | 4b72aaa7402c93890500d37c1b888230cc6524e2 | [
"BSD-3-Clause"
] | 15 | 2016-12-21T09:57:22.000Z | 2021-11-25T22:30:24.000Z | /* Copyright (c) 2005 - 2016 Hewlett Packard Enterprise Development LP -*- C++ -*-*/
#include "VDistLib.h"
#include <sstream>
#include "Vertica.h"
#include <curl/curl.h>
//////////////////////////////////////////////
VDistLib::VDistLib(const std::string &url) : _url(url)
{
}
VDistLib::~VDistLib()
{
}
... | 19.34188 | 96 | 0.596553 | vietnguyen1989 |
839e559936255cfe397659031a1c4659e43b5252 | 573 | cpp | C++ | tests/main.cpp | 64epicks/6502 | 47f5b6b03485b767ec66e0561fedbbc56df66114 | [
"MIT"
] | 1 | 2020-03-05T14:22:45.000Z | 2020-03-05T14:22:45.000Z | tests/main.cpp | 64epicks/6502 | 47f5b6b03485b767ec66e0561fedbbc56df66114 | [
"MIT"
] | null | null | null | tests/main.cpp | 64epicks/6502 | 47f5b6b03485b767ec66e0561fedbbc56df66114 | [
"MIT"
] | null | null | null | #include <6502.hpp>
#include <iostream>
#include <chrono>
unsigned char rb(unsigned short addr)
{
return 0xEA;
}
void wb(unsigned short addr, unsigned char value)
{
}
int main()
{
CPU::CPU processor(rb, wb);
std::chrono::time_point<std::chrono::system_clock,std::chrono::nanoseconds> time_point;
u... | 22.038462 | 91 | 0.642234 | 64epicks |
839e889c91efc237f77a15ede2eefdece45df4ce | 8,173 | cpp | C++ | examples/yolo_v2/post_process/yolov2_on_post.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | examples/yolo_v2/post_process/yolov2_on_post.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | examples/yolo_v2/post_process/yolov2_on_post.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | /*
All modification made by Cambricon Corporation: © 2019 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2019, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and use in ... | 40.261084 | 92 | 0.639912 | imoisture |
83a3a8a1447dd6808f0a58fd5ca28e001c3e0c78 | 690 | cpp | C++ | codeforces/p1328C.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | codeforces/p1328C.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | codeforces/p1328C.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
int n;
cin >> n;
string x, a, b;
cin >> x;
a = string(n, '1');
b = string(n, '1');
int f = 0;
for(int i = 1; i < n; i++)
{
if(f==0... | 19.714286 | 60 | 0.265217 | freedomDR |
83a95e1fca53e843ddb6e652c6726f620f371f8a | 788 | hpp | C++ | src/sink/console.hpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 193 | 2015-01-05T08:48:05.000Z | 2022-01-31T22:04:01.000Z | src/sink/console.hpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 135 | 2015-01-13T13:02:49.000Z | 2022-01-12T15:06:48.000Z | src/sink/console.hpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 40 | 2015-01-21T16:37:30.000Z | 2022-01-25T15:54:04.000Z | #pragma once
#include <functional>
#include <iosfwd>
#include "blackhole/sink.hpp"
#include "blackhole/sink/console.hpp"
namespace blackhole {
inline namespace v1 {
namespace sink {
class console_t : public sink_t {
std::ostream& stream_;
std::unique_ptr<filter_t> filter;
std::function<termcolor_t(const... | 24.625 | 96 | 0.715736 | JakariaBlaine |
83a9860abd1ebe88dfaa83abac148eeb1622df3e | 730 | hpp | C++ | plugins/opengl/include/sge/opengl/state/ffp/transform/create.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/include/sge/opengl/state/ffp/transform/create.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/include/sge/opengl/state/ffp/transform/create.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_OPENGL_STATE_FFP_TRANSFORM_CREATE_HPP_INCLUDED
#define SGE_OPENGL_STATE_FFP_TRANSFORM_C... | 33.181818 | 99 | 0.772603 | cpreh |
83acd933849ad1c476fbb6053356d810369ea151 | 6,063 | hh | C++ | fgl/include/OpenMesh/Tools/Decimater/MixedDecimaterT.hh | dmitriychunikhin/fgl | 5d79c1e92e62d2d6e33413ee3f7e48b1c2322d4c | [
"BSD-2-Clause"
] | null | null | null | fgl/include/OpenMesh/Tools/Decimater/MixedDecimaterT.hh | dmitriychunikhin/fgl | 5d79c1e92e62d2d6e33413ee3f7e48b1c2322d4c | [
"BSD-2-Clause"
] | null | null | null | fgl/include/OpenMesh/Tools/Decimater/MixedDecimaterT.hh | dmitriychunikhin/fgl | 5d79c1e92e62d2d6e33413ee3f7e48b1c2322d4c | [
"BSD-2-Clause"
] | null | null | null | /*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2012 by Computer Graphics Group, RWTH Aachen *
* ... | 46.638462 | 113 | 0.422233 | dmitriychunikhin |
83afc203cb2279a45e9cefa4e76f3ff919cfc0a9 | 762 | cpp | C++ | tests/unit_tests/main.cpp | tobiasanker/libKitsunePersistence | 280689e929e3b26a9f98b0f1a8678ca8cb29463a | [
"MIT"
] | null | null | null | tests/unit_tests/main.cpp | tobiasanker/libKitsunePersistence | 280689e929e3b26a9f98b0f1a8678ca8cb29463a | [
"MIT"
] | 11 | 2019-08-27T21:49:06.000Z | 2019-10-14T19:01:23.000Z | tests/unit_tests/main.cpp | tobiasanker/libKitsunemimiPersistence | 280689e929e3b26a9f98b0f1a8678ca8cb29463a | [
"MIT"
] | null | null | null | /**
* @file main.cpp
*
* @author Tobias Anker <tobias.anker@kitsunemimi.moe>
*
* @copyright MIT License
*/
#include <iostream>
#include <libKitsunemimiPersistence/files/text_file_test.h>
#include <libKitsunemimiPersistence/files/binary_file_with_directIO_test.h>
#include <libKitsunemimiPersistence/files/b... | 31.75 | 78 | 0.786089 | tobiasanker |
83b52999185f41a56a19ac0c3516dc6829a53e43 | 9,874 | cpp | C++ | mep3_driver/src/dynamixel_driver.cpp | memristor/mep3 | 882732b04098f7ebde95a8a91639b8d3c5e4eace | [
"Apache-2.0"
] | 4 | 2021-11-13T22:59:52.000Z | 2021-12-25T09:10:52.000Z | mep3_driver/src/dynamixel_driver.cpp | memristor/mep3 | 882732b04098f7ebde95a8a91639b8d3c5e4eace | [
"Apache-2.0"
] | 71 | 2021-11-13T16:32:16.000Z | 2022-03-30T08:44:16.000Z | mep3_driver/src/dynamixel_driver.cpp | memristor/mep3 | 882732b04098f7ebde95a8a91639b8d3c5e4eace | [
"Apache-2.0"
] | 3 | 2021-11-14T19:39:14.000Z | 2022-02-24T07:57:02.000Z | // Copyright 2021 Memristor Robotics
//
// 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... | 30.760125 | 98 | 0.681892 | memristor |
83c1b9509d826c13542744dff9a46aeabfdd4aa8 | 4,357 | cpp | C++ | src/Engine/Point.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Engine/Point.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Engine/Point.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "Point.h"
#include "Kernel/DocumentHelper.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
Point::Point()
: m_owner( false )
, m_width( 1.f )
{
}
//////////////////////////////////////////////////////////////////... | 30.900709 | 132 | 0.42162 | Terryhata6 |
83c38e7f88d915e765e0eda3eb935355c4f07b9c | 45,853 | cxx | C++ | osprey/be/cg/localize.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/localize.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/localize.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2009-2010 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
... | 30.877441 | 124 | 0.626524 | sharugupta |
83c3a62f55fdc12023dc5f97bc445a426678a92d | 6,920 | cpp | C++ | src/rtcbase/logging.cpp | ZhaoJianliuser/libice | 7ba9134dab11f0c0d9f95c19889b679b90bd4541 | [
"BSD-3-Clause"
] | 20 | 2018-11-29T09:32:43.000Z | 2021-01-15T07:06:12.000Z | src/rtcbase/logging.cpp | ZhaoJianliuser/libice | 7ba9134dab11f0c0d9f95c19889b679b90bd4541 | [
"BSD-3-Clause"
] | 1 | 2020-07-08T10:07:34.000Z | 2021-02-02T12:10:24.000Z | src/rtcbase/logging.cpp | ZhaoJianliuser/libice | 7ba9134dab11f0c0d9f95c19889b679b90bd4541 | [
"BSD-3-Clause"
] | 12 | 2018-12-08T14:44:01.000Z | 2021-09-06T11:07:24.000Z | /*
* Copyright (c) 2018 str2num. All Rights Reserved.
* Copyright (c) 2011, The WebRTC project authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
/**
* @file logging.cpp
* @author str2... | 26.718147 | 84 | 0.607948 | ZhaoJianliuser |
83c4b6c961a7225c55fde47f0bdf7033b4937814 | 9,231 | cpp | C++ | test_https/test_https/test_https.cpp | lasellers/IntrafoundationTCPClient | 4e9b9666b914d229335ef534972a94594e93be2b | [
"Intel",
"DOC",
"NTP",
"Unlicense"
] | null | null | null | test_https/test_https/test_https.cpp | lasellers/IntrafoundationTCPClient | 4e9b9666b914d229335ef534972a94594e93be2b | [
"Intel",
"DOC",
"NTP",
"Unlicense"
] | null | null | null | test_https/test_https/test_https.cpp | lasellers/IntrafoundationTCPClient | 4e9b9666b914d229335ef534972a94594e93be2b | [
"Intel",
"DOC",
"NTP",
"Unlicense"
] | null | null | null | // test_https.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
/*
// harness_https.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "windows.h"
#include "stdio.h"
// _open file handling
... | 21.368056 | 123 | 0.433756 | lasellers |
83c5102a00e32876364242681de0063079cd2aa7 | 1,242 | cpp | C++ | src/cpu/operands/RegisterOperand.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | src/cpu/operands/RegisterOperand.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | src/cpu/operands/RegisterOperand.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | #include "RegisterOperand.h"
#include "cpu/Cpu.h"
namespace emu::cpu {
template <typename T>
RegisterOperand<T>::RegisterOperand(Cpu& cpu, size_t idx)
: cpu_{cpu}, idx_{idx} {}
template <typename T>
T RegisterOperand<T>::r() const noexcept {
return cpu_.regs_.reg<T>(idx_);
}
template <typename T>
void Regist... | 17.492958 | 61 | 0.590177 | ammubhave |
83c8626ea943b693d0b233bc9dfefc633a7aad5c | 569 | cpp | C++ | FootCommander.cpp | ElielGez/wargame-b | d410d78f369e8aced18ef350cf2121609dd260b5 | [
"MIT"
] | null | null | null | FootCommander.cpp | ElielGez/wargame-b | d410d78f369e8aced18ef350cf2121609dd260b5 | [
"MIT"
] | null | null | null | FootCommander.cpp | ElielGez/wargame-b | d410d78f369e8aced18ef350cf2121609dd260b5 | [
"MIT"
] | null | null | null | #include "FootCommander.hpp"
#include "Board.hpp"
void FootCommander::action(Board &board, pair<int, int> location) {
FootSoldier::action(board, location); // super
vector<pair<Soldier *, pair<int, int>>> soldiers = board.getCommanderSodliers(FOOT_SOLDIER, player_num);
for (int i = 0; i < soldiers.size(); ... | 37.933333 | 108 | 0.673111 | ElielGez |
83c8694baa7840589c7d4e20637dba9a8c814639 | 9,093 | hpp | C++ | src/rynx/audio/dsp/signal.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | 11 | 2019-08-19T08:44:14.000Z | 2020-09-22T20:04:46.000Z | src/rynx/audio/dsp/signal.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | src/rynx/audio/dsp/signal.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | #pragma once
#include <rynx/audio/dsp/fft.hpp>
#include <vector>
#include <iostream>
#include <valarray>
#include <cassert>
static void loadingPrint(size_t step, size_t max, size_t howMany = 10) {
if (howMany * (step) / max != howMany * (step - 1) / max)
std::cerr << "." << std::flush;
}
class Chunk {
private:
... | 27.224551 | 128 | 0.623227 | Apodus |
83cb53cf4dbbc592e1fcd93f845ab43cf601f768 | 14,493 | cpp | C++ | shared/EasySampler.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 339 | 2018-01-09T13:12:38.000Z | 2022-03-22T21:25:59.000Z | shared/EasySampler.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 474 | 2018-01-01T18:58:41.000Z | 2022-03-27T11:09:44.000Z | shared/EasySampler.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 77 | 2018-01-24T11:47:04.000Z | 2022-03-30T12:25:59.000Z | #include "stdafx.h"
#include "EasySampler.h"
#include <assert.h>
#include <math.h>
//#define DEBUG_EASYSAMPLER
#ifdef DEBUG_EASYSAMPLER
#include <hlsdk.h>
#include <hooks/HookHw.h>
#endif
// EasyByteSampler /////////////////////////////////////////////////////////////
EasyByteSampler::EasyByteSa... | 20.26993 | 158 | 0.624853 | markusforss |
83dd55346e533a31975fdeafe06dbe90104e4bdc | 4,935 | hh | C++ | src/QDecSingle.hh | semihc/qdecimal | 4b580047d24f1ab7dc5e2047c75320f707b2f8fb | [
"X11",
"ICU"
] | 21 | 2015-11-21T21:59:09.000Z | 2021-10-03T21:29:37.000Z | src/QDecSingle.hh | semihc/qdecimal | 4b580047d24f1ab7dc5e2047c75320f707b2f8fb | [
"X11",
"ICU"
] | 5 | 2016-02-02T12:54:56.000Z | 2017-07-27T17:20:28.000Z | src/QDecSingle.hh | semihc/qdecimal | 4b580047d24f1ab7dc5e2047c75320f707b2f8fb | [
"X11",
"ICU"
] | 10 | 2016-06-06T15:53:54.000Z | 2022-03-28T00:32:12.000Z | #ifndef QDECSINGLE_HH
#define QDECSINGLE_HH
/** \file QDecSingle.hh
* Declarations for the class QDecSingle.
*
* (C) Copyright by Semih Cemiloglu
* All rights reserved, see COPYRIGHT file for details.
*
* $Id$
*
*
*/
#include <QByteArray>
#include <QMetaType>
#include "QDecFwd.hh"
#include "QDecContext.hh"... | 24.552239 | 76 | 0.700709 | semihc |
83e04e74cc41baa92ee130e9d12d2461ed2bd6c4 | 15,284 | cpp | C++ | core/debugger/scanner.cpp | pancakevirus/objeck-lang | 48302f2fcf47b2aaa478caf6acd13f9c65ae96af | [
"Zlib",
"OpenSSL"
] | 73 | 2015-02-26T22:30:47.000Z | 2022-03-06T22:42:02.000Z | core/debugger/scanner.cpp | pancakevirus/objeck-lang | 48302f2fcf47b2aaa478caf6acd13f9c65ae96af | [
"Zlib",
"OpenSSL"
] | 50 | 2015-03-01T22:13:17.000Z | 2022-03-17T16:24:17.000Z | core/debugger/scanner.cpp | pancakevirus/objeck-lang | 48302f2fcf47b2aaa478caf6acd13f9c65ae96af | [
"Zlib",
"OpenSSL"
] | 4 | 2015-10-22T20:44:47.000Z | 2022-02-12T03:35:54.000Z | /**************************************************************************
* Debugger scanner.
*
* Copyright (c) 2010-2013 Randy Hollines
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... | 24.532905 | 95 | 0.527283 | pancakevirus |
83e32171df1355452a7f5f7449adac0c95b3a446 | 10,248 | cpp | C++ | Assembly Workbench/MLINKER.cpp | DebugBSD/Assembly-Workbench | c41172eab063ccec64016908688f3a33a43f2e26 | [
"BSD-3-Clause"
] | 5 | 2020-05-25T15:33:39.000Z | 2021-07-07T08:47:45.000Z | Assembly Workbench/MLINKER.cpp | DebugBSD/Assembly-Workbench | c41172eab063ccec64016908688f3a33a43f2e26 | [
"BSD-3-Clause"
] | null | null | null | Assembly Workbench/MLINKER.cpp | DebugBSD/Assembly-Workbench | c41172eab063ccec64016908688f3a33a43f2e26 | [
"BSD-3-Clause"
] | 2 | 2020-05-30T11:07:10.000Z | 2022-01-11T16:55:43.000Z | /*
* BSD 3-Clause License
*
* Copyright (c) 2020, DebugBSD
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,... | 52.285714 | 442 | 0.602459 | DebugBSD |
83e3524bdd643e506ffc741dfab920aade2e1106 | 972 | hpp | C++ | StringForge.Test/classtest/rhsusf_c_weapons/rhsusf_weap_pistols.hpp | Freddo3000/StringForge | f601f0e1eaf3ec1330230c46c0ce9ef3aa08262a | [
"MIT"
] | 8 | 2015-03-16T16:21:14.000Z | 2021-08-03T17:02:22.000Z | StringForge.Test/classtest/rhsusf_c_weapons/rhsusf_weap_pistols.hpp | Freddo3000/StringForge | f601f0e1eaf3ec1330230c46c0ce9ef3aa08262a | [
"MIT"
] | 37 | 2015-02-08T14:41:47.000Z | 2020-06-16T13:29:31.000Z | StringForge.Test/classtest/rhsusf_c_weapons/rhsusf_weap_pistols.hpp | Freddo3000/StringForge | f601f0e1eaf3ec1330230c46c0ce9ef3aa08262a | [
"MIT"
] | 4 | 2015-07-13T15:00:29.000Z | 2020-06-04T19:15:55.000Z | class hgun_ACPC2_F;
class rhsusf_weap_m1911a1: hgun_ACPC2_F
{
Author_Macro
scope = 2;
displayName = "$STR_RHS_CFGWEAPONS_PISTOL_M1911A1";
model = "\rhsusf\addons\rhsusf_weapons\pistols\M1911A1\rhs_m1911a1";
modelOptics = "-";
picture = "\rhsusf\addons\rhsusf_weapons\icons\p_m1911a1_ca.paa";
minR... | 23.707317 | 86 | 0.652263 | Freddo3000 |
83e3ce4c46a7b118200c474d6cd8a5632faf6637 | 275 | hpp | C++ | source/FileReader.hpp | acodcha/ti4-echelon | 7849a2e50262cebd915c3eb54de1230ccf8791a8 | [
"MIT"
] | null | null | null | source/FileReader.hpp | acodcha/ti4-echelon | 7849a2e50262cebd915c3eb54de1230ccf8791a8 | [
"MIT"
] | null | null | null | source/FileReader.hpp | acodcha/ti4-echelon | 7849a2e50262cebd915c3eb54de1230ccf8791a8 | [
"MIT"
] | null | null | null | #pragma once
#include "File.hpp"
namespace TI4Echelon {
/// \brief General-purpose file reader.
class FileReader : public File<std::ifstream> {
protected:
FileReader(const std::filesystem::path& path) : File(path) {}
}; // class FileReader
} // namespace TI4Echelon
| 16.176471 | 63 | 0.709091 | acodcha |
83eb0aa54c58d650edcf64a23b62ac7343e0fcfd | 1,079 | cpp | C++ | uva/10082.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | uva/10082.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | uva/10082.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
... | 19.981481 | 78 | 0.451344 | partho222 |
83ef7d2f3c71450ba226702d4fc4d6de19674be8 | 3,009 | cpp | C++ | toolbox/n-queens/n-queens.cpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 33 | 2015-04-09T14:14:25.000Z | 2022-03-27T08:55:58.000Z | toolbox/n-queens/n-queens.cpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 28 | 2015-03-13T14:21:33.000Z | 2019-04-02T07:59:34.000Z | toolbox/n-queens/n-queens.cpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 9 | 2015-04-22T18:10:51.000Z | 2021-08-06T12:44:12.000Z | #include <metaSMT/DirectSolver_Context.hpp>
#include <metaSMT/backend/Boolector.hpp>
#include <metaSMT/support/cardinality.hpp>
#include <metaSMT/support/run_algorithm.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/format.hpp>
#include <boost/foreach.hpp>
using namespace metaSMT;
using namespace metaSMT::logi... | 18.80625 | 71 | 0.548687 | finnhaedicke |
83f128c8fcc6bebff9912b1174dbe5305a4476bf | 2,490 | hpp | C++ | benchmark/vector/push.hpp | ikrima/immer | 2076affd9d814afc019ba8cd8c2b18a6c79c9589 | [
"BSL-1.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | benchmark/vector/push.hpp | ikrima/immer | 2076affd9d814afc019ba8cd8c2b18a6c79c9589 | [
"BSL-1.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | benchmark/vector/push.hpp | ikrima/immer | 2076affd9d814afc019ba8cd8c2b18a6c79c9589 | [
"BSL-1.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | //
// immer: immutable data structures for C++
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#pragma once
#include "benchmark/vector/common.hp... | 22.232143 | 78 | 0.512851 | ikrima |
83fda3319af731843483dedbc5c176f10e22a088 | 3,396 | cpp | C++ | UsdShellExtension/UWPProgressBar.cpp | pmintus/USDShellExtension | 33b89d2f38694dfbd98dc321aaa1865c774d2a66 | [
"BSL-1.0"
] | 260 | 2021-06-08T21:16:32.000Z | 2022-03-31T08:57:20.000Z | UsdShellExtension/UWPProgressBar.cpp | pmintus/USDShellExtension | 33b89d2f38694dfbd98dc321aaa1865c774d2a66 | [
"BSL-1.0"
] | 3 | 2021-06-14T22:20:46.000Z | 2021-09-23T20:17:00.000Z | UsdShellExtension/UWPProgressBar.cpp | pmintus/USDShellExtension | 33b89d2f38694dfbd98dc321aaa1865c774d2a66 | [
"BSL-1.0"
] | 16 | 2021-06-08T23:36:57.000Z | 2022-02-21T20:09:34.000Z | // Copyright 2021 Activision Publishing, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 27.387097 | 131 | 0.694052 | pmintus |
8600e8a7f75bc1a657995605b0801b46548a98a9 | 527 | cpp | C++ | Codeforces Online Judge Solve/I-am-bored-with-life.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/I-am-bored-with-life.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/I-am-bored-with-life.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | /*
Author: Remon Hasan
University of Asia Pacific
Problem: CF-Round 422-Div2-A
*/
#include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
#define ll long long int
int main ()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
/*
#ifndef ONLINE_JUDGE
freop... | 17.566667 | 40 | 0.533207 | Remonhasan |
860282af5e646823c513a2ac50030e105cd243e7 | 4,571 | cpp | C++ | Engine/source/collision/objPolyList.cpp | RichardRanft/OmniEngine.Net | 3363364e8c4514d5ef18574ce2200368e5946df4 | [
"MIT",
"Unlicense"
] | 1 | 2015-01-21T06:12:21.000Z | 2015-01-21T06:12:21.000Z | Engine/source/collision/objPolyList.cpp | lukaspj/OmniEngine.Net | 85edaa3e8afbb016352ce5784147cb9fe5fe35c1 | [
"MIT",
"Unlicense"
] | null | null | null | Engine/source/collision/objPolyList.cpp | lukaspj/OmniEngine.Net | 85edaa3e8afbb016352ce5784147cb9fe5fe35c1 | [
"MIT",
"Unlicense"
] | null | null | null | #ifdef TORQUE_WALKABOUT_EXTRAS_ENABLED
//-----------------------------------------------------------------------------
// Copyright (c) 2012 Daniel Buckmaster
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
//... | 24.44385 | 97 | 0.636622 | RichardRanft |
86097b8ac9d9e271ce9f8956e08cc239687a1bc9 | 9,149 | cpp | C++ | Game/Scorpio/src/ScorpioHardwareAnimation.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Scorpio/src/ScorpioHardwareAnimation.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Scorpio/src/ScorpioHardwareAnimation.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "ScorpioPrerequisites.h"
#include <OgreEntity.h>
#include <OgreSubEntity.h>
#include <OgreMesh.h>
#include <OgreSubMesh.h>
#include <OgreMaterial.h>
#include <OgreTechnique.h>
#include <OgrePass.h>
#include <OgreTextureUnitState.h>
#include <OgreMaterialManager.h>
#include <OgreGpuProgram.h>
#include <OgreGpu... | 42.356481 | 144 | 0.601705 | hackerlank |
860be527b85839386c5929f451b994fc343f2ad2 | 1,136 | hpp | C++ | mvo/src/algorithms/EpipolarGeometry.hpp | FranekStark/monocular-visual-odometry | 5d76ec3f956c82942bf77a954c6862c0f41408bd | [
"MIT"
] | null | null | null | mvo/src/algorithms/EpipolarGeometry.hpp | FranekStark/monocular-visual-odometry | 5d76ec3f956c82942bf77a954c6862c0f41408bd | [
"MIT"
] | null | null | null | mvo/src/algorithms/EpipolarGeometry.hpp | FranekStark/monocular-visual-odometry | 5d76ec3f956c82942bf77a954c6862c0f41408bd | [
"MIT"
] | null | null | null | #ifndef EPIPOLAR_GEOMETRY_HPP
#define EPIPOLAR_GEOMETRY_HPP
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <image_geometry/pinhole_camera_model.h>
#include <boost/math/special_functions/binomial.hpp>
#include <cmath>
#include <random>
class EpipolarGeometry {
private:
const double PI;
/*R... | 25.244444 | 110 | 0.726232 | FranekStark |
860ed8d843b198ca9a7ab790df4e9c28f30bd92f | 255 | cpp | C++ | src/GenericException.cpp | qqwertyui/Imger | 735c50d62395bb04f62ad425b4d92ac0f1d9e596 | [
"MIT"
] | null | null | null | src/GenericException.cpp | qqwertyui/Imger | 735c50d62395bb04f62ad425b4d92ac0f1d9e596 | [
"MIT"
] | null | null | null | src/GenericException.cpp | qqwertyui/Imger | 735c50d62395bb04f62ad425b4d92ac0f1d9e596 | [
"MIT"
] | null | null | null | #include "GenericException.hpp"
GenericException::GenericException(const char *msg, int code) {
this->msg = msg;
this->code = code;
}
const char *GenericException::what() { return this->msg; }
int GenericException::get_code() { return this->code; } | 25.5 | 63 | 0.713725 | qqwertyui |
86121b1bc8078523b091759210a470117e40c19d | 894 | cpp | C++ | src/URI_2062 - (4660928) - Accepted.cpp | miguelarauj1o/UOJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 80 | 2015-01-07T01:18:40.000Z | 2021-05-04T15:23:18.000Z | src/URI_2062 - (4660928) - Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 1 | 2019-01-07T01:13:32.000Z | 2019-01-07T01:13:32.000Z | src/URI_2062 - (4660928) - Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 28 | 2015-03-05T11:53:23.000Z | 2020-07-05T15:50:42.000Z | #include <iostream>
#include <cstring>
using namespace std;
int main(int argc, char const *argv[]) {
int n;
string s;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
if (s.length() == 3) {
if (s[0] == 'U' && s[1] == 'R') cout << "URI";
else if (s[0] == 'O' && s[1] == 'B') cout << "OBI";
... | 17.529412 | 55 | 0.422819 | miguelarauj1o |
8617dc65c9038e76399f0f1dc23ba475628e236c | 4,096 | cpp | C++ | src/hydro/srcterms/rotating_system_srcterms.cpp | kahoooo/athena-public | 583aee106677cba7fa5ea4e3689e2cfb81796e25 | [
"BSD-3-Clause"
] | 53 | 2021-05-10T19:37:52.000Z | 2022-03-27T22:21:14.000Z | src/hydro/srcterms/rotating_system_srcterms.cpp | kahoooo/athena-public | 583aee106677cba7fa5ea4e3689e2cfb81796e25 | [
"BSD-3-Clause"
] | 34 | 2021-05-10T17:49:25.000Z | 2022-03-28T02:54:24.000Z | src/hydro/srcterms/rotating_system_srcterms.cpp | kahoooo/athena-public | 583aee106677cba7fa5ea4e3689e2cfb81796e25 | [
"BSD-3-Clause"
] | 34 | 2021-05-15T14:53:29.000Z | 2022-03-14T13:12:10.000Z | //======================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//=================================... | 43.574468 | 88 | 0.493408 | kahoooo |
861a13b3183b54abb66e680ad2c118e41be9d8c4 | 1,234 | cpp | C++ | ccc-2017/q2.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | ccc-2017/q2.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | ccc-2017/q2.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
void printArr(int arr[], int length) {
for (int i = 0; i < length; i++) {
cout << arr[i] << " ";
}
cout << endl;
}
int main() {
int N;
cin >> N;
int measurements[N];
int solution[N];
for (int i = 0; i < N; i++) ... | 24.68 | 87 | 0.430308 | dvychen |
861e02bfcecb67c315cda624c505f110aaab85b0 | 3,670 | cpp | C++ | tests/unit/src/periodic_test.cpp | karel-burda/timers | 1fc15f5426cfd38df6b3977b65b3557479748055 | [
"MIT"
] | 2 | 2019-01-04T08:16:03.000Z | 2019-12-29T02:07:01.000Z | tests/unit/src/periodic_test.cpp | karel-burda/timers | 1fc15f5426cfd38df6b3977b65b3557479748055 | [
"MIT"
] | 63 | 2018-04-18T12:25:13.000Z | 2019-06-26T20:26:57.000Z | tests/unit/src/periodic_test.cpp | karel-burda/timers | 1fc15f5426cfd38df6b3977b65b3557479748055 | [
"MIT"
] | 1 | 2018-05-12T21:10:05.000Z | 2018-05-12T21:10:05.000Z | #include <future>
#include <thread>
#include <gtest/gtest.h>
// deliberately in this place ahead of following includes
#include <test_utils/make_all_members_public.hpp>
#include <test_utils/lifetime.hpp>
#include <test_utils/mutex.hpp>
#include <test_utils/statics.hpp>
#include <test_utils/xor.hpp>
#include <timers/... | 25.664336 | 125 | 0.689101 | karel-burda |
86225b0ca4b418a6a14e4c1a2642003a7c0edf74 | 976 | hpp | C++ | android-28/android/util/SparseIntArray.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/util/SparseIntArray.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-28/android/util/SparseIntArray.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
class JObject;
class JString;
namespace android::util
{
class SparseIntArray : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit SparseIntArray(const char *className, const char *sig, Ts...agv) : JObject(className, sig, st... | 23.804878 | 155 | 0.699795 | YJBeetle |
86243cfce5ae9c138d713aaccbc72c56f7acf5df | 593 | hpp | C++ | common/imgutils/combine.impl.hpp | jeffreyforkfolder/lecture-demos | 0a0a2eecc45fe91520c0960a76d1d39841a6f0cb | [
"BSD-3-Clause"
] | null | null | null | common/imgutils/combine.impl.hpp | jeffreyforkfolder/lecture-demos | 0a0a2eecc45fe91520c0960a76d1d39841a6f0cb | [
"BSD-3-Clause"
] | 1 | 2019-10-28T14:26:40.000Z | 2019-10-28T14:26:40.000Z | common/imgutils/combine.impl.hpp | jeffreyforkfolder/lecture-demos | 0a0a2eecc45fe91520c0960a76d1d39841a6f0cb | [
"BSD-3-Clause"
] | null | null | null | //Image combination functions (template implementations)
// Andreas Unterweger, 2016-2018
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#include "common.hpp"
//#include "combine.hpp"
namespace imgutils
{
using namespace std;
using namespace cv;
using namespace comu... | 25.782609 | 177 | 0.745363 | jeffreyforkfolder |
86284488ec8866d53e518b7c3ab214f801b2e1ed | 1,398 | cpp | C++ | Implementation/ Happy Ladybugs.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | Implementation/ Happy Ladybugs.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | Implementation/ Happy Ladybugs.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | /*
****************************************************************
****************************************************************
-> Coded by Stavros Chryselis
-> Visit my github for more solved problems over multiple sites
-> https://github.com/StavrosChryselis
-> Feel free to email me at stavrikios@gm... | 13.841584 | 64 | 0.427039 | StavrosChryselis |
862c9f12a35707ef39924f0e7ea152e6d3cc1a2d | 743 | cpp | C++ | Contributor Corner/Ishita/linked list/get_middle.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 39 | 2020-11-01T13:58:48.000Z | 2021-02-12T08:39:37.000Z | Contributor Corner/Ishita/linked list/get_middle.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 86 | 2020-09-25T07:20:40.000Z | 2021-02-18T20:36:29.000Z | Contributor Corner/Ishita/linked list/get_middle.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 43 | 2020-12-18T03:32:42.000Z | 2021-02-19T18:08:19.000Z |
#include<stdio.h>
#include<stdlib.h>
typedef struct node
{
int data;
struct node *next;
}node;
int getMiddle(node *head)
{
int c=0;
node*b=head;
while(b!=NULL)
{
c++;
b=b->next;
}
c=c/2;
while(c--)
{
head=head->next;
}
return head->data;
}
int main()
{
int a,n;
node *p,*q,*head;
printf("Ent... | 12.810345 | 43 | 0.531629 | hitu1304 |
863032ac5d0e7e55391af2fe8eaefe0835be5eb4 | 3,625 | cpp | C++ | modules/core/src/parallelFilter.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/core/src/parallelFilter.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/core/src/parallelFilter.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 Simon Vogl <svogl@voxel.at>
Angel Merino-Sastre <amerino@voxel.at>
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/licen... | 24.006623 | 88 | 0.623172 | voxel-dot-at |
86305fe4cf199e296e081bc5557a2394661d39bd | 3,034 | cpp | C++ | NA3/hmcl/qt/gui/ProfileChannelWidget.cpp | ScignScape-RZ/ntxh | 8e3fe51f5e9071fb24b41586b5151576a932dd1b | [
"BSL-1.0"
] | null | null | null | NA3/hmcl/qt/gui/ProfileChannelWidget.cpp | ScignScape-RZ/ntxh | 8e3fe51f5e9071fb24b41586b5151576a932dd1b | [
"BSL-1.0"
] | null | null | null | NA3/hmcl/qt/gui/ProfileChannelWidget.cpp | ScignScape-RZ/ntxh | 8e3fe51f5e9071fb24b41586b5151576a932dd1b | [
"BSL-1.0"
] | null | null | null | // // license___here
#include "ProfileChannelWidget.h"
ProfileChannelWidget::ProfileChannelWidget(MainWindow* mw)
: mw_(mw)
{
setMargin(0);
main_layout_ = new QVBoxLayout;
isUpdating_ = false;
tableDatasets_ = new QTableWidget;
paneProfile_ = new ProfilePane; //
tableDatasets.setColumnCount(1);
tableDa... | 27.581818 | 130 | 0.782795 | ScignScape-RZ |
8631d007d52cecffba53f779491a6e1411dfa960 | 2,591 | hpp | C++ | metro/include/metro/concurrency/threadpool.hpp | gavinband/qctool | 8d8adb45151c91f953fe4a9af00498073b1132ba | [
"BSL-1.0"
] | 3 | 2021-04-21T05:42:24.000Z | 2022-01-26T14:59:43.000Z | metro/include/metro/concurrency/threadpool.hpp | gavinband/qctool | 8d8adb45151c91f953fe4a9af00498073b1132ba | [
"BSL-1.0"
] | 2 | 2020-04-09T16:11:04.000Z | 2020-11-10T11:18:56.000Z | metro/include/metro/concurrency/threadpool.hpp | gavinband/qctool | 8d8adb45151c91f953fe4a9af00498073b1132ba | [
"BSL-1.0"
] | null | null | null |
// Copyright Gavin Band 2008 - 2012.
// 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 METRO_REGRESSION_CONCURRENCY_THREADPOOL_HPP
#define METRO_REGRESSION_CONCURRENCY_THREADPOOL_HPP
... | 27.860215 | 124 | 0.691239 | gavinband |
8633a117e49df2a1e2c1bde2ab4a401279c31251 | 2,244 | cc | C++ | igraph/src/infomap_Node.cc | alpmestan/haskell-igraph | 3c9dc79ff4de2ad7060ff3a527a774dff3aa6f4a | [
"MIT"
] | 8 | 2017-07-22T21:49:37.000Z | 2021-02-24T20:57:15.000Z | igraph/src/infomap_Node.cc | alpmestan/haskell-igraph | 3c9dc79ff4de2ad7060ff3a527a774dff3aa6f4a | [
"MIT"
] | 4 | 2018-05-22T17:48:16.000Z | 2021-03-16T20:23:23.000Z | igraph/src/infomap_Node.cc | kaizhang/haskell-igraph | d790e030e6e08b04dc0971221b6054d6700d82e7 | [
"MIT"
] | 3 | 2017-09-08T07:49:21.000Z | 2021-04-26T13:00:56.000Z | /* -*- mode: C -*- */
/* vim:set ts=4 sw=4 sts=4 et: */
/*
IGraph library.
Copyright (C) 2011-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License... | 30.739726 | 71 | 0.660873 | alpmestan |
86360ace0ad6a76394deb93017ec3fd9c0270073 | 1,255 | cpp | C++ | week10/w10d0/isPAth.cpp | ash20012003/IPMPRepo | 3d288e8ab1c1a25113c45e983da7f7e780ff66d4 | [
"MIT"
] | 2 | 2021-11-13T05:41:49.000Z | 2022-02-06T16:12:56.000Z | week10/w10d0/isPAth.cpp | ash20012003/IPMPRepo | 3d288e8ab1c1a25113c45e983da7f7e780ff66d4 | [
"MIT"
] | null | null | null | week10/w10d0/isPAth.cpp | ash20012003/IPMPRepo | 3d288e8ab1c1a25113c45e983da7f7e780ff66d4 | [
"MIT"
] | null | null | null | bool Graph::isReachable(int s, int d)
{
// Base case
if (s == d)
return true;
// Mark all the vertices as not visited
bool *visited = new bool[V];
for (int i = 0; i < V; i++)
visited[i] = false;
// Create a queue for BFS
list<int> queue;
// Mark the current node as vi... | 25.1 | 67 | 0.508367 | ash20012003 |
8638efd2c35d1f9bcf273cad9de9a86973125410 | 17,383 | cc | C++ | a2-2test/DBFile.cc | sanjay105/Database-Implementation | b311548a25c722996eb88c07d8600a3a06c772f6 | [
"MIT"
] | 1 | 2021-12-07T15:52:43.000Z | 2021-12-07T15:52:43.000Z | a2-2test/DBFile.cc | sanjay105/Database-Implementation | b311548a25c722996eb88c07d8600a3a06c772f6 | [
"MIT"
] | null | null | null | a2-2test/DBFile.cc | sanjay105/Database-Implementation | b311548a25c722996eb88c07d8600a3a06c772f6 | [
"MIT"
] | null | null | null | #include "TwoWayList.h"
#include "Record.h"
#include "Schema.h"
#include "File.h"
#include "Comparison.h"
#include "ComparisonEngine.h"
#include "DBFile.h"
#include "Defs.h"
#include <bits/stdc++.h>
#include <string.h>
using namespace std;
// Heap File Constructor
HeapDBFile :: HeapDBFile(){
curFile = new File();
... | 29.363176 | 101 | 0.599494 | sanjay105 |
863fc9a28a5b89d0353d2747fcd2bcc53ec1cd40 | 272 | cpp | C++ | 02_if else/I_05_oddeven.cpp | CodeMacrocosm/CPP-BOOK | 47aa0c9f83585b1923a523f81a8d2d49663c773c | [
"MIT"
] | 7 | 2021-05-18T08:17:11.000Z | 2021-10-02T18:22:04.000Z | 02_if else/I_05_oddeven.cpp | karr007/CPP-BOOK | 77d213517e67d1c4a555485398911449a9ce4f19 | [
"MIT"
] | null | null | null | 02_if else/I_05_oddeven.cpp | karr007/CPP-BOOK | 77d213517e67d1c4a555485398911449a9ce4f19 | [
"MIT"
] | 6 | 2021-05-18T08:17:21.000Z | 2022-01-25T07:28:53.000Z | //author :shreyamalogi
/*
check if it odd or even using
if lese statements
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
if(n%2!=0)
cout<<"odd"<<endl;
else
cout<<"even"<<endl;
return 0;
}
| 9.714286 | 31 | 0.529412 | CodeMacrocosm |
86425beb0dc008ace23236c5ff8c9df89a4645c8 | 9,331 | cpp | C++ | src/cpp/transport/custom/CustomAgent.cpp | ruimscarvalho98/Micro-XRCE-DDS-Agent | 08db5e9ff04e6f75974c948f609ca8e5efadcc13 | [
"Apache-2.0"
] | null | null | null | src/cpp/transport/custom/CustomAgent.cpp | ruimscarvalho98/Micro-XRCE-DDS-Agent | 08db5e9ff04e6f75974c948f609ca8e5efadcc13 | [
"Apache-2.0"
] | null | null | null | src/cpp/transport/custom/CustomAgent.cpp | ruimscarvalho98/Micro-XRCE-DDS-Agent | 08db5e9ff04e6f75974c948f609ca8e5efadcc13 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021-present Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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
//
// U... | 28.021021 | 93 | 0.545815 | ruimscarvalho98 |
86426e628a78959883aff4882858965097da4f7d | 1,602 | cpp | C++ | leetcode/cpp/678.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | null | null | null | leetcode/cpp/678.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | null | null | null | leetcode/cpp/678.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | 2 | 2020-09-29T21:59:43.000Z | 2021-06-22T13:24:04.000Z | /*
* String + Stack
*
*/
class Solution {
public:
bool checkValidString(string s) {
stack<int> left, star;
int i = 0;
while(i < s.size()) {
if(s[i] == '(') {
left.push(i);
} else if (s[i] == '*') {
star.push(i);
} else {
... | 24.646154 | 59 | 0.600499 | xpharry |
86489d43aac0ef440ea5d92af758151d4aae40f6 | 2,444 | cxx | C++ | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Compat/Patches/2012_2/hkpPatches_2012_2.cxx | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Compat/Patches/2012_2/hkpPatches_2012_2.cxx | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Compat/Patches/2012_2/hkpPatches_2012_2.cxx | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... | 53.130435 | 251 | 0.802782 | aditgoyal19 |
864d07e87f0471a4ab46e6aab1c248731f4ae243 | 801 | hpp | C++ | irohad/consensus/yac/timer.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 31 | 2019-04-17T19:32:05.000Z | 2022-02-05T01:35:02.000Z | irohad/consensus/yac/timer.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 11 | 2016-10-13T10:09:55.000Z | 2019-06-13T08:49:11.000Z | irohad/consensus/yac/timer.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 12 | 2019-06-03T10:31:31.000Z | 2021-12-13T12:17:15.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_YAC_TIMER_HPP
#define IROHA_YAC_TIMER_HPP
#include <functional>
namespace iroha {
namespace consensus {
namespace yac {
/**
* Interface provide timer for yac implementation
*/... | 21.648649 | 73 | 0.59176 | akshatkarani |
8651dc53edea13b815806793e7ab11cba91e2db6 | 50,893 | cpp | C++ | sdl2/Pacman2/njamgame.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/Pacman2/njamgame.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/Pacman2/njamgame.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | //-----------------------------------------------------------------------------
// Filename: njamgame.cpp
// Created: 31. May 2003. by Milan Babuskov
//
// Purpose: Manage game logic & run the game
// Handle keyboard
// Render game objects
//
// This file implements methods of NjamEngine class
// which are def... | 30.695416 | 117 | 0.489832 | pdpdds |
865cadf50f96c546a1a7d96a11a46f71b22e574e | 508 | cc | C++ | src/instance.cc | growly/boralago | 66e0a579e2bec5a78ff3ca90c2b40bbf16c942fb | [
"BSD-4-Clause-UC"
] | 3 | 2021-03-08T20:12:26.000Z | 2021-07-28T02:23:40.000Z | src/instance.cc | growly/boralago | 66e0a579e2bec5a78ff3ca90c2b40bbf16c942fb | [
"BSD-4-Clause-UC"
] | 1 | 2021-04-15T19:25:45.000Z | 2021-04-15T20:39:13.000Z | src/instance.cc | growly/boralago | 66e0a579e2bec5a78ff3ca90c2b40bbf16c942fb | [
"BSD-4-Clause-UC"
] | null | null | null | #include "instance.h"
#include <utility>
#include <glog/logging.h>
#include "cell.h"
namespace boralago {
const std::pair<Point, Point> Instance::GetBoundingBox() const {
LOG_IF(FATAL, template_cell_ == nullptr)
<< "Why does this Instance object have no template_cell set?";
std::pair<Point, Point> templa... | 24.190476 | 73 | 0.692913 | growly |
8660b4804eea91dd08a4ea320529825df870d133 | 9,250 | cpp | C++ | carto/google_tsp.cpp | mpthomas/Draw-Bot | 83bb7d755f805ae7f1a7b2fa9053c0882bc20b35 | [
"Apache-2.0"
] | null | null | null | carto/google_tsp.cpp | mpthomas/Draw-Bot | 83bb7d755f805ae7f1a7b2fa9053c0882bc20b35 | [
"Apache-2.0"
] | null | null | null | carto/google_tsp.cpp | mpthomas/Draw-Bot | 83bb7d755f805ae7f1a7b2fa9053c0882bc20b35 | [
"Apache-2.0"
] | null | null | null | // Copyright 2010-2017 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 38.065844 | 113 | 0.56973 | mpthomas |
86632adc4e400d20dff2b76993fb8c01faa51017 | 108 | hpp | C++ | include/Screeps/JSON.hpp | UltraCoderRU/screepsxx | b249748d28764f706c4a210fbbf6abfe8684c7a3 | [
"MIT"
] | 5 | 2021-06-12T22:27:27.000Z | 2022-01-02T18:38:46.000Z | include/Screeps/JSON.hpp | UltraCoderRU/screepsxx | b249748d28764f706c4a210fbbf6abfe8684c7a3 | [
"MIT"
] | 1 | 2021-06-17T22:44:26.000Z | 2022-02-02T00:48:35.000Z | include/Screeps/JSON.hpp | UltraCoderRU/screepsxx | b249748d28764f706c4a210fbbf6abfe8684c7a3 | [
"MIT"
] | null | null | null | #ifndef SCREEPS_JSON_HPP
#define SCREEPS_JSON_HPP
#include <nlohmann/json.hpp>
#endif // SCREEPS_JSON_HPP
| 15.428571 | 28 | 0.805556 | UltraCoderRU |
866460086cf43ff178694b6fd6b3d3fb0dca096b | 1,396 | cpp | C++ | src/NGFX/Test/ngfx_render_encoder.cpp | PixPh/kaleido3d | 8a8356586f33a1746ebbb0cfe46b7889d0ae94e9 | [
"MIT"
] | 38 | 2019-01-10T03:10:12.000Z | 2021-01-27T03:14:47.000Z | src/NGFX/Test/ngfx_render_encoder.cpp | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | null | null | null | src/NGFX/Test/ngfx_render_encoder.cpp | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | 8 | 2019-04-16T07:56:27.000Z | 2020-11-19T02:38:37.000Z | #include "base/test_gui.h"
#include <Windows.h>
class RenderEncoderApp : public test::App
{
private:
ngfxu::PresentLayer layer_;
ngfxu::CommandQueue queue_;
ngfxu::RenderPipeline render_pipeline_;
public:
RenderEncoderApp(k3d::String const& appName) : test::App(appName, 1600, 1080)
{
}
// for android
virtu... | 25.851852 | 90 | 0.734957 | PixPh |
8665cf490fbd0f0ece90e22df194147723628297 | 61 | hpp | C++ | src/boost_mpl_list_aux__preprocessed_plain_list40.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_list_aux__preprocessed_plain_list40.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_list_aux__preprocessed_plain_list40.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/list/aux_/preprocessed/plain/list40.hpp>
| 30.5 | 60 | 0.803279 | miathedev |
866889e1c5bead5767eaa322f36aedfaaeddf962 | 20,877 | cpp | C++ | sceneprocessor/source/layers/GBatchOptimizer.cpp | GPUPeople/vertex_batch_optimization | 46332cd9f576eb6a464a96d5214cbce7d0319a6b | [
"MIT"
] | 21 | 2018-07-14T23:02:06.000Z | 2022-03-17T17:18:17.000Z | sceneprocessor/source/layers/GBatchOptimizer.cpp | GPUPeople/vertex_batch_optimization | 46332cd9f576eb6a464a96d5214cbce7d0319a6b | [
"MIT"
] | 1 | 2020-08-19T12:39:17.000Z | 2020-08-19T12:39:17.000Z | sceneprocessor/source/layers/GBatchOptimizer.cpp | GPUPeople/vertex_batch_optimization | 46332cd9f576eb6a464a96d5214cbce7d0319a6b | [
"MIT"
] | null | null | null |
#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS 1
#include <cassert>
#include <stdint.h>
#include <vector>
#include <iostream>
#include <unordered_map>
#include <unordered_set>
#include <boost/heap/fibonacci_heap.hpp>
#include <boost/circular_buffer.hpp>
#include "VertexReuseStats.h"
#include "GBatc... | 31.066964 | 291 | 0.655075 | GPUPeople |
86688ab4cdd17e369bdbe0ce7c7199bb1ff39914 | 3,621 | cpp | C++ | src/RemotePhotoTool/SettingsDlg.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 16 | 2015-03-26T02:32:43.000Z | 2021-10-18T16:34:31.000Z | src/RemotePhotoTool/SettingsDlg.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 7 | 2019-02-21T06:07:09.000Z | 2022-01-01T10:00:50.000Z | src/RemotePhotoTool/SettingsDlg.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 6 | 2019-05-07T09:21:15.000Z | 2021-09-01T06:36:24.000Z | //
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2020 Michael Fink
//
/// \file SettingsDlg.cpp Settings dialog
//
// includes
#include "stdafx.h"
#include "resource.h"
#include "SettingsDlg.hpp"
#include "HuginInterface.hpp"
#include "PhotomatixInterface.hpp"
#include <ulib/Path.hpp>
Sett... | 26.625 | 116 | 0.702568 | vividos |
866aa0d9f2029c8c4398e118073ec553c16d7be9 | 1,487 | cpp | C++ | examples/Switch.System/EnumerableToArray/EnumerableToArray.cpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | examples/Switch.System/EnumerableToArray/EnumerableToArray.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | examples/Switch.System/EnumerableToArray/EnumerableToArray.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | #include <Switch/Switch>
using namespace System;
using namespace System::Collections::Generic;
using namespace System::Linq;
namespace Examples {
class Program {
class Package : public object {
public:
Package() {}
Package(const string& company, double weight) : company(company), weight(weight) ... | 26.553571 | 166 | 0.634163 | victor-timoshin |
8673c33487e519e54c1116f372832148f01b43cb | 4,660 | cxx | C++ | samples/offline_rendering_FBO.cxx | kanait/render | 8a982467cdbbb941fb5940bbbbe5e97f119e687a | [
"MIT"
] | 1 | 2021-07-04T09:14:20.000Z | 2021-07-04T09:14:20.000Z | samples/offline_rendering_FBO.cxx | kanait/render | 8a982467cdbbb941fb5940bbbbe5e97f119e687a | [
"MIT"
] | null | null | null | samples/offline_rendering_FBO.cxx | kanait/render | 8a982467cdbbb941fb5940bbbbe5e97f119e687a | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////
//
// $Id: offline_rendering_FBO.cxx 2021/06/01 01:03:32 kanai Exp $
//
// Copyright (c) 2004-2005 by Keio Research Institute at SFC
// All rights reserved.
//
////////////////////////////////////////////////////////////////////
#include "envDep.h"
... | 21.474654 | 118 | 0.545923 | kanait |
867ab4d83a431f1268fe5558a9b30a468dccd1cb | 2,460 | cpp | C++ | effect-master/button.cpp | DevLaika/raspberry-effects-pedal | 240a13e7ca794aead2075dd61d1d7eba2fe0e2dc | [
"MIT"
] | null | null | null | effect-master/button.cpp | DevLaika/raspberry-effects-pedal | 240a13e7ca794aead2075dd61d1d7eba2fe0e2dc | [
"MIT"
] | null | null | null | effect-master/button.cpp | DevLaika/raspberry-effects-pedal | 240a13e7ca794aead2075dd61d1d7eba2fe0e2dc | [
"MIT"
] | null | null | null | #include "button.h"
Button::Button(std::function<void()> *_actions[amt_states])
{
for (uint8_t i = 0; i < amt_states; i++)
{
actions[i] = _actions[i];
}
act();
};
void Button::eval()
{
if (pressed_previous != pressed)
{
pressed_previous = pressed;
if (pressed)
{
state = press;
}
... | 24.848485 | 197 | 0.619919 | DevLaika |
8680aae6db6c49760981e133491aadd9d01be5ff | 3,415 | hpp | C++ | sentutil/include/sentutil/object.hpp | surrealwaffle/thesurrealwaffle | 6937d8e2604628a5c9141feef837d89e81f68165 | [
"BSL-1.0"
] | 3 | 2018-07-20T23:04:45.000Z | 2021-07-09T04:16:42.000Z | sentutil/include/sentutil/object.hpp | surrealwaffle/thesurrealwaffle | 6937d8e2604628a5c9141feef837d89e81f68165 | [
"BSL-1.0"
] | null | null | null | sentutil/include/sentutil/object.hpp | surrealwaffle/thesurrealwaffle | 6937d8e2604628a5c9141feef837d89e81f68165 | [
"BSL-1.0"
] | 1 | 2018-07-21T06:32:13.000Z | 2018-07-21T06:32:13.000Z |
// Copyright surrealwaffle 2018 - 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <cstddef>
#include <array>
#include <limits>
#include <optional>... | 35.572917 | 88 | 0.640703 | surrealwaffle |
86823b7d263b1496da70c5c9633d5331cb458e69 | 1,343 | cpp | C++ | libraries/blockchain/transaction_record.cpp | jasonqin/bitshares1-core | b575445f31d9d5955414a178b9128fd1a423c3fa | [
"Unlicense"
] | 82 | 2015-01-04T21:11:35.000Z | 2015-06-08T17:53:49.000Z | libraries/blockchain/transaction_record.cpp | jasonqin/bitshares1-core | b575445f31d9d5955414a178b9128fd1a423c3fa | [
"Unlicense"
] | 428 | 2015-01-01T18:42:04.000Z | 2015-06-08T16:08:08.000Z | libraries/blockchain/transaction_record.cpp | jasonqin/bitshares1-core | b575445f31d9d5955414a178b9128fd1a423c3fa | [
"Unlicense"
] | 53 | 2015-01-05T02:31:30.000Z | 2015-06-05T18:50:57.000Z | #include <bts/blockchain/chain_interface.hpp>
#include <bts/blockchain/transaction_record.hpp>
namespace bts { namespace blockchain {
void transaction_record::sanity_check( const chain_interface& db )const
{ try {
FC_ASSERT( !trx.reserved.valid() );
FC_ASSERT( !trx.operations.empty() );
... | 38.371429 | 122 | 0.686523 | jasonqin |
868a7f2e5cdf722b9433eff73e74cb67fa7187b7 | 1,365 | cpp | C++ | 03-Simple-Engine-and-Scene/engine/Scene.cpp | NeroGames/Learn-SFML | 44e4e17b9af0eacf776f0d8bdbea869433224cff | [
"MIT"
] | null | null | null | 03-Simple-Engine-and-Scene/engine/Scene.cpp | NeroGames/Learn-SFML | 44e4e17b9af0eacf776f0d8bdbea869433224cff | [
"MIT"
] | null | null | null | 03-Simple-Engine-and-Scene/engine/Scene.cpp | NeroGames/Learn-SFML | 44e4e17b9af0eacf776f0d8bdbea869433224cff | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////
// Nero Game Engine - SFML Tutorials
// Copyright (c) 2021 Sanou A. K. Landry
////////////////////////////////////////////////////////////
///////////////////////////HEADERS//////////////////////////
//SFML
#include <SFML/Window/Event.hpp>
//Nero Games
#inclu... | 16.646341 | 60 | 0.440293 | NeroGames |
868d7056bcc55f1ad676646de3a9d9a82ede0014 | 2,475 | cpp | C++ | firmware/src/lib/spi_flash/block_device_api.cpp | rundb/dictofun | cc9d80da88819095ef0fdcdf816d976c2afa4eba | [
"Apache-2.0"
] | 6 | 2021-10-07T18:34:51.000Z | 2022-02-03T20:34:26.000Z | firmware/src/lib/spi_flash/block_device_api.cpp | rundb/dictofun | cc9d80da88819095ef0fdcdf816d976c2afa4eba | [
"Apache-2.0"
] | 29 | 2021-10-08T20:37:47.000Z | 2022-03-18T20:27:53.000Z | firmware/src/lib/spi_flash/block_device_api.cpp | rundb/dictofun | cc9d80da88819095ef0fdcdf816d976c2afa4eba | [
"Apache-2.0"
] | 2 | 2021-10-06T16:13:56.000Z | 2021-10-08T20:42:56.000Z | // SPDX-License-Identifier: Apache-2.0
/*
* Copyright (c) 2022, Roman Turkin
*/
#include "block_device_api.h"
#include "simple_fs.h"
#include "spi_flash.h"
#include <cstring>
namespace integration
{
static const size_t SPI_FLASH_PAGE_SIZE = 256;
static const size_t SPI_FLASH_SECTOR_SIZE = 4096;
static flash::SpiFl... | 31.329114 | 99 | 0.611717 | rundb |
868f8ce74fc5ad4ca8f2d339dc11a6507e35e706 | 3,220 | hpp | C++ | ZeroLibraries/Math/SimMath.hpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | ZeroLibraries/Math/SimMath.hpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | ZeroLibraries/Math/SimMath.hpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// \file SimMath.hpp
/// Platform dependent defines, typedefs and globals for simd operations.
///
/// Authors: Joshua Davis
/// Copyright 2011-2012, DigiPen Institute of Technology
///
////////////////////////////////////////... | 35 | 102 | 0.677019 | RachelWilSingh |
869409a51ac19f76b91e750d8dd980c8b5b616d5 | 3,659 | cpp | C++ | src/data/cross_sections/tests/material_cross_sections_test.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 12 | 2018-03-14T12:30:53.000Z | 2022-01-23T14:46:44.000Z | src/data/cross_sections/tests/material_cross_sections_test.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 194 | 2017-07-07T01:38:15.000Z | 2021-05-19T18:21:19.000Z | src/data/cross_sections/tests/material_cross_sections_test.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 10 | 2017-07-06T22:58:59.000Z | 2021-03-15T07:01:21.000Z | #include "data/cross_sections/material_cross_sections.hpp"
#include <unordered_map>
#include <vector>
#include <gtest/gtest.h>
#include <deal.II/lac/full_matrix.h>
#include "problem/parameters_dealii_handler.hpp"
#include "data/material/tests/material_mock.hpp"
#include "test_helpers/bart_test_helper.h"
#include "te... | 50.123288 | 119 | 0.808964 | SlaybaughLab |
869b37461d6af56b853c0aa300cbf474cd4ae605 | 891 | cpp | C++ | Src/Test_RenderTest/main.cpp | bnagybalint/BoloDemoEngine | 845fc669e0b37bfbffce7aa3d02364d6e715779e | [
"MIT"
] | null | null | null | Src/Test_RenderTest/main.cpp | bnagybalint/BoloDemoEngine | 845fc669e0b37bfbffce7aa3d02364d6e715779e | [
"MIT"
] | null | null | null | Src/Test_RenderTest/main.cpp | bnagybalint/BoloDemoEngine | 845fc669e0b37bfbffce7aa3d02364d6e715779e | [
"MIT"
] | null | null | null |
#include "Assist/Common.h"
#include "Assist/Color.h"
#include "Assist/Timer.h"
#include "Assist/Memory.h"
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <d3d11.h>
#include <stdio.h>
int main()
{
// enter main loop
while (true)
{
#if !COMPILE_DEMO
// process window ... | 14.370968 | 57 | 0.634119 | bnagybalint |
869dce6c428e5689d599e1cf2c2af035079c7e74 | 913 | cpp | C++ | test/testChromosome.cpp | FlySkyPie/chromosome-mutator | 062c560e3d4b0ed05e6766438fc418cd24d56e95 | [
"MIT"
] | null | null | null | test/testChromosome.cpp | FlySkyPie/chromosome-mutator | 062c560e3d4b0ed05e6766438fc418cd24d56e95 | [
"MIT"
] | 3 | 2020-11-17T22:41:43.000Z | 2020-11-19T23:00:21.000Z | test/testChromosome.cpp | FlySkyPie/bnn-tools | 062c560e3d4b0ed05e6766438fc418cd24d56e95 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "Chromosome.h"
TEST(Chromosome, testAddGenes_FF) {
Chromosome chromosome;
chromosome.addGenes(0xff);
ASSERT_STREQ("11111111", chromosome.printBinary().c_str());
}
TEST(Chromosome, testAddGenes_88) {
Chromosome chromosome;
chromosome.addGenes(0x88);
ASSERT_S... | 27.666667 | 69 | 0.762322 | FlySkyPie |
86a73a7be51b552c5503ac7360be21d55dceaa27 | 1,498 | hpp | C++ | OcularTest/include/Foo.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularTest/include/Foo.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularTest/include/Foo.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2015 Steven T Sell (ssell@vertexfragment.com)
*
* 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 app... | 20.805556 | 92 | 0.512684 | ssell |
86a75283a472d280c0b66c6026c1bdb6a0887011 | 7,145 | cpp | C++ | tests/math_unit/math/fwd/scal/fun/log_mix_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | tests/math_unit/math/fwd/scal/fun/log_mix_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | tests/math_unit/math/fwd/scal/fun/log_mix_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/fwd/scal.hpp>
#include <gtest/gtest.h>
#include <math/fwd/scal/fun/nan_util.hpp>
#include <cmath>
#include <typeinfo>
void test_log_mix_fff(double theta, double lambda1, double lambda2,
double theta_d, double lambda1_d, double lambda2_d) {
using ::exp;
using ::log;
using... | 32.775229 | 80 | 0.66606 | alashworth |
86ab4ddac4c616af9cc58607fa7fc89fab4e62ee | 10,560 | hpp | C++ | tools/seec-view/StateGraphViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 7 | 2018-06-25T12:06:13.000Z | 2022-01-18T09:20:13.000Z | tools/seec-view/StateGraphViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 20 | 2016-12-01T23:46:12.000Z | 2019-08-11T02:41:04.000Z | tools/seec-view/StateGraphViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 1 | 2020-10-19T03:20:05.000Z | 2020-10-19T03:20:05.000Z | //===- tools/seec-trace-view/StateGraphViewer.hpp -------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | 25.445783 | 80 | 0.67964 | seec-team |
86ab67a0eb9837ded37086aae4ceb4fd2e212fdd | 8,568 | cpp | C++ | sdk/core/azure-core/test/ut/curl_connection_pool.cpp | katmsft/azure-sdk-for-cpp | d99f3ab8e62fff5c65c49aea91aba3c2a422a7d1 | [
"MIT"
] | null | null | null | sdk/core/azure-core/test/ut/curl_connection_pool.cpp | katmsft/azure-sdk-for-cpp | d99f3ab8e62fff5c65c49aea91aba3c2a422a7d1 | [
"MIT"
] | null | null | null | sdk/core/azure-core/test/ut/curl_connection_pool.cpp | katmsft/azure-sdk-for-cpp | d99f3ab8e62fff5c65c49aea91aba3c2a422a7d1 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include "transport_adapter_base.hpp"
#include <azure/core/context.hpp>
#include <azure/core/http/policy.hpp>
#include <azure/core/response.hpp>
#if defined(BUILD_CURL_HTTP_TRANSPORT_ADAPTER)
#include "azure/core/http/curl/cu... | 48.40678 | 99 | 0.667134 | katmsft |
86abcb8a97b9d6cb70ec43323d069a734f6bed45 | 7,534 | cpp | C++ | nxmodel/src/nxloader.cpp | Intuity/nexus | 0d1414fa2ea518dae9f031930c40692ebac5d154 | [
"Apache-2.0"
] | 6 | 2021-06-28T05:52:15.000Z | 2022-03-27T20:45:28.000Z | nxmodel/src/nxloader.cpp | Intuity/nexus | 0d1414fa2ea518dae9f031930c40692ebac5d154 | [
"Apache-2.0"
] | null | null | null | nxmodel/src/nxloader.cpp | Intuity/nexus | 0d1414fa2ea518dae9f031930c40692ebac5d154 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk
//
// 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 app... | 41.395604 | 87 | 0.493762 | Intuity |
86b90b5c076e3021746b0047046157bca0de0c6d | 7,619 | cpp | C++ | build/linux-build/Sources/src/kha/audio2/Audio.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/audio2/Audio.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/audio2/Audio.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_c5728fd05c542abe
#define INCLUDED_c5728fd05c542abe
#include "cpp_float32array.h"
#endif
#ifndef INCLUDED_kha_Resource
#include <hxinc/kha/Resource.h>
#endif
#ifndef INCLUDED_kha_Sound
#include <hxinc/kha/Sound.h>
#endif
#ifndef INCLUDED_kha_array... | 35.273148 | 178 | 0.715711 | HedgehogFog |
86bd0d8bdb1f53993b7f66dc0edb4a87a182d486 | 9,400 | cpp | C++ | Validate/Turn_Stats.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | Validate/Turn_Stats.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | Validate/Turn_Stats.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Turn_Stats.cpp - Turning Movement Statistics
//*********************************************************
#include "Validate.hpp"
//---------------------------------------------------------
// Turn_Stats
//--------------------------------------------------... | 29.652997 | 121 | 0.539681 | kravitz |
86c4fc28761a2dd6b82c8d1ed3f3179d4b4cbe1a | 1,189 | cpp | C++ | src/wrapper/common/prov.cpp | microshine/trusted-crypto | 22a6496bd390ebe2ed516a15636d911fae4c6407 | [
"Apache-2.0"
] | null | null | null | src/wrapper/common/prov.cpp | microshine/trusted-crypto | 22a6496bd390ebe2ed516a15636d911fae4c6407 | [
"Apache-2.0"
] | null | null | null | src/wrapper/common/prov.cpp | microshine/trusted-crypto | 22a6496bd390ebe2ed516a15636d911fae4c6407 | [
"Apache-2.0"
] | 1 | 2020-07-01T16:32:57.000Z | 2020-07-01T16:32:57.000Z | /*#include "../stdafx.h"
#include "prov.h"
Provider::Provider()
{
LOGGER_FN();
_type = 0;
_name = new std::string("");
}
Provider::Provider(const Provider &v){
LOGGER_FN();
_name = new std::string(v._name->c_str());
_type = v._type;
}
Provider::~Provider()
{
LOGGER_FN();
}
void ... | 12.784946 | 54 | 0.609756 | microshine |
f867b5741d690c39d6d9b23f8619b1321781c546 | 6,875 | hpp | C++ | src/common/monitored_node/include/monitored_node/monitored_publisher.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 1 | 2022-02-24T07:36:59.000Z | 2022-02-24T07:36:59.000Z | src/common/monitored_node/include/monitored_node/monitored_publisher.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | null | null | null | src/common/monitored_node/include/monitored_node/monitored_publisher.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Arm 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 in wri... | 40.922619 | 98 | 0.726691 | ruvus |
f86a220ce280e0b4e289aea8412a14bafac044cc | 4,621 | cpp | C++ | src/sgnode.cpp | 7956968/sg-lite | 11dee4e8746a4f13c060e32ac375a984e48bc7d4 | [
"MIT"
] | 1 | 2021-04-29T03:50:25.000Z | 2021-04-29T03:50:25.000Z | src/sgnode.cpp | 7956968/sg-lite | 11dee4e8746a4f13c060e32ac375a984e48bc7d4 | [
"MIT"
] | null | null | null | src/sgnode.cpp | 7956968/sg-lite | 11dee4e8746a4f13c060e32ac375a984e48bc7d4 | [
"MIT"
] | null | null | null | #include "sgnode_p.h"
#include "sgrootnode_p.h"
#include "sgscene.h"
#include "sggeometry.h"
#include "sgmaterial.h"
#include <algorithm>
SGNode::SGNode(SGNode* parent)
{
new (this)SGNode(SGNode::BasicNodeType, new SGNodePrivate, parent);
}
SGNode::SGNode(E_NodeType type, SGNodePrivate* p, SGNode * parent)
{
... | 19.095041 | 131 | 0.653322 | 7956968 |
f86ab7421bfed9323d09a2b78c02b8d009c92c16 | 22,233 | cpp | C++ | software/src/8.1/src/backend/vfault.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | software/src/8.1/src/backend/vfault.cpp | VisionAerie/vision | e40c39e3abc49b0e2c9623204c54b900c4333f29 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/8.1/src/backend/vfault.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Fault Remembering Facility *****/
/***************************
***** Facility Name *****
***************************/
#define FacilityName FAULT
/******************************************
***** Header and Declaration Files *****
******************************************/
/***** System *****/
#i... | 31.580966 | 92 | 0.639095 | c-kuhlman |
f872167e7f0758e312ca6511a84c688a2e1a0c62 | 4,148 | cpp | C++ | ConvertLib/ColorMatrix.cpp | t-rapp/libcineform | 1af16fa687873bd36d92cc3aefe3c7947799c6ab | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 9 | 2018-12-23T16:49:43.000Z | 2022-03-07T07:53:34.000Z | ConvertLib/ColorMatrix.cpp | t-rapp/libcineform | 1af16fa687873bd36d92cc3aefe3c7947799c6ab | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2018-11-13T14:58:14.000Z | 2019-07-30T17:34:01.000Z | ConvertLib/ColorMatrix.cpp | t-rapp/libcineform | 1af16fa687873bd36d92cc3aefe3c7947799c6ab | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2018-11-13T14:15:38.000Z | 2019-07-27T08:28:16.000Z | /*! @file ColorMatrix.cpp
* @brief
*
* @version 1.0.0
*
* (C) Copyright 2017 GoPro Inc (http://gopro.com/).
*
* Licensed under either:
* - Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
* - MIT license, http://opensource.org/licenses/MIT
* at your option.
*
* Unless required by applica... | 29.628571 | 93 | 0.57136 | t-rapp |
f872f9f7a4d219faea5d55a3579b547d2ce87e08 | 819 | hpp | C++ | core/include/Cerium/Sound.hpp | bjornus/Cerium | b908be6199da2ad003d59251cb9ebf749e7e4d73 | [
"MIT"
] | 9 | 2017-06-12T08:12:44.000Z | 2019-01-15T08:22:53.000Z | core/include/Cerium/Sound.hpp | szewczukk/Cerium | b908be6199da2ad003d59251cb9ebf749e7e4d73 | [
"MIT"
] | null | null | null | core/include/Cerium/Sound.hpp | szewczukk/Cerium | b908be6199da2ad003d59251cb9ebf749e7e4d73 | [
"MIT"
] | 1 | 2018-10-27T02:47:56.000Z | 2018-10-27T02:47:56.000Z | #ifndef CERIUM_SOUNDS_HPP
#define CERIUM_SOUNDS_HPP
#include "Resource.hpp"
#include <SDL2/SDL_mixer.h>
#include <string>
namespace cerium
{
class Sound : public Resource
{
public:
/*
^[name][Sound]
^[class][Sound]
^[description][Loading sound from res/sounds/... | 21 | 68 | 0.510379 | bjornus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.