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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
efa1c3d012db6b8ff25ed550db2088ff438ff81a | 33,110 | cpp | C++ | shared/src/wdg/ds_slider_painter_bevelled.cpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | shared/src/wdg/ds_slider_painter_bevelled.cpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | shared/src/wdg/ds_slider_painter_bevelled.cpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | /// QasTools: Desktop toolset for the Linux sound system ALSA.
/// \copyright See COPYING file.
#include "ds_slider_painter_bevelled.hpp"
#include "dpe/image_set.hpp"
#include "dpe/image_set_meta.hpp"
#include "dpe/paint_job.hpp"
#include "wdg/color_methods.hpp"
#include "wdg/ds_slider_meta_bg.hpp"
#include "wdg/ds_wi... | 27.753562 | 80 | 0.539807 | amazingidiot |
efa2b3b8f5cff514aa7914aef5da94f8f26c10e4 | 887 | cpp | C++ | 17A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 17A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 17A.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)
#de... | 17.392157 | 69 | 0.598647 | felikjunvianto |
efa35a29214e795495f41465f977d9c2a4a96f50 | 753 | cpp | C++ | tests/AllegroFlare/ProfilerTest.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 25 | 2015-03-30T02:02:43.000Z | 2019-03-04T22:29:12.000Z | tests/AllegroFlare/ProfilerTest.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 122 | 2015-04-01T08:15:26.000Z | 2019-10-16T20:31:22.000Z | tests/AllegroFlare/ProfilerTest.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 4 | 2016-09-02T12:14:09.000Z | 2018-11-23T20:38:49.000Z |
#include <gtest/gtest.h>
#include <AllegroFlare/Profiler.hpp>
// for usleep on Windows
#include <unistd.h>
TEST(AllegroFlare_ProfilerTest, can_be_created_without_blowing_up)
{
AllegroFlare::Profiler profiler;
}
TEST(AllegroFlare_ProfilerTest, DISABLED__emit__will_add_an_event_time_to_that_event_bucket)
// TO... | 24.290323 | 92 | 0.747676 | MarkOates |
efa68845f579d193ab3e5f439ffdc6bb52b04b56 | 5,161 | cpp | C++ | src/workers/src/postgres_workers_repository.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | src/workers/src/postgres_workers_repository.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | src/workers/src/postgres_workers_repository.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | #include "postgres_workers_repository.h"
#include <time.h>
#include "base_sections.h"
#include "database_exceptions.h"
#include "iostream"
PostgresWorkersRepository::PostgresWorkersRepository(
const std::shared_ptr<BaseConfig>& conf,
const std::string& connection_section) {
read_config(conf, connection_secti... | 36.090909 | 80 | 0.649293 | maxerMU |
efaaeb5c1d98d01e80e9d8f73e66cad874694928 | 722 | hpp | C++ | core/src/modules/include/IFreezingPoint.hpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | core/src/modules/include/IFreezingPoint.hpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | core/src/modules/include/IFreezingPoint.hpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | /*!
* @file IFreezingPoint.hpp
*
* @date Nov 9, 2021
* @author Tim Spain <timothy.spain@nersc.no>
*/
#ifndef SRC_INCLUDE_IFREEZINGPOINT_HPP_
#define SRC_INCLUDE_IFREEZINGPOINT_HPP_
namespace Nextsim {
//! The interface class for calculation of the freezing point of seawater.
class IFreezingPoint {
public:
v... | 23.290323 | 74 | 0.689751 | athelaf |
efb0162355995140ed09d23da8d405bfd8ef2e39 | 2,449 | cpp | C++ | src/shaders/basic_shaders.cpp | Wei-Parker-Guo/RayTracer | 3312c5fc73d7d175818f94dcca66b87a0222aad4 | [
"MIT"
] | 1 | 2021-06-19T07:53:22.000Z | 2021-06-19T07:53:22.000Z | src/shaders/basic_shaders.cpp | Wei-Parker-Guo/RayTracer | 3312c5fc73d7d175818f94dcca66b87a0222aad4 | [
"MIT"
] | null | null | null | src/shaders/basic_shaders.cpp | Wei-Parker-Guo/RayTracer | 3312c5fc73d7d175818f94dcca66b87a0222aad4 | [
"MIT"
] | null | null | null | #include "basic_shaders.h"
/* generate lambertian shade with another light source
* equation: c = cr(ca + clmax(0, n.l))
*/
void gen_lambert_shade(const vec3 ca, const vec3 cr, const vec3 cl, const vec3 n, const vec3 l, vec3 c){
//reflectance
float r = std::max(0.0f, vec3_mul_inner(n,l));
vec3_scale(c, c... | 38.265625 | 172 | 0.684361 | Wei-Parker-Guo |
efb24ca4a71a7cc0a1f7a0bd5c90f459bb8b2996 | 3,164 | hpp | C++ | include/memory/hadesmem/detail/winapi.hpp | phlip9/hadesmem | 59e13a92c05918b8c842141fd5cac1ed390cd79e | [
"MIT"
] | 19 | 2017-10-19T23:13:11.000Z | 2022-03-29T11:37:26.000Z | include/memory/hadesmem/detail/winapi.hpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | null | null | null | include/memory/hadesmem/detail/winapi.hpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | 10 | 2018-04-04T07:55:16.000Z | 2021-11-23T20:22:43.000Z | // Copyright (C) 2010-2015 Joshua Boyce
// See the file COPYING for copying permission.
#pragma once
#include <windows.h>
#include <hadesmem/detail/assert.hpp>
#include <hadesmem/detail/smart_handle.hpp>
#include <hadesmem/error.hpp>
namespace hadesmem
{
namespace detail
{
inline SYSTEM_INFO GetSyste... | 27.754386 | 81 | 0.611252 | phlip9 |
efba47f84fc744499023300ed0881c6224ce2206 | 365 | hxx | C++ | include/usagi/environment_special_support.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 2 | 2016-11-20T04:59:17.000Z | 2017-02-13T01:44:37.000Z | include/usagi/environment_special_support.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 3 | 2015-09-28T12:00:02.000Z | 2015-09-28T12:03:21.000Z | include/usagi/environment_special_support.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 3 | 2017-07-02T06:09:47.000Z | 2018-07-09T01:00:57.000Z | /// @file
/// @brief 処理系依存の特別な対応
/// @attention 必要に応じて最も優先的にこのヘッダーファイルをインクルードして用いる
#pragma once
#include "environment_special_support/winsock.hxx"
#include "environment_special_support/windows.hxx"
#include "environment_special_support/ciso646.hxx"
#include "environment_special_support/use_math_defines.hxx"
#include ... | 30.416667 | 59 | 0.835616 | usagi |
efbc7aaac6633655864e11f11088b8a45cff837f | 787 | cpp | C++ | engine/src/concurrency/semaphore.cpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 44 | 2017-01-25T05:57:21.000Z | 2021-09-21T13:36:49.000Z | engine/src/concurrency/semaphore.cpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 1 | 2017-04-05T01:50:18.000Z | 2017-04-05T01:50:18.000Z | engine/src/concurrency/semaphore.cpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 3 | 2017-09-28T08:11:00.000Z | 2019-03-27T03:38:47.000Z | #include <concurrency/semaphore.hpp>
TE_BEGIN_TERMINUS_NAMESPACE
#if defined(_WIN32)
Semaphore::Semaphore()
{
m_semaphore = CreateSemaphore(NULL, 0, 256000, NULL);
}
Semaphore::~Semaphore()
{
CloseHandle(m_semaphore);
}
void Semaphore::signal()
{
ReleaseSemaphore(m_semaphore, 1, NULL);
}
void Semaphor... | 14.849057 | 57 | 0.710292 | ValtoForks |
efbe30af83bbe916246b4c5d45f11e020efe8ef4 | 2,393 | cpp | C++ | Engine/Source/Runtime/Core/FileSystem/FileUtils.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Core/FileSystem/FileUtils.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Core/FileSystem/FileUtils.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | #include "NullPCH.h"
#include "FileUtils.h"
#include "Core/Application/Application.h"
#include "Core/Application/ApplicationWindow.h"
bool FFileUtils::OpenFileDialog(const FString& Starting, const char* InFilter, FString& OutFilePath)
{
char OutFileName[256] = { 0 };
OPENFILENAMEA OFN;
FMemory::Memzero(&OFN, sizeo... | 26.588889 | 100 | 0.735896 | 1992please |
efbe3381f36230772b5ed4d20dca744b281ce35b | 857 | hpp | C++ | Merlin/Merlin/Core/layer_stack.hpp | kshatos/MerlinEngine | a7eb9b39b6cb8a02bef0f739db25268a7a06e215 | [
"MIT"
] | null | null | null | Merlin/Merlin/Core/layer_stack.hpp | kshatos/MerlinEngine | a7eb9b39b6cb8a02bef0f739db25268a7a06e215 | [
"MIT"
] | null | null | null | Merlin/Merlin/Core/layer_stack.hpp | kshatos/MerlinEngine | a7eb9b39b6cb8a02bef0f739db25268a7a06e215 | [
"MIT"
] | null | null | null | #ifndef LAYER_STACK_HPP
#define LAYER_STACK_HPP
#include <vector>
#include <deque>
#include"Merlin/Core/layer.hpp"
namespace Merlin
{
class LayerStack
{
std::deque<std::shared_ptr<Layer>> m_layers;
public:
void PushFront(std::shared_ptr<Layer> layer);
void PushBack(std::shared_ptr<... | 32.961538 | 108 | 0.660443 | kshatos |
efc4437cbd04243327b3fe9b9f313d0a0b1178d3 | 8,694 | hpp | C++ | SDK/ARKSurvivalEvolved_WeapCrossbow_Zipline_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_WeapCrossbow_Zipline_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_WeapCrossbow_Zipline_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_WeapCrossbow_Zipline_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------------------... | 95.538462 | 236 | 0.560271 | 2bite |
efc54fffed30f34b1306377ae37acada8fc33496 | 1,638 | hpp | C++ | Source/Console/ConsoleDefinition.hpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | 6 | 2017-12-31T17:28:40.000Z | 2021-12-04T06:11:34.000Z | Source/Console/ConsoleDefinition.hpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | null | null | null | Source/Console/ConsoleDefinition.hpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | null | null | null | #pragma once
#include "Precompiled.hpp"
//
// Console Definition
// Base class used by console variable/command classes.
//
class ConsoleDefinition : public NonCopyable
{
protected:
ConsoleDefinition(std::string name, std::string description);
public:
virtual ~ConsoleDefinition();
// Called when a def... | 21.552632 | 65 | 0.666667 | gunstarpl |
efcd134f4ff70b0892b244d57fab43f0fd97c732 | 882 | cpp | C++ | src/engine/keen/vorticon/ai/CDoor.cpp | rikimbo/Commander-Genius | 0b56993f4c36be8369cfd48f15aa2b9ee74a734d | [
"X11"
] | 137 | 2015-01-01T21:04:51.000Z | 2022-03-30T01:41:10.000Z | src/engine/keen/vorticon/ai/CDoor.cpp | rikimbo/Commander-Genius | 0b56993f4c36be8369cfd48f15aa2b9ee74a734d | [
"X11"
] | 154 | 2015-01-01T16:34:39.000Z | 2022-01-28T14:14:45.000Z | src/engine/keen/vorticon/ai/CDoor.cpp | rikimbo/Commander-Genius | 0b56993f4c36be8369cfd48f15aa2b9ee74a734d | [
"X11"
] | 35 | 2015-03-24T02:20:54.000Z | 2021-05-13T11:44:22.000Z | #include "CDoor.h"
#include "graphics/GsGraphics.h"
CDoor::CDoor(CMap *pmap, Uint32 x, Uint32 y, Uint32 doorspriteID):
CVorticonSpriteObject(pmap, x, y, OBJ_DOOR, 0)
{
mSpriteIdx=doorspriteID;
GsSprite &Doorsprite = gGraphics.getSprite(mSprVar,mSpriteIdx);
timer = 0;
Doorsprite.setHeight(32);
inhib... | 23.210526 | 87 | 0.660998 | rikimbo |
efce684ab6546a13268fe406728c7f1d9dac2484 | 2,471 | cpp | C++ | sc-memory/unit_tests/sc-memory/units/test_python.cpp | kroschenko/sc-machine | 10a9535b3b9151ed683d351f2d222a95fc078e2b | [
"MIT"
] | null | null | null | sc-memory/unit_tests/sc-memory/units/test_python.cpp | kroschenko/sc-machine | 10a9535b3b9151ed683d351f2d222a95fc078e2b | [
"MIT"
] | null | null | null | sc-memory/unit_tests/sc-memory/units/test_python.cpp | kroschenko/sc-machine | 10a9535b3b9151ed683d351f2d222a95fc078e2b | [
"MIT"
] | 1 | 2021-12-03T13:20:18.000Z | 2021-12-03T13:20:18.000Z | /*
* This source file is part of an OSTIS project. For the latest info, see http://ostis.net
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#include <thread>
#include "test_defines.hpp"
#include "catch2/catch.hpp"
#include "sc-test-framework/... | 26.858696 | 89 | 0.511938 | kroschenko |
efd23bca15c3960369a78a0940a30f1313a5aac6 | 1,009 | cpp | C++ | jsUnits/jsVelocityResponseSpectrum.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | jsUnits/jsVelocityResponseSpectrum.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | jsUnits/jsVelocityResponseSpectrum.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2021 DNV AS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <jsUnits/jsVelocityResponseSpectrum.h>
#include <jsUnits/jsUnitClass.h>
#include <Units/VelocityResponseSpectrum.h>
#inc... | 37.37037 | 174 | 0.800793 | dnv-opensource |
efd6998e3ce22d79dddd9d58a4a7fdf8e7051153 | 5,842 | cpp | C++ | MfgToolLib/HidDevice.cpp | Koltak/mfgtools | 02d9e639ceeda38be0184f3b697a126c5d3f03e7 | [
"BSD-3-Clause"
] | null | null | null | MfgToolLib/HidDevice.cpp | Koltak/mfgtools | 02d9e639ceeda38be0184f3b697a126c5d3f03e7 | [
"BSD-3-Clause"
] | null | null | null | MfgToolLib/HidDevice.cpp | Koltak/mfgtools | 02d9e639ceeda38be0184f3b697a126c5d3f03e7 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2009-2014, 2016 Freescale Semiconductor, Inc.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions an... | 27.952153 | 116 | 0.657994 | Koltak |
efe1ffe86c38e44a2b6a41ac546f963c1b6da326 | 456 | cpp | C++ | Selection Sort.cpp | Gayane05/Algorithms-Design_Patterns | 9cba4b1b2018ae27a24f52b1e09ef037b9742f48 | [
"MIT"
] | null | null | null | Selection Sort.cpp | Gayane05/Algorithms-Design_Patterns | 9cba4b1b2018ae27a24f52b1e09ef037b9742f48 | [
"MIT"
] | null | null | null | Selection Sort.cpp | Gayane05/Algorithms-Design_Patterns | 9cba4b1b2018ae27a24f52b1e09ef037b9742f48 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
template<typename T>
void SelectionSort(std::vector<T>& vec)
{
for (int i = 1; i < vec.size() - 1; ++i)
{
int min = i;
for (int j = i + 1; j < vec.size(); ++j)
{
if (vec[j] < vec[min])
{
min = j;
}
std::swap(vec[j], v... | 14.709677 | 53 | 0.482456 | Gayane05 |
efe47232b045b326e4802e9f1ae56254de9769e4 | 804 | cpp | C++ | 851-loud-and-rich/851-loud-and-rich.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | 851-loud-and-rich/851-loud-and-rich.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | 851-loud-and-rich/851-loud-and-rich.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
vector<int> loudAndRich(vector<vector<int>>& richer, vector<int>& quiet) {
int n = quiet.size();
vector<vector<int>> graph(n);
for(auto i : richer)
graph[i[1]].push_back(i[0]);
vector<bool> visited(n, false);
vector<int> ans(n);
for(int i = 0; i < n; i+... | 22.971429 | 103 | 0.529851 | Ananyaas |
efe5cac533b77730bea13363d24a1c4e9ff18347 | 2,851 | cpp | C++ | libraries/picosystem.cpp | Gadgetoid/picosystem | 52890ea5c8e15a605889c7f5103e1ee97202d61c | [
"MIT"
] | null | null | null | libraries/picosystem.cpp | Gadgetoid/picosystem | 52890ea5c8e15a605889c7f5103e1ee97202d61c | [
"MIT"
] | null | null | null | libraries/picosystem.cpp | Gadgetoid/picosystem | 52890ea5c8e15a605889c7f5103e1ee97202d61c | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <cstdlib>
#include <math.h>
#include "picosystem.hpp"
namespace picosystem {
color_t _pen;
int32_t _tx = 0, _ty = 0;
int32_t _camx = 0, _camy = 0;
uint32_t _io = 0, _lio = 0;
blend_func_t _bf = BLEND;
#ifdef PIXEL_DOUBLE
color_t _fb[120 * 120];
buffer_t SCREEN{.w = ... | 21.598485 | 76 | 0.603297 | Gadgetoid |
efe9558965689a612351a7590523cf9f7e51ca72 | 2,420 | hpp | C++ | src/Kommunikationsstelle.hpp | Raspi64/imgui_setup | 3d2a53211d26805c4851e3e28a9b2d6f02df1db8 | [
"MIT"
] | 1 | 2021-05-04T07:30:41.000Z | 2021-05-04T07:30:41.000Z | src/Kommunikationsstelle.hpp | Raspi64/raspi64 | 3d2a53211d26805c4851e3e28a9b2d6f02df1db8 | [
"MIT"
] | 3 | 2020-11-21T17:49:13.000Z | 2020-12-18T14:21:17.000Z | src/Kommunikationsstelle.hpp | Raspi64/raspi64 | 3d2a53211d26805c4851e3e28a9b2d6f02df1db8 | [
"MIT"
] | 3 | 2020-10-27T14:13:28.000Z | 2020-12-18T14:16:07.000Z | //
// Created by simon on 12/1/20.
//
#ifndef IMGUI_SETUP_KOMMUNIKATIONSSTELLE_HPP
#define IMGUI_SETUP_KOMMUNIKATIONSSTELLE_HPP
#include <string>
#include <Gui.hpp>
#include <Plugin.hpp>
class Kommunikationsstelle {
public:
static void init(Gui *, LANG);
enum Status {
NOT_STARTED, // No program h... | 25.208333 | 78 | 0.721074 | Raspi64 |
efef5493997fd4276533446b75110b7c76c62411 | 1,487 | cpp | C++ | Graph/networkdelaytime.cpp | thisisnitish/cp-dsa | 6a00f1d60712115f70c346cee238ad1730e6c39e | [
"MIT"
] | 4 | 2020-12-29T09:27:10.000Z | 2022-02-12T14:20:23.000Z | Graph/networkdelaytime.cpp | thisisnitish/cp-dsa | 6a00f1d60712115f70c346cee238ad1730e6c39e | [
"MIT"
] | 1 | 2021-11-27T06:15:28.000Z | 2021-11-27T06:15:28.000Z | Graph/networkdelaytime.cpp | thisisnitish/cp-dsa | 6a00f1d60712115f70c346cee238ad1730e6c39e | [
"MIT"
] | 1 | 2021-11-17T21:42:57.000Z | 2021-11-17T21:42:57.000Z | /*
Leetcode Question 743. Network Delay Time
https://leetcode.com/problems/network-delay-time/
*/
class Solution
{
public:
/*the basic idea is that indirectly the question itself is asking single
source shortest path, so we can apply dijsktra's algorithm.
Time: O(ElogV)*/
int networkDelayTime(vector<ve... | 26.553571 | 94 | 0.494956 | thisisnitish |
eff5d5ffbf67b5ff6da2cfa3e4b6b7e9e7aa478d | 933 | cpp | C++ | aws-cpp-sdk-eks/source/model/DeleteAddonRequest.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-eks/source/model/DeleteAddonRequest.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-eks/source/model/DeleteAddonRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/eks/model/DeleteAddonRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
... | 20.733333 | 69 | 0.714898 | perfectrecall |
eff649fba127a39df62f8e4763b5d469c27ab2cf | 5,898 | cc | C++ | tensorflow_serving/servables/feature/feature_transformer.cc | ydp/serving | a3102b03a3435a645e64d28de67b45e9162a8a8c | [
"Apache-2.0"
] | 6 | 2018-03-20T19:58:10.000Z | 2020-11-23T09:29:04.000Z | tensorflow_serving/servables/feature/feature_transformer.cc | ydp/serving | a3102b03a3435a645e64d28de67b45e9162a8a8c | [
"Apache-2.0"
] | null | null | null | tensorflow_serving/servables/feature/feature_transformer.cc | ydp/serving | a3102b03a3435a645e64d28de67b45e9162a8a8c | [
"Apache-2.0"
] | null | null | null | #include "tensorflow_serving/servables/feature/feature_transformer.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/lib/io/inputbuffer.h"
#include "tensorflow/core/lib/strings/str_util.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/cor... | 35.963415 | 81 | 0.626823 | ydp |
eff977b4191397ec7902a88c7b8c346e4efb6f7d | 2,567 | cpp | C++ | TC647 - 1000.cpp | therainmak3r/dirty-laundry | 39e295e9390b62830bef53282cdcb63716efac45 | [
"MIT"
] | 20 | 2015-12-22T14:14:59.000Z | 2019-10-25T12:14:23.000Z | TC647 - 1000.cpp | therainmak3r/dirty-laundry | 39e295e9390b62830bef53282cdcb63716efac45 | [
"MIT"
] | null | null | null | TC647 - 1000.cpp | therainmak3r/dirty-laundry | 39e295e9390b62830bef53282cdcb63716efac45 | [
"MIT"
] | 2 | 2016-06-27T13:34:08.000Z | 2018-10-02T20:36:54.000Z | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
class BuildingTowers
{
public:
long long between(int xi, long long a, int xj, long long b, long long k)
{
if (a > b)
return between(xj,b,xi,a,k);
int available = abs(xj - xi) - 1;
... | 28.522222 | 98 | 0.423062 | therainmak3r |
560a79738fc9fd930f5108100445c7a498b78e80 | 1,622 | cpp | C++ | brainfuck/test.cpp | DenisOstashov/cpp-advanced-hse | 6e4317763c0a9c510d639ae1e5793a8e9549d953 | [
"MIT"
] | null | null | null | brainfuck/test.cpp | DenisOstashov/cpp-advanced-hse | 6e4317763c0a9c510d639ae1e5793a8e9549d953 | [
"MIT"
] | null | null | null | brainfuck/test.cpp | DenisOstashov/cpp-advanced-hse | 6e4317763c0a9c510d639ae1e5793a8e9549d953 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <limits>
#include "brainfuck.h"
TEST_CASE("Consume") {
REQUIRE(std::is_same_v<Consume<Tape<0, 0, 'a'>>, decltype(std::pair<Char<0>, Tape<0, 'a'>>{})>);
REQUIRE(std::is_same_v<Consume<Tape<0, 'a'>>, decltype(std::pair<Char<'a'>, Tape<0>>{})>);
REQUIRE(std::is_same_v<Consume<Tap... | 40.55 | 100 | 0.620838 | DenisOstashov |
560df63a041345e0e002b3745ecce37c9cfe24d7 | 3,503 | cpp | C++ | FreeRTOS/cpp11_gcc/thread.cpp | klepsydra-technologies/FreeRTOS_cpp11 | 0676bd7d9667d999c9ba8e377f51771f197359aa | [
"MIT"
] | 66 | 2019-07-23T10:25:36.000Z | 2022-03-24T12:45:03.000Z | FreeRTOS/cpp11_gcc/thread.cpp | klepsydra-technologies/FreeRTOS_cpp11 | 0676bd7d9667d999c9ba8e377f51771f197359aa | [
"MIT"
] | 10 | 2019-10-14T21:25:54.000Z | 2021-03-28T17:39:18.000Z | FreeRTOS/cpp11_gcc/thread.cpp | klepsydra-technologies/FreeRTOS_cpp11 | 0676bd7d9667d999c9ba8e377f51771f197359aa | [
"MIT"
] | 17 | 2019-06-13T03:24:07.000Z | 2022-01-18T00:28:34.000Z | /// Copyright 2021 Piotr Grygorczuk <grygorek@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 use, cop... | 31.845455 | 85 | 0.697688 | klepsydra-technologies |
560f33837d3c3bcaf97b6dc85c652c32a9b3aa39 | 13,402 | cc | C++ | src/libxtp/jobcalculators/iexcitoncl.cc | choudarykvsp/xtp | 9a249fd34615abcf790d5f0ecd3ddf1ed0ac0e7a | [
"Apache-2.0"
] | 1 | 2018-03-05T17:36:53.000Z | 2018-03-05T17:36:53.000Z | src/libxtp/jobcalculators/iexcitoncl.cc | choudarykvsp/xtp | 9a249fd34615abcf790d5f0ecd3ddf1ed0ac0e7a | [
"Apache-2.0"
] | null | null | null | src/libxtp/jobcalculators/iexcitoncl.cc | choudarykvsp/xtp | 9a249fd34615abcf790d5f0ecd3ddf1ed0ac0e7a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2017 The VOTCA Development Team
* (http://www.votca.org)
*
* 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
*
* h... | 32.687805 | 187 | 0.565065 | choudarykvsp |
5610b425a0cc434a6c9d241aecaf7bc4bae58eca | 1,198 | cpp | C++ | 5Graph_accesses_using_BGL.cpp | mohsenuss91/BGL_workshop | 03d2bea291d4c6d67e7ddcd562694a0b7ecc5130 | [
"MIT"
] | 1 | 2015-02-12T18:40:32.000Z | 2015-02-12T18:40:32.000Z | 5Graph_accesses_using_BGL.cpp | mohsenuss91/IBM_BGL | 03d2bea291d4c6d67e7ddcd562694a0b7ecc5130 | [
"MIT"
] | null | null | null | 5Graph_accesses_using_BGL.cpp | mohsenuss91/IBM_BGL | 03d2bea291d4c6d67e7ddcd562694a0b7ecc5130 | [
"MIT"
] | null | null | null | #include <iostream>
#include <boost/graph/adjacency_list.hpp>
using namespace boost;
using namespace std;
typedef property<edge_weight_t, int> EdgeWeightProperty;
typedef property<edge_weight_t, int> EdgeWeightProperty;
typedef boost::adjacency_list < listS, vecS, undirectedS, no_property, EdgeWeightProperty> mygraph;
... | 36.30303 | 99 | 0.600167 | mohsenuss91 |
561102d0305d5e59c254b50186f862a1506e482d | 25,650 | cpp | C++ | pikoc/src/PikoSummary.cpp | piko-dev/piko-public | 8d7ab461de155992ca75e839f406670279fb6bad | [
"BSD-3-Clause"
] | 15 | 2015-05-19T08:23:26.000Z | 2021-11-26T02:59:36.000Z | pikoc/src/PikoSummary.cpp | piko-dev/piko-public | 8d7ab461de155992ca75e839f406670279fb6bad | [
"BSD-3-Clause"
] | null | null | null | pikoc/src/PikoSummary.cpp | piko-dev/piko-public | 8d7ab461de155992ca75e839f406670279fb6bad | [
"BSD-3-Clause"
] | 4 | 2015-10-06T15:14:43.000Z | 2020-02-20T13:17:11.000Z | #include "PikoSummary.hpp"
#include <algorithm>
#include <sstream>
using namespace std;
bool compBranchesFurthest(vector<stageSummary*> a, vector<stageSummary*> b) {
return (a[0]->distFromDrain > b[0]->distFromDrain);
}
bool compBranchesClosest(vector<stageSummary*> a, vector<stageSummary*> b) {
return (a[0]->dis... | 33.928571 | 121 | 0.625497 | piko-dev |
561158798e45c93c237c70d997d7e7d12b1867b0 | 804 | cpp | C++ | demos/tutorial/interval.cpp | tbellotti/samurai | b10fa2115d69eb184609103579ba433ff09891df | [
"BSD-3-Clause"
] | 13 | 2021-01-07T19:23:42.000Z | 2022-01-26T13:07:41.000Z | demos/tutorial/interval.cpp | gouarin/samurai | 7ae877997e8b9bdb85b84acaabb3c0483ff78689 | [
"BSD-3-Clause"
] | 1 | 2021-07-04T17:30:47.000Z | 2021-07-04T17:30:47.000Z | demos/tutorial/interval.cpp | gouarin/samurai | 7ae877997e8b9bdb85b84acaabb3c0483ff78689 | [
"BSD-3-Clause"
] | 2 | 2021-01-07T15:54:49.000Z | 2021-02-24T13:11:42.000Z | // Copyright 2021 SAMURAI TEAM. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <iostream>
#include <samurai/cell_array.hpp>
#include <samurai/cell_list.hpp>
int main()
{
constexpr std::size_t dim = 2;
samurai::CellList<di... | 23.647059 | 53 | 0.614428 | tbellotti |
561c1abb21a95704ddd42ede79cbef5a8d6bb6c3 | 8,368 | cpp | C++ | examples/depthnet/depthnet.cpp | jwkim386/Jetson_Inference | 5aaba1c362b6cfca8475a41c15336dbfe03252fa | [
"MIT"
] | 5,788 | 2016-08-22T09:09:46.000Z | 2022-03-31T17:05:54.000Z | examples/depthnet/depthnet.cpp | jwkim386/Jetson_Inference | 5aaba1c362b6cfca8475a41c15336dbfe03252fa | [
"MIT"
] | 1,339 | 2016-08-15T08:51:10.000Z | 2022-03-31T18:44:20.000Z | examples/depthnet/depthnet.cpp | jwkim386/Jetson_Inference | 5aaba1c362b6cfca8475a41c15336dbfe03252fa | [
"MIT"
] | 2,730 | 2016-08-23T11:04:26.000Z | 2022-03-30T14:06:08.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
*
* 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... | 29.568905 | 163 | 0.672204 | jwkim386 |
562082d638a08a7b526766b534c24e7f8c3bd751 | 2,736 | cpp | C++ | philibs/img/imgfactory.cpp | prwhite/philibs | 3cb65bd0dae105026839a3e88d9cebafb72c2616 | [
"Zlib"
] | 5 | 2015-05-12T14:48:03.000Z | 2021-07-14T13:18:16.000Z | philibs/img/imgfactory.cpp | prwhite/philibs | 3cb65bd0dae105026839a3e88d9cebafb72c2616 | [
"Zlib"
] | null | null | null | philibs/img/imgfactory.cpp | prwhite/philibs | 3cb65bd0dae105026839a3e88d9cebafb72c2616 | [
"Zlib"
] | 1 | 2021-04-18T07:32:43.000Z | 2021-04-18T07:32:43.000Z | /////////////////////////////////////////////////////////////////////
//
// class: factory
//
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
#include "imgfactory.h"
#include "pnisearchpath.h"
#include "imgdds.h"
#include "... | 23.586207 | 96 | 0.580775 | prwhite |
56296f30b6ea852d654ad58454ab112417e7e3f9 | 11,736 | hpp | C++ | include/uzlmath_headers/fn_dwt.hpp | dmlux/UZLMathLib | 7055c798dca6e6dc1ce0233b9ca539994feb4ade | [
"BSD-3-Clause"
] | null | null | null | include/uzlmath_headers/fn_dwt.hpp | dmlux/UZLMathLib | 7055c798dca6e6dc1ce0233b9ca539994feb4ade | [
"BSD-3-Clause"
] | null | null | null | include/uzlmath_headers/fn_dwt.hpp | dmlux/UZLMathLib | 7055c798dca6e6dc1ce0233b9ca539994feb4ade | [
"BSD-3-Clause"
] | null | null | null | //
// fn_dwt.hpp
// UZLMathLib
//
// Created by Denis-Michael Lux on 03.05.15.
//
// This software may be modified and distributed under the terms
// of the BSD license. See the LICENSE file for details.
//
#ifndef UZLMathLib_fn_dwt_hpp
#define UZLMathLib_fn_dwt_hpp
UZLMATH_NAMESPACE(DWT)
/*- For more infor... | 35.349398 | 143 | 0.488156 | dmlux |
562e5c423a39646e8abd87e6da118261201b90e5 | 1,311 | cpp | C++ | CodeSignal/Arcade/Intro/58-messageFromBinaryCode.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 6 | 2018-11-26T02:38:07.000Z | 2021-07-28T00:16:41.000Z | CodeSignal/Arcade/Intro/58-messageFromBinaryCode.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 1 | 2021-05-30T09:25:53.000Z | 2021-06-05T08:33:56.000Z | CodeSignal/Arcade/Intro/58-messageFromBinaryCode.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 4 | 2020-04-16T07:15:01.000Z | 2020-12-04T06:26:07.000Z | /*You are taking part in an Escape Room challenge designed specifically for programmers. In your efforts to find a clue, you've found a binary code written on the wall behind a vase, and realized that it must be an encrypted message. After some thought, your first guess is that each consecutive 8 bits of the code stand... | 35.432432 | 382 | 0.727689 | ravirathee |
562eed95c503484ba4ceb04bff339f3592889390 | 18,094 | cc | C++ | third_party/5pt-6pt-Li-Hartley/polydet.cc | youruncleda/relative_pose | cb613f210a812e03754fbfc9c2e93d1f6fe4a265 | [
"BSD-3-Clause"
] | 21 | 2020-07-08T17:58:17.000Z | 2022-02-28T03:58:37.000Z | matlab/basic_geometry/polydet.cc | leehsiu/SFRM | 2d22a92ea737f0a03b949c7a7801bd56232b5717 | [
"MIT"
] | null | null | null | matlab/basic_geometry/polydet.cc | leehsiu/SFRM | 2d22a92ea737f0a03b949c7a7801bd56232b5717 | [
"MIT"
] | 5 | 2020-07-24T01:26:28.000Z | 2020-10-13T13:32:48.000Z | // Copyright Richard Hartley, 2010
static const char *copyright = "Copyright Richard Hartley, 2010";
//--------------------------------------------------------------------------
// LICENSE INFORMATION
//
// 1. For academic/research users:
//
// This program is free for academic/research purpose: you can redistribut... | 27.751534 | 80 | 0.525036 | youruncleda |
563227327b4aa00b9493a105a2cd7965dee1c65a | 5,115 | cpp | C++ | example/clientlike/main.cpp | clodfront/jingke | ac6da9e73d7c69c7575267d2da52cdf6357e6dc9 | [
"Apache-2.0"
] | 6 | 2019-11-18T01:37:52.000Z | 2021-07-31T14:19:10.000Z | example/clientlike/main.cpp | clodfront/jingke | ac6da9e73d7c69c7575267d2da52cdf6357e6dc9 | [
"Apache-2.0"
] | null | null | null | example/clientlike/main.cpp | clodfront/jingke | ac6da9e73d7c69c7575267d2da52cdf6357e6dc9 | [
"Apache-2.0"
] | 1 | 2019-11-18T01:27:44.000Z | 2019-11-18T01:27:44.000Z | // Project: jingke
// File: main.cpp
// Created: 11/2019
// Author: Goof
//
// Copyright 2019-2020 Goof
//
// 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... | 23.571429 | 114 | 0.681134 | clodfront |
56331442fa99035ab7439b67bc60cb66a33b96c1 | 19,731 | cpp | C++ | src/scripting/backend/dynarrays.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | 2 | 2018-01-18T21:30:20.000Z | 2018-01-19T02:24:46.000Z | src/scripting/backend/dynarrays.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | null | null | null | src/scripting/backend/dynarrays.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | null | null | null | /*
** dynarray.cpp
**
** internal data types for dynamic arrays
**
**---------------------------------------------------------------------------
** Copyright 2016-2017 Christoph Oelckers
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provi... | 22.095185 | 127 | 0.746034 | raa-eruanna |
56340e785d1e0dcecb183c96fc3029c33d72f47b | 753 | cpp | C++ | engine/poker-lib/test-game-generator.cpp | torives/poker-updater-demo | 0a7be9e53ab3bd973296ced0561bbbd1a9dd1493 | [
"Apache-2.0"
] | 12 | 2021-06-30T17:04:00.000Z | 2022-03-11T18:34:51.000Z | engine/poker-lib/test-game-generator.cpp | torives/poker-updater-demo | 0a7be9e53ab3bd973296ced0561bbbd1a9dd1493 | [
"Apache-2.0"
] | 9 | 2021-06-29T06:45:44.000Z | 2022-02-11T23:26:13.000Z | engine/poker-lib/test-game-generator.cpp | torives/poker-updater-demo | 0a7be9e53ab3bd973296ced0561bbbd1a9dd1493 | [
"Apache-2.0"
] | 1 | 2022-01-07T12:03:19.000Z | 2022-01-07T12:03:19.000Z | #include <iostream>
#include <sstream>
#include <memory.h>
#include <inttypes.h>
#include "test-util.h"
#include "poker-lib.h"
#include "game-generator.h"
#define TEST_SUITE_NAME "Test game generator"
using namespace poker;
void the_happy_path() {
std::cout << "---- " TEST_SUITE_NAME << " - the_happy_path" << s... | 25.1 | 78 | 0.671979 | torives |
5638143f1b535d49bc43a8a008499f6dafbb1a29 | 6,861 | cpp | C++ | PolyEngine/CzolgInvaders/Src/InvadersGame.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 1 | 2017-04-30T13:55:54.000Z | 2017-04-30T13:55:54.000Z | PolyEngine/CzolgInvaders/Src/InvadersGame.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | null | null | null | PolyEngine/CzolgInvaders/Src/InvadersGame.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 3 | 2017-11-22T16:37:26.000Z | 2019-04-24T17:47:58.000Z | #include "InvadersGame.hpp"
#include <DeferredTaskSystem.hpp>
#include <CameraComponent.hpp>
#include <TransformComponent.hpp>
#include <MeshRenderingComponent.hpp>
#include <FreeFloatMovementComponent.hpp>
#include <ScreenSpaceTextComponent.hpp>
#include <Core.hpp>
#include <DeferredTaskSystem.hpp>
#include <Viewport... | 54.452381 | 222 | 0.78181 | MuniuDev |
56397e3bac7cb82ef1f1643229888efe6f106eb5 | 2,161 | cpp | C++ | src/Main.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | 5 | 2021-06-09T23:53:28.000Z | 2022-02-21T06:09:41.000Z | src/Main.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | 9 | 2021-06-09T23:52:43.000Z | 2021-09-17T14:05:47.000Z | src/Main.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | null | null | null | #include <thread>
#include <chrono>
#include <windows.h>
#include "ModFramework.hpp"
static HMODULE g_dinput;
static HMODULE g_styleswitcher;
#if 1
extern "C" {
// DirectInput8Create wrapper for dinput8.dll
__declspec(dllexport) HRESULT WINAPI direct_input8_create(HINSTANCE hinst, DWORD dw_version, const IID& riid... | 30.871429 | 154 | 0.73577 | muhopensores |
5639c61e5f2394e34ff497af6f77389582a24b91 | 7,331 | hpp | C++ | include/r2p/Topic.hpp | r2p/Middleware | 6438bdef16671482ecc1330679fa56439f916c61 | [
"BSD-2-Clause"
] | 1 | 2020-11-26T04:21:41.000Z | 2020-11-26T04:21:41.000Z | include/r2p/Topic.hpp | r2p/Middleware | 6438bdef16671482ecc1330679fa56439f916c61 | [
"BSD-2-Clause"
] | null | null | null | include/r2p/Topic.hpp | r2p/Middleware | 6438bdef16671482ecc1330679fa56439f916c61 | [
"BSD-2-Clause"
] | 1 | 2020-11-26T04:21:47.000Z | 2020-11-26T04:21:47.000Z | #pragma once
#include <r2p/common.hpp>
#include <r2p/NamingTraits.hpp>
#include <r2p/impl/MemoryPool_.hpp>
#include <r2p/StaticList.hpp>
#include <r2p/Time.hpp>
namespace r2p {
#if !defined(R2P_DEFAULT_FORWARDING) || defined(__DOXYGEN__)
#define R2P_DEFAULT_FORWARDING_RULE R2P_USE_BRIDGE_MODE
#endif
class Mess... | 19.343008 | 80 | 0.740554 | r2p |
563b9ce01f55c133a5e2a6ec6e24aa31d8bb83ce | 6,932 | cpp | C++ | Source/DirectConnectionLibLink.cpp | NewBlueFX/DirectConnect | 49482c8555695eee77eff0317d2d5689cea33ba7 | [
"MIT"
] | null | null | null | Source/DirectConnectionLibLink.cpp | NewBlueFX/DirectConnect | 49482c8555695eee77eff0317d2d5689cea33ba7 | [
"MIT"
] | null | null | null | Source/DirectConnectionLibLink.cpp | NewBlueFX/DirectConnect | 49482c8555695eee77eff0317d2d5689cea33ba7 | [
"MIT"
] | null | null | null | // DirectConnectionLibLink.cpp
/*
MIT License
Copyright (c) 2016,2018 NewBlue, Inc. <https://github.com/NewBlueFX>
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, i... | 29.12605 | 112 | 0.723168 | NewBlueFX |
56414bebcab6e456a5fc0e6049e856756ce9648d | 1,566 | hpp | C++ | src/Engine/Physics/Obb.hpp | DaftMat/Draft-Engine | 395b22c454a4c198824b158dbe8778babb4e11c6 | [
"MIT"
] | null | null | null | src/Engine/Physics/Obb.hpp | DaftMat/Draft-Engine | 395b22c454a4c198824b158dbe8778babb4e11c6 | [
"MIT"
] | null | null | null | src/Engine/Physics/Obb.hpp | DaftMat/Draft-Engine | 395b22c454a4c198824b158dbe8778babb4e11c6 | [
"MIT"
] | null | null | null | //
// Created by mathis on 28/02/2020.
//
#ifndef DAFT_ENGINE_OBB_HPP
#define DAFT_ENGINE_OBB_HPP
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <opengl_stuff.h>
#include <Utils/types.hpp>
#include <src/Utils/adapters.hpp>
/**
* Oriented Bounding Box.
* A Bounding Box that rotate with the affiliated obj... | 22.056338 | 71 | 0.599617 | DaftMat |
56417ce9c512e29badff2616b97c9e0dfcc42a62 | 41,912 | hh | C++ | schemelib/scheme/objective/hash/XformHash.hh | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 25 | 2019-07-23T01:03:48.000Z | 2022-03-31T04:16:08.000Z | schemelib/scheme/objective/hash/XformHash.hh | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 13 | 2018-01-30T17:45:57.000Z | 2022-03-28T11:02:44.000Z | schemelib/scheme/objective/hash/XformHash.hh | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 14 | 2018-02-08T01:42:28.000Z | 2022-03-31T12:56:17.000Z | #ifndef INCLUDED_objective_hash_XformHash_HH
#define INCLUDED_objective_hash_XformHash_HH
#include "scheme/util/SimpleArray.hh"
#include "scheme/util/dilated_int.hh"
#include "scheme/nest/pmap/TetracontoctachoronMap.hh"
#include "scheme/numeric/util.hh"
#include "scheme/numeric/bcc_lattice.hh"
#include <boost/utility... | 37.45487 | 144 | 0.605292 | YaoYinYing |
5645417f6bc160fb11a7e02a0bfee4454aa1d402 | 19,920 | cc | C++ | src/rocksdb2/table/plain_table_reader.cc | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 5 | 2019-01-23T04:36:03.000Z | 2020-02-04T07:10:39.000Z | src/rocksdb2/table/plain_table_reader.cc | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | null | null | null | src/rocksdb2/table/plain_table_reader.cc | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 2 | 2019-05-14T07:26:59.000Z | 2020-06-15T07:25:01.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2011 LevelDB作者。版权所有。
//此源代码的使用受可以
//在许可证文件中找到。有关参与者的名称,请参阅作者文件。
#ifndef ROCKSDB_LITE
#include "table/plain_tabl... | 26.314399 | 129 | 0.642771 | yinchengtsinghua |
5646e0f01432b486fe168c43c2d60c41ed629dc8 | 178 | cpp | C++ | 4.11.cpp | tompotter0/- | 9e1ff2b035eb8769637762d3007e09bbd3fb7250 | [
"MIT"
] | null | null | null | 4.11.cpp | tompotter0/- | 9e1ff2b035eb8769637762d3007e09bbd3fb7250 | [
"MIT"
] | null | null | null | 4.11.cpp | tompotter0/- | 9e1ff2b035eb8769637762d3007e09bbd3fb7250 | [
"MIT"
] | null | null | null | #include<iostream>
int f(int x){
if (x == 1)return 1;
return x*x + f(x - 1);
}
int main(){
int a;
std::cin >> a;
std::cout << f(a) << std::endl;
return 0;
}
| 12.714286 | 33 | 0.483146 | tompotter0 |
564791367909c9a668d1623fb4a078e6d96d4f3f | 64,079 | cxx | C++ | osprey/common/targ_info/generate/si_gen.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/targ_info/generate/si_gen.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/targ_info/generate/si_gen.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2010 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
* Copyright (C) 2007 PathScale, LLC. All Rights Reserved.
*/
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This progra... | 30.881446 | 87 | 0.624932 | sharugupta |
871cda5ce2cc19e20b167f28215c3f7c9c6b4a99 | 1,528 | cpp | C++ | Past Papers/2020 Assignment 01/THUSHARA/Train/Sol-2-Train - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 19 | 2021-04-28T13:32:15.000Z | 2022-03-08T11:52:59.000Z | Past Papers/2020 Assignment 01/THUSHARA/Train/Sol-2-Train - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 5 | 2021-03-03T08:06:15.000Z | 2021-12-26T18:14:45.000Z | Past Papers/2020 Assignment 01/THUSHARA/Train/Sol-2-Train - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 27 | 2021-01-18T22:35:01.000Z | 2022-02-22T19:52:19.000Z | // Using Char Arrays
#include<iostream>
#include<cstring>
using namespace std;
// You can put this code segment in Train.h file -----
class Train {
private:
int trainID;
int capacity;
char startTime[15];
char destination[10];
public:
void setTrainDetails(int tID, int c... | 25.466667 | 70 | 0.554319 | GIHAA |
871eb51ace4e94c3b6a2fa16d62c3e0e2464b1b0 | 2,105 | cc | C++ | src/network/connection_manager.cc | fon/flexran-rtc | 27a955a0494597c6fd175f6b4d31b9eaac2b8dfd | [
"MIT"
] | 1 | 2019-11-05T16:22:11.000Z | 2019-11-05T16:22:11.000Z | src/network/connection_manager.cc | fon/flexran-rtc | 27a955a0494597c6fd175f6b4d31b9eaac2b8dfd | [
"MIT"
] | null | null | null | src/network/connection_manager.cc | fon/flexran-rtc | 27a955a0494597c6fd175f6b4d31b9eaac2b8dfd | [
"MIT"
] | 3 | 2019-05-02T05:14:36.000Z | 2021-06-15T12:40:52.000Z | /* The MIT License (MIT)
Copyright (c) 2016 Xenofon Foukas
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... | 36.929825 | 100 | 0.737292 | fon |
87227fe73c6eefada6b3f33ace19caa52b1edbdb | 3,478 | cpp | C++ | scripts/urdf_scenes.cpp | psh117/motion_bench_maker | 11ec8378a50595b27151da878517ada6642f10b5 | [
"BSD-3-Clause"
] | 19 | 2021-12-13T14:48:29.000Z | 2022-03-11T03:24:17.000Z | scripts/urdf_scenes.cpp | psh117/motion_bench_maker | 11ec8378a50595b27151da878517ada6642f10b5 | [
"BSD-3-Clause"
] | 1 | 2022-02-15T20:05:04.000Z | 2022-02-15T20:05:04.000Z | scripts/urdf_scenes.cpp | psh117/motion_bench_maker | 11ec8378a50595b27151da878517ada6642f10b5 | [
"BSD-3-Clause"
] | 1 | 2021-12-29T10:54:49.000Z | 2021-12-29T10:54:49.000Z | /*Constantinos Chamzas */
#include <motion_bench_maker/parser.h>
// Robowflex library
#include <robowflex_library/util.h>
#include <robowflex_library/yaml.h>
#include <robowflex_library/io/visualization.h>
#include <robowflex_library/io.h>
#include <robowflex_library/scene.h>
#include <robowflex_library/trajectory.h>... | 37.804348 | 96 | 0.63226 | psh117 |
873ff515bbef697598acb4f7c9defed11472eb93 | 273 | cpp | C++ | Some_cpp_sols/A1467.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | Some_cpp_sols/A1467.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | Some_cpp_sols/A1467.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int t,n,counter;cin>>t;while(t--){cin>>n;counter=0;for(int i=0;i<n;i++){if(i == 2 || i == 0){cout<<9;}if(i == 1){cout<<8;}if(i > 2){cout<<counter;counter = counter == 9 ? 0: counter + 1;}}cout<<"\n";}
return 0;
} | 45.5 | 204 | 0.567766 | Darknez07 |
8740058b7482430fa785a8635f2de62be14297d1 | 360 | cc | C++ | example/main.cc | baotiao/picdb | ca3d92f721796abb0620fdc7045465dd54ac6037 | [
"MIT"
] | 1 | 2016-09-13T09:18:06.000Z | 2016-09-13T09:18:06.000Z | example/main.cc | baotiao/picdb | ca3d92f721796abb0620fdc7045465dd54ac6037 | [
"MIT"
] | null | null | null | example/main.cc | baotiao/picdb | ca3d92f721796abb0620fdc7045465dd54ac6037 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <unistd.h>
#include <linux/falloc.h>
#include <fcntl.h>
#include "xdebug.h"
#include "include/db.h"
#include "output/include/options.h"
int main()
{
bitcask::Options op;
bitcask::DB *db;
db = NULL;
bitcask::DB::Open(op, "./db", &db);
// bitcask::WriteOptions wop;
// db->P... | 13.846154 | 37 | 0.613889 | baotiao |
87403295a119177bfdc6a356c9e15263d14c8b57 | 919 | cpp | C++ | image.ContourDetector/src/contour_detector.cpp | LALMAN2000/bnosa | d37e869c724736133b0ac1513a366817bb2dc5c1 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 243 | 2017-02-28T08:52:35.000Z | 2022-03-10T16:54:48.000Z | image.ContourDetector/src/contour_detector.cpp | LALMAN2000/bnosa | d37e869c724736133b0ac1513a366817bb2dc5c1 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 25 | 2017-07-07T20:39:47.000Z | 2022-03-15T11:38:14.000Z | image.ContourDetector/src/contour_detector.cpp | LALMAN2000/bnosa | d37e869c724736133b0ac1513a366817bb2dc5c1 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 59 | 2017-04-05T15:39:19.000Z | 2021-11-08T13:49:08.000Z | #include <Rcpp.h>
using namespace Rcpp;
extern "C" {
#include "smooth_contours.h"
}
// [[Rcpp::export]]
List detect_contours(NumericVector image, int X, int Y, double Q = 2.0)
{
double * x; /* x[n] y[n] coordinates of result contour point n */
double * y;
int * curve_limits; /* limits of the curves in... | 27.848485 | 76 | 0.594124 | LALMAN2000 |
874325ee04d2502492e247783c225fcbc6a4403e | 3,369 | hpp | C++ | gears/meta/core.hpp | Rapptz/Gears | ce65bf135057939c19710286f772a874504efeb4 | [
"MIT"
] | 16 | 2015-01-18T13:40:22.000Z | 2021-11-08T11:52:35.000Z | gears/meta/core.hpp | Rapptz/Gears | ce65bf135057939c19710286f772a874504efeb4 | [
"MIT"
] | 3 | 2015-01-17T01:23:26.000Z | 2015-03-30T22:30:01.000Z | gears/meta/core.hpp | Rapptz/Gears | ce65bf135057939c19710286f772a874504efeb4 | [
"MIT"
] | 3 | 2017-10-21T05:42:58.000Z | 2021-06-07T18:04:40.000Z | // The MIT License (MIT)
// Copyright (c) 2012-2014 Danny Y., Rapptz
// 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... | 26.320313 | 122 | 0.721282 | Rapptz |
8747ea64e5078cadc82e49c525d94acc7a012438 | 12,264 | hpp | C++ | include/VROSC/GarbageManager.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/GarbageManager.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/GarbageManager.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... | 51.746835 | 184 | 0.740868 | RedBrumbler |
874995fe98ffeae177797375b13cf239a4796968 | 3,339 | cpp | C++ | src/agent/Shared/Fundamentals/Utils.cpp | m5o/passenger | 9640816af708867d0994bd2eddb80ac24399f855 | [
"MIT"
] | 2,728 | 2015-01-01T10:06:45.000Z | 2022-03-30T18:12:58.000Z | src/agent/Shared/Fundamentals/Utils.cpp | philson-philip/passenger | 144a6f39722987921c7fce0be9d64befb125a88b | [
"MIT"
] | 1,192 | 2015-01-01T06:03:19.000Z | 2022-03-31T09:14:36.000Z | src/agent/Shared/Fundamentals/Utils.cpp | philson-philip/passenger | 144a6f39722987921c7fce0be9d64befb125a88b | [
"MIT"
] | 334 | 2015-01-08T20:47:03.000Z | 2022-02-18T07:07:01.000Z | /*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2010-2017 Phusion Holding B.V.
*
* "Passenger", "Phusion Passenger" and "Union Station" are registered
* trademarks of Phusion Holding B.V.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... | 26.085938 | 81 | 0.685235 | m5o |
874af4cb08261e47f30739b862bc3d57b47678b2 | 533 | cpp | C++ | 0039-Recover Rotated Sorted Array/0039-Recover Rotated Sorted Array.cpp | nmdis1999/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0001-0100/0039-Recover Rotated Sorted Array/0039-Recover Rotated Sorted Array.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0001-0100/0039-Recover Rotated Sorted Array/0039-Recover Rotated Sorted Array.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
void recoverRotatedSortedArray(vector<int> &nums) {
// write your code here
if (nums.size() == 0)
{
return;
}
for (int i = 0; i < nums.size() - 1; ++i)
{
if (nums[i] > nums[i + 1])
{
... | 24.227273 | 60 | 0.390244 | nmdis1999 |
87509160f6dcfb7d192723537785b4342edce344 | 781 | cpp | C++ | src/Core/Grammar/LoopBreaker.cpp | johnzeng/SimpleCompletor | e54b57242b7e624fea2d240bc50733ab6be72f6d | [
"MIT"
] | 1 | 2016-06-10T05:30:32.000Z | 2016-06-10T05:30:32.000Z | src/Core/Grammar/LoopBreaker.cpp | johnzeng/SimpleCompletor | e54b57242b7e624fea2d240bc50733ab6be72f6d | [
"MIT"
] | 1 | 2016-07-19T02:36:39.000Z | 2016-08-12T02:11:51.000Z | src/Core/Grammar/LoopBreaker.cpp | johnzeng/CppParser | e54b57242b7e624fea2d240bc50733ab6be72f6d | [
"MIT"
] | null | null | null | #include "LoopBreaker.h"
#include "StringUtil.h"
LoopBreaker::LoopBreaker(){}
LoopBreaker::~LoopBreaker(){}
bool LoopBreaker::insert(const string& file, int line, int index)
{
if (false == check(file, line, index))
{
return false;
}
mLoopMark[getKey(file, line, index)] = 1;
return true;
}
bool LoopBre... | 21.108108 | 79 | 0.664533 | johnzeng |
87546f6abfb80b325f8a6b2457886b86016c83a8 | 918 | cpp | C++ | aws-cpp-sdk-wellarchitected/source/model/UpgradeLensReviewRequest.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-wellarchitected/source/model/UpgradeLensReviewRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-wellarchitected/source/model/UpgradeLensReviewRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/wellarchitected/model/UpgradeLensReviewRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WellArchitected::Model;
using namespace Aws::U... | 20.4 | 69 | 0.761438 | perfectrecall |
8759450edf0914156ea45d95387556e618c96a60 | 5,320 | hpp | C++ | src/musicpp/Enums.hpp | Cannedfood/musicpp | e2ba4337f7a434533ad15a2b4ce3c2d2a767c4ee | [
"Zlib"
] | null | null | null | src/musicpp/Enums.hpp | Cannedfood/musicpp | e2ba4337f7a434533ad15a2b4ce3c2d2a767c4ee | [
"Zlib"
] | null | null | null | src/musicpp/Enums.hpp | Cannedfood/musicpp | e2ba4337f7a434533ad15a2b4ce3c2d2a767c4ee | [
"Zlib"
] | null | null | null | // Copyright 2018 Benno Straub, Licensed under the MIT License, a copy can be found at the bottom of this file.
#pragma once
#include <string_view>
#include <array>
#include <stdexcept>
namespace music {
enum Accidental : int8_t {
FLAT = -1,
NATURAL = 0,
SHARP = 1,
};
enum Chroma : int8_t {
C = 0,
Cs = 1... | 29.72067 | 134 | 0.641729 | Cannedfood |
87598f7bc09dea23ca6541153d611f55b7056819 | 1,209 | hpp | C++ | Questless/Questless/src/entities/beings/world_view.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | 2 | 2020-07-14T12:50:06.000Z | 2020-11-04T02:25:09.000Z | Questless/Questless/src/entities/beings/world_view.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | Questless/Questless/src/entities/beings/world_view.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | //! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#pragma once
#include "entities/perception.hpp"
#include "world/coordinates.hpp"
#include "world/section.hpp"
#include <array>
#include <optional>
#include <variant>
#include <vector>
namespace ql {
struct being;
//! Represents everything an age... | 23.705882 | 101 | 0.71464 | jonathansharman |
87643dc47b33eb0417bee94f127e4e45c81716ff | 417 | hpp | C++ | library/ATF/_force_result_other_zocl.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_force_result_other_zocl.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_force_result_other_zocl.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 <_CHRID.hpp>
START_ATF_NAMESPACE
struct _force_result_other_zocl
{
char byRetCode;
char byForceIndex;
char byForceLv;
_... | 21.947368 | 108 | 0.688249 | lemkova |
8766ad7e467125ea0d05c0ec58631a7ebe879e6c | 10,339 | hpp | C++ | timer/timer.hpp | Spilleren/mega2560-hal | 6531602e77cc94bb225e9df829e2f6d356ad00cf | [
"MIT"
] | null | null | null | timer/timer.hpp | Spilleren/mega2560-hal | 6531602e77cc94bb225e9df829e2f6d356ad00cf | [
"MIT"
] | null | null | null | timer/timer.hpp | Spilleren/mega2560-hal | 6531602e77cc94bb225e9df829e2f6d356ad00cf | [
"MIT"
] | null | null | null | #pragma once
#include "interface_timer.hpp"
#include "timer_configs.hpp"
#include <stdint.h>
namespace MEGA2560
{
namespace Timer
{
template <typename config>
class Device : public InterfaceTimer
{
public:
static Device &instance()
{
static Device instance;
... | 29.042135 | 85 | 0.448303 | Spilleren |
876a03d24d6cbaca07ec59f4252627356f92f8fb | 2,857 | cpp | C++ | suffix_array_long.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | 2 | 2018-10-30T08:13:30.000Z | 2019-03-05T22:49:40.000Z | suffix_array_long.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | null | null | null | suffix_array_long.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <cassert>
using namespace std;
#define ALPHABET_SIZE 5
static void print_vec(const char *s, const vector<int> &vec)
{
cout << s << ": ";
for (size_t i = 0; i < vec.size(); i++) {
cout << vec[i] << " ";
}
co... | 17.745342 | 109 | 0.583479 | agaitanis |
87722f657ad29345370fa872900120f6f91564da | 312 | hpp | C++ | include/internal/utils.hpp | hrlou/nhentai | 83440bd2b61c00d893941349bd7d571cc10cbec1 | [
"BSD-3-Clause"
] | 2 | 2020-10-11T15:27:12.000Z | 2020-10-14T19:28:09.000Z | include/internal/utils.hpp | hrlou/nhentai_c | 83440bd2b61c00d893941349bd7d571cc10cbec1 | [
"BSD-3-Clause"
] | null | null | null | include/internal/utils.hpp | hrlou/nhentai_c | 83440bd2b61c00d893941349bd7d571cc10cbec1 | [
"BSD-3-Clause"
] | 1 | 2021-05-29T07:51:02.000Z | 2021-05-29T07:51:02.000Z | #pragma once
#include <string>
namespace utils {
bool is_dir(const std::string& path);
bool exist_test(const std::string& name);
std::string dirname(const std::string& path);
std::string read_file(const std::string& name);
bool do_mkdir(const std::string& path);
bool mkpath(std::string path);
} | 22.285714 | 48 | 0.705128 | hrlou |
877583617168c2cda0f2f512daa22c2ed8b9bcc6 | 129 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:b7a689390058519b2e382a8fd260640bad650f9d9b17ef70106d4d3dd50bf16f
size 1082
| 32.25 | 75 | 0.883721 | initialz |
877923bbe74e410e909c125a899c18d641a3e150 | 8,094 | cpp | C++ | usr/ringbuffer.cpp | Itamare4/ROS_stm32f1_rosserial_USB_VCP | 5fac421fa991db1ffe6fa469b93c0fb9d4ae2b87 | [
"BSD-3-Clause"
] | 14 | 2018-12-06T04:04:16.000Z | 2022-03-01T17:45:04.000Z | usr/ringbuffer.cpp | Itamare4/ROS_stm32f1_rosserial_USB_VCP | 5fac421fa991db1ffe6fa469b93c0fb9d4ae2b87 | [
"BSD-3-Clause"
] | null | null | null | usr/ringbuffer.cpp | Itamare4/ROS_stm32f1_rosserial_USB_VCP | 5fac421fa991db1ffe6fa469b93c0fb9d4ae2b87 | [
"BSD-3-Clause"
] | 7 | 2018-10-09T12:17:01.000Z | 2021-09-14T02:43:13.000Z | /*
* File : ringbuffer.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2012, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 ... | 25.695238 | 89 | 0.618112 | Itamare4 |
877969918d674c75ff14ee8e0bd12f2473d65237 | 1,643 | cpp | C++ | src/MemeGraphics/IndexBuffer.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | src/MemeGraphics/IndexBuffer.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | src/MemeGraphics/IndexBuffer.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | #include <MemeGraphics/IndexBuffer.hpp>
#include <MemeGraphics/OpenGL.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * */
IndexBuffer::IndexBuffer()
: IHandle (NULL)
, m_data (NULL)
, m_count (NULL)
, m_usage (GL::StaticDraw)
, m_type (GL::UnsignedInt)
{
}
IndexBuffer::IndexBuffer(const In... | 18.670455 | 89 | 0.567864 | Gurman8r |
877db499e700e6495e5846c988e73903eaced9cd | 305 | cpp | C++ | lab4/src/countnegatives.cpp | Sinduja-S/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | 2 | 2020-04-17T05:26:11.000Z | 2020-05-09T12:27:07.000Z | lab4/src/countnegatives.cpp | sindu-sss/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | null | null | null | lab4/src/countnegatives.cpp | sindu-sss/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | 3 | 2020-04-02T12:50:10.000Z | 2021-03-27T05:01:22.000Z | #include <iostream>
using namespace std;
int countneg(int *a,int s,int e){
if(e==s){
if(a[e]<0)
return(1);
return(0);
}
else{
int z1,z2;
cout<<e;
cout<<s<<endl;
z1=countneg(a,s,(e+s)/2);
z2=countneg(a,(s+e)/2+1,e);
return(z1+z2);
}
} | 14.52381 | 33 | 0.472131 | Sinduja-S |
877fec58ed7c13622c1759d9146899aa20460ea9 | 427 | cpp | C++ | CodeBlocks1908/share/CodeBlocks/templates/wizard/fltk/files/main.cpp | BenjaminRenz/FirmwareTY71M | 55cff63f23c8d844341f4dbf58ce145f073567f6 | [
"MIT"
] | 9 | 2019-02-04T02:13:38.000Z | 2021-06-24T20:31:49.000Z | CodeBlocks1908/share/CodeBlocks/templates/wizard/fltk/files/main.cpp | userx14/FirmwareTY71M | 55cff63f23c8d844341f4dbf58ce145f073567f6 | [
"MIT"
] | null | null | null | CodeBlocks1908/share/CodeBlocks/templates/wizard/fltk/files/main.cpp | userx14/FirmwareTY71M | 55cff63f23c8d844341f4dbf58ce145f073567f6 | [
"MIT"
] | 1 | 2021-06-24T20:31:53.000Z | 2021-06-24T20:31:53.000Z | #include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
int main (int argc, char ** argv)
{
Fl_Window *window;
Fl_Box *box;
window = new Fl_Window (300, 180);
box = new Fl_Box (20, 40, 260, 100, "Hello World!");
box->box (FL_UP_BOX);
box->labelsize (36);
box->labelfont (FL_BOLD+FL_ITALIC);
... | 19.409091 | 54 | 0.63466 | BenjaminRenz |
87836940c2798edb41ccb43175c5019e177b54b6 | 349 | cpp | C++ | src/KEngine/src/Common/Color.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2019-04-09T13:03:11.000Z | 2021-01-27T04:58:29.000Z | src/KEngine/src/Common/Color.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 2 | 2017-02-06T03:48:45.000Z | 2020-08-31T01:30:10.000Z | src/KEngine/src/Common/Color.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2020-06-28T08:19:53.000Z | 2020-06-28T16:30:19.000Z | #include "KEngine/Common/Color.hpp"
namespace ke
{
const Color Color::WHITE { 255, 255, 255, 255};
const Color Color::BLACK { 0, 0, 0, 255 };
const Color Color::RED { 255, 0, 0, 255 };
const Color Color::GREEN { 0, 255, 0, 255 };
const Color Color::BLUE { 0, 0, 255, 255 };
const Color Color::T... | 26.846154 | 51 | 0.595989 | yxbh |
878db0266024ff8c6088177de583c77696c6ef60 | 2,482 | cpp | C++ | CtCI/Chapter1/1.3.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | 2 | 2021-12-29T14:42:51.000Z | 2021-12-29T14:46:45.000Z | CtCI/Chapter1/1.3.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | null | null | null | CtCI/Chapter1/1.3.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
string removeDuplicate1(string s)
{
int check = 0;
int len = s.length();
if(len < 2) return s;
string str = "";
for(int i=0; i<len; ++i)
{
int v = (int)(s[i]-'a');
if((check & (1<<v)) == 0)
{
str += ... | 21.033898 | 64 | 0.43755 | wqw547243068 |
878ff952ba31c6ca43afaed0936051ecd81610c8 | 2,388 | hpp | C++ | src/models/Mesh.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | 1 | 2016-05-05T10:20:45.000Z | 2016-05-05T10:20:45.000Z | src/models/Mesh.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | null | null | null | src/models/Mesh.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | null | null | null | #ifndef MESH
#define MESH
#include "Model.hpp"
#include "Triangle.hpp"
#include "../common.hpp"
class Mesh : public Model {
private:
vector<Triangle> __tris;
vector<vec3> __vertices;
vector<vec3> __model_verticles;
vector<vec2> __uvs;
public:
Mesh(const char *file_name, const Material &material):
Model(materi... | 28.428571 | 224 | 0.643216 | sophia-x |
87926192a988cd4db786867eb9a8df26601c7619 | 16,021 | cc | C++ | src/model/mem_sampler.cc | delorean-sim/gem5 | 0c02c1d7efb781680eb5817730440832af3d5587 | [
"BSD-3-Clause"
] | null | null | null | src/model/mem_sampler.cc | delorean-sim/gem5 | 0c02c1d7efb781680eb5817730440832af3d5587 | [
"BSD-3-Clause"
] | null | null | null | src/model/mem_sampler.cc | delorean-sim/gem5 | 0c02c1d7efb781680eb5817730440832af3d5587 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012-2019 Nikos Nikoleris
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of... | 32.629328 | 78 | 0.628051 | delorean-sim |
87947efc4974a50c8e689fb07952009ffe8ef12f | 1,925 | cpp | C++ | foo_cover_resizer/ContextMenuUtils.cpp | marc2k3/fb2k-component | 1dcdfd489eefc3a392d2ff4d0fb5133aa6636e73 | [
"MIT"
] | 7 | 2021-10-05T02:13:08.000Z | 2022-03-29T15:17:37.000Z | foo_cover_resizer/ContextMenuUtils.cpp | marc2k3/fb2k-component | 1dcdfd489eefc3a392d2ff4d0fb5133aa6636e73 | [
"MIT"
] | 2 | 2022-03-11T04:49:10.000Z | 2022-03-17T00:13:04.000Z | foo_cover_resizer/ContextMenuUtils.cpp | marc2k3/fb2k-component | 1dcdfd489eefc3a392d2ff4d0fb5133aa6636e73 | [
"MIT"
] | null | null | null | #include "stdafx.h"
using namespace resizer;
static const std::vector<ContextItem> context_items =
{
{ &guid_context_command_convert, "Convert front covers to JPG without resizng" },
{ &guid_context_command_remove_all_except_front, "Remove all except front" },
};
class ContextMenuUtils : public contextmenu_item_si... | 28.308824 | 192 | 0.753766 | marc2k3 |
8797e5ee50a22e5af0a19ef86a3311b1661a95b3 | 3,173 | cpp | C++ | modules/trivia/cmd_achievements.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 23 | 2020-06-28T18:07:03.000Z | 2022-03-02T20:12:47.000Z | modules/trivia/cmd_achievements.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 4 | 2020-10-08T13:37:39.000Z | 2022-03-26T22:41:19.000Z | modules/trivia/cmd_achievements.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 13 | 2020-10-08T13:32:02.000Z | 2021-12-02T00:00:28.000Z | /************************************************************************************
*
* TriviaBot, The trivia bot for discord based on Fruitloopy Trivia for ChatSpike IRC
*
* Copyright 2004 Craig Edwards <support@brainbox.cc>
*
* Core based on Sporks, the Learning Discord Bot, Craig Edwards (c) 2019.
*
* Lic... | 40.679487 | 250 | 0.670974 | brainboxdotcc |
879a470fc5bf0aebafbd40975363b09fa0725bd3 | 479 | cpp | C++ | src/A/A6B84.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/A/A6B84.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/A/A6B84.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long
#define ld long double
using namespace std;
bool prime(int n){
int m=sqrt(n);
for(int i=2;i<=m;i++){
if(n%i==0) return false;
}
return true;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
ll n,q=1;
while(cin>>n){
if(n==0) return 0;
else{
if(n<=3) ;
... | 15.451613 | 35 | 0.542797 | wlhcode |
879bb074afd41eb3c778443b83ee7f18ddd99b5b | 770 | cc | C++ | apose.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | apose.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | apose.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #include "imgutils.hh"
#include "strutils.hh"
#include "partrait.hh"
#include "parson.hh"
#include "catalog.hh"
#include "autoposer.hh"
using namespace makemore;
using namespace std;
int main(int argc, char **argv) {
assert(argc > 0);
Catalog cat(argv[1]);
Autoposer ap("fineposer.proj");
for (auto fn : cat.f... | 19.25 | 41 | 0.619481 | jdb19937 |
879cf099e1424416d9da9c5c94647ab57d86a769 | 5,575 | cpp | C++ | runtime/tests/test_message_priority.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | 1 | 2021-09-03T10:22:04.000Z | 2021-09-03T10:22:04.000Z | runtime/tests/test_message_priority.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | runtime/tests/test_message_priority.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | #include <config.h>
#include <boost/config.hpp>
#include "am++/am++.hpp"
#include <iostream>
#include <pthread.h>
#include <boost/thread.hpp>
#include <boost/thread/barrier.hpp>
#include <boost/bind.hpp>
#define TRANSPORT_HEADER <am++/BOOST_JOIN(TRANSPORT, _transport).hpp>
#include TRANSPORT_HEADER
#include <time.h>
#... | 28.589744 | 142 | 0.686816 | thejkane |
87a65939b208840ff4e2d1558aa4447830597e51 | 1,528 | cpp | C++ | codeforces/4d.mysterious-present/4d.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | 3 | 2018-01-19T14:09:23.000Z | 2018-02-01T00:40:55.000Z | codeforces/4d.mysterious-present/4d.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | codeforces/4d.mysterious-present/4d.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#define X first
#define Y second
using namespace std;
const int MAX_N = 5e3 + 123;
typedef pair <int, int> point;
typedef pair <point, int> tp;
vector <tp> vec;
point dp[MAX_N];
vector <int> result;
bool CMP(tp a, tp b)
{
if ((long long) a.X.X * (long lon... | 22.144928 | 150 | 0.521597 | KayvanMazaheri |
87ab3ef53b136b43f93bdec284d6f777eb097868 | 1,546 | cpp | C++ | cpp/codeforces/educational/educational_108/C.cpp | nirvanarsc/CompetitiveProgramming | 218ae447bbf7455e4953e05220418b7c32ee6b0e | [
"MIT"
] | 2 | 2021-06-02T16:11:46.000Z | 2021-12-23T20:37:02.000Z | cpp/codeforces/educational/educational_108/C.cpp | nirvanarsc/CompetitiveProgramming | 218ae447bbf7455e4953e05220418b7c32ee6b0e | [
"MIT"
] | null | null | null | cpp/codeforces/educational/educational_108/C.cpp | nirvanarsc/CompetitiveProgramming | 218ae447bbf7455e4953e05220418b7c32ee6b0e | [
"MIT"
] | 1 | 2021-05-14T14:19:14.000Z | 2021-05-14T14:19:14.000Z | #include <bits/stdc++.h>
#define fast_io \
ios::sync_with_stdio(false); \
cin.tie(nullptr);
using ll = long long;
using namespace std;
signed main() {
fast_io;
int t;
cin >> t;
for (int test = 0; test < t; test++) {
int n;
cin >> n;
int u[n];
int s[n];
vector<vector<int>>... | 25.766667 | 70 | 0.42238 | nirvanarsc |
87b00527361099dbefaf8c7d6af3ef6c27afb5ca | 289 | cpp | C++ | src/PontoPartida.cpp | leohmcs/AVANTStation | f1f635b2f4ec9ffcb010660f4b5c91eb9d5fa190 | [
"Apache-2.0"
] | null | null | null | src/PontoPartida.cpp | leohmcs/AVANTStation | f1f635b2f4ec9ffcb010660f4b5c91eb9d5fa190 | [
"Apache-2.0"
] | null | null | null | src/PontoPartida.cpp | leohmcs/AVANTStation | f1f635b2f4ec9ffcb010660f4b5c91eb9d5fa190 | [
"Apache-2.0"
] | 1 | 2020-12-10T03:39:05.000Z | 2020-12-10T03:39:05.000Z | #include "PontoPartida.h"
PontoPartida::PontoPartida()
{
}
PontoPartida::PontoPartida(double lat, double lon)
{
setInitialPoint(Point(lat, lon, 0));
}
void PontoPartida::setApproxPoint(double lat, double lon, double h)
{
setApproxPoint(Point(lat, lon, h));
}
| 13.761905 | 68 | 0.67128 | leohmcs |
87bd38ac62a9ade0f356e5a2bd38846420462e42 | 3,524 | cpp | C++ | getnum/widget.cpp | upcMvc/-BankQueuingSystem | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | 2 | 2016-07-20T02:23:51.000Z | 2017-09-02T09:44:52.000Z | getnum/widget.cpp | upcMvc/bank-queue-system | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | null | null | null | getnum/widget.cpp | upcMvc/bank-queue-system | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | null | null | null | #include "widget.h"
#include "ui_widget.h"
#include "close.h"
#include <QLabel>
#include <QString>
#include <QByteArray>
#include <QtNetwork>
#include <QDebug>
#include <QCloseEvent>
#include <QEvent>
#include <QPalette>
#include <QBrush>
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{... | 26.103704 | 95 | 0.612372 | upcMvc |
87c0621d5a6a4dee4187e1f88ea212826847bdf8 | 4,094 | cpp | C++ | glfw3_app/common/mdf/surface.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/common/mdf/surface.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/common/mdf/surface.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | //=====================================================================//
/*! @file
@brief サーフェース・クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/glfw3_app/blob/master/LICENSE
*/
//====================... | 23.94152 | 82 | 0.462384 | hirakuni45 |
87c60c367286d35a99d44dc732aecb69676271e3 | 216,697 | cpp | C++ | MMOCoreORB/src/server/zone/managers/sui/SuiManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/managers/sui/SuiManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/managers/sui/SuiManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
Copyright <SWGEmu>
See file COPYING for copying conditions. */
#include "SuiManager.h"
#include "server/zone/ZoneProcessServer.h"
#include "server/zone/objects/creature/CreatureObject.h"
#include "server/zone/objects/player/sui/SuiWindowType.h"
#include "server/zone/objects/player/sui/banktransferbox/SuiBankT... | 53.505432 | 323 | 0.636271 | V-Fib |
87c9666cbb690c2e1adede8d9ece41a4fd3f59de | 15,614 | cpp | C++ | src/Library/DetectorSpheres/DetectorSphere.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/Library/DetectorSpheres/DetectorSphere.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/Library/DetectorSpheres/DetectorSphere.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// DetectorSphere.cpp - Implements a detector sphere
//
// Author: Aravind Krishnaswamy
// Date of Birth: April 11, 2002
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
//////////////////////... | 33.363248 | 385 | 0.671128 | aravindkrishnaswamy |
d7b54eb5eefebc6c56e7906c584d96697fcebb3a | 736 | cpp | C++ | input/pointer2.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/pointer2.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/pointer2.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
main()
{
string str = {};
int i = 0;
string wordfinal;
for (string word; i < 3; i++)
{
cout << "Please enter any word " << i + 1 << ": ";
//cin.ignore(); // I have to use it to clear apce of previous cout.
getline(cin, word);
... | 28.307692 | 80 | 0.516304 | xdevkartik |
d7b789f0fddc21ac674103af32f37b76dc5f8c83 | 198 | hpp | C++ | src/waygate.hpp | ohowland/waygate | 926100c101b30827b52ba9262f3b7dfdbb6f50ad | [
"MIT"
] | null | null | null | src/waygate.hpp | ohowland/waygate | 926100c101b30827b52ba9262f3b7dfdbb6f50ad | [
"MIT"
] | null | null | null | src/waygate.hpp | ohowland/waygate | 926100c101b30827b52ba9262f3b7dfdbb6f50ad | [
"MIT"
] | null | null | null | #define WAYGATE_VERSION_MAJOR @WAYGATE_VERSION_MAJOR@
#define WAYGATE_VERSION_MINOR @WAYGATE_VERSION_MINOR@
#define PROJECT_CONFIG_DIR @PROJECT_CONFIG_DIR@
#include "bus.hpp"
#include "signals.hpp" | 33 | 53 | 0.848485 | ohowland |
d7c5469fb3b0a151a1a37df3fd5ecfbd460ac47f | 9,264 | cpp | C++ | Arduino/libraries/PMIC_SGM41512/src/SGM41512.cpp | rdpoor/tinyml_low_power | 65fe34cc1f156e5bc9687cc8cc690ea71baa56de | [
"MIT"
] | null | null | null | Arduino/libraries/PMIC_SGM41512/src/SGM41512.cpp | rdpoor/tinyml_low_power | 65fe34cc1f156e5bc9687cc8cc690ea71baa56de | [
"MIT"
] | null | null | null | Arduino/libraries/PMIC_SGM41512/src/SGM41512.cpp | rdpoor/tinyml_low_power | 65fe34cc1f156e5bc9687cc8cc690ea71baa56de | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2021 Syntiant Corp. All rights reserved.
* Contact at http://www.syntiant.com
*
* This software is available to you under a choice of one of two licenses.
* You may choose to be licensed under the terms of the GNU General Public
* License (GPL) Version 2, available from the file LICENSE in the... | 30.574257 | 85 | 0.554512 | rdpoor |
d7cac9e4a9cc3fd29c53b9ab50d1c8a9ef0aa9c5 | 658 | hpp | C++ | source/Senses/View/ResizeUITab.hpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 8 | 2015-01-23T05:41:46.000Z | 2019-11-20T05:10:27.000Z | source/Senses/View/ResizeUITab.hpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | null | null | null | source/Senses/View/ResizeUITab.hpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 4 | 2015-05-05T05:15:43.000Z | 2020-03-07T11:10:56.000Z | /*********************************************************************************************************
* UIWindow.cpp
* Note: ResizeUITab.cpp
* Date: @2015.04
* E-mail:<forcemz@outlook.com>
* Copyright (C) 2015 The ForceStudio All Rights Reserved.
********************************************************************... | 25.307692 | 107 | 0.465046 | fstudio |
d7d09a740cfbd23b9debf34ea601735536edaf16 | 805 | cpp | C++ | potato/spud/tests/test_delegate_ref.cpp | seanmiddleditch/grimm | 9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5 | [
"MIT"
] | 38 | 2019-05-25T17:32:26.000Z | 2022-02-27T22:25:05.000Z | potato/spud/tests/test_delegate_ref.cpp | seanmiddleditch/grimm | 9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5 | [
"MIT"
] | 35 | 2019-05-26T17:52:39.000Z | 2022-02-12T19:54:14.000Z | potato/spud/tests/test_delegate_ref.cpp | seanmiddleditch/grimm | 9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5 | [
"MIT"
] | 2 | 2019-06-09T16:06:27.000Z | 2019-08-16T14:17:20.000Z | #include "potato/spud/delegate_ref.h"
#include <catch2/catch.hpp>
TEST_CASE("potato.spud.delegate_ref", "[potato][spud]") {
using namespace up;
SECTION("lambda delegate_ref") {
int (*f)(int) = [](int i) {
return i * 2;
};
delegate_ref d = f;
CHECK(d(0) == 0);
... | 20.125 | 57 | 0.448447 | seanmiddleditch |
d7d1e3215854e380e81622caaeee52b61611a464 | 3,807 | cpp | C++ | project/OFEC_sc2/instance/problem/continuous/multi_modal/metrics_mmop.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/problem/continuous/multi_modal/metrics_mmop.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/problem/continuous/multi_modal/metrics_mmop.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | #include "../../../../core/algorithm/solution.h"
#include "../../../../core/problem/continuous/continuous.h"
#include "metrics_mmop.h"
#include <algorithm>
namespace OFEC {
void MetricsMMOP::updateCandidates(const SolBase &sol, std::list<std::unique_ptr<SolBase>> &candidates) const {
updateOnlyByObj(sol, candidates... | 34.926606 | 139 | 0.679275 | BaiChunhui-9803 |
d7d64647ebace47c95299ab67c845921d10ded46 | 681 | cpp | C++ | Cpp_primer_5th/code_part7/prog7_1.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part7/prog7_1.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part7/prog7_1.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct Sales_data{
string bookNo;
double revenue = 0.0;
int usold= 0;
};
int main(){
Sales_data total;
if(cin >> total.bookNo >> total.usold >> total.revenue){
Sales_data trans;
while(cin >> trans.bookNo >> trans.usold >> trans.revenue){
if(total.bookNo == trans.... | 20.636364 | 79 | 0.582966 | Links789 |
d7d8e6203585b78e5a2e850c83112151697b7868 | 495 | cpp | C++ | WaveformGenerator/waveformgenerator.cpp | VioletGiraffe/AudioGenerator | bea5118a55ffd3f246f87aea7e22880741d4e669 | [
"Apache-2.0"
] | null | null | null | WaveformGenerator/waveformgenerator.cpp | VioletGiraffe/AudioGenerator | bea5118a55ffd3f246f87aea7e22880741d4e669 | [
"Apache-2.0"
] | null | null | null | WaveformGenerator/waveformgenerator.cpp | VioletGiraffe/AudioGenerator | bea5118a55ffd3f246f87aea7e22880741d4e669 | [
"Apache-2.0"
] | null | null | null | #include "waveformgenerator.h"
WaveformGenerator::~WaveformGenerator()
{
}
float WaveformGenerator::extraParameter() const
{
return _extraParameter;
}
bool WaveformGenerator::hasExtraParameter() const
{
return false;
}
const WaveformGenerator::ExtraParameterProperties WaveformGenerator::extraParam... | 19.038462 | 96 | 0.747475 | VioletGiraffe |
d7df21b6414e312c796e0fedab119443608b9032 | 3,084 | cpp | C++ | Nesis/Instruments/src/XMLGaugeRoundAltitude.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | 3 | 2015-11-08T07:17:46.000Z | 2019-04-05T17:08:05.000Z | Nesis/Instruments/src/XMLGaugeRoundAltitude.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | Nesis/Instruments/src/XMLGaugeRoundAltitude.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* *
* Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: *
* Ales... | 31.793814 | 77 | 0.467899 | jpoirier |
d7e4286d7ff4c1c5b13e9232815f4f983858b873 | 23,423 | cpp | C++ | LithiumGD/Cheats/Creator.cpp | ALEHACKsp/LithiumGD | 7f1e2c7da98e879830fbf9657c2618625c6daa5b | [
"MIT"
] | null | null | null | LithiumGD/Cheats/Creator.cpp | ALEHACKsp/LithiumGD | 7f1e2c7da98e879830fbf9657c2618625c6daa5b | [
"MIT"
] | null | null | null | LithiumGD/Cheats/Creator.cpp | ALEHACKsp/LithiumGD | 7f1e2c7da98e879830fbf9657c2618625c6daa5b | [
"MIT"
] | 1 | 2021-09-19T17:35:28.000Z | 2021-09-19T17:35:28.000Z | #include <Windows.h>
#include "Cheats.h"
#include "../Game/Game.h"
#include "../Game/Offsets.h"
void cCheats::CopyHack() {
static const char Patch1[] = { 0x90, 0x90 };
static const char Patch2[] = { 0x8B, 0xCA, 0x90 };
static const char Patch3[] = { 0xB0, 0x01, 0x90 };
static const char OriginalAddre... | 68.090116 | 180 | 0.745165 | ALEHACKsp |
d7e6e7c3da957da091e1315a75b44d07aab9edb2 | 190 | cpp | C++ | myblog/Cplusplus/004_pointer/demo3.cpp | WangBaobaoLOVE/WangBaobaoLOVE.github.io | e8e53475874193a929bbda247dd6a77da8950856 | [
"CC-BY-3.0"
] | null | null | null | myblog/Cplusplus/004_pointer/demo3.cpp | WangBaobaoLOVE/WangBaobaoLOVE.github.io | e8e53475874193a929bbda247dd6a77da8950856 | [
"CC-BY-3.0"
] | null | null | null | myblog/Cplusplus/004_pointer/demo3.cpp | WangBaobaoLOVE/WangBaobaoLOVE.github.io | e8e53475874193a929bbda247dd6a77da8950856 | [
"CC-BY-3.0"
] | null | null | null | #include <iostream>
using namespace std;
int main ()
{
int *ptr = NULL;
cout << "ptr 的值是 " << ptr ;
if(ptr)
cout << false;
if(!ptr)
cout << true;
return 0;
} | 11.176471 | 30 | 0.505263 | WangBaobaoLOVE |
d7e97b217df8db666c383e0f903c2082b90a17bc | 1,063 | cpp | C++ | src/test/currenttime/main.cpp | xsjqqq123/treefrog-framework | da7cc2c4b277e4858ee7a6e5e7be7ce707642e00 | [
"BSD-3-Clause"
] | 1 | 2019-01-08T12:37:11.000Z | 2019-01-08T12:37:11.000Z | src/test/currenttime/main.cpp | dragondjf/treefrog-framework | b85df01fffab5a9bab94679376ec057ebc2293f5 | [
"BSD-3-Clause"
] | null | null | null | src/test/currenttime/main.cpp | dragondjf/treefrog-framework | b85df01fffab5a9bab94679376ec057ebc2293f5 | [
"BSD-3-Clause"
] | 2 | 2018-09-14T12:35:36.000Z | 2020-05-09T16:52:20.000Z | #include <QTest>
#include <QtCore>
#include <tglobal.h>
class TestDateTime : public QObject
{
Q_OBJECT
private slots:
void compare();
void benchQtCurrentDateTime();
void benchTfCurrentDateTime();
};
void TestDateTime::compare()
{
for (int i = 0; i < 3; ++i) {
QDateTime qt = QDateTime::cu... | 21.26 | 57 | 0.608655 | xsjqqq123 |
d7ebe3bb2f48c3bcca53fa9a86d38d65abbf85c6 | 2,011 | hpp | C++ | modules/memory/include/shard/memory/allocators/heap_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | modules/memory/include/shard/memory/allocators/heap_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | modules/memory/include/shard/memory/allocators/heap_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Miklos Molnar. All rights reserved.
#ifndef SHARD_MEMORY_HEAP_ALLOCATOR_HPP
#define SHARD_MEMORY_HEAP_ALLOCATOR_HPP
#include "shard/memory/allocator.hpp"
#include "shard/memory/utils.hpp"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <limits>
namespace shard {
namespace memo... | 24.228916 | 82 | 0.660368 | ikimol |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.