text stringlengths 54 60.6k |
|---|
<commit_before>/*!
@file
@copyright Edouard Alligand and Joel Falcou 2015-2017
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_BRIGAND_TYPES_INHERIT_HPP
#define BOOST_BRIGAND_TYPES_INHERIT_HPP
#include <brigand/types/empty_base.hpp>
namespace brigand
{
template<typen... |
<commit_before>#include "Object.hpp"
void Object::add_coordinates(float x, float y, COORDINATE_TYPE type)
{
if(type == WINDOW)
return _window_coordinates.push_back(Coordinate(x, y));
_world_coordinates.push_back(Coordinate(x, y));
}
void Object::add_coordinates(Coordinate coord, COORDINATE_TYPE type)... |
<commit_before>/*
* Copyright (c) 2014 - 2015 Kulykov Oleh <info@resident.name>
*
* 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 limitatio... |
<commit_before>#ifndef CORDIC_HH
#define CORDIC_HH
#include <vpp/vpp.hh>
#include <eigen3/Eigen/Core>
using namespace vpp;
using namespace std;
using namespace Eigen;
#define cordic_1K 0x26DD3B6A
#define half_pi 0x6487ED51
#define MUL 1073741824.000000
#define CORDIC_NTAB 32
int cordic_ctab [] = {0x3243F6A8, 0x1DAC6... |
<commit_before>/*
Copyright 2008 Brain Research Institute, Melbourne, Australia
Written by J-Donald Tournier, 27/06/08.
This file is part of MRtrix.
MRtrix 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 Sof... |
<commit_before>/*
Copyright (c) 2008, 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>#include <mettle.hpp>
using namespace mettle;
#include <sstream>
suite<> test_tuple_alg("tuple algorithms", [](auto &_) {
subsuite<>(_, "tuple_for_until()", [](auto &_) {
using detail::tuple_for_each;
_.test("empty tuple", []() {
std::tuple<> tup;
std::size_t count = 0;
tup... |
<commit_before>
#include <iostream>
#include <unordered_map>
#include <boost/algorithm/string.hpp>
#include <vector>
#include <Galois/Galois.h>
#include <Galois/Graph/Graph.h>
//#include <cstring>
#include <string>
#include <fstream>
using namespace std;
using namespace boost;
typedef enum{pi,po,nd} node_type;
struc... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 "chainparams.h"
#include "assert.h"
#include "core.h"
#include... |
<commit_before>/** @file
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache... |
<commit_before>#include <netdb.h>
#include <unistd.h>
#include <sys/fcntl.h>
#include "client.h"
#include "duckchat.h"
#include "raw.h"
// Variables
struct sockaddr_in client_addr;
struct sockaddr_in server_addr;
int client_socket;
struct addrinfo *server_info;
char *channel;
// Prints an error message and exits th... |
<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define BUFSIZE 121
#define FILENAME "Testfile"
#define TEST_FILENAME "Testfile2"
#define PORT 10038
... |
<commit_before>// 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 <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.... |
<commit_before>// 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 <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.... |
<commit_before>#include <stan/version.hpp>
#include <gtest/gtest.h>
TEST(Stan, macro) {
EXPECT_EQ(2, STAN_MAJOR);
EXPECT_EQ(27, STAN_MINOR);
EXPECT_EQ(0, STAN_PATCH);
}
TEST(Stan, version) {
EXPECT_EQ("2", stan::MAJOR_VERSION);
EXPECT_EQ("28", stan::MINOR_VERSION);
EXPECT_EQ("0", stan::PATCH_VERSION);
}
<... |
<commit_before>// 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 <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.... |
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#incl... |
<commit_before>//=============================================================================
//
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A ... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
<commit_before>/*
* opencog/atoms/reduct/ArithmeticLink.cc
*
* Copyright (C) 2015 Linas Vepstas
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software Foundation and inclu... |
<commit_before>/*
* DefaultPatternMatchCB.cc
*
* Copyright (C) 2008,2009,2014 Linas Vepstas
*
* Author: Linas Vepstas <linasvepstas@gmail.com> February 2008
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 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 a... |
<commit_before>/*
* Copyright (c) 2012, Dennis Hedback
* 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,
* ... |
<commit_before>//wglGetCurrentContext, wglGetCurrentDC
#include <GL/glut.h>
#include "OpenCLManager.h"
#include <boost/scoped_ptr.hpp>
#include <boost/thread/condition.hpp>
//OCL
#include <opencv2/core/ocl.hpp>
#include <CL/cl_gl.h>
#include <CL/cl_d3d11_ext.h>
#include <log4cpp/Category.hh>
// get loggers
static ... |
<commit_before>#include <iostream>
#include <string>
using namespace std;
int main()
{
string s,s1;
int n;
cin>>n;
for(int k=0;k<n;k++)
{
cin>>s;
s1="";
for(int i=s.size()-1;i>=0;i--)
{
s1 += s[i];
}
cout<<s1<<endl;
}
return 0;
}<commit_msg>edits<commit_after>/*
Problem Link: https://www.... |
<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>#include <string.h>
#include "command.h"
#include "../CmdHandler.h"
#include "../option.h"
#include "../sed.h"
#include "../stringparse.h"
#define ON 1
#define OFF 2
/* full name of the command */
CMDNAME("editcom");
/* description of the command */
CMDDESCR("modify a custom command");
/* command usag... |
<commit_before>#ifndef __SIMULATEDANNEALING__
#define __SIMULATEDANNEALING__
#include <iostream>
#include <vector>
#include <cmath>
#include <cfloat>
#include <TRandom.h>
namespace RAT {
class Minimizable {
public:
virtual double operator()(double *args) = 0;
};
template <int D>
class SimulatedAnnealing... |
<commit_before>#pragma once
#include <common.hpp>
#include <complex>
#include <algorithm> // for std::min, max
namespace rack {
/** Supplemental `<cmath>` functions and types
*/
namespace math {
////////////////////
// basic integer functions
////////////////////
/** Returns true if `x` is odd. */
inline bool is... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2017 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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; eit... |
<commit_before>/*=========================================================================
Copyright (c) Kitware Inc.
All rights reserved.
=========================================================================*/
// .SECTION Description
// This program illustrates the use of the vtkHyperTreeGrid
// data set and var... |
<commit_before>/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCpu.h"
#include "SkHalf.h"
#include "SkOnce.h"
#include "SkOpts.h"
#if defined(SK_ARM_HAS_NEON)
#define SK_OPTS_NS neon
#elif SK_CPU_SSE_LEVEL ... |
<commit_before>#ifndef INCLUDED_KONTSEVICH_GRAPH_OPERATOR_
#define INCLUDED_KONTSEVICH_GRAPH_OPERATOR_
#include <ginac/ginac.h>
#include "kontsevich_graph_series.hpp"
#include "util/cartesian_product.hpp"
struct PoissonStructure
{
std::vector<GiNaC::symbol> coordinates;
std::vector< std::vector<GiNaC::ex> > b... |
<commit_before>#include <time.h>
#include <iostream>
#include <fstream>
#include "logger.h"
LoggerBuf::LoggerBuf() : std::streambuf(), m_has_file(false), m_output_to_console(true)
{
}
LoggerBuf::LoggerBuf(const std::string &file_name, bool output_to_console) :
m_file(file_name), m_output_to_console(output_to_console... |
<commit_before>/*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2010-08-13 Markus Litz <Markus.Litz@dlr.de>
* 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
*
* ht... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>#include <string>
#include <Poco/Exception.h>
#include <Poco/XML/XMLWriter.h>
#include "xmlui/XmlValueConsumer.h"
using namespace std;
using namespace Poco;
using namespace BeeeOn;
using namespace BeeeOn::XmlUI;
XmlValueConsumer::XmlValueConsumer(Poco::XML::XMLWriter &writer):
m_writer(writer),
m_i... |
<commit_before>#include <Python.h>
#include <numpy/arrayobject.h>
#include <math.h>
#include <stdlib.h>
#include "numpymacros.h"
// small value, used to avoid division by zero
#define eps 0.0001
// unit vectors used to compute gradient orientation
double uu[9] = {1.0000,
0.9397,
0.7660,
0.500,
0.1736,
-0.... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm 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://ww... |
<commit_before>/*************************************************************************
*
* $RCSfile: numrule.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: cmc $ $Date: 2002-11-18 14:02:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
* Copyright (C) 2005-2020 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>#include "AnomalyBombControllerSystem.h"
#include "Transform.h"
#include "PhysicsBody.h"
#include "AnomalyBomb.h"
#include "PhysicsSystem.h"
#include <PhysicsController.h>
#include <TcpServer.h>
#include "BombActivationPacket.h"
AnomalyBombControllerSystem::AnomalyBombControllerSystem(TcpServer* p_serve... |
<commit_before>/*
* Copyright 2011 Marco Martin <mart@kde.org>
* Copyright 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Found... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// device_test.cpp
//
// Identification: tests/logging/device_test.cpp
//
// Copyright (c) 201CACHE_SIZE, Carnegie Mellon University Database Group
//
//===-------------------------... |
<commit_before><commit_msg>parser: fclose the whitelist after load<commit_after><|endoftext|> |
<commit_before>#include <cap/version.h>
#include <pycap/property_tree_wrappers.h>
#include <pycap/energy_storage_device_wrappers.h>
#include <boost/python.hpp>
#include <string>
#include <memory>
#include <map>
BOOST_PYTHON_MODULE(_pycap)
{
boost::python::class_<pycap::ElectrochemicalImpedanceSpectroscopyData, st... |
<commit_before>/* AFE Firmware for smart home devices
LICENSE: https://github.com/tschaban/AFE-Firmware/blob/master/LICENSE
DOC: http://smart-house.adrian.czabanowski.com/afe-firmware-pl/ */
#include "AFE-Switch.h"
AFESwitch::AFESwitch(){};
AFESwitch::AFESwitch(uint8_t id) { begin(id); }
void AFESwitch::begin(u... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//==================================================... |
<commit_before>/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 Clifford Wolf <clifford@symbioticeda.com>
* Copyright (C) 2018 Miodrag Milanovic <miodrag@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is he... |
<commit_before>#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <asio.hpp>
#include <cassert>
#include <cstdlib>
#include <ctime>
#include <list>
#include <iostream>
#include "common.hxx"
#include "service.hxx"
#include "dispatch.hxx"
using namespace std;
static list<void (*)(void)> maintFuncs;
static asi... |
<commit_before>/**
* Copyright (C) 2013 Aldebaran Robotics
*/
#include <string>
#include <boost/program_options.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <qi/log.hpp>
#include <qi/detail/log.hxx>
#include <qi/applicationsession.hpp>
#include "qicli.hpp"
#define foreach BOO... |
<commit_before>/*
The radical of n, rad(n), is the product of the distinct prime factors of n. For example, 504 = 23 × 32 × 7, so rad(504) = 2 × 3 × 7 = 42.
If we calculate rad(n) for 1 ≤ n ≤ 10, then sort them on rad(n), and sorting on n if the radical values are equal, we get:
....
Let E(k) be the kth element in t... |
<commit_before>#ifndef __SGE_EXCEPTION_HPP
#define __SGE_EXCEPTION_HPP
#include <stdexcept>
#include <string>
namespace sge
{
class Exception : public std::runtime_error
{
public:
Exception(const std::string &domain, const std::string &msg) throw() : runtime_error("[" + domain + "] " + msg... |
<commit_before>// Game_Music_Emu 0.5.5. http://www.slack.net/~ant/
#include "Spc_Emu.h"
#include "blargg_endian.h"
#include <stdlib.h>
#include <string.h>
/* Copyright (C) 2004-2006 Shay Green. This module is free software; you
can redistribute it and/or modify it under the terms of the GNU Lesser
General Public Lic... |
<commit_before>//===- Support/PlatformUtility.cpp - Platform Specific Utilities ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><?hh //strict
/**
* This file is part of hhpack\package.
*
* (c) Noritaka Horio <holy.shared.design@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace hhpack\package;
function any<T>() : (function(T):bool)
{
... |
<commit_before>//===--- CodeGenAction.cpp - LLVM Code Generation Frontend Action ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* jcom.oscroute
* External for Jamoma: parse and pass OpenSoundControl messages
* By Tim Place, Copyright 2006
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "Jamoma.h"
#define MAX_ARGCOUNT 100
#define MAX_MESS_SIZE 2... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMetaImageStreamingWriterIOTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights re... |
<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 distr... |
<commit_before>// © Copyright (c) 2018 SqYtCO
#include "graphiccore.h"
#include "core.h"
#include "openglwidget.h"
#include "hashlifesystem.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QStandardPaths>
#include <QLabel>
#ifdef ENABLE_CALC_TIME_MEASUREMENT
#include <QDebug>
#include <chrono>
#endif
Graphi... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file VoiceTransmissionModeWidget.cpp
* @brief Widget for in-wolrd voice transmission mode selection
*
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "VoiceTransmissionMode... |
<commit_before>/*************************************************************************
*
* $RCSfile: jvmargs.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 15:29:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#ifndef JEZUK_SAX2DOM_PARSER_H
#define JEZUK_SAX2DOM_PARSER_H
#include <SAX/XMLReader.hpp>
#include <SAX/helpers/DefaultHandler.hpp>
#include <SAX/helpers/AttributeTypes.hpp>
#include <DOM/Simple/DOMImplementation.hpp>
#include <DOM/Simple/NotationImpl.hpp>
#include <DOM/Simple/EntityImpl.hpp>
#include ... |
<commit_before>#include "game/ht.h"
#include "game/sdl/hosthelpers.h"
#include "base/tick.h"
#include "base/log.h"
#include "base/thread.h"
#include "base/md5.h"
#include "game/httppackmanager.h"
#include "game/httppackinfomanager.h"
#include "game/httpservice.h"
#include "game/completemanager.h"
#include <sys/types.h>... |
<commit_before>/* Copyright (C) 2019 Marc Stevens.
This file is part of fplll. fplll 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>/*******************************************************************************
*
* X testing environment - Google Test environment feat. dummy x server
*
* Copyright (C) 2011, 2012 Canonical Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software ... |
<commit_before>#include "sphere2.h"
#include "utils.h"
#include <cmath>
namespace batoid {
Sphere2::Sphere2(double R) : _R(R), _Rsq(R*R), _Rinv(1./R), _Rinvsq(1./R/R) {}
#pragma omp declare target
double Sphere2::_sag(double x, double y) const {
if (_R != 0)
return _R*(1-sqrt(1-(x*x +... |
<commit_before>// Copyright Joshua Boyce 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)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com>
#inc... |
<commit_before> /*
* Copyright 2016 The OpenMx Project
*
* 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>#include "lua_shape.h"
#include "lua_context.h"
#include "lua_check.h"
#include "core/logging.h"
namespace bones
{
static const char * kMetaTableShape = "__mt_shape";
static const char * kMethodSetStroke = "setStroke";
static const char * kMethodsetStrokeEffect = "setStrokeEffect";
static const char ... |
<commit_before>//===-- ManagedStatic.cpp - Static Global wrapper -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>#ifndef TILEPLUGIN_HPP
#define TILEPLUGIN_HPP
#include "engine/plugins/plugin_base.hpp"
#include "osrm/json_container.hpp"
#include "util/tile_bbox.hpp"
#include <protozero/varint.hpp>
#include <protozero/pbf_writer.hpp>
#include <string>
#include <cmath>
/*
* This plugin generates Mapbox Vector til... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>#include "fixie/state.hpp"
#include "fixie/fixie_gl_es.h"
#include "fixie/exceptions.hpp"
#include "fixie/debug.hpp"
namespace fixie
{
state::state(const caps& caps)
: _clear_color(0.0f, 0.0f, 0.0f, 0.0f)
, _clear_depth(1.0f)
, _clear_stencil(0)
, _depth_range(0.0f, ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: terminate.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 12:07:40 $
*
* The Contents of this file are made... |
<commit_before>/*
* Copyright 2013, Stephan Aßmus <superstippi@gmx.de>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "TextDocumentTest.h"
#include <math.h>
#include <stdio.h>
#include <LayoutBuilder.h>
#include <ScrollView.h>
#include <Window.h>
#include <private/shared/ToolB... |
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>//===-- asan_malloc_linux.cc ----------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Copyright (c) 2010 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/session_manager.h"
#include <algorithm>
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base... |
<commit_before>/*******************************************************************************
* thrill/common/fast_string.hpp
*
* (Hopefully) fast static-length string implementation.
*
* Part of Project Thrill.
*
* Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com>
*
* This file has no license. Only Chuc... |
<commit_before>/*******************************************************************************
* thrill/core/stage_builder.hpp
*
* Part of Project Thrill.
*
* Copyright (C) 2015 Sebastian Lamm <seba.lamm@gmail.com>
*
* This file has no license. Only Chuck Norris can compile it.
********************************... |
<commit_before>// ================================================================================
// == This file is a part of TinkerBell UI Toolkit. (C) 2011-2013, Emil Segers ==
// == See tinkerbell.h for more information. ==
// ===================================================... |
<commit_before>//****************************************************************************
// SurveySim
//.............................................................................
// written by Noah Kurinsky and Anna Sajina
// The purpose of this program is to use MCMC to determine the luminosity function evolut... |
<commit_before>#include <algorithm>
#include <atomic>
#include <iostream>
#include <limits>
#include <utility>
#include <vector>
#include <getopt.h>
#include <signal.h>
#include <unistd.h>
#include <zcm/zcm-cpp.hpp>
using namespace std;
static atomic_int done {0};
static void sighandler(int signal)
{
done++;
... |
<commit_before>/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/*
* Copyright (c) 2008 litl, LLC
*
* 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, ... |
<commit_before>#ifndef GCN_KEYLISTENER_HPP
#define GCN_KEYLISTENER_HPP
#include <string>
#include "guichan/platform.hpp"
namespace gcn
{
/**
* A KeyListener listens for key events on a widget. When a
* widget recives a key event, the corresponding function
* in all its key listeners will be called. Only fo... |
<commit_before>//===-- llvm-lto2: test harness for the resolution-based LTO interface ----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "Input.h"
void ascii::Input::beginNewFrame()
{
mPressedKeys.clear();
mReleasedKeys.clear();
//take mouse input and update last mouse input
mLastMouseX = mMouseX;
mLastMouseY = mMouseY;
mLastMouseState = mMouseState;
mMouseState = SDL_GetMouseState(&mMouseX, &mMouseY);
mScrollX = 0;
... |
<commit_before>#include <iostream>
#include <OpenMesh/Core/IO/MeshIO.hh>
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
#include <OpenMesh/Core/IO/reader/OBJReader.hh>
#include <OpenMesh/Core/IO/writer/OBJWriter.hh>
#include <OpenMesh/Tools/Decimater/DecimaterT.hh>
#include <OpenMesh/Tools/Decimater/ModQuadricT.... |
<commit_before>#include"all_defines.hpp"
#include"symbols.hpp"
#include"processes.hpp"
#include"mutexes.hpp"
#include<boost/noncopyable.hpp>
#include<string>
#include<map>
void Symbol::copy_value_to(ValueHolderRef& p) {
{AppLock l(m);
/*Unfortunately the entire cloning has to be
done while we have the lock. T... |
<commit_before>/*
* Copyright 2017 Andrei Pangin
*
* 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 ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Graphical Effects module.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
*... |
<commit_before>/* RTcmix - Copyright (C) 2004 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include <Odelay.h>
#include <stdlib.h>
#include <assert.h>
Odelay::Odelay(long defaultLength) : _dli... |
<commit_before>// alembicPlugin
// Initial code generated by Softimage SDK Wizard
// Executed Fri Aug 19 09:14:49 UTC+0200 2011 by helge
//
// Tip: You need to compile the generated code before you can load the plug-in.
// After you compile the plug-in, you can load it by clicking Update All in the Plugin Manager.
#in... |
<commit_before>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QMessageBox>
#include <QtWidgets/QStatusBar>
#include <QtCore/QDir>
#include <QtCore/QFile>
#include <QtCore/QTextStream>
#include <QtCore/QIODevice>
#include <QtGui/QPalette>
#include <QtGui/QColor>
#include <QtGui/QGuiApplication>
#include <QtGui/QC... |
<commit_before>/**
* @file ArdusatLogging.cpp
* @Author Ben Peters (ben@ardusat.com)
* @date December 3, 2014
* @brief Implements functions necessary for logging results to an SD card instead of stdout.
*/
#include <stdio.h>
#include <string.h>
#include "ArdusatLogging.h"
RTC_DS1307 RTC;
SdVolume vol;
SdFa... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <cfloat>
#include <visionaray/math/math.h>
#include <gtest/gtest.h>
using namespace visionaray;
template <typename T>
void test_representability()
{
//-----------------------------------------------... |
<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 "oglWidget.h"
#include <iostream>
//
// CONSTRUCTORS ////////////////////////////////////////////////////////////////
//
/**
* @brief Default constructor for OGLWidget.
*/
OGLWidget::OGLWidget()
{
// Update the widget after a frameswap
connect( this, SIGNAL( frameSwapped() ),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.