text
stringlengths
54
60.6k
<commit_before>#include <ModuleDefines.hpp> #include <Extension.hpp> namespace Module { /** * An extension that incorporates bullet physics into the Module Game Engine. */ class Physics : Extension { // IMPLEMENT THESE // virtual const std::string& getName() { return "Bullet Physics Extension"; } virtual cons...
<commit_before>#include "cnn/edges.h" #include "cnn/cnn.h" #include "cnn/training.h" #include <boost/archive/text_oarchive.hpp> #include <iostream> #include <fstream> using namespace std; using namespace cnn; int main(int argc, char** argv) { cnn::Initialize(argc, argv); // parameters const unsigned HIDDEN_S...
<commit_before>// $Id$ AliAnalysisTaskSE* AddTaskJetPreparation( const char* dataType = "ESD", const char* periodstr = "LHC11h", const char* usedTracks = "PicoTracks", const char* usedMCParticles = "MCParticlesSelected", const char* usedClusters = "CaloClust...
<commit_before>#include<iostream> #include <cstdlib> #include <cstdio> #include <array> #include <utility> #include <boost/test/unit_test.hpp> using RawField = std::array<std::array<char, 32>, 32>; using RawStone = std::array<std::array<char, 8>, 8>; constexpr int ROTATE_90 = 1, ROTATE_180 = 2, R...
<commit_before>#include "from_json.h" #include <unordered_map> #include <stack> #include <asdf_multiplat/utilities/utilities.h> using namespace asdf; using namespace asdf::util; namespace tired_of_build_issues { std::string read_text_file(std::string const& filepath) { //if(!is_file(filepath)) /...
<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) 2015 Yannick Mueller This file is part of longscroll-qt. longscroll-qt 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, or (at your option) any later versi...
<commit_before>//===- Optimize.cpp - Optimize a complete program -------------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: MNSTerminateListener.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-17 03:01:40 $ * * The Contents of this f...
<commit_before>//===--- ParameterPack.cpp - Utilities for variadic generics --------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2022 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swi...
<commit_before>//===--- USRGeneration.cpp - Routines for USR generation ------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>///===--- FileManager.cpp - File System Probing and Caching ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------...
<commit_before>//===--- ARC.cpp - Implement ARC target feature support -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without...
<commit_before>// // File generated by c:\Devel\root_working\code\root.vc8\utils\src\rootcint_tmp.exe at Wed May 16 23:07:42 2007 // Do NOT change. Changes will be lost next time file is generated // #include "RConfig.h" #if !defined(R__ACCESS_IN_SYMBOL) //Break the privacy of classes -- Disabled for the moment #defi...
<commit_before>/* * Copyright (c) 2003 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 copyri...
<commit_before>/* Copyright 2013 Roman Kurbatov * * 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 la...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.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 ob...
<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>// Copyright (c) 2012-2020 FRC Team 3512. All Rights Reserved. #include "Robot.hpp" #include <cmath> Robot::Robot() { autonSelector.AddAutoMethod("Bridge", std::bind(&Robot::AutonBridgeInit, this), std::bind(&Robot::AutonBridgePeriodi...
<commit_before>#include <stdio.h> #include <string.h> #include <string> #include <jvmti.h> #include "globals.h" #include "profiler.h" static ConfigurationOptions* CONFIGURATION = new ConfigurationOptions(); static Profiler* prof; // This has to be here, or the VM turns off class loading events. // And AsyncGetCall...
<commit_before>/* * Copyright (c) 2011 Matt Fichman * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modi...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use t...
<commit_before>/* * Copyright (c) 2012 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 implementati...
<commit_before>AliAnalysisTaskSubJetFraction* AddTaskAliAnalysisTaskSubJetFraction(const char * njetsData, //data jets const char * njetsTrue, //Pyhthia Particle Level const char * njetsDet, const char * njetsHybridUs, const char * njetsHybridS, const Double_t...
<commit_before>// PUMI Example // // Compile with: Add GenerateMFEMMesh.cpp in the CMakeLists.txt // // Sample runs: ./GenerateMFEMMesh -m ../data/pumi/serial/sphere.smb // -p ../data/pumi/geom/sphere.x_t -o 1 // // Description: The purpose of this example is to gen...
<commit_before>#pragma once //=====================================================================// /*! @file @brief SEEDA03 (RX64M) メイン @copyright Copyright 2017 Kunihito Hiramatsu All Right Reserved. @author 平松邦仁 ([email protected]) */ //=============================================================...
<commit_before>/** * @file * @brief Implementation of Geant4 deposition module * @remarks Based on code from Mathieu Benoit * @copyright Copyright (c) 2017 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applyin...
<commit_before>// Copyright (c) 2012, Steinwurf ApS // 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 // notic...
<commit_before>#include "simulator.hpp" #include <float.h> void SMSimulator::init(itpp::bvec _inputBits) { inputBits = _inputBits; Nt = itpp::length(inputBits); ofs << "SNR[dB],BER" << std::endl; m = log2(nC * nTx); if (Nt % m != 0) { inputBits = itpp::concat(inputBits, itpp::zeros_b(Nt % m)); N...
<commit_before>//$Id: ResultsPostProcessor.h 3456 2013-06-26 02:11:13Z Jamshid $ /* * The Software is made available solely for use according to the License Agreement. Any reproduction * or redistribution of the Software not in accordance with the License Agreement is expressly prohibited * by law, and may result i...
<commit_before>/* * Copyright (c) 2011 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>// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html #ifndef __BSE_CXXAUX_HH__ #define __BSE_CXXAUX_HH__ #include <sfi/sysconfig.h> #include <sys/types.h> // uint, ssize #include <cstdint> // uint64_t #include <memory> #include <vector> #include...
<commit_before>#include "mainwindow.h" #include "pagefactory.h" #include "dcppage.h" #include <duinavigationbar.h> #include <duideviceprofile.h> MainWindow::MainWindow() { connect(navigationBar(), SIGNAL(homeClicked()), this, SLOT(homeClicked())); connect(navigationBar(), SIGNAL(backClicked()), this, SLOT(back...
<commit_before>#pragma once #include <utility> #include <vector> #include <cmath> #include <fstream> #include <iomanip> #include "derivative.hpp" namespace fp { template<typename Func, typename Float> std::tuple<std::vector<Float>, int, std::vector<Float>> fixed_point(const Func& g, Float x0, Float abstol) ...
<commit_before>#include "mapgeneratorwindow.h" #include "ui_mapgeneratorwindow.h" #include <QFileDialog> #include <QValidator> #include <JoshMath.h> MapGeneratorWindow::MapGeneratorWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MapGeneratorWindow) { ui->setupUi(this); } MapGeneratorWindow::~MapG...
<commit_before>/**************************************************************************** * Copyright 2016 BlueMasters * * 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:/...
<commit_before>//===--- StringMap.cpp - String Hash table map implementation -------------===// // // The LLVM Compiler Infrastructure // // This file was developed by Chris Lattner and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===-----...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: localfilehelper.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-09-16 15:11:34 $ * * The Contents of this file a...
<commit_before>/******************************************************************************\ * File: shell.cpp * Purpose: Implementation of class wxExSTCShell * Author: Anton van Wezenbeek * RCS-ID: $Id$ * * Copyright (c) 1998-2009 Anton van Wezenbeek * All rights are reserved. Reproduct...
<commit_before>#include <nan.h> #include "oc-dev-addr.h" #include "../common.h" using namespace v8; Local<Object> js_OCDevAddr(OCDevAddr *address) { uint32_t addressIndex; Local<Object> returnValue = NanNew<Object>(); // addr.addr Local<Array> addrAddr = NanNew<Array>(DEV_ADDR_SIZE_MAX); for (addressIndex ...
<commit_before>/* * Copyright (C) 2009, 2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #ifndef URB...
<commit_before>/* Copyright 2017-2018 CyberTech Labs Ltd. * * 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 app...
<commit_before>/************************************************************************* * * $RCSfile: TIndexes.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: vg $ $Date: 2005-03-23 09:40:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ETables.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: rt $ $Date: 2005-09-08 06:01:51 $ * * The Contents of this file are made ...
<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 "content/browser/gpu/gpu_data_manager_impl.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/command_li...
<commit_before>/** \copyright * Copyright (c) 2019, Mike Dunston * 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 notic...
<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. // Tests for CppBoundClass, in conjunction with CppBindingExample. Binds // a CppBindingExample class into JavaScript in a custom test...
<commit_before>/** * \file * \brief ThisThread namespace implementation * * \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 ...
<commit_before>#include "gum/Statistics.h" #include "gum/StatFPS.h" #include "gum/StatTag.h" #include "gum/GUM_GTxt.h" #include <logger.h> #include <glp_loop.h> #include <ps_3d.h> #include <sprite2/pre_defined.h> #include S2_MAT_HEADER #include <sprite2/StatDrawCall.h> #include <sprite2/StatPingPong.h> #include <sprit...
<commit_before>/* * Trajectory class representing a trajectory in state space * * Author: Andrew Barry, <[email protected]> 2013-2015 * */ #include "Trajectory.hpp" // Constructor that loads a trajectory from a file Trajectory::Trajectory() { trajectory_number_ = -1; dimension_ = 0; udimension_ ...
<commit_before>#include "movable_entity.h" #include <iostream> // TODO remove! #include <algorithm> using namespace space_invaders; MovableEntity::MovableEntity(Game& game) : DrawableEntity(game), mStepSize(0), mStepCounter(0), mVelocity(0.f), mDirectionX(0.f), mDirectionY(0.f) { ...
<commit_before>#include "utils/rename-existing/rename-existing-2.h" #include <QDir> #include <QFile> #include <ui_rename-existing-2.h> #include "functions.h" #include "logger.h" #include "rename-existing-table-model.h" RenameExisting2::RenameExisting2(QList<RenameExistingFile> details, QString folder, QWidget *parent...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is dis...
<commit_before>// Copyright (c) 2012-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/system.h> #include <util/time.h> #include <validation.h> #include <atomic> #include <checkqueu...
<commit_before>///////////////////////////////////////////////////////////////////////// // $Id: osdep.cc,v 1.12 2003/01/10 22:32:44 cbothamy Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. // // MandrakeSoft S.A. // 43, rue d'Aboukir //...
<commit_before>/************************************************************************* * * $RCSfile: ignoreKiKuFollowedBySa_ja_JP.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2004-09-08 16:46:13 $ * * The Contents of this file are made available subject to the terms of * either of...
<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 * "Li...
<commit_before>// Copyright (c) 2021 by 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/LICENSE-2.0 // // Unless...
<commit_before>/************************************************************************ filename: FalProgressBar.cpp created: Sat Jul 2 2005 author: Paul D Turner <[email protected]> *************************************************************************/ /***************************************...
<commit_before>/* * Copyright (C) 2004-2008 Marc Boris Duerner * * 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 ...
<commit_before>// Copyright (c) 2013-2014 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcserver.h" #include "rpcclient.h" #include "base58.h" #include "wallet.h" #include <boost/al...
<commit_before>#include "CppUnitTest.h" #include <string> #include <vector> using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace std; namespace algo { template<class Traits> class tokens { vector<typename Traits::type> tokens_; public: bool empty() const { ret...
<commit_before>/* * Server.cpp * * Created on: 2009-09-13 * Author: chudy */ #include "network/Server.h" #include "common.h" #include "network/events.h" Server::Server(int p_port) : m_raceServer(this) { m_slots.connect(m_gameServer.sig_client_connected(), this, &Server::slotClientConnected); m_slots.co...
<commit_before>/*$Id$ * * This source file is a part of the Berlin Project. * Copyright (C) 1998 Graydon Hoare <[email protected]> * Copyright (C) 2000 Stefan Seefeld <[email protected]> * http://www.berlin-consortium.org * * This library is free software; you can redistribute it and/or * modify it...
<commit_before>#include "shared.hh" #include "local-store.hh" #include "util.hh" #include "serialise.hh" #include "worker-protocol.hh" #include "archive.hh" #include <iostream> using namespace nix; Path readStorePath(Source & from) { Path path = readString(from); assertStorePath(path); return path; } ...
<commit_before>/********************************************************************** Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. 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 S...
<commit_before>// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- /* * Copyright (C) 2014 iCub Facility, Istituto Italiano di Tecnologia * Author: Lorenzo Natale * email: [email protected] * Permission is granted to copy, distribute, and/or modify this program * under the terms of the G...
<commit_before>/* * Copyright (C) 2013 midnightBITS * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * mod...
<commit_before>/** * @file * @brief Inheritance example * @date 28.12.12 * @author Felix Sulima */ #include <framework/example/self.h> #include <new> #include <cstdio> // TEST: include all C++ headers #include <cassert> #include <cctype> #include <cerrno> #include <cmath> #include <csetjmp> #include <cstdarg> #...
<commit_before>// Copyright (c) 2020 Intel Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modi...
<commit_before>/************************************************************************* * * $RCSfile: debug.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: as $ $Date: 2001-05-02 13:00:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>#include <cmath> #include <cstdio> #include <omp.h> // (Sub-optimum) Array of Structure - good OOP. Bad Performance. // Structure of individual particle //struct ParticleType { // float x, y, z; // float vx, vy, vz; //}; // (Optimum) Structure of Array - bad OOP. Good performance. struct ParticleSe...
<commit_before> #ifndef MANAGER_HPP_ #define MANAGER_HPP_ #include <vector> #include <map> #include <random> #include "Chromosome.hpp" #define MINIMUM_NUMBER 0 template <class T> class Manager { protected: unsigned int population_size; unsigned int chromosome_size; unsigned int max_generation_number; T max_c...
<commit_before>// // simrecomb.cpp // // Copyright 2012 Darren Kessner // // 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><commit_msg>sal_Bool->bool<commit_after><|endoftext|>
<commit_before>// Copyright 2014 Alessio Sclocco <[email protected]> // // 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 <QCommandLineParser> #include <QCoreApplication> #include <QJsonArray> #include <QJsonDocument> #include <QJsonObject> #include <QTimer> #include "functions.h" #include "logger.h" #include "models/api/api.h" #include "models/page.h" #include "models/page-api.h" #include "models/profile.h" #inclu...
<commit_before><commit_msg>Avoid OS X sandbox messages when just checking if a pathname is a directory<commit_after><|endoftext|>
<commit_before>// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON) // Copyright 2017 Netherlands eScience Center // // 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 // // ...
<commit_before>// Copyright (c) 2017 offa // Copyright 2011 Ciaran McHale. // // 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 right...
<commit_before>#define BOOST_TEST_STATIC_LINK #include <boost/test/unit_test.hpp> #include <string> #include <limits> #include <stdexcept> #include "./../../fixed_point_lib/src/number.hpp" namespace utils { namespace unit_tests { namespace { using utils::SOU_number; using utils::UOU...
<commit_before>// Interface for 2D Canvas element // // Copyright (C) 2012 Thomas Geymayer <[email protected]> // // 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 o...
<commit_before>/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB 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) ...
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 applic...
<commit_before>//===- llvm/unittest/ADT/ValueMapTest.cpp - ValueMap unit tests -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2017 Robert Ou <[email protected]> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice app...
<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) 2012 Fernando José Iglesias Garc...
<commit_before>/* * Ubitrack - Library for Ubiquitous Tracking * Copyright 2006, Technische Universitaet Muenchen, and individual * contributors as indicated by the @authors tag. See the * copyright.txt in the distribution for a full listing of individual * contributors. * * This is free software; you can redis...
<commit_before>/** * @file system.hpp * Exact diagonaliser base classes. * @author Burkhard Ritter * @version * @date 2010-12-10 */ #ifndef __TEST_HPP__ #define __TEST_HPP__ #include <iostream> #include "basis.hpp" namespace Filter { class SelectAll { public: bool operator() (const State&)...
<commit_before>/************************************************************/ /* print_board_functions.cpp: some functions to plot boards */ /************************************************************/ #include "fctsys.h" #include "gr_basic.h" #include "common.h" #include "class_drawpanel.h" #include "pcbnew.h" #in...
<commit_before>// // ofxFBXSkeleton.cpp // ofxFBX-Example-Importer // // Created by Nick Hardeman on 11/5/13. // // #include "ofxFBXSkeleton.h" ofxFBXBone dummyBone; //-------------------------------------------------------------- ofxFBXSkeleton::ofxFBXSkeleton() { numBones = 0; } //--------------------------...
<commit_before>#include "MazeFileUtilities.h" #include <fstream> #include <iostream> #include <iterator> #include <sstream> #include <vector> #ifdef _WIN32 #include <windows.h> #elif __linux #include <limits.h> #include <unistd.h> #endif namespace sim { std::string getProjectDirectory(){ // This ap...
<commit_before>#include <cmath> #include <array> #include <chrono> #include <sstream> #include <iostream> #include <iomanip> #include <algorithm> #include <sys/stat.h> #include "simulation.h" #include "codes/codes.h" namespace detail { inline bool file_exists(const std::string &fname) { struct stat buf; return (...
<commit_before>// Floating Temple // Copyright 2015 Derek S. Snyder // // 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 requi...
<commit_before>//#define BLYNK_DEBUG #define BLYNK_PRINT Serial #include <wifi_config.h> #include <blynk_config.h> #include <BlynkSimpleEsp8266.h> #include <WiFiUdp.h> #include <NTPClient.h> #include <SimpleTimer.h> //******************************* //Define variable for Virtual Pins //******************************...
<commit_before>// *************************************************************************** // FastaIndex.cpp (c) 2010 Erik Garrison <[email protected]> // Marth Lab, Department of Biology, Boston College // All rights reserved. // --------------------------------------------------------------------------- // Last...
<commit_before>// // Copyright (C) 2014 // Alessio Sclocco <[email protected]> // // 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 lat...
<commit_before>#include "Graph.h" const int BLACK = 0x00; Graph::Graph(Screen* s, int sca) { screen = s; scale = sca; width = s->width; height = s->height; origin[0] = width/2; origin[1] = height/2; in = new InputMan(); running = true; } Graph::~Graph(void) { } int units(){[...
<commit_before>#include "all.h" void Graph::addNoodle(Noodle *n, Endpoint from, Endpoint to) { if (m_blocks.find(from.block) == m_blocks.end()) { debug("- block %s(%p) is not in the graph; adding now.\n", from.block->name(), from.block); bool result = m_blocks.insert(from.block).second; assert(result); ...