text stringlengths 54 60.6k |
|---|
<commit_before>// BoundingBox.cpp
// Implements the cBoundingBox class representing an axis-aligned bounding box with floatingpoint coords
#include "Globals.h"
#include "BoundingBox.h"
#include "Defines.h"
#if SELF_TEST
/// A simple self-test that is executed on program start, used to verify bbox functionality
... |
<commit_before>#include "mysql.hpp"
#include "CQuery.hpp"
#include "CConnection.hpp"
#include "CDispatcher.hpp"
#include "COptions.hpp"
#include "CLog.hpp"
CConnection::CConnection(const string &host, const string &user, const string &passw, const string &db,
const COptions *options)
{
CLog::Get()->Log(LogLevel::D... |
<commit_before>#include "ModuleManager.hpp"
#include <QPluginLoader>
#include <QApplication>
#include <QObject>
#include <QDir>
#include <QObjectList>
#include <QStringList>
#include <string>
#include "Logger.hpp"
#include "ModuleBase.hpp"
#include "ModuleInterface.hpp"
#include "ErrorException.hpp"
#include "Invalid... |
<commit_before>#include "segmatch/descriptors/eigenvalue_based.hpp"
#include <cfenv>
#include <Eigen/Core>
#include <Eigen/Eigenvalues>
#include <glog/logging.h>
#pragma STDC FENV_ACCESS on
namespace segmatch {
/// \brief Utility function for swapping two values.
template<typename T>
bool swap_if_gt(T& a, T& b) {
... |
<commit_before>/* StreamedMedia channel client-side proxy
*
* Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2009 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... |
<commit_before>#include <babylon/probes/reflection_probe.h>
#include <babylon/cameras/camera.h>
#include <babylon/engine/engine.h>
#include <babylon/engine/scene.h>
#include <babylon/materials/textures/render_target_texture.h>
#include <babylon/mesh/abstract_mesh.h>
namespace BABYLON {
ReflectionProbe::Ref... |
<commit_before><commit_msg>Added `const` modifiers to function arguments.<commit_after><|endoftext|> |
<commit_before>#include "gtest/gtest.h"
// Include pugixml
#include "pugixml.hpp"
#include "pugixml.cpp"
// Include standard headers
#include <cstring> // std::memcmp, std::strcmp, std::strlen, std::strncmp
#include <iostream> // std::cout, std::cin, std::cerr
TEST(xml_must_be_loaded_as_expected, exactum_and_physic... |
<commit_before>#include "CurlHttpPost.h"
CurlHttpPost::CurlHttpPost () : first( NULL ), last( NULL )
{
this->reset();
}
CurlHttpPost::~CurlHttpPost ()
{
this->reset();
}
void CurlHttpPost::reset()
{
curl_httppost *current = this->first;
while ( current ) {
curl_httppost *next = current->... |
<commit_before>#include "List.h"
template <class T>
List<T>::List()
: count(0), tailleMax(LIST_MAX_VALUE)
{
templateList = new T*[tailleMax];
}
template <class T>
List<T>::List(int _setTailleMax)
: count(0), tailleMax(_setTailleMax)
{
templateList = new T*[tailleMax];
}
template <class T>
List<T>::~List()
{
de... |
<commit_before>/*
This file is part of Csound.
Copyright (C) 2014 Rory Walsh
The Csound Library is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Licens... |
<commit_before>#include <stdio.h>
#include <time.h>
int __stdcall MOB_create();
void __stdcall MOB_open(int conId, const char *dns, const char *username, const char *password);
void __stdcall MOB_close(int conId);
void __stdcall MOB_execute(int conId, const char *sql);
int __stdcall MOB_getLastErrorNo(int c... |
<commit_before>/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkSGDraw.h"
#include "SkSGGeometryNode.h"
#include "SkSGInvalidationController.h"
#include "SkSGPaintNode.h"
namespace sksg {
Draw::Draw(sk_sp<Geom... |
<commit_before>// @(#)root/hist:$Id$
// Author: Rene Brun 12/12/94
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*
* Copyright 2019 Couchbase, 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... |
<commit_before>// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Renderer/UberShaderPreprocessor.hpp>
#include <Nazara/Core/ErrorFlags.hpp>
#include <Nazara/Core/File.hpp>
#i... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef CONCURRENCY_WATCHABLE_HPP_
#define CONCURRENCY_WATCHABLE_HPP_
#include <functional>
#include "errors.hpp"
#include <boost/function.hpp>
#include "concurrency/interruptor.hpp"
#include "concurrency/mutex_assertion.hpp"
#include "concurrency... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>
#include "EventLogger.hpp"
using namespace std;
namespace YerFace {
EventLogger::EventLogger(json config, string myEventFile, OutputDriver *myOutputDriver, FrameDerivatives *myFrameDerivatives, double myFrom) {
eventTimestampAdjustment = config["YerFace"]["EventLogger"]["eventTimestampAdjustment"];
... |
<commit_before><commit_msg>prepare test code for next tests<commit_after><|endoftext|> |
<commit_before><commit_msg>CID#1038507 calm coverity nerves about a double free<commit_after><|endoftext|> |
<commit_before>/**
* @Author: Ubi de Feo | Future Tailors
* @Date: 2017-07-09 16:34:07
* @Last Modified by: sbhklr
* @Last Modified time: 2020-05-01 23:34:07
**/
#include "FTDebouncer.h"
#define DEFAULT_DEBOUNCE_DELAY 40
/* CONSTRUCTORS/DESTRUCTOR */
FTDebouncer::FTDebouncer() : _debounceDelay(DEFAULT_DEBOUNCE_DE... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distribu... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlrowi.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-08 20:11:14 $
*
* The Contents of this file are made a... |
<commit_before>#include "pch.h"
#include "Missile.h"
#include "MissileManager.h"
#include "MissilePlayerMelee.h"
#include "GameManager.h"
#include "ComponentManager.h"
#include "StageManager.h"
bool Arthas::MissileManager::init()
{
//ѹ ٲ
m_Missiles.reserve(50);
for (int i = 0; i < 20; ++i)
{
Missile* PlayerMel... |
<commit_before>#pragma once
#include "../util.hpp"
/*
template <typename Weight>
struct Edge{
int from, to; Weight cost;
Edge(int s, int t, Weight c) : from(s), to(t), cost(c) {}
};
*/
using Flow = int;
template <typename Weight>
struct Edge{
int from, to;
Flow cap; int rev;
Weight cost;
Edge(int t) : t... |
<commit_before>
#include <GraphLoader.hpp>
#include <algorithm>
#include <istream>
#include <iomanip>
#include <sstream>
#include <limits>
#include <vector>
#include <unordered_map>
namespace kn
{
Graph* GraphLoader::loadAdjacencyMatrix(char delim, bool directed)
{
Graph* g = new Graph();
std... |
<commit_before>/*************************************************************************
*
* $RCSfile: multistratumbackend.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-05-20 15:43:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: predicateinput.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 05:01:54 $
*
* The Contents of this file are... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "Hearthstone.h"
#include <QFile>
#include <QDesktopServices>
#include <QSettings>
#include <QTextStream>
#include <QRegExp>
#include <QJsonDocument>
#include <QJsonObject>
#ifdef Q_OS_MAC
#include "OSXWindowCapture.h"
#elif defined Q_OS_WIN
#include "WinWindowCapture.h"
#include "Shlobj.h"
#... |
<commit_before>#include "yyltype.h"
#include "ast.h"
#include "bitvariable.h"
#include "generator.h" // Todo refactor away
#include <llvm/IR/Type.h>
#include <llvm/IR/Value.h>
llvm::Value* CExchange::codeGen(CodeGenContext& context)
{
BitVariable lhsVar, rhsVar;
if (!context.LookupBitVariable(lhsVar, lhs.module, ... |
<commit_before>// 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 "content/browser/android/content_startup_flags.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/str... |
<commit_before>/**
* Copyright (c) 2015-2016, The Kovri I2P Router 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 retain the above cop... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include "Stroika/Foundation/DataExchange/OptionsFile.h"
#include "Stroika/Foundation/Debug/Trace.h"
#include "Stroika/Foundation/Execution/ModuleGetterSetter.h"
#include "Stroik... |
<commit_before>// 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.
// This file looks like a unit test, but it contains benchmarks and test
// utilities intended for manual evaluation of the scalers in
... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004-2019 musikcube 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:
//... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Utils/CardSetUtils.hpp>
#include <hspp/Actio... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Utils/CardSetUtils.hpp>
#include <hspp/Actio... |
<commit_before>/* ecpp.cpp
* Copyright (C) 2003-2005 Tommi Maekitalo
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any l... |
<commit_before>#include "tensor.h"
#include "text/table.h"
#include "text/cmdline.h"
#include "math/random.hpp"
#include "tensor/numeric.hpp"
#include "cortex/measure.hpp"
#include "text/table_row_mark.h"
#include <iostream>
namespace
{
using namespace nano;
nano::random_t<scalar_t> rng(scalar_t(-1e-3... |
<commit_before>// -------------------------------------------------------------------
// @author Toby D. Young
//
// Copyright 2014 nil authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:... |
<commit_before>// Source file for the mesh to grid conversion program
// Include files
namespace gaps {}
using namespace gaps;
#include "R3Shapes/R3Shapes.h"
// Program variables
static char *mesh_name = NULL;
static char *grid_name = NULL;
static int min_resolution = 16;
static int max_resolution = 512;
stati... |
<commit_before>#include "Scene.h"
#include "MaterialElement.h"
#include <iostream>
//**************************************************************************************
//-----------------------------------SCENE------------------------------------
//Constructors and destructor
Scene::Scene()
{
}
Scene::~Scene()... |
<commit_before>#include <LD30/Engine.hpp>
#include <LD30/MainMenuState.hpp>
#include <SFML/Window/Event.hpp>
namespace
{
sf::RenderWindow* openWindow(sf::RenderWindow* ptr)
{
int x = ld::Settings::getInt("iResolutionX", 1024);
int y = ld::Settings::getInt("iResolutionY", 600);
std::str... |
<commit_before>#include "LLVM_Headers.h"
#include "LLVM_Output.h"
#include "CodeGen_LLVM.h"
#include "CodeGen_C.h"
#include <iostream>
#include <fstream>
namespace Halide {
llvm::raw_fd_ostream *new_raw_fd_ostream(const std::string &filename) {
std::string error_string;
#if LLVM_VERSION < 35
llvm::raw_fd... |
<commit_before>#include "LLVM_Headers.h"
#include "LLVM_Output.h"
#include "LLVM_Runtime_Linker.h"
#include "CodeGen_LLVM.h"
#include "CodeGen_C.h"
#include "CodeGen_Internal.h"
#include <iostream>
#include <fstream>
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#else
#include <stdio.h>
... |
<commit_before>#include "LLVM_Headers.h"
#include "LLVM_Output.h"
#include "LLVM_Runtime_Linker.h"
#include "CodeGen_LLVM.h"
#include "CodeGen_C.h"
#include "CodeGen_Internal.h"
#include <iostream>
#include <fstream>
namespace Halide {
std::unique_ptr<llvm::raw_fd_ostream> make_raw_fd_ostream(const std::string &file... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* Copyright (C) 2009 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... |
<commit_before>#include<unistd.h>
#include "../include/QueueLock.h"
QueueLock GlobalQueueLock;
void *thread_getlock_start(void *arg1)
{
GlobalQueueLock.GetLock();
cout<<"Lock acquired by"<<" "<<(char*)arg1<<endl;
usleep(1);
GlobalQueueLock.ReleaseLock();
}
int main()
{
int data_value = 5;
QueueLock lock1;
pthr... |
<commit_before>#include <functional>
#include <future>
#include "kernel.h"
#include "coverage.h"
#include "numericrange.h"
#include "numericdomain.h"
#include "columndefinition.h"
#include "table.h"
#include "attributerecord.h"
#include "geos/geom/CoordinateArraySequence.h"
#include "geos/geom/LinearRing.h"
#include "g... |
<commit_before><commit_msg>WaE: pesky gcc 4.0.1<commit_after><|endoftext|> |
<commit_before>/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... |
<commit_before>#include "tagview.h"
using namespace AhoViewer::Booru;
#include "settings.h"
// {{{ Favorite Icons
/**
* These icons are from http://raphaeljs.com/icons
*
* Copyright © 2008 Dmitry Baranovskiy
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and ... |
<commit_before>#include <iostream>
#include <fstream>
#include "builtin_extra.hh"
#include "lisp_ptr.hh"
#include "vm.hh"
#include "procedure.hh"
#include "s_closure.hh"
#include "util.hh"
#include "eval.hh"
#include "env.hh"
#include "equality.hh"
#include "builtin.hh"
#include "zs_error.hh"
#include "cons_util.hh"
#... |
<commit_before>//////////////////////////////////////////////////////////
///////// /////////
//////// ҁ@݂r̃h[x} ////////
/////// ///////
///////////////////////////////////////////////////////
#include "ResultWindow.h"
#include "ParentWindow.h"
#include <DxLib.h>
#include "KeyBoardTools.h"
... |
<commit_before>#pragma once
/**
* FMM evaluator based on dual tree traversal
*/
#include <TransformIterator.hpp>
//! forward definition
template <typename Tree, typename Kernel>
class EvaluatorBase;
template <typename Tree, typename Kernel>
class EvaluatorTreecode : public EvaluatorBase<Tree,Kernel>
{
private:
... |
<commit_before>
#include "Polygon.h"
namespace P_RVD
{
void Polygon::initialize_from_mesh_facet(
const Mesh* _mesh, t_index _facetIdx
)
{
clear();
Facet temp_facet = _mesh->meshFacets.getFacet(_facetIdx);
Vertex* v1 = add_vertex(
Vertex(
_mesh->meshVertices.getPoint(temp_facet.m_v1),
1.0,
_f... |
<commit_before>/**************************************************************************
*
* Copyright 2009-2011 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal... |
<commit_before>// PythonStuff.cpp
#include "stdafx.h"
#include <wx/file.h>
#include <wx/mimetype.h>
#include <wx/process.h>
#include "PythonStuff.h"
#include "ProgramCanvas.h"
#include "OutputCanvas.h"
#include "Program.h"
class CPyProcess : public wxProcess
{
protected:
int m_pid;
public:
CPyProces... |
<commit_before>// PythonStuff.cpp
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include <wx/file.h>
#include <wx/mimetype.h>
#include <wx/process.h>
#include <wx/stdpaths.h>
#include <wx/filename.h>
#include "PythonStuff.h"
#i... |
<commit_before>/*
* Copyright (C) 2008-2010 The QXmpp developers
*
* Authors:
* Manjeet Dahiya
* Jeremy Lainé
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Le... |
<commit_before>#pragma once
#include <type_traits>
#include <archie/meta/eval.hpp>
#include <archie/fused/boolean.hpp>
#include <archie/meta/returns.hpp>
namespace archie {
namespace meta {
template <bool... Xs>
struct conjunction {
private:
static decltype(fused::True) test();
template <typename... Ts>... |
<commit_before>#include "RenderModel.h"
RenderModel::~RenderModel() {
unsigned int vertexCount = sizeof(m_vertexBuffers)/sizeof(m_vertexBuffers[0]);
unsigned int indexCount = sizeof(m_indexBuffers)/sizeof(m_indexBuffers[0]);
unsigned int normalCount = sizeof(m_normalBuffers)/sizeof(m_normalBuffers[0]);
unsigned in... |
<commit_before>/** \file create_literary_remains_records.cc
* \author Dr. Johannes Ruscheinski
*
* A tool for creating literary remains MARC records from Beacon files.
*/
/*
Copyright (C) 2019, Library of the University of Tübingen
This program is free software: you can redistribute it and/or modify... |
<commit_before>#include <cppunit/TestFailure.h>
#include <cppunit/TextTestProgressListener.h>
#include <cppunit/portability/Stream.h>
CPPUNIT_NS_BEGIN
TextTestProgressListener::TextTestProgressListener()
{
}
TextTestProgressListener::~TextTestProgressListener()
{
}
void
TextTestProgressListener::startTest( Tes... |
<commit_before>#include "scheduler.h"
#include "cell.h"
#include "gtest/gtest.h"
#include "io_util.h"
#include "test_util.h"
#include "unistd.h"
#define ROOTFILE "bdmFile.root"
namespace bdm {
namespace scheduler_test_internal {
class TestSchedulerRestore : public Scheduler<> {
public:
explicit TestSchedulerResto... |
<commit_before>#include <cmath>
#include <cstdio>
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 1000000
int s[56];
int getCallerAndCalled(int k, bool over) {
if (over) {
s[k] = (s[k + 55 - 24] + s[k]) % MAX;
}
else {
lon... |
<commit_before>/*
* bench.cpp
*
* Benchmarks of libsrt vs C++ STL
*
* Copyright (c) 2015-2016, F. Aragon. All rights reserved. Released under
* the BSD 3-Clause License (see the doc/LICENSE file included).
*/
#include "../src/libsrt.h"
#include <map>
#include <set>
#include <string>
#if __cplusplus >= 201103L
#... |
<commit_before>/*
* HemisphereA100GPS.cpp
*
* Created on: Nov 5, 2012
* Author: Matthew Barulic
*/
#include "nmeacompatiblegps.h"
#include "nmea.hpp"
#include <string>
NMEACompatibleGPS::NMEACompatibleGPS(string devicePath, uint baudRate)
:serialPort(devicePath, baudRate),
//serialPort("/dev/ttyGPS... |
<commit_before>#include "gtest/gtest.h"
#include <string>
#include <vector>
#include "StateMachine.hpp"
#include "StateMachineBuilder.hpp"
#include "RdUtils.hpp"
#include "InitState.hpp"
#include "GameState.hpp"
#include "MockupNetworkManager.hpp"
#include "RdMockupImageManager.hpp"
#include "MockupInputManager.hpp"
... |
<commit_before>//
// Created by fred on 06/12/16.
//
#include "frnetlib/TcpListener.h"
namespace fr
{
const int yes = 1;
const int no = 0;
Socket::Status TcpListener::listen(const std::string &port)
{
addrinfo *info;
addrinfo hints;
memset(&hints, 0, sizeof(addrinfo));
... |
<commit_before>#include "TeensyDelay.h"
#include "config.h"
namespace TeensyDelay
{
void(*callbacks[maxChannel])(void);
unsigned lastChannel = 0;
void begin()
{
if (USE_TIMER == TIMER_TPM1) { // enable clocks for tpm timers (ftm clocks are enabled by teensyduino)
SIM_SCGC2 |= SIM_S... |
<commit_before>/**
* A class which describes the abstract properties and actions of a
* controller.
*
* @date Jun 2, 2014
* @author Joeri HERMANS
* @version 0.1
*
* Copyright 2013 Joeri HERMANS
*
* Licensed under the Apache License, Version 2.0 (the "License... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCORO_GENERATOR_HPP_INCLUDED
#define CPPCORO_G... |
<commit_before>//Copyright (c) 2017 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "utils/intpoint.h" //To normalize vectors.
#include "utils/math.h" //For round_up_divide.
#include "utils/MinimumSpanningTree.h" //For the
#include "utils/polygonUtils.h" //For moveInside.
#i... |
<commit_before>//This file only exist to document the scripting API with doxygen. This file should NEVER be included ANYWERE
#pragma once
#include "Annwvyn.h"
#include "doxygen_dummy.hpp"
#include "AnnGameObject.hpp"
#include "AnnLevelManager.hpp"
namespace Annwvyn
{
//As a safety measure, if anybody include this f... |
<commit_before>#include <SimpleITKTestHarness.h>
#include <sitkImageFileReader.h>
#include <sitkImageFileWriter.h>
#include <sitkImageHashFilter.h>
#include <sitkPixelContainer.h>
#include <itkIntTypes.h>
#include "itkImage.h"
#include "itkVectorImage.h"
using itk::simple::InstantiatedPixelIDTypeList;
class Pixel... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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)
//======================================... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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)
//======================================... |
<commit_before>/*
Copyright (c) 2003 - 2005, Arvid Norberg, Daniel Wallin
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
notic... |
<commit_before>/*
Copyright (c) 2005, Arvid Norberg
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 condi... |
<commit_before>/*
Copyright (c) 2005, Arvid Norberg
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 condi... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2010 Hermann Kraus
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>#ifndef UNESCAPE_COPY_ROW_HPP
#define UNESCAPE_COPY_ROW_HPP
#include <boost/noncopyable.hpp>
#include <boost/fusion/include/size.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/optional.hpp>
#include <boost/fusion/include/for_each.hpp>
#in... |
<commit_before>//----------------------------------------------------------------------------
/// \file robust_mutex.hpp
/// \author Serge Aleynikov
//----------------------------------------------------------------------------
/// \brief Robust mutex that can be shared between processes.
//--------------------------... |
<commit_before>#include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Input.h"
#include "j1InputManager.h"
#include "j1Textures.h"
#include "j1Audio.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1FadeToBlack.h"
#include "j1PathFinding.h"
#include "j1Gui.h"
#include "j1GuiEntity.h"
#include "j... |
<commit_before>#include "NetworkManagerClient.h"
NetworkManagerClient::NetworkManagerClient(void) : connected(false)
{
if(SDL_Init(0) != 0)
{
std::cerr << "SDL_Init done goofed: " << SDL_GetError() << std::endl;
exit(1);
}
if(SDLNet_Init() != 0)
std::cerr << "SDLNet_Init do... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>/*
This file is part of Csound.
Copyright (C) 2014 Rory Walsh
The Csound Library is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Licens... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
#include <zlib.h>
#include "vector_tile.pb.h"
#define XMAX 4096
#define YMAX 4096
extern "C" {
#include "graphics.h"
#include "clip.h"
}
class env {
public:
mapnik::vector::tile tile;
mapnik::vector::tile_layer *layer;
mapnik::vector::tile_... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2001 The Apache Software Foundation. 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... |
<commit_before>// Copyright (c) 2020 The Orbit 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 <gtest/gtest.h>
#include <memory>
#include <optional>
#include "OrbitBase/Logging.h"
#include "OrbitSsh/Error.h"
#include "Orbi... |
<commit_before>/******************************************************************************\
* gloperate
*
* Copyright (C) 2014 Computer Graphics Systems Group at the
* Hasso-Plattner-Institut (HPI), Potsdam, Germany.
\******************************************************************************/
#include <glopera... |
<commit_before>#include <ir/index_manager/store/FSDirectory.h>
#include <ir/index_manager/store/FSIndexInput.h>
#include <ir/index_manager/store/FSIndexOutput.h>
#include <ir/index_manager/utility/Utilities.h>
#include <dirent.h>
#include <map>
using namespace std;
using namespace izenelib::ir::indexmanager;
FSDire... |
<commit_before>#pragma once
#include <vector>
#include <map>
#include <cstdlib>
#include <optional>
#include "acmacs-base/fmt.hh"
#include "acmacs-base/sfinae.hh"
#include "acmacs-base/to-string.hh"
// ----------------------------------------------------------------------
namespace to_json
{
inline namespace v2... |
<commit_before>#include "dynet/nodes.h"
#include "dynet/dynet.h"
#include "dynet/training.h"
#include "dynet/timing.h"
#include "dynet/rnn.h"
#include "dynet/lstm.h"
#include "dynet/dict.h"
#include "dynet/expr.h"
#include "getpid.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <boost/archive/te... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief ポート・マッピング・オーダー型 @n
ポートの機能設定において、どのピンを利用するかを、選択する「型」
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2021 Kunihito Hiramatsu @n
Released under the MIT license @n
http... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.