text stringlengths 54 60.6k |
|---|
<commit_before>#include "aerial_autonomy/controllers/rpyt_based_position_controller.h"
bool RPYTBasedPositionController::runImplementation(
std::tuple<VelocityYawRate, PositionYaw> sensor_data, PositionYaw goal,
RollPitchYawRateThrust &control) {
auto velocity = std::get<0>(sensor_data);
auto position = std... |
<commit_before>/*
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All contribut... |
<commit_before>// Copyright 2015, Chris Blume
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list... |
<commit_before>#include "GL.h"
#include "PrimitiveRenderer.h"
#include <VBO.h>
#include "../system/StringUtils.h"
#include <iostream>
using namespace std;
PrimitiveRenderer::PrimitiveRenderer() {
}
static set<int> readCompressedFormats() {
set<int> r;
GLint num_compressed_format;
glGetIntegerv(GL_NUM_COMP... |
<commit_before>
/**
* @file /home/ryan/programming/atl/test/test_parser.cpp
* @author Ryan Domigan <ryan_domigan@sutdents@uml.edu>
* Created on Dec 16, 2014
*/
#include <gtest/gtest.h>
#include "../atl.hpp"
#include "../helpers.hpp"
#include "../debug.hpp"
#include <iostream>
#include <vector>
#include <sstream... |
<commit_before>#include "i_audio.h"
#include "platform/model_value.h"
#include "platform/i_platform.h"
namespace {
float left( float x )
{
if( x < 0.0f )
return 1.f - 1.f / ( 2.f + 2.f * std::abs( x / 1e3 ) );
else
return 1.f / ( 2.f + 2.f * ( x / 1e3 ) );
}
float right( float x )
... |
<commit_before>#pragma once
#include <map>
#include <memory>
#include <unordered_map>
#include <json.hpp>
#include <mos/gfx/animation.hpp>
#include <mos/gfx/character.hpp>
#include <mos/gfx/font.hpp>
#include <mos/gfx/material.hpp>
#include <mos/gfx/mesh.hpp>
#include <mos/gfx/model.hpp>
#include <mos/gfx/texture_2d.h... |
<commit_before>/*
This .cpp file will be used to find all the points in the published .pcd object
model that are viewable from the pose passed in as a parameter
Attributes:
- Has no main
- filled with functions that are mainly private. The only public method will
be a method called from generate views and retu... |
<commit_before>//===- AliasAnalysis.cpp - Generic Alias Analysis Interface Implementation -==//
//
// This file implements the generic AliasAnalysis interface which is used as the
// common interface used by all clients and implementations of alias analysis.
//
// This file also implements the default version of the Al... |
<commit_before>//This program checks to see if the camera can see the target at different poses.
//Assumes a flat rectangular target.
#include <iostream>
#include <vector>
#include <industrial_extrinsic_cal/conical_pose_generator.h>
#include <industrial_extrinsic_cal/targets_yaml_parser.h>
#include <Eigen/Dense>
#inc... |
<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/test/test_suite.h"
class V2TestSuite : public base::TestSuite {
public:
V2TestSuite(int argc, char** argv) : base::T... |
<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.
#ifndef NIX_GROUP_H
#define ... |
<commit_before>#include <unistd.h>
#include <event/event_callback.h>
#include <event/event_main.h>
#include <io/net/tcp_server.h>
/*
* XXX
* Register stop interest.
*/
#define RFC864_STRING "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ "
#define RFC864_LEN (siz... |
<commit_before>/* Definition of the pqxx::stream_to class.
*
* pqxx::stream_to enables optimized batch updates to a database table.
*
* DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/stream_to.hxx instead.
*
* Copyright (c) 2000-2021, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not ... |
<commit_before>/*
* Copyright (c) 2001, 2003-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 a... |
<commit_before>/*************************************************************************
*
* $RCSfile: dlgedview.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: vg $ $Date: 2003-05-22 08:43:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>//===- llvm/unittest/Object/Disassembler.cpp ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
This file is part of KitchenSync.
Copyright (c) 2004 Cornelius Schumacher <schumacher@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 as published by the Free Software Foundation; either
... |
<commit_before>#include <algorithm>
#include "audiere.h"
#include "mixer.hpp"
#include "output.hpp"
#include "resampler.hpp"
////////////////////////////////////////////////////////////////////////////////
Mixer::Mixer()
{
}
////////////////////////////////////////////////////////////////////////////////
Mixer::~M... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: b2ituple.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-17 08:06:55 $
*
* The Contents of this file are made... |
<commit_before>//===- llvm/unittest/Support/MD5Test.cpp - MD5 tests ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#ifndef LIBTEN_SHARED_POOL_HH
#define LIBTEN_SHARED_POOL_HH
#include "task/rendez.hh"
#include "ten/logging.hh"
#include <boost/call_traits.hpp>
#include <set>
#include <deque>
namespace ten {
namespace detail {
template <typename T> class scoped_resource;
}
//! thread and task safe pool of shar... |
<commit_before>#ifndef MIDIFILE_HPP
#define MIDIFILE_HPP
/**
* Name: MidiFile.hpp
* Purpose: C++ re-write of the python module MidiFile.py
* Author: Mohamed Abdel Maksoud <mohamed at amaksoud.com>
* Created: 2015/02/11
*-----------------------------------------------------------------------------
*... |
<commit_before>/*************************************************************************
*
* $RCSfile: sbintern.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2004-03-17 13:32:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published b... |
<commit_before>#include "io.cpp"
#include <iostream>
using namespace std;
int main()
{
<<<<<<< HEAD
cout << "პირველი C++ პროგრამა\n";
read_file ();
=======
cout << "პირველი С++ პროგრამა\n";
>>>>>>> 9affd72bff47a4fee0bc1ca2b8dc189478691479
cin.get();
}
<commit_msg>კიდევ რაღაც წავშალე<commit_after>#include "io.... |
<commit_before>/***************************************************************************
* Copyright (C) 1998-2010 by authors (see AUTHORS.txt ) *
* *
* This file is part of LuxRays. ... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. 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
//
// ... |
<commit_before>//===-- StackProtector.cpp - Stack Protector Insertion --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===-- llvm/Target/TargetSchedule.cpp - Sched Machine Model ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
#include "depthai-shared/common/CameraBoardSocket.hpp"
#include "depthai-shared/common/CameraImageOrientation.hpp"
#include "depthai-shared/datatype/RawCameraControl.hpp"
#include "depthai-shared/properties/Properties.hpp"
namespace dai {
/**
* Specify properties for ColorCamera such as... |
<commit_before>#pragma once
#include <depthai-shared/common/EepromData.hpp>
#include <depthai-shared/common/optional.hpp>
#include <nlohmann/json.hpp>
#include "depthai-shared/common/CameraBoardSocket.hpp"
namespace dai {
/**
* Specify properties for StereoDepth
*/
struct StereoDepthProperties {
struct Recti... |
<commit_before>#include "../../../shared/generated/cpp/MediaplayerBase.h"
#include "net/INetRequest.h"
#include "RhoFile.h"
namespace rho {
using namespace apiGenerator;
std::wstring s2ws(const std::string& s)
{
int len;
int slength = (int)s.length() + 1;
len = MultiByteToWideChar(CP_ACP, 0, s.c_str(), s... |
<commit_before>/*
* AlgebraicDistance.cpp
*
* Created on: 03.11.2015
* Author: Henning Meyerhenke, Christian Staudt
*/
#include "AlgebraicDistance.h"
#include "../auxiliary/Timer.h"
#include <omp.h>
namespace NetworKit {
AlgebraicDistance::AlgebraicDistance(const Graph& G, count numberSystems, count nu... |
<commit_before>/**
* Plucked string synthesis using Karplus-Strong algorithm.
*
*/
#include "aquila/synth/KarplusStrongSynthesizer.h"
#include <iostream>
int main(int argc, char** argv)
{
std::cout << "Plucked string synthesis using Karplus-Strong algorithm\n";
const Aquila::FrequencyType SAMPLE_FREQUENCY... |
<commit_before>//
// SkyboxNode.m
// testar1
//
// Created by Pasi Kettunen on 12.12.2012.
//
//
#include "Sprite3D.h"
using namespace cocos2d;
#define USE_VBO
#define STRINGIFY(A) #A
//#include "../Shaders/TexturedLighting.es2.vert.h"
#include "Textured.es2.vert.h"
#include "Textured.es2.frag.h"
#include "Colo... |
<commit_before>#include "PlayerLayer.h"
#include "GameManager.h"
USING_NS_CC;
bool CPlayerLayer::init()
{
// 1. super init first
if ( !CCLayer::init() )
{
return false;
}
m_CurrentPlayerId = -1;
m_VisibleSize = CCDirector::sharedDirector()->getVisibleSize();
//int playerNumber... |
<commit_before>#include "PlayerLayer.h"
#include "GameManager.h"
USING_NS_CC;
bool CPlayerLayer::init()
{
// 1. super init first
if ( !CCLayer::init() )
{
return false;
}
m_CurrentPlayerId = -1;
m_VisibleSize = CCDirector::sharedDirector()->getVisibleSize();
//ġ Ѵ. ġ ̴.
int playerNumb... |
<commit_before>#pragma once
#include <regex>
#include "acmacs-base/fmt.hh"
// ----------------------------------------------------------------------
// specialization below follows fmt lib description, but it does not work due to ambiguity with
// template <typename RangeT, typename Char> struct formatter<RangeT, C... |
<commit_before>#include <Windows.h>
#include <CommCtrl.h>
#include "win.h"
#include "desktop.h"
HWND Desktop_FindSHELLDLLDefView(const char* sClass) {
HWND hView = NULL;
HWND hWnd = Win_FindChildByClass(GetDesktopWindow(), sClass);
while(NULL != hWnd) {
hView = Win_FindChildByClass(hWnd, "SHELLDL... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
Copyright (C) 2017 Axel Waggershauser
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;... |
<commit_before>// Copyright 2011 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 "Thread/Mutex.hh"
#ifndef SCOPEDLOCK_HH_
# define SCOPEDLOCK_HH_
namespace LilWrapper
{
class ScopedLock
{
private:
Mutex *_mutex;
public:
ScopedLock(Mutex *);
~ScopedLock();
};
}
#endif /* SCOPEDLOCK_HH_ */
<commit_msg>Make the Scoped Lock class non-copyable.... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3 -*-
Copyright 2013
Raffaello D. Di Napoli
This file is part of Application-Building Components (henceforth referred to as ABC).
ABC is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published b... |
<commit_before>/**
* Sets the physics list of the simulation
*
* The physics list are electromagnetic based, using the G4 Kernal defaults
*/
#include "PhysicsList.hh"
#include "PhysicsListMessenger.hh"
#include "G4EmStandardPhysics.hh"
#include "G4EmStandardPhysics_option1.hh"
#include "G4EmStandardPhysics_option... |
<commit_before>// Copyright 2012 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 required b... |
<commit_before>/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <test_common.h>
#include <vistk/pipeline/config.h>
#include <vistk/p... |
<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 Qt Creator.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commer... |
<commit_before>#include "TestScene.h"
#include "Helpers/Helpers.h"
#include "SceneManaging/CollisionManager.h"
#include "SceneManaging\PathFindManager.h"
#include "Input\InputManager.h"
#include "GraphicsManager.h"
#include "SceneManaging/SceneManager.h"
#ifdef _WIN32
#include "libs/OpenGL/GLEW/include/GL/gle... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2010, 2011, 2012, 2013, 2014
Raffaello D. Di Napoli
This file is part of Application-Building Components (henceforth referred to as ABC).
ABC is free software: you can redistribute it and/or modify it under the terms o... |
<commit_before>/*
Copyright (c) 2006 Till Adam <adam@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 as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any late... |
<commit_before>/*
* fsm.hpp
*
* Created on: 25 мая 2016 г.
* Author: sergey.fedorov
*/
#ifndef AFSM_FSM_HPP_
#define AFSM_FSM_HPP_
#include <afsm/detail/base_states.hpp>
#include <afsm/detail/observer.hpp>
#include <deque>
namespace afsm {
//---------------------------------------------------------------... |
<commit_before>#ifndef EXPR_HXX_SPN8H6I7
#define EXPR_HXX_SPN8H6I7
#include "pos.hxx"
#include "dup.hxx"
#include "ppr.hxx"
#include "id.hxx"
#include "ptr.hxx"
#include "ast/type.hxx"
#include "visitor.hxx"
#include <unordered_set>
namespace miniml
{
/// Type of expression.
enum class ExprType
{
ID, ///< Iden... |
<commit_before>#ifndef TREEGA_H_
#define TREEGA_H_
#include "cppEvolve/Genome/Tree/Tree.hpp"
#include "cppEvolve/Genome/Tree/Crossover.hpp"
#include "cppEvolve/Genome/Tree/Mutator.hpp"
#include <limits.h>
namespace evolve
{
/*!
* Defines a GA to use with Tree-like genomes (typically for growing algorithms.
... |
<commit_before>#ifndef TYPE_HXX_PHQ9E7V1
#define TYPE_HXX_PHQ9E7V1
#include "ptr.hxx"
#include "id.hxx"
#include "ppr.hxx"
namespace miniml
{
enum class TypeType
{
ID,
ARROW,
};
class Type: public Pretty
{
public:
virtual ~Type() {}
virtual TypeType type() const = 0;
virtual bool operator==(const Type &... |
<commit_before>// Copyright (c) 2016 Thomas Johansen
// The use of this source code is governed by the MIT license, found in LICENSE.md.
#pragma once
#include <iostream>
#include <vector>
namespace cuda {
void check_error(const cudaError_t code)
{
if (code == cudaSuccess) return;
std::cerr << "CUDA error: " << ... |
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2005, 2006, 2007 Roman Schindlauer
*
* This file is part of dlvhex.
*
* dlvhex 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 ... |
<commit_before>/*
Copyright (c) 2014-2015, Scott Zuyderduyn
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 notice, this
list of cond... |
<commit_before>/*
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
** - Laurent LEC <llec@aldebaran-robotics.com>
**
** Copyright (C) 2010, 2011 Aldebararan Robotics
*/
#include <qimessaging/message.h>
#include <qimessaging/datastream.hpp>
#include <qimessaging/message.hpp>
#include <cstring>
#includ... |
<commit_before>/*
Copyright (C) 2018 Draios inc.
This file is part of falco.
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>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
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
... |
<commit_before>#ifndef KGR_INCLUDE_KANGARU_OPERATOR_HPP
#define KGR_INCLUDE_KANGARU_OPERATOR_HPP
#include "container.hpp"
#include "detail/lazy_base.hpp"
namespace kgr {
namespace detail {
template<typename CRTP, template<typename> class Map>
struct InvokerBase {
template<typename F, typename... Args>
detail::func... |
<commit_before>#ifndef KGR_KANGARU_INCLUDE_KANGARU_OPERATOR_HPP
#define KGR_KANGARU_INCLUDE_KANGARU_OPERATOR_HPP
#include "container.hpp"
#include "detail/lazy_base.hpp"
namespace kgr {
namespace detail {
template<typename CRTP, template<typename> class Map>
struct InvokerBase {
template<typename F, typename... Arg... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg, Daniel Wallin
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>// $Id$
// The libMesh Finite Element Library.
// Copyright (C) 2002-2008 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foun... |
<commit_before>/***************************************************************************
plugin_katetextfilter.cpp - description
-------------------
begin : FRE Feb 23 2001
copyright : (C) 2001 by Joseph Wenninger
email ... |
<commit_before>/***************************************************************************
main.cpp - description
-------------------
begin : Wed Dec 26 03:12:10 CLST 2001
copyright : (C) 2001 by Duncan Mac-Vicar Prett
email... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#include "SkAAClip.h"
#include "SkPath.h"
static void imoveTo(SkPath& path, int x, int y) {
path.moveTo(SkIntToScalar(x), SkIntToScalar(y... |
<commit_before> /* -*- mode: c++; c-basic-offset:4 -*-
decryptverifyfilescontroller.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2008 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public... |
<commit_before>
#include "config.h"
#include "event.h"
#include <algorithm>
#include <atomic>
#include <cstring>
#include <exception>
#include <memory>
#include <mutex>
#include <new>
#include <string>
#include <thread>
#include "AL/al.h"
#include "AL/alc.h"
#include "alError.h"
#include "albyte.h"
#include "alcont... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2008 Bruno Virlet <bruno.virlet@gmail.com>
Copyright (c) 2008 Thomas Thrainer <tom_t@gmx.at>
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 S... |
<commit_before>#ifndef __STAN__PROB__DISTRIBUTIONS__MULTIVARIATE__CONTINUOUS__GAUSSIAN_DLM_HPP__
#define __STAN__PROB__DISTRIBUTIONS__MULTIVARIATE__CONTINUOUS__GAUSSIAN_DLM_HPP__
#include <boost/random/normal_distribution.hpp>
#include <boost/random/variate_generator.hpp>
#include <stan/math/matrix_error_handling.hpp... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkProbeFilter.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>//
// Landscape.cpp
//
// Created by Soso Limited on 5/26/15.
//
//
#include "Landscape.h"
#include "cinder/Log.h"
#include "Constants.h"
#include "LandscapeGeometry.h"
#include "cinder/Json.h"
using namespace soso;
using namespace cinder;
namespace {
struct alignas(16) Vertex {
vec3 position;
v... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include <string>
#include <math.h>
using namespace std;
bool controllo(string x);
struct dato {
float valore;
float errore;
};
int main (int argc, char *argv[]) {
ifstream leggi(argv[1]);
ofstream scrivi("output.txt");
... |
<commit_before>#include <Servo.h>
#include "Msg.h"
#include "Device.h"
#include "MrlServo.h"
MrlServo::MrlServo(int deviceId) : Device(deviceId, DEVICE_TYPE_SERVO) {
isMoving = false;
isSweeping = false;
// create the servo
servo = new Servo();
lastUpdate = 0;
currentPosUs = 0.0;
targetPosUs = 0;
veloc... |
<commit_before><commit_msg>More robust randomness for seeding RNG<commit_after><|endoftext|> |
<commit_before>/** @mainpage C++11 Proton Library
*
* @authors <a href="http://lenx.100871.net">Lenx Tao Wei</a> (lenx.wei at gmail.com)
*
* @section intro Introduction
* Proton is a library to provide Python-like interfaces for C++11,
* which try to make porting from Python to C++11 easier,
* and make programming in C... |
<commit_before><commit_msg>Make config instances local static variables so that initialization happens only when the configuration is selected.<commit_after><|endoftext|> |
<commit_before>#ifndef GNR_DISPATCH_HPP
# define GNR_DISPATCH_HPP
# pragma once
#include <type_traits>
#include <utility>
#include "invoke.hpp"
namespace gnr
{
namespace detail
{
template <typename A, typename ...B>
struct front
{
using type = A;
};
template <typename ...A>
using front_t = typename front<A...>... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>
#include <iostream>
#include <stdexcept>
#include <sys/mman.h>
#include <unistd.h>
#include "PINContextHandler.h"
#include "PINConverter.h"
PINContextHandler::PINContextHandler(CONTEXT *ctx, THREADID id):
_ctx(ctx),
_threadId(id)
{
}
// REG is a enum, so the cast is from a bigger type.
static ... |
<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>//****************************************************************************//
// mixer.cpp //
// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
//************************************************************... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
//
// License Agreement:
//
// The following are Copyright 2008, Daniel nnerby
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provid... |
<commit_before>#ifndef VSMC_CORE_WEIGHT_HPP
#define VSMC_CORE_WEIGHT_HPP
#include <vsmc/internal/common.hpp>
#include <vsmc/utility/cxxblas.hpp>
namespace vsmc {
/// \brief Weight set class
/// \ingroup Core
template <typename T>
class WeightSet
{
public :
typedef typename traits::SizeTypeTrait<T>::type siz... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
* Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com>
*
* MenuBarState prelight effect is based on
* Redmond95 - a cairo based GTK+ engine
* Copyright (C) 2001 Red Hat, Inc. <@redha... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>#include <boost/intrusive/list.hpp>
// create policies
//Create empty container
template<class Container>
struct Empty {
inline static Container make(std::size_t) {
return Container();
}
inline static void clean(){}
};
//Prepare data for fill back
template<class Container>
stru... |
<commit_before>//Copyright (c) 2019 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <gtest/gtest.h>
#include "../src/infill.h"
#include "ReadTestPolygons.h"
//#define TEST_INFILL_SVG_OUTPUT
#ifdef TEST_INFILL_SVG_OUTPUT
#include <cstdlib>
#include "../src/utils/SVG.h"
#endif... |
<commit_before>#ifndef GUARD_VERIFY_HPP
#define GUARD_VERIFY_HPP
#include <numeric>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <mlopen/returns.hpp>
// Compute the value of a range
template<class R>
using range_value = typename std::decay<decltype(*std::declval<R>().begin())>::type;
struct su... |
<commit_before>#include <boost/interprocess/ipc/message_queue.hpp>
#include <iostream>
#include <vector>
#include <boost/archive/text_iarchive.hpp>
#include <time.h>
#include "liblager_connect.h"
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
#include <X11/extensions/XTest.h>
#include <unistd.h>
using namespace boo... |
<commit_before>//===-- X86FastISel.cpp - X86 FastISel implementation ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights 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>/*
Copyright 2014 Sarah Wong
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 t... |
<commit_before><commit_msg>Fixed issues retrieving shader program link logs in ShaderUtils<commit_after><|endoftext|> |
<commit_before>//===- DCE.cpp - Code to perform dead code elimination --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "stdafx.h"
#include "SimplifyMesh.h"
#include "mesh/TriangleMeshCall.h"
#include "mmcore/param/FloatParam.h"
#include "mmcore/utility/DataHash.h"
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Point_3.h>
#include <CGAL/Segment_3.h>
#include <CGAL/Surface_mesh.... |
<commit_before>/*
* @file soundcloud_widget.cc
* @author Arthur Fait
* @date 31.08.15
*
*/
#include "soundcloud_widget.h"
#include <stdlib.h>
extern "C" {
#include <audacious/i18n.h>
#include <audacious/misc.h>
#include <audacious/playlist.h>
#include <audacious/plugin.h>
#include <libaudc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.