hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
813837762849dc9d9805a2597acc7eddf6b0ba26 | 1,245 | hpp | C++ | boost/numeric/bindings/blas/level1.hpp | rabauke/numeric_bindings | f4de93bd7a01a8b31c9367fad35c81d086768f99 | [
"BSL-1.0"
] | null | null | null | boost/numeric/bindings/blas/level1.hpp | rabauke/numeric_bindings | f4de93bd7a01a8b31c9367fad35c81d086768f99 | [
"BSL-1.0"
] | null | null | null | boost/numeric/bindings/blas/level1.hpp | rabauke/numeric_bindings | f4de93bd7a01a8b31c9367fad35c81d086768f99 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2009 Rutger ter Borg
//
// 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 BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_HPP
#define BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_HPP
#include <boost/numer... | 40.16129 | 61 | 0.794378 | rabauke |
8138fe5682e111533dd25d039815e6391a602cca | 2,241 | cpp | C++ | embedded/common/src/azydev/embedded/pins/common/pins.cpp | azydevelopment/embedded | 014afa0af3a3827f61efe45bc97f2d39e81bd201 | [
"MIT"
] | 2 | 2017-10-18T07:19:47.000Z | 2017-10-18T07:19:50.000Z | embedded/common/src/azydev/embedded/pins/common/pins.cpp | azydevelopment/embedded | 014afa0af3a3827f61efe45bc97f2d39e81bd201 | [
"MIT"
] | null | null | null | embedded/common/src/azydev/embedded/pins/common/pins.cpp | azydevelopment/embedded | 014afa0af3a3827f61efe45bc97f2d39e81bd201 | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
*
* Copyright (c) 2017 Andrew Yeung <azy.development@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitat... | 32.955882 | 88 | 0.761267 | azydevelopment |
813ad25b44dc4bd63a76670c8985ae40c07d9483 | 682 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Data/XslTRansform.Transform7/CPP/trans_snip4.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Data/XslTRansform.Transform7/CPP/trans_snip4.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Data/XslTRansform.Transform7/CPP/trans_snip4.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | #using <System.Xml.dll>
#using <System.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
using namespace System::Xml::Xsl;
int main()
{
//<snippet1>
// Create a resolver with default credentials.
XmlUrlResolver^ resolver = gcnew XmlUrlResolver;
resolver->Cr... | 26.230769 | 77 | 0.670088 | hamarb123 |
813b435911b65488fcd847bc841643cbe045b3db | 1,116 | cpp | C++ | src/calcutron.cpp | deitry/LittleCalcutron | 6bda9a51c88d3d14fbbd9a161bc66188664fcc3c | [
"MIT"
] | null | null | null | src/calcutron.cpp | deitry/LittleCalcutron | 6bda9a51c88d3d14fbbd9a161bc66188664fcc3c | [
"MIT"
] | null | null | null | src/calcutron.cpp | deitry/LittleCalcutron | 6bda9a51c88d3d14fbbd9a161bc66188664fcc3c | [
"MIT"
] | null | null | null | #include "../include/calcutron.h"
#include <iostream>
namespace calcutron
{
map<TokenType, regex> tokenRegExMap =
{
{VALUE, regex("[0-9]*[.,]?[0-9]*") },
{OPERATOR, regex("[<*/a-zA-Z+>=-]+")},
{LP, regex(R"([(\x5b{])")}, // проверяем на соответствие только левые скобки - для входа в парсер
{RP, regex(R"([)... | 24.8 | 113 | 0.59319 | deitry |
813dbf53c3fdfd011e9e291877d36d8111ccc28d | 12,945 | hh | C++ | addmc/src/common.hh | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | null | null | null | addmc/src/common.hh | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | null | null | null | addmc/src/common.hh | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | null | null | null | #pragma once
/* inclusions =============================================================== */
#include <cassert>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <mutex>
#include <queue>
#include <random>
#include <signal.h>
#include <sys/time.h>
#include <thread>
#include <unordered_... | 30.387324 | 142 | 0.664813 | vuphan314 |
813fde77aeaa105930602973b021fd6f950fd6b4 | 5,887 | cc | C++ | ash/fast_ink/laser/laser_pointer_controller.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ash/fast_ink/laser/laser_pointer_controller.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | ash/fast_ink/laser/laser_pointer_controller.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/fast_ink/laser/laser_pointer_controller.h"
#include <memory>
#include "ash/fast_ink/laser/laser_pointer_view.h"
#include "ash/public/cpp/s... | 32.705556 | 80 | 0.741974 | zealoussnow |
8140b91b3b1cc4a6bddd6d526275b5ced5198f3a | 219 | cpp | C++ | Game/Client/WXClient/Network/PacketHandler/CGUseAbilityHandler.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXClient/Network/PacketHandler/CGUseAbilityHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXClient/Network/PacketHandler/CGUseAbilityHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "StdAfx.h"
#include "CGUseAbility.h"
uint CGUseAbilityHandler::Execute(CGUseAbility* pPacket,Player* pPlayer)
{
__ENTER_FUNCTION
return PACKET_EXE_CONTINUE;
__LEAVE_FUNCTION
return PACKET_EXE_ERROR;
}
| 14.6 | 72 | 0.799087 | hackerlank |
8142e9cc0f56c4ca53093a4af96536fcce47aaac | 2,486 | hpp | C++ | include/Nazara/Graphics/BasicMaterial.hpp | waruqi/NazaraEngine | a64de1ffe8b0790622a0b1cae5759c96b4f86907 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Graphics/BasicMaterial.hpp | waruqi/NazaraEngine | a64de1ffe8b0790622a0b1cae5759c96b4f86907 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Graphics/BasicMaterial.hpp | waruqi/NazaraEngine | a64de1ffe8b0790622a0b1cae5759c96b4f86907 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_BASIC_MATERIAL_HPP
#define NAZARA_BASIC_MATERIAL_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Graph... | 27.622222 | 77 | 0.763475 | waruqi |
8143adae3f1c11eae4809957553d6be45b20e7d1 | 3,322 | cpp | C++ | firmware/stm32/f746/src/mcu/quadratureTimer.cpp | AlanFord/self-balancing-stick | c805f3136effbceed71b7b6fe086c471a698899b | [
"MIT"
] | 64 | 2018-08-13T07:02:33.000Z | 2022-03-18T09:21:28.000Z | firmware/stm32/f746/src/mcu/quadratureTimer.cpp | AlanFord/self-balancing-stick | c805f3136effbceed71b7b6fe086c471a698899b | [
"MIT"
] | 7 | 2019-04-29T15:11:33.000Z | 2022-02-19T14:15:25.000Z | firmware/stm32/f746/src/mcu/quadratureTimer.cpp | AlanFord/self-balancing-stick | c805f3136effbceed71b7b6fe086c471a698899b | [
"MIT"
] | 15 | 2019-01-22T20:53:44.000Z | 2021-11-26T14:53:20.000Z | /*
timer.cpp - Implementation file for the Timer class.
*/
#include <nodate.h>
#include "quadratureTimer.h"
/*---------------------------------------------------------------------------*/
/** @brief TIMER PWM Timer Initialization
This configures a timer perpheral in PWM output mode.
*/
QuadratureTimer::Quadr... | 33.22 | 145 | 0.674293 | AlanFord |
81441bc97bffee6cee32a6c0c9e264d55c0608c2 | 66,054 | hpp | C++ | third_party/jsoncons/include/jsoncons_ext/cbor/cbor_parser.hpp | yotann/alive2 | ee6f38748c4278d1d261a1a399772da0f1d61dd9 | [
"MIT"
] | 1 | 2021-11-03T02:26:36.000Z | 2021-11-03T02:26:36.000Z | third_party/jsoncons/include/jsoncons_ext/cbor/cbor_parser.hpp | yotann/alive2 | ee6f38748c4278d1d261a1a399772da0f1d61dd9 | [
"MIT"
] | 3 | 2021-10-22T03:48:11.000Z | 2021-11-03T03:39:48.000Z | third_party/jsoncons/include/jsoncons_ext/cbor/cbor_parser.hpp | yotann/alive2 | ee6f38748c4278d1d261a1a399772da0f1d61dd9 | [
"MIT"
] | null | null | null | // Copyright 2017 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_CBOR_CBOR_PARSER_HPP
#define JSONCONS_CBOR_CBOR_PARSER_HP... | 34.22487 | 154 | 0.422155 | yotann |
8144d1d8d9d4cc9fe3abade76beadea112159d0a | 923 | cpp | C++ | src/binary_tree.cpp | israni/CPP2 | b917c85dbde217360ba3c469e6a4aa2c5e794716 | [
"MIT"
] | null | null | null | src/binary_tree.cpp | israni/CPP2 | b917c85dbde217360ba3c469e6a4aa2c5e794716 | [
"MIT"
] | null | null | null | src/binary_tree.cpp | israni/CPP2 | b917c85dbde217360ba3c469e6a4aa2c5e794716 | [
"MIT"
] | null | null | null | #include<iostream>
#include"node.h"
int main()
{
node<int> mynode1(10);
node<int> mynode2 (20);
std::cout << mynode1.get_data() << "," << mynode2.get_data() << std::endl;
if (mynode1==mynode2){
std::cout << "EQUAL" << std::endl;
}
else{
std::cout << "NOT EQUAL" << std::endl; ... | 28.84375 | 112 | 0.566631 | israni |
8144ed50732ba0b82562bd70868885087d717e49 | 3,719 | cpp | C++ | src/Output/Output_Flux.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | 3 | 2019-04-13T02:08:01.000Z | 2020-11-17T12:45:37.000Z | src/Output/Output_Flux.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | null | null | null | src/Output/Output_Flux.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | 2 | 2019-11-12T02:00:20.000Z | 2019-12-09T14:52:31.000Z |
#include "DAINO.h"
//-------------------------------------------------------------------------------------------------------
// Function : Output_Flux
// Description : Output the flux of a single patch
//
// Parameter : lv : Targeted refinement level
// PID : Targeted patch ID
//... | 33.809091 | 112 | 0.491799 | zhulianhua |
81465f3944cfea695e3e5bf03dd2cc3a7a109860 | 4,953 | hpp | C++ | include/sobfu/solver.hpp | LuyaooChen/sobfu | 688e06a2e81fdf30bd2d019516dc025a951bcbc2 | [
"BSD-3-Clause"
] | 142 | 2019-01-10T14:38:03.000Z | 2022-03-18T08:45:30.000Z | include/sobfu/solver.hpp | GucciPrada/sobfu | c83646582a146a3f4b8d8ad62de31ec60f8004d6 | [
"BSD-3-Clause"
] | 17 | 2019-01-18T05:15:33.000Z | 2021-12-22T15:00:44.000Z | include/sobfu/solver.hpp | GucciPrada/sobfu | c83646582a146a3f4b8d8ad62de31ec60f8004d6 | [
"BSD-3-Clause"
] | 27 | 2019-02-16T10:11:49.000Z | 2021-11-02T19:51:28.000Z | #pragma once
/* kinfu incldues */
#include <kfusion/cuda/tsdf_volume.hpp>
#include <kfusion/safe_call.hpp>
/* sobfu includes */
#include <sobfu/reductor.hpp>
#include <sobfu/scalar_fields.hpp>
#include <sobfu/vector_fields.hpp>
/*
* SOLVER PARAMETERS
*/
struct SolverParams {
int verbosity, max_iter, s;
fl... | 35.378571 | 117 | 0.689885 | LuyaooChen |
814731bcac3d648cf8ea63e921eba768b679e9ce | 1,301 | hpp | C++ | include/panoc/entities.hpp | Zilleplus/PANOCPP | f228afec92e0fdff557f85cb27b0b368fea585ae | [
"MIT"
] | 3 | 2018-09-12T06:12:48.000Z | 2022-01-31T12:47:47.000Z | include/panoc/entities.hpp | Zilleplus/PANOCPP | f228afec92e0fdff557f85cb27b0b368fea585ae | [
"MIT"
] | 21 | 2020-05-21T17:26:13.000Z | 2021-12-19T19:49:09.000Z | include/panoc/entities.hpp | Zilleplus/PANOCPP | f228afec92e0fdff557f85cb27b0b368fea585ae | [
"MIT"
] | 1 | 2018-09-09T07:43:49.000Z | 2018-09-09T07:43:49.000Z | #pragma once
#include<utility>
namespace pnc {
template <
typename TVectorRef,
typename TVector = std::remove_reference_t<TVectorRef>,
typename TConstant = typename TVector::data_type,
typename TSize = typename TVector::size_type
>
struct Location {
Location(
TVectorRef&& location,
TVectorRef&& ... | 19.132353 | 58 | 0.670254 | Zilleplus |
8147c0ad2a81e17f7cdda544e1bb7bdc1be524cd | 3,431 | cpp | C++ | tests/services_unit/check_adaptation.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | tests/services_unit/check_adaptation.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | tests/services_unit/check_adaptation.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include "check_adaptation.hpp"
double stan::test::unit::stod(const std::string& val) {
char tmp[val.length()];
strcpy(tmp, val.c_str());
return atof(tmp);
}
void stan::test::unit::check_adaptation(
const size_t& num_params, const std::vector<double>& param_vals,
stan::test::unit::instrumented_writer& r... | 35.010204 | 78 | 0.628097 | alashworth |
814899dbbbf43143638a90b8eec6cbfd933041e1 | 323 | inl | C++ | args/core/math/glm/gtx/normal.inl | Developer-The-Great/Args-Engine | 1eee1eaadc5e203778896c803e8fa4e9f52b4f7b | [
"MIT"
] | null | null | null | args/core/math/glm/gtx/normal.inl | Developer-The-Great/Args-Engine | 1eee1eaadc5e203778896c803e8fa4e9f52b4f7b | [
"MIT"
] | null | null | null | args/core/math/glm/gtx/normal.inl | Developer-The-Great/Args-Engine | 1eee1eaadc5e203778896c803e8fa4e9f52b4f7b | [
"MIT"
] | null | null | null | /// @ref gtx_normal
namespace args::core::math::detail::glm
{
template<typename T, qualifier Q>
GLM_FUNC_QUALIFIER vec<3, T, Q> triangleNormal
(
vec<3, T, Q> const& p1,
vec<3, T, Q> const& p2,
vec<3, T, Q> const& p3
)
{
return normalize(cross(p1 - p2, p1 - p3));
}
}//namespace args::core::math::detail::g... | 20.1875 | 47 | 0.634675 | Developer-The-Great |
8148cbda6dfe1de16596d2b90a3b0b12f731efa0 | 704 | cpp | C++ | source/testing/tests/stoichiometric.cpp | 0u812/roadrunner | f464c2649e388fa1f5a015592b0b29b65cc84b4b | [
"Apache-2.0"
] | null | null | null | source/testing/tests/stoichiometric.cpp | 0u812/roadrunner | f464c2649e388fa1f5a015592b0b29b65cc84b4b | [
"Apache-2.0"
] | null | null | null | source/testing/tests/stoichiometric.cpp | 0u812/roadrunner | f464c2649e388fa1f5a015592b0b29b65cc84b4b | [
"Apache-2.0"
] | null | null | null | #include "unit_test/UnitTest++.h"
#include "rrLogger.h"
#include "rrRoadRunner.h"
#include "rrException.h"
#include "rrStringUtils.h"
using namespace UnitTest;
using namespace rr;
extern RoadRunner* gRR;
extern string gSBMLModelsPath;
extern string gCompiler;
extern string g... | 21.333333 | 77 | 0.627841 | 0u812 |
814acf2c8156d42d7e1bd760d51c914f75c62762 | 617 | hpp | C++ | unit-tests/test-files/template/full-base.hpp | Mirinth/Plexiglass | d5e1e83a4863ae764c951d79a574ab5f4970793e | [
"Unlicense"
] | null | null | null | unit-tests/test-files/template/full-base.hpp | Mirinth/Plexiglass | d5e1e83a4863ae764c951d79a574ab5f4970793e | [
"Unlicense"
] | 39 | 2021-10-10T20:50:02.000Z | 2021-11-29T01:42:09.000Z | unit-tests/test-files/template/full-base.hpp | Mirinth/Plexiglass | d5e1e83a4863ae764c951d79a574ab5f4970793e | [
"Unlicense"
] | null | null | null | #pragma once
#include <filesystem>
#include <string>
#include <string_view>
enum class LexerState;
enum class TokenType
{
__eof__,
__jam__,
__nothing__,
secondToken,
};
std::string ToString(TokenType type, const std::string& text);
class full
{
public:
full(const std::filesystem::path& path);
... | 16.675676 | 62 | 0.677472 | Mirinth |
814bae8a4c2db99b0d6c3246c0537fae451df490 | 2,787 | cc | C++ | cluster/spanning_tree_main.cc | MoniFarsang/vowpal_wabbit | e37d4505a4830c73306180adadb5b3abbb5c0fc1 | [
"BSD-3-Clause"
] | null | null | null | cluster/spanning_tree_main.cc | MoniFarsang/vowpal_wabbit | e37d4505a4830c73306180adadb5b3abbb5c0fc1 | [
"BSD-3-Clause"
] | null | null | null | cluster/spanning_tree_main.cc | MoniFarsang/vowpal_wabbit | e37d4505a4830c73306180adadb5b3abbb5c0fc1 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2011 Yahoo! Inc. All rights reserved. The copyrights
embodied in the content of this file are licensed under the BSD
(revised) open source license
This creates a binary tree topology over a set of n nodes that connect.
*/
#include "config/cli_help_formatter.h"
#include "config/option_builder.h"
#... | 26.542857 | 110 | 0.645856 | MoniFarsang |
814c50fbccf2abaa393ce8b25c38c0c925145572 | 1,735 | cpp | C++ | src/util/runnable_time_source.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | 10 | 2018-04-28T04:44:56.000Z | 2022-02-06T21:12:13.000Z | src/util/runnable_time_source.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | null | null | null | src/util/runnable_time_source.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | 3 | 2019-02-16T03:22:26.000Z | 2022-02-03T14:54:22.000Z | #include <src/board/board.h>
#include <src/board/i2c/i2c.h>
#include <src/board/i2c/multiplexers/i2c_multiplexer.h>
#include <src/config/satellite.h>
#include <src/sensors/i2c_sensors/rtc.h>
#include <src/util/msp_exception.h>
#include <src/util/runnable_time_source.h>
#include <src/util/satellite_time_source.h>
#inclu... | 36.145833 | 79 | 0.640346 | MelbourneSpaceProgram |
814ce30a05e959d89df4fba2a0c36c417c9df7de | 15,463 | cpp | C++ | mitsuba/src/integrators/erpt/erpt_proc.cpp | anadodik/sdmm-mitsuba | 6103cb8ea36ec4ab0cfb5fcc792c7f1565637d9a | [
"MIT"
] | 6 | 2020-07-07T09:46:21.000Z | 2022-03-08T14:16:27.000Z | mitsuba/src/integrators/erpt/erpt_proc.cpp | anadodik/sdmm-mitsuba | 6103cb8ea36ec4ab0cfb5fcc792c7f1565637d9a | [
"MIT"
] | null | null | null | mitsuba/src/integrators/erpt/erpt_proc.cpp | anadodik/sdmm-mitsuba | 6103cb8ea36ec4ab0cfb5fcc792c7f1565637d9a | [
"MIT"
] | null | null | null | /*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2014 by Wenzel Jakob and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
... | 39.956072 | 119 | 0.566902 | anadodik |
814e9c0a2e5498b167b42b6d991997f4f76585f9 | 1,292 | hpp | C++ | android-31/android/app/LocalActivityManager.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/app/LocalActivityManager.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/app/LocalActivityManager.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"
namespace android::app
{
class Activity;
}
namespace android::content
{
class Intent;
}
namespace android::os
{
class Bundle;
}
namespace android::view
{
class Window;
}
class JString;
namespace android::app
{
class LocalActivityManager : public JObject
{
public:
//... | 24.377358 | 161 | 0.736842 | YJBeetle |
814ea14782e84bacbc2ba747321dee746bc44d2c | 1,514 | cpp | C++ | scratch/src/resources/shader_library.cpp | jaideng123/Scratch | 91ff6de4f9f1e4f801441d3da45a4a001871a7ac | [
"MIT",
"Unlicense"
] | null | null | null | scratch/src/resources/shader_library.cpp | jaideng123/Scratch | 91ff6de4f9f1e4f801441d3da45a4a001871a7ac | [
"MIT",
"Unlicense"
] | null | null | null | scratch/src/resources/shader_library.cpp | jaideng123/Scratch | 91ff6de4f9f1e4f801441d3da45a4a001871a7ac | [
"MIT",
"Unlicense"
] | null | null | null | //
// Created by JJJai on 12/18/2021.
//
#include <iostream>
#include <utilities/assert.h>
#include "shader_library.h"
std::shared_ptr<scratch::Shader>
scratch::ShaderLibrary::addShader(const std::string &name, const std::string &vertexPath, const std::string &fragPath) {
std::cout << "Loading Shader: " << name <... | 38.820513 | 120 | 0.622853 | jaideng123 |
814fcf6666cb8d4e930ef6625462ee9575842d0a | 9,312 | cpp | C++ | src/webots/nodes/WbSpeaker.cpp | awesome-archive/webots | 8e74fb8393d1e3a6540749afc492635c43f1b30f | [
"Apache-2.0"
] | 1 | 2018-12-24T04:31:14.000Z | 2018-12-24T04:31:14.000Z | src/webots/nodes/WbSpeaker.cpp | golbh/webots | 8e74fb8393d1e3a6540749afc492635c43f1b30f | [
"Apache-2.0"
] | null | null | null | src/webots/nodes/WbSpeaker.cpp | golbh/webots | 8e74fb8393d1e3a6540749afc492635c43f1b30f | [
"Apache-2.0"
] | 1 | 2019-07-13T17:58:04.000Z | 2019-07-13T17:58:04.000Z | // Copyright 1996-2018 Cyberbotics 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 agr... | 31.04 | 127 | 0.646155 | awesome-archive |
81523bf46d7dfb1d7c97c029c1399accaf859d74 | 1,972 | cpp | C++ | libutt/libutt/test/TestIBE.cpp | definitelyNotFBI/utt | 1695e3a1f81848e19b042cdc4db9cf1d263c26a9 | [
"Apache-2.0"
] | null | null | null | libutt/libutt/test/TestIBE.cpp | definitelyNotFBI/utt | 1695e3a1f81848e19b042cdc4db9cf1d263c26a9 | [
"Apache-2.0"
] | null | null | null | libutt/libutt/test/TestIBE.cpp | definitelyNotFBI/utt | 1695e3a1f81848e19b042cdc4db9cf1d263c26a9 | [
"Apache-2.0"
] | null | null | null | #include <utt/Configuration.h>
#include <utt/IBE.h>
#include <xassert/XAssert.h>
#include <xutils/Log.h>
#include <xutils/Utils.h>
using namespace std;
using namespace libutt;
int main(int argc, char *argv[]) {
libutt::initialize(nullptr, 0);
//srand(static_cast<unsigned int>(time(NULL)));
(void)argc;
... | 25.947368 | 129 | 0.606491 | definitelyNotFBI |
8154cf4b468e1ff4151241449113a50ff29629f4 | 17,156 | cpp | C++ | src/model/AdditionalProperties.cpp | mehrdad-shokri/OpenStudio | 1773b54ce1cb660818ac0114dd7eefae6639ca36 | [
"blessing"
] | null | null | null | src/model/AdditionalProperties.cpp | mehrdad-shokri/OpenStudio | 1773b54ce1cb660818ac0114dd7eefae6639ca36 | [
"blessing"
] | null | null | null | src/model/AdditionalProperties.cpp | mehrdad-shokri/OpenStudio | 1773b54ce1cb660818ac0114dd7eefae6639ca36 | [
"blessing"
] | null | null | null | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 37.705495 | 157 | 0.709839 | mehrdad-shokri |
8154d0d229468dcfc47708c22f46ea0367c975e9 | 5,853 | cpp | C++ | lib/ST_Anything/IS_DoorControl.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | 1 | 2020-12-07T22:32:27.000Z | 2020-12-07T22:32:27.000Z | lib/ST_Anything/IS_DoorControl.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | null | null | null | lib/ST_Anything/IS_DoorControl.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | null | null | null | //******************************************************************************************
// File: IS_DoorControl.h
// Authors: Dan G Ogorchock & Daniel J Ogorchock (Father and Son)
//
// Summary: IS_DoorControl is a class which implements the SmartThings "Door Control" device capability. It features
// an ... | 36.12963 | 224 | 0.676064 | hansaya |
815502270af86215db65534b43b0d1f9e277c0f2 | 2,807 | cpp | C++ | ass4/testdepartment.cpp | starcraft66/COEN243-Fall-2019-Assignments | 66caa4d6bf0f960218c86288e1c17bdae16b22b1 | [
"BSD-3-Clause"
] | 2 | 2021-07-24T15:01:50.000Z | 2022-01-17T21:49:09.000Z | ass4/testdepartment.cpp | starcraft66/COEN243-Fall-2019-Assignments | 66caa4d6bf0f960218c86288e1c17bdae16b22b1 | [
"BSD-3-Clause"
] | null | null | null | ass4/testdepartment.cpp | starcraft66/COEN243-Fall-2019-Assignments | 66caa4d6bf0f960218c86288e1c17bdae16b22b1 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <array>
#include "department.hpp"
int main(int argc, char *argv[])
{
Employee lastemp;
std::string id_number, name, history;
std::cout << "Enter the name of the department: ";
std::getline(std::cin, name);
std::cout << "Enter the department's identification number: ";
... | 41.279412 | 120 | 0.604916 | starcraft66 |
8155065d74e25fe0011fb3788409b9be64d6a4f5 | 699 | cc | C++ | geometry.cc | Computational-Camera/OPENCV_Tricks | e79957306ce8f267cc725f869769ffda92f47e7c | [
"MIT"
] | 1 | 2019-10-30T06:07:52.000Z | 2019-10-30T06:07:52.000Z | geometry.cc | Computational-Camera/OPENCV_Tricks | e79957306ce8f267cc725f869769ffda92f47e7c | [
"MIT"
] | null | null | null | geometry.cc | Computational-Camera/OPENCV_Tricks | e79957306ce8f267cc725f869769ffda92f47e7c | [
"MIT"
] | 1 | 2019-11-19T05:56:19.000Z | 2019-11-19T05:56:19.000Z | //=== Convert Point vector to Mat===
vector<Point2f> pt_vec;
Mat pt_mat = Mat(pt_vec).clone();
//==== Convert Mat to vector ===
Point *pts = (const Point*) Mat(contour).data;
//=== Warp image ====
warpPerspective ( src, dst, T, Size(w,h), INTER_LINEAR, BORDER_CONSTANT);
//=== Points Transformation
perspectiveTrans... | 27.96 | 73 | 0.672389 | Computational-Camera |
8155df87a151d4b6930919d166cdc3c34cd207b8 | 5,053 | hpp | C++ | src/buffer.hpp | myfreeweb/zig | eeb4f376a31a0d6ca3f997becd2f247ebe71dfd6 | [
"MIT"
] | null | null | null | src/buffer.hpp | myfreeweb/zig | eeb4f376a31a0d6ca3f997becd2f247ebe71dfd6 | [
"MIT"
] | null | null | null | src/buffer.hpp | myfreeweb/zig | eeb4f376a31a0d6ca3f997becd2f247ebe71dfd6 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015 Andrew Kelley
*
* This file is part of zig, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
#ifndef ZIG_BUFFER_HPP
#define ZIG_BUFFER_HPP
#include "list.hpp"
#include <assert.h>
#include <stdint.h>
#include <ctype.h>
#include <stdarg.h>
#define BUF_INIT {{0}}
// Note... | 27.166667 | 83 | 0.681773 | myfreeweb |
8156392c8abad48c94d44fc3bb753aaa80872ca4 | 7,405 | cpp | C++ | test-suite/businessdayconventions.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 1 | 2020-10-13T09:57:04.000Z | 2020-10-13T09:57:04.000Z | test-suite/businessdayconventions.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 19 | 2020-11-23T08:36:10.000Z | 2022-03-28T10:06:53.000Z | test-suite/businessdayconventions.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 5 | 2020-06-04T15:19:22.000Z | 2020-06-18T08:24:37.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
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 redistribute it and/or modify it
under the terms of the... | 56.098485 | 134 | 0.669413 | urgu00 |
815725f6f0c76658b1c9bbb9f3e517267dd67b44 | 511 | cpp | C++ | SVEngine/src/detect/SVDetectBase.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/detect/SVDetectBase.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/detect/SVDetectBase.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVDetectBase.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVDetectBase.h"
#include "SVPerson.h"
SVDetectBase::SVDetectBase(SVInst *_app)
:SVListenBase(_app) {
}
SVDetectBase::~SVDetectBase() {
}
void SVDetectBase::update(f32 _dt){
}
void S... | 15.96875 | 62 | 0.729941 | SVEChina |
81574bf0f3315137e96cd4ee2f8a710ec6d6aadc | 5,343 | cpp | C++ | P1/software/fuentes/localSearch2.cpp | dcabezas98/MH | 98ced0552d6736004225aaafb5facd385a9a28d2 | [
"MIT"
] | 1 | 2021-07-18T16:33:12.000Z | 2021-07-18T16:33:12.000Z | P1/software/fuentes/localSearch2.cpp | dcabezas98/MH | 98ced0552d6736004225aaafb5facd385a9a28d2 | [
"MIT"
] | null | null | null | P1/software/fuentes/localSearch2.cpp | dcabezas98/MH | 98ced0552d6736004225aaafb5facd385a9a28d2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_set>
#include <stdlib.h> // srand y rand
#include <algorithm> // advance
#include <time.h>
using namespace std;
int CALLS=0; // Llamadas a evaluación
const int LIMIT=100000; // Límite de evaluaciones
// Lee la entrada y la almacena en una matriz
void r... | 30.357955 | 114 | 0.664982 | dcabezas98 |
8158b3b9570f392bc42ac6e73e216775910e2b5c | 38,558 | hpp | C++ | include/pstore/core/hamt_map_types.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | null | null | null | include/pstore/core/hamt_map_types.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 1 | 2021-03-09T21:33:38.000Z | 2021-03-09T21:33:38.000Z | include/pstore/core/hamt_map_types.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | null | null | null | //===- include/pstore/core/hamt_map_types.hpp -------------*- mode: C++ -*-===//
//* _ _ _ *
//* | |__ __ _ _ __ ___ | |_ _ __ ___ __ _ _ __ | |_ _ _ _ __ ___ ___ *
//* | '_ \ / _` | '_ ` _ \| __| | '_ ` _ \ / _` | '_ \ | __| | | |... | 52.891632 | 100 | 0.518595 | paulhuggett |
815973aaedb1c5e015b94190a9004f77c1fa976e | 15,111 | cc | C++ | be/src/formats/orc/apache-orc/c++/src/RleDecoderV2.cc | sparklezzz/starrocks | d445118c07a84ffa4e76efd2fd40a069b6a6423d | [
"ECL-2.0",
"Zlib",
"Apache-2.0",
"MIT"
] | 2,519 | 2021-09-08T01:41:12.000Z | 2022-03-31T17:14:29.000Z | be/src/formats/orc/apache-orc/c++/src/RleDecoderV2.cc | sparklezzz/starrocks | d445118c07a84ffa4e76efd2fd40a069b6a6423d | [
"ECL-2.0",
"Zlib",
"Apache-2.0",
"MIT"
] | 2,671 | 2021-09-08T01:43:45.000Z | 2022-03-31T23:45:52.000Z | be/src/formats/orc/apache-orc/c++/src/RleDecoderV2.cc | rickif/starrocks | 94af746ec83cc1260e15dc1f5295e7b014c96598 | [
"BSD-3-Clause-Clear",
"Zlib",
"PSF-2.0",
"Apache-2.0"
] | 499 | 2021-09-08T01:43:54.000Z | 2022-03-31T07:14:17.000Z | // This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/orc/tree/main/c++/src/RleDecoderV2.cc
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOT... | 31.156701 | 120 | 0.548276 | sparklezzz |
8159bc85343f8fe0e59c9407461f8c301f538e1f | 3,631 | hh | C++ | litecp/DBEndpoint.hh | couchbaselabs/couchbase-mobile-tools | b0d2c40cf5b6043b508434cc0ef310f29df2d2c1 | [
"Apache-2.0"
] | 27 | 2019-02-12T15:48:50.000Z | 2022-03-31T10:03:42.000Z | litecp/DBEndpoint.hh | couchbaselabs/couchbase-mobile-tools | b0d2c40cf5b6043b508434cc0ef310f29df2d2c1 | [
"Apache-2.0"
] | 20 | 2019-02-20T19:57:05.000Z | 2022-03-21T20:04:35.000Z | litecp/DBEndpoint.hh | couchbaselabs/couchbase-mobile-tools | b0d2c40cf5b6043b508434cc0ef310f29df2d2c1 | [
"Apache-2.0"
] | 18 | 2019-04-08T10:11:25.000Z | 2022-03-29T04:55:25.000Z | //
// DBEndpoint.hh
//
// Copyright (c) 2017 Couchbase, Inc All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... | 33.62037 | 111 | 0.715505 | couchbaselabs |
815e6b183d2acb5cedfe2d6291338ba75c426576 | 1,339 | hpp | C++ | include/unifex/detail/unifex_fwd.hpp | ChuanqiXu9/libunifex | 33c48459a86029e38a376f1d74799a0caee252a0 | [
"Apache-2.0"
] | null | null | null | include/unifex/detail/unifex_fwd.hpp | ChuanqiXu9/libunifex | 33c48459a86029e38a376f1d74799a0caee252a0 | [
"Apache-2.0"
] | null | null | null | include/unifex/detail/unifex_fwd.hpp | ChuanqiXu9/libunifex | 33c48459a86029e38a376f1d74799a0caee252a0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applicab... | 29.108696 | 75 | 0.725915 | ChuanqiXu9 |
815ee2a76eafc9b9f7cfd7310eab806dfc0d91c1 | 384 | cc | C++ | examples/0027.filelock/buffered_file_with_file_lock.cc | clayne/fast_io | 1d7e12ea551d87e187a5a8881d9227ba3ea3b8a0 | [
"MIT"
] | 53 | 2022-02-19T18:28:36.000Z | 2022-03-29T06:54:03.000Z | examples/0027.filelock/buffered_file_with_file_lock.cc | clayne/fast_io | 1d7e12ea551d87e187a5a8881d9227ba3ea3b8a0 | [
"MIT"
] | 5 | 2022-03-05T14:10:29.000Z | 2022-03-28T02:43:16.000Z | examples/0027.filelock/buffered_file_with_file_lock.cc | clayne/fast_io | 1d7e12ea551d87e187a5a8881d9227ba3ea3b8a0 | [
"MIT"
] | 17 | 2022-02-19T20:16:18.000Z | 2022-03-29T20:50:49.000Z | #include<fast_io.h>
#include<fast_io_device.h>
int main()
try
{
fast_io::obuf_file pf(u8"example.txt",fast_io::open_mode::app);
fast_io::file_lock_guard g(file_lock(pf.handle),fast_io::flock_request_l64{});
fast_io::io_flush_guard g2(pf);
for(std::size_t i{};i!=1000000;++i)
{
print(pf,"Hello ");
print(pf,"Wo... | 19.2 | 79 | 0.6875 | clayne |
8160b80ef3e4474c4cf8162a6ed1209fd2d9abd9 | 3,529 | cpp | C++ | 3rdParty/boost/1.71.0/libs/spirit/test/x3/with.cpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | 3rdParty/boost/1.71.0/libs/spirit/test/x3/with.cpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | 3rdParty/boost/1.71.0/libs/spirit/test/x3/with.cpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | /*=============================================================================
Copyright (c) 2015 Joel de Guzman
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.686957 | 84 | 0.530462 | rajeev02101987 |
8160bee4f91eb5159ea3f5bcd4fccae1c34ce01e | 5,412 | cpp | C++ | modules/vectorfieldvisualizationgl/vectorfieldvisualizationglmodule.cpp | liu3xing3long/inviwo | 69cca9b6ecd58037bda0ed9e6f53d02f189f19a7 | [
"BSD-2-Clause"
] | 1 | 2018-04-07T14:30:29.000Z | 2018-04-07T14:30:29.000Z | modules/vectorfieldvisualizationgl/vectorfieldvisualizationglmodule.cpp | liu3xing3long/inviwo | 69cca9b6ecd58037bda0ed9e6f53d02f189f19a7 | [
"BSD-2-Clause"
] | null | null | null | modules/vectorfieldvisualizationgl/vectorfieldvisualizationglmodule.cpp | liu3xing3long/inviwo | 69cca9b6ecd58037bda0ed9e6f53d02f189f19a7 | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015-2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 45.478992 | 101 | 0.696785 | liu3xing3long |
81621a6eb6c399668a684dc24a5b1db4162a7357 | 6,214 | cpp | C++ | Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2008 Alp Toker <alp@atoker.com>
* Copyright (C) 2010 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at you... | 38.358025 | 198 | 0.727873 | jacadcaps |
816278711cb11e8e796b3a24f2135f307fb43b95 | 7,671 | hpp | C++ | src/base/command/NonlinearConstraint.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | src/base/command/NonlinearConstraint.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | src/base/command/NonlinearConstraint.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | //$Id$
//------------------------------------------------------------------------------
// NonlinearConstraint
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2017 United States Governmen... | 38.355 | 103 | 0.589754 | supalogix |
8162933c6885d340c9732ad206632cc6bf163620 | 41,979 | cpp | C++ | apps/hmt-slam-gui/hmt_slam_guiMain.cpp | ros2-gbp/mrpt2-release | ca80124f0c9bfccceab425bfd6c36e1ae29c254b | [
"BSD-3-Clause"
] | null | null | null | apps/hmt-slam-gui/hmt_slam_guiMain.cpp | ros2-gbp/mrpt2-release | ca80124f0c9bfccceab425bfd6c36e1ae29c254b | [
"BSD-3-Clause"
] | null | null | null | apps/hmt-slam-gui/hmt_slam_guiMain.cpp | ros2-gbp/mrpt2-release | ca80124f0c9bfccceab425bfd6c36e1ae29c254b | [
"BSD-3-Clause"
] | 1 | 2020-12-30T14:06:37.000Z | 2020-12-30T14:06:37.000Z | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | 40.756311 | 80 | 0.709545 | ros2-gbp |
816420d3307460a8cacc078101748f9e1e32d1ba | 3,003 | cpp | C++ | test-suite/generated-src/wasm/NativeConstantsInterface.cpp | paulo-coutinho/djinni | 72fc4f08e77338bd80f1f47071c5b541d89b9bc9 | [
"Apache-2.0"
] | null | null | null | test-suite/generated-src/wasm/NativeConstantsInterface.cpp | paulo-coutinho/djinni | 72fc4f08e77338bd80f1f47071c5b541d89b9bc9 | [
"Apache-2.0"
] | null | null | null | test-suite/generated-src/wasm/NativeConstantsInterface.cpp | paulo-coutinho/djinni | 72fc4f08e77338bd80f1f47071c5b541d89b9bc9 | [
"Apache-2.0"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file was generated by Djinni from constants.djinni
#include "NativeConstantsInterface.hpp" // my header
#include "NativeConstantRecord.hpp"
namespace djinni_generated {
em::val NativeConstantsInterface::cppProxyMethods() {
static const em::val methods = em::val::ar... | 42.9 | 123 | 0.744589 | paulo-coutinho |
8164481fa9f088871cfce32ada58ef4866d6305d | 10,555 | cpp | C++ | sumo/src/netimport/NIImporter_MATSim.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/src/netimport/NIImporter_MATSim.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/src/netimport/NIImporter_MATSim.cpp | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | 2 | 2017-12-14T16:41:59.000Z | 2020-10-16T17:51:27.000Z | /****************************************************************************/
/// @file NIImporter_MATSim.cpp
/// @author Daniel Krajzewicz
/// @author Jakob Erdmann
/// @author Michael Behrisch
/// @date Tue, 26.04.2011
/// @version $Id$
///
// Importer for networks stored in MATSim format
/*****************... | 40.752896 | 143 | 0.560303 | iltempe |
81652283efc7751d4048f500d3d3bf43791cba7d | 882 | cpp | C++ | D3D9_Renderer/D3D9_Renderer/source/utils/Time.cpp | codenameone-akshat/D3D9_Renderer | 9925a827e45f987639f144aebd53974b27ddfb18 | [
"MIT"
] | null | null | null | D3D9_Renderer/D3D9_Renderer/source/utils/Time.cpp | codenameone-akshat/D3D9_Renderer | 9925a827e45f987639f144aebd53974b27ddfb18 | [
"MIT"
] | null | null | null | D3D9_Renderer/D3D9_Renderer/source/utils/Time.cpp | codenameone-akshat/D3D9_Renderer | 9925a827e45f987639f144aebd53974b27ddfb18 | [
"MIT"
] | null | null | null | #include <sstream>
#include <cmath>
#include <windows.h>
#include "Time.h"
#include "Logger.h"
namespace renderer
{
Time::Time()
:m_tStart(),
m_tEnd(),
m_dt(0),
m_systemTimer(0),
m_numFrames(0),
m_fps(0)
{
}
Time::~Time()
{
}
void Time::OnTim... | 21.512195 | 101 | 0.540816 | codenameone-akshat |
816619a9af82fa50d1964046d8dbb038685819f7 | 1,300 | hpp | C++ | source/vulkan/reshade_api_swapchain.hpp | Moroque/reshade | bf1d263780a817130f6547dca0432dfe64c8beda | [
"BSD-3-Clause"
] | 1 | 2017-11-27T14:50:39.000Z | 2017-11-27T14:50:39.000Z | source/vulkan/reshade_api_swapchain.hpp | kingeric1992/reshade | 22f57c10ea87ee83ceb7a5d0cb737cdfb02dedb2 | [
"BSD-3-Clause"
] | null | null | null | source/vulkan/reshade_api_swapchain.hpp | kingeric1992/reshade | 22f57c10ea87ee83ceb7a5d0cb737cdfb02dedb2 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#pragma once
#include "runtime.hpp"
namespace reshade::vulkan
{
class device_impl;
class command_queue_impl;
class swapchain_impl : public api::api_object_impl<VkSwapchainKHR, runtime>
{
sta... | 30.952381 | 220 | 0.783077 | Moroque |
8167278acbb28ce040a314106f24dfd1162a1142 | 963 | cpp | C++ | src/burner/sdl/stringset.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | src/burner/sdl/stringset.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | src/burner/sdl/stringset.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | // StringSet C++ class
#include "burner.h"
int __cdecl StringSet::Add(TCHAR* szFormat,...)
{
TCHAR szAdd[256];
int nAddLen = 0;
TCHAR* NewMem;
va_list Arg;
va_start(Arg, szFormat);
_vstprintf(szAdd, szFormat, Arg);
nAddLen = _tcslen(szAdd); // find out the length of the new text
NewMem = (TCH... | 18.169811 | 73 | 0.598131 | tt-arcade |
8168533dc2ae946cecfb421b7b282272ac0b17b4 | 7,492 | cxx | C++ | src/vw/Image/tests/TestConvolution.cxx | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | 1 | 2020-06-02T04:06:43.000Z | 2020-06-02T04:06:43.000Z | src/vw/Image/tests/TestConvolution.cxx | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | null | null | null | src/vw/Image/tests/TestConvolution.cxx | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | null | null | null | // __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
// TestConvolution.h
#include <gtest/gtest.h>
#include <vw/Image/Convolution.h>
#include <vw/Image/ImageView... | 35.507109 | 158 | 0.672317 | tkeemon |
816cc674d3229bf23f354530cd930799620878d1 | 1,417 | hpp | C++ | src/private/qhttpserverrequest_private.hpp | Targoman/qhttp | 2351076d2e23c8820e6e94d064de689d99edb22f | [
"MIT"
] | 2 | 2020-07-03T06:34:15.000Z | 2020-07-03T19:19:09.000Z | src/private/qhttpserverrequest_private.hpp | Targoman/QHttp | 55df46aab918a1f923e8b1b79674cf9f82490bc5 | [
"MIT"
] | null | null | null | src/private/qhttpserverrequest_private.hpp | Targoman/QHttp | 55df46aab918a1f923e8b1b79674cf9f82490bc5 | [
"MIT"
] | null | null | null | /** private imeplementation.
* https://github.com/azadkuh/qhttp
*
* @author amir zamani
* @version 2.0.0
* @date 2014-07-11
*/
#ifndef QHTTPSERVER_REQUEST_PRIVATE_HPP
#define QHTTPSERVER_REQUEST_PRIVATE_HPP
///////////////////////////////////////////////////////////////////////////////
#include "httpreader.hxx... | 27.784314 | 107 | 0.515879 | Targoman |
816d269f933970e64807ac5f19d34bf8482aa5a2 | 1,151 | cpp | C++ | CONTESTS/CODE MARSHAL/BAPS-BUBT16/D.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | 1 | 2021-11-22T02:26:43.000Z | 2021-11-22T02:26:43.000Z | CONTESTS/CODE MARSHAL/BAPS-BUBT16/D.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | CONTESTS/CODE MARSHAL/BAPS-BUBT16/D.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int ara1[10001], ara2[10001];
int main()
{
// freopen("myInput.txt","r",stdin);
// freopen("myOutput.txt","w",stdout);
int tcase;
scanf("%d",&tcase);
for(int t=1; t<=tcase; t++) {
int n,m;
scanf("%d %d",&n,&m);
f... | 22.134615 | 57 | 0.316247 | priojeetpriyom |
816de890b819e1b27644a6e004949cfcf5075d9f | 1,957 | cpp | C++ | src/board/agp01/Agp01Relays.cpp | amsobr/iotool | 233ec320ee25c96d34332fe847663682c4aa0a91 | [
"MIT"
] | null | null | null | src/board/agp01/Agp01Relays.cpp | amsobr/iotool | 233ec320ee25c96d34332fe847663682c4aa0a91 | [
"MIT"
] | 4 | 2022-03-13T23:07:12.000Z | 2022-03-13T23:10:09.000Z | src/board/agp01/Agp01Relays.cpp | amsobr/iotool | 233ec320ee25c96d34332fe847663682c4aa0a91 | [
"MIT"
] | null | null | null |
#include <thread>
#include <Poco/Format.h>
#include <common/DigitalOut.hpp>
#include "Agp01Relays.hpp"
using namespace std;
Agp01Relays::Agp01Relays( int id ) :
DigitalOut(id) ,
myEN{gpiod::find_line("pioB21") } ,
myOHCL{ gpiod::find_line("pioB20") } ,
myOLCH{ gpiod::find_line("pioB19") } ,
m... | 26.808219 | 87 | 0.605008 | amsobr |
816eeab02ffaeb50fda608060ce3d91afd79b300 | 1,452 | cpp | C++ | sources/Device/src/Recorder/Sensor.cpp | Sasha7b9Work/S8-57M | 24531cf6d285a400e8be20a939acb842a775a989 | [
"MIT"
] | null | null | null | sources/Device/src/Recorder/Sensor.cpp | Sasha7b9Work/S8-57M | 24531cf6d285a400e8be20a939acb842a775a989 | [
"MIT"
] | null | null | null | sources/Device/src/Recorder/Sensor.cpp | Sasha7b9Work/S8-57M | 24531cf6d285a400e8be20a939acb842a775a989 | [
"MIT"
] | null | null | null | #include "defines.h"
#include "log.h"
#include "Hardware/Timer.h"
#include "Recorder/Sensor.h"
#include <usbh_cdc.h>
#include <usbh_core.h>
#include <usbh_def.h>
static USBH_HandleTypeDef handle;
static int requestForReceive = 0;
#define RX_BUFF_SIZE 0x400
static uint8 bufferRX[RX_BUFF_SIZE];
static void USBH_... | 16.689655 | 66 | 0.672865 | Sasha7b9Work |
816f6d613d21c4f5bbf3317030577af202971215 | 5,297 | cpp | C++ | FileDialogEx.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | FileDialogEx.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | FileDialogEx.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////
// MSDN -- August 2000
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.
// Largely based on original implementation by Michael Lemley.
// Compiles with Visual C++ 6.0, runs on Windows 98 and probably NT to... | 28.326203 | 78 | 0.67963 | matthias-christen |
817037b84f1f4f00a59b9771d36da6ed7067e400 | 1,302 | hpp | C++ | include/filelib.hpp | Vortetty/cpp-linux-utils | b68ca876ce0f9efa50e0658bc0474896ee8811c8 | [
"Apache-2.0"
] | null | null | null | include/filelib.hpp | Vortetty/cpp-linux-utils | b68ca876ce0f9efa50e0658bc0474896ee8811c8 | [
"Apache-2.0"
] | null | null | null | include/filelib.hpp | Vortetty/cpp-linux-utils | b68ca876ce0f9efa50e0658bc0474896ee8811c8 | [
"Apache-2.0"
] | null | null | null | #include <sstream>
#include <fstream>
#include <codecvt>
#include <vector>
std::wstring tokenize(const std::wstring& s, int n) {
if (!s.size()) {
return s;
}
std::wstringstream ss;
ss << s[0];
for (int i = 1; i < s.size(); i+=n) {
ss << ' ' << s[i];
}
return ss.str();
}
sta... | 23.25 | 77 | 0.605991 | Vortetty |
40c4660d7340fe6a5a09bd932db657d0c16bfe07 | 737 | cpp | C++ | Genome_Antivirus_10.0/thread.cpp | Rossterrrr/Qt | 3e5c2934ce19675390d2ad6d513a14964d8cbe50 | [
"MIT"
] | 3 | 2019-09-02T05:17:08.000Z | 2021-01-07T11:21:34.000Z | Genome_Antivirus_10.0/thread.cpp | Jhongesell/Qt | 3fc548731435d3f6fffbaec1bdfd19371232088e | [
"MIT"
] | null | null | null | Genome_Antivirus_10.0/thread.cpp | Jhongesell/Qt | 3fc548731435d3f6fffbaec1bdfd19371232088e | [
"MIT"
] | null | null | null | #include "thread.h"
#include <QDebug>
Thread::Thread(QStringList list, QStringList vList, QThread *parent) : QThread(parent), directories(list),virusList(vList) {
}
void Thread::run() {
emit scanStart();
foreach (QString element, directories) {
QDirIterator directory(element, QDirIterator... | 24.566667 | 125 | 0.523745 | Rossterrrr |
40c63246f25bda155cd0ecd4ff9be5eda870da0f | 3,514 | cc | C++ | src/RTT_Format_Reader/CellFlags.cc | hppritcha/Draco | 6baa5688865eb6c6f38ce6ad1a40eb5ce943cf5c | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/RTT_Format_Reader/CellFlags.cc | hppritcha/Draco | 6baa5688865eb6c6f38ce6ad1a40eb5ce943cf5c | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/RTT_Format_Reader/CellFlags.cc | hppritcha/Draco | 6baa5688865eb6c6f38ce6ad1a40eb5ce943cf5c | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //--------------------------------------------*-C++-*---------------------------------------------//
/*!
* \file RTT_Format_Reader/CellFlags.cc
* \author B.T. Adams
* \date Mon Jun 7 10:33:26 2000
* \brief Implementation file for RTT_Format_Reader/CellFlags class
* \note Copyright (C) 2016-2020 Triad Nation... | 36.989474 | 100 | 0.527604 | hppritcha |
40c88774a7c02cb268096c3107ab7d5a029ec234 | 3,816 | hh | C++ | src/BasicObjects.hh | hirdrac/rend | 937fa3dc0eff23d831004766929c601862079791 | [
"MIT"
] | 2 | 2021-08-31T07:18:27.000Z | 2021-11-15T22:02:26.000Z | src/BasicObjects.hh | hirdrac/rend | 937fa3dc0eff23d831004766929c601862079791 | [
"MIT"
] | null | null | null | src/BasicObjects.hh | hirdrac/rend | 937fa3dc0eff23d831004766929c601862079791 | [
"MIT"
] | null | null | null | //
// BasicObjects.hh
// Copyright (C) 2021 Richard Bradley
//
// Definitions for primitive object classes
//
#pragma once
#include "Object.hh"
// **** Types ****
class Disc final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Disc>"; }
// Object Functions
... | 24.461538 | 62 | 0.70414 | hirdrac |
40c98e19385b51a0f26c1f35a0bdcddc3234b7e7 | 423 | cpp | C++ | docs/mfc/codesnippet/CPP/implementing-working-areas-in-list-controls_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/mfc/codesnippet/CPP/implementing-working-areas-in-list-controls_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/mfc/codesnippet/CPP/implementing-working-areas-in-list-controls_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | // set insertion points for each work area
CPoint rgptWork[4];
for (int i = 0; i < 4; i++)
{
rgptWork[i].x = rcWorkAreas[i].left + 10;
rgptWork[i].y = rcWorkAreas[i].top + 10;
}
// now move all the items to the different quadrants
for (int i = 0; i < 20; i++)
{
m_WorkAreaListCtrl.SetItemPosition(i, rgptWork[i ... | 28.2 | 58 | 0.683215 | bobbrow |
40cb196b7e0fd950deb4b0154b3e2dbb9f36f0d2 | 2,813 | cpp | C++ | Epoll.cpp | linnaeushuang/HttpServer | 16753db84d95d123a6b0e8d36f04f7be49c49d0b | [
"Apache-2.0"
] | 2 | 2021-02-22T04:56:43.000Z | 2021-02-24T15:43:41.000Z | Epoll.cpp | linnaeushuang/webServer | 16753db84d95d123a6b0e8d36f04f7be49c49d0b | [
"Apache-2.0"
] | null | null | null | Epoll.cpp | linnaeushuang/webServer | 16753db84d95d123a6b0e8d36f04f7be49c49d0b | [
"Apache-2.0"
] | 2 | 2021-11-24T03:26:20.000Z | 2021-11-27T13:49:11.000Z |
#include "Epoll.h"
#include <assert.h>
#include <errno.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <deque>
#include <queue>
#include "utils/SocketUtils.h"
#include "utils/Logging.h"
#include <arpa/inet.h>
#include <iostream>
//typedef shared_ptr<Event> SP_Ev... | 25.572727 | 92 | 0.695343 | linnaeushuang |
40cc0771f8ed2721f0ca303695315f5b88b209c4 | 11,238 | cc | C++ | src/i18n_data/locale/sl_SI.cc | BornIncompetence/fast_io | 4a2ce333d292753369df4202af090abe0142725a | [
"MIT"
] | null | null | null | src/i18n_data/locale/sl_SI.cc | BornIncompetence/fast_io | 4a2ce333d292753369df4202af090abe0142725a | [
"MIT"
] | null | null | null | src/i18n_data/locale/sl_SI.cc | BornIncompetence/fast_io | 4a2ce333d292753369df4202af090abe0142725a | [
"MIT"
] | null | null | null | #include"../localedef.h"
namespace fast_io_i18n
{
namespace
{
inline constexpr std::size_t monetary_mon_grouping_storage[]{3};
inline constexpr lc_all lc_all_global{.identification={.title=tsc("Slovenian locale for Slovenia"),.source=tsc("USM//MZT\t\t;\t\tfast_io"),.address=tsc("Kotnikova 6,, Ljubljana, Slovenia\t\t... | 468.25 | 2,296 | 0.675476 | BornIncompetence |
40cf717a9bf2f41129386946df187d083db7403a | 303 | cpp | C++ | src/generator/ui/LitesqlMethodPanel.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 14 | 2018-04-20T03:11:34.000Z | 2021-12-29T02:02:28.000Z | src/generator/ui/LitesqlMethodPanel.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 14 | 2016-05-24T00:20:42.000Z | 2019-02-11T18:36:36.000Z | src/generator/ui/LitesqlMethodPanel.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 5 | 2019-08-31T17:07:08.000Z | 2022-03-21T06:57:39.000Z | #include "LitesqlMethodPanel.h"
#include "objectmodel.hpp"
using namespace xml;
LitesqlMethodPanel::LitesqlMethodPanel( wxWindow* parent , Method::Ptr& pMethod)
:
MethodPanel( parent ),
m_pMethod(pMethod)
{
m_textCtrlName->SetValidator(StdStringValidator(wxFILTER_ALPHANUMERIC,&m_pMethod->name));
}
| 23.307692 | 91 | 0.79538 | cshnick |
40cfc6dceaf044e48a6a14da92c1e56a72526ce6 | 5,145 | cpp | C++ | src/items/items.cpp | Blackhawk-TA/GateKeeper | 49a260bf7ba2304f1649b5ed487bc1e55028e672 | [
"MIT"
] | 1 | 2021-12-31T23:52:57.000Z | 2021-12-31T23:52:57.000Z | src/items/items.cpp | Blackhawk-TA/GateKeeper | 49a260bf7ba2304f1649b5ed487bc1e55028e672 | [
"MIT"
] | null | null | null | src/items/items.cpp | Blackhawk-TA/GateKeeper | 49a260bf7ba2304f1649b5ed487bc1e55028e672 | [
"MIT"
] | null | null | null | //
// Created by daniel on 24.09.21.
//
#include "items.hpp"
namespace items {
Listbox::Item create_inventory_item(INVENTORY_ITEM item_type) {
Listbox::Item item;
switch (item_type) {
case INVENTORY_ITEM::GATE_PART:
item = create_gate_part(INVENTORY_ITEM::GATE_PART);
break;
case INVENTORY_ITEM::AP... | 24.975728 | 121 | 0.710982 | Blackhawk-TA |
40d092cfa1696d5905a37a26ae97ab2e05964f40 | 1,159 | cpp | C++ | src/ulib/FileFinder.cpp | vividos/UlibCpp | d96348844348a00523b7742b3e7a5c9764613877 | [
"BSD-2-Clause"
] | null | null | null | src/ulib/FileFinder.cpp | vividos/UlibCpp | d96348844348a00523b7742b3e7a5c9764613877 | [
"BSD-2-Clause"
] | null | null | null | src/ulib/FileFinder.cpp | vividos/UlibCpp | d96348844348a00523b7742b3e7a5c9764613877 | [
"BSD-2-Clause"
] | null | null | null | //
// ulib - a collection of useful classes
// Copyright (C) 2008-2014,2017 Michael Fink
//
/// \file FileFinder.cpp File finder
//
// includes
#include "stdafx.h"
#include <ulib/FileFinder.hpp>
#include <ulib/Path.hpp>
std::vector<CString> FileFinder::FindAllInPath(const CString& path, const CString& fileSpec, bool ... | 24.659574 | 126 | 0.620362 | vividos |
40d1852ec0aba78e9722ea095b77914a2264988c | 4,657 | cpp | C++ | HCore/CCore/test/test4014.SysFile.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | 8 | 2017-12-21T07:00:16.000Z | 2020-04-02T09:05:55.000Z | HCore/CCore/test/test4014.SysFile.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | HCore/CCore/test/test4014.SysFile.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | 1 | 2020-03-30T09:54:18.000Z | 2020-03-30T09:54:18.000Z | /* test4014.SysFile.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 2.00
//
// Tag: HCore Mini
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
... | 15.680135 | 90 | 0.591797 | SergeyStrukov |
40d3362406b38275b0edb6490753fad9cf0c904f | 15,657 | cpp | C++ | cfgmgr/vxlanmgr.cpp | antony-rheneus/sonic-swss | 4bb9142edacf013bdbd613dc5f5e8b2aa1265584 | [
"Apache-2.0"
] | null | null | null | cfgmgr/vxlanmgr.cpp | antony-rheneus/sonic-swss | 4bb9142edacf013bdbd613dc5f5e8b2aa1265584 | [
"Apache-2.0"
] | null | null | null | cfgmgr/vxlanmgr.cpp | antony-rheneus/sonic-swss | 4bb9142edacf013bdbd613dc5f5e8b2aa1265584 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <regex>
#include <sstream>
#include <string>
#include <net/if.h>
#include "logger.h"
#include "producerstatetable.h"
#include "macaddress.h"
#include "vxlanmgr.h"
#include "exec.h"
#include "tokenize.h"
#include "shellcmd.h"
#include "warm_restart.h"
using namespace std;
using namespace ... | 27.277003 | 117 | 0.605288 | antony-rheneus |
40d55c42fe669f510fc1d218f82bf4521d558aba | 4,498 | cpp | C++ | Userland/userdel.cpp | howar6hill/serenity | 3523071bb7527159f213d3710f4c74d10cf93b1a | [
"BSD-2-Clause"
] | null | null | null | Userland/userdel.cpp | howar6hill/serenity | 3523071bb7527159f213d3710f4c74d10cf93b1a | [
"BSD-2-Clause"
] | null | null | null | Userland/userdel.cpp | howar6hill/serenity | 3523071bb7527159f213d3710f4c74d10cf93b1a | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2019-2020, Fei Wu <f.eiwu@yahoo.com>
* 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, this
*... | 29.592105 | 93 | 0.581147 | howar6hill |
40d65b0d5998de530a36e9fba1b2dbde81aa0165 | 228 | cpp | C++ | 0006 - Beginner Series #3 Sum of Numbers/solution.cpp | dimitri-dev/CodeWars | da428b2f9da4e56080aac6196575e101b1395c6d | [
"MIT"
] | null | null | null | 0006 - Beginner Series #3 Sum of Numbers/solution.cpp | dimitri-dev/CodeWars | da428b2f9da4e56080aac6196575e101b1395c6d | [
"MIT"
] | null | null | null | 0006 - Beginner Series #3 Sum of Numbers/solution.cpp | dimitri-dev/CodeWars | da428b2f9da4e56080aac6196575e101b1395c6d | [
"MIT"
] | null | null | null | #include <iostream>
using std::cin;
using std::cout;
int get_sum(int a, int b)
{
int n = (a < b ? b - a : a - b) + 1;
return n * (a + b) / 2;
}
int main()
{
std::ios::sync_with_stdio(false);
std::cin.tie(0);
} | 14.25 | 40 | 0.526316 | dimitri-dev |
40d742ae6cde6569ce9dd7d213a2241797716128 | 539 | cpp | C++ | Codeforces/1000~1999/1244/G.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1000~1999/1244/G.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1000~1999/1244/G.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
typedef long long ll;
const int N = 1e6 + 61;
int n, l, r, a[N];
ll k, c;
int main() {
scanf("%d%lld", &n, &k);
if ((c = n * (n + 1ll) / 2) > k) return puts("-1"), 0;
for (int i = 1; i <= n; i++) a[i] = i;
l = 1, r = n;
for (; l < r && c < k; l++, r--) {
... | 24.5 | 63 | 0.445269 | tiger0132 |
40d7a913383786c67a1d3eb9b5586bd8b0bb3050 | 3,482 | cpp | C++ | ReShade/Runtime/runtime_config.cpp | nipkownix/Silent-Hill-2-Enhancements | 53f0990c0eb2ca1b81b6645d08a586075556bf64 | [
"Zlib"
] | 356 | 2017-11-24T21:59:54.000Z | 2022-03-12T01:41:39.000Z | ReShade/Runtime/runtime_config.cpp | nipkownix/Silent-Hill-2-Enhancements | 53f0990c0eb2ca1b81b6645d08a586075556bf64 | [
"Zlib"
] | 501 | 2017-11-24T23:32:16.000Z | 2022-03-31T22:28:14.000Z | ReShade/Runtime/runtime_config.cpp | nipkownix/Silent-Hill-2-Enhancements | 53f0990c0eb2ca1b81b6645d08a586075556bf64 | [
"Zlib"
] | 41 | 2018-04-22T19:24:56.000Z | 2022-02-28T01:56:10.000Z | /**
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*
* Copyright (C) 2021 Elisha Riedlinger
*
* 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 us... | 25.985075 | 101 | 0.649339 | nipkownix |
40d8ff15adf3570c79c5f9e9a05603c15c8dd3a0 | 503 | hpp | C++ | addons/flag/CfgVehicles.hpp | 61st-Cavalry-Regiment/61st-aux | bc6e956553fba774881c682a3f12c1b426256a30 | [
"MIT"
] | 2 | 2020-05-25T20:29:29.000Z | 2020-05-26T21:11:23.000Z | addons/flag/CfgVehicles.hpp | 61st-Cavalry-Regiment/61st-aux | bc6e956553fba774881c682a3f12c1b426256a30 | [
"MIT"
] | 3 | 2020-06-02T07:38:40.000Z | 2021-11-13T04:54:28.000Z | addons/flag/CfgVehicles.hpp | 61st-Cavalry-Regiment/61st-aux | bc6e956553fba774881c682a3f12c1b426256a30 | [
"MIT"
] | 1 | 2020-05-26T21:11:28.000Z | 2020-05-26T21:11:28.000Z | class CfgVehicles {
class Flag_White_F;
class GVAR(Flag): Flag_White_F {
author = ECSTRING(main, author);
displayName = CSTRING(display);
scopecurator = public;
scope = public;
class EventHandlers {
init = QUOTE((_this select 0) setFlagTexture QUOTE(QPATHTOF(data\61stFlag.paa)));
};
};
class GVAR(Fla... | 27.944444 | 85 | 0.709742 | 61st-Cavalry-Regiment |
40d96d3485682aa186723caedee313509a5f52f9 | 4,274 | cpp | C++ | modules/clientnotify.cpp | md-5/znc | 39c741fcd2307d707a0d1bebbed3d80be9b1899b | [
"Apache-2.0"
] | null | null | null | modules/clientnotify.cpp | md-5/znc | 39c741fcd2307d707a0d1bebbed3d80be9b1899b | [
"Apache-2.0"
] | null | null | null | modules/clientnotify.cpp | md-5/znc | 39c741fcd2307d707a0d1bebbed3d80be9b1899b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2004-2015 ZNC, see the NOTICE file for details.
*
* 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 requi... | 30.528571 | 172 | 0.697005 | md-5 |
40d96ee8a0e461a4548b0f59d840c3dfb9b8bce8 | 1,021 | hpp | C++ | trunk/win/Source/Includes/Boost/fusion/container/generation.hpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 460 | 2016-01-13T12:49:34.000Z | 2022-02-20T04:10:40.000Z | external/windows/boost/include/boost/fusion/container/generation.hpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 24 | 2016-11-07T04:59:49.000Z | 2022-03-14T06:34:12.000Z | external/windows/boost/include/boost/fusion/container/generation.hpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 148 | 2016-01-17T03:16:43.000Z | 2022-03-17T12:20:36.000Z | /*=============================================================================
Copyright (c) 2001-2006 Joel de Guzman
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)
===================================... | 48.619048 | 82 | 0.670911 | dyzmapl |
40dbcfa342afd32f1a1720e306ca54d697957d1c | 1,251 | hpp | C++ | PUTM_EV_TELEMETRY_2022/Core/Inc/Data_Handling.hpp | PUT-Motorsport/PUTM_EV_TELEMETRY_2022 | 808ed3e7c9b4263b541a804233e5905f6a9b4240 | [
"Apache-2.0"
] | null | null | null | PUTM_EV_TELEMETRY_2022/Core/Inc/Data_Handling.hpp | PUT-Motorsport/PUTM_EV_TELEMETRY_2022 | 808ed3e7c9b4263b541a804233e5905f6a9b4240 | [
"Apache-2.0"
] | null | null | null | PUTM_EV_TELEMETRY_2022/Core/Inc/Data_Handling.hpp | PUT-Motorsport/PUTM_EV_TELEMETRY_2022 | 808ed3e7c9b4263b541a804233e5905f6a9b4240 | [
"Apache-2.0"
] | 1 | 2021-11-22T20:06:58.000Z | 2021-11-22T20:06:58.000Z | #ifndef INC_DATA_HANDLING_HPP_
#define INC_DATA_HANDLING_HPP_
#include <stdlib.h>
#include <cstring>
#include "stdio.h"
#include "main.h"
enum struct HeartBeat
{
Buffer1,
Buffer2,
Buffer3,
DEFAULT,
FRAME_BY_FRAME
};
class Data_management
{
private:
// Buffers containing data and states.
uint8_t DataBu... | 19.246154 | 80 | 0.723421 | PUT-Motorsport |
40dc24da71519bd60392ec90b5ecbbd3cae32a58 | 121,192 | cpp | C++ | src/game/shared/choreoevent.cpp | Planimeter/hl2sb-src | 8ffdae584f8e4837b7a1bd90286d199d934e4b7d | [
"MIT"
] | 15 | 2016-04-07T21:29:55.000Z | 2022-03-18T08:03:31.000Z | src/game/shared/choreoevent.cpp | Planimeter/hl2sb-src | 8ffdae584f8e4837b7a1bd90286d199d934e4b7d | [
"MIT"
] | 1 | 2021-12-05T23:46:21.000Z | 2021-12-06T15:48:33.000Z | src/game/shared/choreoevent.cpp | Planimeter/hl2sb-src | 8ffdae584f8e4837b7a1bd90286d199d934e4b7d | [
"MIT"
] | 4 | 2020-10-02T00:28:21.000Z | 2021-12-12T16:40:01.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "tier0/dbg.h"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "choreoevent.h"
#incl... | 26.842082 | 176 | 0.459494 | Planimeter |
40de540be43e454c19ddb6c11050259be9da9466 | 7,760 | cpp | C++ | root/stat.cpp | amcghie/watchman | 27ed35666681a48df42fc9a22f863fa99a2e1c85 | [
"Apache-2.0"
] | null | null | null | root/stat.cpp | amcghie/watchman | 27ed35666681a48df42fc9a22f863fa99a2e1c85 | [
"Apache-2.0"
] | 2 | 2020-02-27T11:22:22.000Z | 2021-05-20T10:23:12.000Z | root/stat.cpp | amcghie/watchman | 27ed35666681a48df42fc9a22f863fa99a2e1c85 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2012-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "watchman.h"
#include "InMemoryView.h"
#include "watchman_error_category.h"
namespace watchman {
void InMemoryView::statPath(
const std::shared_ptr<w_root_t>& root,
SyncView::LockedPtr& view,
PendingColl... | 32.605042 | 80 | 0.581959 | amcghie |
40e23dda4ca58a0ffe1944e246c378314124fa2a | 15,458 | cpp | C++ | CPUT/CPUT/CPUTModelOGL.cpp | GameTechDev/OpenGLESTessellation | b504ec95be716d1671dd55a61aa142d0c133fd1b | [
"Apache-2.0"
] | 13 | 2016-03-06T12:05:52.000Z | 2021-07-24T21:17:46.000Z | CPUT/CPUT/CPUTModelOGL.cpp | GameTechDev/OpenGLESTessellation | b504ec95be716d1671dd55a61aa142d0c133fd1b | [
"Apache-2.0"
] | null | null | null | CPUT/CPUT/CPUTModelOGL.cpp | GameTechDev/OpenGLESTessellation | b504ec95be716d1671dd55a61aa142d0c133fd1b | [
"Apache-2.0"
] | 8 | 2016-05-06T14:08:44.000Z | 2022-03-17T09:37:20.000Z | /////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Intel Corporation
//
// 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
//
// htt... | 41.111702 | 169 | 0.64355 | GameTechDev |
40e2d5dd4597b18047d34d0bbba22d245005e884 | 2,697 | cpp | C++ | DirectX3D11/Objects/Model/Ninja.cpp | GyumLee/DirectX3D11 | 6158874aa12e790747e6fd8a53de608071c49574 | [
"Apache-2.0"
] | null | null | null | DirectX3D11/Objects/Model/Ninja.cpp | GyumLee/DirectX3D11 | 6158874aa12e790747e6fd8a53de608071c49574 | [
"Apache-2.0"
] | null | null | null | DirectX3D11/Objects/Model/Ninja.cpp | GyumLee/DirectX3D11 | 6158874aa12e790747e6fd8a53de608071c49574 | [
"Apache-2.0"
] | null | null | null | #include "Framework.h"
Ninja::Ninja(UINT instanceID)
: instanceID(instanceID), state(IDLE)
{
collider = new SphereCollider();
collider->tag = "NinjaCollider";
collider->Load();
hpBar = new ProgressBar("Textures/UI/hp_bar.png", "Textures/UI/hp_bar_BG.png");
//hpBar->scale *= 0.1f;
}
Ninja::~Ninja()
{
delete co... | 17.860927 | 80 | 0.661846 | GyumLee |
40e6f4f88b09cbbd105a90a790c1f776b71c5f93 | 7,678 | cpp | C++ | src/BayesFilters/src/GaussianMixture.cpp | mfkiwl/bayes-filters-lib | 8baabba1897bcc5634619fbc048bb5ab17a742da | [
"BSD-3-Clause"
] | 50 | 2017-04-12T09:02:54.000Z | 2022-02-15T20:01:35.000Z | src/BayesFilters/src/GaussianMixture.cpp | xEnVrE/bayes-filters-lib | 8baabba1897bcc5634619fbc048bb5ab17a742da | [
"BSD-3-Clause"
] | 79 | 2017-11-07T07:32:14.000Z | 2021-06-20T17:12:08.000Z | src/BayesFilters/src/GaussianMixture.cpp | xEnVrE/bayes-filters-lib | 8baabba1897bcc5634619fbc048bb5ab17a742da | [
"BSD-3-Clause"
] | 23 | 2017-05-07T01:47:39.000Z | 2022-02-28T10:15:59.000Z | /*
* Copyright (C) 2016-2019 Istituto Italiano di Tecnologia (IIT)
*
* This software may be modified and distributed under the terms of the
* BSD 3-Clause license. See the accompanying LICENSE file for details.
*/
#include <BayesFilters/GaussianMixture.h>
using namespace bfl;
using namespace Eigen;
GaussianMix... | 30.959677 | 128 | 0.700313 | mfkiwl |
40e7c855d098906bc67d132ecfd2f042c8d9318f | 9,466 | cpp | C++ | source/adios2/toolkit/query/XmlWorker.cpp | taniabanerjee/ADIOS2 | b32205071a22ea6319c34ed85fb1c47265c76a9d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | source/adios2/toolkit/query/XmlWorker.cpp | taniabanerjee/ADIOS2 | b32205071a22ea6319c34ed85fb1c47265c76a9d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | source/adios2/toolkit/query/XmlWorker.cpp | taniabanerjee/ADIOS2 | b32205071a22ea6319c34ed85fb1c47265c76a9d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include "Worker.h"
#include "adios2/helper/adiosLog.h"
#include "adios2/helper/adiosXMLUtil.h"
#include <pugixml.hpp>
namespace adios2
{
namespace query
{
void XmlWorker::ParseMe()
{
auto lf_FileContents = [&](const std::string &configXML) -> std::string {
std::ifstream fileStream(configXML);
if... | 36.407692 | 80 | 0.541728 | taniabanerjee |
40eae702315e8a8987a648df453c2b8dfc34299c | 218 | hpp | C++ | Factory/include/Factory.hpp | crepuscularlight/DesignPattern | a561e2ff476f86c55f855c87b2ae6d9059be1ed0 | [
"MIT"
] | null | null | null | Factory/include/Factory.hpp | crepuscularlight/DesignPattern | a561e2ff476f86c55f855c87b2ae6d9059be1ed0 | [
"MIT"
] | null | null | null | Factory/include/Factory.hpp | crepuscularlight/DesignPattern | a561e2ff476f86c55f855c87b2ae6d9059be1ed0 | [
"MIT"
] | null | null | null | //
// Created by liudiyang1998 on 13.04.21.
//
#ifndef FACTORY_FACTORY_H
#define FACTORY_FACTORY_H
#include "LeiFeng.h"
class Factory {
public:
virtual LeiFeng* createLeiFeng()=0;
};
#endif //FACTORY_FACTORY_H
| 13.625 | 40 | 0.729358 | crepuscularlight |
40ed18ed5d8f20d9348cc350e3106ca6e8cb3801 | 3,686 | cpp | C++ | src/chrono/physics/ChNodeXYZ.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | src/chrono/physics/ChNodeXYZ.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | src/chrono/physics/ChNodeXYZ.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 34.773585 | 106 | 0.610147 | lucasw |
40ede24a47a7e4ef4ea39f532d744d241801d6e5 | 1,572 | cpp | C++ | sunglasses/src/Scripting/LuaPrimitives.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | 1 | 2016-04-01T02:21:27.000Z | 2016-04-01T02:21:27.000Z | sunglasses/src/Scripting/LuaPrimitives.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | 49 | 2015-07-08T13:48:06.000Z | 2017-06-27T01:40:51.000Z | sunglasses/src/Scripting/LuaPrimitives.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | null | null | null | // Copyright 2016 Jonathan Buchanan.
// This file is part of Sunglasses, which is licensed under the MIT License.
// See LICENSE.md for details.
#include <sunglasses/Scripting/LuaPrimitives.h>
namespace sunglasses {
namespace Scripting {
template<> int getFromStack(lua_State *l, int index) {
return lua_to... | 26.644068 | 76 | 0.646947 | jonathanbuchanan |
40ef077b8bff8414b22286841a8dfac7dd65deb8 | 1,649 | cc | C++ | tensorflow/core/tfrt/utils/error_util_test.cc | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | 3 | 2021-07-24T07:19:49.000Z | 2021-07-25T04:04:36.000Z | tensorflow/core/tfrt/utils/error_util_test.cc | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | null | null | null | tensorflow/core/tfrt/utils/error_util_test.cc | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 38.348837 | 80 | 0.654336 | ashutom |
40f10636b27f3620f1033ad997bb002bb04670da | 1,616 | cpp | C++ | Volume108/10827 - Maximum sum on a torus/10827.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | 1 | 2017-01-25T18:07:49.000Z | 2017-01-25T18:07:49.000Z | Volume108/10827 - Maximum sum on a torus/10827.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | Volume108/10827 - Maximum sum on a torus/10827.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <queue>
#include <set>
#define X first
#define Y second
#define pb push_back
#define ii pair<int,int>
#define ll long long
#define N 128
inline int MIN(int a,int b... | 18.363636 | 46 | 0.502475 | rstancioiu |
40f14e72764036e435e6ed78ad0b700bcb9b7d46 | 4,773 | hh | C++ | src/Distributed/VoronoiRedistributeNodes.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Distributed/VoronoiRedistributeNodes.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Distributed/VoronoiRedistributeNodes.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// VoronoiRedistributeNodes
//
// This algorithm uses the Voronoi tessellation to decide how to domain
// decompose our points. The idea is to relax a set of generator points into
// the SPH node distribution -- the generators are attrac... | 38.184 | 90 | 0.635659 | jmikeowen |
40f1d837ef4f8597647e34528cac584fa16008e2 | 2,118 | hpp | C++ | include/toy/memory/Allocator01.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | include/toy/memory/Allocator01.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | null | null | null | include/toy/memory/Allocator01.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z |
#pragma once
#include <cstdlib>
#include <cstring>
#include "toy/Math.hpp"
namespace toy{
namespace memory{
// The memory size of Allocator01 always base of 2.
template<typename T>
class Allocator01
{
public:
Allocator01()
{
;
}
~Allocator01()
{
free();
}
Allocator01(const Allocator01 &other... | 14.408163 | 61 | 0.580264 | ToyAuthor |
40f2d4edc294a2c8d6ce2e049e487625902b155e | 1,488 | cpp | C++ | src/utils/random.cpp | Thanduriel/func-renderer | 99582272d8e34cb6e2f6bc9735c8eba5076bb29c | [
"MIT"
] | 1 | 2019-01-27T17:54:45.000Z | 2019-01-27T17:54:45.000Z | src/utils/random.cpp | Thanduriel/func-renderer | 99582272d8e34cb6e2f6bc9735c8eba5076bb29c | [
"MIT"
] | null | null | null | src/utils/random.cpp | Thanduriel/func-renderer | 99582272d8e34cb6e2f6bc9735c8eba5076bb29c | [
"MIT"
] | null | null | null | #include "random.hpp"
#include <assert.h>
namespace Util{
Random::Random(uint32_t _seed)
{
m_state[0] = 0xaffeaffe ^ _seed;
m_state[1] = 0xf9b2a750 ^ (_seed * 0x804c8a24 + 0x68f699be);
m_state[2] = 0x485eac66 ^ (_seed * 0x0fe56638 + 0xc917c8ce);
m_state[3] = 0xcbd02714 ^ (_seed * 0x57571dae + 0xce2b3bd1);
... | 27.054545 | 76 | 0.508065 | Thanduriel |
40f5ed080c871109c885e4cd200331d257b41c20 | 10,502 | cpp | C++ | Hercules0.1/src/Hercules/Scene/Level/LevelManager.cpp | CletusG/Hercules-Engine | d2e2e5a04b5149fd7779f7a1598070593fcc574d | [
"Apache-2.0"
] | null | null | null | Hercules0.1/src/Hercules/Scene/Level/LevelManager.cpp | CletusG/Hercules-Engine | d2e2e5a04b5149fd7779f7a1598070593fcc574d | [
"Apache-2.0"
] | null | null | null | Hercules0.1/src/Hercules/Scene/Level/LevelManager.cpp | CletusG/Hercules-Engine | d2e2e5a04b5149fd7779f7a1598070593fcc574d | [
"Apache-2.0"
] | null | null | null | #include "hcpch.h"
#include "LevelManager.h"
namespace Hercules {
LevelData levelData;
const void Hercules::LevelManager::OpenLevel(const char* levelPath, std::string projectPath)
{
HC_STAT("Opening {0}", levelPath);
levelData.matColors.clear();
levelData.matShinies.clear();
SceneManager::GetEntites(... | 30.618076 | 109 | 0.602838 | CletusG |
40f6fe7c97ebc4db67dacb0954972a09f8d8e217 | 2,460 | cpp | C++ | WebKit/Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 1 | 2019-06-18T06:52:54.000Z | 2019-06-18T06:52:54.000Z | WebKit/Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | WebKit/Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2011 Hewlett-Packard Development Company, L.P. 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
* n... | 35.142857 | 115 | 0.761789 | JavaScriptTesting |
40f7c05a1763be34013bda382217301232b50fe7 | 3,949 | cpp | C++ | TemplePlus/fixes/light_load.cpp | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 69 | 2015-05-05T14:09:25.000Z | 2022-02-15T06:13:04.000Z | TemplePlus/fixes/light_load.cpp | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 457 | 2015-05-01T22:07:45.000Z | 2022-03-31T02:19:10.000Z | TemplePlus/fixes/light_load.cpp | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 25 | 2016-02-04T21:19:53.000Z | 2021-11-15T23:14:51.000Z | #include "stdafx.h"
#include "util/fixes.h"
#include <obj.h>
#include <temple_functions.h>
#include "gamesystems/timeevents.h"
#include <particles.h>
#include <gamesystems/gamesystems.h>
#include <gamesystems/map/sector.h>
#include <gamesystems/particlesystems.h>
/*
This is the fix for bug #104, which causes particle... | 29.470149 | 99 | 0.72474 | edoipi |
40f99ccf7408edf201d3985d87537b535ed68eac | 1,761 | ipp | C++ | implement/oglplus/enums/object_type_names.ipp | jnbrq/oglplus | 2e072e91292643e0871565ae5147584403846290 | [
"BSL-1.0"
] | null | null | null | implement/oglplus/enums/object_type_names.ipp | jnbrq/oglplus | 2e072e91292643e0871565ae5147584403846290 | [
"BSL-1.0"
] | null | null | null | implement/oglplus/enums/object_type_names.ipp | jnbrq/oglplus | 2e072e91292643e0871565ae5147584403846290 | [
"BSL-1.0"
] | null | null | null | // File implement/oglplus/enums/object_type_names.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/object_type.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2017 Matus Chochlik.
// Distributed under the Boost Software Licens... | 25.521739 | 73 | 0.776263 | jnbrq |
40fb78161ebbab40e852536757f7d8380de74454 | 118,110 | cpp | C++ | private/parser.cpp | kociap/vush2 | 4002afb9c86638ff9882a44b1010a13348eed664 | [
"MIT"
] | 6 | 2021-04-27T22:17:30.000Z | 2021-12-31T12:42:44.000Z | private/parser.cpp | kociap/vush2 | 4002afb9c86638ff9882a44b1010a13348eed664 | [
"MIT"
] | 1 | 2021-05-11T10:50:52.000Z | 2021-05-11T10:50:52.000Z | private/parser.cpp | kociap/vush2 | 4002afb9c86638ff9882a44b1010a13348eed664 | [
"MIT"
] | null | null | null | #include <parser.hpp>
#include <anton/optional.hpp>
#include <anton/string7_stream.hpp>
#include <anton/string7_view.hpp>
// TODO: When matching keywords, ensure that the keyword is followed by non-identifier character (Find a cleaner way).
// TODO: Figure out a way to match operators that use overlapping symbols (+ ... | 42.303009 | 159 | 0.53683 | kociap |
40fc507049c01c817acbcd05a85f57847877e8eb | 1,719 | cpp | C++ | 2015/Black_Box-RankTree-Treap.cpp | jasha64/jasha64 | 653881f0f79075a628f98857e77eac27aef1919d | [
"MIT"
] | null | null | null | 2015/Black_Box-RankTree-Treap.cpp | jasha64/jasha64 | 653881f0f79075a628f98857e77eac27aef1919d | [
"MIT"
] | null | null | null | 2015/Black_Box-RankTree-Treap.cpp | jasha64/jasha64 | 653881f0f79075a628f98857e77eac27aef1919d | [
"MIT"
] | 1 | 2020-06-15T07:58:13.000Z | 2020-06-15T07:58:13.000Z | #include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
const int N = 30007;
struct Node
{
int p, v, s;
Node* ch[2];
Node(int v):v(v) {p = rand(); ch[0] = ch[1] = NULL; s = 1;}
int cmp(int x) const
{
if (x == v) return -1;
return x < v ? 0 : 1;
}
void Maintain()
{
s = 1;
if (ch[0... | 18.094737 | 85 | 0.456079 | jasha64 |
40fc8a3500e2175276cbde8bb96f4ecb566f3421 | 8,730 | cpp | C++ | 9_1_TP2_SideScrollingFighter/account_model.cpp | Arganancer/SideScrollingFighter | 667f502cdce887f154b5e9e32a28f570aa949db0 | [
"MIT"
] | null | null | null | 9_1_TP2_SideScrollingFighter/account_model.cpp | Arganancer/SideScrollingFighter | 667f502cdce887f154b5e9e32a28f570aa949db0 | [
"MIT"
] | null | null | null | 9_1_TP2_SideScrollingFighter/account_model.cpp | Arganancer/SideScrollingFighter | 667f502cdce887f154b5e9e32a28f570aa949db0 | [
"MIT"
] | null | null | null | #include "account_model.h"
#include <fstream>
#include <tuple>
std::string account_model::accounts_file_location_;
sf::String account_model::current_user_internal_representation_;
sf::String account_model::current_user_screen_name_;
using namespace std;
bool account_model::init()
{
current_user_internal_representat... | 28.07074 | 123 | 0.686712 | Arganancer |
40fed3f5a24832f1966e65bd113d10f7cf450340 | 5,283 | cpp | C++ | Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_stitching_plugin.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | 1 | 2022-01-19T03:07:22.000Z | 2022-01-19T03:07:22.000Z | Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_stitching_plugin.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | null | null | null | Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_stitching_plugin.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | null | null | null | #include <QApplication>
#include <QMessageBox>
#include <QMainWindow>
#include "Kernel_type.h"
#include "Scene_surface_mesh_item.h"
#include "Scene_polylines_item.h"
#include <CGAL/Three/Polyhedron_demo_plugin_helper.h>
#include <CGAL/Three/Polyhedron_demo_plugin_interface.h>
#include <CGAL/Polygon_mesh_processing/st... | 32.611111 | 129 | 0.744085 | ffteja |
dc00533bb54e9c48d6a576582fdb11acc068166e | 1,545 | cc | C++ | components/ntp_tiles/json_unsafe_parser.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | components/ntp_tiles/json_unsafe_parser.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | components/ntp_tiles/json_unsafe_parser.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/ntp_tiles/json_unsafe_parser.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/json/json_parser.h"
#include "base/... | 36.785714 | 78 | 0.624595 | google-ar |
dc02062a536129a1a7d87e8adfeb18bcfa3ca812 | 3,703 | cpp | C++ | td08/src/main.cpp | asassoye/ESI-DEV3-TD | 074c7ec4c81bcf3a927079202050d5d05e4e29ca | [
"MIT"
] | 4 | 2020-12-31T14:57:20.000Z | 2020-12-31T15:15:49.000Z | td08/src/main.cpp | asassoye/ESI-DEV3-TD | 074c7ec4c81bcf3a927079202050d5d05e4e29ca | [
"MIT"
] | null | null | null | td08/src/main.cpp | asassoye/ESI-DEV3-TD | 074c7ec4c81bcf3a927079202050d5d05e4e29ca | [
"MIT"
] | 1 | 2021-01-03T13:23:14.000Z | 2021-01-03T13:23:14.000Z | /**
* @file main.cpp
* @author Andrew SASSOYE
*/
#include <iostream>
#include <algorithm>
#include <functional>
#include "../resources/utilscpp.hpp"
#include "../src/sign.hpp"
#include "../resources/data_fraction.h"
#include "fraction_constexpr.hpp"
using namespace std;
using namespace g54327;
const size_t N_FRACT... | 26.45 | 104 | 0.594923 | asassoye |
dc07c6a88c77000ad10ff33d1bc6243b2c0bf212 | 703 | cpp | C++ | Source/Engine/Old/Private/Component.cpp | cyj0912/Construct3 | 7a24c59e830e26762e02af98419392b881198933 | [
"WTFPL"
] | null | null | null | Source/Engine/Old/Private/Component.cpp | cyj0912/Construct3 | 7a24c59e830e26762e02af98419392b881198933 | [
"WTFPL"
] | null | null | null | Source/Engine/Old/Private/Component.cpp | cyj0912/Construct3 | 7a24c59e830e26762e02af98419392b881198933 | [
"WTFPL"
] | null | null | null | #include "Component.h"
C3_NAMESPACE_BEGIN
CBaseComponent::CBaseComponent()
{
RefCount = 0;
}
void CBaseComponent::AddRef()
{
RefCount++;
}
void CBaseComponent::Release()
{
auto count = RefCount--;
if (count == 0)
delete this;
}
TypeId CBaseComponent::RealType()
{
return GetTypeId<IComponent>();
}
bool CBase... | 13.264151 | 62 | 0.692745 | cyj0912 |
dc088ec29b504b6cba126846e4f5513a380338bd | 2,191 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/geometry/index/detail/rtree/node/pairs.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | ios/Pods/boost-for-react-native/boost/geometry/index/detail/rtree/node/pairs.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | ios/Pods/boost-for-react-native/boost/geometry/index/detail/rtree/node/pairs.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | // Boost.Geometry Index
//
// Pairs intended to be used internally in nodes.
//
// Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
//
// Use, modification and distribution is 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... | 30.430556 | 138 | 0.740301 | Harshitha91 |