hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffd25aafd0de6592490c13b1ec3f2db4ff40cf87 | 3,441 | cpp | C++ | vmd.cpp | elect-gombe/k210_mmd | 585412f8151a9aeba772801f291a06a74a63282e | [
"MIT"
] | 67 | 2019-02-25T13:58:00.000Z | 2022-02-12T11:31:28.000Z | vmd.cpp | elect-gombe/k210_mmd | 585412f8151a9aeba772801f291a06a74a63282e | [
"MIT"
] | 8 | 2019-02-25T20:42:40.000Z | 2021-07-18T04:05:32.000Z | vmd.cpp | elect-gombe/k210_mmd | 585412f8151a9aeba772801f291a06a74a63282e | [
"MIT"
] | 11 | 2019-02-26T01:51:41.000Z | 2021-07-18T04:03:47.000Z | /**
Copyright (c) 2018 Gombe.
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#include "pmd.hpp"
#include "vmd.hpp"
#include "fileio.h"
#include "mmdstructure.h"
void vmd::load(const char *path,pmd* model){
fil f;
if(filopen(path,&f)!=0){
printf("file cann... | 26.674419 | 110 | 0.613775 | elect-gombe |
ffded0133a758cc71185562a62cfb292957a8367 | 10,725 | hpp | C++ | hpx/util/one_size_heap_list.hpp | atrantan/hpx | 6c214b2f3e3fc58648513c9f1cfef37fde59333c | [
"BSL-1.0"
] | 1 | 2019-09-26T09:10:13.000Z | 2019-09-26T09:10:13.000Z | hpx/util/one_size_heap_list.hpp | atrantan/hpx | 6c214b2f3e3fc58648513c9f1cfef37fde59333c | [
"BSL-1.0"
] | null | null | null | hpx/util/one_size_heap_list.hpp | atrantan/hpx | 6c214b2f3e3fc58648513c9f1cfef37fde59333c | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 1998-2015 Hartmut Kaiser
// Copyright (c) 2011 Bryce Lelbach
//
// 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 HPX_UTIL_ONE_SIZE_HEAP_LIST_HPP
#define HPX_UTIL_ONE_SIZE_HEAP_LIST_... | 31.268222 | 88 | 0.479347 | atrantan |
ffe18e7c839fcea59e271f4bf4bd439c0267e4be | 10,079 | cpp | C++ | src/modules/mpd/state.cpp | kamushadenes/Waybar | 29cba22405f0afe1b2091dde92dce28c1157fc10 | [
"MIT"
] | 2,432 | 2018-08-08T22:37:39.000Z | 2022-03-31T13:12:43.000Z | src/modules/mpd/state.cpp | kamushadenes/Waybar | 29cba22405f0afe1b2091dde92dce28c1157fc10 | [
"MIT"
] | 1,381 | 2018-08-09T19:40:32.000Z | 2022-03-31T16:58:08.000Z | src/modules/mpd/state.cpp | kamushadenes/Waybar | 29cba22405f0afe1b2091dde92dce28c1157fc10 | [
"MIT"
] | 450 | 2018-08-09T12:03:00.000Z | 2022-03-29T21:19:13.000Z | #include "modules/mpd/state.hpp"
#include <fmt/chrono.h>
#include <spdlog/spdlog.h>
#include "modules/mpd/mpd.hpp"
#if defined(MPD_NOINLINE)
namespace waybar::modules {
#include "modules/mpd/state.inl.hpp"
} // namespace waybar::modules
#endif
namespace waybar::modules::detail {
#define IDLE_RUN_NOIDLE_AND_CMD(...... | 26.247396 | 94 | 0.608493 | kamushadenes |
ffe6a439ae43d3935ae458052a4d0ed92fb1d243 | 2,551 | cpp | C++ | src/peersafe/protocol/impl/STMap256.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 211 | 2017-12-11T03:11:37.000Z | 2022-03-15T12:38:19.000Z | src/peersafe/protocol/impl/STMap256.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 17 | 2017-12-18T07:22:06.000Z | 2022-02-15T10:24:29.000Z | src/peersafe/protocol/impl/STMap256.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 81 | 2017-12-11T03:09:21.000Z | 2022-03-20T09:42:42.000Z | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provide... | 31.493827 | 81 | 0.626029 | ChainSQL |
ffe7e7a4622e4baa1169f9b9c72175498a6d3ade | 4,129 | cpp | C++ | dmux/message.cpp | belyaev-ms/dmux | d9d355a78c8bff190316c4d124f9cdcaf7c55f9e | [
"MIT"
] | 1 | 2019-10-04T07:10:34.000Z | 2019-10-04T07:10:34.000Z | dmux/message.cpp | belyaev-ms/dmux | d9d355a78c8bff190316c4d124f9cdcaf7c55f9e | [
"MIT"
] | null | null | null | dmux/message.cpp | belyaev-ms/dmux | d9d355a78c8bff190316c4d124f9cdcaf7c55f9e | [
"MIT"
] | null | null | null | #include "dmux/message.h"
#include <string.h>
namespace dmux
{
namespace message
{
/**
* Constructor
*/
base_message::base_message() :
m_ptr(NULL),
m_size(0)
{
}
/**
* Constructor
* @param ptr the pointer to the raw message
* @param sz the size of the raw message
*/
base_message::base_message(void *ptr... | 19.661905 | 75 | 0.644466 | belyaev-ms |
ffeab7b1f039436853d8d92fd4ca508592e5dfaf | 2,756 | cpp | C++ | chapter09/ex13_rational/ex13_rational.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter09/ex13_rational/ex13_rational.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter09/ex13_rational/ex13_rational.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | #include <iostream>
using std::cout;
using std::cin;
using std::cerr;
using std::ostream;
class Rational {
public:
// to throw as exception
class Zero_Denom { };
// getters
int get_num() const { return numerator; }
int get_den() const { return denominator; }
// co... | 22.590164 | 78 | 0.519594 | ClassAteam |
ffeb6c816f3c7a619d2a1cf2f1f4aa0d3dce3bd9 | 25,661 | cpp | C++ | plugins/dataflow_analysis/src/evaluation/evaluation.cpp | emsec/HAL | 608e801896e1b5254b28ce0f29d4d898b81b0f77 | [
"MIT"
] | 407 | 2019-04-26T10:45:52.000Z | 2022-03-31T15:52:30.000Z | plugins/dataflow_analysis/src/evaluation/evaluation.cpp | emsec/HAL | 608e801896e1b5254b28ce0f29d4d898b81b0f77 | [
"MIT"
] | 219 | 2019-04-29T16:42:01.000Z | 2022-03-11T22:57:41.000Z | plugins/dataflow_analysis/src/evaluation/evaluation.cpp | emsec/HAL | 608e801896e1b5254b28ce0f29d4d898b81b0f77 | [
"MIT"
] | 53 | 2019-05-02T21:23:35.000Z | 2022-03-11T19:46:05.000Z | #include "dataflow_analysis/evaluation/evaluation.h"
#include "dataflow_analysis/common/grouping.h"
#include "dataflow_analysis/common/netlist_abstraction.h"
#include "dataflow_analysis/output_generation/textual_output.h"
#include "dataflow_analysis/processing/passes/group_by_control_signals.h"
#include "dataflow_anal... | 47.608534 | 198 | 0.470208 | emsec |
fff01748d4f096b804d6d01ba7339688962ecb88 | 1,385 | hpp | C++ | cpp/libs/okiidoku/include/okiidoku/puzzle/solve.hpp | david-fong/ookiidoku | 8710da55e63c5533bc7d67484098fb313dec18c2 | [
"MIT"
] | null | null | null | cpp/libs/okiidoku/include/okiidoku/puzzle/solve.hpp | david-fong/ookiidoku | 8710da55e63c5533bc7d67484098fb313dec18c2 | [
"MIT"
] | null | null | null | cpp/libs/okiidoku/include/okiidoku/puzzle/solve.hpp | david-fong/ookiidoku | 8710da55e63c5533bc7d67484098fb313dec18c2 | [
"MIT"
] | null | null | null | #ifndef HPP_OKIIDOKU__PUZZLE__SOLVE
#define HPP_OKIIDOKU__PUZZLE__SOLVE
#include <okiidoku/grid.hpp>
#include <okiidoku/house_mask.hpp>
#include <okiidoku/detail/order_templates.hpp>
#include <optional>
#include <memory> // unique_ptr
#include <experimental/propagate_const>
namespace okiidoku::mono::puzzle {
templ... | 31.477273 | 103 | 0.742238 | david-fong |
fff0986c668e761e4b6603f62e452b8b0921ecc6 | 1,859 | cpp | C++ | WebKitV8Extension.cpp | mobileFX/WebKitX | 8f1b7a3ed11e36596d8d7e7ad2417f7a390773a4 | [
"MIT"
] | 61 | 2015-02-01T10:26:22.000Z | 2022-01-07T11:16:39.000Z | WebKitV8Extension.cpp | kongzue/WebKitX | d4139c521c8479a6aff86480ac925851b4b98c21 | [
"MIT"
] | 7 | 2015-02-01T12:09:59.000Z | 2017-04-03T22:03:56.000Z | WebKitV8Extension.cpp | kongzue/WebKitX | d4139c521c8479a6aff86480ac925851b4b98c21 | [
"MIT"
] | 41 | 2015-03-10T08:34:12.000Z | 2021-09-12T20:23:14.000Z | #include "StdAfx.h"
#include "WebKitV8Extension.h"
#include "WebKitXCtrl.h"
/////////////////////////////////////////////////////////////////////////////////////////////////////
void WebKitV8Extension::RegisterExtension(CWebKitXCtrl* control)
{
// Register a V8 extension that calls native
// methods implemented in W... | 32.051724 | 171 | 0.528241 | mobileFX |
fff316c725912019060b28521f3ff0aac64c920e | 412 | hpp | C++ | library/ATF/$A3E90FD3AE02296A3B348DF654F3F056.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/$A3E90FD3AE02296A3B348DF654F3F056.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/$A3E90FD3AE02296A3B348DF654F3F056.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <tagRAWHID.hpp>
#include <tagRAWKEYBOARD.hpp>
#include <tagRAWMOUSE.hpp>
START_ATF_NAMESPACE
union $A3E90FD3AE02296A3B348DF654F3F056
{
tagRAWMO... | 22.888889 | 108 | 0.73301 | lemkova |
fff3f41f892d2e8f0ff123c8dea874c82e052fc1 | 4,674 | cpp | C++ | 3rdparty/FlyCube/src/Core/Resource/DXResource.cpp | CU-Production/FlyCube-Demos | 2763720818499bc9244eb4b16e60e647a5c88827 | [
"MIT"
] | 8 | 2021-03-17T19:25:12.000Z | 2022-02-05T02:08:21.000Z | 3rdparty/FlyCube/src/Core/Resource/DXResource.cpp | THISISAGOODNAME/SSSR | ea4b6350b2da3d5656c7aa8c87f9965144369d22 | [
"MIT"
] | null | null | null | 3rdparty/FlyCube/src/Core/Resource/DXResource.cpp | THISISAGOODNAME/SSSR | ea4b6350b2da3d5656c7aa8c87f9965144369d22 | [
"MIT"
] | 2 | 2021-09-22T14:39:51.000Z | 2021-11-08T09:47:38.000Z | #include "Resource/DXResource.h"
#include <Device/DXDevice.h>
#include <Memory/DXMemory.h>
#include <Utilities/FileUtility.h>
#include <Utilities/DXGIFormatHelper.h>
#include <directx/d3dx12.h>
#include <optional>
std::optional<D3D12_CLEAR_VALUE> GetClearValue(const D3D12_RESOURCE_DESC& desc)
{
D3D12_CLEAR_VALUE c... | 26.556818 | 114 | 0.678862 | CU-Production |
fff629b7d6dc62be5ef1e71d8a294a85f758e3f3 | 2,472 | cpp | C++ | MonoNative/mscorlib/System/Runtime/CompilerServices/mscorlib_System_Runtime_CompilerServices_YieldAwaitable.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative/mscorlib/System/Runtime/CompilerServices/mscorlib_System_Runtime_CompilerServices_YieldAwaitable.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative/mscorlib/System/Runtime/CompilerServices/mscorlib_System_Runtime_CompilerServices_YieldAwaitable.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | #include <mscorlib/System/Runtime/CompilerServices/mscorlib_System_Runtime_CompilerServices_YieldAwaitable.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/mscorlib_System_Type.h>
namespace mscorlib
{
namespace System
{
namespace Runtime
{
namespace CompilerServices
{
... | 39.870968 | 200 | 0.733819 | brunolauze |
fff98f6067f35d93d7698d47b7a01099ba0f04e2 | 375 | cpp | C++ | TI_Input/InputManager.cpp | edhaker13/team-indecisive | 290d5f8d905fbf7524bfd685336044477b316fbe | [
"CC-BY-3.0"
] | null | null | null | TI_Input/InputManager.cpp | edhaker13/team-indecisive | 290d5f8d905fbf7524bfd685336044477b316fbe | [
"CC-BY-3.0"
] | null | null | null | TI_Input/InputManager.cpp | edhaker13/team-indecisive | 290d5f8d905fbf7524bfd685336044477b316fbe | [
"CC-BY-3.0"
] | null | null | null | #include "InputManager.h"
namespace Indecisive
{
bool InputManager::IsKeyDown(KeyCode vKey) { return (GetAsyncKeyState(vKey) & 0x0800) == 1; };
void InputManager::RegisterAction(KeyCode vKey, InputCallback func) { mKeyActions.emplace(vKey, func); };
void InputManager::KeyPress(KeyCode vKey)
{
if (mKeyActions.fin... | 34.090909 | 106 | 0.738667 | edhaker13 |
fff9f154aecf0bb962381015c5c3f8efbd0695b0 | 3,620 | cc | C++ | modules/canbus/vehicle/devkit/protocol/park_command_104.cc | mariomister/apollo | 187f2eb5ca2d08c46102b3fb1cf739a0f633b278 | [
"Apache-2.0"
] | 1 | 2021-02-08T08:50:28.000Z | 2021-02-08T08:50:28.000Z | modules/canbus/vehicle/devkit/protocol/park_command_104.cc | Mrrabbitan/apollo | ff6bb065eb343689603a0827828728ed4fa1a699 | [
"Apache-2.0"
] | null | null | null | modules/canbus/vehicle/devkit/protocol/park_command_104.cc | Mrrabbitan/apollo | ff6bb065eb343689603a0827828728ed4fa1a699 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2020 The Apollo 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
... | 33.518519 | 79 | 0.680939 | mariomister |
fffed4bb2e45db3c338f306d607099acd55b7dad | 483 | cpp | C++ | newStyleCpp/DqueueTest.cpp | baixiaoxi/newStyleCpp | d40abdf948cec98dddb3158e4d13fb096b84a20c | [
"MIT"
] | null | null | null | newStyleCpp/DqueueTest.cpp | baixiaoxi/newStyleCpp | d40abdf948cec98dddb3158e4d13fb096b84a20c | [
"MIT"
] | null | null | null | newStyleCpp/DqueueTest.cpp | baixiaoxi/newStyleCpp | d40abdf948cec98dddb3158e4d13fb096b84a20c | [
"MIT"
] | null | null | null | #include "DqueueTest.h"
#include <deque>
namespace DqueueTest
{
using namespace std;
bool DqueueTest::test()
{
deque<int> c1, c2;
c1.push_back(1);
c2.push_back(2);
c1.pop_front();
c2.pop_back();
if (c1 != c2)
cout << "The deques are not equal." << endl;
else
cout << "The dequ... | 16.655172 | 48 | 0.554865 | baixiaoxi |
0803b553985192268546f1df44c8049ccaf04226 | 2,177 | cpp | C++ | example/eagine/compress_self.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | 1 | 2022-01-25T10:31:51.000Z | 2022-01-25T10:31:51.000Z | example/eagine/compress_self.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | example/eagine/compress_self.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | /// @example eagine/compress_self.cpp
///
/// Copyright Matus Chochlik.
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE_1_0.txt or copy at
/// http://www.boost.org/LICENSE_1_0.txt
///
#include <eagine/compression.hpp>
#include <eagine/file_contents.hpp>
#include <eagine... | 32.492537 | 80 | 0.535599 | matus-chochlik |
080437351991b46fdca0a5f97c38beee67a6282b | 2,025 | hh | C++ | src/memory/CheckedRam.hh | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/memory/CheckedRam.hh | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/memory/CheckedRam.hh | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #ifndef CHECKEDRAM_HH
#define CHECKEDRAM_HH
#include "Ram.hh"
#include "TclCallback.hh"
#include "CacheLine.hh"
#include "Observer.hh"
#include "openmsx.hh"
#include <vector>
#include <bitset>
namespace openmsx {
class DeviceConfig;
class MSXCPU;
class Setting;
/**
* This class keeps track of which bytes in the Ra... | 27.739726 | 79 | 0.741235 | imulilla |
0805708a75d879c59cb03bc0e34bd403a459d8b9 | 28,778 | cpp | C++ | tests/unit/api/c/merge_receiver/test_merge_receiver.cpp | bruingineer/sACN-1 | aef4a38f025f3800248ac24e377485dba27ed16f | [
"Apache-2.0"
] | null | null | null | tests/unit/api/c/merge_receiver/test_merge_receiver.cpp | bruingineer/sACN-1 | aef4a38f025f3800248ac24e377485dba27ed16f | [
"Apache-2.0"
] | null | null | null | tests/unit/api/c/merge_receiver/test_merge_receiver.cpp | bruingineer/sACN-1 | aef4a38f025f3800248ac24e377485dba27ed16f | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2021 ETC Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 40.418539 | 119 | 0.758079 | bruingineer |
080731deff4b1e148645413a70b83fa2a1cea9b8 | 2,379 | cpp | C++ | src/CBS/MutexReasoning.cpp | ed-lam/lns2-for-bcp-mapf | 64ca414dffb73e4f19b34d64cb7879a77c4885e5 | [
"MIT"
] | null | null | null | src/CBS/MutexReasoning.cpp | ed-lam/lns2-for-bcp-mapf | 64ca414dffb73e4f19b34d64cb7879a77c4885e5 | [
"MIT"
] | null | null | null | src/CBS/MutexReasoning.cpp | ed-lam/lns2-for-bcp-mapf | 64ca414dffb73e4f19b34d64cb7879a77c4885e5 | [
"MIT"
] | null | null | null | #include "MutexReasoning.h"
#include "ConstraintPropagation.h"
namespace lns
{
using namespace lns;
shared_ptr<Conflict> MutexReasoning::run(int a1, int a2, CBSNode& node, MDD* mdd_1, MDD* mdd_2)
{
clock_t t = clock();
auto conflict = findMutexConflict(a1, a2, node, mdd_1, mdd_2);
accumulated_runtime += (double)(... | 26.142857 | 110 | 0.664565 | ed-lam |
08077b3dae2a72e09837bf50f0b35ced7f567585 | 7,840 | cpp | C++ | 05Bullet-DynamicCC/ModelMatrix.cpp | PohlDaniel/Physics | 37f88e860c9cbcabaf60202c82f51d89aeaca0ba | [
"Zlib"
] | null | null | null | 05Bullet-DynamicCC/ModelMatrix.cpp | PohlDaniel/Physics | 37f88e860c9cbcabaf60202c82f51d89aeaca0ba | [
"Zlib"
] | null | null | null | 05Bullet-DynamicCC/ModelMatrix.cpp | PohlDaniel/Physics | 37f88e860c9cbcabaf60202c82f51d89aeaca0ba | [
"Zlib"
] | null | null | null | #include <iostream>
#include "ModelMatrix.h"
ModelMatrix::ModelMatrix() {
pos = false;
posRot = false;
T.identity();
invT.identity();
startPosition = Vector3f(0.0, 0.0, 0.0);
orientation.identity();
}
ModelMatrix::~ModelMatrix() {
}
void ModelMatrix::setRotPos(const Vector3f &axis, float degrees, float dx, f... | 35.156951 | 163 | 0.534439 | PohlDaniel |
080a577faaae4f9bf9402a7f49a3819ab44f52aa | 895 | cpp | C++ | Binary_Search/rowcol_BS.cpp | MYK12397/Algorithmic-Techniques | 36b42aec550fba9ff49a74a383f6e9729e63dbc8 | [
"MIT"
] | null | null | null | Binary_Search/rowcol_BS.cpp | MYK12397/Algorithmic-Techniques | 36b42aec550fba9ff49a74a383f6e9729e63dbc8 | [
"MIT"
] | null | null | null | Binary_Search/rowcol_BS.cpp | MYK12397/Algorithmic-Techniques | 36b42aec550fba9ff49a74a383f6e9729e63dbc8 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
// bool searchMatrix(vector<vector<int>>& matrix, int target) {
// if (matrix.empty() || matrix[0].size() == 0)
// return false;
// int sr = -1;
// for (int i = 0; i < matrix.size(); i++)
// {
// if (matrix[i][0] > target)
// break;
// sr++;
// }
// if (sr == ... | 21.829268 | 82 | 0.496089 | MYK12397 |
080b76c85a304408ffb9e5006ccf60f4afd418c3 | 2,286 | hpp | C++ | include/remove_copy.hpp | vreverdy/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 16 | 2019-06-17T23:56:15.000Z | 2021-07-04T23:35:31.000Z | include/remove_copy.hpp | bkille/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 3 | 2019-04-28T04:53:31.000Z | 2019-06-01T15:15:11.000Z | include/remove_copy.hpp | bkille/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 6 | 2019-03-13T19:21:36.000Z | 2020-01-01T12:31:34.000Z | // ============================== REMOVE COPY ============================== //
// Project: The Experimental Bit Algorithms Library
// Name: remove_copy.hpp
// Description: bit_iterator overloads for std::remove_copy, std::remove_copy_if
// Creator: Vincent Reverdy
// Contributor(s):
// License: BSD 3-Clause License
/... | 35.71875 | 82 | 0.57699 | vreverdy |
080bebdbc0e5dd46cfc4a9dd9cf28f64bd0d11a1 | 141 | cpp | C++ | Entity.cpp | LederHut/DungeonCrawler | af402ac7ac8793fd5168e92681a65dfb395774d6 | [
"Apache-2.0"
] | null | null | null | Entity.cpp | LederHut/DungeonCrawler | af402ac7ac8793fd5168e92681a65dfb395774d6 | [
"Apache-2.0"
] | null | null | null | Entity.cpp | LederHut/DungeonCrawler | af402ac7ac8793fd5168e92681a65dfb395774d6 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Entity.h"
Entity::Entity(SMALL_RECT dimensions)
:Dimensions(dimensions)
{
}
Entity::~Entity()
{
}
| 10.846154 | 38 | 0.631206 | LederHut |
080d58dd3dac77e18b1589171967e4e4e315bbb7 | 1,944 | cpp | C++ | app/src/main/cpp/graphics/data/texture.cpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 10 | 2021-06-06T15:30:05.000Z | 2022-03-20T09:48:18.000Z | app/src/main/cpp/graphics/data/texture.cpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 1 | 2021-09-23T08:44:50.000Z | 2021-09-23T08:44:50.000Z | app/src/main/cpp/graphics/data/texture.cpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 2 | 2021-08-09T07:50:10.000Z | 2021-12-31T13:51:53.000Z | /*
* Copyright 2020 Konstantinos Tzevanidis
*
* 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 ... | 31.868852 | 106 | 0.684156 | ktzevani |
081773ef2de56f42258e4248bbafe5f41326bad5 | 677 | hpp | C++ | src/commonlibs/consumer.hpp | suratovvlad/squaresolver | c64b6125af52ba9df76febcebfff9417ce77541b | [
"MIT"
] | null | null | null | src/commonlibs/consumer.hpp | suratovvlad/squaresolver | c64b6125af52ba9df76febcebfff9417ce77541b | [
"MIT"
] | null | null | null | src/commonlibs/consumer.hpp | suratovvlad/squaresolver | c64b6125af52ba9df76febcebfff9417ce77541b | [
"MIT"
] | null | null | null | #pragma once
#include "quadraticequationworker.hpp"
/**
* \brief Consumer. It takes task from the task queue and executes it.
* For this particular program, it takes parameters of quadratic equation
* from the queue and delegates solving of this equation to the Solver class.
*/
class Consumer final : QuadraticEqua... | 32.238095 | 77 | 0.70901 | suratovvlad |
0817c9960046b17de0749975cc1480d091dc41c8 | 1,057 | cpp | C++ | 30-days-leetcode/day18.cpp | tricktron/Programming-Challenges | 0ece339a789529731eac8b908aa37d084fcdfe2a | [
"MIT"
] | null | null | null | 30-days-leetcode/day18.cpp | tricktron/Programming-Challenges | 0ece339a789529731eac8b908aa37d084fcdfe2a | [
"MIT"
] | null | null | null | 30-days-leetcode/day18.cpp | tricktron/Programming-Challenges | 0ece339a789529731eac8b908aa37d084fcdfe2a | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
int minPathSum(vector<vector<int>>& grid) {
int m = grid.size();
int n = grid[0].size();
vector<vector<int>> dp = grid;
// init first row, only reachable b... | 26.425 | 104 | 0.46736 | tricktron |
08197f20e1c7ca6d8674526f79518daef8ba36bc | 1,114 | cpp | C++ | utils/hash_160.cpp | jmjatlanta/bitcoin-toolbox | 26dd27004c0e3ef13046b0aa598fba3f11dcbcc2 | [
"MIT"
] | null | null | null | utils/hash_160.cpp | jmjatlanta/bitcoin-toolbox | 26dd27004c0e3ef13046b0aa598fba3f11dcbcc2 | [
"MIT"
] | null | null | null | utils/hash_160.cpp | jmjatlanta/bitcoin-toolbox | 26dd27004c0e3ef13046b0aa598fba3f11dcbcc2 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
#include <hex_conversion.hpp>
#include <sstream>
#include <iomanip>
std::string vector_to_hex_string(std::vector<uint8_t> incoming)
{
std::stringstream ss;
for(auto i : incoming)
{
ss << std::hex << std::setw(2) << std::setfill('0') << (int)i;
}
return ss.str(... | 25.906977 | 86 | 0.648115 | jmjatlanta |
081a179a29f1f1d83dcaa2b7a50c19f51aa1b357 | 555 | cpp | C++ | samples/01_programming 101/2015/sorting/inssort.cpp | code-hunger/lecture-notes | 0200c57a4c2539b4d8b7cb172c2b6e4f5c689268 | [
"MIT"
] | 32 | 2016-11-24T01:40:21.000Z | 2021-11-01T19:24:22.000Z | samples/01_programming 101/2015/sorting/inssort.cpp | code-hunger/lecture-notes | 0200c57a4c2539b4d8b7cb172c2b6e4f5c689268 | [
"MIT"
] | 6 | 2016-10-15T05:57:00.000Z | 2021-08-13T12:29:24.000Z | samples/01_programming 101/2015/sorting/inssort.cpp | code-hunger/lecture-notes | 0200c57a4c2539b4d8b7cb172c2b6e4f5c689268 | [
"MIT"
] | 49 | 2016-01-26T13:36:02.000Z | 2022-03-16T10:24:41.000Z | #include <iostream>
using namespace std;
int main ()
{
const int arrSize = 5;
int a[arrSize] = {0};
int x,i,k;
for (i = 0; i < arrSize; i++)
{
cout << "Please enter a number:";
cin >> x;
int j;
for (j = 0;a[j]<x && j<i;j++){};
//j е точно индекса в масива, на
//който трябва да запишем x
/... | 13.536585 | 44 | 0.502703 | code-hunger |
081da5c77bf2e820f82dc0d370b4953c4fe373f5 | 2,157 | hpp | C++ | swarm/urlfetcher/ev_event_loop.hpp | iderikon/swarm | 93c0a54f32d20fe58c228d1b785b004054f9ae0d | [
"Apache-2.0"
] | 23 | 2015-03-04T12:28:24.000Z | 2021-11-16T10:53:30.000Z | swarm/urlfetcher/ev_event_loop.hpp | iderikon/swarm | 93c0a54f32d20fe58c228d1b785b004054f9ae0d | [
"Apache-2.0"
] | 38 | 2015-01-13T13:11:01.000Z | 2016-07-05T13:20:54.000Z | swarm/urlfetcher/ev_event_loop.hpp | iderikon/swarm | 93c0a54f32d20fe58c228d1b785b004054f9ae0d | [
"Apache-2.0"
] | 18 | 2015-01-09T22:35:52.000Z | 2017-04-26T15:12:29.000Z | /*
* Copyright 2013+ Ruslan Nigmatullin <euroelessar@yandex.ru>
*
* 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 ... | 27.303797 | 91 | 0.736671 | iderikon |
081e7ce0a273d6cb5b0c08c625ff17bb8c398fbd | 42,877 | cpp | C++ | bin/test-ok/2.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | 8 | 2016-05-17T08:26:49.000Z | 2021-05-16T22:33:59.000Z | bin/test-ok/2.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | null | null | null | bin/test-ok/2.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | 6 | 2017-05-04T01:21:15.000Z | 2021-04-20T12:21:14.000Z | /*
** Lua binding: tclass
** Generated automatically by tolua++-1.0.92 on 01/05/16 18:22:51.
*/
#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"
#include "tolua++.h"
/* Exported function */
TOLUA_API int tolua_tclass_open (lua_State* tolua_S);
#include "tclass.h"
Test::Tst_A* Test... | 29.307587 | 114 | 0.714509 | badforlabor |
083223d6fd7771f3c7576892626325cbfd59e632 | 6,829 | hpp | C++ | include/hypergraph.hpp | VeryLargeGraph/HTC | 7fd8b10bdc92635c24dbae97a42f25da23a26931 | [
"MIT"
] | null | null | null | include/hypergraph.hpp | VeryLargeGraph/HTC | 7fd8b10bdc92635c24dbae97a42f25da23a26931 | [
"MIT"
] | null | null | null | include/hypergraph.hpp | VeryLargeGraph/HTC | 7fd8b10bdc92635c24dbae97a42f25da23a26931 | [
"MIT"
] | null | null | null | #ifndef HYPERGRAPH_HPP_
#define HYPERGRAPH_HPP_
#include <fstream>
#include <sstream>
#include "hyperedge.hpp"
class HyperGraph {
public:
std::vector<std::vector<eid_t>> V;
std::vector<HyperEdge> E;
vid_t sizeV() const;
eid_t sizeE() const;
bool readFileEdgeString(const std::string &path);
bool readFile... | 26.885827 | 111 | 0.516474 | VeryLargeGraph |
083254d59e0b8558ce99d8af2a18bcb07ffcd36a | 476 | cpp | C++ | Mathematics/Josephus Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T12:30:13.000Z | 2022-02-12T13:59:20.000Z | Mathematics/Josephus Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T11:09:41.000Z | 2022-02-12T11:55:49.000Z | Mathematics/Josephus Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int solve(int n,int k){
int curr=n,cnt=0,f=2,step=1,s=1;
while (k>cnt+(curr+2-f)/2){
int tmp=(curr+2-f)/2;
cnt+=tmp;
if (f==1) s+=(1<<(step-1));
if (curr%2) f=3-f;
curr-=tmp;
++step;
}
if (f==2) s+=(1<<(step-1));
return s+(1<<step)*(k-cnt-1);
}
int main(... | 17 | 46 | 0.531513 | DecSP |
0834f589f93609fef7c680546b5e2b141cf3e9d2 | 4,326 | cc | C++ | src/wasp_engine/src/wasp_engine_demo/src/cm_emulator.cc | Song-MS/angel_bridge | d32da6e781011724e9977c1206afc4555c31ba0a | [
"MIT"
] | null | null | null | src/wasp_engine/src/wasp_engine_demo/src/cm_emulator.cc | Song-MS/angel_bridge | d32da6e781011724e9977c1206afc4555c31ba0a | [
"MIT"
] | null | null | null | src/wasp_engine/src/wasp_engine_demo/src/cm_emulator.cc | Song-MS/angel_bridge | d32da6e781011724e9977c1206afc4555c31ba0a | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <chrono>
#include <vector>
#include <cmath>
#include <random>
#include <cerrno>
#include <cstring>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "eth_packet/eth_packet.hpp"
class JointEmulator
{
public:
JointEmulator(float dt, float i... | 28.649007 | 94 | 0.542765 | Song-MS |
0835033c33c2c0cfbb38c4fbf785ad97c0a342b9 | 243 | cpp | C++ | src/JokerCallRole.cpp | skyser2003/libMighty | 35b2e8d8a3f6e25b15b90c84000b8490dd5a7029 | [
"MIT"
] | 1 | 2017-01-21T00:52:43.000Z | 2017-01-21T00:52:43.000Z | src/JokerCallRole.cpp | skyser2003/libMighty | 35b2e8d8a3f6e25b15b90c84000b8490dd5a7029 | [
"MIT"
] | null | null | null | src/JokerCallRole.cpp | skyser2003/libMighty | 35b2e8d8a3f6e25b15b90c84000b8490dd5a7029 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "libMighty_JokerCallRole.h"
namespace Mighty
{
void JokerCallRole::SetIsActivated(bool isActivated)
{
this->isActivated = isActivated;
}
bool JokerCallRole::IsActivated() const
{
return isActivated;
}
} | 16.2 | 53 | 0.748971 | skyser2003 |
083c59ef753cf27208820f808e071644f312cdb3 | 460 | cpp | C++ | Engine/Input/TabletInput.cpp | OGRECave/scape | 9c95ec7b6d8372a7a2a4eb6b96dcb5f2219e2bf2 | [
"BSD-2-Clause"
] | 48 | 2018-06-18T01:38:41.000Z | 2022-03-25T10:29:27.000Z | Engine/Input/TabletInput.cpp | OGRECave/scape | 9c95ec7b6d8372a7a2a4eb6b96dcb5f2219e2bf2 | [
"BSD-2-Clause"
] | 32 | 2018-07-23T14:17:23.000Z | 2020-11-02T23:28:48.000Z | Engine/Input/TabletInput.cpp | OGRECave/scape | 9c95ec7b6d8372a7a2a4eb6b96dcb5f2219e2bf2 | [
"BSD-2-Clause"
] | 7 | 2018-07-23T09:34:06.000Z | 2022-02-15T09:54:16.000Z | /**
* Giliam de Carpentier, Copyright (c) 2007.
* Licensed under the Simplified BSD license.
* See Docs/ScapeLicense.txt for details.
*/
#include "ScapeEngineStableHeaders.h"
#include "TabletInput.h"
#include "TabletInputWin32.h"
using namespace ScapeEngine;
TabletInput* TabletInput::create(const string& inputWi... | 21.904762 | 59 | 0.758696 | OGRECave |
083f5b37fb513bd06432cff338b8f62783315a75 | 2,644 | hpp | C++ | include/dish2/record/write_cell_census.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | 1 | 2021-02-12T23:53:55.000Z | 2021-02-12T23:53:55.000Z | include/dish2/record/write_cell_census.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | include/dish2/record/write_cell_census.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | #pragma once
#ifndef DISH2_RECORD_WRITE_CELL_CENSUS_HPP_INCLUDE
#define DISH2_RECORD_WRITE_CELL_CENSUS_HPP_INCLUDE
#include <mutex>
#include <string>
#include "../../../third-party/bxzstr/include/bxzstr.hpp"
#include "../../../third-party/Empirical/include/emp/base/macros.hpp"
#include "../../../third-party/Empirical... | 33.468354 | 80 | 0.733737 | schregardusc |
36b06555dac2ba434512f20d93779d714dee00d1 | 3,071 | cpp | C++ | src/Physics/CollisionHandlers/kinematicCollisionHandler.cpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | src/Physics/CollisionHandlers/kinematicCollisionHandler.cpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | src/Physics/CollisionHandlers/kinematicCollisionHandler.cpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | #include "kinematicCollisionHandler.hpp"
#include "Physics/CollisionBody/collisionBody.hpp"
#include "Logs/logs.hpp"
#include <cmath>
namespace ph {
void KinematicCollisionHandler::operator()(CollisionBody& firstKinematicBody, CollisionBody& secondKinematicBody)
{
init(firstKinematicBody, secondKinematicBody);
calc... | 31.020202 | 131 | 0.788994 | PierrickLP |
36b34386baec5e39d83c50132cc983ca8aa1f4fb | 811 | hpp | C++ | code/src/EventsHandler.hpp | LinDevHard/basic_sdl | c8f30d70e5e81b7ac7aadda5587999ef49f7de90 | [
"MIT"
] | null | null | null | code/src/EventsHandler.hpp | LinDevHard/basic_sdl | c8f30d70e5e81b7ac7aadda5587999ef49f7de90 | [
"MIT"
] | 2 | 2018-11-10T13:14:50.000Z | 2018-11-10T13:18:02.000Z | code/src/EventsHandler.hpp | LinDevHard/basic_sdl | c8f30d70e5e81b7ac7aadda5587999ef49f7de90 | [
"MIT"
] | 1 | 2018-11-10T10:03:16.000Z | 2018-11-10T10:03:16.000Z | #pragma once
#include "AbstractWindow.hpp"
class IEventActor;
namespace sdl
{
void EventHandle(const SDL_Event &event, IEventActor &actor);
}
class IEventActor
{
public:
virtual ~IEventActor() = default;
virtual void OnResize(){};
virtual void OnMouseUp(const SDL_MouseButtonEvent & ){}
virtual void OnMou... | 22.527778 | 63 | 0.729963 | LinDevHard |
36b49959c1cd4317941ed689e13c72dc056c552e | 398 | cpp | C++ | AIEphys/src/Item.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | AIEphys/src/Item.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | AIEphys/src/Item.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | #include "Item.h"
#include "Texture.h"
CItem::CItem(const char* a_textureFilename, glm::vec2 a_position)
{
m_Texture = new aie::Texture(a_textureFilename);
m_Position = a_position;
}
CItem::~CItem()
{
delete m_Texture;
}
aie::Texture* CItem::GetTexturePtr()
{
return m_Texture;
}
float CItem::GetRotation()
{
ret... | 14.214286 | 65 | 0.721106 | squeenie |
36b6a148c1b992d1de15ebf6c190ff04655534c1 | 45,734 | cpp | C++ | src/cast_core/src/CrudActor.cpp | louiswilliams/genny | 0e33ae6d826a1828c7043ed24562b71c1fc63090 | [
"Apache-2.0"
] | null | null | null | src/cast_core/src/CrudActor.cpp | louiswilliams/genny | 0e33ae6d826a1828c7043ed24562b71c1fc63090 | [
"Apache-2.0"
] | null | null | null | src/cast_core/src/CrudActor.cpp | louiswilliams/genny | 0e33ae6d826a1828c7043ed24562b71c1fc63090 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019-present MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 36.645833 | 101 | 0.594656 | louiswilliams |
36b738655505c0e3a517364d6708da1cb894ebc9 | 1,184 | cpp | C++ | aws-cpp-sdk-drs/source/model/CPU.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-drs/source/model/CPU.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-drs/source/model/CPU.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/drs/model/CPU.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace drs
{
names... | 15.376623 | 69 | 0.680743 | perfectrecall |
36b8f65ead0d8ff656221724979a018a8f061fbe | 1,606 | cpp | C++ | Engine/src/Renderer/Skybox.cpp | venCjin/GameEngineProject | d8bdc8fc7236d74f6ecb5e8a8a5211699cc84d22 | [
"Apache-2.0"
] | 1 | 2020-03-04T20:46:40.000Z | 2020-03-04T20:46:40.000Z | Engine/src/Renderer/Skybox.cpp | venCjin/GameEngineProject | d8bdc8fc7236d74f6ecb5e8a8a5211699cc84d22 | [
"Apache-2.0"
] | null | null | null | Engine/src/Renderer/Skybox.cpp | venCjin/GameEngineProject | d8bdc8fc7236d74f6ecb5e8a8a5211699cc84d22 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Skybox.h"
#include <glad/glad.h>
#include <stb_image.h>
namespace sixengine {
Skybox::Skybox(std::vector<std::string> faces)
{
glGenTextures(1, &m_ID);
glBindTexture(GL_TEXTURE_CUBE_MAP, m_ID);
Load(faces);
}
Skybox::~Skybox()
{
}
void Skybox::Load(std::vector<std::string> ... | 26.327869 | 95 | 0.615816 | venCjin |
36baf2a1deb5b5ce2813777cc4cb43687d0b9a00 | 299 | cpp | C++ | int-variables.cpp | Ahtesham1234/int-variable | 66994f1d0bc22146835d7ed623c106cc041f2a28 | [
"Apache-2.0"
] | null | null | null | int-variables.cpp | Ahtesham1234/int-variable | 66994f1d0bc22146835d7ed623c106cc041f2a28 | [
"Apache-2.0"
] | null | null | null | int-variables.cpp | Ahtesham1234/int-variable | 66994f1d0bc22146835d7ed623c106cc041f2a28 | [
"Apache-2.0"
] | null | null | null | //intvariable.cpp
//demonstrates interger variables
#include <iostream>
using namespace std;
int main()
{
int var1; //define var1
int var2; //define var2
var1 = 20; // assign value to var1
var2 = var1 + 10; //assign value to var2
cout<< "var1+10 is " ;
cout << var2 << endl;
return 0;
}
| 17.588235 | 41 | 0.658863 | Ahtesham1234 |
36bb281697d7cfdef3e5f73184edf886ae78a8a5 | 17,378 | cpp | C++ | host/mainwindow.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | null | null | null | host/mainwindow.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | null | null | null | host/mainwindow.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | null | null | null | #include "qt_widgets.h"
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "project.h"
#include "incl_cpp.h"
#include "projectgui.h"
#include "xcore.h"
#include "xobjectimage.h"
#include "consoleview.h"
#include "dialogtestmoduleinterface.h"
#include "exportinterface.h"
MainWindow *MAIN_WINDOW = nullptr;
//... | 30.866785 | 116 | 0.552308 | pavelvasev |
36bd7f776e4b3af929b47bc051ae80235a8e0a36 | 2,509 | cpp | C++ | Sources/Core/IOData/file_system_provider_file.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 248 | 2015-01-08T05:21:40.000Z | 2022-03-20T02:59:16.000Z | Sources/Core/IOData/file_system_provider_file.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 39 | 2015-01-14T17:37:07.000Z | 2022-03-17T12:59:26.000Z | Sources/Core/IOData/file_system_provider_file.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 82 | 2015-01-11T13:23:49.000Z | 2022-02-19T03:17:24.000Z | /*
** ClanLib SDK
** Copyright (c) 1997-2020 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 28.83908 | 94 | 0.74173 | xctan |
36bf2f7ecf77196c140afff041102ce383c1466c | 133 | hpp | C++ | include/ce2/scene/comp/camera/enums/camera_pass.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | include/ce2/scene/comp/camera/enums/camera_pass.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | include/ce2/scene/comp/camera/enums/camera_pass.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "chokoengine.hpp"
CE_BEGIN_NAMESPACE
enum class CameraPass {
Solid,
Transparent
};
CE_END_NAMESPACE
| 11.083333 | 26 | 0.75188 | chokomancarr |
36c9677deaa736d15b0cf9923a80f8cf5b2c50fb | 1,099 | cpp | C++ | trainings/2015-09-30-Multi-University-2015-6/J.cpp | HcPlu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 9 | 2017-10-07T13:35:45.000Z | 2021-06-07T17:36:55.000Z | trainings/2015-09-30-Multi-University-2015-6/J.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | null | null | null | trainings/2015-09-30-Multi-University-2015-6/J.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 3 | 2018-04-24T05:27:21.000Z | 2019-04-25T06:06:00.000Z | #include <iostream>
using namespace std;
const int N = 2017;
const int mod = (int)1e9 + 7;
int f[N][N];
int base[N];
int n, m;
__inline void update(int &x, int y) {
x += y;
if (x >= mod) {
x -= mod;
}
}
__inline void solve() {
scanf("%d%d", &n, &m);
base[0] = 1;
for (int i = 1; i <... | 18.948276 | 87 | 0.354868 | HcPlu |
36ce196632c18b4cefc024dd318947425487a56d | 9,251 | cpp | C++ | Tests/AK/TestUtf16.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | 2 | 2022-02-08T09:18:50.000Z | 2022-02-21T17:57:23.000Z | Tests/AK/TestUtf16.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | null | null | null | Tests/AK/TestUtf16.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <AK/Array.h>
#include <AK/String.h>
#include <AK/StringView.h>
#include <AK/Types.h>
#include <AK/Utf16View.h>
TEST_CASE(decode_ascii)
{
auto string = AK::utf8_to_... | 32.689046 | 345 | 0.623933 | densogiaichned |
36d0333e2a5b39cfacf9113a23e74c36b58bf442 | 12,365 | cpp | C++ | src/type/value.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 1 | 2017-04-17T15:19:36.000Z | 2017-04-17T15:19:36.000Z | src/type/value.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 5 | 2017-04-23T17:16:14.000Z | 2017-04-25T03:14:16.000Z | src/type/value.cpp | phisiart/peloton-p3 | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// value.h
//
// Identification: src/backend/type/value.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===-----------------------------------------------------------... | 28.230594 | 80 | 0.590133 | phisiart |
36d17e4f55ca697d9b0fd1f50ea9212d0e0a183d | 1,326 | cpp | C++ | Eldritch-Source/Code/Libraries/Rodin/src/BTNodes/rodinbtnodecompositesingular.cpp | inferno986return/eldritch-mirror | fefdb06f392b3f8c17f0617a1101c503620bc6fd | [
"Zlib",
"Unlicense"
] | 91 | 2015-01-27T22:56:26.000Z | 2022-03-25T13:33:18.000Z | Code/Libraries/Rodin/src/BTNodes/rodinbtnodecompositesingular.cpp | ctreffs/Eldritch | a6554a05c55920d32ed2f6c5d3f9770e8e2cf517 | [
"Zlib"
] | 2 | 2019-01-04T21:42:26.000Z | 2019-01-06T14:34:08.000Z | Code/Libraries/Rodin/src/BTNodes/rodinbtnodecompositesingular.cpp | Neb-Software/mEldritch | 7d07a845b3f04242ddf1f0abbad606c830ac8f20 | [
"Zlib"
] | 21 | 2015-04-06T17:41:17.000Z | 2021-06-15T00:26:18.000Z | #include "core.h"
#include "rodinbtnodecompositesingular.h"
#include "simplestring.h"
#include "Components/wbcomprodinbehaviortree.h"
RodinBTNodeCompositeSingular::RodinBTNodeCompositeSingular()
: m_ChildIndex( 0 )
, m_ChildStatus( ETS_None )
{
}
RodinBTNodeCompositeSingular::~RodinBTNodeCompositeSingular(... | 24.109091 | 103 | 0.729261 | inferno986return |
36d18bf3edfe482d34367d8a3294ecf5b44d17c4 | 1,597 | hpp | C++ | external/boost_1_60_0/qsboost/proto/context/null.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/proto/context/null.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/proto/context/null.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// \file null.hpp
/// Definintion of null_context\<\>, an evaluation context for
/// proto::eval() that simply evaluates each child expression, doesn't
/// combine the results at all, and returns void.
//
// Copyright 2008 Eric Niebler. D... | 28.017544 | 79 | 0.648716 | wouterboomsma |
36d1ca8bdcb81ba99ab82507cd8777bfcd1aa295 | 690 | cpp | C++ | Chapter_2_Signals_and_Slots/2-4QtWidgetsDemo/widget.cpp | jtonyortiz/QtMasterProjects | a61ff59f9fa3591cea20ce7210e8364b03eb8c84 | [
"MIT"
] | null | null | null | Chapter_2_Signals_and_Slots/2-4QtWidgetsDemo/widget.cpp | jtonyortiz/QtMasterProjects | a61ff59f9fa3591cea20ce7210e8364b03eb8c84 | [
"MIT"
] | null | null | null | Chapter_2_Signals_and_Slots/2-4QtWidgetsDemo/widget.cpp | jtonyortiz/QtMasterProjects | a61ff59f9fa3591cea20ce7210e8364b03eb8c84 | [
"MIT"
] | null | null | null | #include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
//String notation:
/*
connect(ui->horizontalSlider,SIGNAL(valueChanged(int)),
ui->progressBar,SLOT(setValue(int)));
*/
/*
//Functor no... | 17.692308 | 64 | 0.601449 | jtonyortiz |
36d62c96b9049df4859ba506683589e36ff89e01 | 602 | cpp | C++ | aoj/volume0/n0022/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | aoj/volume0/n0022/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | aoj/volume0/n0022/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
while (1) {
int n;
cin >> n;
if (n == 0) {
break;
}
int sum = 0;
int max;
for (int i = 0; i < n; i++) {
int a;
cin >> a;
if (i == 0) {
... | 12.808511 | 37 | 0.254153 | KoKumagai |
36e186c6f1cd16928a23eac32888a5d81b380894 | 642 | hpp | C++ | src/device.hpp | hackmod/node-cuda | 9e38c17f5a1afce68e0f120fd33e8147d5750873 | [
"MIT"
] | null | null | null | src/device.hpp | hackmod/node-cuda | 9e38c17f5a1afce68e0f120fd33e8147d5750873 | [
"MIT"
] | null | null | null | src/device.hpp | hackmod/node-cuda | 9e38c17f5a1afce68e0f120fd33e8147d5750873 | [
"MIT"
] | null | null | null | #ifndef DEVICE_HPP
#define DEVICE_HPP
#include <cuda.h>
#include "bindings.hpp"
namespace NodeCuda {
class Device : public ObjectWrap {
public:
static NAN_MODULE_INIT(Initialize);
protected:
static Nan::Persistent<FunctionTemplate> constructor;
static NAN_METHOD(New);
static NAN_G... | 17.351351 | 59 | 0.661994 | hackmod |
36e29c55725db3a1e9be1400238be1a3deac6baf | 1,019 | hpp | C++ | include/memoria/core/exceptions/win32_system.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2021-07-30T16:54:24.000Z | 2021-09-08T15:48:17.000Z | include/memoria/core/exceptions/win32_system.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | null | null | null | include/memoria/core/exceptions/win32_system.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2020-03-14T15:15:25.000Z | 2020-06-15T11:26:56.000Z |
// Copyright 2018 Victor Smirnov
//
// 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... | 28.305556 | 82 | 0.758587 | victor-smirnov |
36e567ede2ab924182eafc3a1693b840e61acdf9 | 9,043 | cpp | C++ | Dependencies/Source/Blender25/Serialize/BlenderSerialize/bMain.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | Dependencies/Source/Blender25/Serialize/BlenderSerialize/bMain.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | Dependencies/Source/Blender25/Serialize/BlenderSerialize/bMain.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z | /*
bParse
Copyright (c) 2006-2009 Charlie C & Erwin Coumans http://gamekit.googlecode.com
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this sof... | 22.495025 | 244 | 0.490766 | gamekit-developers |
36ee265597640fd489dd141f69560dec140f5d22 | 4,039 | cpp | C++ | 580E.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 580E.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 580E.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#define eps 1e-9
#de... | 22.564246 | 124 | 0.585293 | felikjunvianto |
36f2566581c6f81b3a4ed9363fbc089a49a5821f | 504 | cpp | C++ | src/ld42seed/ld42m/path_utils.cpp | jbuechner/ld42seed | dc68228c70e5e5d9b83a5696df8a101d4dca7686 | [
"MIT"
] | null | null | null | src/ld42seed/ld42m/path_utils.cpp | jbuechner/ld42seed | dc68228c70e5e5d9b83a5696df8a101d4dca7686 | [
"MIT"
] | null | null | null | src/ld42seed/ld42m/path_utils.cpp | jbuechner/ld42seed | dc68228c70e5e5d9b83a5696df8a101d4dca7686 | [
"MIT"
] | null | null | null | #include "pch.h"
#pragma hdrstop
#include "path_utils.h"
std::filesystem::path make_local_path(std::filesystem::path const& path)
{
auto copy = path;
auto appdir = std::filesystem::absolute(os::get_process_module_path());
if (copy.is_relative())
{
copy = std::filesystem::absolute(appdir / copy);
}
auto copyI... | 15.75 | 72 | 0.632937 | jbuechner |
36f46e9a63f0c8b78e6d6389372a4a67aa0ded07 | 6,821 | cpp | C++ | aws-cpp-sdk-appstream/source/model/Application.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-appstream/source/model/Application.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-appstream/source/model/Application.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appstream/model/Application.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespa... | 23.122034 | 130 | 0.730391 | perfectrecall |
36f6b690a54153059ef496f3e3d46a09aeb4ef8c | 5,739 | hh | C++ | include/clap/helpers/host-proxy.hh | iPlug2/clap-helpers | 3f4ccfc33bea4669dae5a5c3a8d3725dc672c965 | [
"MIT"
] | null | null | null | include/clap/helpers/host-proxy.hh | iPlug2/clap-helpers | 3f4ccfc33bea4669dae5a5c3a8d3725dc672c965 | [
"MIT"
] | null | null | null | include/clap/helpers/host-proxy.hh | iPlug2/clap-helpers | 3f4ccfc33bea4669dae5a5c3a8d3725dc672c965 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <clap/clap.h>
#include "checking-level.hh"
#include "misbehaviour-handler.hh"
namespace clap { namespace helpers {
template <MisbehaviourHandler h, CheckingLevel l>
class HostProxy {
public:
HostProxy(const clap_host *host);
void init();
template ... | 37.266234 | 99 | 0.592089 | iPlug2 |
36f72fa3fd56b9f545d0e5261c0e0635012b1af6 | 1,747 | cpp | C++ | MeshGeoToolsLib/MeshNodesAlongSurface.cpp | yingtaohu/ogs | 651ca2f903ee0bf5a8cfb505e8e2fd0562b4ce8e | [
"BSD-4-Clause"
] | null | null | null | MeshGeoToolsLib/MeshNodesAlongSurface.cpp | yingtaohu/ogs | 651ca2f903ee0bf5a8cfb505e8e2fd0562b4ce8e | [
"BSD-4-Clause"
] | null | null | null | MeshGeoToolsLib/MeshNodesAlongSurface.cpp | yingtaohu/ogs | 651ca2f903ee0bf5a8cfb505e8e2fd0562b4ce8e | [
"BSD-4-Clause"
] | null | null | null | /**
* \author Norihiro Watanabe
* \date 2014-03-14
*
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
... | 28.177419 | 77 | 0.603892 | yingtaohu |
36fa459a9bb2efc6bf8710bc577c3b93bf219ccc | 1,469 | hpp | C++ | src/classes/fixnum.hpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | 10 | 2016-10-06T06:22:20.000Z | 2022-02-28T05:33:09.000Z | src/classes/fixnum.hpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | null | null | null | src/classes/fixnum.hpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | 3 | 2018-01-08T03:34:34.000Z | 2021-09-12T12:12:22.000Z | #pragma once
#include "../value.hpp"
namespace Mirb
{
namespace Fixnum
{
typedef intptr_t int_t;
const intptr_t bits = sizeof(int_t) * 8 - 1;
const intptr_t width = bits - 1;
const intptr_t high = INTPTR_MAX >> 1;
const intptr_t low = INTPTR_MIN >> 1;
const intptr_t undef = low - 1;
bool fits(int_... | 26.709091 | 80 | 0.712049 | Zoxc |
36fbe12b0b74ec115db75b52917569a3c886b9a5 | 11,406 | cpp | C++ | node/silkworm/stagedsync/stage_log_index.cpp | tbcd/silkworm | 6c0a6613f240c413e2b545f7daa6d24a5b45b920 | [
"Apache-2.0"
] | 87 | 2020-08-03T11:40:39.000Z | 2022-03-31T10:27:58.000Z | node/silkworm/stagedsync/stage_log_index.cpp | tbcd/silkworm | 6c0a6613f240c413e2b545f7daa6d24a5b45b920 | [
"Apache-2.0"
] | 452 | 2020-08-17T16:32:00.000Z | 2022-03-28T19:19:59.000Z | node/silkworm/stagedsync/stage_log_index.cpp | tbcd/silkworm | 6c0a6613f240c413e2b545f7daa6d24a5b45b920 | [
"Apache-2.0"
] | 28 | 2020-08-27T02:06:50.000Z | 2022-03-03T22:30:46.000Z | /*
Copyright 2021 The Silkworm Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 42.244444 | 119 | 0.655269 | tbcd |
36feb78ff63f867f0f77febeb3fca81ecca60c10 | 82 | cpp | C++ | plugins/GraphView/graphview.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 3 | 2017-05-13T20:36:03.000Z | 2021-07-16T17:23:01.000Z | plugins/GraphView/graphview.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | null | null | null | plugins/GraphView/graphview.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 2 | 2016-08-04T00:16:50.000Z | 2017-09-07T14:50:03.000Z | #include "graphview.h"
GraphView::GraphView()
{
}
GraphView::~GraphView()
{
}
| 6.833333 | 23 | 0.646341 | InfiniteInteractive |
3c046e727ef7dc12268046b880e6b9fa3db20bb4 | 4,207 | hpp | C++ | src/vectoring/distance.hpp | johannes-braun/myrt | bb7d96e9f5de264054f4a27de78722d0763c21a8 | [
"MIT"
] | 1 | 2020-12-05T18:00:23.000Z | 2020-12-05T18:00:23.000Z | src/vectoring/distance.hpp | johannes-braun/myrt | bb7d96e9f5de264054f4a27de78722d0763c21a8 | [
"MIT"
] | null | null | null | src/vectoring/distance.hpp | johannes-braun/myrt | bb7d96e9f5de264054f4a27de78722d0763c21a8 | [
"MIT"
] | null | null | null | #pragma once
#include "vectoring.hpp"
namespace myrt
{
inline float distance(rnu::vec2d point, rnu::vec2d start, line_data_t const& line, bool relative)
{
const auto& p0 = start;
auto p1 = line.value;
if (relative)
p1 += start;
const auto AB = point - p0;
const auto CD = p1 - p0;
c... | 29.215278 | 103 | 0.506299 | johannes-braun |
3c0c619e210c5e0f1edb42099e1e1b32e7127308 | 330 | cpp | C++ | Cpp/169.majority-element.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/169.majority-element.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/169.majority-element.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
/* Boyer-Moore Voting Algorithm */
int majorityElement(vector<int>& nums) {
int count = 0, candidate = 0;
for (int num : nums) {
if (count == 0) candidate = num;
count = num == candidate ? count + 1 : count - 1;
}
return candidate... | 27.5 | 61 | 0.518182 | zszyellow |
3c10530774995a548788b67ea2c7533e79025a99 | 38,851 | cpp | C++ | VapourSynth/src/Anime4KCPPVS.cpp | king350023/Anime4KCPP | 659442101b884108c24811de3c669283d2d8b20e | [
"MIT"
] | null | null | null | VapourSynth/src/Anime4KCPPVS.cpp | king350023/Anime4KCPP | 659442101b884108c24811de3c669283d2d8b20e | [
"MIT"
] | null | null | null | VapourSynth/src/Anime4KCPPVS.cpp | king350023/Anime4KCPP | 659442101b884108c24811de3c669283d2d8b20e | [
"MIT"
] | null | null | null | #include <VapourSynth.h>
#include <VSHelper.h>
#include "Anime4KCPP.hpp"
enum class GPGPU
{
OpenCL, CUDA
};
typedef struct Anime4KCPPData {
VSNodeRef* node = nullptr;
VSVideoInfo vi = VSVideoInfo();
int passes = 2;
int pushColorCount = 2;
double strengthColor = 0.3;
double strengthGradien... | 37.792802 | 190 | 0.570462 | king350023 |
3c1971c13f34e22353e610152884d04623f4ea58 | 159 | cpp | C++ | open_compute/shape.cpp | karimhasebou/Open-compute | a1060ef1438b3d051965beb16769675017eb9684 | [
"MIT"
] | 1 | 2019-11-30T10:26:23.000Z | 2019-11-30T10:26:23.000Z | open_compute/shape.cpp | karimhasebou/Open-compute | a1060ef1438b3d051965beb16769675017eb9684 | [
"MIT"
] | null | null | null | open_compute/shape.cpp | karimhasebou/Open-compute | a1060ef1438b3d051965beb16769675017eb9684 | [
"MIT"
] | null | null | null | //
// shape.cpp
// open_compute
//
// Created by Karim Hasebou on 11/19/19.
// Copyright © 2019 karim hasebou. All rights reserved.
//
#include "shape.h"
| 15.9 | 56 | 0.654088 | karimhasebou |
3c1c8e1793441bb889d370d6f9e7e4b543c526af | 1,562 | cpp | C++ | test/function/scalar/bitset.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | test/function/scalar/bitset.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | test/function/scalar/bitset.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
Copyright 2015 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//====================================... | 31.24 | 100 | 0.608835 | yaeldarmon |
3c26bf4e8ec14a8140d12e91a1d003bc64c44614 | 28,300 | cpp | C++ | Source/dismount/assembler/SecondPassBinary.cpp | eladraz/dismount | 8128820bd3840be00968ce76e5fd6da368b2ea9d | [
"BSD-3-Clause"
] | 1 | 2017-06-07T08:34:19.000Z | 2017-06-07T08:34:19.000Z | Source/dismount/assembler/SecondPassBinary.cpp | eladraz/dismount | 8128820bd3840be00968ce76e5fd6da368b2ea9d | [
"BSD-3-Clause"
] | null | null | null | Source/dismount/assembler/SecondPassBinary.cpp | eladraz/dismount | 8128820bd3840be00968ce76e5fd6da368b2ea9d | [
"BSD-3-Clause"
] | null | null | null | #include "dismount/dismount.h"
/*
* SecondPassBinary.cpp
*
* Implementation file
*
* Author: Elad Raz <e@eladraz.com>
*/
#include "xStl/types.h"
#include "xStl/except/trace.h"
#include "xStl/except/assert.h"
#include "xStl/data/alignment.h"
#include "xStl/data/array.h"
#include "xStl/data/list.h"
#include "xStl/d... | 38.398915 | 210 | 0.539788 | eladraz |
3c2772e7fe2149d5cae0ce3bbf8a3cdf20b353b9 | 457 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/zzz/entry_point/is_procedure.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/zzz/entry_point/is_procedure.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/zzz/entry_point/is_procedure.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits>
#include <msw/config.hpp>
#ifdef MSW_NO_RESULT_OF
# include <boost/utility/result_of.hpp>
#endif
namespace msw {
namespace entry_point {
namespace zzz {
template <typename Fn>
struct is_procedure
: std::is_same
<
#ifdef MSW_NO_RESULT_OF
... | 15.758621 | 43 | 0.617068 | yklishevich |
3c28dddf360fa3ebc0683cde156aba24280d16cb | 12,174 | cpp | C++ | AK/Tests/TestChecked.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | 2 | 2021-11-26T08:23:43.000Z | 2021-12-28T20:20:53.000Z | AK/Tests/TestChecked.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | null | null | null | AK/Tests/TestChecked.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2020, Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
* 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... | 29.620438 | 100 | 0.673895 | andrigamerita |
3c2a8c026bff7594a4b6762ce2b94abc1dd9aec9 | 1,666 | cpp | C++ | test/unit/semantic/types/concrete/TipMuTest.cpp | jlt3fw/oralreportpractice | fb6ae5366cf5b45bc1d5c08f00f97bee38909fcc | [
"MIT"
] | null | null | null | test/unit/semantic/types/concrete/TipMuTest.cpp | jlt3fw/oralreportpractice | fb6ae5366cf5b45bc1d5c08f00f97bee38909fcc | [
"MIT"
] | null | null | null | test/unit/semantic/types/concrete/TipMuTest.cpp | jlt3fw/oralreportpractice | fb6ae5366cf5b45bc1d5c08f00f97bee38909fcc | [
"MIT"
] | null | null | null | #include "TipMu.h"
#include "TipInt.h"
#include "TipVar.h"
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include <memory>
#include <sstream>
TEST_CASE("TipMu: test TipMus are compared by their underlying t and v" "[TipMu]") {
auto term = std::make_shared<TipInt>();... | 25.630769 | 88 | 0.635054 | jlt3fw |
3c2b51e09b1e161729490a19b6e8e6401c6c6be5 | 633 | hpp | C++ | src/chess/tweenable.hpp | delveam/chess | 2c1e8582b73cb59d71e14a50f671d4ccbac34b95 | [
"MIT"
] | null | null | null | src/chess/tweenable.hpp | delveam/chess | 2c1e8582b73cb59d71e14a50f671d4ccbac34b95 | [
"MIT"
] | 1 | 2021-07-25T15:54:27.000Z | 2021-07-25T15:54:27.000Z | src/chess/tweenable.hpp | delveam/chess | 2c1e8582b73cb59d71e14a50f671d4ccbac34b95 | [
"MIT"
] | null | null | null | #ifndef TWEENABLE_HPP
#define TWEENABLE_HPP
#include "../dam/vector2f.hpp"
class Tweenable {
public:
Tweenable() = default;
Tweenable(dam::Vector2F start, dam::Vector2F end, float duration) :
m_start(start),
m_end(end),
m_duration(duration)
{
}
dam::Vector2F position() cons... | 19.181818 | 71 | 0.593997 | delveam |
3c2fcbc09d3b3fcf8ec9573b04b1e9cf528a812b | 823 | cpp | C++ | src/Vulkan/PhysicalDevice.cpp | nishidate-yuki/vkray | 604714f09f9cf5b140c02ef04ce081e36387c763 | [
"MIT"
] | 9 | 2021-01-18T12:46:41.000Z | 2021-01-20T08:16:11.000Z | src/Vulkan/PhysicalDevice.cpp | nishidate-yuki/vkray | 604714f09f9cf5b140c02ef04ce081e36387c763 | [
"MIT"
] | null | null | null | src/Vulkan/PhysicalDevice.cpp | nishidate-yuki/vkray | 604714f09f9cf5b140c02ef04ce081e36387c763 | [
"MIT"
] | 1 | 2021-01-20T00:54:23.000Z | 2021-01-20T00:54:23.000Z | #include <iostream>
#include "vktiny/Vulkan/PhysicalDevice.hpp"
namespace vkt
{
void PhysicalDevice::initialize(const Instance& instance)
{
physicalDevice = instance.get().enumeratePhysicalDevices().front();
}
uint32_t PhysicalDevice::findMemoryType(uint32_t typeFilter,
... | 34.291667 | 96 | 0.616039 | nishidate-yuki |
3c2fe50f5b57d96ff351f1f05858ec50940787e9 | 356 | cpp | C++ | DerydocaEngine/src/Input/Key.cpp | Derydoca/derydocaengine | a9cdb71082fbb879d9448dc0c1a95581681d61f1 | [
"BSD-3-Clause"
] | 37 | 2018-05-21T15:21:26.000Z | 2020-11-16T17:50:44.000Z | DerydocaEngine/src/Input/Key.cpp | Derydoca/derydocaengine | a9cdb71082fbb879d9448dc0c1a95581681d61f1 | [
"BSD-3-Clause"
] | 38 | 2018-03-09T23:57:07.000Z | 2020-07-10T20:52:42.000Z | DerydocaEngine/src/Input/Key.cpp | Derydoca/derydocaengine | a9cdb71082fbb879d9448dc0c1a95581681d61f1 | [
"BSD-3-Clause"
] | 5 | 2018-08-28T11:12:18.000Z | 2019-09-05T09:30:41.000Z | #include "EnginePch.h"
#include "Input\Key.h"
namespace DerydocaEngine::Input
{
Key::Key()
{
m_isDown = false;
m_downTime = 0;
}
Key::~Key()
{
}
void Key::setState(bool const& isDown, unsigned long const& tick) {
if (m_prevDownState != isDown)
{
m_stateChangeTick = tick;
}
m_prevDownState = m... | 12.714286 | 68 | 0.643258 | Derydoca |
3c36762b21a6fea9e7ef69853b7bb7f831db9977 | 4,641 | cpp | C++ | duilib/Utils/DpiManager.cpp | l619534951/monitor_helper_duilib | a0df2a0285bdd37b77a611fba080dee0e55bda4f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | duilib/Utils/DpiManager.cpp | l619534951/monitor_helper_duilib | a0df2a0285bdd37b77a611fba080dee0e55bda4f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | duilib/Utils/DpiManager.cpp | l619534951/monitor_helper_duilib | a0df2a0285bdd37b77a611fba080dee0e55bda4f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "DpiManager.h"
namespace ui
{
DpiManager* DpiManager::GetInstance()
{
static DpiManager dpiManager;
return &dpiManager;
}
DpiManager::DpiManager()
{
m_nScaleFactor = 100;
m_nLimitScaleFactor = (UINT)-1;
m_bAdaptDPI = false;
}
UINT DpiManager::GetSystemDPI()
{
UINT dpi = 96;
if (I... | 19.582278 | 109 | 0.697048 | l619534951 |
3c39f00ebdc4db1d19d5d3d81717b1594ec669fa | 28,860 | hpp | C++ | sorted_flat_deque.hpp | yurablok/sorted_flat_deque | f74ac04eefda5ab8cc03a6560dd260c209ec668d | [
"BSL-1.0"
] | 4 | 2021-02-04T03:36:23.000Z | 2022-02-04T13:00:43.000Z | sorted_flat_deque.hpp | yurablok/sorted_flat_deque | f74ac04eefda5ab8cc03a6560dd260c209ec668d | [
"BSL-1.0"
] | 1 | 2019-10-11T18:49:53.000Z | 2019-10-15T10:56:18.000Z | sorted_flat_deque.hpp | yurablok/sorted_flat_deque | f74ac04eefda5ab8cc03a6560dd260c209ec668d | [
"BSL-1.0"
] | null | null | null | // sorted_flat_deque
// C++11, STL-like API, bidirectional iterator, one memory allocation in the circular buffer.
//
// push - O(n/2)
// pop - O(1)
// min - O(1)
// median - O(1)
// max - O(1)
// average - O(1)
//
// Author: Yurii Blok
// License: BSL-1.0
// https://github.com/yurablok/sorted_flat_deque
// History:
//... | 35.367647 | 100 | 0.518746 | yurablok |
3c3de9c6a56464c4151deb45427d3dc0792d7f7b | 2,464 | cpp | C++ | Runtime/World/CScriptBeam.cpp | Jcw87/urde | fb9ea9092ad00facfe957ece282a86c194e9cbda | [
"MIT"
] | 267 | 2016-03-10T21:59:16.000Z | 2021-03-28T18:21:03.000Z | Runtime/World/CScriptBeam.cpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 129 | 2016-03-12T10:17:32.000Z | 2021-04-05T20:45:19.000Z | Runtime/World/CScriptBeam.cpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 31 | 2016-03-20T00:20:11.000Z | 2021-03-10T21:14:11.000Z | #include "Runtime/World/CScriptBeam.hpp"
#include "Runtime/CStateManager.hpp"
#include "Runtime/Particle/CWeaponDescription.hpp"
#include "Runtime/Weapon/CPlasmaProjectile.hpp"
#include "Runtime/World/CActorParameters.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path
namespace metaforce {
CS... | 42.482759 | 115 | 0.691153 | Jcw87 |
3c4076e9765d59b3bfaedbb3e558bdce741e7d60 | 28 | cpp | C++ | native/graphics/audio/audio_manager.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | null | null | null | native/graphics/audio/audio_manager.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | 7 | 2021-09-02T05:58:24.000Z | 2022-02-27T07:06:43.000Z | native/graphics/audio/audio_manager.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | 2 | 2020-02-06T02:05:15.000Z | 2021-11-25T11:35:14.000Z | #include "audio_manager.h"
| 9.333333 | 26 | 0.75 | 49View |
3c40d2d86e5a7a3edee7e172ffb5b6e70cba2207 | 704 | cpp | C++ | JobduInCPlusPlus/1085 求root(N, k).cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | 16 | 2017-04-17T03:52:51.000Z | 2021-01-21T07:56:50.000Z | JobduInCPlusPlus/1085 求root(N, k).cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | null | null | null | JobduInCPlusPlus/1085 求root(N, k).cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | 7 | 2017-04-17T03:52:52.000Z | 2019-09-26T08:41:08.000Z | //
// 1085 求root(N, k).cpp
// Jobdu
//
// Created by PengFei_Zheng on 03/05/2017.
// Copyright © 2017 PengFei_Zheng. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <string.h>
#include <cstring>
#include <cmath>
#include <climits>
#define L long long
using namespace std... | 17.170732 | 56 | 0.504261 | zpfbuaa |
3c45b3d9bfe08d72bbd96531586efb6080a8db9f | 3,656 | cpp | C++ | src/main.cpp | hassanelshazly/huffman_encoder | 2c42ec022fdb2d4b9c5c9cca07a3b4eee58154a7 | [
"MIT"
] | null | null | null | src/main.cpp | hassanelshazly/huffman_encoder | 2c42ec022fdb2d4b9c5c9cca07a3b4eee58154a7 | [
"MIT"
] | null | null | null | src/main.cpp | hassanelshazly/huffman_encoder | 2c42ec022fdb2d4b9c5c9cca07a3b4eee58154a7 | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright (C) 2020 by Hassan El-shazly
*
* Redistribution, modification or use of this software in source or binary
* forms is permitted as long as the files maintain this copyright.
*
***********************************************... | 26.114286 | 98 | 0.488512 | hassanelshazly |
3c468162968d2ca5ee7f1d2fc0073aa8d7e3b9c9 | 1,939 | cpp | C++ | Game/Characters/Heroes/Pyromancer/Ignite.cpp | caslarui/LOOP | 0ef3e4c60965f186830cc891a4a429e8f51dd44d | [
"MIT"
] | null | null | null | Game/Characters/Heroes/Pyromancer/Ignite.cpp | caslarui/LOOP | 0ef3e4c60965f186830cc891a4a429e8f51dd44d | [
"MIT"
] | null | null | null | Game/Characters/Heroes/Pyromancer/Ignite.cpp | caslarui/LOOP | 0ef3e4c60965f186830cc891a4a429e8f51dd44d | [
"MIT"
] | null | null | null | //
// Created by caslarui on 18.12.2019.
//
#include <cmath>
#include <iostream>
#include "Ignite.hpp"
#include "../Rogue/Rogue.hpp"
#include "../Knight/Knight.hpp"
#include "Pyromancer.hpp"
#include "../Wizard/Wizard.hpp"
Ignite::Ignite(Hero& owner) : Ability(owner) {
baseDmg = 150.0f;
effectDmg = 50.0f;
}
... | 26.561644 | 106 | 0.530686 | caslarui |
3c48a9e46941dc28aca0c3eae800f61d86ad1ed0 | 9,068 | cpp | C++ | Siv3D/src/Siv3D-Platform/WebGPU/Siv3D/Shader/WebGPU/CShader_WebGPU.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/src/Siv3D-Platform/WebGPU/Siv3D/Shader/WebGPU/CShader_WebGPU.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D-Platform/WebGPU/Siv3D/Shader/WebGPU/CShader_WebGPU.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include "CShader_WebGPU.hpp"
# include <Siv3... | 29.537459 | 262 | 0.748015 | tas9n |
3c4a17ab53170206991639707ce2e870c7bf4b37 | 868 | cpp | C++ | 03-JULY-2019/inv2.cpp | mohit1018102/Programming-Questions | e5f1634d2ff1a273d289ee5f9f834cf027a8f162 | [
"MIT"
] | 3 | 2019-06-10T16:20:58.000Z | 2019-06-12T13:00:11.000Z | 03-JULY-2019/inv2.cpp | mohit1018102/Programming-Questions | e5f1634d2ff1a273d289ee5f9f834cf027a8f162 | [
"MIT"
] | null | null | null | 03-JULY-2019/inv2.cpp | mohit1018102/Programming-Questions | e5f1634d2ff1a273d289ee5f9f834cf027a8f162 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int merge(int arr[],int temp[],int left,int mid,int right)
{ int inv=0;
int i=left;
int j=mid+1;
int k=left;
while(i<=mid && j<=right)
{
if(arr[i]<=arr[j])
{
temp[k++]=arr[i++];
}
else
{
inv=inv+(mid-i+1);
temp[k++]=arr[j++];
}
}
while(i<=mid) temp[k... | 18.468085 | 58 | 0.573733 | mohit1018102 |
3c4c08388b718ce5565165ed4a9d91fee01fdd51 | 34,726 | cpp | C++ | SimpleAudioTest/Game.cpp | Slippy2k/directxtk12test | 2d6cbcb475fbc211ff31bfa6f5f7100d2c997265 | [
"MIT"
] | 1 | 2022-03-11T11:36:24.000Z | 2022-03-11T11:36:24.000Z | SimpleAudioTest/Game.cpp | Slippy2k/directxtk12test | 2d6cbcb475fbc211ff31bfa6f5f7100d2c997265 | [
"MIT"
] | null | null | null | SimpleAudioTest/Game.cpp | Slippy2k/directxtk12test | 2d6cbcb475fbc211ff31bfa6f5f7100d2c997265 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------------------
// File: Game.cpp
//
// Developer unit test for DirectXTK - Simple Audio Test (UI-based BasicAudioTest)
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?Lin... | 32.946869 | 178 | 0.620688 | Slippy2k |
3c5297632f02c563993076efbf9f03bf10c00cf0 | 780 | hpp | C++ | falcon/templates/template_pack.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/templates/template_pack.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/templates/template_pack.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef _FALCON_TEMPLATES_TEMPLATE_PACK_HPP
#define _FALCON_TEMPLATES_TEMPLATE_PACK_HPP
namespace falcon {
#if __cplusplus >= 201103L
template<template<class...> class... _Temps>
class template_pack;
#else
template<typename>
class template_pack;
template<template<class> class _Temp>
class __template_pack1;
te... | 22.285714 | 52 | 0.783333 | jonathanpoelen |
3c56f0939531e1f1cd9eba65ab6dafc1af1ce9f3 | 1,882 | cpp | C++ | src/Interactive.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 6 | 2017-05-10T19:25:23.000Z | 2021-04-08T23:55:17.000Z | src/Interactive.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 1 | 2017-11-10T12:17:26.000Z | 2017-11-10T12:17:26.000Z | src/Interactive.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 5 | 2017-05-30T01:07:46.000Z | 2021-04-08T23:55:19.000Z | // Copyright (c) 2017 Neon Edge Game.
#include <assert.h>
#include "Interactive.h"
#include "Camera.h"
Interactive::Interactive(int x, int y, std::string name): GameObject() {
assert(x >= INT_SIZE_MIN && x <= INT_SIZE_MAX);
assert(y >= INT_SIZE_MIN && y <= INT_SIZE_MAX);
box.SetXY(Vec2(x, y));
facing ... | 27.275362 | 90 | 0.654091 | filipecaixeta |
3c574ce6cacba30dd0e13bd1d83e3da93a2883b5 | 1,247 | cpp | C++ | leetcode-problems/medium-1105-filling-bookcase-shelves.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | leetcode-problems/medium-1105-filling-bookcase-shelves.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | leetcode-problems/medium-1105-filling-bookcase-shelves.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | //
// Created by Siddhant on 2019-11-03.
//
#include "iostream"
#include "vector"
#include "string"
#include "unordered_map"
using namespace std;
unordered_map<int, int> map;
int minHeightShelves(vector<vector<int>>& books, int shelf_width) {
if(books.empty()){
return 0;
}
if(map.find(books.si... | 22.267857 | 96 | 0.571772 | formatkaka |
3c59222bfd93fec73e51c467f29173a5fb0460ea | 2,611 | cpp | C++ | libs/core/render/test/src/unit_test_core_render_shader_language.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/test/src/unit_test_core_render_shader_language.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/test/src/unit_test_core_render_shader_language.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_core_render_shader_language.cpp
*
* @brief ShaderLanguage のテスト
*
* @author myoukaku
*/
#include <bksge/core/render/shader_language.hpp>
#include <bksge/fnd/algorithm/is_unique.hpp>
#include <bksge/fnd/algorithm/sort.hpp>
#include <bksge/fnd/functional/hash.hpp>
#include <gtest/... | 29.011111 | 89 | 0.73152 | myoukaku |
3c5a068e858875e6d7c6017a2386b5727c69a52f | 773 | hpp | C++ | android-31/android/print/PrintDocumentInfo_Builder.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/print/PrintDocumentInfo_Builder.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/print/PrintDocumentInfo_Builder.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::print
{
class PrintDocumentInfo;
}
class JString;
namespace android::print
{
class PrintDocumentInfo_Builder : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit PrintDocumentInfo_Builder(const char *cla... | 24.15625 | 166 | 0.742561 | YJBeetle |
3c5a557419cd5b715e373387b815d3459b37f258 | 11,803 | cpp | C++ | sourceCode/application/ui/dialogIOFiles/widgetInputFilesImages.cpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 2 | 2022-02-27T20:08:04.000Z | 2022-03-03T13:45:40.000Z | sourceCode/application/ui/dialogIOFiles/widgetInputFilesImages.cpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 1 | 2021-06-07T17:09:04.000Z | 2021-06-11T11:48:23.000Z | sourceCode/application/ui/dialogIOFiles/widgetInputFilesImages.cpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 1 | 2021-06-03T21:06:55.000Z | 2021-06-03T21:06:55.000Z | #include <QFileDialog>
#include <QDebug>
#include <QRegularExpression>
#include "ui_widget_inputFiles_images.h"
#include "widgetInputFilesImages.h"
#include "ui_enums.hpp"
#include "../../logic/OsPlatform/standardPathLocation.hpp"
WidgetInputFilesImages::WidgetInputFilesImages(QWidget *parent): QWidget... | 37.233438 | 151 | 0.714903 | lp-rep |
3c6026198c336d3f6efe7d15f15ae1e5a460e081 | 15,155 | cpp | C++ | Core/burn/drv/cave/d_feversos.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 17 | 2018-05-24T05:20:45.000Z | 2021-12-24T07:27:22.000Z | Core/burn/drv/cave/d_feversos.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 6 | 2016-10-20T02:36:07.000Z | 2017-03-08T15:23:06.000Z | Core/burn/drv/cave/d_feversos.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 5 | 2019-01-21T00:45:00.000Z | 2021-07-20T08:34:22.000Z | // Fever SOS / Dangun Feveron
#include "cave.h"
#include "ymz280b.h"
#define CAVE_VBLANK_LINES 12
static UINT8 DrvJoy1[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
static UINT8 DrvJoy2[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
static UINT16 DrvInput[2] = {0x0000, 0x0000};
static UINT8 *Mem = NULL, *MemEnd = NULL;
static UINT8 ... | 24.522654 | 129 | 0.665325 | atship |
3c605171838f1c7945011582bba4cfc42bcc43df | 6,779 | cpp | C++ | source/tensor/test/TNormalize.cpp | xiaozhang521/NASToolkit | a43294f17253af92004209b9e9ada3388aa96fe4 | [
"Apache-2.0"
] | 2 | 2020-05-04T13:00:46.000Z | 2020-05-04T23:48:56.000Z | source/tensor/test/TNormalize.cpp | tianfn/NiuTensor | 22ef64d0e7126fd2e9b31b5395337848b822e81b | [
"Apache-2.0"
] | null | null | null | source/tensor/test/TNormalize.cpp | tianfn/NiuTensor | 22ef64d0e7126fd2e9b31b5395337848b822e81b | [
"Apache-2.0"
] | 1 | 2020-03-13T03:13:03.000Z | 2020-03-13T03:13:03.000Z | /* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* 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 L... | 27.556911 | 105 | 0.603481 | xiaozhang521 |
3c6462ee88e0d531a199fcb1be509fda95891888 | 3,955 | hpp | C++ | tests/unit/helpers/include/TestSuite.hpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 43 | 2020-09-04T15:21:40.000Z | 2022-03-23T03:53:02.000Z | tests/unit/helpers/include/TestSuite.hpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 15 | 2020-09-17T18:06:15.000Z | 2022-01-24T17:14:36.000Z | tests/unit/helpers/include/TestSuite.hpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 23 | 2020-09-04T15:50:09.000Z | 2022-03-25T13:38:25.000Z | /*
* Copyright 2016 - 2019 Angelo Matni, Simone Campanoni
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ... | 33.803419 | 435 | 0.715803 | SusanTan |
3c6511eef92a23a0d719b034d39cda859f672fb6 | 4,589 | cpp | C++ | thirdparty/quickhull/qhHalfEdge.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/thirdparty/quickhull/qhHalfEdge.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/thirdparty/quickhull/qhHalfEdge.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //--------------------------------------------------------------------------------------------------
// qhHalfEdge.cpp
//
// Copyright(C) 2011 by D. Gregorius. All rights reserved.
//--------------------------------------------------------------------------------------------------
#include "qhHalfEdge.h"
//----------... | 20.578475 | 100 | 0.465243 | DannyParker0001 |
3c657aedb6f91e93e137333544e63852657393b2 | 2,134 | cpp | C++ | tests/juliet/testcases/CWE416_Use_After_Free/CWE416_Use_After_Free__malloc_free_struct_62b.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE416_Use_After_Free/CWE416_Use_After_Free__malloc_free_struct_62b.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2021-07-12T02:57:17.000Z | 2021-07-16T02:07:29.000Z | testcases/CWE416_Use_After_Free/CWE416_Use_After_Free__malloc_free_struct_62b.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE416_Use_After_Free__malloc_free_struct_62b.cpp
Label Definition File: CWE416_Use_After_Free__malloc_free.label.xml
Template File: sources-sinks-62b.tmpl.cpp
*/
/*
* @description
* CWE: 416 Use After Free
* BadSource: Allocate data using malloc(), initialize m... | 25.710843 | 119 | 0.591846 | RanerL |
3c788a3ab213bce9f0262820f09e04ed20103493 | 936 | cc | C++ | external/stdcxx/LiteIterator.cc | hyl946/Dobby | 277de270f93736b22934e591625a0f9cb532415d | [
"Apache-2.0"
] | 1 | 2020-06-06T09:05:36.000Z | 2020-06-06T09:05:36.000Z | external/stdcxx/LiteIterator.cc | hyl946/Dobby | 277de270f93736b22934e591625a0f9cb532415d | [
"Apache-2.0"
] | 1 | 2021-02-03T09:29:51.000Z | 2021-02-03T09:29:51.000Z | external/stdcxx/LiteIterator.cc | hyl946/Dobby | 277de270f93736b22934e591625a0f9cb532415d | [
"Apache-2.0"
] | 1 | 2020-09-18T06:41:11.000Z | 2020-09-18T06:41:11.000Z | #include "stdcxx/LiteIterator.h"
void LiteCollectionIterator::reset() {
this->collection->initIterator(this->innerIterator);
return;
}
bool LiteCollectionIterator::initWithCollection(const LiteCollection *inCollection) {
this->collection = inCollection;
int *iterIndexPtr = (int *)LiteMemOpt::alloc(sizeof... | 30.193548 | 100 | 0.772436 | hyl946 |
3c78f5e025150f822c0dbe805c19090f06675473 | 703 | hpp | C++ | src/backtest.hpp | nKastelan/Ed | ffa8e2800ba1f9e1001230710820742897acb7a9 | [
"MIT"
] | 2 | 2021-10-09T12:56:02.000Z | 2022-01-04T05:33:46.000Z | src/backtest.hpp | nKastelan/Ed | ffa8e2800ba1f9e1001230710820742897acb7a9 | [
"MIT"
] | null | null | null | src/backtest.hpp | nKastelan/Ed | ffa8e2800ba1f9e1001230710820742897acb7a9 | [
"MIT"
] | null | null | null | #pragma once
#include "dataHandler.hpp"
#include "executionHandler.hpp"
#include "portfolio.hpp"
#include "strategies/strategy.hpp"
#include <future>
class Backtest {
public:
std::vector<std::string> symbols;
std::string csvDirectory;
double* initialCapital;
bool continueBacktest;
std::queue<std::shared_ptr<Event... | 27.038462 | 96 | 0.789474 | nKastelan |
3c7a2fa8fc8c868f315489cfc27bd963a37da29b | 1,754 | hpp | C++ | Demo/src/RemotePauseState.hpp | fallahn/xygine | c17e7d29bb57a5425a58abd3a05a843d6bac48e3 | [
"Unlicense"
] | 220 | 2015-10-22T16:12:13.000Z | 2022-03-16T18:51:11.000Z | Demo/src/RemotePauseState.hpp | fallahn/xygine | c17e7d29bb57a5425a58abd3a05a843d6bac48e3 | [
"Unlicense"
] | 64 | 2016-05-05T19:17:13.000Z | 2021-02-11T19:24:37.000Z | Demo/src/RemotePauseState.hpp | fallahn/xygine | c17e7d29bb57a5425a58abd3a05a843d6bac48e3 | [
"Unlicense"
] | 33 | 2016-01-13T16:44:26.000Z | 2021-11-05T21:57:24.000Z | /*********************************************************************
(c) Matt Marchant 2017
http://trederia.blogspot.com
xygineXT - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this softw... | 30.241379 | 73 | 0.697834 | fallahn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.