text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org)
*
* 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... |
<commit_before>/*
pvsops.c: pvs and other spectral-based opcodes
Copyright (C) 2017 Victor Lazzarini
This file is part of Csound.
The Csound 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 Foundat... |
<commit_before>/*************************************************************************
*
* $RCSfile: hfi_struct.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: np $ $Date: 2002-11-01 17:14:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before><commit_msg>Properly remove HAS_ASYNC code<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
**
** Copyright (C) 1992-$THISYEAR$ $TROLLTECH$. All rights reserved.
**
** This file is part of $PRODUCT$.
**
** $CPP_LICENSE$
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN... |
<commit_before>#pragma once
#include <string>
#include <list>
#include <map>
#include <Video/Profiling/Query.hpp>
#include "../linking.hpp"
#include <d3d11_3.h>
#include <dxgi1_4.h>
#undef CreateDirectory
/// Handles profiling.
class ProfilingManager {
friend class Hub;
friend class Profiling;
friend cl... |
<commit_before>Matrix2f M = Matrix2f::Random();
Matrix2f m;
m = M;
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Now we want to replace m by its own transpose." << endl;
cout << "If we do m = m.transpose(), then m becomes:" << endl;
m = m.transpose() * 1;
cout << m << endl << "which is wrong!" << endl;... |
<commit_before>/*
* Copyright (C) 2011 by Julian Wiesener
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later versi... |
<commit_before>#include "mbed.h"
#include "WS2811.h"
#define X_MAX 64
#define Y_MAX 64
#define nRows 8 //The number of rows in a basic block
#define nCols 8 // The number of columns in a basic block
// per LED: 3 * 20 mA = 60mA max
// 60 LEDs: 60 * 60mA = 3600 mA max
// 120 LEDs: 7200 mA max
unsigned const nLEDs... |
<commit_before>#include "ofxLog4CppChannel.h"
namespace ofxLog4CppChannelNS{
bool isShutdown;
void shutdown(){
isShutdown = true;
}
}
ofxLog4CppChannel::ofxLog4CppChannel():
root(log4cpp::Category::getRoot())
{
ofxLog4Cpp::init();
ofSetLogLevel(ofLogLevel::OF_LOG_VERBOSE);//let's let log4cpp handle the filter... |
<commit_before>#include <ast/all.hh>
#include <ast/new-clone.hh>
#include <ast/parametric-ast.hh>
#include <object/symbols.hh>
#include <parser/ast-factory.hh>
#include <parser/event-match.hh>
#include <parser/parse.hh>
#include <parser/parse-result.hh>
#include <rewrite/pattern-binder.hh>
#include <rewrite/rewrite.hh>... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2008 Ulrich von Zadow
//
// 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 of the Li... |
<commit_before>////////////////////////////////////////////////////////////
//
// The MIT License (MIT)
//
// Copyright (c) 2014 stevehalliwell
//
// 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 So... |
<commit_before>// Copyright (c) 2015-2018 The Gulden developers
// Authored by: Malcolm MacLeod (mmacleod@webmail.co.za)
// Distributed under the GULDEN software license, see the accompanying
// file COPYING
#include "clientversion.h"
#include "ticker.h"
#include "utilmoneystr.h"
#include "arith_uint256.h"
#include "u... |
<commit_before>// Copyright (c) 2011-2013 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 "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "addressbookpage.h"
#include "addresstable... |
<commit_before><commit_msg>Fix HTTPServer::GetNextLoop compile error for libevent2.0 version<commit_after><|endoftext|> |
<commit_before><commit_msg>Update sensorflare.cpp<commit_after><|endoftext|> |
<commit_before>#include "station.h"
#include "ed_info.h"
#include "util.h"
Station::Station(Statement &stmt, ED_Info &info){
unsigned hasness_bitmap;
boost::optional<u64> government, allegiance, state, type;
stmt
>> this->id
>> this->system_id
>> this->name
>> this->max_landing_pad_size
>> thi... |
<commit_before>/*
* File: BackpropeagationLearner.cpp
* Author: janvojt
*
* Created on July 13, 2014, 12:10 AM
*/
#include "BackpropagationLearner.h"
#include "Network.h"
#include "LabeledDataset.h"
#include <cstring>
#include <string>
#include <stdexcept>
#include "log/LoggerFactory.h"
#include "log4cpp/Cat... |
<commit_before>#include <ros/ros.h>
#include <ros/console.h>
#include <sensor_msgs/PointCloud2.h>
// PCL specific includes
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/filters/extract_indices.h>
#include <pcl/fea... |
<commit_before>#include "board/Board.h"
#include "board/common/indicators/Variables.h"
#include "board/common/uart/Variables.h"
#include "Constants.h"
RingBuff_t txBuffer[UART_INTERFACES];
RingBuff_t rxBuffer[UART_INTERFACES];
///
/// \brief Flag determining whether or not UART loopback functionality is enabled.
... |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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>/*************************************************************************
*
* $RCSfile: borderconn.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2004-08-02 17:42:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>//
// ADSREnvelope.hpp
// AudioKit Core
//
// Created by Shane Dunne, revision history on Github.
// Copyright © 2018 AudioKit. All rights reserved.
//
#include "ADSREnvelope.hpp"
#include <stdio.h>
namespace AudioKitCore
{
ADSREnvelopeParameters::ADSREnvelopeParameters()
: sampleRateHz(44... |
<commit_before>/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <gtest/gtest.h>
#include <limits>
#include <uavcan/marshal/types.hpp>
#include <uavcan/transport/transfer_buffer.hpp>
TEST(FloatSpec, Limits)
{
using uavcan::FloatSpec;
using uavcan::CastModeSaturate;
using uav... |
<commit_before>#include "ContainerWithMostWater.hpp"
#include <algorithm>
using namespace std;
int Solution::maxArea(vector<int>& height)
{
if (height.size() < 2) return 0;
int i = 0;
int j = height.size() - 1;
int area = min(height[i], height[j]) * (j - i);
while (i < j) {
if (height[i] < height[j]) ... |
<commit_before>/*-------------------------------------------------------------------------
*
* plan_transformer.cpp
* file description
*
* Copyright(c) 2015, CMU
*
* /n-store/src/bridge/plan_transformer.cpp
*
*-------------------------------------------------------------------------
*/
#include "nodes/pprint... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: outlundo.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2007-06-27 18:42:10 $
*
* The Contents of this file are made ... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>/*-------------------------------------------------------------------------
*
* plan_transformer.cpp
* file description
*
* Copyright(c) 2015, CMU
*
* /n-store/src/bridge/plan_transformer.cpp
*
*-------------------------------------------------------------------------
*/
#include "nodes/pprint... |
<commit_before>/* Copyright (C) 2011 LinBox
* Written by BB <brice.boyer@imag.fr>
*
*
*
* ========LICENCE========
* This file is part of the library LinBox.
*
* LinBox 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>#pragma once
#include <DO/Core/Pixel/ChannelConversion.hpp>
namespace DO {
//! \defgroup ColorTypes Color typedefs
//! @{
// ======================================================================== //
//! Macro for generic color typedefs like in OpenGL.
#define DEFINE_GENERIC_COLOR_TYPEDEF... |
<commit_before><commit_msg>coverity#704894 Explicit NULL derefenced<commit_after><|endoftext|> |
<commit_before><commit_msg>Refactor a tiny bit of SwLayAction::IsShortCut<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: itrform2.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: kz $ $Date: 2004-03-25 12:53:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before><commit_msg>Rework some loops<commit_after><|endoftext|> |
<commit_before>/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation... |
<commit_before>/*
* 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 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2013 Evgeniy Andreev (gsomix)
*... |
<commit_before><commit_msg>CID#705102 try and help coverity out re infinite loop<commit_after><|endoftext|> |
<commit_before><commit_msg>OUString: avoid concatenated appends and temporaries<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: tbxanchr.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2003-12-01 09:46:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before><commit_msg>Correct way to do it.<commit_after><|endoftext|> |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:... |
<commit_before>/************************************************************************/
/* */
/* Copyright 2008-2011 by Ullrich Koethe */
/* Cognitive Systems Group, University of Hamburg, Germany */
/* ... |
<commit_before><commit_msg>MAINT-3553 Another checking is added to avoid possible crash.<commit_after><|endoftext|> |
<commit_before>/* Copyright 2018 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>#include <realm/group_shared.hpp>
#include <realm/commit_log.hpp>
#include "../test.hpp"
#include <stdio.h>
#include <fstream>
using namespace realm;
using namespace realm::util;
struct InputStreamAdapter : _impl::InputStream {
InputStreamAdapter(std::ifstream& s) : m_stream(s) {}
size_t read... |
<commit_before>#include "nanocv.h"
#include "models/forward_network.h"
#include "task.h"
#include <boost/program_options.hpp>
namespace ncv
{
class dummy_tast_t : public ncv::task_t
{
public:
NANOCV_MAKE_CLONABLE(dummy_tast_t)
/... |
<commit_before>#include "diff_system.h"
#include "dof_map.h"
#include "numeric_vector.h"
#include "time_solver.h"
DifferentiableSystem::DifferentiableSystem
(EquationSystems& es,
const std::string& name,
const unsigned int number) :
Parent (e... |
<commit_before>// Source : https://oj.leetcode.com/problems/3sum/
// Author : Hao Chen
// Date : 2014-07-22
/**********************************************************************************
*
* Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0?
* Find all unique triplets in... |
<commit_before>// Copyright 2018 The Bazel 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 r... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) <2015> <Stephan Gatzka>
*
* 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 limitati... |
<commit_before>/*ckwg +5
* Copyright 2012-2013 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 "helpers/pipeline_builder.h"
#include "helpers/tool_main.h"
#inc... |
<commit_before>#include <ros/console.h>
#include <string>
#include <tr_hub_parser/RangeArray.h>
#include <tr_hub_parser/tr_evo_hub_parser.h>
namespace tr_hub_parser {
Tr_hub_parser::Tr_hub_parser() {
// Get parameters
ros::NodeHandle private_node_handle_("~");
private_node_handle_.param("portname", port... |
<commit_before>/*
* Copyright 2008 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 direc... |
<commit_before>#include <Core/Geometry/MeshPrimitives.hpp>
#include <Core/Geometry/TopologicalMesh.hpp>
#include <Core/Geometry/TriangleMesh.hpp>
#include <Tests.hpp>
#include <OpenMesh/Tools/Subdivider/Uniform/CatmullClarkT.hh>
#include <OpenMesh/Tools/Subdivider/Uniform/LoopT.hh>
#include <OpenMesh/Tools/Decimater/... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief vocbase traversals
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014-2015 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Ve... |
<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>#include "affinity.hh" // FIXME
#include "command.hh"
#include "progress-bar.hh"
#include "shared.hh"
#include "store-api.hh"
#include "sync.hh"
#include "thread-pool.hh"
#include <atomic>
using namespace nix;
struct CmdVerifyPaths : StorePathsCommand
{
bool noContents = false;
bool noSigs = f... |
<commit_before>/*
Copyright (c) 2016 Louis McCarthy
All rights reserved.
Licensed under MIT License, see LICENSE for full License text
opensspro.cpp - Basic USB driver for the Starshoot Pro V2.0 Color Imager
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libusb-1.0/libusb.h>
#include... |
<commit_before>/**
* @file piper_proc.cc
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include <paths.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/param.h>
#include <sys/time.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#incl... |
<commit_before>#include "qnodeview.h"
#include <QtCore/QDebug>
#include "graphicsnode.hpp"
#include "qreactiveproxymodel.h"
#include "graphicsnodescene.hpp"
#include "graphicsnodesocket.hpp"
#include "qnodeeditorsocketmodel.h"
class QNodeViewPrivate final : public QObject
{
public:
explicit QNodeViewPrivate(QO... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "amount.h"
#include "chainparams.h"
#include "core_io.h"
#include "... |
<commit_before>#include "reader_options.h"
#include "rpg_actor.h"
#include "rpg_event.h"
#include "rpg_map.h"
#include "rpg_mapinfo.h"
#include "rpg_system.h"
#include "rpg_save.h"
#include "rpg_chipset.h"
#include "rpg_parameters.h"
#include "data.h"
void RPG::SaveActor::Setup(int actor_id) {
const RPG::Actor& actor... |
<commit_before>// Copyright (c) 2016 The Zcash developers
// Copyright (c) 2017-2018 The LitecoinZ developers
// Original code from: https://gist.github.com/laanwj/0e689cfa37b52bcbbb44
/*
To set up a new alert system
----------------------------
Create a new alert key pair:
openssl ecparam -name secp256k1 -genkey -p... |
<commit_before>/*****************************************************************************************//**
* @file sensortag.cpp
*
* Copyright (c)
* SmartRoboticSystems
* December 2015
*
* This program creates connection to SensorTag 2650 using hcitool & gatttool, starts
* temperature, light and humidity measurement... |
<commit_before>#include "singletons.h"
std::unique_ptr<Source::Config> Singleton::Config::source_=std::unique_ptr<Source::Config>(new Source::Config());
std::unique_ptr<Directories::Config> Singleton::Config::directories_=std::unique_ptr<Directories::Config>(new Directories::Config());
std::unique_ptr<Terminal::Config... |
<commit_before>/*
* Copyright (c) 2013-2020 Fredrik Mellbin
*
* This file is part of VapourSynth.
*
* VapourSynth is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or ... |
<commit_before>//---------------------------- dof_constraints_01.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2004 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to t... |
<commit_before>/* <x0/mod_dirlisting.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
*
* (c) 2009 Chrisitan Parpart <trapni@gentoo.org>
*/
#include <x0/server.hpp>
#include <x0/request.hpp>
#include <x0/response.hpp>
#include <x0/header.hpp>
#include <x0/strutils.hpp>
#includ... |
<commit_before>/*
* Copyright (c) 2015 WinT 3794 <http://wint3794.org>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
<commit_before>/**
*
* \section COPYRIGHT
*
* Copyright 2013-2015 The srsLTE Developers. See the
* COPYRIGHT file at the top-level directory of this distribution.
*
* \section LICENSE
*
* This file is part of the srsLTE library.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under t... |
<commit_before>#include <cassert>
#include <libport/statistics.hh>
#include <iostream>
template<typename T, typename R>
static void
check(const libport::Statistics<T, R>& s,
size_t size, T min, T max, R mean, R variance)
{
std::cerr << "Mean: " << s.mean() << std::endl;
std::cerr << "Variance: " << s.varian... |
<commit_before>#include "bombled.h"
#define LED_PWM 255
#define SEGMENT_PWM 255
BombLED::BombLED()
{
_blinkOn = false;
}
void BombLED::setup()
{
_driver.setup();
}
void BombLED::reset() {
_minutes = DEFAULT_MINUTES;
_seconds = DEFAULT_SECONDS;
_ledState = 0;
_enabled = false;
_refresh = true;
up... |
<commit_before>#ifndef SWITCH_NODE_HPP
#define SWITCH_NODE_HPP
#include <core/tp_aware_dtm_node.hpp>
#include <core/error_handler.hpp>
#include <math/functions.hpp>
#include <helper/node_counter.hpp>
#include <memory>
#include <utility>
#include <string>
namespace mcmc_utilities
{
template <typename T,template <t... |
<commit_before>#include <libmesh/dirichlet_boundaries.h>
#include <libmesh/dof_map.h>
#include <libmesh/elem.h>
#include <libmesh/equation_systems.h>
#include <libmesh/exodusII_io.h>
#include <libmesh/function_base.h>
#include <libmesh/linear_implicit_system.h>
#include <libmesh/mesh.h>
#include <libmesh/numeric_vector... |
<commit_before>/*
* The Biomechanical ToolKit
* Copyright (c) 2009-2013, Arnaud Barré
* 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 re... |
<commit_before>/***************************************************************************
* Copyright © 2003 Unai Garro <ugarro@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
... |
<commit_before>/***************************************************************************
* Copyright (C) 2003 by *
* Unai Garro (ugarro@users.sourceforge.net) *
* ... |
<commit_before>#include "staticfunctions.h"
#include <QRegExp>
void
StaticFunctions::initQColorDialog()
{
int i;
int nNodes = 16;
int Nodes[] = { 0, 4, 8, 12, 16, 20, 23, 24, 28, 32, 36, 40, 44, 45, 46, 47 };
int RED[] = { 255, 255, 0, 0, 0, 255, 255, 255, 255, 128, 255, 128, 128, 0... |
<commit_before>#ifdef LIBUS_USE_QUIC
/* Do not rely on this API, it will change */
#include "Http3App.h"
#include <iostream>
/* Example of simple Http3 server handling both GET with headers and POST with body.
* You might be surprised to find out you can replace uWS::H3App with uWS::SSLApp and
* serve TCP/TLS-based... |
<commit_before><commit_msg>Don't allow duplicate keys on PropertyMap construction<commit_after><|endoftext|> |
<commit_before>#include <common/FSUtils.h>
#include <cstring>
#include <future>
#include <sstream>
#include <common/CapricaConfig.h>
#include <common/CapricaReportingContext.h>
#include <common/CaselessStringComparer.h>
#include <common/Concurrency.h>
namespace caprica { namespace FSUtils {
struct FileReadCacheEntr... |
<commit_before>/*
* nt loader
*
* Copyright 2006-2008 Mike McCormack
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any... |
<commit_before>#include "drake/solvers/MosekSolver.h"
#include <iostream>
#include <Eigen/Core>
#include "gtest/gtest.h"
#include "drake/util/testUtil.h"
#include "drake/solvers/MathematicalProgram.h"
#include "drake/solvers/Optimization.h"
#include "drake/util/eigen_matrix_compare.h"
#include "drake/solvers/Constr... |
<commit_before>#include <sstream>
#include <map>
#include "gtest/gtest.h"
#include "drake/util/Polynomial.h"
#include "drake/util/TrigPoly.h"
using namespace Eigen;
using namespace std;
namespace drake {
namespace util {
namespace {
typedef std::map<TrigPolyd::VarType, double> MapType;
const double kPi = 3.1415926... |
<commit_before>/*
Copyright (c) 2006, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMetaImageIO.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyri... |
<commit_before>#include <osg/ArgumentParser>
#include <osg/LightModel>
#include <osg/Depth>
#include <osg/BlendFunc>
#include <osg/Camera>
#include <osg/Stencil>
#include <osg/CullFace>
#include <osgProducer/Viewer>
#include <osgShadow/OccluderGeometry>
#include <osgDB/ReadFile>
class ComputeBoundingBoxVisitor : ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dtrans.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 18:12:12 $
*
* The Contents of this file are made av... |
<commit_before>/*
* Copyright 2015 Milian Wolff <mail@milianw.de>
*
* This program 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 later... |
<commit_before>/**
* @file
* @author Nico Wollenzin <nico@wollenzin>
* @version 1.0
*
* @section LICENSE
*
* Copyright [2014] [Nico Wollenzin]
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this sof... |
<commit_before>#include "stdafx.hpp"
#include <CppUnitTest.h>
#include "Geometry/Grassmann.hpp"
#include "Geometry/R3Element.hpp"
#include "Quantities/Astronomy.hpp"
#include "Quantities/BIPM.hpp"
#include "Quantities/Constants.hpp"
#include "Quantities/Dimensionless.hpp"
#include "Quantities/ElementaryFunctions.hpp... |
<commit_before>/*
Copyright 2014 Brain Research Institute, Melbourne, Australia
Written by David Raffelt 2014.
This file is part of MRtrix.
MRtrix 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 Foundatio... |
<commit_before>/*
Resembla: Word-based Japanese similar sentence search library
https://github.com/tuem/resembla
Copyright 2017 Takashi Uemura
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
h... |
<commit_before>/****************************************************************
*
* Copyright (c) 2011
* All rights reserved.
*
* Hochschule Bonn-Rhein-Sieg
* University of Applied Sciences
* Computer Science Department
*
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Author:
* Jan P... |
<commit_before>/*
HardwareSerial.cpp - Hardware serial library for Wiring
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
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; e... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2020 BMW Car IT GmbH
* %%
* 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
*
* Unles... |
<commit_before>#include <sys/time.h>
#include <sys/syscall.h>
#include <stdarg.h>
#include <string.h>
#include "log.h"
#include "config.h"
#include "simulator.h"
#include "core_manager.h"
using namespace std;
Log *Log::_singleton;
const UInt32 Log::MODULE_LENGTH;
static string formatFileName(const char* s)
{
re... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkCell.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by Ken M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.