text stringlengths 5 1.04M |
|---|
#include <windows.h>
#include "Program.h"
#include "NativeCore.hpp"
BypaPH *ByPass = nullptr;
bool UseKernal = false;
RC_Pointer RC_CallConv OpenRemoteProcess(RC_Pointer id, ProcessAccess desiredAccess, bool useKernal, bool isTargetProcess)
{
DWORD pID = static_cast<DWORD>(reinterpret_cast<size_t>(id));
DWORD acc... |
////////////////////////////////////////////////////////////////////////////////
// Filename: inputclass.cpp
////////////////////////////////////////////////////////////////////////////////
#include "inputclass.h"
InputClass::InputClass()
{
}
InputClass::InputClass(const InputClass& other)
{
}
InputClass::~InputC... |
#include <AnkleKneeNodelet/ankle_knee_nodelet.hpp>
namespace ankle_knee_nodelet
{
using namespace apptronik_system;
// For Nodelets, use onInit() method instead of constructor
AnkleKneeNodelet::AnkleKneeNodelet():numJoint(2) {
jPos = Eigen::VectorXd::Zero(numJoint);
jVel = Eigen::VectorXd::Zero(num... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commerci... |
/*
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/.
Copyright (c) 2019 Panda Team
*/
#ifndef _METRIC_DISTANCE_K_RANDOM_VOI_CPP
#define _METRIC_DISTANCE_K_RANDOM_VOI_CPP
#incl... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2008 Andreas Gaida
Copyright (C) 2008, 2009 Ralph Schreyer
Copyright (C) 2008, 2009, 2015 Klaus Spanderen
Copyright (C) 2015 Johannes Goettker-Schnetmann
This file is part of QuantLib, a free-software/open-source lib... |
// 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: Zenject.ScriptableObjectInst... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
/**************erik****************/
#include<bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
map<int,int> mp1;
//set<ll> s1;
//set<char>::iterator t;
#define maxm(a,b,c) max(a,max(c,b))
#define minm(a,b,c) m... |
#pragma once
#include "infrastructure/balsa_queue/balsa_queue.hh"
#include "infrastructure/comms/mqtt_comms_factory.hh"
#include "control/quadraframe_model.hh"
namespace jet {
namespace control {
class ControllerBq : public BalsaQ {
public:
ControllerBq();
void init(const Config& config);
void loop();
void... |
#include <marnav/nmea/hdt.hpp>
#include <marnav/nmea/io.hpp>
#include <stdexcept>
namespace marnav
{
namespace nmea
{
constexpr sentence_id hdt::ID;
constexpr const char * hdt::TAG;
hdt::hdt()
: sentence(ID, TAG, talker::integrated_instrumentation)
{
}
hdt::hdt(talker talk, fields::const_iterator first, fields::con... |
#include "field.h"
#include "input_parser.h"
#include <QtTest/QtTest>
#include <QString>
#include <QVector>
class Tests: public QObject {
Q_OBJECT
private slots:
void parser_parse_line();
void parser_fix_row_sizes();
void row_at();
void field_at_const();
void field_at();
void field_neighbo... |
//
// video_toon_effect.cpp
// DTLiving
//
// Created by Dan Jiang on 2020/5/9.
// Copyright © 2020 Dan Thought Studio. All rights reserved.
//
#include "constants.h"
#include "video_toon_effect.h"
#include <sstream>
#include <iostream>
namespace dtliving {
namespace effect {
namespace effect {
std::string Video... |
#include "cURLHeaderDataThreadTask.h"
#include "Interface/ConfigServiceInterface.h"
#include "cURLErrorHelper.h"
#include "Kernel/Logger.h"
#include "Kernel/Stringstream.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
cURLHeaderDataThreadTask::cURLHeaderDat... |
// Copyright © 2022 Brad Howes. All rights reserved.
#include <cmath>
#include <iostream>
#include "SF2Lib/Entity/Generator/Generator.hpp"
using namespace SF2::Entity::Generator;
void
Definition::dump(const Amount& amount) const noexcept
{
Float value = convertedValueOf(amount);
switch (valueKind_) {
case V... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "chainparams.h"
#include "main.h"
#include "db.h"
#incl... |
#define PROBLEM "https://judge.yosupo.jp/problem/cycle_detection"
#include <bits/stdc++.h>
#include "../../lib/graph/cycle_detection.hpp"
using namespace std;
int main() {
int N,M; cin >> N >> M;
lib::graph::cycle_detection_graph g(N);
std::unordered_map<int, std::unordered_map<int, int>> ids;
for(in... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2021, Raspberry Pi (Trading) Ltd.
*
* libcamera_detect.cpp - take pictures when objects are detected
*/
// Example: libcamera-detect --post-process-file object_detect_tf.json --lores-width 400 --lores-height 300 -t 0 --object cat -o cat%03d.jpg
#inclu... |
#include <CGAL/Linear_cell_complex_for_combinatorial_map.h>
#include <CGAL/Linear_cell_complex_constructors.h>
#include <CGAL/Curves_on_surface_topology.h>
#include <CGAL/Path_on_surface.h>
#include <CGAL/draw_face_graph_with_paths.h>
typedef CGAL::Linear_cell_complex_for_combinatorial_map<2,3> LCC_3_cmap;
using names... |
//
// _ _ ______ _ _ _ _ _ _ _
// | \ | | | ____| | (_) | (_) | | | |
// | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | |
// | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | |
// | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_|
// |_| \_|\___/ |______\__,_|_|\... |
#pragma once
#include <algorithm>
#include <array>
#include <random>
#include <stdint.h>
#include <string>
#include <unordered_map>
#include <vector>
namespace util {
bool validateTTL(uint64_t ttlInt);
// Convert ttl string into uint64_t, return bool for success/fail
bool parseTTL(const std::string& ttlString, uint6... |
//
// Created by userwang on 2019/4/14.
//
#include "jni.h"
#include "Listener.h"
Listener::Listener(JavaVM *vm, _JNIEnv *env, jobject obj) {
javaVM = vm;
jniEnv = env;
jobj = obj;
jclass clz = env->GetObjectClass(jobj);
/**
* 1、jclass FindClass(const char* clsName):通过类的全名来... |
#include <Poco/Net/NetException.h>
#include <Core/Defines.h>
#include <Compression/CompressedReadBuffer.h>
#include <Compression/CompressedWriteBuffer.h>
#include <IO/ReadBufferFromPocoSocket.h>
#include <IO/WriteBufferFromPocoSocket.h>
#include <IO/ReadHelpers.h>
#include <IO/WriteHelpers.h>
#include <IO/copyData.h>
#... |
/* <LICENSE>
License for the MULTOVL multiple genomic overlap tools
Copyright (c) 2007-2012, Dr Andras Aszodi,
Campus Science Support Facilities GmbH (CSF),
Dr-Bohr-Gasse 3, A-1030 Vienna, Austria, Europe.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permi... |
#include <numeric>
#include <sstream>
#include <algorithm>
#include "Tools/Exception/exception.hpp"
#include "Module/Encoder/BCH/Encoder_BCH.hpp"
using namespace aff3ct;
using namespace aff3ct::module;
template <typename B>
Encoder_BCH<B>
::Encoder_BCH(const int& K,
const int& N,
const to... |
#ifndef CLICK_FLOWNODES_HH
#define CLICK_FLOWNODES_HH 1
#include <click/allocator.hh>
#include <click/straccum.hh>
#include "../level/flow_level.hh"
#define FLOW_NODE_DEFINE(T,fnt) \
static FlowNodePtr* find_ptr(void* thunk, FlowNodeData data, bool &need_grow) {\
return static_cast<T*>(thunk)->fn... |
// pary owoce i ceny
#include <utility>
#include <iostream>
#include <string>
#include <map> // mapy
using namespace std;
int main()
{
pair <string, double> owoc1 = {"pomidor", 3.45};
pair <string, double> owoc2;
pair <string, double> owoc3;
// zoptymalizowany sposob:
owoc2 = make_pair("cukinia",... |
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <activemasternode.h>
#include <governance/governance-classes.h>
#include <masternode-payments.h>
#include <masterno... |
#include <sf2/sf2.hpp>
#include <mirrage/audio/audio_source_comp.hpp>
#include <mirrage/utils/str_id.hpp>
namespace mirrage::audio {
using namespace ::mirrage::audio::detail;
namespace {
struct Sound_state {
util::Str_id id;
bool loop = false;
float volume = 1.f;
Sound_state() = d... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a=2,b=65;
float f=6.88;
cout<<a<<endl;
cout<<b<<endl;
cout<<(float)a<<endl;
cout<<(int)f<<endl;
cout<<int(f)<<endl;
cout<<(char)b<<endl;
cout<<char(b)<<endl;
return 0;
}
|
/*
* PWM.cpp
*
* Created on: Mar 9, 2017
* Author: kolban
*/
#include "PWM.h"
/**
* @brief Construct an instance.
*
* A timer starts ticking up from 0 to the maximum value of the bit size. When it reaches
* the maximum value, it resets.
*
* In the following example, we create a signal that has a fre... |
/*****************************************************************************\
* ANALYSIS PERFORMANCE TOOLS *
* Extrae *
* Instrumentation package for parallel applications *
**... |
#pragma once
#include "Maths/Maths.hpp"
#include "Maths/Time.hpp"
namespace acid
{
/// <summary>
/// Represents a driver that changes over time.
/// </summary>
class ACID_EXPORT IDriver
{
private:
Time m_length;
Time m_actualTime;
Time m_currentTime;
public:
/// <summary>
/// Creates a new driver wit... |
#include "LuaSource.h"
namespace Engine
{
Reflect_Inherited(LuaSource, Object,
Document_Class("");
Bind_Function(GetPath,
Document("");
Function_Overload
(
Document("");
Overload_Returns(std::string);
Overload_Parameters();
Bind_Parameters(GetPath);
);
);
Bind_Function(Loa... |
#pragma once
template <class T> class Utility;
class StopTimer;
class StartTimer {
public:
Utility<StopTimer> start(const char* msg = "");
private:
};
|
/*
* other/date.cpp
*
*/
#include <ctime>
#include <sstream>
#include "date.h"
Date::Date()
{
time_t timestamp = time(0);
tm* now = localtime(×tamp);
year = now->tm_year + 1900;
month = now->tm_mon + 1;
day = now->tm_mday;
hour = now->tm_hour;
minute = now->tm_min;
... |
#include "system_impl.hpp"
#include "feed_impl.hpp"
#include "room_impl.hpp"
#include "observer_impl.hpp"
#include "pipeline_impl.hpp"
#include <voltu/voltu.hpp>
#include <voltu/types/errors.hpp>
#include <ftl/timer.hpp>
#include <iostream>
using voltu::internal::SystemImpl;
static bool g_isinit = false;
#if defined... |
#define CATCH_CONFIG_MAIN
#include "renderer/raytracer/raytracer.h"
#include "resource.h"
#include <catch.hpp>
SCENARIO("Raytracer with shadow rays")
{
GIVEN("2 raytracers, vertex buffer, render target, lights")
{
cg::renderer::raytracer<cg::vertex, cg::unsigned_color> raytracer;
raytracer.set_viewport(5, 5);... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: The Escort's Shield weapon
//
// $Revision: $
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "weapon_shield.h"
#include "in_buttons.h"
#include ... |
#include "stdafx.h"
#include "CppUnitTest.h"
#include "..\JVM\runtime\OperandStack.h"
#include "..\JVM\runtime\ExecutionEngine.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Tests
{
TEST_CLASS(OperandStackTest)
{
public:
TEST_METHOD(popEmptyStack)
{
OperandStack stack;
aut... |
#include "pch.h"
#include "Helpers.h"
#include "AppSettings.h"
#include "NtDll.h"
#include "SecurityHelper.h"
#include <TlHelp32.h>
#include <wil\resource.h>
bool Helpers::SaveWindowPosition(HWND hWnd, PCWSTR name) {
CRect rc;
::GetWindowRect(hWnd, &rc);
AppSettings::Get().Set(name, rc);
return true;
}... |
/* G - S T E P . C P P
* BRL-CAD
*
* Copyright (c) 2013-2021 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as... |
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from ethereum_public_key_provider.djinni
#ifndef DJINNI_GENERATED_ETHEREUMPUBLICKEYPROVIDER_HPP
#define DJINNI_GENERATED_ETHEREUMPUBLICKEYPROVIDER_HPP
namespace ledger { namespace core { namespace api {
class EthereumPublicKeyProvider {
public:
... |
#pragma once
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2020-01-01
*
* On the date above, in accordance with the Business Source License, use
* of this softw... |
//@beginlicenses@
//@license{chiba-tokyo}{}@
//@license{Grzegorz Jakacki}{2004}@
//
// Copyright (C) 1997-2001 Shigeru Chiba, Tokyo Institute of Technology.
//
// Permission to use, copy, distribute and modify this software and
// its documentation for any purpose is hereby granted without fee,
// provided that the... |
// Copyright 2018 EpicLeaderboard.com, All Rights Reserved.
#include "IEpicLeaderboard.h"
#include "EpicLeaderboardObject.h"
class FEpicLeaderboard : public IEpicLeaderboard
{
/** IModuleInterface implementation */
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};
IMPLEMENT_MODULE( ... |
//===- BypassSlowDivision.cpp - Bypass slow division ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/scroll/scrollbar_theme_overlay.h"
#include "base/message_loop/message_loop.h"
#include "third_party/blink/r... |
/*
* Copyright (C) 2012 Google Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/cast_extension_session.h"
#include "base/bind.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/services/device_sync/remote_device_loader.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/bind.h"
#includ... |
#include "SceneTitle.h"
#include "Input.h"
#include "Render.h"
#include "Textures.h"
#include "Fonts.h"
#include "AudioManager.h"
#include "EntityManager.h"
#include "Map.h"
#include "GUIButton.h"
#include "Log.h"
// Constructor
SceneTitle::SceneTitle(Input* input, Render* render, Textures* tex, AudioManager* audi... |
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest.h>
#include <rmath/generic/base.hpp>
using namespace rmath::generic;
struct tag {};
/**
* could have just check if std::is_pod, but it got deprecated
* in C++20 for aparently people are more interested in particular
* traits that make a pod rather than ... |
// Copyright © 2020-2021 Dakar Wallet.
//
// This file is part of Dakar. The full Dakar copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Util.h"
#include "Base64.h"
#include "HexCoding.... |
/******************************************************************************/
/* Mednafen - Multi-system Emulator */
/******************************************************************************/
/* git.cpp:
** Copyright (C) 2014-2016 Mednafen Team
**
** This program is f... |
/*
* Copyright 2018 WebAssembly Community Group participants
*
* 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... |
#define LOGURU_USE_FMTLIB 1
#include "loguru/loguru.cpp"
namespace nw {
void init_logger(int argc, char* argv[])
{
loguru::init(argc, argv);
}
} // namespace nw
|
/****************************************************************************
*
* Copyright (c) 2013-2020 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t 2>&1 | FileCheck %s
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
int Global;
void *Thread1(void *x) {
sleep(1);
Global++;
return NULL;
}
void *Thread2(void *x) {
Global--;
return NULL;
}
int main() {
pthread_t t[2];
pthread_create(&... |
/* Copyright 2016 The TensorFlow Authors All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... |
#include "ros/ros.h"
#include <serial/serial.h> //ROS已经内置了的串口包
#include <std_msgs/String.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/MagneticField.h>
// #include <std_msgs/Empty.h>
#include "JY901.h"
serial::Serial ser; //声明串口对象
//回调函数
// void write_callback(const std_msgs::String::ConstPtr &msg)
// {
// ... |
#include <string>
#pragma once
namespace pimoroni {
class PicoScroll {
private:
static const uint8_t DEFAULT_ADDRESS = 0x74;
static const uint BUFFER_SIZE = 144;
public:
static const int WIDTH = 17;
static const int HEIGHT = 7;
static const uint8_t A = 12;
static const uint8_t B = 13;
... |
/*
==================================================================================
Copyright (c) 2018-2019 AT&T Intellectual Property.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Licen... |
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Thoralf Klein
* Written (W) 2014 Abinash Panda
* Copyright (C) 2013 Thoralf Klein and Zuse-Institute-Berlin (ZIB)
* Copyright (C) 2014 Abinash Panda
*/
#include <shogun/structure/MultilabelSOLabels.h>
#include... |
// Copyright 2014 Olivier Gillet.
//
// Author: Olivier Gillet (pichenettes@mutable-instruments.net)
//
// 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 witho... |
#include "SimG4Core/CustomPhysics/interface/RHStopDump.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
RHStopDump::RHStopDump(edm::ParameterSet const& parameters)
: mStream(parameters.getParameter<st... |
#include "indexnodesync-interface.h"
#include "indexnode-sync.h"
#include "evo/deterministicmns.h"
CZnodeSyncInterface indexnodeSyncInterface;
void CZnodeSyncInterface::Reset()
{
if (!fEvoIndexnodes)
indexnodeSync.Reset();
masternodeSync.Reset();
}
int CZnodeSyncInterface::GetAssetID()
{
return ... |
#include "StructuredMeshBlock2D.h"
/*////////////////////////////////////////////////////////////////////////////
StructuredMeshBlock2D.cpp
A class to represent a 3D structured mesh.
Copyright 2018 HJA Bird
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated d... |
#pragma once
struct StringReference {};
|
#include "mdns.hpp"
#ifndef WIN32 // XXX
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h> // AF_INET and AF_INET6 on freebsd
#endif
#include <v8.h>
#include "mdns_utils.hpp"
#include "dns_service_ref.hpp"
using namespace v8;
using namespace node;
namespace node_mdns {
#ifdef HAVE_DNSSERVICEG... |
#include <zkutil/ZooKeeper.h>
#include <DB/Interpreters/Context.h>
#include <DB/Common/escapeForFileName.h>
#include <DB/Common/SipHash.h>
#include <DB/Common/UInt128.h>
#include <DB/Databases/DatabaseCloud.h>
#include <DB/Databases/DatabasesCommon.h>
#include <DB/IO/CompressedWriteBuffer.h>
#include <DB/IO/CompressedR... |
//
// MCSMTPCheckAccountOperation.cc
// mailcore2
//
// Created by DINH Viêt Hoà on 1/12/13.
// Copyright (c) 2013 MailCore. All rights reserved.
//
#include "MCSMTPCheckAccountOperation.h"
#include "MCSMTPAsyncSession.h"
#include "MCSMTPSession.h"
using namespace mailcore;
SMTPCheckAccountOperation::SMTPCheckA... |
/*
Copyright 2020 Victor Santos Reis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
#pragma once
//3rd Party
#include <gmpxx.h>
class Object_Counter{
public: static mpz_class Get_Number_Of_Objects_In_The_Library(void);
private: static void Scan_All_The_Sub_Files(mpz_class & number_of_objects); //recursive
};
|
/****************************************************************************
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), t... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/variations/variations_seed_simulator.h"
#include <stddef.h>
#include <map>
#include "base/metrics/field_trial.h"
#include "compone... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/audio/audio_api.h"
#include "base/lazy_instance.h"
#include "base/values.h"
#include "chrome/browser/profiles... |
/*
* GLContext.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "GLContext.h"
namespace LLGL
{
static GLContext* g_activeGLContext = nullptr;
GLContext::GLContext(GLContext* sharedContext)
{
if (sharedCon... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparamsbase.h"
#include "util.h"
#include <assert.h>
#include <boost/assig... |
#pragma once
#include <eos/eoslib/reflect_basic.hpp>
#include <eos/eoslib/raw_region.hpp>
#include <eos/eoslib/full_types_manager.hpp>
#include <eos/eoslib/exceptions.hpp>
#include <eos/eoslib/type_traits.hpp>
namespace eos { namespace types {
using eoslib::is_integral;
using eoslib::is_same;
using eoslib:... |
#include "Log.h"
#include "PendAck.h"
#include "HudpConfig.h"
using namespace hudp;
static uint16_t __id_length = sizeof(uint16_t);
static uint16_t __time_length = sizeof(uint64_t);
static uint16_t __ack_length_limit = __mtu - __time_length - __id_length; // reserved buffer
CPendAck::CPendAck() : _cur_size(0) {
}... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2014-2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
/* 34. Find First and Last Position of Element in Sorted Array
https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ray
*/
class Solution {
public:
int xtreameright(vector<int>&nums,int target,int si,int ei){
if(si>ei){
return -1;
... |
#pragma once
#include <DA-DAPPSio/chain/types.hpp>
namespace DA-DAPPSio { namespace chain {
digest_type make_canonical_left(const digest_type& val);
digest_type make_canonical_right(const digest_type& val);
bool is_canonical_left(const digest_type& val);
bool is_canonical_right(const digest_type& val);
... |
// Copyright Ross MacGregor 2013
// 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)
#pragma once
#include <boost/asio.hpp>
#include "AsioExpress/MessagePort/Tcp/private/MessageP... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "addressbookpage.h"
#include "addresstablemodel.h"
#incl... |
// Copyright (c) 2018 Bita Hasheminezhad
// Copyright (c) 2018 Parsa Amini
// Copyright (c) 2018 Hartmut Kaiser
//
// 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 <phylanx/phylanx.hpp>
#include <hpx/hpx_m... |
#include "PokerState.h"
bool PokerState::isTerminal() const {
if (round == 4) return true;
const auto &history = getCurrentRoundHistory();
if (history.empty()) return false;
return history.back() == 'f';
}
pair<DB, DB> PokerState::getTerminalValue() const {
if (round == 4) {
if (pokerHand.... |
/****************************************************************************
*
* Copyright 2018 Samsung Electronics 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... |
/*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
// stdafx.cpp : source file that includes just the standard includes
// OFMathTest.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/message_loop.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browse... |
// 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.ResourceManagement.Util... |
#include "dangling_pointer.h"
#include<iostream>
//
void dangling_pointer()
{
int * ptr_num = new int(5);
int * ptr = ptr_num;
std::cout << *ptr;
delete ptr_num;
std::cout << *ptr;
ptr_num = nullptr;
//ptr points to invalid
//address
}
|
// neotest.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "resource.h"
#include "icsnVC40.h" // include the neoVI header information
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
... |
/****************************************************************************************
* @author: kzvd4729 created: Apr/28/2020 20:18
* solution_verdict: Accepted language: GNU C++14
* run... |
/* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef TURI_SFRAME_QUERY_ENGINE_INFER_OPERATOR_FIELD_H_
#define TURI_SFRAME_QUERY_ENGINE_INFER_OPER... |
//misaka will carry me to master
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <functional>
#include <numeric>
#include <set>
#include <map>
#define ll long long
#define lb long double
#define sz(vec) ((i... |
//
// Created by fc0310 on 2019/5/22.
//
#include <iostream> // For standard streams
#include <cctype> // For toupper()
#include <map> // For map containers
#include <string> // For string ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.