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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4c2b2870bd19b8d68185006073038d950283086 | 1,504 | cpp | C++ | Uva-10948 - The primary problem.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | 1 | 2020-11-02T22:18:22.000Z | 2020-11-02T22:18:22.000Z | Uva-10948 - The primary problem.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | null | null | null | Uva-10948 - The primary problem.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define Max 1000001
std::bitset<Max> arr;
std::vector<int> prime;
void sieve()
{
arr[0]=true;
arr[1]=true;
for(int i=4;i<=Max;i+=2)
{
arr[i]=true;
}
for(int i=3;i*i<=Max;i++)
{
if(arr[i]==false)
{
for(int j=i*i;j<=Max;j+=i+i)
... | 19.282051 | 57 | 0.357713 | Samim-Arefin |
c4c3d286892a809e310541e6850a867b3a052036 | 7,599 | hpp | C++ | skynet/core/neighbor.hpp | zhangzhimin/skynet | a311b86433821a071002dd279d57333baba1f973 | [
"MIT"
] | 5 | 2015-08-02T03:10:26.000Z | 2018-01-16T01:07:55.000Z | skynet/core/neighbor.hpp | zhangzhimin/skynet | a311b86433821a071002dd279d57333baba1f973 | [
"MIT"
] | null | null | null | skynet/core/neighbor.hpp | zhangzhimin/skynet | a311b86433821a071002dd279d57333baba1f973 | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
#include <array>
#include <skynet/core/adaptor_types.hpp>
namespace skynet{
template <typename B, typename size_t dim>
class neighbor_adaptor : public iterator_adaptor<B> {
public:
typedef B neighbor_type;
typedef point<size_t, dim> ext... | 24.12381 | 86 | 0.59521 | zhangzhimin |
c4c44ddee8bb17913f409a00a1b803ee5e5179a0 | 5,024 | hh | C++ | source/PPUtils/uniformobjectpool.hh | PerttuP/PPUtils | 97971d6e2b662bab9a4966b4c39ac59509c01359 | [
"MIT"
] | null | null | null | source/PPUtils/uniformobjectpool.hh | PerttuP/PPUtils | 97971d6e2b662bab9a4966b4c39ac59509c01359 | [
"MIT"
] | null | null | null | source/PPUtils/uniformobjectpool.hh | PerttuP/PPUtils | 97971d6e2b662bab9a4966b4c39ac59509c01359 | [
"MIT"
] | null | null | null | /* uniformobjectpool.hh
* This header file defines the PPUtils::UniformObjectPool class template. This
* class template can be used as a storage for complex objects or as a builder
* class.
*
* Author: Perttu Paarlahti perttu.paarlahti@gmail.com
* Created: 29-June-2015
*/
#ifndef UNIFORMOBJECTPOOL_HH
#defi... | 31.204969 | 80 | 0.669785 | PerttuP |
c4cc576690912172f7e671be0ecf0af39a955e34 | 3,926 | cpp | C++ | src_smartcontract_db/scan_select/scan_planner/scanner/join/JoinOrCandidate.cpp | alinous-core/codablecash | 04ca04c9bc179aa81d4277ed34320b4340628bd1 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract_db/scan_select/scan_planner/scanner/join/JoinOrCandidate.cpp | alinous-core/codablecash | 04ca04c9bc179aa81d4277ed34320b4340628bd1 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract_db/scan_select/scan_planner/scanner/join/JoinOrCandidate.cpp | alinous-core/codablecash | 04ca04c9bc179aa81d4277ed34320b4340628bd1 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* JoinBranchCandidate.cpp
*
* Created on: 2020/09/01
* Author: iizuka
*/
#include "scan_select/scan_planner/scanner/join/JoinOrCandidate.h"
#include "scan_select/scan_planner/scanner/join/AbstractJoinCandidateCollection.h"
#include "scan_select/scan_planner/scanner/join/JoinCandidate.h"
namespace codabl... | 30.2 | 120 | 0.767448 | alinous-core |
c4cc5ad1375eda855b296c1ec353a95240ffc075 | 10,739 | cpp | C++ | folly/experimental/channels/test/ChannelTest.cpp | wangzhx123/folly | 94d02fac4a4b3dcd4f0e76566ae36a9aa32196ea | [
"Apache-2.0"
] | null | null | null | folly/experimental/channels/test/ChannelTest.cpp | wangzhx123/folly | 94d02fac4a4b3dcd4f0e76566ae36a9aa32196ea | [
"Apache-2.0"
] | 1 | 2022-03-28T16:56:01.000Z | 2022-03-28T16:57:07.000Z | folly/experimental/channels/test/ChannelTest.cpp | wangzhx123/folly | 94d02fac4a4b3dcd4f0e76566ae36a9aa32196ea | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 28.186352 | 78 | 0.720086 | wangzhx123 |
c4ce0dcfe681e79eb180beb08064f83d0460e66d | 2,166 | cpp | C++ | NPSVisor/tools/svMaker/source/PDiagMirror.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/tools/svMaker/source/PDiagMirror.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/tools/svMaker/source/PDiagMirror.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | //----------- PDiagMirror.cpp ------------------------------------------------
//----------------------------------------------------------------------------
#include "precHeader.h"
//----------------------------------------------------------------------------
#include "PDiagMirror.h"
//--------------------------------... | 30.083333 | 116 | 0.440443 | NPaolini |
c4cefe124afee36b4870a0708ece73c366bad328 | 3,735 | cpp | C++ | Features/src/Host/ClientConnection.cpp | ProtocolONE/cord.app | 0defd4e2cbc25d4f414fa68f8c1dfe65eadc02e7 | [
"Apache-2.0"
] | 8 | 2019-01-16T07:09:39.000Z | 2020-11-06T23:13:46.000Z | Features/src/Host/ClientConnection.cpp | ProtocolONE/cord.app | 0defd4e2cbc25d4f414fa68f8c1dfe65eadc02e7 | [
"Apache-2.0"
] | null | null | null | Features/src/Host/ClientConnection.cpp | ProtocolONE/cord.app | 0defd4e2cbc25d4f414fa68f8c1dfe65eadc02e7 | [
"Apache-2.0"
] | 3 | 2019-09-30T02:45:09.000Z | 2019-09-30T23:17:26.000Z | #include <Host/ClientConnection.h>
#include <Host/Dbus/ConnectionBridgeProxy.h>
#include <Host/Dbus/DbusConnection.h>
#include <Core/UI/Message.h>
#include <RestApi/ProtocolOneCredential.h>
#include <QtCore/QDebug>
using P1::Host::DBus::DBusConnection;
using P1::RestApi::ProtocolOneCredential;
names... | 29.179688 | 103 | 0.636145 | ProtocolONE |
c4d003c70bb9ecb84fd4c91c3a8084a2057014ab | 2,159 | cpp | C++ | Code/Tools/Fileserve/Main.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Tools/Fileserve/Main.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Tools/Fileserve/Main.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | #include <FileservePCH.h>
#include <Fileserve/Main.h>
#include <Foundation/Configuration/Startup.h>
#include <Foundation/IO/FileSystem/FileSystem.h>
#include <Foundation/Utilities/CommandLineUtils.h>
#ifdef EZ_USE_QT
#include <Gui.moc.h>
#include <QApplication>
#include <Foundation/Basics/Platform/Win/IncludeWindows.... | 24.816092 | 95 | 0.725799 | fereeh |
c4d15326bff694e1d4f7cb78450af46269c24997 | 4,534 | cpp | C++ | src/qc_ovps.cpp | Samthos/MC-MPn-Direct | cdf05c7ce7b33bf1b86b80f57f800634822c9cc6 | [
"MIT"
] | 1 | 2021-04-06T05:01:47.000Z | 2021-04-06T05:01:47.000Z | src/qc_ovps.cpp | spec-org/MC-MPn-Direct | cdf05c7ce7b33bf1b86b80f57f800634822c9cc6 | [
"MIT"
] | null | null | null | src/qc_ovps.cpp | spec-org/MC-MPn-Direct | cdf05c7ce7b33bf1b86b80f57f800634822c9cc6 | [
"MIT"
] | 3 | 2020-06-09T23:53:28.000Z | 2022-03-02T05:44:55.000Z | #include <iostream>
#include <functional>
#include <algorithm>
#include <cmath>
#include "qc_ovps.h"
template <template <typename, typename> typename Container, template <typename> typename Allocator>
OVPS<Container, Allocator>::OVPS() {
electron_pairs = 0;
}
template <template <typename, typename> typename Contai... | 38.423729 | 134 | 0.679974 | Samthos |
c4d183b6269f9964875a695555203b9382224f0f | 50,419 | cc | C++ | cow/src/components/audio_sink_pulse.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | cow/src/components/audio_sink_pulse.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | cow/src/components/audio_sink_pulse.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2017 Alibaba Group Holding Limited. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 30.227218 | 153 | 0.634364 | halleyzhao |
c4d6b54f3224dac53975338c6ce96e7c7edfd3de | 6,653 | cpp | C++ | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STTime.cpp | TetrisAI/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | 7 | 2016-11-28T13:42:44.000Z | 2021-08-05T02:34:11.000Z | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STTime.cpp | PowerOlive/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | null | null | null | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STTime.cpp | PowerOlive/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | 8 | 2015-07-31T02:53:14.000Z | 2020-04-12T04:36:23.000Z | // All contents of this file written by Colin Fahey ( http://colinfahey.com )
// 2007 June 4 ; Visit web site to check for any updates to this file.
#include "CPF.StandardTetris.STTime.h"
#include <windows.h>
#include <time.h>
#include <winnt.h>
namespace CPF
{
namespace StandardTetris
{
// Performance ... | 22.706485 | 78 | 0.654291 | TetrisAI |
c4e349124c61bfeaf017fc7be7d766f4305914b5 | 7,495 | cpp | C++ | tests/reflection_tests.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 37 | 2017-02-04T09:42:48.000Z | 2021-02-17T14:59:15.000Z | tests/reflection_tests.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 120 | 2017-11-09T19:46:40.000Z | 2022-01-20T18:26:23.000Z | tests/reflection_tests.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 109 | 2017-01-16T14:24:31.000Z | 2022-03-18T21:10:07.000Z | #include <boost/test/unit_test.hpp>
#include <fc/exception/exception.hpp>
#include <type_traits>
struct reflect_test_base {
int x = 1;
char y = 'a';
};
struct reflect_test_derived : reflect_test_base {
double z = 3.14;
};
struct reflect_layer_1 { reflect_test_base b; int32_t n; };
struct reflect_layer_2 { r... | 59.015748 | 116 | 0.623616 | Revolution-Populi |
c4e5f434f6c43ca834c0c4c6709c294eed762910 | 15,230 | cpp | C++ | SRC/text/text_render.cpp | GlisGames/vbEngine | 239659e154c08d1867418e611891a7961dbe8258 | [
"MIT"
] | null | null | null | SRC/text/text_render.cpp | GlisGames/vbEngine | 239659e154c08d1867418e611891a7961dbe8258 | [
"MIT"
] | null | null | null | SRC/text/text_render.cpp | GlisGames/vbEngine | 239659e154c08d1867418e611891a7961dbe8258 | [
"MIT"
] | null | null | null | #include "text_render.h"
//#include "scope_guard.h"
#include "math.h"
#include "rlgl.h"
#include <assert.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_OUTLINE_H
//#define TEXT_USE_SHADER
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#if defined(PLATFORM_DESKTOP)
#define GLSL_VERSION ... | 29.746094 | 133 | 0.599146 | GlisGames |
c4e789272073d984d72598c4e43028f912886c60 | 2,198 | hpp | C++ | include/gaenari/supul/db/sqlite/sqlite.type.hpp | greenfish77/gaenari | cb9374498b6122800702ebcfc19543c9563345b4 | [
"Apache-2.0"
] | 2 | 2022-03-10T05:51:24.000Z | 2022-03-15T10:32:26.000Z | include/gaenari/supul/db/sqlite/sqlite.type.hpp | greenfish77/gaenari | cb9374498b6122800702ebcfc19543c9563345b4 | [
"Apache-2.0"
] | null | null | null | include/gaenari/supul/db/sqlite/sqlite.type.hpp | greenfish77/gaenari | cb9374498b6122800702ebcfc19543c9563345b4 | [
"Apache-2.0"
] | null | null | null | #ifndef HEADER_GAENARI_SUPUL_DB_SQLITE_SQLITE_TYPE_HPP
#define HEADER_GAENARI_SUPUL_DB_SQLITE_SQLITE_TYPE_HPP
namespace supul {
namespace db {
namespace sqlite {
// include sqlite3.h inside the namespace.
#include "sqlite/sqlite3.h"
// query type.
enum class stmt {
unknown,
count_string_table,
get_string_table_la... | 24.153846 | 97 | 0.838944 | greenfish77 |
c4e941a3ea7ed2482032b80ed52b01701de9c04e | 7,086 | cpp | C++ | libs/DiabloUI/src/selyesno.cpp | Chronimal/devilution | a7ef09e1403771f0b27d9fa1c7e5f04e8a26f9e8 | [
"Unlicense"
] | null | null | null | libs/DiabloUI/src/selyesno.cpp | Chronimal/devilution | a7ef09e1403771f0b27d9fa1c7e5f04e8a26f9e8 | [
"Unlicense"
] | null | null | null | libs/DiabloUI/src/selyesno.cpp | Chronimal/devilution | a7ef09e1403771f0b27d9fa1c7e5f04e8a26f9e8 | [
"Unlicense"
] | null | null | null | #include "inc.h"
// ref: 0x1000FA49
int __fastcall SelYesNo_YesNoDialog(HWND hWnd, char* dialogstr, char* hero, int nofocus)
{
yesno_dialog_string = dialogstr;
yesno_hero_name = hero;
yesno_remove_focus = nofocus;
yesno_is_popup = 0;
YesNoFunc = 0;
return SDlgDialogBoxParam(ghUiInst, "SELYESNO_... | 28.457831 | 100 | 0.530059 | Chronimal |
c4eb3145a84a203a033f3ed4f2842fecbab9fd67 | 540 | cpp | C++ | 10 Days of Statistics/Day_6/CLT_2.cpp | yurkovak/HackerRank | a10136e508692f98e76e7c27d9cd801a3380f8ba | [
"MIT"
] | null | null | null | 10 Days of Statistics/Day_6/CLT_2.cpp | yurkovak/HackerRank | a10136e508692f98e76e7c27d9cd801a3380f8ba | [
"MIT"
] | null | null | null | 10 Days of Statistics/Day_6/CLT_2.cpp | yurkovak/HackerRank | a10136e508692f98e76e7c27d9cd801a3380f8ba | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <math.h>
// using namespace std;
float CDF(float mean, float stdev, float x){
float erf_arg = (x - mean) / (pow(2, 0.5) * stdev);
return (1 + erf(erf_arg))/2.;
}
int main() {
/* Enter your code here. R... | 20.769231 | 79 | 0.588889 | yurkovak |
c4eef379800c3039198dc9a3ffe9d7eef52dccb3 | 680 | cpp | C++ | PostScrimmageBot/Commands/TurHop/Fire.cpp | FRC-Team-1410/UA2013-FRC1410-Robot | 51afc88149e97ff474693ed6a69ff13ba65440e3 | [
"BSD-3-Clause"
] | null | null | null | PostScrimmageBot/Commands/TurHop/Fire.cpp | FRC-Team-1410/UA2013-FRC1410-Robot | 51afc88149e97ff474693ed6a69ff13ba65440e3 | [
"BSD-3-Clause"
] | null | null | null | PostScrimmageBot/Commands/TurHop/Fire.cpp | FRC-Team-1410/UA2013-FRC1410-Robot | 51afc88149e97ff474693ed6a69ff13ba65440e3 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T09:24:15.000Z | 2020-05-21T09:24:15.000Z | #include "Fire.h"
Fire::Fire() {
// Use requires() here to declare subsystem dependencies
Requires(turhop);
}
// Called just before this Command runs the first time
void Fire::Initialize() {
}
// Called repeatedly when this Command is scheduled to run
void Fire::Execute() {
turhop->FeederToggle();
}
// Make this... | 20.606061 | 75 | 0.720588 | FRC-Team-1410 |
c4f0337e7b61072e9779741064b4c624f93c7f94 | 6,578 | hpp | C++ | Code/Engine/EventSystem/NamedProperties.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | 2 | 2017-10-02T03:18:55.000Z | 2018-11-21T16:30:36.000Z | Code/Engine/EventSystem/NamedProperties.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | Code/Engine/EventSystem/NamedProperties.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/General/Core/EngineCommon.hpp"
#include <map>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//ENUMS
///////////////////////////////////////////////////////////////////////////////////////////////////////////... | 36.142857 | 157 | 0.514746 | ntaylorbishop |
c4f1c688bbdf3c982034716a61c40966dbeb6b72 | 1,626 | cpp | C++ | source/engine/resources/MusicLoader.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | source/engine/resources/MusicLoader.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | source/engine/resources/MusicLoader.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | ///------------------------------------------------------------------------------------------------
/// MusicLoader.cpp
/// Genesis
///
/// Created by Alex Koukoulas on 20/11/2019.
///------------------------------------------------------------------------------------------------
#include "MusicLoader.h"
#include "... | 28.034483 | 101 | 0.383764 | AlexKoukoulas2074245K |
c4f68e726acf92760962a2790d3daec79466c23b | 667 | hpp | C++ | src/Move.hpp | PolyDevTeam/Polybasite | c705d1e0c7286e55c487ddbcd17cdcabfb057b7a | [
"MIT"
] | 1 | 2017-12-22T15:31:36.000Z | 2017-12-22T15:31:36.000Z | src/Move.hpp | PolyDevTeam/Polybasite | c705d1e0c7286e55c487ddbcd17cdcabfb057b7a | [
"MIT"
] | 1 | 2017-12-26T23:18:53.000Z | 2017-12-26T23:18:53.000Z | src/Move.hpp | PolyDevTeam/Polybasite | c705d1e0c7286e55c487ddbcd17cdcabfb057b7a | [
"MIT"
] | 1 | 2017-11-20T21:21:01.000Z | 2017-11-20T21:21:01.000Z | #ifndef __MOVE_HPP__
#define __MOVE_HPP__
#include <vector>
#include <sstream>
#include "Serializable.hpp"
#include "Miner.hpp"
enum DIRECTIONS {
STILL = 0,
NORTH = 1,
EAST = 2,
SOUTH = 3,
WEST = 4,
};
class Move : public Serializable {
public:
Move();
Move(unsigned minerId, DIRECTIONS d... | 18.027027 | 56 | 0.661169 | PolyDevTeam |
c4f75585518af5f6afe024bfc40d2efdd21da4b2 | 5,870 | cpp | C++ | src/cpp/ports-runtime.cpp | friedolino78/rtosc | 5006acfc030465944b45180942e439b3cf4d617a | [
"MIT"
] | null | null | null | src/cpp/ports-runtime.cpp | friedolino78/rtosc | 5006acfc030465944b45180942e439b3cf4d617a | [
"MIT"
] | null | null | null | src/cpp/ports-runtime.cpp | friedolino78/rtosc | 5006acfc030465944b45180942e439b3cf4d617a | [
"MIT"
] | null | null | null | #include "../util.h"
#include <cstdarg>
#include <cstring>
#include <cassert>
#include <rtosc/pretty-format.h>
#include <rtosc/ports.h>
#include <rtosc/ports-runtime.h>
namespace rtosc {
namespace helpers {
//! RtData subclass to capture argument values pretty-printed from
//! a runtime object
class CapturePretty : ... | 28.086124 | 80 | 0.575468 | friedolino78 |
c4facf834dd49dc246cf62833602fc69b4658c77 | 885 | cpp | C++ | Hacke Rank Problems/Week Of Codes 34/maxgcd.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | Hacke Rank Problems/Week Of Codes 34/maxgcd.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | Hacke Rank Problems/Week Of Codes 34/maxgcd.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 6;
int cnt[N];
int lmulA[N];
int lmulB[N];
int n;
int ar[N];
int br[N];
int main(){
scanf("%d" , &n);
for(int i = 1; i <= n; ++i) {
scanf("%d" , ar + i);
}
for(int i = 1; i <= n; ++i) {
scanf("%d" , br + i);
}
for(int i ... | 14.75 | 40 | 0.39322 | anand434 |
c4ffcd978b48424108f794dde17767d8aa8f8418 | 6,214 | cpp | C++ | Castlevania/Input.cpp | ctelotuong/CaslteVania | dd4631a4895b0b91d5d8f80ba505dad7c4d81fab | [
"MIT"
] | null | null | null | Castlevania/Input.cpp | ctelotuong/CaslteVania | dd4631a4895b0b91d5d8f80ba505dad7c4d81fab | [
"MIT"
] | null | null | null | Castlevania/Input.cpp | ctelotuong/CaslteVania | dd4631a4895b0b91d5d8f80ba505dad7c4d81fab | [
"MIT"
] | null | null | null | #include "Input.h"
namespace input
{
Input::Input(core::CGame* game, core::SceneManager* scenes)
{
this->game = game;
this->scenes = scenes;
}
Input::~Input()
{
}
bool Input::Animation_Standby()
{
int status;
scenes->Get_Simon()->GetStatus(status);
if (status == UPDATE && scenes->Get_Simon()->animati... | 23.717557 | 139 | 0.623592 | ctelotuong |
f2047d442b81465a2549c37263c825451b64f114 | 6,972 | cpp | C++ | lesson04/src/helper_functions.cpp | just-4-name/CPPExercises2021 | 4df4b93b470bde7f05de91e5e1ed76e63daf49d8 | [
"MIT"
] | null | null | null | lesson04/src/helper_functions.cpp | just-4-name/CPPExercises2021 | 4df4b93b470bde7f05de91e5e1ed76e63daf49d8 | [
"MIT"
] | null | null | null | lesson04/src/helper_functions.cpp | just-4-name/CPPExercises2021 | 4df4b93b470bde7f05de91e5e1ed76e63daf49d8 | [
"MIT"
] | null | null | null | #include "helper_functions.h"
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <libutils/rasserts.h>
using namespace std;
using namespace cv;
cv::Mat makeAllBlackPixelsBlue(cv::Mat image) {
// TODO реализуйте функцию которая каждый черный пиксель картинки сделает синим
int height = image.rows,... | 35.753846 | 150 | 0.535714 | just-4-name |
f20490673fc389cdb393578973c2b8d7488dbdcd | 217 | cpp | C++ | Game_Girls_AutoChess_2019_06_04/Lib/UIObject.cpp | AhriHaran/Unity | 90a84d8cabd5ef890f3fb7d9624437b1ef8157a9 | [
"Unlicense"
] | null | null | null | Game_Girls_AutoChess_2019_06_04/Lib/UIObject.cpp | AhriHaran/Unity | 90a84d8cabd5ef890f3fb7d9624437b1ef8157a9 | [
"Unlicense"
] | null | null | null | Game_Girls_AutoChess_2019_06_04/Lib/UIObject.cpp | AhriHaran/Unity | 90a84d8cabd5ef890f3fb7d9624437b1ef8157a9 | [
"Unlicense"
] | 2 | 2019-09-04T06:04:23.000Z | 2019-09-16T07:44:16.000Z | #include "UIObject.h"
namespace JEngine
{
UIObject::UIObject()
{
}
UIObject::~UIObject()
{
}
void UIObject::SetPos(int left, int top, int right, int bottom)
{
m_rcPos.Set(left, top, right, bottom);
}
} | 11.421053 | 64 | 0.645161 | AhriHaran |
f2065ef3ba4d32ba05f9a7114fb2acfac53a9ccf | 4,106 | inl | C++ | trunk/libs/angsys/include/ang/maths/implement/double4x4_simd.inl | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | trunk/libs/angsys/include/ang/maths/implement/double4x4_simd.inl | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | trunk/libs/angsys/include/ang/maths/implement/double4x4_simd.inl | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | #ifndef __COFFE_GRAPH_MATHS_H__
#error ...
#elif !defined __COFFE_GRAPH_MATHS_FLOAT4X4_HPP__
#define __COFFE_GRAPH_MATHS_FLOAT4X4_HPP__
inline coffe::math::float4x4::float4x4() {
memset(_mat, 0, sizeof(_mat));
}
inline coffe::math::float4x4::float4x4(float_t val) {
_mat[0] = _mm_set1_ps(val);
_mat[1] = _mm_set1_ps... | 38.735849 | 152 | 0.677058 | ChuyX3 |
f206b5424336bef9ddea354fd51410339489df3e | 4,569 | hpp | C++ | src/tests-core/tests/packed/sequence/fse/pseq_test_base.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2021-07-30T16:54:24.000Z | 2021-09-08T15:48:17.000Z | src/tests-core/tests/packed/sequence/fse/pseq_test_base.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | null | null | null | src/tests-core/tests/packed/sequence/fse/pseq_test_base.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2020-03-14T15:15:25.000Z | 2020-06-15T11:26:56.000Z |
// Copyright 2013 Victor Smirnov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 25.104396 | 94 | 0.562267 | victor-smirnov |
f20745a76d6d68fcb0bf77b7addba4c2e9d6c8a7 | 6,427 | hpp | C++ | headers/rpnx/hsalsa.hpp | rpnx-net/rpnx-crypto | 795487338f4d569d56886ab2b685bcd38a433142 | [
"MIT"
] | 1 | 2020-12-17T07:25:03.000Z | 2020-12-17T07:25:03.000Z | headers/rpnx/hsalsa.hpp | rpnx-net/rpnx-crypto | 795487338f4d569d56886ab2b685bcd38a433142 | [
"MIT"
] | null | null | null | headers/rpnx/hsalsa.hpp | rpnx-net/rpnx-crypto | 795487338f4d569d56886ab2b685bcd38a433142 | [
"MIT"
] | null | null | null | //
// Created by rnicholl on 12/16/20.
//
#ifndef RPNX_DJB_CRYPTO_HSALSA_HPP
#define RPNX_DJB_CRYPTO_HSALSA_HPP
#include <utility>
#include <cinttypes>
#include <tuple>
#include <cstddef>
#include "rpnx/crypto_common.hpp"
#include <stdint.h>
#include <stdlib.h>
namespace rpnx::c_djb_crypto
{
template <std::size_... | 36.725714 | 84 | 0.512214 | rpnx-net |
f2075a00fc92920bb9bc55067dff1d81e2b85834 | 17,352 | cpp | C++ | Source/DBHandler/database.cpp | Iskeletu/SimpleDB | 73429b63bb7c05617e2258c2bd33510044c1746c | [
"MIT"
] | 3 | 2021-12-10T03:09:01.000Z | 2021-12-27T17:24:22.000Z | Source/DBHandler/database.cpp | Iskeletu/SimpleDB | 73429b63bb7c05617e2258c2bd33510044c1746c | [
"MIT"
] | null | null | null | Source/DBHandler/database.cpp | Iskeletu/SimpleDB | 73429b63bb7c05617e2258c2bd33510044c1746c | [
"MIT"
] | null | null | null | /*
Database managment file.
All work done in the non-compressed database
(.db) file is handled by this file.
*/
//Libraries
#include <string>
#include <vector>
#include <fstream>
#include <filesystem>
//Header Files
#include "database.h"
//Local Database Base Direcaroty Reference
const std::string basedir("./Dat... | 43.707809 | 171 | 0.55423 | Iskeletu |
f20bff75d668a7720e9d7bf1a7cfa39d0dfece88 | 1,135 | cpp | C++ | Source/GameWindow.cpp | sergipa/The-Creator-3D | 69acf8a4ac169f96ef8ed15e6eb1a47c3a372bda | [
"MIT"
] | 6 | 2017-11-24T06:15:40.000Z | 2021-01-05T04:47:21.000Z | Source/GameWindow.cpp | sergipa/The-Creator-3D | 69acf8a4ac169f96ef8ed15e6eb1a47c3a372bda | [
"MIT"
] | null | null | null | Source/GameWindow.cpp | sergipa/The-Creator-3D | 69acf8a4ac169f96ef8ed15e6eb1a47c3a372bda | [
"MIT"
] | 3 | 2017-11-21T13:11:47.000Z | 2019-07-01T09:22:49.000Z | #include "GameWindow.h"
#include "Application.h"
#include "ModuleRenderer3D.h"
#include "RenderTextureMSAA.h"
#include "ComponentCamera.h"
GameWindow::GameWindow()
{
active = true;
window_name = "Game";
game_scene_width = 0;
game_scene_height = 0;
}
GameWindow::~GameWindow()
{
}
void GameWindow::DrawWindow()
{
... | 25.795455 | 125 | 0.711013 | sergipa |
f20cf856963535ffb585dff01fe1dff5d00d992b | 3,535 | cpp | C++ | Banking101/GoodEvent.cpp | tiberius26/Banking101 | 2cc5e58b4d848643ba0409427381fd9a13c68c21 | [
"MIT"
] | null | null | null | Banking101/GoodEvent.cpp | tiberius26/Banking101 | 2cc5e58b4d848643ba0409427381fd9a13c68c21 | [
"MIT"
] | null | null | null | Banking101/GoodEvent.cpp | tiberius26/Banking101 | 2cc5e58b4d848643ba0409427381fd9a13c68c21 | [
"MIT"
] | null | null | null | #include "GoodEvent.h"
GoodEvent::GoodEvent()//set some random information for the event variables
{
std::srand(std::time(nullptr));//set a seed for the random number generation based on time
m_EventName = "";
m_Description = "";
m_ItemName = "";
m_ItemCount = 0;
}
void GoodEvent::EventManager(Player* Pla... | 35.35 | 188 | 0.668741 | tiberius26 |
f20f54b02370c97a0c316c14b2f0d563ac53bd25 | 1,049 | cpp | C++ | BZOJ/4044/dna.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/4044/dna.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/4044/dna.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#define maxn 101005
#define getl(x) min(w[(x)],min(r-(x)+1,(x)-l))
#define inf 1e9
using namespace std;
int t,n,w[maxn];
char dna[maxn];
bool ok(char c){
return c=='A'||c=='T'||c=='C'||c=='G';
}
int count(int l,int r){
int maxl=0;... | 22.319149 | 70 | 0.527169 | sjj118 |
f216ab6b3df5c5c41380a9d098bcd33cbba95bb7 | 4,132 | cpp | C++ | SpectatorView/Compositor/CompositorDLL/OpenCVFrameProvider.cpp | matealex/MixedRealityCompanionKit | cbd61ca6b2a45f8dd6855995bf539cbdfe194ea7 | [
"MIT"
] | 204 | 2017-08-12T12:57:26.000Z | 2019-04-25T20:22:12.000Z | SpectatorView/Compositor/CompositorDLL/OpenCVFrameProvider.cpp | Troy-Ferrell/MixedRealityCompanionKit | 3ce06ce1e32e91b826d4370b6df5d28918982b2f | [
"MIT"
] | 159 | 2017-08-12T09:38:46.000Z | 2019-04-25T17:04:50.000Z | SpectatorView/Compositor/CompositorDLL/OpenCVFrameProvider.cpp | Troy-Ferrell/MixedRealityCompanionKit | 3ce06ce1e32e91b826d4370b6df5d28918982b2f | [
"MIT"
] | 159 | 2017-08-13T22:51:09.000Z | 2019-05-02T02:32:55.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "stdafx.h"
#include "OpenCVFrameProvider.h"
#if USE_OPENCV
OpenCVFrameProvider::OpenCVFrameProvider()
{
QueryPerformanceFrequency(&freq);
rgbaFrame... | 26.658065 | 126 | 0.593901 | matealex |
35ea17c6b284d5f384918c1f343ff211c8c621e2 | 598 | cpp | C++ | src/UOJ_1031 - (1619983) Accepted.cpp | miguelarauj1o/UOJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 80 | 2015-01-07T01:18:40.000Z | 2021-05-04T15:23:18.000Z | src/UOJ_1031 - (1619983) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 1 | 2019-01-07T01:13:32.000Z | 2019-01-07T01:13:32.000Z | src/UOJ_1031 - (1619983) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 28 | 2015-03-05T11:53:23.000Z | 2020-07-05T15:50:42.000Z | #include <cstdio>
#include <vector>
#define PB push_back
#define SC1(a) scanf("%d", &a)
#define REP(i, a, b) for (int i = (a); i <= (b); ++i)
using namespace std;
typedef vector<int> VI;
bool crisis(int n, int k)
{
int p = 0;
VI v;
REP(i, 1, n)
v.PB(i);
if(v.size() > 1){
do{
v.eras... | 13.590909 | 54 | 0.4699 | miguelarauj1o |
35ebb0c5e0efdacfc53b3be2fbcdef1937324c1d | 1,503 | cpp | C++ | SOURCES/falclib/token.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/falclib/token.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/falclib/token.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include <string.h>
#include <stdlib.h>
#include "token.h"
// MLR 12/13/2003 - Simple token parsing
char *tokenStr=0;
float TokenF(float def)
{
return(TokenF(tokenStr,def));
}
float TokenF(char *str, float def)
{
char *bs;
tokenStr=0;
if(bs=strtok(str," ,\t\n"))
{
return((float)atof(bs));
}
return(def);... | 11.300752 | 51 | 0.590818 | IsraelyFlightSimulator |
35f0d56503f8e1476114f760b630a85adb39b170 | 11,127 | cpp | C++ | volante.cpp | AraragiRukasu/interfazLAC | abd0f3e98e659fbe0459c29afad3972197f864c7 | [
"BSD-3-Clause"
] | 1 | 2019-05-20T11:52:35.000Z | 2019-05-20T11:52:35.000Z | volante.cpp | AraragiRukasu/interfazLAC | abd0f3e98e659fbe0459c29afad3972197f864c7 | [
"BSD-3-Clause"
] | null | null | null | volante.cpp | AraragiRukasu/interfazLAC | abd0f3e98e659fbe0459c29afad3972197f864c7 | [
"BSD-3-Clause"
] | null | null | null | #include "volante.h"
#include "ui_volante.h"
#include <QMessageBox>
#include <QtCore>
#include <QtGui>
#include <QTimer>
#include "PC.h"
#include <QtMath>
#include "assert.h"
//Esta ventana es homologa a la del generador (pero mas simple), referirse
//a aquella para entender el funcionamiento de esta
volante::volante... | 30.652893 | 144 | 0.662892 | AraragiRukasu |
35f78f425e52fe462ade87bf2df6da28376329b8 | 6,076 | hpp | C++ | SDK/ARKSurvivalEvolved_Buff_GrabbedByBeam_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Buff_GrabbedByBeam_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Buff_GrabbedByBeam_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_Buff_GrabbedByBeam_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//------------------------------------------------------... | 85.577465 | 219 | 0.574062 | 2bite |
35fa0fa040dadf8a7258780224d795dd69d2af02 | 3,008 | cpp | C++ | modules/task_2/belyaev_i_readers_writers/main.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/belyaev_i_readers_writers/main.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/belyaev_i_readers_writers/main.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Belyaev Ilya
#include <gtest/gtest.h>
#include "./readers_writers.h"
#include <gtest-mpi-listener.hpp>
TEST(r_w_MPI, no_one) {
int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
if (rank == 0) {
storage(rank, 1);
}
MPI_Barrier(MPI_COMM_WORLD);... | 18.918239 | 76 | 0.636636 | Gurgen-Arm |
35fa77ab7dcf25fb1f09a7989d6438fb113416f6 | 3,852 | cpp | C++ | src/type_lookup_table.cpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | 2 | 2015-03-20T21:11:16.000Z | 2020-01-20T08:05:41.000Z | src/type_lookup_table.cpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | src/type_lookup_table.cpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | /******************************************************************************\
* *
* ____ _ _ _ *
* | __ ) ___ ___ ___| |_ / \ ___| |_ ___ _ __ *... | 38.138614 | 108 | 0.482606 | syoummer |
35facbd9a9c7e6f5ce5145cf473a1c131a841db0 | 708 | cxx | C++ | cpp_fund/explicit.cxx | jsrdzhk/algo_snippet | a929f73db1ad14468f12ee45d503cdba8ed12f40 | [
"MIT"
] | null | null | null | cpp_fund/explicit.cxx | jsrdzhk/algo_snippet | a929f73db1ad14468f12ee45d503cdba8ed12f40 | [
"MIT"
] | null | null | null | cpp_fund/explicit.cxx | jsrdzhk/algo_snippet | a929f73db1ad14468f12ee45d503cdba8ed12f40 | [
"MIT"
] | null | null | null | /*
* @title: todo
* @author: Rodney Cheung
* @date: 2021-07-15 11:20:53
* @last_author: Rodney Cheung
* @last_edit_time: 2021-07-15 11:41:04
*/
#include "precompiled_headers.h"
class SalesData{
private:
std::string data;
public:
explicit SalesData(const std::string& d):data(d){
}
explic... | 20.228571 | 67 | 0.620056 | jsrdzhk |
35fc424d216a117737ceaf67217967c836a22f89 | 778 | cpp | C++ | quick-sort.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | quick-sort.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | quick-sort.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | //
// Created by zhiwei on 1/6/2022.
//
#include "playground.h"
int Partition(vector<int> &nums, int left, int right)
{
int pivot = nums[right]; // 每次取最右边的值为锚点
int wall = left;
for (int i = left; i < right; i++) {
if (nums[i] < pivot) {
swap(nums[i], nums[wall]);
wall++;
... | 16.913043 | 53 | 0.537275 | zhiwei1988 |
c40066c5064027015912264a6e188cbdf6eec19a | 1,128 | cpp | C++ | common/modifiers.cpp | kirmorozov/PHP-CPP | fde096ca0a23c33c63e7c5f529891e9b679601a1 | [
"Apache-2.0"
] | 1,027 | 2015-01-05T02:52:17.000Z | 2022-03-26T22:30:14.000Z | common/modifiers.cpp | kirmorozov/PHP-CPP | fde096ca0a23c33c63e7c5f529891e9b679601a1 | [
"Apache-2.0"
] | 312 | 2015-01-01T08:58:12.000Z | 2022-03-31T09:26:55.000Z | common/modifiers.cpp | kirmorozov/PHP-CPP | fde096ca0a23c33c63e7c5f529891e9b679601a1 | [
"Apache-2.0"
] | 324 | 2015-01-06T01:57:21.000Z | 2022-03-31T14:13:49.000Z | /**
* Modifiers.cpp
*
* In this file an enumeration type is with the possible
* member modifiers
*
* @author Martijn Otto <martijn.otto@copernica.com>
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
*
* @copyright 2014 Copernica BV
*/
#include "includes.h"
#include <php.h>
/**
* Set up n... | 22.117647 | 94 | 0.643617 | kirmorozov |
c402043b18d94d4c0494ca395f02ff742d138ad8 | 8,995 | hpp | C++ | lib/strict_variant_0.3/include/strict_variant/variant_dispatch.hpp | garbageslam/libwml | c50bc4595c0c86864cd41dbfa80a522e674e0c2f | [
"WTFPL"
] | 1 | 2022-03-18T23:56:54.000Z | 2022-03-18T23:56:54.000Z | lib/strict_variant_0.3/include/strict_variant/variant_dispatch.hpp | garbageslam/libwml | c50bc4595c0c86864cd41dbfa80a522e674e0c2f | [
"WTFPL"
] | null | null | null | lib/strict_variant_0.3/include/strict_variant/variant_dispatch.hpp | garbageslam/libwml | c50bc4595c0c86864cd41dbfa80a522e674e0c2f | [
"WTFPL"
] | null | null | null | // (C) Copyright 2016 Christopher Beck
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <strict_variant/mpl/find_with.hpp>
#include <strict_variant/mpl/nonstd_traits.hpp>
#include <strict_variant/... | 39.800885 | 100 | 0.662813 | garbageslam |
c404c9bd1852b6a0b6a16a8985f4edd9e05ff1a1 | 3,677 | cpp | C++ | tools/src/fmlhpp32.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | tools/src/fmlhpp32.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | tools/src/fmlhpp32.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <iomanip>
#include <cstring>
#include <map>
#include <vector>
#include <algorithm>
#include "fml32.h"
using namespace std;
map<string, int> field_types = { {"short", FLD_SHORT},
{"long", FLD_LON... | 25.013605 | 86 | 0.468045 | georgekap1an |
c406b67425e72a0706e0b857c7b610d383085ed7 | 1,285 | cpp | C++ | firmware/communicator.cpp | rustbuggy/sharprust | 8a72b0bed544216529d8a65012be23ca2790a995 | [
"MIT"
] | null | null | null | firmware/communicator.cpp | rustbuggy/sharprust | 8a72b0bed544216529d8a65012be23ca2790a995 | [
"MIT"
] | null | null | null | firmware/communicator.cpp | rustbuggy/sharprust | 8a72b0bed544216529d8a65012be23ca2790a995 | [
"MIT"
] | null | null | null | #include "communicator.h"
#include "buggy.h"
#define TELEMETRY_SEND_INTERVAL_MS 20
Communicator::Communicator() :
rx_len(0), tx_len(0), hdlc(rx_buffer, 255) {
}
Communicator::~Communicator() {
}
void Communicator::setup() {
SERIALDEV.begin(57600);
}
void Communicator::send_telemetry(bc_telemetry_packet... | 25.7 | 105 | 0.703502 | rustbuggy |
c410f0432ed40acfb602906bd40567884995f094 | 4,384 | hxx | C++ | src/B200Control.hxx | kb1vc/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 14 | 2017-10-27T16:01:05.000Z | 2021-03-16T08:12:42.000Z | src/B200Control.hxx | dd0vs/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 11 | 2017-09-16T03:13:11.000Z | 2020-12-11T09:11:35.000Z | src/B200Control.hxx | dd0vs/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 6 | 2017-09-13T12:47:43.000Z | 2020-12-02T20:54:25.000Z | /*
Copyright (c) 2015, Matthew H. Reilly (kb1vc)
All rights reserved.
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 conditi... | 33.465649 | 76 | 0.697765 | kb1vc |
c414c54065c421c49d58c31d44f944112adfe4a8 | 689 | cpp | C++ | experiments/InternalOscillatorCalibration/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 4 | 2016-12-10T13:20:52.000Z | 2019-10-25T19:47:44.000Z | experiments/InternalOscillatorCalibration/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | null | null | null | experiments/InternalOscillatorCalibration/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 1 | 2019-05-03T17:31:38.000Z | 2019-05-03T17:31:38.000Z | #include "Arduino.h"
int initialValue = OSCCAL;
void setup() {
OSCCAL = 152;
Serial.begin(115200);
Serial.print("Factory OSCCAL value: ");
Serial.println(initialValue);
delay(1000);
int start = initialValue - 30;
int end = initialValue + 30;
for(int i = start; i <= end; i++) {
OSCCAL = i;
Se... | 20.264706 | 80 | 0.63135 | chacal |
c41b4b5918c025516f31de6bedf75081b80944b7 | 4,667 | cc | C++ | src/ts_date.cc | viild/Timestamp | 9eefb7246bfc454b9f078f572ba17c54dbeea41a | [
"Apache-2.0"
] | null | null | null | src/ts_date.cc | viild/Timestamp | 9eefb7246bfc454b9f078f572ba17c54dbeea41a | [
"Apache-2.0"
] | null | null | null | src/ts_date.cc | viild/Timestamp | 9eefb7246bfc454b9f078f572ba17c54dbeea41a | [
"Apache-2.0"
] | null | null | null | #include "ts_date.h"
#include <iostream>
namespace timestamp {
/**
* Date - class constructor
* @_date_separator: date separator specifier
* @_date_format: date format specifier
*
* This constructor creates an object of the Date class. This also sets variables
* date_separator and date_format by values giv... | 42.816514 | 84 | 0.501393 | viild |
c42248c19c9cc378643079329c525eae88ba2b59 | 650 | cpp | C++ | cells.cpp | mdyring/tumor_phenotyping | dcc5ee38bc56128d649759b96a2f984b54375d18 | [
"MIT"
] | null | null | null | cells.cpp | mdyring/tumor_phenotyping | dcc5ee38bc56128d649759b96a2f984b54375d18 | [
"MIT"
] | null | null | null | cells.cpp | mdyring/tumor_phenotyping | dcc5ee38bc56128d649759b96a2f984b54375d18 | [
"MIT"
] | null | null | null | #include "cells.hpp"
double distance(cell_ptr_type const& cell, cell_ptr_type const& candidate)
{
std::int64_t const x_distance(cell->x - candidate->x);
std::int64_t const y_distance(cell->y - candidate->y);
return std::sqrt((x_distance * x_distance) + (y_distance * y_distance));
}
void nearest(cell_ptr_type con... | 27.083333 | 124 | 0.750769 | mdyring |
c42518839cae6410547324002541980702a5a16f | 5,739 | cpp | C++ | empirical-analyses-sort-algorithms/src/timing_template.cpp | fernando-ff/EDB | d87fadb58623f71d028ba2b3434a4b59a94be694 | [
"MIT"
] | null | null | null | empirical-analyses-sort-algorithms/src/timing_template.cpp | fernando-ff/EDB | d87fadb58623f71d028ba2b3434a4b59a94be694 | [
"MIT"
] | null | null | null | empirical-analyses-sort-algorithms/src/timing_template.cpp | fernando-ff/EDB | d87fadb58623f71d028ba2b3434a4b59a94be694 | [
"MIT"
] | null | null | null | /*!
* This is a template code to demonstrate how to measure runtime of part of your code.
* I'm using the chrono C++ library.
* @date September 8th, 2020.
* @author Selan
*/
#include <iostream>
#include "../include/sorting.h"
using namespace sa;
using namespace scenario;
int main(int argc, char* argv[])
{
... | 32.241573 | 147 | 0.520822 | fernando-ff |
c427e994ecf404db3580dad5752fd8d515da6ca9 | 929 | cpp | C++ | Infinity Runner/Motor2D/Button.cpp | DavidTello1/IDI-game | db242c47389a6219f50fde68a4b475fe9262033e | [
"MIT"
] | null | null | null | Infinity Runner/Motor2D/Button.cpp | DavidTello1/IDI-game | db242c47389a6219f50fde68a4b475fe9262033e | [
"MIT"
] | null | null | null | Infinity Runner/Motor2D/Button.cpp | DavidTello1/IDI-game | db242c47389a6219f50fde68a4b475fe9262033e | [
"MIT"
] | null | null | null | #include "Button.h"
Button::Button()
{
initial_pos = { 0,0 };
position = { 0,0 };
state = IDLE;
type = UIType::BUTTON;
action = NO_ACTION;
parent = nullptr;
callback = nullptr;
visible = true;
color = GREY;
movable = false;
is_moving = false;
}
Button::Butto... | 18.58 | 119 | 0.629709 | DavidTello1 |
c42afb3fa52986dae505e3caccfae1a6374c7b86 | 2,154 | cpp | C++ | LEDSignToolKit/LEDSignToolKit/LogFile.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | LEDSignToolKit/LEDSignToolKit/LogFile.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | LEDSignToolKit/LEDSignToolKit/LogFile.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | 1 | 2020-06-13T08:34:26.000Z | 2020-06-13T08:34:26.000Z |
#include "stdafx.h"
char _szLogFilePath[MAX_PATH] = _T("");
bool _bEnableLogFile = TRUE;
#define MAX_LOG_FILE_SIZE (10*1024*1024)
void LOG_TO_FILE(const char* szMsg, ... )
{
int nBuf;
CFile file;
BOOL result=FALSE;
TCHAR szLog[MAX_PATH];
TCHAR szBuffer[MAX_PATH];
SYSTEMTIME time;
DWORD dw... | 24.477273 | 96 | 0.665738 | cuongquay |
c42bd72bc949eae469cdb64fb79257ba0a6f03c7 | 337 | cpp | C++ | B/B463.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | B/B463.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | B/B463.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int sum = 0,prev = 0,n,curr,mx = -1;
cin>>n;
for(int i=0;i<n;i++){
cin>>curr;
mx = max(mx, curr);
sum+=(prev - curr);
prev = curr;
}
if(-mx < sum){
cout<<mx<<endl;
}else{
cout<<(-sum)<<endl;
... | 18.722222 | 40 | 0.445104 | Darknez07 |
c42ef21b974a5abebada1141571cd117b3940722 | 6,072 | hpp | C++ | src/rank-tree.hpp | jcipar/stack-distance | 641aab09fcde746dd1cd0d5f05c4aeac841ac0ce | [
"MIT"
] | 23 | 2015-04-22T19:50:01.000Z | 2021-12-14T03:15:28.000Z | src/rank-tree.hpp | jcipar/stack-distance | 641aab09fcde746dd1cd0d5f05c4aeac841ac0ce | [
"MIT"
] | 2 | 2015-12-03T01:57:57.000Z | 2017-08-02T10:35:16.000Z | src/rank-tree.hpp | jcipar/stack-distance | 641aab09fcde746dd1cd0d5f05c4aeac841ac0ce | [
"MIT"
] | 7 | 2015-04-24T18:50:05.000Z | 2021-09-01T22:26:16.000Z | #ifndef __RANK_TREE_H__
#define __RANK_TREE_H__
#define __STDC_LIMIT_MACROS
#include <cstdint>
#include <set>
#include <string>
using namespace std;
class RankTree;
class RankTreeNode;
/*
This file contains two classes that implement a treap-based
RankTree. A RankTree is an unsorted (i.e. not sorted by the valu... | 30.512563 | 70 | 0.716074 | jcipar |
c431a77079049e64dc2de53094506c3399cfd1ea | 7,501 | cpp | C++ | src/Rendering/GUI/QtGUI/NodeEditor/QtNodeWidget.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | 2 | 2022-01-29T08:51:50.000Z | 2022-02-22T12:07:09.000Z | src/Rendering/GUI/QtGUI/NodeEditor/QtNodeWidget.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | null | null | null | src/Rendering/GUI/QtGUI/NodeEditor/QtNodeWidget.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | null | null | null | #include "QtNodeWidget.h"
#include "Node.h"
#include "NodePort.h"
#include "Common.h"
#include "FInstance.h"
#include "Field.h"
namespace Qt
{
QtNodeWidget::QtNodeWidget(std::shared_ptr<Node> base)
{
mNode = base;
if (mNode != nullptr)
{
//initialize in node ports
auto inputs = mNode->getImportNodes(... | 22.730303 | 176 | 0.669111 | hanxingyixue |
c43c00bdcc437ef647e6ce9b56c6a0577620bd87 | 317 | hpp | C++ | pds2/vpls/lista_problematica/List.hpp | pganaclara/ufmg | 2325803427a7b4d5d150574bfd80243274cab527 | [
"MIT"
] | null | null | null | pds2/vpls/lista_problematica/List.hpp | pganaclara/ufmg | 2325803427a7b4d5d150574bfd80243274cab527 | [
"MIT"
] | null | null | null | pds2/vpls/lista_problematica/List.hpp | pganaclara/ufmg | 2325803427a7b4d5d150574bfd80243274cab527 | [
"MIT"
] | null | null | null | #ifndef LIST_H
#define LIST_H
#include <iostream>
#include <cstdlib>
struct Node{
int _value;
Node *_next;
};
struct List{
Node *_head;
Node *_toe;
int _size;
List();
void insert(int value);
void remove(int value);
void print();
void clearList();
int removeFirst();
int indexOf(int value);
};
#endif | 12.192308 | 24 | 0.678233 | pganaclara |
c43f941882e34e24e3847d5a088a4dd6c6c05ad7 | 1,588 | hpp | C++ | rmf_task/test/mock/MockEvent.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | rmf_task/test/mock/MockEvent.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | rmf_task/test/mock/MockEvent.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* 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 appl... | 27.859649 | 80 | 0.702141 | Rouein |
c451dd0429e13c18467bad9561ae85fed6c0d775 | 4,557 | cpp | C++ | src/proposals/suspend_proposal.cpp | josejulio/dao-contracts | 2c774185f00ac89c31061da4e15567140876b1c8 | [
"MIT"
] | null | null | null | src/proposals/suspend_proposal.cpp | josejulio/dao-contracts | 2c774185f00ac89c31061da4e15567140876b1c8 | [
"MIT"
] | null | null | null | src/proposals/suspend_proposal.cpp | josejulio/dao-contracts | 2c774185f00ac89c31061da4e15567140876b1c8 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <eosio/asset.hpp>
#include <eosio/crypto.hpp>
#include <document_graph/document.hpp>
#include <document_graph/content_wrapper.hpp>
#include <common.hpp>
#include <util.hpp>
#include <proposals/suspend_proposal.hpp>
#include <assignment.hpp>
#include <period.hpp>
#include <logger/logger.... | 31.645833 | 111 | 0.608075 | josejulio |
c4537ba4537cc9b03abcf586ad609e65902780fd | 178,970 | cpp | C++ | GameEngineCore/VulkanAPI/VulkanHardwareRenderer.cpp | csyonghe/spire-engine | 9c98b277a6643688365f9ce308e8621d90af9c97 | [
"MIT"
] | null | null | null | GameEngineCore/VulkanAPI/VulkanHardwareRenderer.cpp | csyonghe/spire-engine | 9c98b277a6643688365f9ce308e8621d90af9c97 | [
"MIT"
] | null | null | null | GameEngineCore/VulkanAPI/VulkanHardwareRenderer.cpp | csyonghe/spire-engine | 9c98b277a6643688365f9ce308e8621d90af9c97 | [
"MIT"
] | null | null | null | #include "../GameEngineCore/HardwareRenderer.h"
#include "CoreLib/WinForm/Debug.h"
#include "CoreLib/VectorMath.h"
#include "CoreLib/PerformanceCounter.h"
#include "../Engine.h"
#include "CoreLib/ShortList.h"
#include "CoreLib/LibIO.h"
#include "volk.h"
#include "vulkan.hpp"
#include <mutex>
// Only execute actions of... | 37.630362 | 204 | 0.709493 | csyonghe |
c4553de6373a9657acb50c651dc4c0b91d3cef5e | 3,529 | hpp | C++ | qtgui/soda_comboboxes.hpp | kb1vc/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 14 | 2017-10-27T16:01:05.000Z | 2021-03-16T08:12:42.000Z | qtgui/soda_comboboxes.hpp | dd0vs/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 11 | 2017-09-16T03:13:11.000Z | 2020-12-11T09:11:35.000Z | qtgui/soda_comboboxes.hpp | dd0vs/SoDaRadio | 0a41fa3d795b1c93795ad62ad17bf2de5f60a752 | [
"BSD-2-Clause"
] | 6 | 2017-09-13T12:47:43.000Z | 2020-12-02T20:54:25.000Z | /*
Copyright (c) 2017 Matthew H. Reilly (kb1vc)
All rights reserved.
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 and... | 27.356589 | 90 | 0.672428 | kb1vc |
c465c8d17760be36b0247edede5e4117f865bfaa | 1,578 | cc | C++ | src/media_factory_sdl.cc | Jaween/september | 17b712a1a278d159e69cb5134109255472e11098 | [
"Apache-2.0"
] | null | null | null | src/media_factory_sdl.cc | Jaween/september | 17b712a1a278d159e69cb5134109255472e11098 | [
"Apache-2.0"
] | null | null | null | src/media_factory_sdl.cc | Jaween/september | 17b712a1a278d159e69cb5134109255472e11098 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include "media_factory_sdl.hpp"
#include "image_sdl.hpp"
#include "window_manager_sdl.hpp"
MediaFactorySdl::MediaFactorySdl() {
initialiseSdl();
}
MediaFactorySdl::~MediaFactorySdl() {
Mix_FreeMusic(music_);
musi... | 23.909091 | 108 | 0.688213 | Jaween |
c466dadaccef19813483ba8370f6b329ac159cbb | 711 | cpp | C++ | GEAR_CORE/src/Core/Timer.cpp | AndrewRichards-Code/GEAR_CORE | 4d4e77bf643dc9b98de9f38445eae690290e1895 | [
"MIT"
] | 3 | 2020-12-13T19:53:17.000Z | 2021-12-29T14:53:35.000Z | GEAR_CORE/src/Core/Timer.cpp | AndrewRichards-Code/GEAR_CORE | 4d4e77bf643dc9b98de9f38445eae690290e1895 | [
"MIT"
] | 1 | 2021-10-06T09:36:34.000Z | 2021-10-09T03:46:37.000Z | GEAR_CORE/src/Core/Timer.cpp | AndrewRichards-Code/GEAR | c08dfce35ccaa4bde046eb5b9e94d53eb65e7586 | [
"MIT"
] | null | null | null | #include "gear_core_common.h"
#include "Timer.h"
using namespace gear;
using namespace core;
Timer::Timer()
{
m_StartTimePoint = std::chrono::system_clock::now();
m_NowTimePoint = std::chrono::system_clock::now();
}
Timer::~Timer()
{
}
void Timer::Update()
{
GetDeltaTime();
}
double Timer::GetTime()
{
m_NowTim... | 16.928571 | 55 | 0.739803 | AndrewRichards-Code |
c466dcdd1f20af1289d978da91deb2db339b9179 | 2,811 | cpp | C++ | Project 19-/26 Compute Shader Beginning/GameApp.cpp | MKXJun/DX11-Without-DirectX-SDK | 31756de150248fc8f4ccb6ce0c5e2837da718c2d | [
"MIT"
] | 3 | 2018-05-29T12:18:08.000Z | 2018-06-20T16:14:13.000Z | Project 19-/26 Compute Shader Beginning/GameApp.cpp | MKXJun/DX11-Without-DirectX-SDK | 31756de150248fc8f4ccb6ce0c5e2837da718c2d | [
"MIT"
] | null | null | null | Project 19-/26 Compute Shader Beginning/GameApp.cpp | MKXJun/DX11-Without-DirectX-SDK | 31756de150248fc8f4ccb6ce0c5e2837da718c2d | [
"MIT"
] | null | null | null | #include "GameApp.h"
using namespace DirectX;
GameApp::GameApp(HINSTANCE hInstance)
: D3DApp(hInstance)
{
}
GameApp::~GameApp()
{
}
bool GameApp::Init()
{
if (!D3DApp::Init())
return false;
if (!InitResource())
return false;
return true;
}
void GameApp::Compute()
{
assert(m_pd... | 31.943182 | 129 | 0.708645 | MKXJun |
c467b7e1d8f23903c808048aaf4e21c7effcd1c6 | 1,104 | cpp | C++ | Languages/C++/all_possible_permutations_for_n_numbers.cpp | anujjain5699/Hacktoberfest | 05a2a8f813e301012240b14d729d015b35fbded7 | [
"MIT"
] | null | null | null | Languages/C++/all_possible_permutations_for_n_numbers.cpp | anujjain5699/Hacktoberfest | 05a2a8f813e301012240b14d729d015b35fbded7 | [
"MIT"
] | null | null | null | Languages/C++/all_possible_permutations_for_n_numbers.cpp | anujjain5699/Hacktoberfest | 05a2a8f813e301012240b14d729d015b35fbded7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define fast ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
/*n=3
3
1 3 6
1 3 6
1 6 3
3 1 6
3 6 1
6 1 3
6 3 1
*/
vector<vector<int>> permute(vector<int> &num)
{
... | 18.098361 | 84 | 0.48913 | anujjain5699 |
c469ae0d20e412b6b651b03d9b5b605532924a60 | 3,075 | hpp | C++ | llarp/net/net_addr.hpp | tewinget/loki-network | 556277a2609dfc7417a67a61c1a5e3951640c764 | [
"Zlib"
] | 1 | 2021-02-10T03:41:22.000Z | 2021-02-10T03:41:22.000Z | llarp/net/net_addr.hpp | tzf-key/loki-network | 01b3c0363caa746abf0fa52d27ffef1c84141cc3 | [
"Zlib"
] | 2 | 2019-12-19T15:37:07.000Z | 2020-01-31T19:42:28.000Z | llarp/net/net_addr.hpp | tzf-key/loki-network | 01b3c0363caa746abf0fa52d27ffef1c84141cc3 | [
"Zlib"
] | null | null | null | #ifndef LLARP_NET_ADDR_HPP
#define LLARP_NET_ADDR_HPP
#include <net/address_info.hpp>
#include <net/net.h>
#include <net/net.hpp>
#include <util/string_view.hpp>
#include <net/net_int.hpp>
#include <string>
namespace llarp
{
// real work
struct Addr
{
// network order
sockaddr_in6 _addr;
sockaddr_i... | 17.877907 | 75 | 0.602276 | tewinget |
c46a08da8a12a35a95113790233bd223db6b80b4 | 376 | cpp | C++ | ACM-ICPC/2455.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | ACM-ICPC/2455.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | ACM-ICPC/2455.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
using namespace std;
int x, y;
int station[4];
int main() {
// 조건에 맞게 실행하면 된다
for (int i = 0; i < 4; i++) {
scanf("%d %d", &x, &y);
station[i] = station[i - 1] - x;
station[i] = station[i] + y;
}
printf("%d\n", max(statio... | 20.888889 | 83 | 0.489362 | KimBoWoon |
c46ac87562bbd364481c80a2db80feb7f61e5bcc | 504 | cpp | C++ | src/main.cpp | DannyHavenith/SimpleProjectSkeleton | 163e1973eeecf845be308c6c58fc4a03c7057de9 | [
"BSL-1.0"
] | null | null | null | src/main.cpp | DannyHavenith/SimpleProjectSkeleton | 163e1973eeecf845be308c6c58fc4a03c7057de9 | [
"BSL-1.0"
] | null | null | null | src/main.cpp | DannyHavenith/SimpleProjectSkeleton | 163e1973eeecf845be308c6c58fc4a03c7057de9 | [
"BSL-1.0"
] | null | null | null | /**
* 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 <iostream>
#include <exception>
void error( const std::string &what)
{
throw std::runtime_error( what);
}
int main(int argc, char* argv[])... | 15.75 | 66 | 0.595238 | DannyHavenith |
c46bb90f4171afb1b290cd9bcaf163f5c6ba264e | 6,586 | cpp | C++ | src/prod/src/retail/native/fabrichost/FabricActivatorService.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/retail/native/fabrichost/FabricActivatorService.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/retail/native/fabrichost/FabricActivatorService.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 27.90678 | 104 | 0.684482 | AnthonyM |
c47023396d2b11a6e4bc5eec694d80d879aca542 | 631 | cpp | C++ | samples/hello_ar_c/app/src/main/gef_abertay/maths/vector2.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | samples/hello_ar_c/app/src/main/gef_abertay/maths/vector2.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | samples/hello_ar_c/app/src/main/gef_abertay/maths/vector2.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | #include <maths/vector2.h>
#include <math.h>
namespace gef
{
const Vector2 Vector2::kZero(0.0f, 0.0f);
const Vector2 Vector2::kOne(1.0f, 1.0f);
void Vector2::Normalise()
{
float length = Length();
x /= length;
y /= length;
}
float Vector2::LengthSqr() const
{
return (x*x + y*y);
}
float Vector2::... | 14.674419 | 53 | 0.630745 | JD1305 |
c4704897edbdc6505338ba35d372c032016f8987 | 3,329 | cc | C++ | src/geometry/test/test_Mesh1D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/geometry/test/test_Mesh1D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/geometry/test/test_Mesh1D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file test_Mesh1D.cc
* \author Jeremy Roberts
* \date Apr 1, 2012
* \brief Test of Mesh1D class.
* \note Copyright (C) 2012 Jeremy Roberts.
*/
//---------------------------------------------------------------------------... | 26.420635 | 79 | 0.479423 | RLReed |
c4709fa177c376c60cb488f07a8d73a95f86c4d4 | 6,522 | cpp | C++ | source/core/fluid-solver.cpp | linusmossberg/fluid-simulator | 629301987fff9e82cf1f1cc99b010b5f8619136b | [
"MIT"
] | 24 | 2021-03-16T13:22:08.000Z | 2022-02-20T12:43:35.000Z | source/core/fluid-solver.cpp | linusmossberg/fluid-simulator | 629301987fff9e82cf1f1cc99b010b5f8619136b | [
"MIT"
] | null | null | null | source/core/fluid-solver.cpp | linusmossberg/fluid-simulator | 629301987fff9e82cf1f1cc99b010b5f8619136b | [
"MIT"
] | 4 | 2021-03-16T16:38:54.000Z | 2022-01-17T17:31:55.000Z | #include "fluid-solver.hpp"
#include <iostream>
#include "util.hpp"
#include "../gl-util/fbo.hpp"
#include "../gl-util/shader.hpp"
#include "../gl-util/quad.hpp"
#include "../shaders/screen.vert"
#include "../shaders/stencil.vert"
#include "../shaders/fluid-solver/advect.frag"
#include "../shaders/fluid-solver/forc... | 25.778656 | 105 | 0.679853 | linusmossberg |
c4746985d107bc2f5bbec86fa80042245f0952ec | 5,554 | cpp | C++ | tests/test-hdr/set/hdr_splitlist_set_dhp.cpp | simple555a/libcds | d05a0909402369d4a79eb82aed1742a7b227548b | [
"BSD-2-Clause"
] | 2 | 2016-12-03T22:09:50.000Z | 2021-08-31T12:44:24.000Z | tests/test-hdr/set/hdr_splitlist_set_dhp.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | null | null | null | tests/test-hdr/set/hdr_splitlist_set_dhp.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | 2 | 2018-05-26T19:27:12.000Z | 2021-08-31T12:44:28.000Z | //$$CDS-header$$
#include "set/hdr_set.h"
#include <cds/container/michael_list_dhp.h>
#include <cds/container/split_list_set.h>
namespace set {
namespace {
struct DHP_cmp_traits: public cc::split_list::traits
{
typedef cc::michael_list_tag ordered_list;
type... | 35.151899 | 83 | 0.53547 | simple555a |
c47b7ead145c3e58aa8d9672e76278c81ffb18e1 | 2,019 | cpp | C++ | WindowsInternals/ExceptionHandling/ExceptionHandling.cpp | alonf/Windows-Internals-Course-Materials | 591a84cfa349c17e66dc58d16e8b5f4662cad967 | [
"MIT"
] | 5 | 2017-04-28T10:30:36.000Z | 2019-08-26T05:53:55.000Z | WindowsInternals/ExceptionHandling/ExceptionHandling.cpp | alonf/Windows-Internals-Course-Materials | 591a84cfa349c17e66dc58d16e8b5f4662cad967 | [
"MIT"
] | null | null | null | WindowsInternals/ExceptionHandling/ExceptionHandling.cpp | alonf/Windows-Internals-Course-Materials | 591a84cfa349c17e66dc58d16e8b5f4662cad967 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------
// <copyright file="ExceptionHandling.cpp" company="CodeValue">
// Copyright (c) 2011 by CodeValue Ltd. All rights reserved
// </copyright>
//
// http://codevalue.com
// Licensed under the Educational Community License version 1.0 (http://www... | 22.433333 | 105 | 0.583952 | alonf |
c48569951844b3364da391edfc422359933cc089 | 1,048 | cpp | C++ | MatchMaster/Classes/Jewel.cpp | Ghost233/MatchMaster | 03c5920e8dda487ccf1ecfdac9837a91c1e3763f | [
"MIT"
] | null | null | null | MatchMaster/Classes/Jewel.cpp | Ghost233/MatchMaster | 03c5920e8dda487ccf1ecfdac9837a91c1e3763f | [
"MIT"
] | null | null | null | MatchMaster/Classes/Jewel.cpp | Ghost233/MatchMaster | 03c5920e8dda487ccf1ecfdac9837a91c1e3763f | [
"MIT"
] | 1 | 2019-08-15T04:59:08.000Z | 2019-08-15T04:59:08.000Z | //
// Jewel.cpp
// MatchMaster
//
// Created by Ghost on 14-3-18.
//
//
#include "Jewel.h"
Jewel::Jewel():x(-1), y(-1)
{
}
Jewel::~Jewel()
{
}
bool Jewel::init()
{
return true;
}
bool Jewel::initWithJewelType(JewelType tempType)
{
if (!this->init()) return false;
type = tempType;
retur... | 18.385965 | 85 | 0.647901 | Ghost233 |
c4890b4eefdcb2aa0ce94060079a7a1916c33d93 | 3,546 | cpp | C++ | src/core/visual/win32/krmovie/ogg/OggStreamMapper.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | src/core/visual/win32/krmovie/ogg/OggStreamMapper.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | src/core/visual/win32/krmovie/ogg/OggStreamMapper.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | #include "oggstdafx.h"
#include "OggStreamMapper.h"
#include "OggDemuxFilter.h"
#include "OggDemuxOutputPin.h"
OggStreamMapper::OggStreamMapper(OggDemuxFilter* inParentFilter, CCritSec* inParentFilterLock):
mStreamState(STRMAP_READY),
mParentFilter(inParentFilter),
mParentFilterLock(inParentFilterLock),
mFishHeadP... | 21.754601 | 188 | 0.632262 | miahmie |
c4899eee09beb6df36ed93266dd2fd1c24838d29 | 3,365 | cpp | C++ | Atif/src/source/volumefraction.cpp | jiangj-physchem/Interface_project | 36d17fc28dc1e3dec0b9c80575242b792eb9671b | [
"MIT"
] | 15 | 2021-01-16T04:49:08.000Z | 2022-02-22T14:17:35.000Z | Atif/program/src/volumefraction.cpp | leying-w/Atif | 7d4c4e0cc8fa159912e2f634056608023257f986 | [
"MIT"
] | null | null | null | Atif/program/src/volumefraction.cpp | leying-w/Atif | 7d4c4e0cc8fa159912e2f634056608023257f986 | [
"MIT"
] | 4 | 2021-01-16T08:16:57.000Z | 2022-03-24T05:18:51.000Z | //***********solve the possion equation****************//
#include "clibrary.h"
#include "volumefraction.h"
#include "simpsonintegration.h"
#include "constantnum.h"
extern double dr;
extern short nspecies;
extern int LLIM; //the minimum lower limit of intergral
extern int ngrid; //the number of grids
extern int ngrid_... | 23.047945 | 99 | 0.453195 | jiangj-physchem |
c48b85bae19a358d7910403bc2e1c2f37226976a | 12,349 | cpp | C++ | Code/main.cpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | 1 | 2019-03-27T15:16:06.000Z | 2019-03-27T15:16:06.000Z | Code/main.cpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | null | null | null | Code/main.cpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | null | null | null | //
// main.cpp
// ClassificationTool
//
// Created by Avraam Tapinos
// Copyright © 2018 Avraam Tapinos. All rights reserved.
//
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include "ClassificationTree.hpp"
#include "ClassificationInitiation.hpp"
#include "InstructionsClass.hpp"
#include "Pri... | 40.224756 | 226 | 0.412746 | Avramis |
c49028d1192c300940990602f81a94e14d93b315 | 1,720 | hh | C++ | inc/EHttpProxyResponse.hh | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 7 | 2016-08-25T14:22:36.000Z | 2020-05-25T17:27:51.000Z | inc/EHttpProxyResponse.hh | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 1 | 2018-07-11T12:37:55.000Z | 2018-07-12T00:05:33.000Z | inc/EHttpProxyResponse.hh | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 2 | 2017-06-09T01:22:36.000Z | 2021-09-29T16:27:58.000Z | /*
* EHttpProxyResponse.hh
*
* Created on: 2016-6-16
* Author: cxxjava@lotuseed.com
*/
#ifndef EHTTPPROXYRESPONSE_HH_
#define EHTTPPROXYRESPONSE_HH_
#include "Efc.hh"
namespace efc {
namespace eio {
/**
* HttpProxyResponse.java - Wrapper class for HTTP requests.
*
* @author <a href="http://mina.apache... | 17.55102 | 68 | 0.656977 | developkits |
c4929eabdecbf5c91d24efca9ac82ed4aa17b111 | 1,529 | cpp | C++ | src/core/notebook/bundlenotebook.cpp | lizhyumzi/vnote | 7c4d89b0272cf817902272e8733d56c2cddb797a | [
"MIT"
] | null | null | null | src/core/notebook/bundlenotebook.cpp | lizhyumzi/vnote | 7c4d89b0272cf817902272e8733d56c2cddb797a | [
"MIT"
] | null | null | null | src/core/notebook/bundlenotebook.cpp | lizhyumzi/vnote | 7c4d89b0272cf817902272e8733d56c2cddb797a | [
"MIT"
] | null | null | null | #include "bundlenotebook.h"
#include <QDebug>
#include <notebookconfigmgr/bundlenotebookconfigmgr.h>
#include <notebookconfigmgr/notebookconfig.h>
#include <utils/fileutils.h>
using namespace vnotex;
BundleNotebook::BundleNotebook(const NotebookParameters &p_paras,
QObject *p_parent)
... | 25.065574 | 97 | 0.717462 | lizhyumzi |
c496dbaf648e776db621b9e232a872c94c9bbb9a | 1,759 | cpp | C++ | Actor/Characters/Player/GBox/State/States/State_GBox_PortalFalling.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Player/GBox/State/States/State_GBox_PortalFalling.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Player/GBox/State/States/State_GBox_PortalFalling.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "State_GBox_PortalFalling.h"
#include "Components/ArrowComponent.h"
#include "Kismet/KismetMathLibrary.h"
void UState_GBox_PortalFalling::Init(class UStateMng_GC* pMng)
{
Super::Init(pMng);
}
void UState_GBox_PortalFalling::Ent... | 23.453333 | 123 | 0.744741 | Bornsoul |
7bca72dc0998bc5a01d85613d7788660c4674b5a | 2,835 | cpp | C++ | src/core/contract/Signable.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/core/contract/Signable.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/core/contract/Signable.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "stdafx.hpp"
#include "opentxs/core/contract/Signabl... | 18.9 | 80 | 0.635626 | nopdotcom |
7bceb4b4391f4d47a51fa2ffaa23871c2b0e0154 | 1,251 | cpp | C++ | code/test2/3.cpp | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | 8 | 2022-03-13T10:25:33.000Z | 2022-03-30T08:26:00.000Z | code/test2/3.cpp | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | null | null | null | code/test2/3.cpp | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | 2 | 2022-03-20T12:09:52.000Z | 2022-03-21T03:43:01.000Z | #include<iostream>
#include<vector>
#include<string>
using namespace std;
vector<string> vec;
void reload(string str){
for(int i = 0 ; i < str.size(); i++){
if(!isdigit(str[i])) vec.push_back(str.substr(i,1));
else{
int k = i;
while(k < str.size() && isdigit(str[k])){
... | 23.603774 | 60 | 0.446843 | Bc-Gg |
7bd1cfc86febc7e5396c15b3672edf01a9161a05 | 719 | hpp | C++ | compilax/project_env.hpp | deqyra/CompilaX | a7ce9effdaf607bb1632ca39cb30b8c7ace83dbf | [
"MIT"
] | null | null | null | compilax/project_env.hpp | deqyra/CompilaX | a7ce9effdaf607bb1632ca39cb30b8c7ace83dbf | [
"MIT"
] | null | null | null | compilax/project_env.hpp | deqyra/CompilaX | a7ce9effdaf607bb1632ca39cb30b8c7ace83dbf | [
"MIT"
] | null | null | null | /* // \\
// \\
// \\
//WARNING\\
// \\
=============
DO NOT edit project_env.hpp, or your changes
will be OVERWRITTEN at the next run of CMake.
Instead, edit config/project_env.config.hpp.
*/
#ifndef RENDERBOI__PROJECT_ENV_HPP
#define RENDERBOI__PROJECT_ENV_HPP
#def... | 28.76 | 83 | 0.69541 | deqyra |
7bda53c935b0e4f4ecfc7bd36fb9a8023239cad7 | 19,914 | hpp | C++ | src/common/kmer_iterators.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 16 | 2016-06-07T22:12:02.000Z | 2021-12-15T12:40:52.000Z | src/common/kmer_iterators.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 1 | 2017-11-13T20:59:33.000Z | 2018-12-14T16:40:01.000Z | src/common/kmer_iterators.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 7 | 2016-08-19T21:31:41.000Z | 2021-12-19T14:58:45.000Z | /*
* Copyright 2015 Georgia Institute of Technology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 39.828 | 162 | 0.638496 | tcpan |
7bdf2919746c1ef8a07bf6b606e7bef8996c222e | 4,284 | cpp | C++ | src/texture.cpp | asp437/Garmez | eeb42cc91eeeea7893af0ce1fd8ccdf1e4af7d26 | [
"MIT"
] | 1 | 2019-10-14T09:16:49.000Z | 2019-10-14T09:16:49.000Z | src/texture.cpp | asp437/Garmez | eeb42cc91eeeea7893af0ce1fd8ccdf1e4af7d26 | [
"MIT"
] | null | null | null | src/texture.cpp | asp437/Garmez | eeb42cc91eeeea7893af0ce1fd8ccdf1e4af7d26 | [
"MIT"
] | null | null | null | #include <texture.hpp>
#include <glad/glad.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
namespace RGLA {
Texture::~Texture() {
if (_id) {
glDeleteTextures(1, &_id);
}
}
void Texture::BindData() {
RGLA_ENSURE(_data, "Texture data is null");
glGenT... | 33.46875 | 155 | 0.57493 | asp437 |
7beae5cc43cbe3529528fa238c0aa6e1844d096a | 1,373 | cpp | C++ | src/ds/heap/min.cpp | bound1ess/cs | 0824e5ffbc4c1e170486c5e2e481c1a934d3dc63 | [
"MIT"
] | 1 | 2015-03-26T14:49:14.000Z | 2015-03-26T14:49:14.000Z | src/ds/heap/min.cpp | bound1ess/cs | 0824e5ffbc4c1e170486c5e2e481c1a934d3dc63 | [
"MIT"
] | null | null | null | src/ds/heap/min.cpp | bound1ess/cs | 0824e5ffbc4c1e170486c5e2e481c1a934d3dc63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
#include <cassert>
using namespace std;
class MinHeap {
private:
int *heap, size;
bool dirty;
void restore();
public:
MinHeap(int *heap, int size);
~MinHeap();
int extract();
};
int main() {
int n;
scanf("%d", &n);
assert(n > 0);
int *arr = n... | 19.614286 | 68 | 0.525127 | bound1ess |
7bec1dbe1f989c7bf2d177c3d1f54a8ec8d9e2c9 | 26,694 | cpp | C++ | src/sim/rwr/advancedhts.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/sim/rwr/advancedhts.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/sim/rwr/advancedhts.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | //****************************************************
// RV - I-Hawk
// Starting HARM avionics systems upgrade 07/2008
//****************************************************
#include "stdhdr.h"
#include "F4Vu.h"
#include "missile.h"
#include "Graphics\Include\display.h"
#include "simveh.h"
#include "airunit.h"
#incl... | 30.57732 | 131 | 0.674908 | markbb1957 |
7bed2175f712018866ba8bfb087e58ac472f3cb8 | 3,906 | hpp | C++ | src/Module/Module.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Module/Module.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Module/Module.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | /*!
* \file
* \brief A Module is an abstract concept. Basically, all the objects used in a Simulation are a Module.
*
* \section LICENSE
* This file is under MIT license (https://opensource.org/licenses/MIT).
*/
#ifndef MODULE_HPP_
#define MODULE_HPP_
#include <string>
#include <sstream>
#include <typeinfo>
#in... | 21.821229 | 104 | 0.664875 | codechecker123 |
7bf41dbef6119e66d3f13a2a1786b8f77b4dcdf4 | 3,480 | cpp | C++ | source/rcnn/modeling/roi_heads/mask_head/mask_head.cpp | kerry-Cho/maskrcnn_benchmark.cpp | f110f7b6d6ac87b919b8f7aa95527c68f74d234a | [
"MIT"
] | 99 | 2019-05-01T15:23:45.000Z | 2022-01-30T05:11:40.000Z | source/rcnn/modeling/roi_heads/mask_head/mask_head.cpp | conanhung/maskrcnn_benchmark.cpp | eab9787d3140e003662a31a8e01f7ae39469e9a0 | [
"MIT"
] | 18 | 2019-05-21T11:31:44.000Z | 2020-04-03T09:59:27.000Z | source/rcnn/modeling/roi_heads/mask_head/mask_head.cpp | conanhung/maskrcnn_benchmark.cpp | eab9787d3140e003662a31a8e01f7ae39469e9a0 | [
"MIT"
] | 27 | 2019-05-12T05:41:08.000Z | 2021-02-07T01:58:01.000Z | #include "roi_heads/mask_head/mask_head.h"
namespace rcnn{
namespace modeling{
std::pair<std::vector<rcnn::structures::BoxList>, std::vector<torch::Tensor>> KeepOnlyPositiveBoxes(std::vector<rcnn::structures::BoxList> boxes){
std::vector<rcnn::structures::BoxList> positive_boxes;
std::vector<torch::Tensor> posit... | 44.615385 | 251 | 0.718103 | kerry-Cho |
7bf645240fb591fe4703883df53f340eae8e37bc | 7,397 | hpp | C++ | include/lexy/dsl/whitespace.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | include/lexy/dsl/whitespace.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | include/lexy/dsl/whitespace.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_DSL_WHITESPACE_HPP_INCLUDED
#define LEXY_DSL_WHITESPACE_HPP_INCLUDED
#include <lexy/dsl/base.hpp>
#include ... | 34.565421 | 100 | 0.596728 | IohannRabeson |
7bf87b1b45b9b9d354e72a09ee6337256937ac23 | 5,695 | cpp | C++ | fft.cpp | doug65536/FastSpectrumAnalyzer | 061022f5acb50929c5cd84ec914220e9a087c356 | [
"MIT"
] | 4 | 2016-11-29T06:48:50.000Z | 2021-05-07T00:47:34.000Z | fft.cpp | doug65536/FastSpectrumAnalyzer | 061022f5acb50929c5cd84ec914220e9a087c356 | [
"MIT"
] | null | null | null | fft.cpp | doug65536/FastSpectrumAnalyzer | 061022f5acb50929c5cd84ec914220e9a087c356 | [
"MIT"
] | null | null | null | #include "fft.h"
#include <vector>
#include <iostream>
#include <iomanip>
#include <memory>
#include <limits>
#include "stopwatch.h"
#include "asserts.h"
static double worstError0, worstError1, worstError2;
//template<typename T, int logPoints>
//int64_t testffttype(FFT<T, logPoints> &fft, bool fulltest = false)
//{... | 33.89881 | 104 | 0.482704 | doug65536 |
d0007e4615c7d6b1caca6af03543590e94d246ee | 4,831 | cpp | C++ | lib/EEPROM/EEPROMController.cpp | samuelmoll/TapTimer | 8391d248b09ad8d80df5d640728f9ad57a4b6b1c | [
"MIT"
] | null | null | null | lib/EEPROM/EEPROMController.cpp | samuelmoll/TapTimer | 8391d248b09ad8d80df5d640728f9ad57a4b6b1c | [
"MIT"
] | null | null | null | lib/EEPROM/EEPROMController.cpp | samuelmoll/TapTimer | 8391d248b09ad8d80df5d640728f9ad57a4b6b1c | [
"MIT"
] | null | null | null | #include "EEPROMController.hpp"
EEPROMController::EEPROMController(Valve* v1, Valve* v2, Valve* v3, Valve* v4) {
valve1 = v1;
valve2 = v2;
valve3 = v3;
valve4 = v4;
}
void EEPROMController::initValves(){
uint16_t sig;
sig = eeprom_read_word(&signature);
Serial.print(sig);
if (sig == 0x74EE) { ... | 36.598485 | 80 | 0.732354 | samuelmoll |
d00111b7d02c5829f3f6b20ff69e453bed2b1704 | 1,576 | cpp | C++ | Sources/Vulkan/erm/rendering/buffers/IBuffer.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | 5 | 2019-02-26T18:46:52.000Z | 2022-01-27T23:48:26.000Z | Sources/Vulkan/erm/rendering/buffers/IBuffer.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | 1 | 2020-06-07T23:44:29.000Z | 2021-04-03T18:49:54.000Z | Sources/Vulkan/erm/rendering/buffers/IBuffer.cpp | JALB91/ERM | 5d2c56db6330efc7d662c24796fdc49e43d26e40 | [
"MIT"
] | null | null | null | #include "erm/rendering/buffers/IBuffer.h"
#include "erm/rendering/Device.h"
#include "erm/utils/Utils.h"
#include "erm/utils/VkUtils.h"
namespace erm {
IBuffer::IBuffer(
Device& device,
size_t size,
vk::BufferUsageFlags buf,
vk::MemoryPropertyFlags mpf)
: mDevice(device)
, mBufferSize(size)
, mBuf(buf)
, m... | 20.205128 | 58 | 0.713198 | JALB91 |
d002dacc2b7be2a4fc0cc23114bf1b0d8927518a | 4,849 | cpp | C++ | demos/monotone/main.cpp | Roastmaster/soloud | cf1252478439aca4e2505c3e4d22c1810b13a841 | [
"Zlib"
] | 13 | 2016-10-19T00:33:23.000Z | 2022-02-23T07:55:30.000Z | demos/monotone/main.cpp | Roastmaster/soloud | cf1252478439aca4e2505c3e4d22c1810b13a841 | [
"Zlib"
] | 1 | 2020-10-03T03:47:09.000Z | 2020-10-03T03:47:09.000Z | demos/monotone/main.cpp | Roastmaster/soloud | cf1252478439aca4e2505c3e4d22c1810b13a841 | [
"Zlib"
] | 7 | 2017-07-19T11:24:27.000Z | 2022-02-23T07:55:34.000Z | /*
SoLoud audio engine
Copyright (c) 2013-2015 Jari Komppa
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including comm... | 31.901316 | 91 | 0.716849 | Roastmaster |
d007579be52b2bc3053deb5e6505441e1af4de2d | 2,791 | cc | C++ | src/mediaengine/open_cdm_mediaengine_impl.cc | vishalbhoj/open-content-decryption-module | 8a08d6c25a612be0a1a83493cb1229d5748f2a21 | [
"Apache-2.0"
] | 7 | 2018-12-19T15:04:49.000Z | 2020-05-22T07:28:33.000Z | src/mediaengine/open_cdm_mediaengine_impl.cc | vishalbhoj/open-content-decryption-module | 8a08d6c25a612be0a1a83493cb1229d5748f2a21 | [
"Apache-2.0"
] | 4 | 2018-07-11T15:09:08.000Z | 2018-10-19T14:19:56.000Z | src/mediaengine/open_cdm_mediaengine_impl.cc | vishalbhoj/open-content-decryption-module | 8a08d6c25a612be0a1a83493cb1229d5748f2a21 | [
"Apache-2.0"
] | 5 | 2018-06-27T19:19:42.000Z | 2019-05-02T05:09:27.000Z | /*
* Copyright 2014 Fraunhofer FOKUS
*
* 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 agree... | 37.716216 | 78 | 0.601218 | vishalbhoj |
d007dd1f0b1cb50a338cc2ad623470753bf57881 | 2,149 | cpp | C++ | euhat/common/JyBuf.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | euhat/common/JyBuf.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | euhat/common/JyBuf.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | #include <EuhatPreDef.h>
#include <common/OpCommon.h>
#include <common/JyDataStream.h>
#include <common/md5.h>
#include <common/JyDataCrypto.h>
#include "JyBuf.h"
#include <EuhatPostDef.h>
JyBuf::JyBuf(int len)
{
reset(len);
}
JyBuf::JyBuf(const string& str)
{
reset(opMemDup(str.c_str(), str.length()), str.length()... | 14.82069 | 79 | 0.651931 | euhat |
d00da18a0a2cbde1713a1834424e176d8bdde966 | 425 | cpp | C++ | math/kth_root_mod/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 290 | 2019-06-06T22:20:36.000Z | 2022-03-27T12:45:04.000Z | math/kth_root_mod/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 536 | 2019-06-06T18:25:36.000Z | 2022-03-29T11:46:36.000Z | math/kth_root_mod/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 82 | 2019-06-06T18:17:55.000Z | 2022-03-21T07:40:31.000Z | #include <iostream>
bool is_prime(long long a){
for (long long div=2;div*div<=a;++div){
if(a%div==0)return false;
}
return true;
}
int main() {
int t = 2397;
printf("%d\n", t);
int q=0;
for (long long p=2;p<30;++p){
if (!is_prime(p))continue;
for (long long k=0;k<p;++k){
for (long long... | 17 | 44 | 0.501176 | tko919 |
d01103efef5d7119a48afd53996f7d0d68957148 | 1,511 | hpp | C++ | source/hls/_FIRMWARE/shared_dram.hpp | somdipdey/Traffic_Analysis_Images__Dataset | 9620c68ca71cda951a821aeaf89fcde6a7bb81fb | [
"MIT"
] | 1 | 2019-02-22T12:23:31.000Z | 2019-02-22T12:23:31.000Z | source/hls/_FIRMWARE/shared_dram.hpp | maxpark/MAT-CNN-SOPC | 9620c68ca71cda951a821aeaf89fcde6a7bb81fb | [
"MIT"
] | 1 | 2018-06-26T22:17:03.000Z | 2018-06-26T22:17:34.000Z | source/hls/_FIRMWARE/shared_dram.hpp | somdipdey/MAT-CNN-FPGA_Traffic_Analysis_Using_CNNs_On_FPGA | 9620c68ca71cda951a821aeaf89fcde6a7bb81fb | [
"MIT"
] | 1 | 2018-06-29T09:59:33.000Z | 2018-06-29T09:59:33.000Z |
#ifndef SHARED_DRAM_H_9B5B43B5
#define SHARED_DRAM_H_9B5B43B5
#include <sys/mman.h>
#include <fcntl.h>
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stddef.h>
#include <stdint.h>
#include "xfpga_hw.hpp" // Register addresses
typedef uint8_t u8;
typedef u... | 26.982143 | 68 | 0.733951 | somdipdey |
d011cc3e7e0512dd095e3bef663f0c6469948965 | 19,018 | cpp | C++ | moai/src/moaicore/MOAICameraFitter2D.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/MOAICameraFitter2D.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/MOAICameraFitter2D.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | // Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include "pch.h"
#include <moaicore/MOAICameraAnchor2D.h>
#include <moaicore/MOAICameraFitter2D.h>
#include <moaicore/MOAIGfxDevice.h>
#include <moaicore/MOAILogMessages.h>
#include <moaicore/MOAITransform.h>
#include <moaicore/... | 27.723032 | 136 | 0.595331 | jjimenezg93 |
d016c65b6c93c608d54d99c52c4a512c7f7617cd | 6,369 | hpp | C++ | include/private/configuration.hpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | 1 | 2021-06-14T19:26:42.000Z | 2021-06-14T19:26:42.000Z | include/private/configuration.hpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | null | null | null | include/private/configuration.hpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | null | null | null | /*
** Jason Brillante "Damdoshi"
** Hanged Bunny Studio 2014-2016
**
**
** Bibliotheque Lapin
*/
#ifndef __LAPIN_PRIVATE_CONFIGURATION_HPP__
# define __LAPIN_PRIVATE_CONFIGURATION_HPP__
# include <iomanip>
# include <sstream>
struct SmallConf;
t_bunny_configuration *_bunny_read_ini(const char *code,
... | 22.347368 | 66 | 0.57403 | TetraSomia |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.