text stringlengths 54 60.6k |
|---|
<commit_before>#include "TF1.h"
#include "Math/Functor.h"
#include "TStopwatch.h"
#include "RConfigure.h"
#include "Math/RootFinder.h"
#include "Math/DistFunc.h"
#include <iostream>
#include <iomanip>
#include <cmath>
/**
Test of ROOT finder for various function
case = 0 simple function (polynomial)
case ... |
<commit_before>#pragma once
#include <Simple-Web-Server/client_https.hpp>
#include <boost/regex.hpp>
using namespace std;
// ------------------------------------------------------------------------------
// This header contains utilities that depend on HttpsClient.
// They are maintained outside of utilities.hpp to... |
<commit_before>/**
* @file llavatarlist.h
* @brief Generic avatar list
*
* $LicenseInfo:firstyear=2009&license=viewergpl$
*
* Copyright (c) 2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to you under the terms of the... |
<commit_before>#include"../header/IThreadPoolItemBase.hpp"
#include<utility> //forward, move
#include"../../lib/header/thread/CSemaphore.hpp"
#include"../../lib/header/thread/CSmartThread.hpp"
using namespace std;
namespace nThread
{
struct IThreadPoolItemBase::Impl
{
bool destructor;
CSemaphore wait; //to wake ... |
<commit_before>// Copyright (c) 2013, Kenton Varda <temporal@gmail.com>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright ... |
<commit_before>/**
* @file LLNearbyChat.cpp
* @brief Nearby chat history scrolling panel implementation
*
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify i... |
<commit_before>#include "UpdaterWindow.h"
#include "../3RVX/3RVX.h"
#include "../3RVX/Logger.h"
#include "../3RVX/CommCtl.h"
#include "../3RVX/NotifyIcon.h"
#include "resource.h"
UpdaterWindow::UpdaterWindow() :
Window(L"3RVX-UpdateWindow") {
HRESULT hr = LoadIconMetric(
Window::InstanceHandle(),
... |
<commit_before>#if !defined(_TSXX_TS7300_DEVICES_HPP_)
#define _TSXX_TS7300_DEVICES_HPP_
#include <vector>
#include <tsxx/ports.hpp>
namespace tsxx
{
namespace ts7300
{
namespace devices
{
/**
* DIO1 port class.
*/
class
dio1
{
private:
enum { BASE_ADDR = 0x80840000 };
public:
dio1(tsxx::system::memory &memory)... |
<commit_before>/**
* @file llversioninfo.cpp
* @brief Routines to access the viewer version and build information
* @author Martin Reddy
*
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can ... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2010 Kim Jung Nissen <jungnissen@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU L... |
<commit_before>#include "../include/oasis.h"
#ifdef HAVE_PARQUET
#include "../include/oasisparquet.h"
#endif
#include <cstring>
#include <map>
#include <vector>
namespace katparquet {
struct period_event {
int period;
int eventID;
};
bool operator<(const period_event &lhs, const period_event &rhs) {
... |
<commit_before>// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// ... |
<commit_before><commit_msg>fix Generator_makefile<commit_after><|endoftext|> |
<commit_before><commit_msg>PrimitiveVariable : Fix typo<commit_after><|endoftext|> |
<commit_before>#include <fcntl.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/text_format.h>
#include <opencv2/core/core.hpp>
#ifdef USE_OPENCV
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <opencv2... |
<commit_before>#include "theme-loader.h"
#include <QApplication>
#include <QDir>
#include <QFile>
ThemeLoader::ThemeLoader(QString path, QObject *parent)
: QObject(parent), m_path(std::move(path))
{
connect(&m_watcher, &QFileSystemWatcher::fileChanged, this, &ThemeLoader::themeFileChanged);
}
QStringList ThemeLoad... |
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/hdf5/Group.hpp... |
<commit_before><commit_msg>GlobalLanguageObject: Improvements.<commit_after><|endoftext|> |
<commit_before>#include <stdio.h>
#include "Q7Mem.h"
#include "Q7MemAPI.h"
#include "easySocket.h"
int check(Q7Mem *tx,uint64_t rxtime)
{
if( tx->head->packet.header.offset<rxtime )
{
printf("send data is out of date\n");
tx->head->packet.header.offset = (rxtime+1024L)&(-1024L);
}
tx->head->safe = rx... |
<commit_before>/*
* Copyright (C) 2008-2010 The QXmpp developers
*
* Author:
* Manjeet Dahiya
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>// Copyright © 2016 George Georgiev. All rights reserved.
//
#include "task/manager.h"
#include "task/sys/execute_command_task.h"
#include "tpool/task_callback.h"
#include "doim/manager.h"
#include "db/database.h"
#include "err/err_assert.h"
#include "err/err_cppformat.h"
#include "log/log.h"
#include ... |
<commit_before>/**\file
* \brief "Hello World" HTTP Server
*
* \copyright
* Copyright (c) 2015, ef.gy Project Members
* \copyright
* 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 with... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2004-2007 Torsten Rahn <tackat@kde.org>
// Copyright 2007 Inge Walli... |
<commit_before>/**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software packa... |
<commit_before>#include "Exception.hpp"
#include "MeshBoolean.hpp"
#include "libslic3r/TriangleMesh.hpp"
#include "boost/log/trivial.hpp"
#undef PI
// Include igl first. It defines "L" macro which then clashes with our localization
#include <igl/copyleft/cgal/mesh_boolean.h>
#undef L
// CGAL headers
#include <CGAL/Po... |
<commit_before>/*
*
* Copyright (c) 2020 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
<commit_before>#include "watcherSerialize.h"
#include "gpsMessage.h"
using namespace std;
namespace watcher {
namespace event {
INIT_LOGGER(GPSMessage, "Message.GPSMessage");
GPSMessage::GPSMessage(const float &x_, const float &y_, const float &z_) :
Message(GPS_MESSAGE_TYPE, GPS_ME... |
<commit_before>//===- llvm-profdata.cpp - LLVM profile data tool -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>INTEGRATION: CWS oj14 (1.15.38); FILE MERGED 2006/12/19 14:04:58 oj 1.15.38.1: use of XIndexAccess instead of XNameAccess<commit_after><|endoftext|> |
<commit_before>#include <rai/cli/daemon.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <iostream>
#include <fstream>
#include <thread>
rai_daemon::daemon_config::daemon_config () :
peering_port (24000),
rpc_port (25000)
{
}
void rai_daemon::daemon_config::serialize (std::ostream & output_a)
{
boost... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: debug.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: kz $ $Date: 2005-11-02 12:40:17 $
*
* The Contents of this file are made ava... |
<commit_before>/*******************************************************************/
/* XDMF */
/* eXtensible Data Model and Format */
/* */
/* Id : Id */
/* Date ... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>#ifndef JSPROC_JOB_HPP_
#define JSPROC_JOB_HPP_
#include "containers/archive/archive.hpp"
namespace jsproc {
// Declared out here so that its branches are visible at top-level. Only
// actually used in job_result_t.
enum job_result_type_t {
JOB_SUCCESS = 0,
JOB_UNKNOWN_ERROR,
// If we cou... |
<commit_before>/**
* @file cf_test.cpp
* @author Mudit Raj Gupta
*
* Test file for CF class.
*/
#include <mlpack/core.hpp>
#include <mlpack/methods/cf/cf.hpp>
#include <iostream>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
BOOST_AUTO_TEST_SUITE(CFTest);
using namespace mlpack;... |
<commit_before>#include <ros/ros.h>
//ROS libraries
#include <tf/transform_datatypes.h>
//ROS messages
#include <std_msgs/Float32.h>
#include <std_msgs/String.h>
#include <geometry_msgs/Quaternion.h>
#include <geometry_msgs/QuaternionStamped.h>
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include ... |
<commit_before>//
// (c) Copyright 2017 DESY,ESS
//
// This file is part of h5cpp.
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your ... |
<commit_before>/*
* Copyright (c) 2003-2006 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 2011 The LibYuv Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All... |
<commit_before>#include "drape_frontend/visual_params.hpp"
#include "base/macros.hpp"
#include "base/math.hpp"
#include "base/assert.hpp"
#include "geometry/mercator.hpp"
#include "indexer/scales.hpp"
#include "std/target_os.hpp"
#include <algorithm>
#include <cmath>
#include <limits>
#include <utility>
namespace... |
<commit_before># define CATCH_CONFIG_RUNNER
# include "catch.hpp"
# include <cmath>
# include <string>
int gcd(int a, int b)
{
if (b == 0)
{
return a
}
else if(a==0)
{
return b;
}
else
{
return gcd(b, a%b);
}
}
double mileToKilometer(double mile)
{
double kilometer;
kilometer =... |
<commit_before>/*
* Copyright (c) 2014, Nick Potts
* All rights reserved.
*
* 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 at http://mozilla.org/MPL/2.0/.
*/
#include "SHData.h"
#in... |
<commit_before>#include <Halide.h>
#include <stdio.h>
#include <algorithm>
#include <stdlib.h>
#include <iostream>
using namespace Halide;
Var x, y, c;
double square(double x) {
return x * x;
}
template <typename T>
void test_function(Expr e, Image<T> &cpu_result, Image<T> &gpu_result) {
Func cpu, gpu;
... |
<commit_before>#include "extensions/openpower-pels/data_interface.hpp"
#include "extensions/openpower-pels/host_interface.hpp"
#include <fcntl.h>
#include <filesystem>
#include <sdeventplus/source/io.hpp>
#include <gmock/gmock.h>
namespace openpower
{
namespace pels
{
class MockDataInterface : public DataInterface... |
<commit_before>#include "catch.hpp"
#include <iostream>
#include <exception> // std::bad_function_call, std::runtime_error
#include <thread> // std::thread, std::this_thread::yield
#include <mutex> // std::mutex, std::unique_lock
#include <condition_variable> // std::condition_variable
#include <functional> // std::fu... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <visionaray/math/math.h>
#include <visionaray/bvh.h>
#include <visionaray/get_normal.h>
#include <gtest/gtest.h>
using namespace visionaray;
//------------------------------------------------------------... |
<commit_before>/*************************************************************************
*
* $RCSfile: stg.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: mba $ $Date: 2001-02-12 17:16:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
... |
<commit_before>//===--- ProtocolHandlers.cpp - LSP callbacks -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>// Copyright (c) 2014 Quanta Research Cambridge, Inc.
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use... |
<commit_before>/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>// $Id: equation_systems.C,v 1.17 2003-02-17 01:23:01 benkirk Exp $
// The Next Great Finite Element Library.
// Copyright (C) 2002 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Lic... |
<commit_before>/*
* reflection.cc
*
* Copyright (C) 2013 Diamond Light Source
*
* Author: James Parkhurst
*
* This code is distributed under the BSD license, a copy of which is
* included in the root directory of this package.
*/
#include <boost/python.hpp>
#include <boost/python/def.hpp>
#incl... |
<commit_before>/*
* Clutter-Bullet
* Copyright (C) 2010 William Hua
*
* 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 the
* License, or (at your option) any later vers... |
<commit_before>/*
* Copyright (C) 2017 ScyllaDB
*
* Modified by 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... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do ... |
<commit_before>#include "lm/model.hh"
#include "util/file_piece.hh"
#include <cstdlib>
#include <exception>
#include <iostream>
#include <iomanip>
#include <math.h>
#include <stdlib.h>
#ifdef WIN32
#include "util/getopt.hh"
#endif
namespace lm {
namespace ngram {
namespace {
void Usage(const char *name) {
std::c... |
<commit_before>#include "../kontsevich_graph_series.hpp"
#include <ginac/ginac.h>
#include <iostream>
#include <vector>
#include <fstream>
using namespace std;
using namespace GiNaC;
int main(int argc, char* argv[])
{
if (argc != 3)
{
cout << "Usage: " << argv[0] << " <graph-series-filename> <expressio... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xdictionary.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2007-07-26 09:07:48 $
*
* The Contents of this file are ma... |
<commit_before>//
// refract/ExpandVisitor.cc
// librefract
//
// Created by Jiri Kratochvil on 21/05/15.
// Copyright (c) 2015 Apiary Inc. All rights reserved.
//
#include "Element.h"
#include "Visitors.h"
#include "Registry.h"
#include <stack>
namespace refract
{
namespace
{
bool Expandable(co... |
<commit_before>/*
* Copyright, Gambling Holdings Limited, All Rights Reserved.
*/
//System Includes
#include <regex>
#include <cstdio>
#include <vector>
#include <string>
#include <ciso646>
#include <cstdlib>
#include <iostream>
//Project Includes
#include "bet.hpp"
#include "race.hpp"
#include "product.hpp"
#inclu... |
<commit_before>#include <windows.h>
#include "types.h"
#include "renderer.cpp"
u8 CompressColorComponent(float component)
{
return u8(component * 255.0f);
}
LRESULT CALLBACK WindowProc(
HWND window,
UINT message,
WPARAM wParam,
LPARAM lParam)
{
switch (message)
{
case WM_CLOSE:
{
Post... |
<commit_before>#include <nds.h>
#include <stdio.h>
#include <fat.h>
#include <vector>
#include <string>
#include "patches.h"
#include "drunkenlogo.h"
unsigned int rawDataOffset=0;
u8 workbuffer[1024] ALIGN(32);
#define SCREEN_COLS 32
#define ITEMS_PER_SCREEN 10
#define ITEMS_START_ROW 12
#define MAX_DATNAME_LEN 26
... |
<commit_before>#include <CMDParser.hpp>
#include <FileBuffer.hpp>
#include <timevalue.hpp>
#include <clock.hpp>
#include <zmq.hpp>
#include <iostream>
#include <sstream>
namespace{
template <class T>
inline std::string
toString(T value){
std::ostringstream stream;
stream << value;
return stream.st... |
<commit_before>#include "../inc/mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
userdata(UserData::GetInstance())
{
ui->setupUi(this);
createUi();
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::createUi() {
// icon resource... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "version.h"
#include <QFileDialog>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) {
ui->setupUi(this);
ui->PauseResume_Button->setFocus();
planetCountLabel = new QLabel(... |
<commit_before>#include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(this, SIGNAL(updateFilter(QString)),
ui->tabWidget, SLOT(updateFilter(QString)), Qt::UniqueConnection);
connect(this, SIGNAL(insertClimb... |
<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 mhome.
**
** If you have questions regarding the use o... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: PaneChildWindows.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2005-10-24 16:15:40 $
*
* The Contents of this file a... |
<commit_before>#ifndef ENGINE_UTIL_MATH_HPP
#define ENGINE_UTIL_MATH_HPP
#include <SFML/System.hpp>
#include <Box2D/Box2D.h>
namespace engine {
const float fPI = 3.141592654f;
float b2AngleDeg(b2Vec2 from, b2Vec2 to);
inline bool floatEqual(float a, float b, float epsilon) {
return fabsf(a - b) < epsilon;
}
... |
<commit_before>#pragma once
/**
* \file environment.hpp
*
* This header provides an object that can be used to retrieve the necessary
* information about the parallel environment of a layer.
*/
#include <functional>
namespace bulk {
class world;
/**
* This object encodes the parallel environment of this laye... |
<commit_before>
#pragma once
#include "utils.hpp"
#include "cookie_builder.hpp"
#include <boost/noncopyable.hpp>
#include <boost/asio/streambuf.hpp>
#include "lexical_cast.hpp"
#include <boost/format.hpp>
#include <functional>
#include <cassert>
#include <map>
#include <sstream>
#include <time.h>
n... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
Copyright (c) 2008, 2009 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld
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 w... |
<commit_before>#include "../utils/utils.hpp"
#include <cstdio>
#include <vector>
#include <algorithm>
struct DockRobot {
struct Pile;
struct Cranes;
struct Loc {
bool operator==(const Loc &o) const {
return cranes == o.cranes && piles == o.piles;
}
bool operator!=(const Loc &o) const {
return !(*thi... |
<commit_before>/*
Copyright (C) 2014-2018 Nicolas Brown
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... |
<commit_before>#include "vertex.hpp"
namespace mos{
Vertex::Vertex(const glm::vec3 position,
const glm::vec3 normal,
const glm::vec2 uv,
const glm::vec2 uv_lightmap)
: position(position),
normal(normal),
uv(uv),
uv_lightmap(uv_lightmap) {
}
Vertex::Vertex(const float positi... |
<commit_before>// For stat, getcwd
#include <cerrno>
#include <sys/types.h>
#include <sys/stat.h>
#include <libport/unistd.h>
#include <fcntl.h>
// For bad_alloc
#include <exception>
#include <boost/format.hpp>
#include <object/directory.hh>
#include <object/file.hh>
#include <object/path.hh>
namespace object
{
u... |
<commit_before>//
// $Id$
//
#include "AVGImage.h"
#include "IAVGDisplayEngine.h"
#include "AVGPlayer.h"
#include "AVGLogger.h"
#include "IAVGSurface.h"
#include <paintlib/plbitmap.h>
#include <paintlib/planybmp.h>
#include <paintlib/plpngenc.h>
#include <paintlib/planydec.h>
#include <paintlib/Filter/plfilterresize... |
<commit_before>/*
* Copyright (C) 2009-2010, 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.
*/
/**
** \fil... |
<commit_before>/*
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Mar 10, 2014
*/
#include <string>
#include <queue>
#include "tpunit++.hpp"
#include "fakeit.hpp"
using namespace fakeit;
struct Miscellaneous : tpunit::TestFixture
{
Mis... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>#include "CNetwork.hpp"
#include "CLog.hpp"
#include <beast/core/to_string.hpp>
#include <json.hpp>
using json = nlohmann::json;
void CNetwork::Initialize(std::string &&token)
{
m_Token = std::move(token);
m_HttpsStream.set_verify_mode(asio::ssl::verify_none);
// connect to REST API
asio::ip::tc... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* inc... |
<commit_before>#include <map>
#include <gtest/gtest.h>
#include "uint128_t.h"
static const std::map <uint32_t, std::string> tests = {
std::make_pair(2, "10000100000101011000010101101100"),
std::make_pair(3, "12201102210121112101"),
std::make_pair(4, "2010011120111230"),
std::make_pair(5, "1401424... |
<commit_before>#include <ROOT/TDFUtils.hxx>
#include <ROOT/TRootDS.hxx>
#include <ROOT/TSeq.hxx>
#include <TClass.h>
#include <algorithm>
#include <vector>
namespace ROOT {
namespace Experimental {
namespace TDF {
std::vector<void *> TRootDS::GetColumnReadersImpl(std::string_view name, const std::type_info &)
{
c... |
<commit_before><commit_msg>Create solution.cpp<commit_after><|endoftext|> |
<commit_before><commit_msg>Add clusqmgr<commit_after><|endoftext|> |
<commit_before>#include <vpr/vprConfig.h>
#include <cppunit/TestSuite.h>
#include <cppunit/TextTestRunner.h>
#include <cppunit/extensions/MetricRegistry.h>
// Common (sim and real) tests.
#include <TestCases/Socket/SocketTest.h>
#include <TestCases/Socket/NonBlockingSocketsTest.h>
#include <TestCases/Socket/SocketCop... |
<commit_before>/**
Copyright (c) 2017 Ryan Porter
*/
#include "polyDeformerWeights.h"
#include "polyFlipCmd.h"
#include "polyMirrorCmd.h"
#include "polySkinWeights.h"
#include "polySymmetryTool.h"
#include "polySymmetryCmd.h"
#include "polySymmetryNode.h"
#include "sceneCache.h"
#include <maya/MFnPlugin.h>
#inclu... |
<commit_before>///
/// @file primecount.cpp
/// @brief primecount C++ API
///
/// Copyright (C) 2015 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primecount-internal.hpp>
#include <primecount.hpp>
#inc... |
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "common/platform_util.h"
#include <windows.h>
#include <commdlg.h>
#include <dwmapi.h>
#include <shellapi.h>
#include <shlobj.h>
#inc... |
<commit_before>/*
Filename: JSUnsafe.cpp
Purpose: Native memory access and management for Javascript
Part of Engine2D
Copyright (C) 2014 Vbitz
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 o... |
<commit_before>// Copyright (C) 2019 Egor Pugin <egor.pugin@gmail.com>
//
// 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 at http://mozilla.org/MPL/2.0/.
#include <boost/algorithm/string.hpp>
#incl... |
<commit_before>//! Copyright (c) 2013 ASMlover. 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>/*
* Copyright (c) 2003-2010 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.... |
<commit_before>// H264 receiver
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include <ros/ros.h>
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
}
#include <image_transport/image_transport.h>
#include <sensor_msgs/CompressedImage.h>
ros::Publisher g_pub;
AVCodecContext* g_codec = ... |
<commit_before>#include "stdafx.h"
#include "integrators/photonvolume.h"
#include "renderers/samplerrenderer.h"
// #include "integrators/photonmap.cpp"
#include "paramset.h"
#include "montecarlo.h"
#include "rainbow.h"
void PhotonVolumeIntegrator::RequestSamples(Sampler *sampler, Sample *sample,
const Scene *s... |
<commit_before>// nonpareil_sampling - Part of the nonpareil package
// @author Luis M. Rodriguez-R <lmrodriguezr at gmail dot com>
// @license artistic 2.0
// @version 1.0
#define _MULTI_THREADED
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <stdio.h>
#include <math.h>
#include <pthread.h>
#incl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.