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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e128842e9679a7a9f120e9cc06a7996beb353e27 | 1,175 | hh | C++ | config/example/GenerateEmissionProfiles/WCSimEmissionProfileGenerator.hh | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | config/example/GenerateEmissionProfiles/WCSimEmissionProfileGenerator.hh | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | config/example/GenerateEmissionProfiles/WCSimEmissionProfileGenerator.hh | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | /*
* WCSimEmissionProfileGenerator.hh
*
* Created on: 28 Mar 2014
* Author: andy
*/
#ifndef WCSIMEMISSIONPROFILEGENERATOR_HH_
#define WCSIMEMISSIONPROFILEGENERATOR_HH_
#include "TChain.h"
#include "TString.h"
#include <map>
class WCSimEmissionProfileGenerator
{
public:
WCSimEmissionProfileGenerator( ... | 21.759259 | 79 | 0.710638 | chipsneutrino |
e12d58f5e7382a2786a0d000523d164e428a914b | 575 | cpp | C++ | src/linear/tests/testNormalize.cpp | moddyz/LinearAlgebra | ca44a8aef1c1ef3abba33b3fd8ebd83c000e4b60 | [
"MIT"
] | 1 | 2020-06-29T00:25:37.000Z | 2020-06-29T00:25:37.000Z | src/linear/tests/testNormalize.cpp | moddyz/LinearAlgebra | ca44a8aef1c1ef3abba33b3fd8ebd83c000e4b60 | [
"MIT"
] | null | null | null | src/linear/tests/testNormalize.cpp | moddyz/LinearAlgebra | ca44a8aef1c1ef3abba33b3fd8ebd83c000e4b60 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <linear/normalize.h>
#include <iostream>
TEST_CASE( "Matrix_Normalize" )
{
CHECK( linear::Normalize( linear::Matrix< 3, 1 >(
1.0f,
0.0f,
0.0f
)
) == linear::Matrix< 3, 1 >(
1.0f,
0.0f,
0.0f
... | 17.424242 | 53 | 0.401739 | moddyz |
e130a89fd7897cf1688ff2e25323d8d3dee58d20 | 37,499 | cpp | C++ | ROBIT_vision2/src/vision.cpp | zang09/turtlebot3_autorace_ROBIT2_src | adc7225b7e0e5f822e62746beba16cd5a0b20214 | [
"Apache-2.0"
] | null | null | null | ROBIT_vision2/src/vision.cpp | zang09/turtlebot3_autorace_ROBIT2_src | adc7225b7e0e5f822e62746beba16cd5a0b20214 | [
"Apache-2.0"
] | null | null | null | ROBIT_vision2/src/vision.cpp | zang09/turtlebot3_autorace_ROBIT2_src | adc7225b7e0e5f822e62746beba16cd5a0b20214 | [
"Apache-2.0"
] | null | null | null | #include "../include/ROBIT_vision2/vision.hpp"
using namespace cv;
using namespace std;
using namespace cv::xfeatures2d;
int sign_state;
string sign_value;
int vision_line::r_line_xpos = 0;
int vision_line::l_line_xpos = 0;
bool vision_line::r_line_detect = false;
bool vision_line::l_line_detect = false;
bool visio... | 35.343073 | 164 | 0.537694 | zang09 |
e1330234abe6a638ba2cd7650bd6a42b47176f81 | 1,478 | cpp | C++ | Library/Sources/Stroika/Foundation/Time/Realtime.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Foundation/Time/Realtime.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Foundation/Time/Realtime.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Debug/Assertions.h"
#include "Realtime.h"
using namespace Stroika;
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Time;
namespace {
template <class Clock, class D... | 38.894737 | 155 | 0.609608 | SophistSolutions |
e1365dfa5d5aa5062db84d5a24d165de96db1604 | 2,572 | cpp | C++ | tests/tx_edit_multisig_test.cpp | MinterTeam/cpp-minter | af657bb21d4b68429948f8d34fd642f874fe412e | [
"MIT"
] | 7 | 2019-06-26T11:37:49.000Z | 2020-11-04T21:47:19.000Z | tests/tx_edit_multisig_test.cpp | MinterTeam/cpp-minter | af657bb21d4b68429948f8d34fd642f874fe412e | [
"MIT"
] | 1 | 2020-02-29T10:41:58.000Z | 2020-03-02T16:21:40.000Z | tests/tx_edit_multisig_test.cpp | MinterTeam/cpp-minter | af657bb21d4b68429948f8d34fd642f874fe412e | [
"MIT"
] | 5 | 2019-08-22T16:24:18.000Z | 2020-03-01T15:34:08.000Z | /*!
* minter_tx.
* tx_edit_multisig_owners_data_test.cpp
*
* \date 2020
* \author Eduard Maximovich (edward.vstock@gmail.com)
* \link https://github.com/edwardstock
*/
#include <gtest/gtest.h>
#include <minter/tx/tx.h>
#include <minter/tx/tx_builder.h>
#include <minter/tx/tx_edit_multisig.h>
TEST(TxEditMulti... | 44.344828 | 290 | 0.721229 | MinterTeam |
e137ffb45f24d9ae917b0deee733482d3830e316 | 3,121 | cpp | C++ | project/race3d/src/WorldLoader/CStatic.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | 5 | 2015-01-05T17:03:00.000Z | 2016-04-07T07:43:32.000Z | project/race3d/src/WorldLoader/CStatic.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | null | null | null | project/race3d/src/WorldLoader/CStatic.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | null | null | null | #include "CStatic.h"
#include "WorldLoader.h"
#include "IwSerialise.h"
#include "IwTextParserITX.h"
//----------------------------------------------------------------------------------------------
IW_MANAGED_IMPLEMENT_FACTORY( CStatic );
//----------------------------------------------------------------------------... | 24.007692 | 96 | 0.533483 | maximbilan |
e13b96f6a90ddd763b9221f52f19a1dbdf8ff558 | 7,141 | cpp | C++ | cpp/open3d/ml/tensorflow/misc/InvertNeighborsListOps.cpp | zhengminxu/Open3D | e17648468030018155de1e225a86dbb56fed1dec | [
"MIT"
] | 1 | 2021-08-06T06:16:08.000Z | 2021-08-06T06:16:08.000Z | cpp/open3d/ml/tensorflow/misc/InvertNeighborsListOps.cpp | zhengminxu/Open3D | e17648468030018155de1e225a86dbb56fed1dec | [
"MIT"
] | null | null | null | cpp/open3d/ml/tensorflow/misc/InvertNeighborsListOps.cpp | zhengminxu/Open3D | e17648468030018155de1e225a86dbb56fed1dec | [
"MIT"
] | 1 | 2021-08-05T13:51:10.000Z | 2021-08-05T13:51:10.000Z | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... | 45.775641 | 88 | 0.631984 | zhengminxu |
e13e00709b3260668c2d30ae071b6bc79fc39bbc | 234 | cpp | C++ | test/algos/is_valid_parentheses.cpp | paulpan05/algodts-cpp | db02a8d18668afb004bc63a1814fcc6fe32729ef | [
"Apache-2.0"
] | null | null | null | test/algos/is_valid_parentheses.cpp | paulpan05/algodts-cpp | db02a8d18668afb004bc63a1814fcc6fe32729ef | [
"Apache-2.0"
] | null | null | null | test/algos/is_valid_parentheses.cpp | paulpan05/algodts-cpp | db02a8d18668afb004bc63a1814fcc6fe32729ef | [
"Apache-2.0"
] | null | null | null | #include <algodts/algos/is_valid_parentheses.hpp>
#include <testing/catch.hh>
using namespace std;
TEST_CASE("Testing parentheses validity", "[parentheses]") {
string input = "{}[]]";
REQUIRE_FALSE(isValidParentheses(input));
}
| 23.4 | 60 | 0.739316 | paulpan05 |
e1410dac1ae4ebe9b007f4433f27dfab64cf3582 | 283 | hpp | C++ | MainGUI.hpp | erurami/connect4-game | e6e1a695e92acc1aa074573e302a1f4324882bfd | [
"MIT"
] | null | null | null | MainGUI.hpp | erurami/connect4-game | e6e1a695e92acc1aa074573e302a1f4324882bfd | [
"MIT"
] | null | null | null | MainGUI.hpp | erurami/connect4-game | e6e1a695e92acc1aa074573e302a1f4324882bfd | [
"MIT"
] | null | null | null |
#pragma once
// (C)onnect(4) (G)UI (W)indow (M)essage
#define _C4GWM_REDRAW (WM_APP + 1)
#define CONNECT4_CELL_GAP (cell_width / 15)
#define CONNECT4_CELL_ROUNDNESS (cell_width / 10)
int _Connect4GuiRegisterMainGuiWndClass(LPTSTR strWndClassName);
#include "MainGUI.ipp"
| 20.214286 | 64 | 0.749117 | erurami |
e1418434cc43ae7aee933c4b6651a4a029920691 | 1,629 | cc | C++ | components/dom_distiller/webui/dom_distiller_ui.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2017-04-05T01:51:34.000Z | 2018-02-15T03:11:54.000Z | components/dom_distiller/webui/dom_distiller_ui.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-12-13T19:44:12.000Z | 2021-12-13T19:44:12.000Z | components/dom_distiller/webui/dom_distiller_ui.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2017-04-05T01:52:03.000Z | 2022-02-13T17:58:45.000Z | // Copyright 2013 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/dom_distiller/webui/dom_distiller_ui.h"
#include "components/dom_distiller/core/dom_distiller_constants.h"
#include "components/dom_... | 37.883721 | 75 | 0.769184 | nagineni |
e141e6945513770a9978fc6411ff503e774761ee | 787 | cpp | C++ | Operators.Test/DomainBinaryOperatorTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Operators.Test/DomainBinaryOperatorTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Operators.Test/DomainBinaryOperatorTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2021 DNV AS
//
// 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
#include <gtest/gtest.h>
#include "Operators\BinaryOperators.h"
#include "TestDomain.h"
using namespace DNVS::MoFa::Operators;
T... | 37.47619 | 74 | 0.749682 | dnv-opensource |
e1439f9a06f47e3a8cc6c01075d92a708525107f | 9,705 | cpp | C++ | src/veil/proofofstake/stakeinput.cpp | jskitty-repos/veil | 075f51693a5ac39e4c8bf22a9f12cd851fb29a1c | [
"MIT"
] | 1 | 2020-07-08T18:01:12.000Z | 2020-07-08T18:01:12.000Z | src/veil/proofofstake/stakeinput.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | 1 | 2019-09-25T12:58:45.000Z | 2019-09-25T12:58:45.000Z | src/veil/proofofstake/stakeinput.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2019 The PIVX developers
// Copyright (c) 2019 The Veil developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <tinyformat.h>
#include "veil/zerocoin/accumulators.h"
#include "veil/zerocoin/min... | 33.350515 | 130 | 0.691705 | jskitty-repos |
e14a49912aaf687d395cdc6f2e90f54df0eca2c9 | 147 | hpp | C++ | src/eepp/helper/haikuttf/haikuttf.hpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/helper/haikuttf/haikuttf.hpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/helper/haikuttf/haikuttf.hpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #ifndef HAIKUTTF_HPP
#define HAIKUTTF_HPP
#include "hkbase.hpp"
#include "hkglyph.hpp"
#include "hkfont.hpp"
#include "hkfontmanager.hpp"
#endif
| 14.7 | 28 | 0.768707 | weimingtom |
e14d22ace951c3fdd281459a7eb1c8bf9af37ed7 | 4,719 | cpp | C++ | Source/Beezer/CommentWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | 3 | 2020-08-20T18:57:52.000Z | 2021-12-13T03:11:19.000Z | Source/Beezer/CommentWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | 22 | 2020-02-24T21:40:44.000Z | 2021-04-18T15:07:15.000Z | Source/Beezer/CommentWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2002 Ramshankar (aka Teknomancer).
// Copyright (c) 2011 Chris Roberts.
// All rights reserved.
#include "CommentWindow.h"
#include "BitmapPool.h"
#include "CommonStrings.h"
#include "MsgConstants.h"
#include "Preferences.h"
#include "PrefsFields.h"
#include "S... | 31.671141 | 133 | 0.661369 | Teknomancer |
e14e08a93b37e05b93563f1fb300c9a6b6fb6bf4 | 2,483 | cpp | C++ | libs/interprocess/example/comp_doc_anonymous_conditionA.cpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | null | null | null | libs/interprocess/example/comp_doc_anonymous_conditionA.cpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | null | null | null | libs/interprocess/example/comp_doc_anonymous_conditionA.cpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2006-2009. 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)
//
// See http://www.boost.org/libs/i... | 31.0375 | 79 | 0.564237 | Ron2014 |
e14f4e7cc46dadd7951fa61d84800e2094febbde | 1,560 | cpp | C++ | libs/ebpfnetsh/links.cpp | fengjixuchui/ebpf-for-windows | 4553bfff39ccd4c0cfb9a18560dbeeff04cf3084 | [
"MIT"
] | null | null | null | libs/ebpfnetsh/links.cpp | fengjixuchui/ebpf-for-windows | 4553bfff39ccd4c0cfb9a18560dbeeff04cf3084 | [
"MIT"
] | 1 | 2022-03-26T16:17:41.000Z | 2022-03-26T16:17:41.000Z | libs/ebpfnetsh/links.cpp | fengjixuchui/ebpf-for-windows | 4553bfff39ccd4c0cfb9a18560dbeeff04cf3084 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation
// SPDX-License-Identifier: MIT
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <iostream>
#include <iomanip>
#include <netsh.h>
#include <string>
#include <vector>
#include "bpf/bpf.h"
#include "ebpf_api.h"
#include "ebpf_windows.h"
#include "platform.h"
#include "lin... | 26.440678 | 106 | 0.632051 | fengjixuchui |
e14fd80d0b948e439e79726700ab30ccc69c46ba | 4,823 | cpp | C++ | datastore/common/objects/Interface.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datastore/common/objects/Interface.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datastore/common/objects/Interface.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 13 | 2019-12-01T21:32:33.000Z | 2022-03-28T15:40:02.000Z | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 28.370588 | 80 | 0.676135 | cmwill |
e155b496354b2ac8bad5b7216ef85e6567991486 | 3,776 | cpp | C++ | src/WAM/choice.cpp | ThermalSpan/russWAM | c237bb782a83f7f6e2ccfa50800a55523ca22f67 | [
"MIT"
] | null | null | null | src/WAM/choice.cpp | ThermalSpan/russWAM | c237bb782a83f7f6e2ccfa50800a55523ca22f67 | [
"MIT"
] | null | null | null | src/WAM/choice.cpp | ThermalSpan/russWAM | c237bb782a83f7f6e2ccfa50800a55523ca22f67 | [
"MIT"
] | null | null | null | //
// choice.cpp
// russWAM
//
// Created by Russell Wilhelm Bentley on 12/3/15.
// Copyright (c) 2015 Russell Wilhelm Bentley.
// Distributed under the MIT License
//
#include "WAM.h"
void WAM::try_me_else (int labelId) {
// Allocate a new choice frame
m_B = new ChoiceFrame (m_arity, m_B);
// Save ... | 22.746988 | 61 | 0.583951 | ThermalSpan |
e155c88f619ea2ec117f7c08b25e42ba57240981 | 307 | cpp | C++ | Good Bye 2018/Codeforces 1091A.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | Good Bye 2018/Codeforces 1091A.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | Good Bye 2018/Codeforces 1091A.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int y, b, r, mini;
scanf("%d %d %d", &y, &b, &r);
mini = min(y, min(b, r));
if(mini == r || (mini == y && r - y == 1)) printf("%d", 3*r - 3);
else if(mini == b) printf("%d", 3*b);
else printf("%d", 3*y + 3);
return 0;
} | 23.615385 | 69 | 0.456026 | Jvillegasd |
e1578efdc91db357ddbe4f27aec066d8ded4a18c | 3,330 | hpp | C++ | src/RealTimeClock.hpp | PhilPalmer/REAL | c56b9d96f6028295556a6e8bf73a56df8975f189 | [
"MIT"
] | 2 | 2017-02-18T18:54:28.000Z | 2017-06-30T11:17:28.000Z | src/RealTimeClock.hpp | PhilPalmer/REAL | c56b9d96f6028295556a6e8bf73a56df8975f189 | [
"MIT"
] | 1 | 2018-11-23T17:17:06.000Z | 2018-11-23T19:47:20.000Z | src/RealTimeClock.hpp | PhilPalmer/REAL | c56b9d96f6028295556a6e8bf73a56df8975f189 | [
"MIT"
] | 2 | 2015-11-26T08:40:09.000Z | 2016-04-01T07:01:54.000Z | /**
REAL: An efficient REad ALigner for next generation sequencing reads.
Copyright (C) 2010 German Tischler, Solon Pissis
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either v... | 26.015625 | 73 | 0.645045 | PhilPalmer |
e1594cd3ddb25606a9a6b52147463f6e2be92738 | 1,584 | hh | C++ | graphs/SubwordGraph.hh | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | graphs/SubwordGraph.hh | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | graphs/SubwordGraph.hh | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | #ifndef SUBWORD_GRAPH_HH
#define SUBWORD_GRAPH_HH
#include <map>
#include <fstream>
#include <vector>
#include <set>
#include "defs.hh"
#include "Hmm.hh"
#include "DecoderGraph.hh"
class SubwordGraph : public DecoderGraph {
public:
SubwordGraph();
SubwordGraph(const std::set<std::string> &subwords,
... | 35.2 | 92 | 0.535354 | aalto-speech |
e15b5953533d93576e70364f8069de38dbd17aed | 4,736 | cpp | C++ | accelerators/vmxc/src/transcoders/cout_live_reg.cpp | vmware/vmaccel | a5be7b3c650db203febb331c18bc9c4870671f27 | [
"BSD-2-Clause"
] | 3 | 2019-06-20T18:45:16.000Z | 2022-03-11T19:09:50.000Z | accelerators/vmxc/src/transcoders/cout_live_reg.cpp | ConnectionMaster/vmaccel | 70c4cc7b302a4f490926f98cee7bbcb8022e3488 | [
"BSD-2-Clause"
] | 2 | 2019-12-19T02:52:43.000Z | 2020-04-14T06:33:36.000Z | accelerators/vmxc/src/transcoders/cout_live_reg.cpp | ConnectionMaster/vmaccel | 70c4cc7b302a4f490926f98cee7bbcb8022e3488 | [
"BSD-2-Clause"
] | 3 | 2019-04-23T11:59:45.000Z | 2022-03-11T19:09:49.000Z | /******************************************************************************
Copyright (c) 2016-2019 VMware, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source cod... | 34.318841 | 80 | 0.622889 | vmware |
e15df9eca5583c72174b0326a963b1fd05dd8f3c | 693 | cpp | C++ | src/ast/VariableExpression.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | 1 | 2019-06-17T07:16:01.000Z | 2019-06-17T07:16:01.000Z | src/ast/VariableExpression.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | src/ast/VariableExpression.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | /*
* soyac - Soya Programming Language compiler
* Copyright (c) 2009 Denis Washington <dwashington@gmx.net>
*
* This file is distributed under the terms of the MIT license.
* See LICENSE.txt for details.
*/
#include <cassert>
#include "VariableExpression.hpp"
#include "Visitor.hpp"
namespace soyac {
namespace a... | 14.744681 | 63 | 0.707071 | denisw |
ff168f1878a068b6883257ca38f442fca39e1cbf | 240 | cpp | C++ | kernel/sched.cpp | mrtska/StarRing | b9a0d7aa043f23c8b789b23983ce74ee0d4bbdcc | [
"MIT"
] | 6 | 2015-02-01T21:12:17.000Z | 2016-07-31T14:32:11.000Z | kernel/sched.cpp | mrtska/StarRing | b9a0d7aa043f23c8b789b23983ce74ee0d4bbdcc | [
"MIT"
] | null | null | null | kernel/sched.cpp | mrtska/StarRing | b9a0d7aa043f23c8b789b23983ce74ee0d4bbdcc | [
"MIT"
] | null | null | null |
#include <sched.h>
#include <slaballocator.h>
void schedule::sched_init() {
struct process *init = new struct process;
init->pid = 0;
}
void schedule::scheduling() {
}
| 3.037975 | 43 | 0.495833 | mrtska |
ff16be60f949d4fe78eaa50dd87b4357a8d38a5f | 839 | cc | C++ | 15_ImportantLibs/CmdParser/main.cc | ultrazongo/UdemyCpp | 729d7f8a1b3fbd4fe16612ecd638340cfc3847a7 | [
"MIT"
] | null | null | null | 15_ImportantLibs/CmdParser/main.cc | ultrazongo/UdemyCpp | 729d7f8a1b3fbd4fe16612ecd638340cfc3847a7 | [
"MIT"
] | null | null | null | 15_ImportantLibs/CmdParser/main.cc | ultrazongo/UdemyCpp | 729d7f8a1b3fbd4fe16612ecd638340cfc3847a7 | [
"MIT"
] | null | null | null | #include <iostream>
#include "cxxopts.hpp"
constexpr int MAJOR_VERSION = 1;
constexpr int MINOR_VERSION = 0;
constexpr int PATCH_VERSION = 0;
int main(int argc, char **argv)
{
cxxopts::Options options("Name", "Description");
options.add_options()("v,version", "Print version");
options.add_options()("h,h... | 23.971429 | 102 | 0.61025 | ultrazongo |
ff17778b96206c9b82bd06c2f6822ba8506e1bc4 | 424 | cpp | C++ | USTCOJ/USTC1003.cpp | Sunrisepeak/AC-Online-Judge | 5b5ea2eefa2ba48d718957720158fb79134a8fa7 | [
"Apache-2.0"
] | 3 | 2019-03-17T11:47:05.000Z | 2021-12-10T03:41:42.000Z | USTCOJ/USTC1003.cpp | Sunrisepeak/AC-Online-Judge | 5b5ea2eefa2ba48d718957720158fb79134a8fa7 | [
"Apache-2.0"
] | null | null | null | USTCOJ/USTC1003.cpp | Sunrisepeak/AC-Online-Judge | 5b5ea2eefa2ba48d718957720158fb79134a8fa7 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
int main()
{
int n,s,a,b,i;
while(std::cin>>n)
{
s=0;
a=1;
b=1;
if(n>2){
for(i=3;i<=n;i++)
{
s=a+b;
a=b;
b=s;
}
std::cout<<"The Fibonacci number for "<<n<<" is "<<s<<std::endl;
}
else{
if(n==0)
std::cout<<"The Fibonacci number for "<<n<<" is "<<0<<std::en... | 15.142857 | 68 | 0.478774 | Sunrisepeak |
ff19d6bbbe62b9934664a03a3ae937786930bb72 | 2,575 | cpp | C++ | RType.Common/Sources/Components/Drawable.cpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | RType.Common/Sources/Components/Drawable.cpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | RType.Common/Sources/Components/Drawable.cpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | #include <Components/Drawable.hpp>
#include "Logger.hpp"
Drawable::Drawable(const DrawableType& type, const std::string& file, const sf::IntRect& spriteRect, const sf::IntRect& textureRect)
{
// TODO: Check result.
m_Texture.loadFromFile(file, textureRect);
m_SpriteRect = spriteRect;
m_Type = type;
m_Sprite.se... | 20.766129 | 132 | 0.747961 | Mikyan0207 |
ff23ce8af8fb037f7dc8ba4f270f69f985612cb1 | 280 | cpp | C++ | CodeForces/835/B - The number on the board.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-02-24T06:45:56.000Z | 2018-05-29T04:47:39.000Z | CodeForces/835/B - The number on the board.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | null | null | null | CodeForces/835/B - The number on the board.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-06-28T09:53:27.000Z | 2022-03-23T13:29:57.000Z | #include <bits/stdc++.h>
using namespace std;
int sum,k,l,ans;
char s[1123456];
int main(){
cin>>k>>s;
l=strlen(s);
for(int i=0;i<l;i++)
sum+=(s[i]-'0');
if(sum<k){
sort(s,s+l);
int i=0;
while(sum<k&&i<l)
sum+=9-(s[i++]-'0'),ans++;
}
cout<<ans<<endl;
return 0;
} | 15.555556 | 29 | 0.535714 | QAQrz |
ff27ecda8831c0319c4209ed60ad9655faf96af9 | 1,257 | cpp | C++ | host/MidiUart/MidiUartHost.cpp | anupam19/mididuino | 27c30f586a8d61381309434ed05b4958c7727402 | [
"BSD-3-Clause"
] | null | null | null | host/MidiUart/MidiUartHost.cpp | anupam19/mididuino | 27c30f586a8d61381309434ed05b4958c7727402 | [
"BSD-3-Clause"
] | null | null | null | host/MidiUart/MidiUartHost.cpp | anupam19/mididuino | 27c30f586a8d61381309434ed05b4958c7727402 | [
"BSD-3-Clause"
] | null | null | null | #include <unistd.h>
#include "WProgram.h"
#include "MidiUartHost.h"
MidiClass Midi, Midi2;
MidiUartHostClass MidiUart;
void MidiUartHostSysexListener::end() {
// printf("send sysex of %d bytes\n", sysex->len);
uint8_t buf[sysex->len +2];
buf[0] = 0xF0;
m_memcpy(buf + 1, sysex->data, sysex->len);
buf[sysex->len... | 20.606557 | 77 | 0.672235 | anupam19 |
ff2b230465ab648c9a9854158832d8bd9fac4b5c | 6,908 | cpp | C++ | libraries/plugins/blockchain_history/account_history_api.cpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/plugins/blockchain_history/account_history_api.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/plugins/blockchain_history/account_history_api.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #include <scorum/blockchain_history/account_history_api.hpp>
#include <scorum/blockchain_history/blockchain_history_plugin.hpp>
#include <scorum/blockchain_history/schema/history_object.hpp>
#include <scorum/app/api_context.hpp>
#include <scorum/app/application.hpp>
#include <scorum/blockchain_history/schema/operation_... | 39.474286 | 119 | 0.633324 | scorum |
ff2beaf5448ece984586455a7d66ca52923bf014 | 876 | cpp | C++ | src/RocketEngine/component/TransformComponent.cpp | walthill/Rocket3D | 45ba128699b354f21db04f4b114c81504c8e0771 | [
"Apache-2.0"
] | null | null | null | src/RocketEngine/component/TransformComponent.cpp | walthill/Rocket3D | 45ba128699b354f21db04f4b114c81504c8e0771 | [
"Apache-2.0"
] | 3 | 2019-12-07T01:28:17.000Z | 2020-02-05T16:57:33.000Z | src/RocketEngine/component/TransformComponent.cpp | walthill/Rocket3D | 45ba128699b354f21db04f4b114c81504c8e0771 | [
"Apache-2.0"
] | null | null | null | #include "TransformComponent.h"
TransformComponent::TransformComponent(const ComponentId & id) :
Component(id)
{
}
TransformComponent::~TransformComponent()
{
}
void TransformComponent::setPosition(rkm::Vector3 pos)
{
mTransformData.position = pos;
mDataChanged = true;
}
void TransformComponent::setData(const Tr... | 22.461538 | 76 | 0.78653 | walthill |
ff2f6e03a77ef7db646a79c478c93e1294d1b61e | 1,727 | cpp | C++ | Failed/failed-1279B.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | 3 | 2019-07-20T07:26:31.000Z | 2020-08-06T09:31:09.000Z | Failed/failed-1279B.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | null | null | null | Failed/failed-1279B.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | 4 | 2019-06-20T18:43:32.000Z | 2020-10-07T16:45:23.000Z | /* Author : Qazi Fahim Farhan (@fahimfarhan) */
/* May the CodeForces be with you! */
#include <iostream>
// #include <sstream>
// #include <cstdio>
// #include <cmath>
// #include <cstring>
// #include <cctype>
// #include <string>
#include <vector>
// #include <list>
// #include <set>
// #include <map>
// #include <... | 20.317647 | 58 | 0.492183 | fahimfarhan |
ff321bb1d9038f5ec7a212fb06087a5dcd36877a | 106 | hpp | C++ | testCMake/src/testComp.hpp | demotomohiro/testCMakePackage | 171fb4c97b752eaaecec5660cb63289eb01919e9 | [
"MIT"
] | null | null | null | testCMake/src/testComp.hpp | demotomohiro/testCMakePackage | 171fb4c97b752eaaecec5660cb63289eb01919e9 | [
"MIT"
] | null | null | null | testCMake/src/testComp.hpp | demotomohiro/testCMakePackage | 171fb4c97b752eaaecec5660cb63289eb01919e9 | [
"MIT"
] | null | null | null | #pragma once
#include "testcomp_export.h"
class TESTCOMP_EXPORT testComp {
public:
void print();
};
| 11.777778 | 32 | 0.716981 | demotomohiro |
ff329476abac6a51a1bcafb3a9cfa658b5b77a4d | 1,115 | cpp | C++ | UVa/Competitive_Programming_Exercises/05-Mathematics/06-Cycle-Finding/11036.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | UVa/Competitive_Programming_Exercises/05-Mathematics/06-Cycle-Finding/11036.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | UVa/Competitive_Programming_Exercises/05-Mathematics/06-Cycle-Finding/11036.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | #include <bits/stdc++.h>
using namespace std;
const int SIZE = 110, LEN = 110;
int N, n, m;
long long a, b;
char line[LEN], *p_, v[SIZE][9];
int f(long long x){
stack <long long> st;
for(int i = 0; i < m; i++){
if( v[i][0] == 'x' ) st.push(x % N);
else if( v[i][0] == 'N' ) st.push(N);
else i... | 24.23913 | 66 | 0.465471 | TISparta |
ff3d39ec918cf996673c4d584823aff79ecf9049 | 748 | hpp | C++ | R2017b/extern/include/MatlabDataArray/GetReturnType.hpp | catou93/pelican_test | 23de9722c431fa0caa3c68d038de9423cfcdda80 | [
"BSD-2-Clause"
] | null | null | null | R2017b/extern/include/MatlabDataArray/GetReturnType.hpp | catou93/pelican_test | 23de9722c431fa0caa3c68d038de9423cfcdda80 | [
"BSD-2-Clause"
] | null | null | null | R2017b/extern/include/MatlabDataArray/GetReturnType.hpp | catou93/pelican_test | 23de9722c431fa0caa3c68d038de9423cfcdda80 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright 2017 The MathWorks, Inc. */
#ifndef MATLAB_DATA_GET_RETURN_TYPE_HPP_
#define MATLAB_DATA_GET_RETURN_TYPE_HPP_
#include "String.hpp"
#include "Optional.hpp"
#include <string>
namespace matlab {
namespace data {
template<typename T> struct GetReturnType {
typedef T type;
... | 19.684211 | 54 | 0.609626 | catou93 |
ff3e881f63e2cc149bfccdc1e99e2eb6df9736b8 | 719 | cpp | C++ | state/state/Source1.cpp | katookei/cs202-18apcs3-group5 | 2ea17d891c67b740cc6f612e4f7738ec2c5c5f14 | [
"MIT"
] | null | null | null | state/state/Source1.cpp | katookei/cs202-18apcs3-group5 | 2ea17d891c67b740cc6f612e4f7738ec2c5c5f14 | [
"MIT"
] | null | null | null | state/state/Source1.cpp | katookei/cs202-18apcs3-group5 | 2ea17d891c67b740cc6f612e4f7738ec2c5c5f14 | [
"MIT"
] | null | null | null | #include "Header.h"
#include <string>
baseState* Morning::getnext()
{
return new Evening;
}
string Morning::getName()
{
return "morning";
}
string Evening::getName()
{
return "evening";
}
string Night::getName()
{
return "night";
}
baseState* Evening::getnext()
{
return new Night;
... | 12.186441 | 40 | 0.595271 | katookei |
ff42273a8490925f5ceee78c80f17ab26cc1d323 | 4,470 | cc | C++ | examples/coin.cc | joshbosley/lib_netsockets | 931fb54993c5873cf2e621ee230b57c2345b667b | [
"Apache-2.0"
] | 1 | 2021-02-16T10:05:24.000Z | 2021-02-16T10:05:24.000Z | examples/coin.cc | joshbosley/lib_netsockets | 931fb54993c5873cf2e621ee230b57c2345b667b | [
"Apache-2.0"
] | null | null | null | examples/coin.cc | joshbosley/lib_netsockets | 931fb54993c5873cf2e621ee230b57c2345b667b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include "coin.hh"
/////////////////////////////////////////////////////////////////////////////////////////////////////
//currency_t::currency_t
///////////////////////////////////////////////////////////////////////////... | 28.471338 | 101 | 0.485235 | joshbosley |
ff436588cbe0f27fde9e6c99d66505ed48581ecb | 3,530 | cpp | C++ | ogsr_engine/Layers/xrRenderPC_R1/Blender_Vertex_aref.cpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 247 | 2018-11-02T18:50:55.000Z | 2022-03-15T09:11:43.000Z | ogsr_engine/Layers/xrRenderPC_R1/Blender_Vertex_aref.cpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 193 | 2018-11-02T20:12:44.000Z | 2022-03-07T13:35:17.000Z | ogsr_engine/Layers/xrRenderPC_R1/Blender_Vertex_aref.cpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 106 | 2018-10-26T11:33:01.000Z | 2022-03-19T12:34:20.000Z | // Blender_Vertex_aref.cpp: implementation of the CBlender_Vertex_aref class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#pragma hdrstop
#include "Blender_Vertex_aref.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destructi... | 28.24 | 123 | 0.639377 | stepa2 |
ff43980396f6f059c1657875a6da097910af0caf | 4,880 | hpp | C++ | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/nall/directory.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 1,414 | 2015-06-28T09:57:51.000Z | 2021-10-14T03:51:10.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/nall/directory.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 2,369 | 2015-06-25T01:45:44.000Z | 2021-10-16T08:44:18.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/nall/directory.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 430 | 2015-06-29T04:28:58.000Z | 2021-10-05T18:24:17.000Z | #ifndef NALL_DIRECTORY_HPP
#define NALL_DIRECTORY_HPP
#include <nall/intrinsics.hpp>
#include <nall/sort.hpp>
#include <nall/string.hpp>
#include <nall/vector.hpp>
#if defined(PLATFORM_WINDOWS)
#include <nall/windows/utf8.hpp>
#else
#include <dirent.h>
#include <stdio.h>
#include <sys/types.h>
#endif
namespa... | 31.688312 | 108 | 0.628893 | redscientistlabs |
ff45138950bb3bf10ac006e14d17faee17de66a0 | 533 | cpp | C++ | Sources/Overload/OvCore/src/OvCore/Scripting/LuaBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 755 | 2019-07-10T01:26:39.000Z | 2022-03-31T12:43:19.000Z | Sources/Overload/OvCore/src/OvCore/Scripting/LuaBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 111 | 2020-02-28T23:30:10.000Z | 2022-01-18T13:57:30.000Z | Sources/Overload/OvCore/src/OvCore/Scripting/LuaBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 97 | 2019-11-06T15:19:56.000Z | 2022-03-25T08:40:04.000Z | /**
* @project: Overload
* @author: Overload Tech.
* @licence: MIT
*/
#include "OvCore/Scripting/LuaBinder.h"
#include "OvCore/Scripting/LuaMathsBinder.h"
#include "OvCore/Scripting/LuaActorBinder.h"
#include "OvCore/Scripting/LuaComponentBinder.h"
#include "OvCore/Scripting/LuaGlobalsBinder.h"
void OvCore::Scriptin... | 24.227273 | 70 | 0.767355 | kmqwerty |
ff47ca22251ac8b8aac65c8bbc2460264d416b9f | 8,543 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_datatype.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_datatype.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_datatype.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #ifndef INCLUDED_STDDEFX
#include "stddefx.h"
#define INCLUDED_STDDEFX
#endif
#ifndef INCLUDED_CALC_DATATYPE
#include "calc_datatype.h"
#define INCLUDED_CALC_DATATYPE
#endif
// Library headers.
#ifndef INCLUDED_SSTREAM
#include <sstream>
#define INCLUDED_SSTREAM
#endif
// PCRaster library headers.
// Module headers... | 22.540897 | 80 | 0.604823 | quanpands |
ff49c19e404fbc5d75388a4ef788048adb4623a6 | 4,688 | cpp | C++ | main.cpp | kambala-decapitator/MpqSimpleIO | 922ab66d923d6abf654dd8c3e178dc263a1cb215 | [
"MIT"
] | 1 | 2018-11-21T10:16:02.000Z | 2018-11-21T10:16:02.000Z | main.cpp | kambala-decapitator/MpqSimpleIO | 922ab66d923d6abf654dd8c3e178dc263a1cb215 | [
"MIT"
] | null | null | null | main.cpp | kambala-decapitator/MpqSimpleIO | 922ab66d923d6abf654dd8c3e178dc263a1cb215 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstring>
#include <StormLib/StormLib.h>
using std::cerr;
using std::endl;
using std::string;
int main(int argc, const char *argv[])
{
if (argc < 3)
{
cerr << "min 2 params" << endl;
return 1;
}
auto mode = argv[1];
auto isListMode = ... | 33.014085 | 179 | 0.527944 | kambala-decapitator |
ff4b53804d65428f6412438e7d6375e678280101 | 1,736 | cpp | C++ | src/zobrist.cpp | x0x/hive | 5cd9cc82f469b184dcf0a8161ba432d6abf79823 | [
"MIT"
] | null | null | null | src/zobrist.cpp | x0x/hive | 5cd9cc82f469b184dcf0a8161ba432d6abf79823 | [
"MIT"
] | null | null | null | src/zobrist.cpp | x0x/hive | 5cd9cc82f469b184dcf0a8161ba432d6abf79823 | [
"MIT"
] | null | null | null | #include "../include/zobrist.hpp"
#include "../include/types.hpp"
#include "../include/move.hpp"
namespace Zobrist
{
namespace randoms
{
Hash rnd_piece_turn_square[NUM_PIECE_TYPES][NUM_COLORS][NUM_SQUARES];
Hash rnd_black_move;
Hash rnd_castle_side_turn[NUM_COLORS][NUM_CASTLE_... | 25.910448 | 85 | 0.574885 | x0x |
ff4dfb40b90e7c4ef65b5898c367efe97f2d2bfe | 2,479 | cc | C++ | zetasql/reference_impl/parameters_test.cc | manifoldfinance/zetasql-formatter | 88a7f98f7fff0e1032f43bbb66d4e6df588e09a6 | [
"Apache-2.0"
] | 1,779 | 2019-04-23T19:41:49.000Z | 2022-03-31T18:53:18.000Z | zetasql/reference_impl/parameters_test.cc | manifoldfinance/zetasql-formatter | 88a7f98f7fff0e1032f43bbb66d4e6df588e09a6 | [
"Apache-2.0"
] | 94 | 2019-05-22T00:30:05.000Z | 2022-03-31T06:26:09.000Z | zetasql/reference_impl/parameters_test.cc | manifoldfinance/zetasql-formatter | 88a7f98f7fff0e1032f43bbb66d4e6df588e09a6 | [
"Apache-2.0"
] | 153 | 2019-04-23T22:45:41.000Z | 2022-02-18T05:44:10.000Z | //
// Copyright 2019 Google LLC
//
// 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 ... | 30.9875 | 77 | 0.73457 | manifoldfinance |
ff4eabe708b199b46c699557f32d8bdaa38e2f4d | 6,757 | cpp | C++ | dev/Code/Sandbox/Plugins/ParticleEditorPlugin/QT/ParticleLibraryAutoRecovery.cpp | brianherrera/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Sandbox/Plugins/ParticleEditorPlugin/QT/ParticleLibraryAutoRecovery.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Sandbox/Plugins/ParticleEditorPlugin/QT/ParticleLibraryAutoRecovery.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 30.853881 | 147 | 0.629569 | brianherrera |
ff4fed44d22385f82e0bb2bc16069c4216d11aa2 | 5,715 | cpp | C++ | searchcore/src/vespa/searchcore/bmcluster/bm_message_bus.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,054 | 2017-08-11T07:58:38.000Z | 2022-03-31T22:32:15.000Z | searchcore/src/vespa/searchcore/bmcluster/bm_message_bus.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,854 | 2017-08-10T20:19:25.000Z | 2022-03-31T19:04:23.000Z | searchcore/src/vespa/searchcore/bmcluster/bm_message_bus.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 541 | 2017-08-10T18:51:18.000Z | 2022-03-11T03:18:56.000Z | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "bm_message_bus.h"
#include "pending_tracker_hash.h"
#include "pending_tracker.h"
#include "storage_reply_error_checker.h"
#include <vespa/messagebus/emptyreply.h>
#include <vespa/messagebus/network/rpcnet... | 31.401099 | 132 | 0.635521 | Anlon-Burke |
ff500333886de0d1b87de76fd1659a0a1ab75b8b | 1,218 | cpp | C++ | OptionPricer01/OptionPricer01/Option01.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | OptionPricer01/OptionPricer01/Option01.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | OptionPricer01/OptionPricer01/Option01.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | //
// Option01.cpp
// OptionPricer01
//
// Created by wu yen sun on 2022/2/11.
//
#include "Option01.h"
#include "BinomialTreeModel.h"
#include <iostream>
#include <cmath>
using namespace std;
namespace fre
{
double PriceByCRR(double S0, double U, double D, double R, int N, double K)
{
double q = R... | 21 | 79 | 0.449097 | b01703020 |
ff52b8ed5b5cc14d74b0833aa29d1ba74fd14811 | 157 | cpp | C++ | Level 1/Calculs et decouverte des variables/Kermesse/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 31 | 2018-10-30T09:54:23.000Z | 2022-03-02T21:45:51.000Z | Level 1/Calculs et decouverte des variables/Kermesse/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 2 | 2016-12-24T23:39:20.000Z | 2017-07-02T22:51:28.000Z | Level 1/Calculs et decouverte des variables/Kermesse/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 30 | 2018-10-25T12:28:36.000Z | 2022-01-31T14:31:02.000Z | #include <iostream>
using namespace std;
int main()
{
int sum=0;
for(int i=1;i<=50;++i)
{
sum+=i;
cout<<sum<<endl;
}
return 0;
} | 11.214286 | 25 | 0.509554 | Wurlosh |
ff540f37cf63ca1cf46ffeef45629af6e3324ca6 | 2,459 | cpp | C++ | Flow/hopcroft.cpp | hasinfarhan/acm-notebook | b9a4d81a49e0e3c1e9ad130b8dcf08326bcc1673 | [
"MIT"
] | 1 | 2020-06-15T15:39:33.000Z | 2020-06-15T15:39:33.000Z | Flow/hopcroft.cpp | Pervezali98/acm-notebook | b9a4d81a49e0e3c1e9ad130b8dcf08326bcc1673 | [
"MIT"
] | null | null | null | Flow/hopcroft.cpp | Pervezali98/acm-notebook | b9a4d81a49e0e3c1e9ad130b8dcf08326bcc1673 | [
"MIT"
] | 1 | 2020-06-15T15:39:09.000Z | 2020-06-15T15:39:09.000Z | // Maximum bipartite matching
// Index from 1
// Find max independent set:
// for(i = 1 → M) if (mat.matchL[i] > 0) {
// if (mat.dist[i] < inf) {
// for(j = 1 → N) if (ke[i][j]) right.erase(j); }
// else left.erase(i);
// }
// Find vertices that belong to all maximum matching:
// - L = vertices not matched on l... | 31.935065 | 131 | 0.480277 | hasinfarhan |
ff54160d545f8d65ef7661dacd855f07d56bd12e | 402 | cpp | C++ | AtCoder/colopl2018-qual/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/colopl2018-qual/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/colopl2018-qual/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n, x; cin >> n >> x;
string s; cin >> s;
long long int ans = 0;
for (int i = 0; i < n; i++) {
int a; cin >> a;
if (s[i] == '1') {
if (a > x) ans += x;
... | 20.1 | 33 | 0.435323 | H-Tatsuhiro |
ff5494b59b52342db69938acba14185ad3267087 | 1,199 | hpp | C++ | ccsrc/cxx_experimental/include/ops/parametric/traits.hpp | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | ccsrc/cxx_experimental/include/ops/parametric/traits.hpp | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | ccsrc/cxx_experimental/include/ops/parametric/traits.hpp | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 <Huawei Technologies Co., Ltd>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | 32.405405 | 77 | 0.724771 | Takishima |
ff55a97d4f141d2ae3e2b184cc06e3e7b29a2026 | 1,052 | cpp | C++ | DSA Crack Sheet/solutions/Subarray with 0 sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | DSA Crack Sheet/solutions/Subarray with 0 sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | DSA Crack Sheet/solutions/Subarray with 0 sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2021-08-11T06:36:42.000Z | 2021-08-11T06:36:42.000Z | /*
Subarray with 0 sum
====================
Given an array of positive and negative numbers. Find if there is a subarray (of size at-least one) with 0 sum.
Example 1:
Input:
5
4 2 -3 1 6
Output:
Yes
Explanation:
2, -3, 1 is the subarray
with sum 0.
Example 2:
Input:
5
4 2 0 1 6
Output:
Yes
Explanation:
0 is one... | 19.849057 | 237 | 0.668251 | Akshad7829 |
ff57a99bb4bbd37f02a0fa6dac69a3ce2ee8ef6f | 60 | cpp | C++ | Windows/VS2017/vtkIOVeraOut/vtkIOVeraOut.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkIOVeraOut/vtkIOVeraOut.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkIOVeraOut/vtkIOVeraOut.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | #include "vtkIOVeraOut.h"
vtkIOVeraOut::vtkIOVeraOut()
{
}
| 10 | 28 | 0.733333 | WinBuilds |
ff58813ebd02fdad515b5e0e27403d28a48bd47e | 1,168 | cpp | C++ | solved/dominant striung(10745).cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/dominant striung(10745).cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/dominant striung(10745).cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct goutom
{
char a[11];
int len;
}roy[15005];
bool flag[15005];
long c=0;
int comp1(const void *A,const void *B)
{
goutom *x=(goutom*)A;
goutom *y=(goutom*)B;
return(x->len-y->len);
}
int comp2(const void *A,const void *B)
{
char *x=(char*)A;
char *y=(... | 14.243902 | 42 | 0.507705 | goutomroy |
ff5cd031a0f3ce32a8e1b4b29210d7403975e3fe | 118 | cpp | C++ | libraries/chain/rate_limiting.cpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | 3 | 2018-01-18T07:12:34.000Z | 2018-01-22T10:00:29.000Z | libraries/chain/rate_limiting.cpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | null | null | null | libraries/chain/rate_limiting.cpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | 2 | 2018-01-30T01:03:10.000Z | 2019-02-28T09:04:06.000Z | #include <betterchain/chain/rate_limiting.hpp>
namespace betterchain { namespace chain {
} } /// betterchain::chain
| 19.666667 | 46 | 0.754237 | betterchainio |
ff5fecd1da8c4d9174fd7e1a1dba1d9e3d6f1cce | 1,189 | cpp | C++ | Binary-Search/SquareRootOfInteger.cpp | devangi2000/InterviewBit | d7121858709684ddd0b41227f477cce6b82f523e | [
"MIT"
] | 4 | 2022-01-04T18:32:52.000Z | 2022-01-05T19:43:57.000Z | Binary-Search/SquareRootOfInteger.cpp | devangi2000/InterviewBit | d7121858709684ddd0b41227f477cce6b82f523e | [
"MIT"
] | null | null | null | Binary-Search/SquareRootOfInteger.cpp | devangi2000/InterviewBit | d7121858709684ddd0b41227f477cce6b82f523e | [
"MIT"
] | null | null | null | // Problem Description
// Given an integer A.
// Compute and return the square root of A.
// If A is not a perfect square, return floor(sqrt(A)).
// DO NOT USE SQRT FUNCTION FROM STANDARD LIBRARY.
// NOTE: Do not use sort function from standard library. Users are expected to solve this in O(log(A)) time.
// Inp... | 24.265306 | 112 | 0.568545 | devangi2000 |
ff61fc705f65b24f5a78b3d5a011a0bc1723588b | 1,174 | cc | C++ | src/kmer/KmerIntPair.cc | mgtools/kmerLSHSA | dcd17a00cb9a0b8ab8a14e822a894722ae8f52a1 | [
"Intel",
"MIT"
] | null | null | null | src/kmer/KmerIntPair.cc | mgtools/kmerLSHSA | dcd17a00cb9a0b8ab8a14e822a894722ae8f52a1 | [
"Intel",
"MIT"
] | null | null | null | src/kmer/KmerIntPair.cc | mgtools/kmerLSHSA | dcd17a00cb9a0b8ab8a14e822a894722ae8f52a1 | [
"Intel",
"MIT"
] | null | null | null | #include <cstdlib>
#include "Kmer.h"
#include "KmerIntPair.h"
KmerIntPair::KmerIntPair(const Kmer &km, uint32_t val) {
SetKey(km);
SetVal(val);
}
void KmerIntPair::SetVal(const uint32_t val) {
//char val8 = (val > 0xFF) ? 0xFF : (char)val;
//memcpy(&this->v + KmerIntPair::IntOffset, &val8, sizeof(uint8_t))... | 26.681818 | 83 | 0.697615 | mgtools |
ff621cc1b7e09aa5b246d87787c1ce738e2a1a8a | 1,733 | cpp | C++ | done/revegetate(1).cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/revegetate(1).cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/revegetate(1).cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define ii pair<int, int>
#define ll long long
#define vi vector<int>
#define vc vector<char>
#define pb push_back
#define rz resize
#define mp make_pair
#define f first
#define s second
#define FOR(n) for (int i = 0; i <... | 19.91954 | 56 | 0.448932 | birdhumming |
ff62b279e9daf74ffb0fafc797a4e900bc7bba43 | 1,325 | hpp | C++ | src/include/Serialization.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | src/include/Serialization.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | src/include/Serialization.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | #ifndef __SERIALIZATION_H__
#define __SERIALIZATION_H__
#include <map>
#include <unordered_map>
#include <string>
#include <cereal/cereal.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/unordered_map.hpp>
#include <cereal/archives/binary.hpp>
template<typename Contain... | 25.980392 | 89 | 0.76 | coetaur0 |
ff6b64ed10b27eedc5eca9bbbcd2bd6107df8e96 | 887 | cc | C++ | tests/libpyre/memory/direct-create.cc | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | 3 | 2019-08-02T21:02:47.000Z | 2021-09-08T13:59:43.000Z | tests/libpyre/memory/direct-create.cc | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | null | null | null | tests/libpyre/memory/direct-create.cc | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
//
// michael a.g. aïvázis
// orthologue
// (c) 1998-2019 all rights reserved
//
// access the low level interface to create a file that can fit a grid of a specified size
//
// N.B.: this test leaves behind a file named "grid.dat" that is used by the other tests; it
// must be cleaned up after the test... | 22.74359 | 92 | 0.648253 | lijun99 |
ff6bb205209b4365523602d463211594dbb9d585 | 1,546 | cpp | C++ | src/systems/systemmanager.cpp | lfowles/polarbear | 3c008b3560a7b24c9e985bff0166650fd981e8a7 | [
"MIT"
] | null | null | null | src/systems/systemmanager.cpp | lfowles/polarbear | 3c008b3560a7b24c9e985bff0166650fd981e8a7 | [
"MIT"
] | null | null | null | src/systems/systemmanager.cpp | lfowles/polarbear | 3c008b3560a7b24c9e985bff0166650fd981e8a7 | [
"MIT"
] | null | null | null | #include <polarbear/systems/systemmanager.hpp>
void SystemManager::AddSystem(std::shared_ptr<System>& system)
{
systems.push_back(std::move(system));
};
void SystemManager::AddSystem(std::shared_ptr<System>&& system)
{
systems.push_back(std::move(system));
};
void SystemManager::AddSystem(System*&& system)
{... | 25.344262 | 172 | 0.677878 | lfowles |
ff6c88f69489274d6befffab8f4071b630e516e9 | 7,761 | cpp | C++ | UEngine/UEngine/Game Architecture/Object/Component/Material.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | null | null | null | UEngine/UEngine/Game Architecture/Object/Component/Material.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | 4 | 2021-03-12T06:11:36.000Z | 2021-03-19T11:09:06.000Z | UEngine/UEngine/Game Architecture/Object/Component/Material.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | null | null | null | #include "UEngine.h"
#include "Material.h"
void UEngine::Material::Awake()
{
colorBuffer = DXRenderer::DXConstantBuffer::Instantiate
(
GetGameObject()->GetScene()->ResourceManager.GetNextCBufferID(),
DXRenderer::Get(),
GetGameObject()->GetScene()->ResourceManager.GetCBufferPreset(typeid(Color).raw_name())
);
... | 40.212435 | 125 | 0.768329 | yus1108 |
ff6f2098a03899851322502b167fe797341fbfe9 | 856 | cpp | C++ | libraries/chain/chronicler.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | libraries/chain/chronicler.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | libraries/chain/chronicler.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | #include <koinos/chain/chronicler.hpp>
namespace koinos::chain {
void chronicler::set_session( std::shared_ptr< abstract_chronicler_session > s )
{
_session = s;
}
void chronicler::push_event( protocol::event_data&& ev )
{
ev.set_sequence( _seq_no );
bool within_session = false;
if ( auto session = _ses... | 19.454545 | 80 | 0.661215 | joticajulian |
ff7238226c23eeb1e27a7abe7bf5ae38d12c630d | 225 | cpp | C++ | src/RE/Misc/FixedStrings.cpp | fireundubh/CommonLibSSE-po3 | cf30265f3cd3aa70a8eeff4d598754439e983ddd | [
"MIT"
] | 1 | 2021-08-30T20:33:43.000Z | 2021-08-30T20:33:43.000Z | src/RE/Misc/FixedStrings.cpp | fireundubh/CommonLibSSE-po3 | cf30265f3cd3aa70a8eeff4d598754439e983ddd | [
"MIT"
] | null | null | null | src/RE/Misc/FixedStrings.cpp | fireundubh/CommonLibSSE-po3 | cf30265f3cd3aa70a8eeff4d598754439e983ddd | [
"MIT"
] | null | null | null | #include "RE/Misc/FixedStrings.h"
namespace RE
{
FixedStrings* FixedStrings::GetSingleton()
{
using func_t = decltype(&FixedStrings::GetSingleton);
REL::Relocation<func_t> func{ REL::ID(11308) };
return func();
}
} | 18.75 | 55 | 0.706667 | fireundubh |
ff741de3c66664729bfb2a3b8a0446d9fade17db | 374 | hpp | C++ | Assignment7/Intersection.hpp | DanielDFY/GAMES101 | f04148d0d0e44ee6e25769daefc45dad6011d42d | [
"MIT"
] | 2 | 2021-05-28T12:28:33.000Z | 2022-01-18T12:46:01.000Z | Assignment7/Intersection.hpp | DanielDFY/GAMES101 | f04148d0d0e44ee6e25769daefc45dad6011d42d | [
"MIT"
] | null | null | null | Assignment7/Intersection.hpp | DanielDFY/GAMES101 | f04148d0d0e44ee6e25769daefc45dad6011d42d | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include "Object.hpp"
#include "Material.hpp"
#include "Math.hpp"
class Object;
struct Intersection {
float time = FLOAT_INFINITY;
Vector3f pos = { 0.0f };
Vector3f normal = { 0.0f };
Vector2f uv = { 0.0f };
std::shared_ptr<Object> obj_ptr = nullptr;... | 20.777778 | 49 | 0.628342 | DanielDFY |
ff77a1e1532c4ce464df064e38c48546750665be | 3,812 | cpp | C++ | asteroid/src/wrapper_glfw.cpp | Rekfuki/asteroidOpenGL | 691ec2b2877d146d9b4a312dac894b2e8dafc014 | [
"MIT"
] | 1 | 2021-08-02T02:26:53.000Z | 2021-08-02T02:26:53.000Z | asteroid/src/wrapper_glfw.cpp | Rekfuki/asteroidOpenGL | 691ec2b2877d146d9b4a312dac894b2e8dafc014 | [
"MIT"
] | null | null | null | asteroid/src/wrapper_glfw.cpp | Rekfuki/asteroidOpenGL | 691ec2b2877d146d9b4a312dac894b2e8dafc014 | [
"MIT"
] | 1 | 2021-08-02T02:27:11.000Z | 2021-08-02T02:27:11.000Z | /**
wrapper_glfw.cpp
Modified from the OpenGL GLFW example to provide a wrapper GLFW class
and to include shader loader functions to include shaders as text files
Iain Martin August 2014
*/
#include "wrapper_glfw.h"
/* Inlcude some standard headers */
#include <iostream>
#include <fstream>
#include <vect... | 26.289655 | 108 | 0.729538 | Rekfuki |
ff7ade7c513008408294aa07a14e81873e322f55 | 302 | cpp | C++ | Codeforces/707A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/707A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/707A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<stdio.h>
using namespace std;
int main(){
int x, y, i;
char t;
bool bnw = true;
scanf("%d %d", &x, &y);
for(i=0; i<x*y; i++){
scanf(" %c", &t);
if(t!='B' && t!='W' && t!='G') bnw=false;
}
printf(bnw ? "#Black&White\n" : "#Color\n");
return 0;
}
| 20.133333 | 49 | 0.440397 | DT3264 |
ff7d4872d694567e752c3fcfa7090f7cfcda4718 | 4,670 | cpp | C++ | Source/WebCore/svg/SVGMPathElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | Source/WebCore/svg/SVGMPathElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/svg/SVGMPathElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007 Eric Seidel <eric@webkit.org>
*
* 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 your option) any later version.
*... | 31.554054 | 135 | 0.750107 | ijsf |
ff7ebf7b323e30d1a6a7139e29f0fb281f3510ac | 5,047 | hpp | C++ | include/matrix.hpp | blockahead/CGMRES_cpp | 13a44e0022fbda6ab85b2d04131c230668197859 | [
"MIT"
] | 2 | 2021-12-21T09:03:04.000Z | 2022-03-31T11:02:53.000Z | include/matrix.hpp | blockahead/CGMRES_cpp | 13a44e0022fbda6ab85b2d04131c230668197859 | [
"MIT"
] | null | null | null | include/matrix.hpp | blockahead/CGMRES_cpp | 13a44e0022fbda6ab85b2d04131c230668197859 | [
"MIT"
] | null | null | null | #pragma once
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#define DEBUG_MODE
// ret = vec
inline void mov(double* ret, const double* vec, const int16_t row) {
int16_t i;
for (i = 0; i < row; i++) {
ret[i] = vec[i];
}
}
// ret = mat
inline void mov(double* ret, const double* ... | 22.53125 | 125 | 0.513176 | blockahead |
ff7fb9690e8d8095f4c504153fef19bbb2ad433f | 43,691 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimInfiltrationOrVentilation_RoomAirSettings_UnderFloorAirDistributionExterior.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimInfiltrationOrVentilation_RoomAirSettings_UnderFloorAirDistributionExterior.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimInfiltrationOrVentilation_RoomAirSettings_UnderFloorAirDistributionExterior.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 55.375158 | 256 | 0.784418 | EnEff-BIM |
ff81008893ca08c20159b89ea87eb5b18719f820 | 1,013 | cpp | C++ | 802.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 802.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 802.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | class Solution {
public:
vector<int> eventualSafeNodes(vector<vector<int>>& graph) {
bool finish = false;
vector<bool> outed(graph.size(), false);
while(!finish){
finish = true;
map<int,bool> zeroout;
for(int i = 0; i < graph.size(); i++){
... | 27.378378 | 63 | 0.358342 | zfang399 |
ff82459288558066e464c5d47a60109a8bf0da7d | 12,545 | cpp | C++ | source/Networking.cpp | MrPh1l/RocketPlugin | dab038ee6cd448df05805d894f45abefabbeeec3 | [
"MIT"
] | null | null | null | source/Networking.cpp | MrPh1l/RocketPlugin | dab038ee6cd448df05805d894f45abefabbeeec3 | [
"MIT"
] | null | null | null | source/Networking.cpp | MrPh1l/RocketPlugin | dab038ee6cd448df05805d894f45abefabbeeec3 | [
"MIT"
] | null | null | null | // Networking.cpp
// General networking calls for the RocketPlugin plugin.
//
// Author: Stanbroek
// Version: 0.6.3 15/7/20
#include "Networking.h"
#pragma comment(lib,"Ws2_32.lib")
#include <WinSock2.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#pragma comment(lib, "iphlpapi.lib")
#include <regex>
/... | 29.940334 | 142 | 0.612914 | MrPh1l |
ff83e5b2516acae1e619830011c703965a870a35 | 22,330 | cpp | C++ | admin/wmi/wbem/winmgmt/mofcomp_dll/cbmofout.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/winmgmt/mofcomp_dll/cbmofout.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/winmgmt/mofcomp_dll/cbmofout.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (C) 1997-2001 Microsoft Corporation
Module Name:
CBMOFOUT.CPP
Abstract:
Declares the CBMOFOut class.
History:
a-davj 06-April-97 Created.
--*/
#include "precomp.h"
#include "wstring.h"
#include "mofout.h"
#include "mofdata.h"
#include "bmof.h"
#include "cbmo... | 29.189542 | 93 | 0.504702 | npocmaka |
ff85d5202952e4ee43c758bcdeb18564c49a3419 | 4,627 | cpp | C++ | AngioLib/Segment.cpp | ltedgar-ed/AngioFE_original | 2a57f8dfec3bc31aa63bf33719359676899bbb2a | [
"MIT"
] | null | null | null | AngioLib/Segment.cpp | ltedgar-ed/AngioFE_original | 2a57f8dfec3bc31aa63bf33719359676899bbb2a | [
"MIT"
] | null | null | null | AngioLib/Segment.cpp | ltedgar-ed/AngioFE_original | 2a57f8dfec3bc31aa63bf33719359676899bbb2a | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////
// Segment.cpp
///////////////////////////////////////////////////////////////////////
// Include:
#include "stdafx.h"
#include "Segment.h"
#include "vect3.h"
#include "angio3d.h"
//////////////////////////////////////////////////... | 26.289773 | 236 | 0.376054 | ltedgar-ed |
ff8c88d46d362fdb777526683db6658185e2c709 | 1,168 | cpp | C++ | cf/Div2/D/Good Sequences/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/D/Good Sequences/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/D/Good Sequences/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
// Turn off synchronization between cin/cout and scanf/printf
ios_base::sync_with_stdio(false);
// Disable automatic flush of cout when reading from cin cin.tie(0);
cin.tie(0);
int n;
cin >> n;
vector<pai... | 23.836735 | 72 | 0.472603 | wdjpng |
ff8cd1ddb41d789a274b35ed9e4c6a3ebe0e7d0c | 478 | cc | C++ | page_240_44.cc | coder52/Cpp-Primer-Solutions-2013 | e68d8a8cd4f12b1dbc269b152d955b5ebcf6d9aa | [
"MIT"
] | null | null | null | page_240_44.cc | coder52/Cpp-Primer-Solutions-2013 | e68d8a8cd4f12b1dbc269b152d955b5ebcf6d9aa | [
"MIT"
] | 42 | 2021-08-08T10:36:33.000Z | 2021-08-29T20:35:37.000Z | page_240_44.cc | coder52/Cpp-Primer-Solutions-2013 | e68d8a8cd4f12b1dbc269b152d955b5ebcf6d9aa | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace::std;
/* Page 240
Exercise 6.44: Rewrite the isShorter function from § 6.2.2 (p. 211) to be inline.
*/
// Put inline and constexpr Functions in Header Files.
inline const string &
shorterString(const string &s1, const string &s2){
return s1.size() <= s2.size... | 17.703704 | 82 | 0.661088 | coder52 |
ff8e893e905ad43b8b7ed22cc92087f7c96b1b96 | 3,824 | cpp | C++ | host_runtimes/linux_no_cma_test/test_ops.cpp | thenextged/uRDAI | 119742ba032588586653d83937999b497c0a1ee9 | [
"Apache-2.0"
] | 3 | 2020-07-15T07:31:25.000Z | 2020-07-15T07:31:29.000Z | host_runtimes/linux_no_cma_test/test_ops.cpp | thenextged/uRDAI | 119742ba032588586653d83937999b497c0a1ee9 | [
"Apache-2.0"
] | null | null | null | host_runtimes/linux_no_cma_test/test_ops.cpp | thenextged/uRDAI | 119742ba032588586653d83937999b497c0a1ee9 | [
"Apache-2.0"
] | null | null | null | #include "rdai_api.h"
// ================= DATA
extern RDAI_Platform clockwork_platform;
static RDAI_Device clockwork_device = {
{ 1 },
{
{ "aha" },
{ "halide_hardware" },
{ "conv_3_3_clockwork" },
1
},
&clockwork_platform,
NULL,
1
};
static RDAI_Device *clockw... | 24.512821 | 95 | 0.667103 | thenextged |
ff91193a900bc6e04002c3c74880441102d4350f | 4,956 | cpp | C++ | arduino-ntpd/GPSTimeSource.cpp | jonsl/arduino_sntp | b19220e877dcd64edc4b4c47ca9e00585abaed2b | [
"MIT"
] | 5 | 2020-12-17T13:07:46.000Z | 2021-09-02T16:48:44.000Z | arduino-ntpd/GPSTimeSource.cpp | jonsl/arduino_sntp | b19220e877dcd64edc4b4c47ca9e00585abaed2b | [
"MIT"
] | null | null | null | arduino-ntpd/GPSTimeSource.cpp | jonsl/arduino_sntp | b19220e877dcd64edc4b4c47ca9e00585abaed2b | [
"MIT"
] | 1 | 2019-02-25T09:40:09.000Z | 2019-02-25T09:40:09.000Z | /*
* File: GPSTimeSource.cpp
* Description:
* A time source that reads the time from a NMEA-compliant GPS receiver.
* Author: Mooneer Salem <mooneer@gmail.com>
* License: New BSD License
*/
#include "config.h"
#ifdef ETH_RX_PIN
#include "utility/w5100.h"
#endif // ETH_RX_PIN
#include "GPSTimeSource.h"
#inclu... | 30.592593 | 124 | 0.622074 | jonsl |
ff93253ed2e202bae31bc1427bd09cdbc0d4b6bb | 4,565 | cpp | C++ | Projects/Core/EditContext.cpp | krisl/quip | a386f8bcecf59de9e9c7a6d6d8c077e49b72fb19 | [
"MIT"
] | null | null | null | Projects/Core/EditContext.cpp | krisl/quip | a386f8bcecf59de9e9c7a6d6d8c077e49b72fb19 | [
"MIT"
] | null | null | null | Projects/Core/EditContext.cpp | krisl/quip | a386f8bcecf59de9e9c7a6d6d8c077e49b72fb19 | [
"MIT"
] | 1 | 2020-07-11T22:45:16.000Z | 2020-07-11T22:45:16.000Z | #include "EditContext.hpp"
#include "Document.hpp"
#include "EditMode.hpp"
#include "JumpMode.hpp"
#include "Location.hpp"
#include "Mode.hpp"
#include "NormalMode.hpp"
#include "SearchMode.hpp"
#include "Selection.hpp"
#include "Transaction.hpp"
#include <memory>
namespace quip {
EditContext::EditContext(PopupSer... | 29.836601 | 144 | 0.679956 | krisl |
ff93faaad9cc3c830e1fda93e8dadb063b03675b | 78 | hpp | C++ | vendor/github.com/bep/golibsass/internal/libsass/fn_colors.hpp | f110/hugo | d99379094f1352ece8751b54ace8964d0811916e | [
"Apache-2.0"
] | 17 | 2020-02-06T22:21:59.000Z | 2022-02-17T09:14:36.000Z | vendor/github.com/bep/golibsass/internal/libsass/fn_colors.hpp | f110/hugo | d99379094f1352ece8751b54ace8964d0811916e | [
"Apache-2.0"
] | 5 | 2020-02-12T14:41:49.000Z | 2021-11-03T19:45:00.000Z | vendor/github.com/bep/golibsass/internal/libsass/fn_colors.hpp | f110/hugo | d99379094f1352ece8751b54ace8964d0811916e | [
"Apache-2.0"
] | 5 | 2020-02-28T08:01:50.000Z | 2021-06-14T14:28:58.000Z | #ifndef USE_LIBSASS_SRC
#include "../../libsass_src/src/fn_colors.hpp"
#endif
| 19.5 | 46 | 0.75641 | f110 |
91110d56e7980e6c228cdf8123d39498aee5b595 | 2,390 | cc | C++ | src/contest/dmoj/CCO_Prep_Corporative_Network.cc | anshika581/competitive-programming-1 | c34fb89820cd7260661daa2283f492b07cd9f8d2 | [
"Apache-2.0",
"MIT"
] | 83 | 2017-08-30T01:20:03.000Z | 2022-02-12T13:50:27.000Z | src/contest/dmoj/CCO_Prep_Corporative_Network.cc | anshika581/competitive-programming-1 | c34fb89820cd7260661daa2283f492b07cd9f8d2 | [
"Apache-2.0",
"MIT"
] | 1 | 2015-08-20T13:37:59.000Z | 2015-08-26T00:56:39.000Z | src/contest/dmoj/CCO_Prep_Corporative_Network.cc | anshika581/competitive-programming-1 | c34fb89820cd7260661daa2283f492b07cd9f8d2 | [
"Apache-2.0",
"MIT"
] | 41 | 2017-11-09T06:10:08.000Z | 2022-01-11T14:10:25.000Z | #include <bits/stdc++.h>
#define mp make_pair
#define pb push_back
#define INF 1 << 30
#define MOD 1000000007
#define rint(x) scanf("%d", &(x))
#define rlong(x) scanf("%lld", &(x))
#define SIZE 20010
#define LN 15
#define l(x) x << 1
#define r(x) x << 1 | 1
#define m(x, y) (x + y) / 2
using namespace std;
typedef lo... | 17.835821 | 64 | 0.438075 | anshika581 |
9112f5c47f4427c3c13786e2b27717a063c7a58a | 481 | hpp | C++ | core/engine/inc/engine/component/GlBlendMaterialComponent.hpp | rawbby/WS20-CG-Pra-Dungeon-Crawler | 4c1b372649a92fb08b8908054d82624ae2b68af5 | [
"MIT"
] | null | null | null | core/engine/inc/engine/component/GlBlendMaterialComponent.hpp | rawbby/WS20-CG-Pra-Dungeon-Crawler | 4c1b372649a92fb08b8908054d82624ae2b68af5 | [
"MIT"
] | null | null | null | core/engine/inc/engine/component/GlBlendMaterialComponent.hpp | rawbby/WS20-CG-Pra-Dungeon-Crawler | 4c1b372649a92fb08b8908054d82624ae2b68af5 | [
"MIT"
] | null | null | null | #pragma once
#include <engine/component/GlRenderComponent.hpp>
#include <engine/component/GlMaterialComponent.hpp>
#include <array>
namespace engine::component
{
/**
* Needed textures for OpenGl to render a object
* with multiple materials.
* Up to three materials are supported.
*/
struct... | 21.863636 | 52 | 0.669439 | rawbby |
91151dd3501291dbb1bf2a1522fc4d8d60ec81e5 | 1,108 | cpp | C++ | Program128.cpp | PRASAD-DANGARE/C_PROGRAMS | 40c114b3f44a85e6d280eef680f29dcbe3434af2 | [
"MIT"
] | 1 | 2021-06-07T07:55:39.000Z | 2021-06-07T07:55:39.000Z | Program128.cpp | PRASAD-DANGARE/C_PROGRAMS | 40c114b3f44a85e6d280eef680f29dcbe3434af2 | [
"MIT"
] | null | null | null | Program128.cpp | PRASAD-DANGARE/C_PROGRAMS | 40c114b3f44a85e6d280eef680f29dcbe3434af2 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////
//
// Class Name : StringX
// Function Name : Accept(),StrlenX()
// Description : Accept String From User And Count Length Of The String
// Input : String
// Output : String
// Author : Prasad Dangare
// Date :... | 17.870968 | 75 | 0.392599 | PRASAD-DANGARE |
91152d89bb1862b8e43622a4d3530c3269697936 | 10,518 | cpp | C++ | test/unit/detail/protocol/null_bitmap_traits.cpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | 1 | 2021-03-07T20:45:35.000Z | 2021-03-07T20:45:35.000Z | test/unit/detail/protocol/null_bitmap_traits.cpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | null | null | null | test/unit/detail/protocol/null_bitmap_traits.cpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019-2021 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "boost/mysql/detail/protocol/null_bitmap_traits.hpp"
#include "test_... | 37.166078 | 99 | 0.699848 | sehe |
9116af031e910e83f64371dd953b7fac8df4f4f5 | 56,510 | cpp | C++ | src/IECoreRI/RendererImplementation.cpp | gcodebackups/cortex-vfx | 72fa6c6eb3327fce4faf01361c8fcc2e1e892672 | [
"BSD-3-Clause"
] | 5 | 2016-07-26T06:09:28.000Z | 2022-03-07T03:58:51.000Z | src/IECoreRI/RendererImplementation.cpp | gcodebackups/cortex-vfx | 72fa6c6eb3327fce4faf01361c8fcc2e1e892672 | [
"BSD-3-Clause"
] | null | null | null | src/IECoreRI/RendererImplementation.cpp | gcodebackups/cortex-vfx | 72fa6c6eb3327fce4faf01361c8fcc2e1e892672 | [
"BSD-3-Clause"
] | 3 | 2015-03-25T18:45:24.000Z | 2020-02-15T15:37:18.000Z | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | 33.757467 | 242 | 0.685012 | gcodebackups |
91176873d0a36a54867dd4ff301e820abc49303d | 32,254 | hpp | C++ | iguana/reflection.hpp | yangxingpping/iguana | bc11d40347e972f5ffcaa7289163f1012d6c8c41 | [
"Apache-2.0"
] | 621 | 2017-03-12T08:49:01.000Z | 2022-03-31T09:33:06.000Z | iguana/reflection.hpp | IndignantAngel/iguana | 84849c3fba55fdf85edf2a600175961f5fcc7973 | [
"Apache-2.0"
] | 43 | 2017-03-13T01:40:18.000Z | 2022-02-21T16:13:50.000Z | iguana/reflection.hpp | IndignantAngel/iguana | 84849c3fba55fdf85edf2a600175961f5fcc7973 | [
"Apache-2.0"
] | 174 | 2017-02-09T02:00:30.000Z | 2022-03-31T09:33:08.000Z | //
// Created by Qiyu on 17-6-5.
//
#ifndef IGUANA_REFLECTION_HPP
#define IGUANA_REFLECTION_HPP
#include <iostream>
#include <sstream>
#include <string>
#include <tuple>
#include <iomanip>
#include <map>
#include <vector>
#include <array>
#include <type_traits>
#include <functional>
#include <string_view>
#include "d... | 65.159596 | 130 | 0.73163 | yangxingpping |
911b5303fdd55db62e8eaa831a6fa25bf472e1a6 | 467 | cpp | C++ | solutions/IWaP5vb1.cpp | luyencode/cpp-solutions | 627397fb887654e9f5ee64cfb73d708f6f6706f7 | [
"MIT"
] | 60 | 2021-04-10T11:17:33.000Z | 2022-03-23T06:15:42.000Z | solutions/IWaP5vb1.cpp | letuankiet-29-10-2002/cpp-solutions | 7d9cddf211af54ff207da883b469f4ddd75d5916 | [
"MIT"
] | 1 | 2021-08-13T11:32:27.000Z | 2021-08-13T11:32:27.000Z | solutions/IWaP5vb1.cpp | letuankiet-29-10-2002/cpp-solutions | 7d9cddf211af54ff207da883b469f4ddd75d5916 | [
"MIT"
] | 67 | 2021-04-10T17:32:50.000Z | 2022-03-23T15:50:17.000Z | /*
Sưu tầm bởi @nguyenvanhieuvn
Thực hành nhiều bài tập hơn tại https://luyencode.net/
*/
#include<stdio.h>
#include<conio.h>
float Tinh(float x)
{
float ketqua;
if(x >= 5)
ketqua = 2 * x * x + 5 * x + 9;
else
ketqua = -2 * x * x + 4 * x - 9;
return ketqua;
}
int main()
{
floa... | 16.103448 | 56 | 0.518201 | luyencode |
911b902ac7ce18b3b3eabaea143462dac640b1e5 | 7,045 | cpp | C++ | test/unit-tests/metafs/mim/metafs_io_request_test.cpp | iljoongkr/poseidonos | 01ed7c323c4f6dbd99970f4b036ade2f0a4e4383 | [
"BSD-3-Clause"
] | 38 | 2021-04-06T03:20:55.000Z | 2022-03-02T09:33:28.000Z | test/unit-tests/metafs/mim/metafs_io_request_test.cpp | gye-ul/poseidonos | bce8fe2cd1f36ede8647446ecc4cf8a9749e6918 | [
"BSD-3-Clause"
] | 19 | 2021-04-08T02:27:44.000Z | 2022-03-23T00:59:04.000Z | test/unit-tests/metafs/mim/metafs_io_request_test.cpp | gye-ul/poseidonos | bce8fe2cd1f36ede8647446ecc4cf8a9749e6918 | [
"BSD-3-Clause"
] | 28 | 2021-04-08T04:39:18.000Z | 2022-03-24T05:56:00.000Z | #include "src/metafs/mim/metafs_io_request.h"
#include "test/unit-tests/metafs/mim/metafs_io_request_mock.h"
#include <gtest/gtest.h>
namespace pos
{
TEST(MetaFsIoRequest, ConstructorAndDestructor)
{
MetaFsIoRequest* req = new MetaFsIoRequest();
delete req;
}
TEST(MetaFsIoRequest, CopyMsg_SyncRequest_FromUser... | 27.096154 | 66 | 0.698793 | iljoongkr |
911dda215577af18a10fa68681fec3b0cdf9b744 | 8,752 | cpp | C++ | gpu/src/particleapp.cpp | Melodeathguy/ParticleSolver | 5cccb54454427029f3c05156854a3337369995e1 | [
"MIT"
] | 129 | 2015-07-06T16:57:03.000Z | 2022-02-25T08:34:29.000Z | gpu/src/particleapp.cpp | Melodeathguy/ParticleSolver | 5cccb54454427029f3c05156854a3337369995e1 | [
"MIT"
] | null | null | null | gpu/src/particleapp.cpp | Melodeathguy/ParticleSolver | 5cccb54454427029f3c05156854a3337369995e1 | [
"MIT"
] | 21 | 2015-07-07T05:52:08.000Z | 2021-06-07T02:28:05.000Z | /*
* This class controls helper classes for rendering and
* updating the particle system.
*
* Mouse events, key events, window sizing, timing updates,
* and render calls are all received by this application then
* passed to the corresponding render or particlesystem class.
*/
#include <cuda_runtime.h>
#include ... | 37.242553 | 146 | 0.650708 | Melodeathguy |
912054d2c2a48cac37549d883070c4ef5276c681 | 392 | cpp | C++ | Data/Data.cpp | tdm1223/CustomExplorer | e790cd2fbd401f2ff05e825e709fefc42e50d64e | [
"MIT"
] | 2 | 2020-03-27T05:36:33.000Z | 2021-10-30T07:47:33.000Z | Data/Data.cpp | tdm1223/CustomExplorer | e790cd2fbd401f2ff05e825e709fefc42e50d64e | [
"MIT"
] | null | null | null | Data/Data.cpp | tdm1223/CustomExplorer | e790cd2fbd401f2ff05e825e709fefc42e50d64e | [
"MIT"
] | null | null | null | #include "Data.h"
Data::Data()
{
::ZeroMemory(childType, sizeof(childType));
::ZeroMemory(fileName, sizeof(fileName));
::ZeroMemory(filePath, sizeof(filePath));
::ZeroMemory(childName, sizeof(childName));
::ZeroMemory(childAccessTime, sizeof(childAccessTime));
::ZeroMemory(childSize, sizeof(ch... | 20.631579 | 59 | 0.665816 | tdm1223 |
912172df92c3eb96eb62a4363f0c5cd08fd5d86e | 2,141 | cxx | C++ | peripherals/sw/libhid/ut/ut-keyboard.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | peripherals/sw/libhid/ut/ut-keyboard.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | peripherals/sw/libhid/ut/ut-keyboard.cxx | roadnarrows-robotics/rnr-sdk | aee20c65b49fb3eedf924c5c2ec9f19f4f1a1b29 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Package: Peripherals
//
/*! \file
*
* \ingroup periphs_ut
*
* \brief Unit test for libhid keyboard controller
*
* \author Daniel Packard (daniel@roadnarrows.com)
*
* \copyright
* \h_copy 2013-2017. RoadNarrows... | 34.532258 | 80 | 0.706212 | roadnarrows-robotics |
9122a62e3892015827bf4daa1971dee8079bf138 | 4,527 | cc | C++ | measure_statistics_in_data.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | measure_statistics_in_data.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | measure_statistics_in_data.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | //g++ measure_statistics_in_data.cc -o measure_statistics_in_data --std=c++17 -I extern/RobotsCore/include/ -O3 -Wall -pedantic -Wextra -Wshadow
#include "deserialize.hh"
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <filesystem>
namespace fs = std::filesystem;
#include <robots_... | 30.18 | 144 | 0.631986 | JackMaguire |
912365cc33f179f20856a201ed70169235341ae0 | 83 | cpp | C++ | Snake2DGameSFML/views/IGameView.cpp | melardev/CppSFMLSnakeGame | afb241656c64968fb44f08a734cb61aea6cb49cd | [
"MIT"
] | null | null | null | Snake2DGameSFML/views/IGameView.cpp | melardev/CppSFMLSnakeGame | afb241656c64968fb44f08a734cb61aea6cb49cd | [
"MIT"
] | null | null | null | Snake2DGameSFML/views/IGameView.cpp | melardev/CppSFMLSnakeGame | afb241656c64968fb44f08a734cb61aea6cb49cd | [
"MIT"
] | null | null | null | #include "IGameView.h"
IGameView::IGameView()
{
}
IGameView::~IGameView()
{
}
| 6.384615 | 23 | 0.638554 | melardev |
91273f09df8a64f484be59b2685f8d58bd24ab5d | 813 | hpp | C++ | TGEngine/io/Mouse.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEngine/io/Mouse.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEngine/io/Mouse.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../util/VectorUtil.hpp"
#include "../util/Annotations.hpp"
#include <glm/glm.hpp>
namespace tg_io {
/*
* These variables can be used to track the mouses position
*/
extern glm::vec2 pos;
extern glm::vec2 delta;
/*
* These variables can be used to check if the buttons are down;
*/
... | 21.972973 | 89 | 0.693727 | ThePixly |
912ee50bc6fea304044f5716f624130aa155d807 | 4,215 | hpp | C++ | test/inheritance.hpp | IRCAD/camp | fbbada73d6fd25c30f22a69f195c871757e362dd | [
"MIT"
] | 6 | 2017-12-27T03:13:29.000Z | 2021-01-04T15:07:18.000Z | test/inheritance.hpp | fw4spl-org/camp | e70eca1d2bf7f20df782dacc5d6baa51ce364e12 | [
"MIT"
] | 1 | 2021-10-19T14:03:39.000Z | 2021-10-19T14:03:39.000Z | test/inheritance.hpp | IRCAD/camp | fbbada73d6fd25c30f22a69f195c871757e362dd | [
"MIT"
] | 1 | 2019-08-30T15:20:46.000Z | 2019-08-30T15:20:46.000Z | /****************************************************************************
**
** This file is part of the CAMP library.
**
** The MIT License (MIT)
**
** Copyright (C) 2009-2014 TEGESO/TEGESOFT and/or its subsidiary(-ies) and mother company.
** Contact: Tegesoft Information (contact@tegesoft.com)
**
** Permission is... | 34.268293 | 90 | 0.599763 | IRCAD |
9130ffb8e1c78448390bfb7e8b07474ab8b98d11 | 9,443 | cc | C++ | bin/zxdb/console/verbs_control.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | bin/zxdb/console/verbs_control.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | bin/zxdb/console/verbs_control.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia 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 "garnet/bin/zxdb/console/verbs.h"
#include <algorithm>
#include "garnet/bin/zxdb/client/session.h"
#include "garnet/bin/zxdb/common/err.h"
#incl... | 30.659091 | 80 | 0.617918 | PowerOlive |
9134061fd02256535a0f48748da9c2f6b4302e72 | 17,181 | cpp | C++ | src/OutputStruct.cpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null | src/OutputStruct.cpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null | src/OutputStruct.cpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null |
//------------------------------------------------------------------
// **MEDYAN** - Simulation Package for the Mechanochemical
// Dynamics of Active Networks, v3.1
//
// Copyright (2015-2016) Papoian Lab, University of Maryland
//
// ALL RIGHTS RESERVED
//
// See the MEDYAN web page ... | 31.012635 | 115 | 0.590827 | allen-cell-animated |
91342f9c3f6c57c5228ee5914a86e8334b981890 | 4,262 | hpp | C++ | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | // Copyright (C) 2008-2012 NICTA (www.nicta.com.au)
// Copyright (C) 2008-2012 Conrad Sanderson
//
// This file is part of the Armadillo C++ library.
// It is provided without any warranty of fitness
// for any purpose. You can redistribute this file
// and/or modify it under the terms of the GNU
// Lesser General Pub... | 31.109489 | 149 | 0.725012 | HerrFroehlich |
9136118bf7e85372ff0889915166fd9dec2a4405 | 3,810 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/plugins/vcsbase/submiteditorfile.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/plugins/vcsbase/submiteditorfile.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/plugins/vcsbase/submiteditorfile.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 32.288136 | 114 | 0.691339 | kevinlq |
9139519824739e375fe970eb2975f38416c31c21 | 4,381 | cpp | C++ | tasksexplorerd/task/system_helpers.cpp | astavonin/Tasks-Explorer | 3feb2d9a0a4694812de6aa895a809899c62fe5c1 | [
"BSD-3-Clause"
] | 40 | 2015-03-20T13:23:16.000Z | 2021-07-20T14:17:21.000Z | tasksexplorerd/task/system_helpers.cpp | varenc/Tasks-Explorer | 85558fad7dd48fd2f81bcc58193f5cb4a6aaf263 | [
"BSD-3-Clause"
] | 7 | 2016-08-01T21:01:25.000Z | 2018-04-28T10:34:03.000Z | tasksexplorerd/task/system_helpers.cpp | varenc/Tasks-Explorer | 85558fad7dd48fd2f81bcc58193f5cb4a6aaf263 | [
"BSD-3-Clause"
] | 9 | 2015-01-29T19:28:17.000Z | 2018-04-30T19:08:52.000Z | #include "system_helpers.h"
#include <stdio.h>
#include <utils.h>
#include <prettyprint.hpp>
#include <string>
namespace tasks
{
proc_info_vec build_tasks_list()
{
static size_t maxProcsCount = 500;
bool done = false;
proc_info_vec procs( maxProcsCount );
static const int name[] = {CTL_... | 27.904459 | 79 | 0.497375 | astavonin |