text stringlengths 54 60.6k |
|---|
<commit_before>#include <getopt.h>
#include <locale.h>
#include <charconv>
#include <iostream>
#include "auracle/auracle.hh"
#include "auracle/sort.hh"
#include "auracle/terminal.hh"
constexpr char kAurBaseurl[] = "https://aur.archlinux.org";
constexpr char kPacmanConf[] = "/etc/pacman.conf";
struct Flags {
std::... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>// Copyright 2020 The gVisor 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
//
// Unless required by applicab... |
<commit_before>// @(#)root/tree:$Name: $:$Id: TLeafC.cxx,v 1.14 2002/12/13 22:12:55 brun Exp $
// Author: Rene Brun 17/03/97
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#ifndef __NATIVE_ERROR_HPP__
#define __NATIVE_ERROR_HPP__
#include "base/base_utils.hpp"
namespace native {
class Exception {
public:
struct CallStack {
CallStack() = delete;
CallStack(const std::string &iFile, const int iLine, const std::string &iFunction)
: _file(iFile), _line(iLine... |
<commit_before>
#ifndef NDHIST_DTYPE_H_INCLUDED
#define NDHIST_DTYPE_H_INCLUDED 1
#include <stdint.h>
namespace ndhist {
/**
* The dtype_desc class provides a base class for all data type classes
* usable with ndhist. It stores the size of the particular data type in bytes.
*/
class dtype_desc
{
public:
dty... |
<commit_before>/******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>#include "testing/gtest.hh"
#include "viewer/colors/viridis.hh"
#include "viewer/primitives/box.hh"
#include "viewer/primitives/simple_geometry.hh"
#include "viewer/window_3d.hh"
#include "viewer/window_manager.hh"
#include "geometry/import/read_stl.hh"
#include "geometry/spatial/bounding_volume_hierar... |
<commit_before>#include "backenddata.h"
#include "debug.h"
#include "tasks-tarsnap.h"
BackendData::BackendData()
{
}
QMap<QString, JobPtr> BackendData::jobs()
{
return _jobMap;
}
QMap<QString, ArchivePtr> BackendData::archives()
{
return _archiveMap;
}
quint64 BackendData::numArchives()
{
return stati... |
<commit_before>/*
* Copyright 2016 Luca Zanconato
*
* 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>#ifndef RESOURCE_MANAGER_HPP
#define RESOURCE_MANAGER_HPP
#include <iostream>
#include <SDL2/SDL.h>
#include <string>
#include <map>
#include <iostream>
#include <SDL2/SDL_image.h>
#ifdef __EMSCRIPTEN__
#include <SDL/SDL_mixer.h>
#else
#include <SDL2/SDL_mixer.h>
#endif
class ResourceManager {
public: ... |
<commit_before>#ifndef RECURSE_HPP
#define RECURSE_HPP
#include <QCoreApplication>
#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
#include <QHostAddress>
#include <QHash>
#include <QStringBuilder>
#include <QVector>
#include "request.hpp"
#include "response.hpp"
#include <functional>
using std::functi... |
<commit_before>/* Filename: intelhex.cc
* Routines for reading/writing Intel INHX8M and INHX32 files
* Copyright Brandon Fosdick 2001
* This software and all of its components are available under the BSD License
* For a copy of the BSD License see http://www.freebsd.org
* */
#include <stdio.h>
#include <stdlib.h>... |
<commit_before>#ifndef V_SMC_SAMPLER_HPP
#define V_SMC_SAMPLER_HPP
#include <map>
#include <stdexcept>
#include <string>
#include <vector>
#include <gsl/gsl_cblas.h>
#include <boost/function.hpp>
#include <vDist/rng/gsl.hpp>
#include <vDist/tool/buffer.hpp>
#include <vSMC/history.hpp>
#include <vSMC/monitor.hpp>
#incl... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 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 "sensorsConfigurationWidget.h"
#include "ui_sensorsConfigurationWidget.h"
#include "../../../../qrkernel/settingsManager.h"
using namespace qReal::interpreters::robots;
using namespace qReal::interpreters::robots::details;
SensorsConfigurationWidget::SensorsConfigurationWidget(bool autosaveMod... |
<commit_before>#include <mpi.h>
#include <iostream>
#include <vector>
// using TCLAP for command line parsing
#include <tclap/CmdLine.h>
// parallel block decomposition of a file
#include <mxx/file.hpp>
// suffix array construction
#include <suffix_array.hpp>
#include <alphabet.hpp> // for random DNA
#include <tim... |
<commit_before>/**
* @file ArgumentParserTest.cpp
* @brief ArgumentParser class tester.
* @author zer0
* @date 2019-10-09
*/
#include <gtest/gtest.h>
#include <libtbag/string/ArgumentParser.hpp>
using namespace libtbag;
using namespace libtbag::string;
using ap = ArgumentParser;
using at = ArgumentParser::... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SvXMLAutoCorrectImport.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-09-08 22:24:58 $
*
* The Contents of this ... |
<commit_before>/*
Copyright 2015 Nervana Systems 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 law or agre... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: optdlg.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2006-12-12 17:45:47 $
*
* The Contents of this file are made av... |
<commit_before>/**
* 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 License, Version 2.0 (the
* ... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2010-2011 Emmanuel Benazera <ebenazer@seeks-project.info>
*
* 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 b... |
<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 2011 Dennis Nienhüser <earthwings@gentoo.org>
//
#include "Routing.... |
<commit_before>#include "IRremote.h"
#include "IRremoteInt.h"
//==============================================================================
// AAA IIIII W W AAA
// A A I W W A A
// AAAAA I W W W AAAAA
// ... |
<commit_before>#include "OpenNIPlugin.h"
#include <iostream>
#include <StreamTypes.h>
#include "../../SenseKit/sensekit_internal.h"
#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
#ifndef MAX
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif
using std::cout;
using std::endl;
EXPORT_PLUGIN(sensekit::openni::OpenN... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/*
// Copyright (c) 2015-2016-2016 Pierre Guillot.
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/
#include <iostream>
#include "test.hpp"
extern "C"
{
#include "../thread/src/thd.h"
}
#define XPD_TEST_N... |
<commit_before>/**
* projectM -- Milkdrop-esque visualisation SDK
* Copyright (C)2003-2008 projectM Team
*
* 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 t... |
<commit_before>#include "DNSDataParser.hpp"
audioObject::audioObject ()
: distance (0)
, angle (0) {
}
speakerData::speakerData ()
: speakerid ("")
, objects{} {
}
dataParser::dataParser ()
: _filereader ()
, _filewriter () {
}
speakerData dataParser::parseClientData (std::string jsonstring,
std::string client_id,
... |
<commit_before>/***********************************************************************
row.cpp - Implements the Row class.
Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. ... |
<commit_before>/***********************************************************************
row.cpp - Implements the Row class.
Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. ... |
<commit_before>// FIXME: The first two includes should probably be swapped!
#include "HalideRuntime.h"
#include "runtime_internal.h"
#include "printer.h"
namespace Halide { namespace Runtime { namespace Internal {
WEAK void default_error_handler(void *user_context, const char *msg) {
char buf[4096];
char *dst... |
<commit_before>/*
* This file is part of Poedit (https://poedit.net)
*
* Copyright (C) 1999-2016 Vaclav Slavik
* Copyright (C) 2005 Olivier Sannier
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to ... |
<commit_before>#include <nan.h>
#include <iostream>
#include <unordered_map>
#include <string>
#include "FractalGenerator.h"
#define JS_LENGTH_CHECK(info, length) if (info.Length() < length) { \
Nan::ThrowTypeError("Wrong number of arguments, must be at least " #length); \
return; \
}
#define JS_TYPE_CHECK(info, in... |
<commit_before>#include "heart_cell_sim.h"
#include <QApplication>
#include <QSettings>
#include <QMessageBox>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QCoreApplication::setOrganizationName("Hund lab BME OSU");
QCoreApplication::setOrganizationDomain("http://hundlab.org");
QCoreAp... |
<commit_before>#pragma once
#include <Word.hxx>
#define _E(rest) E##rest##_ = E##rest
namespace linux {
template <typename Success, typename Failure>
struct Result
{
explicit
operator
bool() const
{
return this->__word > 0xFFFFFFFFFFFFF000UL;
}
Failure
failure() const
{
... |
<commit_before>/*
* Copyright 2007-2017 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>/* Copyright 2019 The TensorFlow 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 the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// 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 "assert.h"
#include "chainparams.h"
#include "main.h"
#include... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin developers
// Copyright (c) 2017 Empinel/The Ion Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assert.h"
#inclu... |
<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>// Copyright (c) 2010 Satoshi Nakamoto
// Original Code: Copyright (c) 2009-2014 The Bitcoin Core Developers
// Modified Code: Copyright (c) 2014 Project Bitmark
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Moneta 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... |
<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>
// A Sample of ORM Lite
// https://github.com/BOT-Man-JL/ORM-Lite
// BOT Man, 2016
#include <string>
#include <iostream>
#include "src/ORMLite.h"
using namespace BOT_ORM;
/* #0 Basic Usage */
struct MyClass
{
long id;
double score;
std::string name;
// Inject ORM-Lite into this Class
ORMAP (My... |
<commit_before>#include <iostream>
#include <fstream>
#include <geometry/point.h>
#include <geometry/grid.h>
#include <geometry/sampled_mapping.h>
#include <numerics/corner_singularity_biharmonic.h>
//#include <numerics/atez.h>
using namespace MathTL;
using namespace std;
int main()
{
cout << "Testing CornerSingula... |
<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>// 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
// Copyright (c) 2014 BlitzCoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assi... |
<commit_before>// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2011-2015 Litecoin Developers
// Copyright (c) 2013-2015 Globalcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost... |
<commit_before>#include "Arith256.h"
#include "Runtime.h"
#include "Type.h"
#include <llvm/IR/Function.h>
namespace dev
{
namespace eth
{
namespace jit
{
Arith256::Arith256(llvm::IRBuilder<>& _builder) :
CompilerHelper(_builder)
{
using namespace llvm;
m_result = m_builder.CreateAlloca(Type::Word, nullptr, "arit... |
<commit_before>#include <search-manager/NumericPropertyTable.h>
#include "NumericRangeGroupLabel.h"
NS_FACETED_BEGIN
NumericRangeGroupLabel::NumericRangeGroupLabel(const NumericPropertyTable *propertyTable, const float &targetValue)
: propertyTable_(propertyTable)
, targetValue_(targetValue)
, test_(&Nume... |
<commit_before>#include "dtex2/DrawTexture.h"
#include "dtex2/Texture.h"
#include "dtex2/typedef.h"
#include "dtex2/RenderAPI.h"
#include "dtex2/ResCache.h"
#include "dtex2/Target.h"
namespace dtex
{
CU_SINGLETON_DEFINITION(DrawTexture);
DrawTexture::DrawTexture()
: m_curr(nullptr)
{
}
bool DrawTexture::Draw(int s... |
<commit_before>#ifndef DUNE_STUFF_CONFIGCONTAINER_HH_INCLUDED
#define DUNE_STUFF_CONFIGCONTAINER_HH_INCLUDED
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#elif defined (HAVE_CONFIG_H)
#include <config.h>
#endif // ifdef HAVE_CMAKE_CONFIG
#include <dune/common/deprecated.hh>
#include <dune/common/parametertree... |
<commit_before>#include "CommonCMPT.h"
#include "ArrangeSpriteOP.h"
#include "view/StagePanel.h"
#include "view/KeysPanel.h"
#include "frame/FileIO.h"
#include "frame/Controller.h"
#include "dataset/Layer.h"
#include "dataset/KeyFrame.h"
namespace eanim
{
CommonCMPT::CommonCMPT(wxWindow* parent, const wxString& name... |
<commit_before>// $Id: PTE_test.C,v 1.2 2000/05/29 23:47:03 amoll Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/KERNEL/PTE.h>
///////////////////////////
START_TEST(Element, "$Id: PTE_test.C,v 1.2 2000/05/29 23:47:03 amoll Exp $")
//////////////////////////////////////////////... |
<commit_before>#pragma once
#include "routing/cross_mwm_connector.hpp"
#include "routing/cross_mwm_connector_serialization.hpp"
#include "routing/fake_feature_ids.hpp"
#include "routing/routing_exceptions.hpp"
#include "routing/segment.hpp"
#include "routing/vehicle_mask.hpp"
#include "routing_common/num_mwm_id.hpp"
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2009 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>#pragma once
// trace_constants.hpp: definition of constants that direct intermediate result reporting
//
// Copyright (C) 2017 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
namespace sw {
namespace unum {
... |
<commit_before>#include <iostream>
#include <string>
#include <cstdlib>
#include <fstream>
#include <exception>
using namespace std;
typedef long unsigned int filePosition; //to index the file
class XOREncryptor
{
void showProgressBar(filePosition ,filePosition); //it will display progress bar
f... |
<commit_before>#include "AnimusKeyboard.h"
#include "ArduinoKeyboard.h"
// this is for the modified arduino HID
IKeyboard::IKeyboard(void)
{
//nothing
}
void IKeyboard::Begin(void)
{
Keyboard.begin();
}
void IKeyboard::End(void)
{
Keyboard.end();
}
void IKeyboard::Press(byte k)
{
Keyboard.press(k);
}
void IKey... |
<commit_before>#pragma once
#include <functional>
#include <system_error>
//=============================================================================
namespace riak {
namespace transport {
//=============================================================================
/*!
* Indicates to the connection pool t... |
<commit_before>// Copyright 2013 The Flutter 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 "flutter/runtime/dart_plugin_registrant.h"
#include <string>
#include "flutter/fml/logging.h"
#include "flutter/fml/trace_event.h... |
<commit_before>// Copyright (c) 2012, Ilya Arefiev <arefiev.id@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:
// * Redistributions of source code must retain the above copyrigh... |
<commit_before>#include "simulation/SerialSimulation.hpp"
//#include <omp.h>
namespace Simulation
{
SerialSimulation::SerialSimulation(const Initialization::SimulationPlan & in, const vector<std::shared_ptr<Solver::ISolver>> & solvers)
: AbstractSimulation(in,solvers)
{
}
SerialSimulation... |
<commit_before>#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
using namespace std;
const vector<int> const_num = {5, 3, 2, 1};
int N;
vector<int> v;
string res;
vector<int> memo;
vector<string> memor;
map<vector<int>,int> se;
void dfs(int s, int c) {
i... |
<commit_before>/**
* Copyright (c) 2016-present, 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>#include <iostream>
#include "TinyCL.hpp"
int main()
{
// GPUのデバイスを取得する
auto device = tcl::information.GetGPU();
// ソースコードのコンパイル
tcl::CLSource source("test.cl", "test", tcl::SourceType::Text);
// カーネル実行クラスの生成
tcl::CLExecute exec(source, device);
// デバイスに渡すための配列を初期化
const size_t N = 10;
std::... |
<commit_before>// ========================================================================== //
// This file is part of DO++, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2013 David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// Licen... |
<commit_before>#include "mex.h"
#include "opencv_matlab_interop.h"
#define PRINT_INPUTS
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
ASSERT_NUM_LHS_ARGS_EQ(1);
ASSERT_NUM_
}
<commit_msg>Prediction done, and apparently working. bam!<commit_after>#include "mex.h"
#include "o... |
<commit_before>#include "../SDP_Solver.hxx"
// Create and initialize an SDPSolver for the given SDP and
// SDP_Solver_Parameters
SDP_Solver::SDP_Solver(const std::vector<boost::filesystem::path> &sdp_files,
const SDP_Solver_Parameters ¶meters)
: sdp(sdp_files), parameters(parameters), x(... |
<commit_before>#include <hrl_phri_2011/pc_utils.h>
int main(int argc, char **argv)
{
ros::init(argc, argv, "pub_head");
if(argc < 2 || argc > 5) {
printf("Usage pub_head bag_file [topic] [frame] [rate]\n");
return 1;
}
// Load bag
rosbag::Bag bag;
bag.open(std::string(argv[1]),... |
<commit_before>/*
* camera.cpp
*
* Created on: 2016年11月28日
* Author: zhuqian
*/
#include "camera.h"
#include "film.h"
Camera::Camera(const Transform& c2w, Float shutterOpen, Float shutterEnd,
Film * f, const Medium* medium) :
film(f), cameraToWorld(c2w), shutterOpen(shutterOpen), shutterEnd(
shutter... |
<commit_before>/**
@copyright (C) 2017 Melexis N.V.
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>/*****************************************************************************
*
* 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>
#include "cssysdef.h"
#include "cloth.h"
#include "igeom/polymesh.h"
#include "csgeom/math2d.h"
#include "csgeom/math3d.h"
#include "csgeom/tesselat.h"
#include "csutil/bitarray.h"
#include "imesh/object.h"
#include "imesh/clothmesh.h"
#include "iutil/eventh.h"
#include "iutil/comp.h"
#include "igeom/ob... |
<commit_before>/*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE... |
<commit_before><commit_msg>:( didnt include it in last commit<commit_after><|endoftext|> |
<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 "chrome/browser/chromeos/system_key_event_listener.h"
// TODO(saintlou): should we handle this define in gyp even if only use... |
<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 "chrome/browser/gtk/clear_browsing_data_dialog_gtk.h"
#include <string>
#include "app/l10n_util.h"
#include "app/resource_bu... |
<commit_before>// Copyright (c) 2006-2009 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/common/extensions/extension_error_reporter.h"
#include "build/build_config.h"
#if defined(OS_WIN)
#include "app... |
<commit_before>/*
* Copyright 2006 The WebRTC 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. Al... |
<commit_before>/**
* \file
* \brief ThreadControlBlock class header
*
* \author Copyright (C) 2014-2015 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
* di... |
<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>/******************************************************************************
* plane_bind.cpp - bindings for Ogre::Plane
******************************************************************************
* This file is part of
* __ __ _
* / // /_____ ____ (_)
* / // // ___//... |
<commit_before>// Copyright 2015 The Enquery 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
//
// Unless required by applicab... |
<commit_before><commit_msg>just a test...<commit_after><|endoftext|> |
<commit_before>//
// Created by Bradley Austin Davis on 2016/03/19
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#pragma once
#include "common.hpp"
namespace vkx {
// Version information for Vulkan is stored... |
<commit_before>/*************************************************************************
*
* $RCSfile: chaptercollator.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2003-03-26 10:54:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* 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
* Free Software Foundation; either version 3 of the... |
<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.
// MSVC++ requires this to be set before any other includes to get M_PI.
#define _USE_MATH_DEFINES
#include "ui/gfx/transform.h"
#inc... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: testC3DFileAdapter.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>#include <iostream>
#include <string>
#include <chrono>
#include "lodepng.h"
using std::cout;
using std::endl;
// Image found at https://pixabay.com/no/bloom-blomstre-bud-gjeng-farge-2518/
const std::string IMG_FNAME = "bloom_small.png";
const std::string IMG_FNAME_MODIFIED = "bloom_new.png";
struct ... |
<commit_before>#include "Test.h"
#include "Sk4x.h"
#define ASSERT_EQ(a, b) REPORTER_ASSERT(r, a.equal(b).allTrue())
#define ASSERT_NE(a, b) REPORTER_ASSERT(r, a.notEqual(b).allTrue())
DEF_TEST(Sk4x_Construction, r) {
Sk4f uninitialized;
Sk4f zero(0,0,0,0);
Sk4f foo(1,2,3,4),
bar(foo),
ba... |
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
// reserved. See file COPYRIGHT for details.
//
// This file is part of the MFEM library. For more information and source code
// availability see http... |
<commit_before>//-----------------------------------------------------------
//
// Copyright (C) 2015 by the deal2lkit authors
//
// This file is part of the deal2lkit library.
//
// The deal2lkit library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesse... |
<commit_before>#ifndef ALEPH_TOPOLOGY_IO_ADJACENCY_MATRIX_HH__
#define ALEPH_TOPOLOGY_IO_ADJACENCY_MATRIX_HH__
#include <aleph/utilities/String.hh>
#include <aleph/topology/filtrations/Data.hh>
#include <algorithm>
#include <fstream>
#include <istream>
#include <string>
#include <unordered_map>
#include <vector>
#i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.