text stringlengths 54 60.6k |
|---|
<commit_before>/**
* @file hud_fox.cpp
* @brief Purpose: Contains methods to game class' management.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
#include "../include/hud_fox.hpp"
using namespace mindscape;
/**
* @brief Class Contru... |
<commit_before>//
// TextStimulus.cpp
// TextStimulus
//
// Created by Christopher Stawarz on 9/13/16.
// Copyright © 2016 The MWorks Project. All rights reserved.
//
#include "TextStimulus.hpp"
BEGIN_NAMESPACE_MW
BEGIN_NAMESPACE()
inline cf::StringPtr createCFString(const std::string &bytesUTF8) {
retur... |
<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 "base/command_line.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop_proxy.h"
#include "base/synchronization... |
<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 (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice... |
<commit_before>#include "views/session_view.h"
SessionView::SessionView(Session* session, QWidget* parent)
: QWidget(parent),
m_session(session)
{
m_hostBrowser = new HostBrowser;
m_ds3Browser = new DS3Browser(m_session);
m_splitter = new QSplitter;
m_splitter->addWidget(m_hostBrowser);
m_splitter->addWidget... |
<commit_before>// Copyright (c) 2018 The Gulden developers
// Authored by: Willem de Jonge (willem@isnapp.nl)
// Distributed under the GULDEN software license, see the accompanying
// file COPYING
#include "spvscanner.h"
#include "../net_processing.h"
#include "timedata.h"
#include "../validation/validation.h"
#includ... |
<commit_before>#include <boost/lexical_cast.hpp>
#include <qwt_symbol.h>
#include "graphPlot.h"
using namespace std;
using namespace watcher;
INIT_LOGGER(TimeScaleDraw, "TimeScaleDraw");
INIT_LOGGER(GraphCurve, "GraphCurve");
INIT_LOGGER(GraphPlot, "GraphPlot");
TimeScaleDraw::TimeScaleDraw(const QTime &base): b... |
<commit_before>// -*- mode: C++; c-file-style: "gnu" -*-
// KMail startup and initialize code
// Author: Stefan Taferner <taferner@alpin.or.at>
#include <config.h>
#include <kuniqueapplication.h>
#include <kglobal.h>
#include <knotifyclient.h>
#include <dcopclient.h>
#include "kmkernel.h" //control center
#include "k... |
<commit_before>// Project specific
#include <Manager/AudioManager.hpp>
#include <DoremiEngine/Physics/Include/PhysicsModule.hpp>
#include <DoremiEngine/Audio/Include/AudioModule.hpp>
#include <EntityComponent/EntityHandler.hpp>
#include <EntityComponent/Components/ExampleComponent.hpp>
#include <EntityComponent/Compone... |
<commit_before>#include <chord.h>
#include "merkle_syncer.h"
#include "qhash.h"
#include "async.h"
#include "bigint.h"
#include <id_utils.h>
#include <comm.h>
#include <modlogger.h>
#define warning modlogger ("merkle", modlogger::WARNING)
#define info modlogger ("merkle", modlogger::INFO)
#define trace modlogger ("me... |
<commit_before>/*!
@file XYZReader.hpp
@brief definition of a class that reads xyz file.
@author Toru Niina (niina.toru.68u@gmail.com)
@date 2017-01-05 17:00
@copyright Toru Niina 2016 on MIT License
*/
#ifndef COFFEE_MILL_XYZ_READER_HPP
#define COFFEE_MILL_XYZ_READER_HPP
#include <mill/common/Trajectory.hp... |
<commit_before>/* Gobby - GTK-based collaborative text editor
* Copyright (C) 2008-2011 Armin Burgmeier <armin@arbur.net>
*
* 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>// MFEM Example 1 - NURBS Version
//
// Compile with: make ex1
//
// Sample runs: ex1 -m ../../data/square-disc.mesh
// ex1 -m ../../data/star.mesh
// ex1 -m ../../data/escher.mesh
// ex1 -m ../../data/fichera.mesh
// ex1 -... |
<commit_before>//
// Copyright (c) 2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef MAIN_WINDOW_HPP
#define MAIN_WINDOW_HPP
#include <twec/id_holder.hpp>
#include <twec/player_info.hpp>
#include <twec/server_manager.hpp>
#include <twec/utils.hpp>
#include "ui_main_window.h"
#include <QMainWindow... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>#include <dsnutil/log/init.h>
#include <dsnutil/log/sinkmanager.h>
#include <dsnutil/null_deleter.h>
#include <boost/log/utility/setup/formatter_parser.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/trivial.hpp>
/** \brief I... |
<commit_before>/*
* Handler for HTTP requests.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "lb_http.hxx"
#include "lb_instance.hxx"
#include "lb_connection.hxx"
#include "lb_config.hxx"
#include "lb_session.hxx"
#include "lb_cookie.hxx"
#include "lb_jvm_route.hxx"
#include "lb_headers.hxx"
#include "ssl... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkWorldPointPicker.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>#include "manager.hpp"
#include <string.h>
using namespace std;
using namespace moodycamel;
using namespace headers;
using namespace chrono;
void Manager::initNetmap(){
if(geteuid() != 0){
fatal("You need to be root in order to use Netmap!");
}
routingTable = make_shared<LinuxTable>(this->interf... |
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_OPENCL_COPY_HPP
#define STAN_MATH_PRIM_MAT_FUN_OPENCL_COPY_HPP
#ifdef STAN_OPENCL
#include <stan/math/opencl/opencl_context.hpp>
#include <stan/math/opencl/kernel_cl.hpp>
#include <stan/math/opencl/matrix_cl.hpp>
#include <stan/math/opencl/kernels/copy.hpp>
#include <stan/... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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.or... |
<commit_before>#include "optimize.hpp"
#include <vector>
#include <cmath>
#include <cstdlib>
#include <cassert>
#include <stdexcept>
#include <limits>
#include <algorithm>
#include "pll_util.hpp"
#include "constants.hpp"
using namespace std;
// local helpers
void traverse_update_partials(pll_utree_t * tree, pll_par... |
<commit_before><commit_msg>another fix for friend track extractions<commit_after><|endoftext|> |
<commit_before>#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <exception>
#include <sys/time.h>
#include "modules/htmTree.h"
#include "modules/kdTree.h"
#include "misc.h"
#include ... |
<commit_before>/*
* Copyright 2008, 2009 Free Software Foundation, Inc.
*
* This software is distributed under the terms of the GNU Affero Public License.
* See the COPYING file in the main directory for details.
*
* This use of this software may be subject to additional restrictions.
* See the LEGAL file in the main d... |
<commit_before>#ifndef MATLIB_PML_BCPM_H
#define MATLIB_PML_BCPM_H
#include "pml.hpp"
#include "pml_rand.hpp"
#include <algorithm>
namespace pml {
// ----------- POTENTIALS ----------- //
class Potential {
public:
explicit Potential(double log_c_) : log_c(log_c_) {}
public:
bool operator<(... |
<commit_before>/// \file sqlplus.hh
/// \brief Deprecated backwards-compatibility header. Use mysql++.h in
/// new code instead.
#warning This header is obsolete. Please use mysql++.h instead.
#include "mysql++.h"
using namespace mysqlpp;
<commit_msg>Yet another sqlplus.hh fix. Doxygen stuff well and truly gone now.<... |
<commit_before>//MIT License
//Copyright(c) 2017 Patrick Laughrea
#include "parser.h"
#include "errors.h"
#include "patternsContainers.h"
#include "WebssonUtils/utilsWebss.h"
using namespace std;
using namespace webss;
const char ERROR_NO_DEFAULT[] = "no default value, so value must be implemented";
void setDefault... |
<commit_before>/**
* Copyright 2008 Matthew Graham
* 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>// The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.com>
//
// 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 l... |
<commit_before><commit_msg>Ensure that vectorized algorithm are correct<commit_after><|endoftext|> |
<commit_before>#include "Course.h"
#include "Assignment.h"
#include "Category.h"
#include "Database.h"
#include "Student.h"
#include "Submitted.h"
#include <iostream>
#include <string>
using namespace std;
Course::Course() {}
Course::Course(string name) { load(name); }
void Course::load(string name) {
this->name... |
<commit_before>/**
* @file gaussian_distribution.hpp
* @author Ryan Curtin
*
* Implementation of the Gaussian distribution.
*/
#ifndef __MLPACK_METHODS_HMM_DISTRIBUTIONS_GAUSSIAN_DISTRIBUTION_HPP
#define __MLPACK_METHODS_HMM_DISTRIBUTIONS_GAUSSIAN_DISTRIBUTION_HPP
#include <mlpack/core.hpp>
// Should be somewhere... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>#include <ObjectAllocationModel.hpp>
#include <b9/interpreter.hpp>
#include <b9/loader.hpp>
#include <b9/objects.hpp>
#include <b9/objects.inl.hpp>
// #include <omrgcallocate.hpp>
#include <b9/allocator.hpp>
#include <b9/context.hpp>
#include <b9/runtime.hpp>
#include <b9/allocator.inl.hpp>
#include <b9... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 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 2015 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>#include "control/ControlSystem.hpp"
#include "safety/DeltaSafetyProperties.hpp"
#include "sequencer/MoveBlockSequence.hpp"
#include "sequencer/MainSequence.hpp"
#include <eeros/hal/HAL.hpp>
#include <eeros/safety/SafetySystem.hpp>
#include <eeros/logger/Logger.hpp>
#include <eeros/logger/StreamLogWrite... |
<commit_before>#include "Dictionary.h"
#include <string>
#include <vector>
#include <map>
#include "WordNoun.h"
#include "WordAdjunct.h"
#include "WordModifier.h"
#include "Grammar.h"
// We will never instantiate you
Dictionary::Dictionary() {}
// =====
// Nouns
// =====
// Vector
std::vector<WordNoun*> Dictionary... |
<commit_before>/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>#include "gru.h"
#include <sstream>
#include <gflags/gflags.h>
#include <boost/algorithm/string.hpp>
#include <vector>
#include "logging.h"
#include "util.h"
DECLARE_int32(galaxy_deploy_step);
DECLARE_string(minion_path);
DECLARE_string(nexus_server_list);
DECLARE_string(nexus_root_path);
DECLARE_strin... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
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 ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public... |
<commit_before>#define DEBUG 1
/**
* File : B.cpp
* Author : Kazune Takahashi
* Created : 5/22/2019, 4:32:20 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
... |
<commit_before>#include "types.hpp"
#include <iostream>
#include <functional>
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
template <typename T>
using func_t = std::function<T(T)>;
template <typename T>
T numerical_diff(func_t<T> f, T x)
{
auto h = 1e-4;
return (f(x+h) - f(x-h)) / (2*h);
}
template... |
<commit_before>#include "dreal/dreal_main.h"
#include <csignal>
#include <cstdlib>
#include <iostream>
#include "dreal/dr/run.h"
#include "dreal/smt2/run.h"
#include "dreal/solver/context.h"
#include "dreal/util/exception.h"
#include "dreal/util/filesystem.h"
#include "dreal/util/logging.h"
namespace dreal {
using ... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>/**************************************************************************
**
** Copyright (C) 2011 - 2013 Research In Motion
**
** Contact: Research In Motion (blackberry-qt@qnx.com)
** Contact: KDAB (info@kdab.com)
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees hold... |
<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>// -------------------------------------------------------------------------
// @FileName : NFCPVPModule.cpp
// @Author : LvSheng.Huang
// @Date : 2017-02-02
// @Module : NFCPVPModule
//
// --------------------------------------------------... |
<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 "base/command_line.h"
#include "base/path_service.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/brow... |
<commit_before>/*! \file string.hpp
\brief Support for types found in \<string\>
\ingroup STLSupport */
/*
Copyright (c) 2014, Randolph Voorhies, Shane Grant
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following c... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2005 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This l... |
<commit_before>#include "rdsstring.h"
#include <algorithm>
#include "tables.h"
namespace redsea {
namespace {
std::string rtrim(std::string s) {
int last_non_space = 0;
for (size_t i=0; i<s.length(); i++)
if (s.at(i) != ' ')
last_non_space = i+1;
return s.substr(0,last_non_space);
}
}
LCDchar::LC... |
<commit_before>/**
* 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 agreed to in writing, software
* d... |
<commit_before>/**
* @file infomax_ica.cc
* @author Chip Mappus
*
* Methods for InfomaxICA.
*
* @see infomax_ica.h
*/
#include "infomax_ica.h"
#include <fastlib/fx/io.h>
PARAM(double, "lambda", "The learning rate.", "info", .001,
false);
PARAM_INT_REQ("B", "Infomax data window size.", "info");
PARAM(double... |
<commit_before>#include "ROOT/TDataFrame.hxx"
#include "TRandom.h"
#include "TROOT.h"
#include "gtest/gtest.h"
#include <limits>
using namespace ROOT::Experimental;
using namespace ROOT::Experimental::TDF;
using namespace ROOT::Detail::TDF;
/********* FIXTURES *********/
static constexpr ULong64_t gNEvents = 8ull;
sta... |
<commit_before>#include "normals.h"
PointCloud<PointXYZINormal> Normals::estimate() {
PointCloud<PointXYZINormal> normals;
for (auto point : cloud.points) {
auto neighbors = find_neighbors_naive(point, 10);
auto covar = covariance(neighbors);
double eig_val[3];
double eig_ve... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: representation.C,v 1.53 2004/12/03 00:42:49 amoll Exp $
//
#include <BALL/VIEW/KERNEL/representation.h>
#include <BALL/VIEW/MODELS/modelProcessor.h>
#include <BALL/VIEW/MODELS/colorProcessor.h>
#include <BALL/VIEW/KERNEL/geometricObject.h>
... |
<commit_before>#include "mcrt/scene.hh"
#include <glm/glm.hpp>
#include <limits>
#include <vector>
#include <cmath>
namespace mcrt {
Ray::Intersection Scene::intersect(const Ray& ray) const {
Ray::Intersection closestHit {
std::numeric_limits<double>::max(),
glm::dvec3(0.0),
... |
<commit_before>#include "notebook.h"
#include "logging.h"
#include "sourcefile.h"
#include "singletons.h"
#include <fstream>
#include <regex>
#include "cmake.h"
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
namespace sigc {
#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <ty... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: representation.C,v 1.31 2004/04/18 17:15:47 amoll Exp $
#include <BALL/VIEW/KERNEL/representation.h>
#include <BALL/VIEW/MODELS/modelProcessor.h>
#include <BALL/VIEW/MODELS/colorProcessor.h>
#include <BALL/VIEW/KERNEL/geometricObject.h>
#i... |
<commit_before>#include "graphics/Logger.h"
#include <spdlog/spdlog.h>
_GATHERER_GRAPHICS_BEGIN
std::shared_ptr<spdlog::logger> Logger::create(const char* name)
{
std::vector<spdlog::sink_ptr> sinks;
sinks.push_back(std::make_shared<spdlog::sinks::stdout_sink_mt>());
#if defined(__ANDROID__)
sinks.push_b... |
<commit_before>#pragma once
#include "seq.hpp"
#include "util.hpp"
#include "value.hpp"
#include <memory>
namespace imu {
namespace ty {
template<typename Value = value, typename mixin = no_mixin>
struct basic_list {
typedef std::shared_ptr<basic_list> p;
// the type store in this list. by ... |
<commit_before>Bool_t ConfigKstarLeading(
AliRsnMiniAnalysisTask *task,
Bool_t isMC = kFALSE,
Bool_t isPP = kFALSE,
Double_t nSigmaPart1TPC = -1,
Double_t nSigmaPart2TPC = -1,
Double_t nSigmaPart1TOF = -1,
Double_t nSigmaPart2TOF = -1,
Int_t customQualityCutsID=Ali... |
<commit_before>/*
* Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
* @author Michael Robinson @codeofinterest <mike@pagesofinterest.net>
*
* Dual licensed under the MIT and GPL licenses.
*/
#include <v8.h>
#include <node.h>
#include <string>
#include "../vendor/libgit2/include/git2.h"
#include "..... |
<commit_before>/*
* common.cpp -- Blackmagic Design DeckLink common functions
* Copyright (C) 2012 Dan Dennedy <dan@dennedy.org>
*
* 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; ei... |
<commit_before>#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <xorg/gtest/xorg-gtest.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/extensions/Xfixes.h>
#include <X11/extensions/XInput2.h>
#include "barriers-common.h"
#include "xit-event.h"
#include "helpers.h"
using namespace xorg::testing::e... |
<commit_before>#include "menu/menu.hpp"
#include <deque>
#include <memory>
#include <iostream>
#include <string>
namespace Menus
{
static void RenderWindow(NVGcontext* vg, int ix, int iy, int iw, int ih)
{
const float x = static_cast<float>(ix);
const float y = static_cast<float>(iy);
c... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>#include "menu/menu.hpp"
#include <deque>
#include <memory>
#include <iostream>
#include <string>
namespace Menus
{
static void RenderWindow(NVGcontext* vg, int ix, int iy, int iw, int ih)
{
const float x = static_cast<float>(ix);
const float y = static_cast<float>(iy);
c... |
<commit_before>#include "stdio.h"
#include "iostream.h"
#include "trie.h"
#include "grimoire/trie.h"
namespace marisa {
Trie::Trie() : trie_() {}
Trie::~Trie() {}
void Trie::build(Keyset &keyset, int config_flags) {
scoped_ptr<grimoire::LoudsTrie> temp(new (std::nothrow) grimoire::LoudsTrie);
... |
<commit_before>/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| ... |
<commit_before>/**************************************************************************
**
** Copyright (c) 2014 BogDan Vatra <bog_dan_ro@yahoo.com>
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may ... |
<commit_before>//
// EigenJS.cpp
// ~~~~~~~~~~~
//
// Copyright (c) 2014 Rick Yang (rick68 at gmail dot 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/.
//
#if... |
<commit_before>/***************************************************************************
* Copyright (C) 2007-2009 by Lothar May *
* *
* This program is free software; you can redistribute it and/or modify ... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the ... |
<commit_before>#pragma once
#include <sched.h>
namespace mimosa
{
inline void yield()
{
::sched_yield();
}
}
<commit_msg>More noexcept<commit_after>#pragma once
#include <sched.h>
namespace mimosa
{
inline void yield() noexcept
{
::sched_yield();
}
}
<|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scripttypedetector.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2006-06-20 04:44:09 $
*
* The Contents of this file... |
<commit_before>// Copyright (c) 2019, 2021 by Robert Bosch GmbH, Apex.AI Inc. 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... |
<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>/*
Copyright 2014 Néstor Morales Hernández <nestor@isaatc.ull.es>
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) 2008-2014 The Communi Project
*
* 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 version.
*
* Th... |
<commit_before>#include "derivations.hh"
#include "store-api.hh"
#include "globals.hh"
#include "util.hh"
namespace nix {
Path writeDerivation(const Derivation & drv, const string & name)
{
PathSet references;
references.insert(drv.inputSrcs.begin(), drv.inputSrcs.end());
foreach (DerivationInputs::cons... |
<commit_before>#include "dsa_common.h"
#include "module_loader.h"
#include "../module/broker_security_manager.h"
#include "broker_config.h"
#include "module/default/console_logger.h"
#include <boost/dll/import.hpp>
#include <boost/function.hpp>
#include <iostream>
#include <boost/bind.hpp>
namespace bf=boost::files... |
<commit_before>#include <Element.h>
#include <FWApplication.h>
#include <ElementNotInitializedException.h>
#include <PlatformThread.h>
#include <TextLabel.h>
#include <cassert>
#include <iostream>
#include <typeinfo>
using namespace std;
std::unordered_map<int, Element *> Element::registered_elements;
Mutex Element:... |
<commit_before>/*
* Copyright (C) 2003-2006 Funambol
*
* 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 version.
*
* This ... |
<commit_before>/*
* Copyright (C) 2003-2006 Funambol
*
* 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 version.
*
* This ... |
<commit_before>/*
* Copyright (c) 2014 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.... |
<commit_before>/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>/*
* helper.cpp
*
* Created on: Dec 2, 2017
* Author: lowji
*/
#include "helper.h"
#include "Hand.h"
#include "Deck.h"
#include "Card.h"
#include <sstream>
using namespace std;
helper::helper() {
// TODO Auto-generated constructor stub
for (int i=0;i<13;i++){
for (int j=0;j<13;j++){
... |
<commit_before>#include "GraphML.h"
#include "DirectedGraph.h"
#include "UndirectedGraph.h"
#include <tinyxml2.h>
#include <Table.h>
#include <cassert>
#include <map>
#include <iostream>
using namespace std;
using namespace tinyxml2;
GraphML::GraphML() : FileTypeHandler("GraphML", true) {
addExtension("graphml")... |
<commit_before>/*************************************************************************
*
* $RCSfile: ChartPlotAreaOASISTContext.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-07-13 08:44:41 $
*
* The Contents of this file are made available subject to the terms of
* either of t... |
<commit_before>/*
* Copyright (c) 2012, 2015 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implem... |
<commit_before>#include <iostream>
using namespace std ;
#include <iodata/iodata>
#include <iodata/validator>
void dump_cpp(ostringstream &cpp, const string &full_name, iodata::validator *v)
{
using iodata::/*validator::*/record_type ;
using iodata::/*validator::*/node ;
using iodata::/*validator::*/node_integer... |
<commit_before>/*
* 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 <QDesktopServices>
#include <QFileDialog>
#include <QScrollBar>
#include <QToolButton>... |
<commit_before>/*
INTERVAL.cc -- interface implementation of real intervals for the iRRAM library
Copyright (C) 2003 Norbert Mueller, Shao Qi
This file is part of the iRRAM Library.
The iRRAM Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public Lice... |
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
/* -------------------------------------------------------------------------
ATS
License: see $ATS_DIR/COPYRIGHT
Author: Ethan Coon
Interface for EWC, a helper class that does projections and preconditioners in
energy/water-cont... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.