text stringlengths 5 1.04M |
|---|
// C/C++ headers
#include <sstream>
// Athena++ headers
#include "hydro.hpp"
#include "../athena.hpp"
#include "../athena_arrays.hpp"
#include "../eos/eos.hpp"
#include "../coordinates/coordinates.hpp"
#include "../thermodynamics/thermodynamics.hpp"
#include "../globals.hpp"
#include "../reconstruct/interpolation.hpp"... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2018-2018 The Galilel developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit... |
//
// Generate some number of antiprotons from proton collisions with target
// vertex only; antiprotons from daughters not permitted.
// based on algorithm in Striganov doc-db 1776, redone by Bernstein
// in doc-db 8448, etc.
//
// Original author Rob Kutschke
//
// CLHEP includes
#include "CLHEP/Units/PhysicalConsta... |
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Common Public
* License Version 1.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.eclipse.org/legal/cpl-v... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLClipPlanesPainter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... |
#include <QClipboard>
#include <QFileDialog>
#include <QFile>
#include <QFont>
#include <QFontDatabase>
#include <QTextStream>
#include <QtGlobal>
#include "log_window.hpp"
LogWindow::LogWindow(QWidget *parent): QDialog(parent){
ui.setupUi(this);
setWindowFlags(windowFlags()
| Qt::WindowMinimizeButtonHint
| Q... |
#include "common/timer.h"
#include "common/logging.h"
#include <iostream>
#include <string>
#include <vector>
// small test program for playing around with spdlog formatting of messages
std::shared_ptr<spdlog::logger> stderrLoggerTest(
const std::string& name,
const std::string& pattern,
const std::vecto... |
/*
This file is a part of JRTPLIB
Copyright (c) 1999-2017 Jori Liesenborgs
Contact: jori.liesenborgs@gmail.com
This library was developed at the Expertise Centre for Digital Media
(http://www.edm.uhasselt.be), a research center of the Hasselt University
(http://www.uhasselt.be). The library is based upon... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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
*
* https://www.apache.o... |
#pragma once
#include "Mesh.h"
Mesh::Mesh(vector<Vertex> vertices, vector<GLuint> indices, vector<Texture> textures)//constructor
{
this->vertices = vertices;
this->indices = indices;
this->textures = textures;
// Now that we have all the required data, set the vertex buffers and its attribute pointers.
this->... |
// $OpenLDAP$
/*
* Copyright 2008-2018 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include "LdifWriter.h"
#include "StringList.h"
#include "LDAPAttribute.h"
#include "debug.h"
#include <sstream>
#include <stdexcept>
LdifWriter::LdifWriter( std::ostream& output... |
// Fizzy: A fast WebAssembly interpreter
// Copyright 2019-2020 The Fizzy Authors.
// SPDX-License-Identifier: Apache-2.0
#include "execute.hpp"
#include "parser.hpp"
#include <nlohmann/json.hpp>
#include <test/utils/floating_point_utils.hpp>
#include <test/utils/hex.hpp>
#include <test/utils/typed_value.hpp>
#include... |
/*
* Copyright 2013 Google 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... |
#include "Camera.h"
Camera::Camera(float r, float phi, float theta) {
rotation = gMatrix4::identity();
up = gVector4(0, 1, 0, 1);
eye = gVector4(0, 0, r, 1);
}
void Camera::increasePhi(float inc) {
rotation = rotation * gMatrix4::rotation3D(gVector4(0, 1, 0, 1), inc);
}
void Camera::increaseTheta(float inc) {
r... |
#include <QApplication>
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QTextDocument> // for Qt::mightBeRichText
#include... |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
#include "dobby_internal.h"
#include "InterceptRouting/InterceptRouting.h"
#include "InterceptRouting/Routing/DynamicBinaryInstrument/dynamic-binary-instrument.h"
PUBLIC int DobbyInstrument(void *address, DBICallTy handler) {
if (!address) {
ERROR_LOG("the function address is 0x0.\n");
return RS_FAILED;
}... |
// Copyright (c) 2014-2015 The Dash Developers
// Copyright (c) 2015-2017 The gormint 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 "db.h"
#include "init.h"
#include "main.... |
#include "include/panel.h"
#include "include/nvidiacontrol.h"
#include "include/settings.h"
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
try {
NvidiaControl nvidia;
Settings settings;
// Check for profiles to apply at start
const auto& gpus = nvidia.getGpus(... |
//
// fcwtplan.cpp
// fCWT
//
// Created by Lukas Arts on 21/12/2020.
// Copyright © 2021 Lukas Arts.
/*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... |
// 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 <map>
#include "base/bind.h"
#include "base/macros.h"
#include "base/run_loop.h"
#include "components/leveldb/public/cpp/remote_iterator.h"
#inc... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmax/LDbSDb.cpp
// \brief Source file for the LDbSDb dense matrix/dense matrix maximum math test
//
// Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
//
// This file is... |
#include "Header.h"
//Use player and dealer object to populate the sum and cards fields
void Screen::updateScreenWithCards(Player* player, Dealer *dealer){
//Update screen with player card values
playerCards.clear();
vector<Card*> playerCardsList = player->getCards();
for (int i=0; i<playerCardsList.size(... |
/*
Problem Statement:
------------------
Write a program to reverse a stack using recursion. You are not allowed to use loop constructs like while, for..etc, and you can only use the following ADT functions on Stack S:
isEmpty(S)
push(S)
pop(S)
*/
// Link -->
// Code:
#include <bits/stdc++.h>
using namespace std... |
/*
* CSS Media Query
*
* Copyright (C) 2005, 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>.
*
* 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 copyrigh... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/Box.hpp>
namespace RED4ext
{
namespace physics {
struct SectorEntry
{
static constexpr const char* NAME = "physicsSectorEntry";... |
// decoder/decoder-wrappers.cc
// Copyright 2014 Johns Hopkins University (author: Daniel Povey)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtai... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
#include <algorithm>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <vector>
#include <string>
#include <cmath>
using std::vector;
using std::string;
using std::pair;
using std::min;
std::ostream & tab(int size)
{
return (std::cout << std::string(size * 3, ' '));
}
std::ostream & operator<<(s... |
// (c) Aleksandr Shevchenko e-mail : Sasha7b9@tut.by
#include "stdafx.h"
#include "GUI/Controls/Tab_.h"
#include "GUI/Controls/Buttons/ButtonSwitch_.h"
#include "GUI/GuiGame/GuiGame.h"
#include "GUI/Panels/PanelBottom.h"
#include "GUI/Panels/PanelMain.h"
#include "GUI/Panels/PanelMap.h"
GuiGame::GuiGame() :
Objec... |
#include <iostream>
#include <set>
using namespace std;
int main()
{
set<int> setname;
setname.insert(1);
setname.insert(5);
setname.insert(9);
setname.insert(0);
setname.insert(2);
setname.insert(3);
setname.insert(2);
setname.insert(5);
for (int i : setname)
{
co... |
/*
* Copyright (C) 2014 Igalia S.L.
*
* 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 and the following dis... |
/*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashMatrix.
*
* 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 ... |
/*****************************************************************************/
/*!
* \file theory.cpp
*
* Author: Clark Barrett
*
* Created: Thu Jan 30 15:11:55 2003
*
* <hr>
*
* License to use, copy, modify, sell and/or distribute this software
* and its documentation for any purpose is hereby granted wit... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "u... |
// @Title: 最小区间 (Smallest Range Covering Elements from K Lists)
// @Author: Singularity0909
// @Date: 2020-08-01 21:35:50
// @Runtime: 168 ms
// @Memory: 12.4 MB
class Solution {
public:
vector<int> smallestRange(vector<vector<int>>& nums)
{
int rangeLeft = 0, rangeRight = INT_MAX;
size_t size... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
#include "CPlyFile5nt.h"
#include <cstdlib> // for atof, atoi, atol, e
#include <cctype> // for isspace()
// For the "C" locale, white-space characters are any of:
// ' ' (0x20) space (SPC)
// '\t' (0x09) horizontal tab (TAB)
// '\n' (0x0a) newline (LF)
// '\v' (0x0b) vertical tab (VT)
// '\f' (0x0c) feed (FF)
// '\r'... |
// Copyright 2014 Open Source Robotics Foundation, 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 appli... |
//
//=======================================================================
// Copyright 2002 Marc Wintermantel (wintermantel@even-ag.ch)
// ETH Zurich, Center of Structure Technologies (www.imes.ethz.ch/st)
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or c... |
/*************************************************************************/
/* sprite.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*************************************************************************/
/* script_text_editor.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <memory>
#include <optional>
#include <sdeventplus/event.hpp>
#include <sdeventplus/exception.hpp>
#include <sdeventplus/test/sdevent.hpp>
#include <type_traits>
namespace sdeventplus
{
namespace
{
using testing::DoAll;
using testing::Return;
using testing::S... |
/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2020 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
#include PACC_PCH
#include <Pacc/Readers/General.hpp>
#include <Pacc/Helpers/Exceptions.hpp>
///////////////////////////////////////////////////
std::string readFileContents(fs::path const& path_)
{
std::ifstream input(path_);
if (!input.is_open())
throw PaccException("failed to open file {} for reading", path_.... |
#include "activeborder.h"
#include <renderer.h>
#include <camera.h>
core::borders::ActiveBorder::ActiveBorder(core::Shared* data) : core::borders::Border(data)
{
}
core::borders::ActiveBorder::~ActiveBorder()
{
}
void core::borders::ActiveBorder::_process()
{
sad::SceneNode * o = th... |
// Copyright 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 "cc/resources/video_resource_updater.h"
#include "base/memory/shared_memory.h"
#include "cc/resources/resource_provider.h"
#include "cc/test/fak... |
//
// Image.cc
//
// Copyright (c) 2010 LearnBoost <tj@learnboost.com>
//
#include "Canvas.h"
#include "Image.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <node_buffer.h>
#ifdef HAVE_GIF
typedef struct {
uint8_t *buf;
unsigned len;
unsigned pos;
} gif_data_t;
#endif
/*
* Read closure... |
// Autogenerated by gameplay-luagen
#include "Base.h"
#include "ScriptController.h"
#include "lua_NodeCloneContext.h"
#include "Animation.h"
#include "AnimationTarget.h"
#include "AudioSource.h"
#include "Base.h"
#include "Drawable.h"
#include "Form.h"
#include "Game.h"
#include "Joint.h"
#include "MaterialParameter.h"... |
/* Copyright 2020 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 law or a... |
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#ifndef _WIN32
#include <cstdlib>
#endif
#include "Chunk.h"
#include "BlockInfo.h"
#include "World.h"
#include "ClientHandle.h"
#include "Server.h"
#include "zlib/zlib.h"
#include "Defines.h"
#include "BlockEntities/Beac... |
/*=========================================================================
Image-based Vascular Analysis Toolkit (IVAN)
Copyright (c) 2012, Iván Macía Oliver
Vicomtech Foundation, San Sebastián - Donostia (Spain)
University of the Basque Country, San Sebastián - Donostia (Spain)
All rights reserved
See LICENSE fil... |
/**
* \file PnlWdbeModAPar_evals.cpp
* job handler for job PnlWdbeModAPar (implementation of availability/activation evaluation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
using namespace std;
using n... |
#include "MicroBit.h"
#include "SerialStreamer.h"
#include "StreamNormalizer.h"
#include "LevelDetector.h"
#include "LevelDetectorSPL.h"
#include "Tests.h"
static NRF52ADCChannel *mic = NULL;
static SerialStreamer *streamer = NULL;
static StreamNormalizer *processor = NULL;
static LevelDetector *level = NULL;
static L... |
/*
scanf implementation test program
Copyright (C) 2021 Sampo Hippeläinen (hisahi)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the ri... |
// Copyright (c) 2017-2018, The EDollar Project
// Copyright (c) 2014-2017, The Monero Project
//
// 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 r... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: BeatmapSaveData
#include "GlobalNamespace/BeatmapSaveData.hpp"
#inclu... |
/*
* Copyright 2001-2002,2007-2009,2016 BitMover, 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 applic... |
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
/**
* File : D.cpp
* Author : Kazune Takahashi
* Created : 2018-8-5 21:32:38
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 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 <wallet/db.h>
#include <addrman.h>
#include <hash.h>
#include <protocol... |
//
// Created by Siddhant on 2019-11-13.
//
#include "iostream"
#include "vector"
#include "string"
#include "unordered_map"
using namespace std;
// PREVIOUS
//
//void addStrToVec(vector<unordered_map<char, vector<int>>> &strLenMap, string &s) {
//
// unordered_map<char, vector<int>> charFrequencyMap;
//
// f... |
/**
* @file
*
* @brief
*
* @copyright BSD License (see doc/LICENSE.md or http://www.libelektra.org)
*/
#include <kdbthread.hpp>
#include <kdbprivate.h>
#include <gtest/gtest.h>
using namespace kdb;
struct test_contextual_update : ::testing::Test
{
test_contextual_update ()
: ks (), gc (), c (gc), i (ks, c,... |
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::Windows::Forms;
using namespace System::ComponentModel;
public ref class Form1: public Form
{
protected:
Button^ button1;
TextBox^ textBox1;
// <Snippet1>
protecte... |
/*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... |
#include "BCPressure.h"
#include "DataProperty/ParameterDouble.h"
#include <QObject>
namespace BCBase
{
BCPressure::BCPressure() : BCVectorBase()
{
_valueX->setDescribe(QObject::tr("Pressure X"));
_valueY->setDescribe(QObject::tr("Pressure Y"));
_valueZ->setDescribe(QObject::tr("Pressure Z"));
}
... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include "Framework/TestingFramework.hpp"
#include <cstddef>
#include <optional>
#include <random>
#include <string>
#include <type_traits>
#include "DataStructures/DataBox/PrefixHelpers.hpp"
#include "DataStructures/DataBox/Prefixes... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_memmove_74a.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.string.label.xml
Template File: sources-sink-74a.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate... |
/*
Copyright (c) Marshall Clow 2010-2012.
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)
For more information, see http://www.boost.org
*/
#ifndef BOOST_ALGORITHM_SEARCH_DETAIL_DEBUG_HPP
#define BOOST_ALG... |
#include "Catch.hpp"
#include "RaZ/Render/Shader.hpp"
#include "RaZ/Utils/Window.hpp"
TEST_CASE("Vertex shader basic") {
// Window created to setup the OpenGL context, which Raz::Shader needs to be instantiated
// TODO: this window should not be created anymore when renderer will be externalized
const Raz::Window w... |
#include "cf_tools.h"
void gaussint(float z, float *p, float *q, double *pdf)
{
//
// normal distribution probabilities accurate to 1.e-15.
// z = no. of standard deviations from the mean.
// p, q = probabilities to the left & right of z. p + q = 1.
// pdf = the probability density.
//
// b... |
/*
* Copyright 2020 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... |
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/globals.h"
#if defined(HOST_OS_FUCHSIA)
#include "vm/os.h"
#include <errno.h>
#include <... |
#include <cstdio>
#include <cstdlib>
#include <vector>
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "stb_image_resize.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include "tinyexr.h"
inline unsigned char ftouc(float f, float gamma)
{
int i = static_cast<int>(255.0f * powf(f, 1.0f / ... |
#pragma once
#include <vector>
#include "PnC/EnvInterface.hpp"
class DracoStateEstimator;
class DracoStateProvider;
class DracoSensorData {
public:
DracoSensorData() {
imu_ang_vel = Eigen::VectorXd::Zero(3);
imu_acc = Eigen::VectorXd::Zero(3);
imu_mag = Eigen::VectorXd::Zero(3);
q = Eigen::VectorX... |
//#ifndef FORCE_DEBUG
//#define NDEBUG
//#endif
#include <string.h>
#include "base/CommandLineParser.h"
#include "aligns/KmerAlignCore.h"
#include "analysis/DNAVector.h"
#include <math.h>
#include "base/FileParser.h"
#include "analysis/KmerTable.h"
#include "analysis/CompMgr.h"
extern "C"
{
#include <sys/types.h>
... |
#include "mocks.h"
namespace RateLimit {
MockClient::MockClient() {}
MockClient::~MockClient() {}
} // RateLimit
|
//
// monero_paymentID_utils.hpp
// Copyright (c) 2014-2018, MyMonero.com
//
// 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... |
/* Dialogue Ellipse Detector
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include "PokemonLA_DialogueEllipseDetector.h"
namespace PokemonAutomation{
namespace NintendoSwitch{
namespace PokemonLA{
DialogueEllipseMatcher::DialogueEllipseMatcher()
: WaterfillTemplateMatch... |
#include <GUILD_BATTLE__CGuildBattleRankManager.hpp>
START_ATF_NAMESPACE
GUILD_BATTLE::CGuildBattleRankManager::CGuildBattleRankManager()
{
using org_ptr = void (WINAPIV*)(struct GUILD_BATTLE::CGuildBattleRankManager*);
(org_ptr(0x1403ca2f0L))(this);
};
void GUILD_BATTLE::CGuildBattleR... |
//=================================================================================================
/*!
// \file src/mathtest/svecsveccross/VCbVCa.cpp
// \brief Source file for the VCbVCa sparse vector/sparse vector cross product math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// Th... |
#include "sysprint.h"
#include <iomanip>
#include <iostream>
using std::cout;
using std::endl;
SysPrint::SysPrint()
{
}
/*!
* \brief SysPrint::printLine prints a simple line for seperating outputs.
*/
void SysPrint::printLine()
{
for (int i = 0; i < 100; i++) cout << "=";
cout << endl;
}
std::string SysPr... |
//===- FastISel.cpp - Implementation of the FastISel class ----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/function/table/range.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/function/table_function.hpp"
namespace duckdb {... |
// Copyright (c) 2011-2016 The Uscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bench.h"
#include "policy/policy.h"
#include "txmempool.h"
#include <list>
#include <vector>
static void AddTx(con... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//High Speed MultiMedia Card Interface
namespace HsmciCr{ ///<Control Register
using Addr = Register::Address<0x40000000,0xffffff70,0x00000000,std::uint32_t>;
///Multi-Media Interface Enable
constexpr Register::FieldLocation... |
#include "playState.h"
#include <iostream>
#include <vector>
#include <GL/gl.h>
using namespace xenfa;
PlayState::PlayState(Application *app):
iGameState(app),
inputManager(*InputManager::getInstance()),
physicsEngine(walls, sectors),
renderEngine(walls, sectors, player, window)
{
readMap("map.txt... |
#include "TrackBuilderItem.h"
#include "Net/UnrealNetwork.h"
#include "Templates/SubclassOf.h"
class UTrackBuilderConnectPoint;
class UTrackBuilderUsable;
class ATrackBuilderSegment;
void ATrackBuilderItem::UpdatePlacement(const FTransform& InTransform, UTrackBuilderConnectPoint* InConnectPoint, bool bPlacementValid,... |
#include "ofxCv/ContourFinder.h"
#include "ofxCv/Wrappers.h"
#include "ofGraphics.h"
namespace ofxCv {
struct CompareContourArea
{
CompareContourArea(const std::vector<double>& areaVec)
: mAreaVec(areaVec) {}
// Sort contour indices into decreasing order, based on a vector of
// contour areas. Later, we w... |
#pragma once
#include "camera.hpp"
#include "engine.hpp"
#include "render_queue.hpp"
#include <sushi/sushi.hpp>
#include <memory>
#include <optional>
namespace ember::ez3d {
/** Model used for rendering */
struct model {
std::shared_ptr<sushi::mesh_group> mesh;
std::shared_ptr<sushi::texture_2d> texture;
... |
#include "common/http/conn_pool_base.h"
#include "common/common/assert.h"
#include "common/http/utility.h"
#include "common/network/transport_socket_options_impl.h"
#include "common/runtime/runtime_features.h"
#include "common/stats/timespan_impl.h"
#include "common/upstream/upstream_impl.h"
namespace Envoy {
namespa... |
#include <stdafx.h>
#include "com.h"
#include <com_objects/com_interface.h>
#include <com_objects/com_tools.h>
#include <com_objects/dispatch_ptr.h>
#include <convert/js_to_native.h>
#include <js_objects/active_x_object.h>
#include <js_objects/global_object.h>
#include <js_objects/internal/global_heap_manager.h>
#inc... |
#include "il2cpp-config.h"
#include "MacOsIPInterfaceProperties.h"
namespace il2cpp
{
namespace icalls
{
namespace System
{
namespace System
{
namespace Net
{
namespace NetworkInformation
{
bool MacOsIPInterfaceProperties::ParseRouteInfo_internal(Il2CppString* iface, Il2CppArray** gw_addr_list)
{
IL2CP... |
#include "YieldCurve.h"
#include <algorithm>
#include <boost/range/combine.hpp>
namespace
{
boost::optional<std::pair<double, double>> None;
}
yield::YieldCurve::YieldCurve(std::unique_ptr<qtime::DayCounter>& dc, const qtime::QDate& t0, std::vector<const instrument::Instrument*> pintr):
t0_(t0)
{
p... |
// Copyright 2022 vlados2003
#include <gtest/gtest.h>
#include "Stack.h"
#include <string>
#include "TestStruct.h"
using std::string;
TEST(unit_test, head_test)
{
Stack<string> stack{};
for(int i=0; i != 5; i++) {
std::string s = std::to_string(i);
stack.push(s);
}
ASSERT_EQ("4", stack.head());
}
TEST(... |
// 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 "chrome/browser/web_applications/web_app.h"
#include <shlobj.h>
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/l... |
// Copyright (c) 2010-2021 LG Electronics, 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... |
//===-- RegisterContextFreeBSDKernel_x86_64.cpp ---------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/**
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "log.hpp"
#include "d3d12_device.hpp"
#include "d3d12_command_queue.hpp"
#include <assert.h>
D3D12CommandQueue::D3D12CommandQueue(D3D12Device *device, ID3D12CommandQueue *original) :
_ori... |
#include "CNWSInvitationDetails.hpp"
#include "API/Functions.hpp"
#include "Platform/ASLR.hpp"
namespace NWNXLib {
namespace API {
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.