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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8dc4c128dd04faf3388ec6339cfa11a79e53ed37 | 4,274 | hxx | C++ | include/rtkConditionalMedianImageFilter.hxx | kabcode/RTK | e5cbec4f2953abd3ba3bd1b5e7af30357af28674 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | include/rtkConditionalMedianImageFilter.hxx | kabcode/RTK | e5cbec4f2953abd3ba3bd1b5e7af30357af28674 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | include/rtkConditionalMedianImageFilter.hxx | kabcode/RTK | e5cbec4f2953abd3ba3bd1b5e7af30357af28674 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
*
* Copyright RTK Consortium
*
* 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.apa... | 36.529915 | 108 | 0.703088 | kabcode |
44f0fb29baa82d0b25c0b908685d18206c7d6c03 | 675 | cpp | C++ | Krakoa/Source/Input/Input.cpp | KingKiller100/Krakatoa-Engine | ff07f7328d428c04e06b561b6afd315eea39865c | [
"Apache-2.0"
] | 1 | 2020-04-05T13:37:48.000Z | 2020-04-05T13:37:48.000Z | Krakoa/Source/Input/Input.cpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/Input/Input.cpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | #include "Precompile.hpp"
#include "Input.hpp"
#include "InputManager.hpp"
namespace krakoa::input
{
bool IsKeyPressed(KeyCode keycode) noexcept
{
return InputManager::IsKeyPressed(keycode);
}
bool IsKeyReleased(KeyCode keycode) noexcept
{
return InputManager::IsKeyReleased(keycode);
}
float GetMousePos... | 17.307692 | 56 | 0.752593 | KingKiller100 |
44f45594b5f07f3d55c2b2d4ba97f59b01bdc956 | 29,586 | hpp | C++ | include/GlobalNamespace/PlayerSpecificSettings.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/PlayerSpecificSettings.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/PlayerSpecificSettings.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: EnvironmentEff... | 71.636804 | 1,186 | 0.768945 | marksteward |
44f9102b7f6ad6f6c08ac29fbedbce4560e1480d | 4,703 | cpp | C++ | GrpAdminGetFeatCmd/invalidFieldInCmd_r10b.cpp | NirmalaArun/tnvme | c5c929596c49f3e88947f42b3d8d42c95d95aca0 | [
"Apache-2.0"
] | null | null | null | GrpAdminGetFeatCmd/invalidFieldInCmd_r10b.cpp | NirmalaArun/tnvme | c5c929596c49f3e88947f42b3d8d42c95d95aca0 | [
"Apache-2.0"
] | null | null | null | GrpAdminGetFeatCmd/invalidFieldInCmd_r10b.cpp | NirmalaArun/tnvme | c5c929596c49f3e88947f42b3d8d42c95d95aca0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2011, Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 35.097015 | 92 | 0.60068 | NirmalaArun |
44fffc6be088e66a3c3e4c46f2583fd7ef765bec | 1,612 | cpp | C++ | Algorithms/1416.RestoreTheArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/1416.RestoreTheArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/1416.RestoreTheArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <cstdint>
#include <string>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
int numberOfArrays(std::string const &s, int k) const
{
constexpr size_t modValue = 1000000007;
std::vector<size_t> countData(s.size() + 1, 0);
countData[0] = 1;
... | 26 | 104 | 0.57134 | stdstring |
78053a25ee1ec65194dbed359c92e08fdac12b52 | 16,179 | cpp | C++ | src/ofxShader.cpp | autr/ofxShader | 5278af2a433cf5c8e5d97fffe5141f06147f1783 | [
"MIT"
] | null | null | null | src/ofxShader.cpp | autr/ofxShader | 5278af2a433cf5c8e5d97fffe5141f06147f1783 | [
"MIT"
] | null | null | null | src/ofxShader.cpp | autr/ofxShader | 5278af2a433cf5c8e5d97fffe5141f06147f1783 | [
"MIT"
] | null | null | null | #define STRINGIFY(A) #A
#include "ofxShader.h"
ofxShader::ofxShader() {
m_bWatchingFiles = false;
m_bAutoVersionConversion = true;
// TIME UNIFORMS
//
m_uniformsFunctions["u_time"] = UniformFunction( [](ofShader* _shader) {
_shader->setUniform1f("u_time", ofGetElapsedTimef());
});
... | 31.911243 | 122 | 0.592991 | autr |
7805a7b6cf0e968fe1f8420a326906ebef6e0882 | 237 | cpp | C++ | Source/examples/unused-parameter.cpp | nojhan/leathers | d8a2867a477baab515affdf320d872896e01a797 | [
"BSD-2-Clause"
] | 86 | 2015-05-11T22:47:52.000Z | 2021-09-05T11:26:05.000Z | Source/examples/unused-parameter.cpp | nojhan/leathers | d8a2867a477baab515affdf320d872896e01a797 | [
"BSD-2-Clause"
] | 6 | 2015-07-03T12:34:26.000Z | 2020-03-08T09:01:51.000Z | Source/examples/unused-parameter.cpp | nojhan/leathers | d8a2867a477baab515affdf320d872896e01a797 | [
"BSD-2-Clause"
] | 12 | 2015-09-01T11:36:37.000Z | 2021-12-01T12:56:44.000Z | // Copyright (c) 2014, Ruslan Baratov
// All rights reserved.
void foo(int);
#include <leathers/push>
#if !defined(SHOW_WARNINGS)
# include <leathers/unused-parameter>
#endif
void foo(int a) {
}
#include <leathers/pop>
int main() {
}
| 14.8125 | 37 | 0.700422 | nojhan |
78062198fb603680c9502c9cb0a876a157e3f205 | 5,144 | cpp | C++ | src/smartpeak/source/core/ConsoleHandler.cpp | ahmedskhalil/SmartPeak | 3e0b137f2fec119d8c11e5450c80156576c36f3e | [
"MIT"
] | null | null | null | src/smartpeak/source/core/ConsoleHandler.cpp | ahmedskhalil/SmartPeak | 3e0b137f2fec119d8c11e5450c80156576c36f3e | [
"MIT"
] | null | null | null | src/smartpeak/source/core/ConsoleHandler.cpp | ahmedskhalil/SmartPeak | 3e0b137f2fec119d8c11e5450c80156576c36f3e | [
"MIT"
] | null | null | null | // --------------------------------------------------------------------------
// SmartPeak -- Fast and Accurate CE-, GC- and LC-MS(/MS) Data Processing
// --------------------------------------------------------------------------
// Copyright The SmartPeak Team -- Novo Nordisk Foundation
// Center for Biosustainabil... | 36.225352 | 100 | 0.591952 | ahmedskhalil |
78069a46457a8cb76a5c9427168acd6b2c1771b2 | 1,301 | cpp | C++ | src/algo/binary_search_tree.cpp | setyolegowo/ITB-IF5111-2019 | 4b53c9a69e49bb801fa65b633689670bf2edf4ff | [
"MIT"
] | null | null | null | src/algo/binary_search_tree.cpp | setyolegowo/ITB-IF5111-2019 | 4b53c9a69e49bb801fa65b633689670bf2edf4ff | [
"MIT"
] | null | null | null | src/algo/binary_search_tree.cpp | setyolegowo/ITB-IF5111-2019 | 4b53c9a69e49bb801fa65b633689670bf2edf4ff | [
"MIT"
] | null | null | null | /**
* binary_search_tree.cpp file.
* Implementation.
*
* @author Setyo Legowo <gw.tio145@gmail.com>
* @since 2019.02.18
*/
#include "binary_search_tree.hpp"
BinarySearch::BinarySearch(char* _nama_bapak) {
this->nama_bapak = std::string(_nama_bapak);
}
BinarySearch* BinarySearch::createFromConsoleArgument(i... | 26.55102 | 91 | 0.640277 | setyolegowo |
7807d254d1263eb8ca693f5cf40fd679129b6114 | 880 | hpp | C++ | core/Private/core/RootView.hpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | 1 | 2020-01-19T14:14:13.000Z | 2020-01-19T14:14:13.000Z | core/Private/core/RootView.hpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | null | null | null | core/Private/core/RootView.hpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | 1 | 2020-11-18T05:24:38.000Z | 2020-11-18T05:24:38.000Z | // Copyright (c) 2019 Dear My Professor Authors
// Author: paxbun
#ifndef __H_CORE_ROOT_VIEW__
#define __H_CORE_ROOT_VIEW__
#include <core/EmailListPresenter.hpp>
#include <core/OpenDetailPresenter.hpp>
#include <core/OpenSelectTemplatePresenter.hpp>
#include <core/OpenTemplateListPresenter.hpp>
#include <core/View.h... | 28.387097 | 69 | 0.678409 | paxbun |
78093858863459c67a0a02c949cca65864a2776d | 17,975 | cpp | C++ | dev/ProjectReunion_BootstrapDLL/MddBootstrap.cpp | heechee3/WindowsAppSDK | 71fad8337a656f712188944d70e8c0d1f467efb8 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-06-22T16:00:25.000Z | 2021-06-22T16:00:25.000Z | dev/ProjectReunion_BootstrapDLL/MddBootstrap.cpp | oldnewthing/WindowsAppSDK | e82f072c131807765efd84f4d55ab4de3ecbb75c | [
"CC-BY-4.0",
"MIT"
] | null | null | null | dev/ProjectReunion_BootstrapDLL/MddBootstrap.cpp | oldnewthing/WindowsAppSDK | e82f072c131807765efd84f4d55ab4de3ecbb75c | [
"CC-BY-4.0",
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "pch.h"
#include "MddBootstrap.h"
#include "MddBootstrapTest.h"
#include "MsixDynamicDependency.h"
#include "IDynamicDependencyLifetimeManager.... | 48.712737 | 216 | 0.712267 | heechee3 |
780c9cf5d79a525b9fe46bb937476a3bcb5538e7 | 813 | hpp | C++ | modules/gapi/src/streaming/onevpl/engine/preproc/vpp_preproc_defines.hpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | 2 | 2022-03-26T11:12:18.000Z | 2022-03-30T13:07:32.000Z | modules/gapi/src/streaming/onevpl/engine/preproc/vpp_preproc_defines.hpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | null | null | null | modules/gapi/src/streaming/onevpl/engine/preproc/vpp_preproc_defines.hpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | 1 | 2022-03-05T16:32:04.000Z | 2022-03-05T16:32:04.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2022 Intel Corporation
#ifdef HAVE_ONEVPL
#ifndef VPP_PREPROC_ENGINE
#define VPP_PREPROC_ENGINE
#include... | 23.911765 | 90 | 0.745387 | yash112-lang |
780d53258f843a9a911c115bf7043d3c10fa6b92 | 2,575 | cc | C++ | src/utils/voyager_tcp_client.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | 1 | 2021-01-11T14:19:51.000Z | 2021-01-11T14:19:51.000Z | src/utils/voyager_tcp_client.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | null | null | null | src/utils/voyager_tcp_client.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2016 Mirants Lu. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// voyager/voyager/core/tcp_client.cc
#include "platform/voyager_logging.h"
#include "platform/voyager_tcp_connector.h"
#include "utils/voyager_tcp_client.h"
... | 28.611111 | 80 | 0.666408 | pengdu |
781174e06b6a9908884a400047b0b59cef32ec54 | 1,336 | cpp | C++ | src/exception/baseexceptions.cpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | src/exception/baseexceptions.cpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | src/exception/baseexceptions.cpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "baseexceptions.hpp"
/************************************
* *
* MsgException *
* *
*************************************/
MsgException::Ms... | 17.578947 | 58 | 0.578593 | daniel-blake |
7812583f5ab47b3b2ec7d09d2007a61eacd90264 | 2,627 | cpp | C++ | GrpGeneralCmds/grpGeneralCmds.cpp | jackeichen/Gaozh | b6dc87095ed3e90b596d69f31d8c0ed6dbc07d97 | [
"Apache-2.0"
] | null | null | null | GrpGeneralCmds/grpGeneralCmds.cpp | jackeichen/Gaozh | b6dc87095ed3e90b596d69f31d8c0ed6dbc07d97 | [
"Apache-2.0"
] | null | null | null | GrpGeneralCmds/grpGeneralCmds.cpp | jackeichen/Gaozh | b6dc87095ed3e90b596d69f31d8c0ed6dbc07d97 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2011, Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 36.486111 | 76 | 0.748763 | jackeichen |
7815e62b75ead4787ecbfb98385f496f52504efe | 17,713 | cpp | C++ | src/mbgl/tile/geometry_tile_worker.cpp | ulmongmbh/mapbox-gl-native | 128da903c19c860e89be36bf67bd02cfa408a525 | [
"BSL-1.0",
"Apache-2.0"
] | 1 | 2019-11-09T17:52:14.000Z | 2019-11-09T17:52:14.000Z | src/mbgl/tile/geometry_tile_worker.cpp | ulmongmbh/mapbox-gl-native | 128da903c19c860e89be36bf67bd02cfa408a525 | [
"BSL-1.0",
"Apache-2.0"
] | 1 | 2020-11-21T06:55:47.000Z | 2020-11-21T06:55:52.000Z | src/mbgl/tile/geometry_tile_worker.cpp | ulmongmbh/mapbox-gl-native | 128da903c19c860e89be36bf67bd02cfa408a525 | [
"BSL-1.0",
"Apache-2.0"
] | 1 | 2020-01-03T21:38:55.000Z | 2020-01-03T21:38:55.000Z | #include <mbgl/tile/geometry_tile_worker.hpp>
#include <mbgl/tile/geometry_tile_data.hpp>
#include <mbgl/tile/geometry_tile.hpp>
#include <mbgl/layermanager/layer_manager.hpp>
#include <mbgl/layout/layout.hpp>
#include <mbgl/layout/symbol_layout.hpp>
#include <mbgl/layout/pattern_layout.hpp>
#include <mbgl/renderer/buc... | 37.527542 | 164 | 0.599447 | ulmongmbh |
7816b4c6654bfcea3d0cc9964b40da427a5cfda4 | 1,471 | cpp | C++ | math/Vector3.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 3 | 2019-04-20T10:16:36.000Z | 2021-03-21T19:51:38.000Z | math/Vector3.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | null | null | null | math/Vector3.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 2 | 2020-04-18T20:04:24.000Z | 2021-09-19T05:07:41.000Z | #include "Vector3.h"
#include <assert.h>
#include "config.h"
//----------------------------------------------------------------------------
namespace math
{
Vector3 Vector3::rotate( const Vector3& axis, float angle ) const
{
assert( finite() );
assert( axis.length() > Vector3::valueMin() ); // ensure... | 29.42 | 86 | 0.514616 | Andrewich |
781837c3f580461b072359bbe4215f27ec9becdf | 1,350 | cpp | C++ | src/game/game.cpp | GEEKiDoS/open-iw5 | a26809f69e55105d1eff15e3006c50523fa4f1f7 | [
"MIT"
] | 2 | 2020-11-21T14:37:40.000Z | 2020-11-21T14:54:33.000Z | src/game/game.cpp | GEEKiDoS/open-iw5 | a26809f69e55105d1eff15e3006c50523fa4f1f7 | [
"MIT"
] | 5 | 2020-11-25T11:27:57.000Z | 2020-11-25T11:33:39.000Z | src/game/game.cpp | GEEKiDoS/mw2-mod | a26809f69e55105d1eff15e3006c50523fa4f1f7 | [
"MIT"
] | null | null | null | #include <std_include.hpp>
#include "game.hpp"
namespace game
{
namespace enviroment
{
launcher::mode mode = launcher::mode::none;
launcher::mode get_mode()
{
if (mode == launcher::mode::none)
{
throw std::runtime_error("Launcher mode not valid. Something must be wrong.");
}
r... | 18.493151 | 83 | 0.576296 | GEEKiDoS |
781a6fe3c3aacfca94c74dfc3a8846e0fcaf1fce | 492 | hpp | C++ | stringify/jss_renamed.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 4 | 2015-06-25T02:06:13.000Z | 2018-07-11T13:20:24.000Z | stringify/jss_renamed.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 14 | 2015-03-29T10:32:21.000Z | 2018-01-25T16:45:08.000Z | stringify/jss_renamed.hpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 2 | 2017-07-16T09:43:22.000Z | 2020-08-30T09:33:40.000Z | #pragma once
#include "jss_core.hpp"
#include "../utility/rename.hpp"
namespace JSON
{
template <typename T, typename Name>
std::ostream& stringify(std::ostream& stream, std::string const&, rename <T, Name> const& value, StringificationOptions options = {})
{
constexpr const auto name ... | 27.333333 | 138 | 0.642276 | 5cript |
781dbffc987ddaad554dc01fafe06c174be3e709 | 195,639 | cpp | C++ | SampleQRCodes/TestBuild/Il2CppOutputProject/Source/il2cppOutput/Photon3Unity3D_Attr.cpp | Dooyoung-Kim/QRTracking | ba519f0a10a0b897b2e324430c52d58efa9b31c0 | [
"MIT"
] | null | null | null | SampleQRCodes/TestBuild/Il2CppOutputProject/Source/il2cppOutput/Photon3Unity3D_Attr.cpp | Dooyoung-Kim/QRTracking | ba519f0a10a0b897b2e324430c52d58efa9b31c0 | [
"MIT"
] | null | null | null | SampleQRCodes/TestBuild/Il2CppOutputProject/Source/il2cppOutput/Photon3Unity3D_Attr.cpp | Dooyoung-Kim/QRTracking | ba519f0a10a0b897b2e324430c52d58efa9b31c0 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.Reflection.AssemblyCompanyAttribute
struct AssemblyCompanyAttribute_t642AAB097D7DEAAB623BEBE... | 71.297012 | 682 | 0.902167 | Dooyoung-Kim |
781ee03ddaa4e79f6900af724fd934dc47a86601 | 1,443 | cpp | C++ | src/Triangle.cpp | RdlP/RTal | 584a2da78a3545c659d6d084e0c2adbed982e302 | [
"MIT"
] | null | null | null | src/Triangle.cpp | RdlP/RTal | 584a2da78a3545c659d6d084e0c2adbed982e302 | [
"MIT"
] | null | null | null | src/Triangle.cpp | RdlP/RTal | 584a2da78a3545c659d6d084e0c2adbed982e302 | [
"MIT"
] | null | null | null | #include "Triangle.hpp"
Triangle::Triangle(vec3 a, vec3 b, vec3 c, mat4 transform):
m_a(a), m_b(b), m_c(c), Geometry(transform)
{
}
Triangle::~Triangle()
{
}
Intersection Triangle::hit(Ray ray)
{
ray.setOrigin(vec3(getInverseTransform() * vec4(ray.getOrigin(),1)));
ray.setDirection(glm::normalize(vec3(getInv... | 22.546875 | 92 | 0.607762 | RdlP |
782115b7a4771756746f2a5afebf38b0b10aca80 | 1,738 | hpp | C++ | nano/secure/versioning.hpp | orhanhenrik/nano-node | 5cbc9fb773cb3836f20f44d189ea333cfdd55279 | [
"BSD-2-Clause"
] | null | null | null | nano/secure/versioning.hpp | orhanhenrik/nano-node | 5cbc9fb773cb3836f20f44d189ea333cfdd55279 | [
"BSD-2-Clause"
] | null | null | null | nano/secure/versioning.hpp | orhanhenrik/nano-node | 5cbc9fb773cb3836f20f44d189ea333cfdd55279 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <nano/lib/blocks.hpp>
#include <nano/node/lmdb.hpp>
#include <nano/secure/utility.hpp>
namespace nano
{
class account_info_v1 final
{
public:
account_info_v1 () = default;
explicit account_info_v1 (MDB_val const &);
account_info_v1 (nano::block_hash const &, nano::block_hash const &, nano::am... | 28.966667 | 172 | 0.716341 | orhanhenrik |
7821d87b35aeb23be003dd9610164e5f36bc4e58 | 8,692 | cpp | C++ | oskar/apps/src/oskar_sim_tec_screen.cpp | ChenxiSSS/OSKAR | 35b15f90778644ecb3190273ee3d09734da99420 | [
"BSD-3-Clause"
] | null | null | null | oskar/apps/src/oskar_sim_tec_screen.cpp | ChenxiSSS/OSKAR | 35b15f90778644ecb3190273ee3d09734da99420 | [
"BSD-3-Clause"
] | null | null | null | oskar/apps/src/oskar_sim_tec_screen.cpp | ChenxiSSS/OSKAR | 35b15f90778644ecb3190273ee3d09734da99420 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2013-2016, The University of Oxford
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this ... | 41.990338 | 82 | 0.712379 | ChenxiSSS |
7822e0f041a0b6bc726ed967783a8af1e34d6f49 | 4,141 | cpp | C++ | cpp/tests/testscore.cpp | lpuchallafiore/KataGo | ded79dc1b6f3736c1a5274021f0dc463fad2b5c2 | [
"MIT"
] | 4 | 2020-02-12T01:42:29.000Z | 2021-05-13T06:49:30.000Z | cpp/tests/testscore.cpp | lpuchallafiore/KataGo | ded79dc1b6f3736c1a5274021f0dc463fad2b5c2 | [
"MIT"
] | null | null | null | cpp/tests/testscore.cpp | lpuchallafiore/KataGo | ded79dc1b6f3736c1a5274021f0dc463fad2b5c2 | [
"MIT"
] | 1 | 2020-08-19T18:05:58.000Z | 2020-08-19T18:05:58.000Z | #include "../tests/tests.h"
#include "../neuralnet/nninputs.h"
using namespace std;
using namespace TestCommon;
void Tests::runScoreTests() {
cout << "Running score and utility tests" << endl;
ostringstream out;
auto printScoreStats = [&out](const Board& board, const BoardHistory& hist) {
out << "Black se... | 28.558621 | 151 | 0.595025 | lpuchallafiore |
78266d11bd7fe30913d809fd2e266738d257295f | 15,749 | cpp | C++ | src/ApplicationDatabase.cpp | vdm-dev/gpsinformer | d7943401808fd9233a1287ddc989ea95bf674edb | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | 2 | 2018-07-05T11:34:04.000Z | 2020-01-16T20:11:17.000Z | src/ApplicationDatabase.cpp | vdm-dev/gpsinformer | d7943401808fd9233a1287ddc989ea95bf674edb | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | null | null | null | src/ApplicationDatabase.cpp | vdm-dev/gpsinformer | d7943401808fd9233a1287ddc989ea95bf674edb | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | null | null | null | //
// Copyright (c) 2017 Dmitry Lavygin (vdm.inbox@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to us... | 28.224014 | 159 | 0.579973 | vdm-dev |
78274f7951c1f2bbe82a9630f82ca4f23c8af862 | 23,826 | cpp | C++ | dev/so_5/rt/environment.cpp | eao197/so-5-5 | fa0c31c84d2637dce04e13a155040150d505fbbd | [
"BSL-1.0"
] | 76 | 2016-03-25T15:22:03.000Z | 2022-02-03T15:11:43.000Z | dev/so_5/rt/environment.cpp | eao197/so-5-5 | fa0c31c84d2637dce04e13a155040150d505fbbd | [
"BSL-1.0"
] | 19 | 2017-03-09T19:21:53.000Z | 2021-02-24T13:02:18.000Z | dev/so_5/rt/environment.cpp | eao197/so-5-5 | fa0c31c84d2637dce04e13a155040150d505fbbd | [
"BSL-1.0"
] | 21 | 2016-09-23T10:01:09.000Z | 2020-08-31T12:01:10.000Z | /*
SObjectizer 5.
*/
#include <so_5/rt/h/environment.hpp>
#include <string>
#include <so_5/rt/impl/h/internal_env_iface.hpp>
#include <so_5/rt/impl/h/mbox_core.hpp>
#include <so_5/rt/impl/h/disp_repository.hpp>
#include <so_5/rt/impl/h/layer_core.hpp>
#include <so_5/rt/impl/h/stop_guard_repo.hpp>
#include <so_5/rt... | 24.896552 | 86 | 0.755183 | eao197 |
782990ae4897611ecaa5a0fd86b1a17ccf2226c1 | 3,342 | cpp | C++ | Examples/MontiHall.cpp | LuisRGameloft/nana-demo | 05e05dbc1ee8eb5d94b31282290dae0c7e2e3620 | [
"BSL-1.0"
] | null | null | null | Examples/MontiHall.cpp | LuisRGameloft/nana-demo | 05e05dbc1ee8eb5d94b31282290dae0c7e2e3620 | [
"BSL-1.0"
] | null | null | null | Examples/MontiHall.cpp | LuisRGameloft/nana-demo | 05e05dbc1ee8eb5d94b31282290dae0c7e2e3620 | [
"BSL-1.0"
] | null | null | null | #include <nana/gui/wvl.hpp>
#include <nana/gui/widgets/label.hpp>
#include <nana/gui/widgets/button.hpp>
#include <nana/system/platform.hpp>
class monty_hall
: public nana::form
{
enum state_t{state_begin, state_picked, state_over};
public:
monty_hall();
private:
void _m_pick_door (co... | 33.757576 | 100 | 0.52304 | LuisRGameloft |
782a19bc3c6639b82add00ed21bd7700d1f0bef2 | 11,405 | hpp | C++ | sparta/sparta/statistics/CycleCounter.hpp | debjyoti0891/map | abdae67964420d7d36255dcbf83e4240a1ef4295 | [
"MIT"
] | 44 | 2019-12-13T06:39:13.000Z | 2022-03-29T23:09:28.000Z | sparta/sparta/statistics/CycleCounter.hpp | debjyoti0891/map | abdae67964420d7d36255dcbf83e4240a1ef4295 | [
"MIT"
] | 222 | 2020-01-14T21:58:56.000Z | 2022-03-31T20:05:12.000Z | sparta/sparta/statistics/CycleCounter.hpp | debjyoti0891/map | abdae67964420d7d36255dcbf83e4240a1ef4295 | [
"MIT"
] | 19 | 2020-01-03T19:03:22.000Z | 2022-01-09T08:36:20.000Z | // <Counter> -*- C++ -*-
#pragma once
#include "sparta/simulation/TreeNode.hpp"
#include "sparta/functional/DataView.hpp"
#include "sparta/utils/ByteOrder.hpp"
#include "sparta/statistics/Counter.hpp"
#include "sparta/utils/SpartaException.hpp"
#include "sparta/utils/SpartaAssert.hpp"
#include "sparta/simulation/Clo... | 34.984663 | 106 | 0.497676 | debjyoti0891 |
782b5030e897d387635a46ba10725c92e03d35b4 | 1,698 | hpp | C++ | src/util/allocator.hpp | BigDataAnalyticsGroup/RewiredCracking | b12bf39b54672d28175f4608d266c505e3611459 | [
"Apache-2.0"
] | 3 | 2019-04-21T07:23:03.000Z | 2019-12-04T02:10:04.000Z | src/util/allocator.hpp | BigDataAnalyticsGroup/RewiredCracking | b12bf39b54672d28175f4608d266c505e3611459 | [
"Apache-2.0"
] | null | null | null | src/util/allocator.hpp | BigDataAnalyticsGroup/RewiredCracking | b12bf39b54672d28175f4608d266c505e3611459 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <sys/mman.h>
struct default_allocator
{
template<typename T>
T * allocate(std::size_t n) const { return static_cast<T*>(malloc(sizeof(T) * n)); }
template<typename T>
void deallocate(T *p, std::size_t... | 28.3 | 121 | 0.633687 | BigDataAnalyticsGroup |
782fb12b3326725efe627b723d60416a61c408f4 | 2,362 | cc | C++ | riscv-tools/riscv-isa-sim/riscv/clint.cc | programokey/e200_opensource | 83980f1732f922629163e09abff4dcf76abe7e8d | [
"Apache-2.0"
] | null | null | null | riscv-tools/riscv-isa-sim/riscv/clint.cc | programokey/e200_opensource | 83980f1732f922629163e09abff4dcf76abe7e8d | [
"Apache-2.0"
] | null | null | null | riscv-tools/riscv-isa-sim/riscv/clint.cc | programokey/e200_opensource | 83980f1732f922629163e09abff4dcf76abe7e8d | [
"Apache-2.0"
] | 1 | 2019-01-10T11:51:55.000Z | 2019-01-10T11:51:55.000Z | #include "devices.h"
#include "processor.h"
clint_t::clint_t(std::vector<processor_t*>& procs)
: procs(procs), mtimecmp(procs.size())
{
}
/* 0000 msip hart 0
* 0004 msip hart 1
* 4000 mtimecmp hart 0 lo
* 4004 mtimecmp hart 0 hi
* 4008 mtimecmp hart 1 lo
* 400c mtimecmp hart 1 hi
* bff8 mtime lo... | 32.356164 | 103 | 0.600339 | programokey |
7836225b7dda48aedcebb2dd9f72bbccf112be74 | 3,831 | cpp | C++ | course1/laba7/H_parking/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | course1/laba7/H_parking/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | course1/laba7/H_parking/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cassert>
#define mid lt + (rt-lt)/2
#define vx Element *
#define ll long long
using namespace std;
struct Element {
ll mini = LONG_LONG_MAX;
vx minEl = nullptr;
ll set = LONG_LONG_MIN;
int pos;
vx right = nullptr;
vx left = nullptr;
};
void setM... | 24.716129 | 66 | 0.426782 | flydzen |
783728c568feffe52ccb8fcae70d7ca623c72e00 | 5,500 | cpp | C++ | 15/path_finder.t.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | 3 | 2019-12-01T17:37:33.000Z | 2021-12-14T10:12:09.000Z | 15/path_finder.t.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | null | null | null | 15/path_finder.t.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | null | null | null | #include <path_finder.hpp>
#include <catch.hpp>
#include <sstream>
TEST_CASE("Path Finder")
{
SECTION("Vector2")
{
CHECK(Vector2().x == 0);
CHECK(Vector2().y == 0);
CHECK(Vector2(1, 2).x == 1);
CHECK(Vector2(1, 2).y == 2);
CHECK(Vector2(1, 2) == Vector2(1, 2));
... | 37.162162 | 112 | 0.496727 | ComicSansMS |
783d8ab95f7f2e28de99ff138a37d7db43199243 | 6,305 | cc | C++ | logga/population.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | 11 | 2015-06-08T22:16:47.000Z | 2022-03-19T15:11:14.000Z | logga/population.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | null | null | null | logga/population.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | 4 | 2015-06-12T21:24:47.000Z | 2021-04-23T09:58:33.000Z | #include <stdio.h>
#include <string.h>
#include <vector.h>
#include "population.h"
#include "random.h"
#include "memalloc.h"
#include "fitness.h"
#include "originalkernel.h"
#include "sharingset.h"
using namespace std;
void Population::Population(int len)
{
N = len;
chromosomes = (Chromosome*) Calloc(N,sizeof... | 25.321285 | 210 | 0.677082 | wahibium |
78421c856c1997c84be13066b1fda4f0d9876eac | 5,268 | hpp | C++ | modules/test/benchmark/include/nt2/sdk/bench/details/process_functor.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/test/benchmark/include/nt2/sdk/bench/details/process_functor.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/test/benchmark/include/nt2/sdk/bench/details/process_functor.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | #ifndef BOOST_PP_IS_ITERATING
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 MetaScale SAS
// Copyrig... | 35.594595 | 91 | 0.539484 | psiha |
7842e64ca96a35bafaf7e3aa1332c81ad4630528 | 9,113 | hpp | C++ | src/Client/Connector.hpp | Korablev77/tntcxx | 30f7bcd661dd701c1f084b188b43e72b72c391d8 | [
"BSD-2-Clause"
] | null | null | null | src/Client/Connector.hpp | Korablev77/tntcxx | 30f7bcd661dd701c1f084b188b43e72b72c391d8 | [
"BSD-2-Clause"
] | null | null | null | src/Client/Connector.hpp | Korablev77/tntcxx | 30f7bcd661dd701c1f084b188b43e72b72c391d8 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
/*
* Copyright 2010-2020, Tarantool AUTHORS, please see AUTHORS file.
*
* 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 not... | 31.532872 | 90 | 0.7159 | Korablev77 |
784417a513ee0af7b57051e15a48b9eeae3e4ba7 | 11,519 | cpp | C++ | CS2810/MidSem/CS19B021_midsem.cpp | vikram-kv/CS2810-LabWork | 1190c14d08d0aa1e8143df338766a6d075c47182 | [
"Apache-2.0"
] | null | null | null | CS2810/MidSem/CS19B021_midsem.cpp | vikram-kv/CS2810-LabWork | 1190c14d08d0aa1e8143df338766a6d075c47182 | [
"Apache-2.0"
] | null | null | null | CS2810/MidSem/CS19B021_midsem.cpp | vikram-kv/CS2810-LabWork | 1190c14d08d0aa1e8143df338766a6d075c47182 | [
"Apache-2.0"
] | null | null | null | /************************
* $ID$
* File: CS19B021_midsem.cpp - create a class Refrigerator with a few data members, define a comparison operator on it,
* perform a O(nlogn) sort on a Refrigerator array and find the "newVariance" of the sorted
* refrigerator ar... | 47.209016 | 153 | 0.589114 | vikram-kv |
7844e517a6ab6ce912680324fb25bde0f640cf10 | 8,103 | cpp | C++ | tests/validation/NEON/GEMM.cpp | odinshen/ComputeLibrary_17.9_BareMetal | 3ee4553b4cdbbfec09e9ddeb57f3d7b2f4f31c80 | [
"MIT"
] | 2 | 2021-08-02T16:34:11.000Z | 2021-11-17T11:00:33.000Z | tests/validation/NEON/GEMM.cpp | 10imaging/ComputeLibrary | e6bbd2b302eb9d229554ec3a02ceb20901459d8c | [
"MIT"
] | null | null | null | tests/validation/NEON/GEMM.cpp | 10imaging/ComputeLibrary | e6bbd2b302eb9d229554ec3a02ceb20901459d8c | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights ... | 48.232143 | 181 | 0.623473 | odinshen |
7845eb7b94745385e868b7113deb7ed2b006dfdc | 14,385 | cpp | C++ | Source/AllProjects/CQCIntf/CQCIntfView/CQCIntfView_ExtCtrlServerImpl.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQCIntf/CQCIntfView/CQCIntfView_ExtCtrlServerImpl.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQCIntf/CQCIntfView/CQCIntfView_ExtCtrlServerImpl.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQCIntfView_ExtCtrlServerImpl.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 07/01/2004
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// h... | 27.50478 | 78 | 0.462496 | MarkStega |
784a15c6ff9851c28eb8a3c2d6df5ad72c054631 | 11,807 | hh | C++ | Tests/BFieldMapTest.hh | KFTrack/KinKal | cb18132f2fe5ec74ccdc6d01eb7bdad986082083 | [
"Apache-1.1"
] | 2 | 2020-04-21T18:24:55.000Z | 2020-09-24T19:01:47.000Z | Tests/BFieldMapTest.hh | KFTrack/KinKal | cb18132f2fe5ec74ccdc6d01eb7bdad986082083 | [
"Apache-1.1"
] | 45 | 2020-03-16T18:27:59.000Z | 2022-01-13T05:18:35.000Z | Tests/BFieldMapTest.hh | KFTrack/KinKal | cb18132f2fe5ec74ccdc6d01eb7bdad986082083 | [
"Apache-1.1"
] | 15 | 2020-02-21T01:10:49.000Z | 2022-03-24T12:13:35.000Z | //
// test basic functions of BFieldMap class
//
#include "KinKal/Trajectory/ParticleTrajectory.hh"
#include "KinKal/Trajectory/Line.hh"
#include "KinKal/Trajectory/ClosestApproach.hh"
#include "KinKal/General/BFieldMap.hh"
#include "KinKal/General/Vectors.hh"
#include "KinKal/General/PhysicalConstants.h"
#include "Kin... | 34.422741 | 135 | 0.634539 | KFTrack |
784cc8aa698f50870bf21669ea42ebbd23ce6572 | 4,762 | cpp | C++ | remodet_repository_wdh_part/src/caffe/layers/detection_evaluate_layer.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/src/caffe/layers/detection_evaluate_layer.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/src/caffe/layers/detection_evaluate_layer.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <map>
#include <string>
#include <vector>
#include "caffe/layers/detection_evaluate_layer.hpp"
#include "caffe/util/bbox_util.hpp"
namespace caffe {
template <typename Dtype>
void DetectionEvaluateLayer<Dtype>::LayerSetUp(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtyp... | 36.914729 | 89 | 0.643847 | UrwLee |
784cf79825a0378b42bdd90f7d3bac5c33f1630f | 736 | cpp | C++ | main/PISupervisor/linux/src/PISecFilterDeviceStub.cpp | minku1024/endpointdlp | 931ab140eef053498907d1db74a5c055bea8ef93 | [
"Apache-2.0"
] | 33 | 2020-11-18T09:30:13.000Z | 2022-03-03T17:56:24.000Z | main/PISupervisor/linux/src/PISecFilterDeviceStub.cpp | s4ngsuk-sms/endpointdlp | 9e87e352e23bff3b5e0701dd278756aadc8a0539 | [
"Apache-2.0"
] | 25 | 2020-07-31T01:43:17.000Z | 2020-11-27T12:32:09.000Z | main/PISupervisor/linux/src/PISecFilterDeviceStub.cpp | s4ngsuk-sms/endpointdlp | 9e87e352e23bff3b5e0701dd278756aadc8a0539 | [
"Apache-2.0"
] | 26 | 2020-11-18T09:30:15.000Z | 2022-01-18T08:24:01.000Z | #ifndef _PISECFILTERDEVICESTUB_CPP
#define _PISECFILTERDEVICESTUB_CPP
#include"PISecFilterDeviceStub.h"
CPISecFilterDeviceStub::CPISecFilterDeviceStub() {
}
CPISecFilterDeviceStub::~CPISecFilterDeviceStub() {
}
bool CPISecFilterDeviceStub::initialize(KERNEL_EVENTHANDLER kernel_eventhandler) {
return t... | 19.891892 | 96 | 0.76087 | minku1024 |
784eec0a02944bede305cf257cead79ccf6959a0 | 245 | cpp | C++ | Practice/Down Of Programming Contest/Loops/prob 2.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Practice/Down Of Programming Contest/Loops/prob 2.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Practice/Down Of Programming Contest/Loops/prob 2.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | //1 2 + 2 2 + 3 2 + . . . + n 2
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
long n,sum = 0;
cin>>n;
for(long i = 1; i <= n; i++)
{
sum += pow(i,2);
}
cout<<sum<<endl;
return 0;
} | 13.611111 | 32 | 0.44898 | Sohelr360 |
784f5761bd573483fc83142c88b8c8aad80ac1d8 | 1,872 | cpp | C++ | src/umpire/op/HostReallocateOperation.cpp | td-mpcdf/Umpire | 3f1701e2dab2dce426f93206c8f5ba96af07e0cb | [
"MIT-0",
"MIT"
] | null | null | null | src/umpire/op/HostReallocateOperation.cpp | td-mpcdf/Umpire | 3f1701e2dab2dce426f93206c8f5ba96af07e0cb | [
"MIT-0",
"MIT"
] | null | null | null | src/umpire/op/HostReallocateOperation.cpp | td-mpcdf/Umpire | 3f1701e2dab2dce426f93206c8f5ba96af07e0cb | [
"MIT-0",
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2016-22, Lawrence Livermore National Security, LLC and Umpire
// project contributors. See the COPYRIGHT file for details.
//
// SPDX-License-Identifier: (MIT)
////////////////////////////////////////////////////////////////... | 38.204082 | 118 | 0.633547 | td-mpcdf |
7852c919280429ecea3af128bd6c207a39245953 | 1,441 | cpp | C++ | ExternalCallbacks.cpp | Rus08/mandarin-vm | 9cb2af3d1698414b70f431629ee6124f64885677 | [
"MIT"
] | null | null | null | ExternalCallbacks.cpp | Rus08/mandarin-vm | 9cb2af3d1698414b70f431629ee6124f64885677 | [
"MIT"
] | null | null | null | ExternalCallbacks.cpp | Rus08/mandarin-vm | 9cb2af3d1698414b70f431629ee6124f64885677 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include "WebVM.h"
#include "Execute32Bit.h"
#include "SysCall.h"
uint32_t PerformCall(struct VirtualMachine* pVM)
{
pVM->CurrentStackTop = pVM->CurrentStackTop + 1;
CheckStackSize();
MakeCall();
return VM_OK;
}
uint32_t VMOnKeyDown(struct VirtualMachine* pVM, uint32_t Key)
... | 21.833333 | 85 | 0.684247 | Rus08 |
785324442352f72208bceee27f1f13395f50ff02 | 1,304 | hpp | C++ | ext/src/java/util/Set.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/util/Set.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/util/Set.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/util/fwd-POI.hpp>
#include <java/util/Collection.hpp>
struct java::util::Set
: public virtual Collection
{
/*bool add(::java::... | 38.352941 | 97 | 0.64954 | pebble2015 |
785839ffbabb7d32aec5a4fc14a2372049c63df5 | 6,246 | cpp | C++ | metro_mini_firmware/lcd.cpp | aeleos/ISWSD | bbf937d7d914307b52536fcf5d369422bb8f216d | [
"MIT"
] | null | null | null | metro_mini_firmware/lcd.cpp | aeleos/ISWSD | bbf937d7d914307b52536fcf5d369422bb8f216d | [
"MIT"
] | null | null | null | metro_mini_firmware/lcd.cpp | aeleos/ISWSD | bbf937d7d914307b52536fcf5d369422bb8f216d | [
"MIT"
] | null | null | null | #include "LiquidCrystal_I2C.h"
#include "lcd.h"
#include <Arduino.h>
#include "pinout.h"
// LCD Functions
#if defined(ARDUINO) && ARDUINO >= 100
#define printByte(args) write(args);
#else
#define printByte(args) print(args, BYTE);
#endif
//const PROGMEM uint16_t MAX_VOLT = 860;
//const PROGMEM uint16_t MID_VOLT = 778... | 18.370588 | 91 | 0.585335 | aeleos |
785d3922c2d40db887d7f0047d3137157b133143 | 18,075 | cpp | C++ | Source/GASShooter/Private/Characters/Abilities/GSGATA_Trace.cpp | Ritchiezhao/GASShooter | 4bd4ef5f926f3729a75f4dd991b33186c496adb9 | [
"MIT"
] | 506 | 2020-02-22T20:41:11.000Z | 2022-03-28T03:34:00.000Z | Source/GASShooter/Private/Characters/Abilities/GSGATA_Trace.cpp | Ritchiezhao/GASShooter | 4bd4ef5f926f3729a75f4dd991b33186c496adb9 | [
"MIT"
] | 26 | 2020-03-08T14:29:56.000Z | 2021-12-17T06:18:01.000Z | Source/GASShooter/Private/Characters/Abilities/GSGATA_Trace.cpp | Ritchiezhao/GASShooter | 4bd4ef5f926f3729a75f4dd991b33186c496adb9 | [
"MIT"
] | 165 | 2020-02-23T07:19:48.000Z | 2022-03-18T21:14:42.000Z | // Copyright 2020 Dan Kestranek.
#include "Characters/Abilities/GSGATA_Trace.h"
#include "AbilitySystemComponent.h"
#include "DrawDebugHelpers.h"
#include "GameFramework/PlayerController.h"
#include "GameplayAbilitySpec.h"
AGSGATA_Trace::AGSGATA_Trace()
{
bDestroyOnConfirmation = false;
PrimaryActorTick.bCanEverTi... | 31.271626 | 244 | 0.752642 | Ritchiezhao |
785d9aeddfaefcb9919a681572aa37f5e2bb7dc1 | 294 | cpp | C++ | task4.cpp | Hung150/lab20 | 63c8ad9b4fa4add7f610608190f3631ec1bbe719 | [
"Apache-2.0"
] | null | null | null | task4.cpp | Hung150/lab20 | 63c8ad9b4fa4add7f610608190f3631ec1bbe719 | [
"Apache-2.0"
] | null | null | null | task4.cpp | Hung150/lab20 | 63c8ad9b4fa4add7f610608190f3631ec1bbe719 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
main(){
char s[90];
char ch;
cout << "Enter string: "<<endl;
cin >> s;
cout << endl << "Enter the character: "<<endl;
cin >> ch;
for (int i=0;i<s.length();i++){
cout << s[i];
if (s[i]==ch) cout << s[i];
}
}
| 18.375 | 48 | 0.527211 | Hung150 |
7860829129a999328b3a2995193f66bc81521620 | 17,725 | cpp | C++ | 01.Firmware/components/FabGL/src/dispdrivers/vga8controller.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | 5 | 2022-02-14T03:12:57.000Z | 2022-03-06T11:58:31.000Z | 01.Firmware/components/FabGL/src/dispdrivers/vga8controller.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | null | null | null | 01.Firmware/components/FabGL/src/dispdrivers/vga8controller.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | 4 | 2022-02-23T07:00:59.000Z | 2022-03-10T03:58:11.000Z | /*
Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - <http://www.fabgl.com>
Copyright (c) 2019-2021 Fabrizio Di Vittorio.
All rights reserved.
* Please contact fdivitto2013@gmail.com if you need a commercial license.
* This library and related software is available under GPL v3.
FabGL is free soft... | 35.238569 | 195 | 0.58708 | POMIN-163 |
786741811d75451c0ef4e60401bbaaf967b62a0b | 782 | cpp | C++ | src/aquarius2/proxy/internal/ProxyTaskRunner.cpp | kirino17/ecef | b9214aec0462db26718fca1cdcc9add200fabfb8 | [
"BSD-3-Clause"
] | 60 | 2018-09-29T05:08:07.000Z | 2022-03-05T19:44:20.000Z | src/aquarius2/proxy/internal/ProxyTaskRunner.cpp | c3358/ecef | b9214aec0462db26718fca1cdcc9add200fabfb8 | [
"BSD-3-Clause"
] | 4 | 2018-11-19T07:47:56.000Z | 2020-12-30T05:06:21.000Z | src/aquarius2/proxy/internal/ProxyTaskRunner.cpp | c3358/ecef | b9214aec0462db26718fca1cdcc9add200fabfb8 | [
"BSD-3-Clause"
] | 27 | 2018-10-29T17:30:53.000Z | 2022-03-29T01:48:24.000Z | #include "ProxyTaskRunner.h"
#include "include/cef_task.h"
AQUA_PROXY_AUTO_CONSTRUCTOR(ProxyTaskRunner, CefTaskRunner);
bool ProxyTaskRunner::IsValid() {
return _rawptr != nullptr;
}
bool ProxyTaskRunner::IsSame(shrewd_ptr<ProxyTaskRunner> runner) {
ASSERTQ(false);
if (!runner || !ORIGIN(CefTaskRunner, runner)) {... | 25.225806 | 96 | 0.773657 | kirino17 |
786881120b776d9efd73468b373ef5426dbb9a5e | 3,756 | cpp | C++ | src/HTTPSConnection.cpp | abelsensors/esp32_https_server | e568d8321764cce26ab76976f6489065b3744c7a | [
"MIT"
] | null | null | null | src/HTTPSConnection.cpp | abelsensors/esp32_https_server | e568d8321764cce26ab76976f6489065b3744c7a | [
"MIT"
] | null | null | null | src/HTTPSConnection.cpp | abelsensors/esp32_https_server | e568d8321764cce26ab76976f6489065b3744c7a | [
"MIT"
] | 2 | 2022-01-26T19:47:32.000Z | 2022-02-28T15:15:07.000Z | #include "HTTPSConnection.hpp"
namespace httpsserver {
HTTPSConnection::HTTPSConnection(ResourceResolver * resResolver):
HTTPConnection(resResolver) {
_ssl = NULL;
}
HTTPSConnection::~HTTPSConnection() {
// Close the socket
closeConnection();
}
bool HTTPSConnection::isSecure() {
return true;
}
/**
* In... | 29.34375 | 102 | 0.676784 | abelsensors |
786a78d7380a854fd3d3a381bac5aef7b89cd772 | 6,844 | cpp | C++ | Engine/Src/SFCore/Stream/SFCompressedStream.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFCore/Stream/SFCompressedStream.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFCore/Stream/SFCompressedStream.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2017 Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : SFFileOutputStream
//
//
////////////////////////////////////////////////////////////////////////////////
#include "SFCorePCH.h"
#incl... | 24.442857 | 130 | 0.658533 | blue3k |
7871f51084cb1bee410708a8f73538b6ccd2d244 | 4,701 | hh | C++ | trex/domain/EnumDomain.hh | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | trex/domain/EnumDomain.hh | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | trex/domain/EnumDomain.hh | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | /* -*- C++ -*- */
/** @file "EnumDomain.hh"
* @brief string values enumeration domain
*
* This file defines the EnumDamain class.
*
* The EnumDomain is a specialization in order to declare domains
* based on string values.
*
* @author Frederic Py <fpy@mbari.org>
* @ingroup domains
*/
/**********************... | 34.313869 | 82 | 0.640289 | miatauro |
7872d60fa999bc937958663007629d3cfa44c8e9 | 377 | cpp | C++ | source/mazegenerator/AldousBroder.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null | source/mazegenerator/AldousBroder.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null | source/mazegenerator/AldousBroder.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null |
#include <mazegenerator/AldousBroder.h>
GridPtr AldousBroder::on(GridPtr grid) {
auto cell = grid->randomCell();
auto unvisited = grid->size() - 1;
while (unvisited > 0) {
auto neighbor = randomElement(cell->neighbours.getAll());
if (neighbor->getLinks().empty()) {
cell->link(neighbor);
unvi... | 22.176471 | 61 | 0.633952 | danielplawrence |
7872f56e147aef75e7167389ae9219914fabd136 | 6,111 | cpp | C++ | tests/unit_tests/parser/math_char.cpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | 4 | 2021-04-02T02:52:05.000Z | 2021-12-11T00:42:35.000Z | tests/unit_tests/parser/math_char.cpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | null | null | null | tests/unit_tests/parser/math_char.cpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | null | null | null | #include "parser/parse.hpp"
#include "framework/doctest.hpp"
#include "framework/node_types_are.hpp"
namespace mfl::parser
{
TEST_SUITE("parse math char")
{
TEST_CASE("parse a single math_char")
{
const auto expected = math_char{.kind = item_kind::bin, .family = font_family::roman,... | 41.013423 | 121 | 0.56341 | cpp-niel |
787684df66343e26e77f78b610a3cfb2ebed1297 | 7,199 | cpp | C++ | SpatialGDK/Source/SpatialGDK/Private/Interop/SpatialPlayerSpawner.cpp | eddyrainy/UnrealGDK | eb86c58d23d55e74b584b91c2d35702ba08448be | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDK/Private/Interop/SpatialPlayerSpawner.cpp | eddyrainy/UnrealGDK | eb86c58d23d55e74b584b91c2d35702ba08448be | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDK/Private/Interop/SpatialPlayerSpawner.cpp | eddyrainy/UnrealGDK | eb86c58d23d55e74b584b91c2d35702ba08448be | [
"MIT"
] | null | null | null | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "Interop/SpatialPlayerSpawner.h"
#include "Engine/Engine.h"
#include "Engine/LocalPlayer.h"
#include "Kismet/GameplayStatics.h"
#include "TimerManager.h"
#include "EngineClasses/SpatialNetDriver.h"
#include "Interop/Connection/SpatialWorkerConnecti... | 37.300518 | 135 | 0.786498 | eddyrainy |
787ed3e2cee4aa3564d9393294f93613ef20eee7 | 11,227 | hpp | C++ | srrg2_core/src/srrg_image/image.hpp | srrg-sapienza/srrg2_core | 56c1f8305f2a9918b7e7c581d83d394ffb7ea50e | [
"BSD-3-Clause"
] | 5 | 2020-03-11T14:36:13.000Z | 2021-09-09T09:01:15.000Z | srrg2_core/src/srrg_image/image.hpp | srrg-sapienza/srrg2_core | 56c1f8305f2a9918b7e7c581d83d394ffb7ea50e | [
"BSD-3-Clause"
] | 1 | 2020-06-07T17:25:04.000Z | 2020-07-15T07:36:10.000Z | srrg2_core/src/srrg_image/image.hpp | srrg-sapienza/srrg2_core | 56c1f8305f2a9918b7e7c581d83d394ffb7ea50e | [
"BSD-3-Clause"
] | 2 | 2020-11-30T08:17:53.000Z | 2021-06-19T05:07:07.000Z | namespace srrg2_core {
template <class Scalar_, ImageType ImageType_, int NumChannels_>
void Image_<Scalar_, ImageType_, NumChannels_>::toCv(cv::Mat& dest_) const {
dest_.create(this->rows(), this->cols(), ImageType_);
for (size_t r = 0; r < this->rows(); ++r) {
CVVecType* dest_ptr = dest_.ptr<CVV... | 37.175497 | 112 | 0.591253 | srrg-sapienza |
787eee1092a6141b0f5f5fafd6655b1a3d9fe031 | 6,636 | cxx | C++ | Libs/Widgets/GUI/Midas3TreeViewClient.cxx | midasplatform/MidasClient | 728d4a5969691b54b7d0efd2dbad5a4df85d1a0e | [
"Apache-2.0"
] | null | null | null | Libs/Widgets/GUI/Midas3TreeViewClient.cxx | midasplatform/MidasClient | 728d4a5969691b54b7d0efd2dbad5a4df85d1a0e | [
"Apache-2.0"
] | null | null | null | Libs/Widgets/GUI/Midas3TreeViewClient.cxx | midasplatform/MidasClient | 728d4a5969691b54b7d0efd2dbad5a4df85d1a0e | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2011 Kitware 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.... | 29.757848 | 114 | 0.66953 | midasplatform |
787f0b85b45535b03e7667b10d86a331eb5581a6 | 808 | cpp | C++ | reddit-v1-user-agent.cpp | JulienRaynal/orca | 0ab3f232273209d48a088fc5d050a4e4b35c6c58 | [
"MIT"
] | null | null | null | reddit-v1-user-agent.cpp | JulienRaynal/orca | 0ab3f232273209d48a088fc5d050a4e4b35c6c58 | [
"MIT"
] | null | null | null | reddit-v1-user-agent.cpp | JulienRaynal/orca | 0ab3f232273209d48a088fc5d050a4e4b35c6c58 | [
"MIT"
] | null | null | null | #include <stdarg.h>
#include "orka-user-agent.hpp"
#include "reddit-v1-user-agent.hpp"
#define BASE_API_URL "https://www.reddit.com/api/v1"
namespace reddit {
namespace v1 {
namespace user_agent {
void
init(struct dati *ua, char *username, char *password)
{
ua_init(&ua->common, BASE_API_URL);
ua->username = ... | 17.565217 | 54 | 0.689356 | JulienRaynal |
7880b4f9b41e4fb3a106344dc0116fc606fc25f1 | 862 | hpp | C++ | src/stan/algorithms/hmc/nuts/dense_e_nuts.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/algorithms/hmc/nuts/dense_e_nuts.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/algorithms/hmc/nuts/dense_e_nuts.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MCMC_HMC_NUTS_DENSE_E_NUTS_HPP
#define STAN_MCMC_HMC_NUTS_DENSE_E_NUTS_HPP
#include "base_nuts.hpp"
#include "stan/algorithms/hmc/hamiltonians/dense_e_point.hpp"
#include "stan/algorithms/hmc/hamiltonians/dense_e_metric.hpp"
#include "stan/algorithms/hmc/integrators/expl_leapfrog.hpp"
namespace stan {
... | 31.925926 | 67 | 0.684455 | alashworth |
788506ffa89bf819a0e5979bc17f1ad21947cf41 | 1,986 | cpp | C++ | src/activation.cpp | NicolasMakaroff/MLMVN | 7a4941f57862c74173c755b6ffc48789c049baec | [
"MIT"
] | null | null | null | src/activation.cpp | NicolasMakaroff/MLMVN | 7a4941f57862c74173c755b6ffc48789c049baec | [
"MIT"
] | null | null | null | src/activation.cpp | NicolasMakaroff/MLMVN | 7a4941f57862c74173c755b6ffc48789c049baec | [
"MIT"
] | null | null | null | #include "activation.hpp"
/** Short class for different activation functions */
// Discrete activation function
std::string activation::getType(){
return "ToDo";
}
void activation::setType(std::string type){
}
std::complex<double> activation::NonPeriodicDiscrete(std::complex<double> z_, int categories){... | 32.032258 | 104 | 0.618328 | NicolasMakaroff |
788802120fed832a426fba6c4d259e8035b2592b | 1,730 | cpp | C++ | test/unit/core-sigcxx/trackable-test.cpp | zhanggyb/skland | 055d91a6830b95d248d407c37a8a2fa20b148efd | [
"Apache-2.0"
] | 20 | 2017-01-11T05:59:18.000Z | 2019-08-17T03:21:38.000Z | test/unit/core-sigcxx/trackable-test.cpp | zhanggyb/skland | 055d91a6830b95d248d407c37a8a2fa20b148efd | [
"Apache-2.0"
] | null | null | null | test/unit/core-sigcxx/trackable-test.cpp | zhanggyb/skland | 055d91a6830b95d248d407c37a8a2fa20b148efd | [
"Apache-2.0"
] | 3 | 2017-03-03T17:37:10.000Z | 2018-08-08T12:44:23.000Z | //
// Created by zhanggyb on 16-9-19.
//
#include "trackable-test.hpp"
#include <skland/core/sigcxx.hpp>
#include "subject.hpp"
#include "observer.hpp"
using namespace skland;
using namespace skland::core;
TEST_F(TrackableTest, slot_1) {
Subject subject;
Observer observer;
subject.signal1().Connect(&observe... | 24.366197 | 71 | 0.726012 | zhanggyb |
788ad416c7b1689e0f5bff361fcca8d74906e439 | 8,088 | cc | C++ | src/tim/lite/execution.cc | 2019dj/TIM-VX | b3e52591f412d95a2deeebc7e2d8aca2bc909352 | [
"MIT"
] | 118 | 2021-01-12T01:56:25.000Z | 2022-03-30T09:50:58.000Z | src/tim/lite/execution.cc | 2019dj/TIM-VX | b3e52591f412d95a2deeebc7e2d8aca2bc909352 | [
"MIT"
] | 114 | 2021-01-29T08:21:43.000Z | 2022-03-28T11:58:10.000Z | src/tim/lite/execution.cc | 2019dj/TIM-VX | b3e52591f412d95a2deeebc7e2d8aca2bc909352 | [
"MIT"
] | 56 | 2021-01-12T02:42:53.000Z | 2022-03-24T02:15:20.000Z | /****************************************************************************
*
* Copyright (c) 2021 Vivante Corporation
*
* 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 ... | 35.165217 | 92 | 0.626978 | 2019dj |
788c8b959e0067c449f323b80847b4c8d0aa7a9c | 14,844 | cpp | C++ | 0.52/GraySvr/CCharNPCStatus.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | 2 | 2020-12-22T17:03:14.000Z | 2021-07-31T23:59:05.000Z | 0.52/GraySvr/CCharNPCStatus.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | null | null | null | 0.52/GraySvr/CCharNPCStatus.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | 4 | 2021-04-21T19:43:48.000Z | 2021-10-07T00:38:23.000Z | //
// CCharNPCStatus.cpp
// Copyright Menace Software (www.menasoft.com).
//
// Test things to judge what an NPC might be thinking. (want to do)
// But take no actions here.
//
#include "graysvr.h" // predef header.
CREID_TYPE CChar::NPC_GetAllyGroupType(CREID_TYPE idTest) // static
{
switch ( idTest )
{
case CREI... | 24.215334 | 125 | 0.662018 | Jhobean |
788dc407836449d0a88ff1a33ac18da7b3e01336 | 6,580 | hpp | C++ | include/networkit/distance/SSSP.hpp | kmc-kk/networkit | 28c1208104acae8ef70911340bf88b3e3dd08db7 | [
"MIT"
] | null | null | null | include/networkit/distance/SSSP.hpp | kmc-kk/networkit | 28c1208104acae8ef70911340bf88b3e3dd08db7 | [
"MIT"
] | null | null | null | include/networkit/distance/SSSP.hpp | kmc-kk/networkit | 28c1208104acae8ef70911340bf88b3e3dd08db7 | [
"MIT"
] | 1 | 2020-02-05T17:39:47.000Z | 2020-02-05T17:39:47.000Z | /*
* SSSP.h
*
* Created on: 15.04.2014
* Author: cls
*/
#ifndef NETWORKIT_DISTANCE_SSSP_HPP_
#define NETWORKIT_DISTANCE_SSSP_HPP_
#include <set>
#include <stack>
#include <networkit/base/Algorithm.hpp>
#include <networkit/graph/Graph.hpp>
#include <networkit/auxiliary/Multiprecision.hpp>
#include <tlx/def... | 30.604651 | 80 | 0.641793 | kmc-kk |
7894ed955d679957b3814246ccd588735a194ab9 | 2,748 | cc | C++ | cc/puzzle_6_1/main.cc | craig-chasseur/aoc2019 | e2bed89deef4cabc37ff438dd7d26efe0187500b | [
"MIT"
] | null | null | null | cc/puzzle_6_1/main.cc | craig-chasseur/aoc2019 | e2bed89deef4cabc37ff438dd7d26efe0187500b | [
"MIT"
] | null | null | null | cc/puzzle_6_1/main.cc | craig-chasseur/aoc2019 | e2bed89deef4cabc37ff438dd7d26efe0187500b | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
#include "cc/util/check.h"
namespace {
class OrbitGraph {
public:
OrbitGraph() = ... | 26.941176 | 79 | 0.663028 | craig-chasseur |
7896682deb89ff1aa82cf5cbceb3fe2e3f9a7c02 | 8,692 | cpp | C++ | src/SVArduino/sv_client.cpp | Sundiverr/SVisual | 0b652efbd6ebb16db7d2a618db6f4ee8203e6310 | [
"MIT"
] | 1 | 2019-04-30T20:51:02.000Z | 2019-04-30T20:51:02.000Z | src/SVArduino/sv_client.cpp | Sundiverr/SVisual | 0b652efbd6ebb16db7d2a618db6f4ee8203e6310 | [
"MIT"
] | null | null | null | src/SVArduino/sv_client.cpp | Sundiverr/SVisual | 0b652efbd6ebb16db7d2a618db6f4ee8203e6310 | [
"MIT"
] | null | null | null |
#include <stdlib.h>
#include <string.h>
#include <Ethernet.h>
#include <WiFi.h>
#include "MsTimer2.h"
#include "SVClient.h"
#include "sv_auxFunc.h"
#include "sv_structurs.h"
#include "sv_binTree.h"
#include "sv_objClient.h"
namespace svisual{
sv_client objCln;
// connect to server of ethernet
// module ... | 23.240642 | 147 | 0.614933 | Sundiverr |
a191cf87e7fada8b971263fb2092c140eb4d46b8 | 3,359 | hpp | C++ | src/utility/gpu/memory.hpp | OpenJij/OpenJij | 9ed58500ef47583bc472410d470bb2dd4bfec74a | [
"Apache-2.0"
] | 61 | 2019-01-05T13:37:10.000Z | 2022-03-11T02:11:08.000Z | src/utility/gpu/memory.hpp | OpenJij/OpenJij | 9ed58500ef47583bc472410d470bb2dd4bfec74a | [
"Apache-2.0"
] | 79 | 2019-01-29T09:55:20.000Z | 2022-02-19T04:06:20.000Z | src/utility/gpu/memory.hpp | OpenJij/OpenJij | 9ed58500ef47583bc472410d470bb2dd4bfec74a | [
"Apache-2.0"
] | 21 | 2019-01-07T07:55:10.000Z | 2022-03-08T14:27:23.000Z | // Copyright 2021 Jij 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 agre... | 32.61165 | 101 | 0.526347 | OpenJij |
a1924d66b6469f2ae62602ade94a7d77f3517822 | 5,912 | cpp | C++ | utility/unittest/ssl_test.cpp | infinitEnigma/beam | 5aa354cf62d88c53001509498e4949143dc41c3b | [
"Apache-2.0"
] | 1 | 2020-03-11T07:13:22.000Z | 2020-03-11T07:13:22.000Z | utility/unittest/ssl_test.cpp | infinitEnigma/beam | 5aa354cf62d88c53001509498e4949143dc41c3b | [
"Apache-2.0"
] | null | null | null | utility/unittest/ssl_test.cpp | infinitEnigma/beam | 5aa354cf62d88c53001509498e4949143dc41c3b | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 The Beam Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 34.17341 | 163 | 0.60318 | infinitEnigma |
a1984dd2049ff58d36fd086e7b632059ee98fb0c | 766 | cpp | C++ | leetcode.com/0526 Beautiful Arrangement/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0526 Beautiful Arrangement/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0526 Beautiful Arrangement/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
#include <unordered_map>
#include <vector>
using namespace std;
class Solution {
private:
vector<unordered_map<int, int>> dp;
int n;
int dfs(int i, int visited) {
if (i == 0) return 1;
if (dp[i].count(visited)) return dp[i][visited];
int res = 0;
for (int ii = 1; ii <= n; ++... | 18.682927 | 52 | 0.541775 | sky-bro |
a19fe84c7caf56ff12b25b503d87badbabcdbd25 | 517 | cpp | C++ | CSC/CSC114/GaddisExamples/Chapter07/Pr7-26.cpp | HNSS-US/DelTech | a424da4e10ec0a33caaa6ed1c1d78837bdc6b0a2 | [
"MIT"
] | null | null | null | CSC/CSC114/GaddisExamples/Chapter07/Pr7-26.cpp | HNSS-US/DelTech | a424da4e10ec0a33caaa6ed1c1d78837bdc6b0a2 | [
"MIT"
] | null | null | null | CSC/CSC114/GaddisExamples/Chapter07/Pr7-26.cpp | HNSS-US/DelTech | a424da4e10ec0a33caaa6ed1c1d78837bdc6b0a2 | [
"MIT"
] | null | null | null | // This program demonstrates the range-based for loop with a vector.
#include <iostream>
#include <vector>
using namespace std;
int main()
{
// Define a vector.
vector<int> numbers(5);
// Get values for the vector elements.
for (int &val : numbers)
{
cout << "Enter an integer value... | 21.541667 | 69 | 0.586074 | HNSS-US |
a1a1876062598adbc42bd7560ba6a73446d6cf79 | 6,932 | cpp | C++ | src/server/UI/mainwindow.cpp | afrostalin/FireNET | 212bd7b0bf5a3ceef4c19fe527c7f23e624e296b | [
"BSL-1.0"
] | 27 | 2015-12-22T20:29:12.000Z | 2021-06-05T18:25:27.000Z | src/server/UI/mainwindow.cpp | afrostalin/FireNET | 212bd7b0bf5a3ceef4c19fe527c7f23e624e296b | [
"BSL-1.0"
] | 36 | 2015-06-14T15:17:19.000Z | 2017-12-28T16:01:02.000Z | src/server/UI/mainwindow.cpp | afrostalin/FireNET | 212bd7b0bf5a3ceef4c19fe527c7f23e624e296b | [
"BSL-1.0"
] | 14 | 2016-01-14T11:15:47.000Z | 2021-05-04T20:24:46.000Z | // Copyright (C) 2014-2018 Ilya Chernetsov. All rights reserved. Contacts: <chernecoff@gmail.com>
// License: https://github.com/afrostalin/FireNET/blob/master/LICENSE
#include "global.h"
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "UILogger.h"
#include "Core/tcpserver.h"
#include "Core/remoteserver.h... | 19.526761 | 187 | 0.626659 | afrostalin |
a1a5bf8ec26af205c0c77690845648cfac1e7195 | 2,800 | hpp | C++ | engine/include/xe/core/gpu.hpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | engine/include/xe/core/gpu.hpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | engine/include/xe/core/gpu.hpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | //
// Created by FLXR on 9/3/2019.
//
#ifndef XE_GPU_HPP
#define XE_GPU_HPP
#include <atomic>
#include <thread>
#include <mutex>
#include <memory>
#include <xe/params.hpp>
#include <xe/core/object.hpp>
#include <xe/graphics/display_list.hpp>
namespace xe {
class Window;
namespace gpu {
class Backend;
}
... | 23.931624 | 98 | 0.682143 | trbflxr |
a1a83c496fd4fa0387691cb075c57de2dce3b370 | 54,360 | cpp | C++ | src/AstTransforms.cpp | ohamel-softwaresecure/souffle | d4b9fe641f0c51d2a25408af45416a7e5123f866 | [
"UPL-1.0"
] | null | null | null | src/AstTransforms.cpp | ohamel-softwaresecure/souffle | d4b9fe641f0c51d2a25408af45416a7e5123f866 | [
"UPL-1.0"
] | null | null | null | src/AstTransforms.cpp | ohamel-softwaresecure/souffle | d4b9fe641f0c51d2a25408af45416a7e5123f866 | [
"UPL-1.0"
] | null | null | null | /*
* Souffle - A Datalog Compiler
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/**************************************************... | 40.567164 | 110 | 0.568727 | ohamel-softwaresecure |
a1a8c85c1f7b3d62f3f30a48b8fbd866d8b10cf0 | 1,034 | hpp | C++ | archive/stan/src/stan/lang/generator/generate_functions.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | archive/stan/src/stan/lang/generator/generate_functions.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | archive/stan/src/stan/lang/generator/generate_functions.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_LANG_GENERATOR_GENERATE_FUNCTIONS_HPP
#define STAN_LANG_GENERATOR_GENERATE_FUNCTIONS_HPP
#include <stan/lang/ast.hpp>
#include <stan/lang/generator/generate_function.hpp>
#include <stan/lang/generator/generate_function_functor.hpp>
#include <ostream>
#include <vector>
namespace stan {
namespa... | 30.411765 | 72 | 0.662476 | alashworth |
a1a8de673e4f10886904777f9fd9a0b377280823 | 4,501 | cpp | C++ | export/release/macos/obj/src/flixel/addons/ui/AnchorPoint.cpp | EnvyBun/KB-FNF-MOD | f7541661229c587bf99f0508cc3eba7043f8c177 | [
"Apache-2.0"
] | 1 | 2021-07-19T05:10:43.000Z | 2021-07-19T05:10:43.000Z | export/release/macos/obj/src/flixel/addons/ui/AnchorPoint.cpp | EnvyBun/KB-FNF-MOD | f7541661229c587bf99f0508cc3eba7043f8c177 | [
"Apache-2.0"
] | null | null | null | export/release/macos/obj/src/flixel/addons/ui/AnchorPoint.cpp | EnvyBun/KB-FNF-MOD | f7541661229c587bf99f0508cc3eba7043f8c177 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_flixel_addons_ui_AnchorPoint
#include <flixel/addons/ui/AnchorPoint.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_6681d3195fadcae2_3_new,"flixel.addons.ui.AnchorPoint","new",0x37a3eddc,"flixel.addons.ui.AnchorPoint.new","flixel/addons/ui/AnchorPoint.hx",3,0xb41... | 31.921986 | 183 | 0.726061 | EnvyBun |
a1ab2e219487c47362a61a460f9a0d29f9b1c3f4 | 5,289 | cpp | C++ | src/qt/src/corelib/kernel/qsharedmemory_symbian.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 25 | 2015-07-21T18:14:57.000Z | 2021-02-21T10:00:48.000Z | src/qt/src/corelib/kernel/qsharedmemory_symbian.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 3 | 2015-01-19T11:31:54.000Z | 2015-07-01T13:28:48.000Z | src/qt/src/corelib/kernel/qsharedmemory_symbian.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 9 | 2016-03-14T13:25:14.000Z | 2021-02-21T10:09:22.000Z | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees... | 30.051136 | 104 | 0.668557 | jefleponot |
a1adaa2f8524b211108b887544a6b7cfcdb6110b | 1,368 | hpp | C++ | utils/timer.hpp | BowenforGit/Grasper | 268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7 | [
"Apache-2.0"
] | 29 | 2019-11-18T14:25:05.000Z | 2022-02-10T07:21:48.000Z | utils/timer.hpp | BowenforGit/Grasper | 268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7 | [
"Apache-2.0"
] | 2 | 2021-03-17T03:17:38.000Z | 2021-04-11T04:06:23.000Z | utils/timer.hpp | BowenforGit/Grasper | 268468d6eb0a56e9a4815c0c1d7660b06bf8a1f7 | [
"Apache-2.0"
] | 6 | 2019-11-21T18:04:15.000Z | 2022-03-01T02:48:50.000Z | /* Copyright 2019 Husky Data Lab, CUHK
Authors: Hongzhi Chen (hzchen@cse.cuhk.edu.hk)
*/
#ifndef TIMER_HPP_
#define TIMER_HPP_
#include <emmintrin.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdint.h>
#include <string>
#include <vector>
class timer {
public:
static uint64_t get_usec() {
stru... | 24 | 77 | 0.646199 | BowenforGit |
a1af8186be2dd8773350cad537b2b66c78d1b447 | 15,833 | cpp | C++ | CLR/Libraries/CorLib/corlib_native_System_BitConverter.cpp | valoni/STM32F103 | 75f0cb8be593ca287a08f5992d1f5d3c3bb12bfc | [
"Apache-2.0"
] | null | null | null | CLR/Libraries/CorLib/corlib_native_System_BitConverter.cpp | valoni/STM32F103 | 75f0cb8be593ca287a08f5992d1f5d3c3bb12bfc | [
"Apache-2.0"
] | null | null | null | CLR/Libraries/CorLib/corlib_native_System_BitConverter.cpp | valoni/STM32F103 | 75f0cb8be593ca287a08f5992d1f5d3c3bb12bfc | [
"Apache-2.0"
] | 1 | 2019-12-03T05:37:43.000Z | 2019-12-03T05:37:43.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... | 34.569869 | 201 | 0.739152 | valoni |
a1b260e5b269b5281a133e02563deca98851b6e5 | 16,949 | cpp | C++ | stage0/src/library/compiler/eager_lambda_lifting.cpp | tballmsft/lean4 | fb57b73e1f07828fa9aad91c2112bf072b3e79f2 | [
"Apache-2.0"
] | 1,538 | 2019-04-25T11:00:03.000Z | 2022-03-30T02:35:48.000Z | stage0/src/library/compiler/eager_lambda_lifting.cpp | tballmsft/lean4 | fb57b73e1f07828fa9aad91c2112bf072b3e79f2 | [
"Apache-2.0"
] | 812 | 2019-05-20T09:15:21.000Z | 2022-03-31T16:36:04.000Z | stage0/src/library/compiler/eager_lambda_lifting.cpp | tballmsft/lean4 | fb57b73e1f07828fa9aad91c2112bf072b3e79f2 | [
"Apache-2.0"
] | 168 | 2019-04-25T12:49:34.000Z | 2022-03-29T05:07:14.000Z | /*
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "runtime/flet.h"
#include "kernel/instantiate.h"
#include "kernel/abstract.h"
#include "kernel/for_each_fn.h"
#include "kernel/type_checker.h"
#inc... | 39.693208 | 130 | 0.545755 | tballmsft |
a1b2e5e3b5b52f7ae039aca17d05455453205755 | 1,052 | hpp | C++ | main/mainDefs.hpp | v1993/generators | 78b4a106b83ac8604d826d4751f7ab38c1ccdbd4 | [
"MIT"
] | null | null | null | main/mainDefs.hpp | v1993/generators | 78b4a106b83ac8604d826d4751f7ab38c1ccdbd4 | [
"MIT"
] | null | null | null | main/mainDefs.hpp | v1993/generators | 78b4a106b83ac8604d826d4751f7ab38c1ccdbd4 | [
"MIT"
] | null | null | null | #ifndef I_V_MAIN_DEFS
#define I_V_MAIN_DEFS
#pragma once
#include <iostream>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <exception>
#include <vector>
#include <string>
#include <memory>
//#include <filesystem>
#include <cstdlib>
#include <boost/any.hpp>
#include <boost/bind.hpp>
#include <b... | 21.916667 | 76 | 0.715779 | v1993 |
a1b5e70bbad8fd9f7fffe7c81048dcbe14a0ed83 | 602 | cpp | C++ | AppBase/CameraMenu.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | AppBase/CameraMenu.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | AppBase/CameraMenu.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | #include "CameraMenu.h"
#include "imgui.h"
#include "../UI/IModel.h"
#include "../UI/ICanvas.h"
using namespace Crystal::UI;
void CameraMenu::show()
{
if (ImGui::BeginMenu("Camera")) {
if (ImGui::MenuItem("Fit")) {
canvas->fitCamera(model->getBoundingBox());
}
if (ImGui::MenuItem("XY")) {
c... | 20.758621 | 49 | 0.606312 | SatoshiMabuchi |
a1b638e5f264494033ad687cdfe9c9fd76bdd1c9 | 2,345 | cpp | C++ | lib/asmjit/test/asmjit_test_perf.cpp | diegocarba99/bangheera | 2aa92584a66fe2736c312eee099e14357003c3c3 | [
"MIT"
] | 1 | 2021-05-22T21:18:44.000Z | 2021-05-22T21:18:44.000Z | lib/asmjit/test/asmjit_test_perf.cpp | diegocarba99/bangheera | 2aa92584a66fe2736c312eee099e14357003c3c3 | [
"MIT"
] | null | null | null | lib/asmjit/test/asmjit_test_perf.cpp | diegocarba99/bangheera | 2aa92584a66fe2736c312eee099e14357003c3c3 | [
"MIT"
] | 3 | 2021-03-12T10:41:03.000Z | 2022-02-12T02:33:45.000Z | // AsmJit - Machine code generation for C++
//
// * Official AsmJit Home Page: https://asmjit.com
// * Official Github Repository: https://github.com/asmjit/asmjit
//
// Copyright (c) 2008-2020 The AsmJit Authors
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the... | 33.5 | 87 | 0.696802 | diegocarba99 |
a1bc7563a7c3370940798cc8c3c53c58edaaa59a | 6,089 | cc | C++ | arch/x86_64/cpu/idt.cc | PoisonNinja/quark | 0cc2b8191f0c5cbd856caac688bfdac54a7d3369 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 3 | 2019-08-01T03:16:31.000Z | 2022-02-17T06:52:26.000Z | arch/x86_64/cpu/idt.cc | PoisonNinja/quark | 0cc2b8191f0c5cbd856caac688bfdac54a7d3369 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 32 | 2018-03-26T20:10:44.000Z | 2020-07-13T03:01:42.000Z | arch/x86_64/cpu/idt.cc | PoisonNinja/quark | 0cc2b8191f0c5cbd856caac688bfdac54a7d3369 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 1 | 2018-08-29T21:31:06.000Z | 2018-08-29T21:31:06.000Z | #include <arch/cpu/idt.h>
namespace cpu
{
namespace x86_64
{
namespace idt
{
constexpr size_t num_entries = 256;
static struct idt::entry entries[num_entries];
static struct idt::descriptor descriptor = {
.limit = sizeof(struct idt::entry) * num_entries - 1,
.offset = reinterpret_cast<addr_t>(&entries),
};
... | 44.445255 | 78 | 0.69371 | PoisonNinja |
a1bc7a13c0e2e7017ae8b30cb0f24653cfff79c3 | 1,613 | cpp | C++ | 2DGames/Shader.cpp | A12134/Hope3 | dbeb4393c8da04171828d53e2a6e0c74f76ef680 | [
"MIT"
] | null | null | null | 2DGames/Shader.cpp | A12134/Hope3 | dbeb4393c8da04171828d53e2a6e0c74f76ef680 | [
"MIT"
] | null | null | null | 2DGames/Shader.cpp | A12134/Hope3 | dbeb4393c8da04171828d53e2a6e0c74f76ef680 | [
"MIT"
] | null | null | null | #include "Shader.h"
#include <sstream>
#include <fstream>
#include <iostream>
Shader::Shader(EShaderType type, GLint ID)
{
this->mShaderType = type;
this->mShaderAddress = glCreateShader(ID);
std::string tmpType;
switch (type)
{
case EShaderType::EVertexShader:
tmpType = "Vertex Shader";
break;
case EShade... | 23.720588 | 111 | 0.701798 | A12134 |
a1bd086cf7a22259f2b2b1b22d7a9f6a7cb4f317 | 3,581 | cpp | C++ | src/simpcl/src/filters/unstable/handmade_icp.cpp | senceryazici/point-cloud-filters | d5e4e599b493cc2af1517000c012d7936d46cf0f | [
"MIT"
] | 17 | 2020-01-08T14:35:05.000Z | 2021-12-09T12:30:07.000Z | src/simpcl/src/filters/unstable/handmade_icp.cpp | senceryazici/point-cloud-filters | d5e4e599b493cc2af1517000c012d7936d46cf0f | [
"MIT"
] | 2 | 2020-01-31T16:31:48.000Z | 2022-03-09T12:49:53.000Z | src/simpcl/src/filters/unstable/handmade_icp.cpp | senceryazici/point-cloud-filters | d5e4e599b493cc2af1517000c012d7936d46cf0f | [
"MIT"
] | 7 | 2020-01-08T21:28:58.000Z | 2021-12-03T06:00:05.000Z | // Iterative Closest Point Algorithm
// FIXME: Publishing nothing
// ERROR:
// Import dependencies
#include <ros/ros.h>
#include <string>
#include <iostream>
#include <pcl_ros/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl_conversions/pcl_conversions.h>
#include <sensor_msgs/Poin... | 32.853211 | 103 | 0.615191 | senceryazici |
a1c0c5f96d90c4408bd5b6606ecf6b999782adc8 | 25,353 | cc | C++ | xic/src/fileio/fio_chd_read.cc | bernardventer/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 3 | 2020-01-26T14:18:52.000Z | 2020-12-09T20:07:22.000Z | xic/src/fileio/fio_chd_read.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | null | null | null | xic/src/fileio/fio_chd_read.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 2 | 2020-01-26T14:19:02.000Z | 2021-08-14T16:33:28.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 27.617647 | 80 | 0.427721 | bernardventer |
a1c2ca47070a833745f663e2e5ce94dd43862854 | 102 | cpp | C++ | src/main.cpp | xue2sheng/probeHTTP | d0792d01b34331c085297ae8d67209e70cbf11f5 | [
"MIT"
] | null | null | null | src/main.cpp | xue2sheng/probeHTTP | d0792d01b34331c085297ae8d67209e70cbf11f5 | [
"MIT"
] | null | null | null | src/main.cpp | xue2sheng/probeHTTP | d0792d01b34331c085297ae8d67209e70cbf11f5 | [
"MIT"
] | null | null | null | #include "main_function.h"
int main(int argc, char** argv)
{
return main_function(argc, argv);
}
| 14.571429 | 37 | 0.686275 | xue2sheng |
a1c5e7d56a30b109a44d8d3fbd86bdb48d7da3a1 | 968 | hpp | C++ | MadEngine/Utility/DrawBatch.hpp | Fs02/Volge-TheSurvivor | cbbdf660e3357c99ff106587f5d6783b267f6e92 | [
"MIT"
] | 2 | 2016-11-11T13:19:03.000Z | 2019-04-21T21:03:09.000Z | MadEngine/Utility/DrawBatch.hpp | Fs02/Volge-TheSurvivor | cbbdf660e3357c99ff106587f5d6783b267f6e92 | [
"MIT"
] | 25 | 2015-07-09T03:57:16.000Z | 2015-07-09T03:57:17.000Z | MadEngine/Utility/DrawBatch.hpp | Fs02/Volge-TheSurvivor | cbbdf660e3357c99ff106587f5d6783b267f6e92 | [
"MIT"
] | null | null | null | #ifndef _DRAWBATCH_HPP_
#define _DRAWBATCH_HPP_
#include <SFML/Graphics.hpp>
#include <Box2D/Box2D.h>
#include "../Manager/Resource.hpp"
namespace Mad
{
namespace Utility
{
class DrawBatch
{
private:
sf::RenderWindow* m_TargetWindow;
sf::Font *m_Font;
sf::Text *m_Text;
sf::Sprite *m_Sprite;
... | 22.511628 | 205 | 0.668388 | Fs02 |
a1c6269469e60c8b6132b98c8d2352b6c46e165e | 11,892 | cpp | C++ | tests/helics/shared_library/SystemTests.cpp | corinnegroth/HELICS | b8eda371b081a7d391d019c14bba5cf5042ae590 | [
"BSD-3-Clause"
] | null | null | null | tests/helics/shared_library/SystemTests.cpp | corinnegroth/HELICS | b8eda371b081a7d391d019c14bba5cf5042ae590 | [
"BSD-3-Clause"
] | null | null | null | tests/helics/shared_library/SystemTests.cpp | corinnegroth/HELICS | b8eda371b081a7d391d019c14bba5cf5042ae590 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017-2020,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See
the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include <gtest/gtest.h>
/** these test cases test out the value conv... | 34.77193 | 114 | 0.698116 | corinnegroth |
a1ca9c462dbf20a7558631e0dc412b5bc1c0f408 | 16,778 | cpp | C++ | MMVII/src/CalcDescriptPCar/cAimeTieP.cpp | micmacIGN/micmac | 558a0d104bc07150b2ff1fe2d5fb952b8f70088d | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | MMVII/src/CalcDescriptPCar/cAimeTieP.cpp | Pandinosaurus/micmac | 4aba7eb1b330d5dfd87afdb88ce40ac3372aff26 | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | MMVII/src/CalcDescriptPCar/cAimeTieP.cpp | Pandinosaurus/micmac | 4aba7eb1b330d5dfd87afdb88ce40ac3372aff26 | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | #include "include/MMVII_all.h"
#include "include/MMVII_Tpl_Images.h"
#include "include/MMVII_2Include_Serial_Tpl.h"
namespace MMVII
{
/** Map the interval [-1,1] to itself, the parameter :
* Steep fix the derivate in 0
* Exp fix the power and hence concavity/convexity
*/
class cConcavexMapP1M1 : public cFc... | 29.748227 | 127 | 0.578794 | micmacIGN |
a1cc477d604f68047f9571a22d6dfc115e3d547b | 515 | hpp | C++ | include/RadonFramework/Core/Common/StringCache.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | include/RadonFramework/Core/Common/StringCache.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | include/RadonFramework/Core/Common/StringCache.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #ifndef RF_CORE_COMMON_STRING_CACHE_HPP
#define RF_CORE_COMMON_STRING_CACHE_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <RadonFramework/Core/Types/String.hpp>
namespace RadonFramework::Core::Common {
namespace StringCache
{
void Exchange(const char*** newValues);
const char* Find(const RF_Type::Stri... | 21.458333 | 51 | 0.803883 | tak2004 |
a1ce13a6c5962bf423e750f0229e4b420462a2bf | 491 | cpp | C++ | features/template_variadic/variadic_indices.cpp | lostjared/cpp17_Examples | bd754ffca5e894d877624c45db64f9dda93d880a | [
"Unlicense"
] | 20 | 2017-07-22T19:06:39.000Z | 2021-07-12T06:46:24.000Z | features/template_variadic/variadic_indices.cpp | lostjared/cpp17_Examples | bd754ffca5e894d877624c45db64f9dda93d880a | [
"Unlicense"
] | null | null | null | features/template_variadic/variadic_indices.cpp | lostjared/cpp17_Examples | bd754ffca5e894d877624c45db64f9dda93d880a | [
"Unlicense"
] | 7 | 2018-05-20T10:26:07.000Z | 2021-07-12T04:11:18.000Z | #include<iostream>
#include<vector>
template<typename T>
void print(const T &type) {
std::cout << type << "\n";
}
template<typename T, typename... Args>
void print(const T &type, Args... args) {
print(type);
print(args...);
}
template<typename Container, typename... Index>
void PrintIndex(const Container... | 19.64 | 63 | 0.610998 | lostjared |
a1d06389b7bd6dcf7f945d6fdd69a646aa587b27 | 96 | hpp | C++ | src/include/zap/zap/link_type.hpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | src/include/zap/zap/link_type.hpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | src/include/zap/zap/link_type.hpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | #pragma once
namespace zap {
enum class link_type
{
static_,
shared_,
auto_
};
}
| 7.384615 | 20 | 0.614583 | chybz |
a1d37aebb3345ec07e322121904b998dae0a9b19 | 1,749 | hpp | C++ | libs/chain/include/chain/transaction_validity_period.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/chain/include/chain/transaction_validity_period.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/chain/include/chain/transaction_validity_period.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... | 31.232143 | 94 | 0.630646 | chr15murray |
a1d5707639f0daa4f2e331829fb4c178322a1c31 | 305 | cpp | C++ | SopadeLetras/Jogo.cpp | EduardaSRBastos/LetterSoup | 454483576be3b98cf948851e07db11ea1bd11712 | [
"MIT"
] | null | null | null | SopadeLetras/Jogo.cpp | EduardaSRBastos/LetterSoup | 454483576be3b98cf948851e07db11ea1bd11712 | [
"MIT"
] | null | null | null | SopadeLetras/Jogo.cpp | EduardaSRBastos/LetterSoup | 454483576be3b98cf948851e07db11ea1bd11712 | [
"MIT"
] | null | null | null | #include "Jogo.h"
Jogo::Jogo()
{
}
Jogo::Jogo(int x, int y)
{
jogador.SetPontos(0);
jogo.Inicio(x, y);
}
void Jogo::Iniciar()
{
int a = 10;
while (a > 0)
{
cout << a-- << " -----------------" << endl << endl;
Jogar();
}
}
int Jogo::Jogar()
{
jogo.Ver();
return 0;
}
Jogo::~Jogo()
{
}
| 8.714286 | 55 | 0.47541 | EduardaSRBastos |
a1d62f509b21abbd42d831b8ba08dec4879fb832 | 1,939 | cpp | C++ | debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp | kubamracek/llvm-project | f7ff1869cdd487d4baaf009380901e5469d8344d | [
"Apache-2.0"
] | null | null | null | debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp | kubamracek/llvm-project | f7ff1869cdd487d4baaf009380901e5469d8344d | [
"Apache-2.0"
] | null | null | null | debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp | kubamracek/llvm-project | f7ff1869cdd487d4baaf009380901e5469d8344d | [
"Apache-2.0"
] | null | null | null | #include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Identifier.h"
#include "mlir/IR/Location.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/IR/OperationSupport.h"
mlir::MLIRContext Context;
auto Identifier = mlir::Identifier::get("foo", &Context);
mlir::OperationName Operati... | 45.093023 | 78 | 0.729758 | kubamracek |
a1d812bb46c6be94fade97fbf3a08d52abc52911 | 176 | cc | C++ | Mu2eInterfaces/src/Detector.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 1 | 2021-06-23T22:09:28.000Z | 2021-06-23T22:09:28.000Z | Mu2eInterfaces/src/Detector.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 125 | 2020-04-03T13:44:30.000Z | 2021-10-15T21:29:57.000Z | Mu2eInterfaces/src/Detector.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | null | null | null | //
// A base class for detector components.
//
//
// Original author Rob Kutschke
//
#include "Mu2eInterfaces/inc/Detector.hh"
namespace mu2e
{
Detector::~Detector() { }
}
| 12.571429 | 41 | 0.676136 | lborrel |
a1d9745a4f73ccce5e92be9972b27a19bcca81e1 | 2,311 | cpp | C++ | polarexpress/data/generator.cpp | csecutsc/utscode2 | 469367528cc5697e0c5c0ccee28420591335d899 | [
"Unlicense"
] | 4 | 2018-09-30T15:06:49.000Z | 2020-12-09T06:50:25.000Z | polarexpress/data/generator.cpp | csecutsc/utscode2 | 469367528cc5697e0c5c0ccee28420591335d899 | [
"Unlicense"
] | null | null | null | polarexpress/data/generator.cpp | csecutsc/utscode2 | 469367528cc5697e0c5c0ccee28420591335d899 | [
"Unlicense"
] | 1 | 2021-06-17T04:10:51.000Z | 2021-06-17T04:10:51.000Z | #define DEBUG 0
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
using namespace std;
typedef pair<int, int> pii;
// Random number in range [lo, hi] for nonnegative lo and hi.
int rand(int lo, int h... | 17.246269 | 78 | 0.478581 | csecutsc |
a1dada7333cd80ba19e1a59872552536579d95c4 | 844 | cpp | C++ | acm/cf/20151230/c.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/cf/20151230/c.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/cf/20151230/c.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | //行列分开求,否则会因为行列之间相互关联,无法快速求解
#include<bits/stdc++.h>
using namespace std;
const int maxn = 550;
char s[maxn][maxn];
int ha[maxn][maxn];
int li[maxn][maxn];
int main(){
int h,w;
cin>>h>>w;getchar();
memset(s,'#',sizeof(s));
memset(ha,0,sizeof(ha));
memset(li,0,sizeof(li));
for(int i= 1;i<=h;i++){
for (int j=1;j... | 19.627907 | 50 | 0.483412 | xiaohuihuigh |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.