text stringlengths 54 60.6k |
|---|
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*************************************************************************
*
* $RCSfile: menubarmanager.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2005-03-01 19:29:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>//
// Created by phitherek on 20.11.15.
//
#include <iostream>
#include <cstdlib>
#include "Converter.h"
#include "ConversionError.h"
using namespace std;
int main() {
cout << "ConversionTest for OziExplorer to UI-View Converter v. 0.2 (C) 2015 by Phitherek_ SO9PH" << std::endl;
try {
C... |
<commit_before>/*************************************************************************
*
* $RCSfile: toolbarmanager.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2005-01-13 18:54:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/**
* Clever programming language
* Copyright (c) Clever Team
*
* This file is distributed under the MIT license. See LICENSE for details.
*/
#ifdef CLEVER_WIN32
# include <direct.h>
# include <windows.h>
#else
# include <dirent.h>
# include <unistd.h>
# include <sys/resource.h>
# include <sys/time... |
<commit_before>#ifndef __FRAMEWORK_XML_TOOLBOXCONFIGURATION_HXX_
#define __FRAMEWORK_XML_TOOLBOXCONFIGURATION_HXX_
#ifndef _SVARRAY_HXX
#include <svtools/svarray.hxx>
#endif
#ifndef _SV_BITMAP_HXX
#include <vcl/bitmap.hxx>
#endif
#ifndef _STRING_HXX
#include <tools/string.hxx>
#endif
#ifndef _COM_SUN_STAR_IO_XINPUTST... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: esdll.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 18:52:36 $
*
* The Contents of this file are made ava... |
<commit_before>/*
* main.cpp (Tutorial04_Query)
*
* This file is part of the "LLGL" project (Copyright (c) 2015 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "../tutorial.h"
class Tutorial04 : public Tutorial
{
LLGL::ShaderProgram* shaderProgram = nullptr;
LLGL::... |
<commit_before><commit_msg>Patch 3137408 - Optimization and bug fix for OgrePose<commit_after><|endoftext|> |
<commit_before>#ifdef HAVE_CONFIG_H
#include <sys_config.h>
#endif
#include "simreadline.h"
#include "commands.h"
#include <arch/MGSystem.h>
#include <sim/config.h>
#ifdef ENABLE_MONITOR
# include <sim/monitor.h>
#endif
#include <sstream>
#include <iostream>
#include <limits>
#ifdef USE_SDL
#include <SDL.h>
#endif
... |
<commit_before>#include "webcam.hpp"
using namespace cv;
using namespace std;
Mat ellipticKernel(int width, int height = -1) {
if (height==-1) {
return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2));
} else {
return getStructuringElement(MORPH_ELLIPSE,Size(width,height), Point(w... |
<commit_before>/*************************************************************************
*
* $RCSfile: poolhelp.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: er $ $Date: 2001-08-02 14:47:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: xeroot.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2003-04-08 16:28:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2012 by Computer Graphics Group, RWTH Aa... |
<commit_before>/*
jabbergroupchatmanager.cpp - Jabber Message Manager for groupchats
Copyright (c) 2004 by Till Gerken <till@tantalo.net>
Kopete (c) 2004 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#pragma once
#include <experimental/optional>
#include <boost/any.hpp>
#include <boost/functional/hash.hpp>
#include <iostream>
#include <sstream>
#include "core/sstring.hh"
#include "core/shared_ptr.hh"
#include "utils/UUID.hh"
#include "net/byteord... |
<commit_before><commit_msg>Service Directory: fail to listen if one of the endpoints failed to bind<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
* Copyright (C) 2015 Felix Rohrbach <kde@fxrh.de>
*
* 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... |
<commit_before>#include "util.h"
#include <iostream>
#include <cstdarg>
#include <cstdio>
using namespace std;
static int verbose_flag = 0;
static int debug_flag = 0;
const int BUFSIZE(200);
static char TEMPOUT[BUFSIZE];
void set_verbose_on() {
verbose_flag = 1;
}
void set_debug_on() {
debug_flag = 1;
}
void... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: unopool.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 06:53:44 $
*
* The Contents of this file are made a... |
<commit_before>#include <algorithm>
#include "huffman.hpp"
#ifndef ENCODER_HPP
#define ENCODER_HPP
namespace cpr
{
namespace huffman
{
class Encoder
{
public:
explicit Encoder(std::vector<unsigned char> const& raw)
: raw_(raw), frequencies_(find_frequencies(raw)), huff_tree_(frequencies_.cbegin(), fr... |
<commit_before>#ifndef SIMDIFY_VEC3
#define SIMDIFY_VEC3
#include "simdify.hpp"
#include "util/inline.hpp"
#define INL SIMDIFY_FORCE_INLINE
namespace simd {
template <typename T>
struct basic_vec3 {
using mm_t = typename T::mm_t;
using fp_t = typename T::fp_t;
using bitmask_t = typen... |
<commit_before>#include <stdexcept>
#include <string>
#include "function.hxx"
function::operator double () const
{
return _fptr(_num, _args);
}
void function::set_param(unsigned idx, double val)
{
if (idx >= _num)
throw std::out_of_range("Index out of range, > than "
+ std::to_string(_num));
_args[... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff/
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_FUNCTIONS_SPE10_HH
#define DUNE_STUFF_FUNCTIONS_SPE10_HH
#in... |
<commit_before>// Solves a zero-sum game using lp_solve
#include "zs_wrap.h"
#include "lp_lib.h"
#include <cstdlib>
#include <iostream>
double* zs_solve_(int nRows, int nCols, double *payoffMatrix) {
lprec *lp;
lp = make_lp(0, nCols);
set_verbose(lp, IMPORTANT);
// Objective function is simply the sum of all... |
<commit_before>/*
* =====================================================================================
*
* Filename: warp.cpp
*
* Description: Demonstrate various projection of an image onto a flat screen
*
* Version: 0.0.1
* Created: 06/03/2014 13:38:27
* Revision: none
*... |
<commit_before>#include "util/bit_packing.hh"
#include "util/exception.hh"
#include <string.h>
namespace util {
namespace {
template <bool> struct StaticCheck {};
template <> struct StaticCheck<true> { typedef bool StaticAssertionPassed; };
// If your float isn't 4 bytes, we're hosed.
//typedef StaticCheck<sizeof... |
<commit_before>/**
* Copyright 2013 Da Zheng
*
* This file is part of SAFSlib.
*
* SAFSlib is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... |
<commit_before>/**
* Copyright 2013 Da Zheng
*
* This file is part of SAFSlib.
*
* SAFSlib is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... |
<commit_before>//===-- CommandObjectDisassemble.cpp ----------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "generator/cross_mwm_osm_ways_collector.hpp"
#include "generator/feature_builder.hpp"
#include "generator/osm_element.hpp"
#include "routing/routing_helpers.hpp"
#include "platform/platform.hpp"
#include "base/assert.hpp"
#include "base/file_name_utils.hpp"
#include "base/logging.hpp"
#incl... |
<commit_before>/*
*/
#include <v8.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <ev.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <node.h>
using namespace v8;
Handle<Value> GetCPUTime(const Arguments& args) {
struct rusage ru;
getrusage(RUSAGE_SEL... |
<commit_before>/*************************************************************************
*
* $RCSfile: anminfo.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkSurface.h"
#include "SkCanvas.h"
#include "SkStream.h"
#include "SkData.h"
extern GrContext* GetGr();
static SkData* fileToData(co... |
<commit_before>/*
* main.cpp
* Program: kalarm
* (C) 2001 - 2004 by David Jarvie <software@astrojar.org.uk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of th... |
<commit_before>/*===========================================================================*\
author: Matthias W. Smith
email: mwsmith2@uw.edu
file: error_estimator_test_root.cxx
notes: Tests the techniques used to estimate the fit errors on the
frequency extraction.
usage:
./error_estimator_test [<output... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: smdetect.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-07 15:12:12 $
*
* The Contents of this file are made ... |
<commit_before>#include "Spritemap.h"
#include "Common.h"
Spritemap::Spritemap()
: m_texture(nullptr), m_currentAnim(nullptr), m_animSet(nullptr), callback(nullptr),
m_currentFrame(0), m_currentTime(sf::Time::Zero)
{
}
Spritemap::Spritemap(const sf::Texture& texture)
: Spritemap()
{
setTexture(textur... |
<commit_before>/*************************************************************************************
* Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@kde.org> *
* *
* This program is free software; you can r... |
<commit_before>#include "Spritemap.h"
#include "Logging.h"
namespace ECSE
{
Spritemap::Spritemap()
: callback(nullptr), m_texture(nullptr), m_animSet(nullptr), m_currentAnim(nullptr),
m_currentTime(sf::Time::Zero), m_currentFrame(0)
{
}
Spritemap::Spritemap(const sf::Texture& texture)
: Spritemap()
{
... |
<commit_before>/**************************
* CMPE-450/CMPE-451 - KEGBOT
* MUX_TEST - Used for PoC
* of testing multiplexers
* with 16 total inputs.
*
* Michael Byers
* Kyle Henry
* Sam Sullivan
* Yue Yu
*/
#include "kegbot_base.h"
int pulses[NUM_METERS] = {0};
int Previous_Pulses[... |
<commit_before>// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
//
// Author: Shuo Chen (chenshuo at chenshuo dot com)
#include <muduo/base/ThreadPool.h>
#include <muduo/base/Exception.h>
#include <boost/bind.hpp>
#include <assert.h>
#include <stdio.h>
using na... |
<commit_before>#include "qtmonkey.hpp"
#include <atomic>
#include <cassert>
#include <iostream>
#ifdef _WIN32 // windows both 32 bit and 64 bit
#include <windows.h>
#else
#include <cerrno>
#include <unistd.h>
#endif
#include <QtCore/QCoreApplication>
#include <QtCore/QTextCodec>
#include <QtCore/QThread>
#include "... |
<commit_before>#include <iostream>
#include <vector>
#include <climits>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <string>
#include <map>
using namespace std;
static int n_flag;
static int min_flag;
static int max_flag;
static int mean_flag;
static int sum_flag;
static int s... |
<commit_before>#pragma sw require header pub.egorpugin.primitives.tools.embedder-master
#pragma sw require header org.sw.demo.lexxmark.winflexbison.bison
void configure(Build &s)
{
/*auto ss = s.createSettings();
ss.Native.LibrariesType = LibraryType::Static;
ss.Native.ConfigurationType = ConfigurationType... |
<commit_before>// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// 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
//
// ... |
<commit_before>#include "SymbolicMath.h"
#include "SymbolicMathFunction.h"
#include "SymbolicMathHelpers.h"
#include "SymbolicMathJITTypes.h"
#include <iostream>
struct Test
{
std::string expression;
std::function<double(double)> native;
};
// clang-format off
const std::vector<Test> tests = {
// obvious simpl... |
<commit_before>#include "FactDB.h"
#include <cstdio>
using namespace std;
using namespace btree;
#define CHUNK_SIZE 1048576
//
// Append To KB
//
void appendToKB(const uint64_t* factStream,
const uint64_t& count,
btree_set<uint64_t>* kb) {
for (uint64_t i = 0; i < count; ++i) {
... |
<commit_before>#include "all.h"
void Graph::addNoodle(Endpoint from, Endpoint to)
{
debug("addNoodle: %s[%s](@%p) -> %s[%s](@%p)\n",
from.block->name(), from.port, from.block,
to.block->name(), to.port, to.block);
vertex_t vert_from, vert_to;
bool found_from = false, found_to = false;
/* see if the from or... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <set>
#include <cstring>
#include <ctime>
#include "Search.h"
#include "Utils.h"
using namespace std;
//
// Static Variables
//
uint64_t nextId = 1;
// TODO(gabor) this is not threadsafe
inline uint64_t generateUniqueId() {
nextId++;
}
//
// Class Path... |
<commit_before>/*
* State.cpp
* Bloom
*
* Created by Robert Hodgin on 2/7/11.
* Copyright 2011 __MyCompanyName__. All rights reserved.
*
*/
#include "State.h"
#include "cinder/gl/gl.h"
#include "cinder/Rect.h"
using std::stringstream;
using namespace ci;
using namespace ci::app;
using namespace std;
Stat... |
<commit_before>#include "persistence.h"
PersistentHomology::PersistentHomology(Filtration* _filtration, bool _retainGenerators) {
filtration = _filtration;
max_d = filtration->maxD();
if( filtration->filtration_size() == 0 ) {
// build filtration
ComputationTimer filtration_timer("filtration com... |
<commit_before>#include <MEII/MEII.hpp>
#include <Mahi/Com.hpp>
#include <Mahi/Util.hpp>
#include <Mahi/Daq.hpp>
#include <Mahi/Robo.hpp>
#include <Mahi/Com.hpp>
#include <vector>
using namespace mahi::util;
using namespace mahi::daq;
using namespace mahi::robo;
using namespace mahi::com;
using namespace meii;
enum s... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#define CATCH_CONFIG_MAIN
#include <stdlib.h>
#include <string.h>
#include "catch.hpp"
#include <cserial.h>
#ifdef _WIN32
#define snprintf _snprintf_s
#define sprintf sprintf_s
#define strcat strcat_s
#endif
TEST_CASE("Loopback send/receive", "[tx][rx][loopback]")
{
struct cserial_port txPort, rxPo... |
<commit_before>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "test.h"
#include "commands.h"
#include "halley.h"
#include "DebugServer.h"
#include "BayeuxClientIface.h"
#include <readline/readline.h>
#include <readline/history.h>
// Tells which mode we are in - either lua or command mode
// ctr... |
<commit_before>#include "gtest/gtest.h"
#include "tools/leosac.hpp"
TEST(sample_test_case, sample_test)
{
EXPECT_EQ(1, 1);
}
<commit_msg>Fixed last commit<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DomBuilderContext.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 13:31:45 $
*
* The Contents of this file ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: HCatalog.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 06:02:34 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: Connection.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: oj $ $Date: 2002-11-21 15:46:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>// TODO: remove hardcoded limits
#include <iostream>
#include <time.h>
#define randomize() (srand((unsigned)time(NULL)))
// Do not changed or you break everything
static int ANZAHL_WUERFE = 10;
static int ANZAHL_SPIELER = 10;
int main() {
using namespace std;
randomize();
cout << "================... |
<commit_before>/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: utils/generate-python-bindings.cpp
*
* Copyright 2016 Patrik Huber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
<commit_before>#include <QtCore>
#include <QMetaObject>
#include "priv/quickfluxfunctions.h"
#include "qffilter.h"
/*!
\qmltype Filter
\brief Add filter rule to AppListener
Filter component listens for the parent's dispatched signal, if a dispatched signal
match with its type, it will emit its own "dispatched" ... |
<commit_before>/* * This file is part of dui-keyboard *
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
* This... |
<commit_before><commit_msg>FENNEL: (LER-5301) fix handling of EAGAIN failures on io_submit<commit_after><|endoftext|> |
<commit_before>#include <gtest/gtest.h>
#include "getcomputername.h"
TEST(GetComputerName,simple)
{
char hostname[HOST_NAME_MAX];
std::string hostnameFunctionTest;
DWORD hostSize = HOST_NAME_MAX;
BOOL getComputerName = GetComputerName(&hostnameFunctionTest[0], &hostSize);
BOOL host = gethostname(... |
<commit_before>/*
* Arm.cpp
*
* Created on: Jan 13, 2011
* Author: Nick Alberts
*/
#include "Arm.h"
void Arm::control_arm_motor( void *object )
{
Arm *instance = (Arm *) object;
instance->upperArmAngle = instance->GetTilt();
// Runs when the difference in angles is large enough
//TODO: fix kCloseEnoug... |
<commit_before>#include <numeric>
#include <set>
#include <arbiter/util/time.hpp>
#include <arbiter/arbiter.hpp>
#include <arbiter/util/transforms.hpp>
#include "config.hpp"
#include "gtest/gtest.h"
using namespace arbiter;
TEST(Env, HomeDir)
{
std::string home;
ASSERT_NO_THROW(home = arbiter::fs::expandT... |
<commit_before>#include <new>
#include <re2/prog.h>
#include <re2/regexp.h>
#include "it.h"
#include "threads.h"
#include "rewriter.h"
#if RE2JIT_VM
#include "it.vm.cc"
#elif __x86_64__
#include "it.x64.cc"
#else
#error "unsupported target platform, try ENABLE_VM=1"
#endif
static const std::map<int, st... |
<commit_before>// Copyright 2020 Google LLC
//
// 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 o... |
<commit_before><commit_msg>Resolves: fdo#87108 crash on saving fodg<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ximpshow.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:12:13 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: logging.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2003-03-27 18:20:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>// Copyright (c) 2018 The Gulden developers
// Authored by: Malcolm MacLeod (mmacleod@gmx.com)
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
#include "init.h"
#include "rpc/register.h"
#includ... |
<commit_before>/**
* Result
* ======
*
* Rust's `std::result` in C++17.
*
* Note: Compile with -std=c++17.
*/
#include <iostream>
#include <variant>
#include <optional>
template <typename T, typename E>
class result {
public:
result() = delete;
~result() = default;
result(const result<T, E>&) ... |
<commit_before>//
// Copyright (c) 2012, University of Erlangen-Nuremberg
// Copyright (c) 2012, Siemens AG
// 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 c... |
<commit_before>#include "AppController.hpp"
#include <future>
#include <chrono>
#include <sstream>
#include <cstdarg>
#include <thread>
#include <unordered_map>
#include <slic3r/GUI/GUI.hpp>
#include <ModelArrange.hpp>
#include <slic3r/GUI/PresetBundle.hpp>
#include <PrintConfig.hpp>
#include <Print.hpp>
#include <P... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: edws.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2007-09-27 08:47:16 $
*
* The Contents of this file are made ava... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: annotsh.hxx,v $
* $Revision: 1.3... |
<commit_before>/*************************************************************************
*
* $RCSfile: frmpage.hxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: hr $ $Date: 2004-03-08 14:08:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>
#ifndef _enum_gen__enum_gen_hpp
#define _enum_gen__enum_gen_hpp
#include <boost/preprocessor.hpp>
#include <cstdint>
#include <cstring>
#include <cassert>
/****************************************************************************/
#define ENUM_GEN_WRAP_SEQUENCE_X(...) \
((__VA_ARGS__)) ENUM_GEN_... |
<commit_before>#include <iostream>
#include <boost/program_options.hpp>
#include "common.h"
#include "scope_guard.h"
#include "context.h"
#include "agenda.h"
#include "commands.h"
#include "errors.h"
#include <sys/ioctl.h>
#include <boost/bind.hpp>
#include <curl/curl.h>
#include "mimes.h"
using namespace es3;
namespa... |
<commit_before>#include <iostream>
#include <boost/program_options.hpp>
#include "common.h"
#include "scope_guard.h"
#include "context.h"
#include "agenda.h"
#include "commands.h"
#include "errors.h"
#include <sys/ioctl.h>
#include <boost/bind.hpp>
#include <curl/curl.h>
#include "mimes.h"
using namespace es3;
namespa... |
<commit_before>#include "wasm-binary.h"
#include "wasm-s-parser.h"
using namespace std;
namespace {
string wast2wasm(string input, bool debug = false) {
wasm::Module wasm;
try {
if (debug) std::cerr << "s-parsing..." << std::endl;
wasm::SExpressionParser parser(const_cast<char*>(input.c_str()));
was... |
<commit_before>#include <cppunit/BriefTestProgressListener.h>
#include <cppunit/TestResult.h>
#include <cppunit/TextTestRunner.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/CompilerOutputter.h>
#include <unistd.h>
namespace {
void printTestTree(CppUnit::Test const* root)
{
std::cerr << roo... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>#include "ssnes_dsp.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "wahwah.h"
#include "inireader.h"
#include "abstract_plugin.hpp"
struct PlugWah : public AbstractPlugin
{
WahWah wah_l;
WahWah wah_r;
float buf[4096];
PlugWah(float freq, float startphas... |
<commit_before>/**
* @file llfloaterdeleteenvpreset.cpp
* @brief Floater to delete a water / sky / day cycle preset.
*
* $LicenseInfo:firstyear=2011&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2011, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/o... |
<commit_before>#include "Board.h"
Board::Board(){ init(); }
void Board::init(){
RawBoard.resize(BOARD_SIZE + 2, vC(BOARD_SIZE + 2));
MovableDir.resize(MAX_TURNS + 1, vvu(BOARD_SIZE + 2, vu(BOARD_SIZE + 2)));
Liberty.resize(BOARD_SIZE + 2, vi(BOARD_SIZE + 2));
rep1(x, BOARD_SIZE) rep1(y, BOARD_SIZE){
RawB... |
<commit_before>/*
This file is part of the clazy static checker.
Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
Author: Sérgio Martins <sergio.martins@kdab.com>
Copyright (C) 2015-2016 Sergio Martins <smartins@kde.org>
This library is free software; you can redistribu... |
<commit_before>/*
This file is part of the E_Rendering library.
Copyright (C) 2009-2012 Benjamin Eikel <benjamin@eikel.org>
Copyright (C) 2009-2012 Claudius Jähn <claudius@uni-paderborn.de>
Copyright (C) 2009-2012 Ralf Petring <ralf@petring.net>
This library is subject to the terms of the Mozilla Public License,... |
<commit_before>#include "Main.hpp"
using namespace std;
unsigned int Level::levelCounter = 0;
string Level::current = "NULL";
string Level::next = "NULL";
Level::Level(string name)
{
init(name, true);
}
void Level::init(string name, bool full)
{
if (name.empty() or (name == "NULL"))
{
current = "level... |
<commit_before>/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for licence. */
#include "NiSkinInstance.h"
#include "NiNode.h"
#include "NiSkinData.h"
#include "NiSkinPartition.h"
#include "NiNode.h"
using namespace Niflib;
//Definition of TYPE constant
const Type Ni... |
<commit_before>#include "Accel.h"
#define MOVING_AVERAGE_INTERVALS 20
#define COMPASS_ROTATE_FRACTION 0.05
#define ACCELEROMETER_FRACTION 0.1
#define ACCELEROMETER_CALIBRATE 0
#define MAG_CALIBRATE_X 0.7
#define MAG_CALIBRATE_Y -0.5
#define MAG_INVERT_Z -1.0
bool Accel::begin() {
// Try to initialise and warn if ... |
<commit_before>#include "Board.hpp"
Board::Board(string& name_, int& width_, int& height_, rapidjson::Value& mods)
: name(name_), width(width_), height(height_) {
this->board.resize(width);
for (size_t i = 0; i < this->board.size(); i++) {
this->board[i].resize(height);
for (int j = 0; j < width; j++) {
... |
<commit_before>#include <iostream>
#include <functions.h>
#include <kiste/raw.h>
struct Data
{
float foo;
};
int main()
{
const auto data = Data{3.1415};
auto& os = std::cout;
auto serializer = kiste::raw{os};
auto sample = test::Sample(data, serializer);
sample.render();
}
<commit_msg>Remove conversion warnin... |
<commit_before>/*
* Copyright (C) 2010-2011, Mathieu Labbe and IntRoLab - Universite de Sherbrooke
*
* This file is part of RTAB-Map.
*
* RTAB-Map is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.