text stringlengths 54 60.6k |
|---|
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
#ident "$Id$"
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#inclu... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2020, LH_Mouse. All wrongs reserved.
#ifndef POSEIDON_UTILITIES_HPP_
#define POSEIDON_UTILITIES_HPP_
#include "fwd.hpp"
#include "static/async_logger.hpp"
#include "core/abstract_timer.hpp"
#include "static/timer_driver.hpp"
#include <asteria/utilities.hpp>... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2020, LH_Mouse. All wrongs reserved.
#ifndef POSEIDON_UTILITIES_HPP_
#define POSEIDON_UTILITIES_HPP_
#include "fwd.hpp"
#include "static/async_logger.hpp"
#include "core/abstract_timer.hpp"
#include "static/timer_driver.hpp"
#include "core/abstract_async_jo... |
<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 "ppapi/cpp/paint_manager.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/logging.h"
#in... |
<commit_before>#include "main.hpp"
int main()
{
std::ofstream out("log.txt");
std::streambuf *coutbuf = std::cout.rdbuf();
std::cout.rdbuf(out.rdbuf());
fn::Coord::width = 800; fn::Coord::height = 600;
fn::Coord::baseWidth = 800; fn::Coord::baseHeight = 600;
sf::RenderWindow window(sf::VideoMode(800, 600), "",... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>#ifndef __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__UNIFORM_HPP__
#define __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__UNIFORM_HPP__
#include <stan/agrad.hpp>
#include <stan/math/error_handling.hpp>
#include <stan/math/special_functions.hpp>
#include <stan/meta/traits.hpp>
#include <sta... |
<commit_before>#ifndef _SNARKFRONT_DSL_UTILITY_HPP_
#define _SNARKFRONT_DSL_UTILITY_HPP_
#include <array>
#include <cstdint>
#include <iostream>
#include <istream>
#include <ostream>
#include <string>
#include <vector>
#include <snarklib/Util.hpp>
#include <snarkfront/Alg.hpp>
#include <snarkfront/AST.hpp>
#include ... |
<commit_before>#include "../base/SRC_FIRST.hpp"
#include "text_path.hpp"
#include "../geometry/angles.hpp"
namespace graphics
{
TextPath::TextPath()
: m_pv(),
m_fullLength(0),
m_pathOffset(0)
{}
TextPath::TextPath(TextPath const & src, math::Matrix<double, 3, 3> const & m)
{
m_arr.resize... |
<commit_before>/*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the fi... |
<commit_before>#include <fcntl.h>
constexpr size_t ev_buffsz = 512;
#ifdef __linux__
#include "epoll.hpp"
typedef nntpchan::ev::EpollLoop<ev_buffsz> LoopImpl;
#else
#ifdef __freebsd__
#include "kqueue.hpp"
typedef nntpchan::ev::KqueueLoop<ev_buffsz> LoopImpl;
#else
#ifdef __netbsd__
typedef nntpchan::ev::KqueueLoop<e... |
<commit_before>#include <gtest/gtest.h>
#include "../../main/models/baseline/TransitionProbabilityModel.h"
#include "../../main/models/baseline/TransitionProbabilityModelUpdater.h"
#include "../../main/loggers/TransitionModelEndLogger.h"
namespace{
class TestTransitionProbabilityModel : public ::testing::Test {
pu... |
<commit_before>// The MIT License (MIT)
//
// Copyright (c) 2016 Northeastern University
//
// 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>//
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/boostorg/beast
//
//---... |
<commit_before>#include "Random.h"
#include "VectorMath.h"
#include "Common.h"
namespace ECSE
{
std::random_device randomDevice;
std::mt19937 ECSE::randomEngine(randomDevice());
sf::Vector2f ECSE::randomSpreadVector(float midAngle, float angleSpread, float minMag, float maxMag)
{
auto angleDist = std::uniform_re... |
<commit_before>//===- Strings.cpp -------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------... |
<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 "chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h"
#include "base/utf_string_conversions.h"
#include "chrome/app/... |
<commit_before>// Copyright (c) 2011 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.
#if !defined(OS_CHROMEOS)
#include "chrome/browser/ui/webui/options/advanced_options_utils.h"
#include "base/environment.h"
#include ... |
<commit_before>#include "FileChooser.h"
#include "Settings.h"
#include "GUIHelper.h"
#include <QFileDialog>
#include <QDragEnterEvent>
#include <QDropEvent>
#include <QUrl>
#include <QMenu>
#include <QDesktopServices>
#include <QMimeData>
#include <QBoxLayout>
FileChooser::FileChooser(FileChooser::Type type, QWidget *... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: hyphenimp.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-07 19:40:02 $
*
* The Contents of this file are made... |
<commit_before>/*
* RemoteSyslogAppender.cpp
*
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2001, Walter Stroebel. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include "log4cpp/Portability.hh"
#ifdef LOG4CPP_HAVE_UNISTD... |
<commit_before>/*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
... |
<commit_before>// Copyright (c) 2011 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 "app/gfx/gl/gl_implementation.h"
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/string_util.h"
#inclu... |
<commit_before>
#include "base64.h"
#include <iostream>
#include <stdint.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdlib.h>
static char encoding_table[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q',... |
<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 "base/file_util.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "chrome/common/chrome_switches.h"
#... |
<commit_before>/*************************************************************************
*
* $RCSfile: tbxctl.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2004-07-06 13:07:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>#include "core/argparse.h"
#include "core/image.h"
#include "core/imagefilters.h"
#include "core/palette_all.h"
#include "core/io.h"
#include <iostream>
#include <sstream>
#include <iomanip>
using namespace euphoria::core;
int
main(int argc, char* argv[])
{
auto parser = argparse::Parser {"Apply... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2018 ARM Limited
*
* 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
*
*... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
**... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/******************************************************************************
* Copyright 2017 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 ... |
<commit_before>/******************************************************************************
* Copyright 2017 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 ... |
<commit_before>// (C) 2014 Arek Olek
#pragma once
#include <stack>
#include <vector>
#include <boost/graph/adjacency_list.hpp>
#include "range.hpp"
namespace detail {
unsigned typedef node;
std::pair<node, node> typedef edge;
template <class Graph>
void visit(Graph& G, Graph& T, node v,
node& next_ra... |
<commit_before>#pragma once
#include <bitset>
#include <cstring>
#include <iostream>
namespace bitwise {
using std::cout;
using std::ostream;
template <typename A>
class binary final {
template <typename B>
using conref = const B&;
constexpr static size_t sz{sizeof(A)};
constexpr static size_t szB{sz <<... |
<commit_before>#include <node.h>
#include <nan.h>
#include <v8.h>
#include "gamepad/Gamepad.h"
using namespace v8;
Nan::Persistent<Object> persistentHandle;
Nan::AsyncResource asyncResource("gamepad");
NAN_METHOD(nGamepad_init) {
Nan::HandleScope scope;
Gamepad_init();
return;
}
NAN_METHOD(nGamepad_shutdown) ... |
<commit_before>/*
* producer.cpp
*
* Created on: Dec 28, 2012
* Author: partio
*/
#include "producer.h"
using namespace himan;
producer::producer()
: itsFmiProducerId(kHPMissingInt)
, itsProcess(kHPMissingInt)
, itsCentre(kHPMissingInt)
, itsTableVersion(kHPMissingInt)
, itsNeonsName("")
{
}
... |
<commit_before>#include "SysControl.h"
#include "ControlsApp.h"
#include "ControlsXPad360.h"
#include "Engine.h"
#include "App.h"
#include "Engine.h"
#include "App.h"
#include "Input.h"
#include "ObjectGui.h"
#include "WidgetLabel.h"
//解决跨平台字符集兼容问题
#ifdef _WIN32
#pragma execution_character_set("utf-8")
#endif
using ... |
<commit_before>/******************************************************************************
* Copyright 2017 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 ... |
<commit_before>// Include the defined classes that are to be exported to python
#include "IntegratorHPMC.h"
#include "IntegratorHPMCMono.h"
#include "IntegratorHPMCMono_FL.h"
#include "ShapeSphere.h"
#include "ShapeConvexPolygon.h"
#include "ShapePolyhedron.h"
#include "ShapeConvexPolyhedron.h"
#include "ShapeSpheropo... |
<commit_before>/*
* Thread.cpp 15.08.2006 (mueller)
*
* Copyright (C) 2006 by Universitaet Stuttgart (VIS). Alle Rechte vorbehalten.
*/
#include "vislib/Thread.h"
#ifndef _WIN32
#include <unistd.h>
#endif /* !_WIN32 */
#include "vislib/assert.h"
#include "vislib/error.h"
#include "vislib/IllegalPa... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014, Esteban Tovagliari. 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 2015, 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:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>#pragma once
#include "../traits.hpp"
#include "fft2d.pb.h"
#include <thrust/device_vector.h>
namespace cujak {
namespace fft2d {
inline int calc_stride(int Ny) { return Ny / 2 + 1; }
template <typename Container> class wrapper_base {
protected:
const int Nx, Ny, stride, N;
Container &u;
wrappe... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2015 nabijaczleweli
// 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 ... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... |
<commit_before>#ifndef UTILS_LOG_HPP
#define UTILS_LOG_HPP
#include <iostream>
// Older versions of Visual Studio fail compiling this file.
#ifdef DISABLE_LOGGING
# define LOG(...)
# define LOG_WARN(...)
# define LOG_ERROR(...)
# define LOG_DEBUG(...)
# define LOG_DEBUG_WARN(...)
# define LOG_DEBUG_ERROR(... |
<commit_before>/*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/**
** \file libp... |
<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>/*
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) 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 PROTOCOL_MESSAGES_HPP_
#define PROTOCOL_MESSAGES_HPP_
#include <cstdint>
namespace protocol {
namespace message {
struct heartbeat_message_t {
enum { ID = 0x00 };
std::uint8_t seq;
} __attribute__((packed));
struct log_message_t {
enum { ID = 0x01 };
uint32_t time;
char data[100];... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>/*************************************************************************
*
* $RCSfile: office_connect.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: kz $ $Date: 2006-11-06 15:03:17 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
*
* ... |
<commit_before>#pragma once
#include "zmsg_utils.hpp"
#include "zmsg_types.hpp"
namespace zmsg {
template<>
struct zmsg<mid_t::set_fs_spec> {
public:
int32_t window_x_row; // unit: pixel
int32_t window_x_col; // unit: pixel
int32_t window_y_row; // unit: pixel
int32_t window_y_col; // unit: pixel
/*dep... |
<commit_before>////////////////////////////////////////////////////////////////////////
// This file is part of Grappa, a system for scaling irregular
// applications on commodity clusters.
// Copyright (C) 2010-2014 University of Washington and Battelle
// Memorial Institute. University of Washington authorizes use ... |
<commit_before>// Copyright (C) 2015 The Regents of the University of California (Regents).
// 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 r... |
<commit_before>#ifndef ITER_ENUMERATE_H_
#define ITER_ENUMERATE_H_
#include "internal/iterbase.hpp"
#include <utility>
#include <iterator>
#include <functional>
#include <initializer_list>
#include <type_traits>
namespace iter {
namespace impl {
template <typename Container>
class Enumerable;
using En... |
<commit_before>/*
* File: btree.cpp
* Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include "common/sedna.h"
#include "tr/idx/btree/btree.h"
#include "tr/idx/btree/btintern.h"
#include "tr/idx/btree/btpage.h"
#include "tr/idx/btree/btstruct.h"
#include "t... |
<commit_before>/*
* File: other_updates.cpp
* Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include "common/sedna.h"
#include "tr/updates/updates.h"
#include "tr/executor/base/xptr_sequence.h"
#include "tr/mo/mo.h"
#include "tr/auth/auc.h"
#include "tr/lo... |
<commit_before>//
// conflict.cpp
// Parse
//
// Created by Andrew Hunter on 04/06/2011.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#include "conflict.h"
using namespace std;
using namespace contextfree;
using namespace lr;
/// \brief Creates a new conflict object (describing a non-conflict)
co... |
<commit_before>/* gdnet_peer.cpp */
#include "gdnet_peer.h"
GDNetPeer::GDNetPeer(GDNetHost* host, ENetPeer* peer) : _host(host), _peer(peer) {
_host->reference();
}
GDNetPeer::~GDNetPeer() {
_host->unreference();
}
int GDNetPeer::get_peer_id() {
ERR_FAIL_COND_V(_host->_host == NULL, -1);
return (int)(_peer - _h... |
<commit_before>// @(#)root/test:$Name: $:$Id: MainEvent.cxx,v 1.8 2001/01/15 01:28:08 rdm Exp $
// Author: Rene Brun 19/01/97
////////////////////////////////////////////////////////////////////////
//
// A simple example with a ROOT tree
// =================================
//
// This prog... |
<commit_before>/*
* Copyright 2001,2004 The Apache Software 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
*
* Unl... |
<commit_before>// dear imgui, v1.50 WIP
// (demo code)
// Message to the person tempted to delete this file when integrating ImGui into their code base:
// Do NOT remove this file from your project! It is useful reference code that you and other users will want to refer to.
// Everything in this file will be stripped ... |
<commit_before>/*
* benchmark.cpp
*
* Created on: 04.05.2015
* Author: gmueller
*/
#include <iostream>
#include <sstream>
#include <sys/stat.h>
#include <sys/time.h>
#include <omp.h>
#include <quimby/Database.h>
#include <quimby/Grid.h>
#include <quimby/HCube.h>
#include <quimby/tga.h>
using namespace qu... |
<commit_before>//
// Copyright (c) 2008 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef WITHOUT_HSA_BACKEND
#include <string>
#include <sstream>
#include <fstream>
#include <iostream>
#include "os/os.hpp"
#include "rocdevice.hpp"
#include "rocprogram.hpp"
#if defined(WITH_LIGHTNING_COMPILER)
#include "op... |
<commit_before>/*
* Copyright 2011, 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 l... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-... |
<commit_before>/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2010 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.o... |
<commit_before>/*
* main.cpp -- irccd main file
*
* Copyright (c) 2013, 2014, 2015 David Demelier <markand@malikania.fr>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission not... |
<commit_before>#ifndef MANIFOLDS_FUNCTIONS_IS_FUNCTION_HH
#define MANIFOLDS_FUNCTIONS_IS_FUNCTION_HH
#include "function.hh"
#include <type_traits>
#include <utility>
#include <tuple>
namespace manifolds {
//For now just test whether first function is a function
template <class Func>
struct is_function
{
... |
<commit_before>// Copyright 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ozone/wayland/dispatcher.h"
#include "ozone/wayland/display.h"
#include "ozone/wayland/input/kbd_conversion.h"
#include "base/bind.... |
<commit_before>#include <map>
#include <string>
#include <vector>
#include <cmath>
#include "defs.hh"
#include "msfgtest.hh"
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
using namespace std;
CPPUNIT_TEST_SUITE_REGISTRATION (msfgtest);
void msfgtest :: setUp (void)
{
start_end.... |
<commit_before>#include <aikido/constraint/dart.hpp>
#include <aikido/constraint/DifferentiableSubSpace.hpp>
#include <aikido/constraint/StackedConstraint.hpp>
#include <dart/common/StlHelpers.h>
namespace aikido {
namespace constraint {
//=============================================================================
... |
<commit_before>/*
Copyright (c) 2014, Project OSRM, Dennis Luxen, others
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... |
<commit_before>void loopdir() {
// example of script to loop on all the objects of a ROOT file directory
// and print on Postscript all TH1 derived objects
// This script uses the file generated by tutorial hsimple.C
//Author: Rene Brun
TString dir = gSystem->UnixPathName(gInterpreter->GetCurrentMacr... |
<commit_before>/*
* Copyright (C) 2014 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <guido.tack@monash.edu>
*/
/* 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>/*
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Fre... |
<commit_before>#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/Context.h"
#include "cinder/gl/Texture.h"
#include "cinder/Xml.h"
#include "cinder/Timeline.h"
#include "cinder/ImageIo.h"
#include "cinder/Thread.h"
#include "cinder/ConcurrentCircularBuffer.h"
/* The heart of this sampl... |
<commit_before>/*
* CLDevice.cpp
*
* Created on: Oct 24, 2009
* Author: rasmussn
*/
#include "CLDevice.hpp"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#ifdef PV_USE_OPENCL
namespace PV {
static char * load_program_source(const char *filename);
CLDevice::CLDevice(i... |
<commit_before>/*
* CLKernel.cpp
*
* Created on: Aug 1, 2010
* Author: rasmussn
*/
#include "CLKernel.hpp"
#include "CLDevice.hpp"
#include <stdio.h>
#include <sys/stat.h>
namespace PV {
static char * load_program_source(const char *filename);
CLKernel::CLKernel(cl_context context, cl_command_queue comma... |
<commit_before>/*
* Copyright (c) 2002-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>/*
* Copyright 2018 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 "SkFont.h"
#include "SkPath.h"
// This GM shows off a flaw in delta-based rasterizers (DAA, CCPR, etc.).
// See also the bottom of das... |
<commit_before>//**************************************************************************************************
//
// OSSIM Open Source Geospatial Data Processing Library
// See top level LICENSE.txt file for license information
//
//**************************************************************************... |
<commit_before>#define BENCHMARK_FIB
//#define SINGLESTEP
#ifdef BENCHMARK_FIB
# define START 0
# define ENTRY 0
#else
# define START 0
# define ENTRY 0
#endif
#include "timings.h"
#define START_NO 1000000000
#define TIMES 100
#include <libcpu.h>
#include "arch/m88k/libcpu_m88k.h"
#include "arch/m88k/m88k_isa.h"
/... |
<commit_before>//
// yas_ui_collider.cpp
//
#include "yas_observing.h"
#include "yas_property.h"
#include "yas_to_bool.h"
#include "yas_ui_collider.h"
using namespace yas;
#pragma mark - shape
bool ui::anywhere_shape::hit_test(ui::point const &) const {
return true;
}
bool ui::circle_shape::hit_test(ui::point... |
<commit_before>/**
* \file
* \brief staticThreadBlinker example application
*
* \author Copyright (C) 2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
*... |
<commit_before>// This file is part of the "x0" project
// (c) 2009-2014 Christian Parpart <trapni@gmail.com>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://opensource.org/licenses/MIT
/**
*... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: geometrycontrolmodel_impl.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 12:49:20 $
*
* The Contents of th... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../../src/buffer_t.h"
// TODO: use custom version to test use of user-created OpenGL context.
extern "C" int halide_opengl_create_context();
class Image {
public:
enum Layout {
Interleaved, Planar
};
buffer_t buf... |
<commit_before>#include "Halide.h"
using namespace Halide;
Var x("x"), y("y"), c("c");
int main(int argc, char **argv) {
// First define the function that gives the initial state.
{
Func initial;
// The state is just a counter
initial() = 0;
initial.compile_to_file("julia_ini... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: idlc.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2006-04-19 13:45:23 $
*
* The Contents of this file are made avai... |
<commit_before>/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* packInstruct.h - header file for pack instruction definition
*/
#ifndef PACK_INSTRUCT_HPP
#define PACK_INSTRUCT_HPP
#define IRODS_STR_PI ... |
<commit_before>#include <bits/stdc++.h>
using namespace std;
#define DEBUG_ON 1
#define INF 0x3f3f3f3f
#define NSYNC ios::sync_with_stdio(false);
#define FOR(i,a,b) for(int i=a; i<(b); ++i)
#define FOR0(i,b) for(int i=0; i<(b); ++i)
#define TRAV(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it)
#de... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by t... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
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... |
<commit_before>#include <cassert>
#include <cstddef>
#include <cstdint>
#include <type_traits>
#include <utility>
#include <new>
namespace generic
{
template<typename F>
class forwarder;
template<typename R, typename ...A>
class forwarder<R (A...)>
{
public:
forwarder() = default;
template<typename T>
fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.