text
stringlengths
54
60.6k
<commit_before>// Copyright 2016 Chirstopher Torres (Raven), L3nn0x // // 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...
<commit_before>/* This file is part of the KDE libraries Copyright (C) 2003-2005 Hamish Rodda <rodda@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 li...
<commit_before>#include "multiplemonthcal.h" #include "MultipleMonthCalCtrl.h" IMPLEMENT_DYNAMIC(CMultipleMonthCalCtrl, CMonthCalCtrl) CMultipleMonthCalCtrl::CMultipleMonthCalCtrl() { } CMultipleMonthCalCtrl::~CMultipleMonthCalCtrl() { } void CMultipleMonthCalCtrl::RegisterControl() { MONTHCAL_Register(); } voi...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkPairwiseExtractHistogram2D.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>/* This file is part of CanFestival, a library implementing CanOpen Stack. CanFestival Copyright (C): Edouard TISSERANT and Francis DUPIN CanFestival Win32 port Copyright (C) 2007 Leonid Tochinski, ChattenAssociates, Inc. See COPYING file for copyrights details. This library is free software; you can ...
<commit_before>/* This file is part of the KDE libraries * Copyright (C) 2008-2009 Erlend Hamberg <ehamberg@gmail.com> * * 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 * ve...
<commit_before>/*************************************************************************/ /* spdlog - an extremely fast and easy to use c++11 logging library. */ /* Copyright (c) 2014 Gabi Melman. */ /* */ /...
<commit_before>/** * Copyright (c) 2013 Egor Pushkin. 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 Software without restriction, including without limitation the rights...
<commit_before>/* Copyright (c) 2010, The Barbarian Group 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 co...
<commit_before>#pragma once /* Liveness analysis */ //#include <crab/cfg/basic_block_traits.hpp> #include <crab/domains/discrete_domains.hpp> #include <crab/iterators/killgen_fixpoint_iterator.hpp> #include <crab/support/debug.hpp> #include <crab/support/stats.hpp> #include <boost/range/iterator_range.hpp> #include ...
<commit_before>// // Copyright (c) 2014 CNRS // Authors: Florent Lamiraux // // This file is part of hpp-core // hpp-core 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 // 3 of the Lic...
<commit_before>/* * Copyright (c) 2003-2011 Rony Shapiro <ronys@users.sourceforge.net>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php...
<commit_before><commit_msg>Correct lngmerge not to work with eof<commit_after><|endoftext|>
<commit_before><commit_msg>convert system path to url<commit_after><|endoftext|>
<commit_before>/* * Copyright (C) 2018 Red Hat, Inc. * * Licensed under the GNU Lesser General Public License Version 2.1 * * 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 ...
<commit_before>// Copyright (C) 2010-2013 Joshua Boyce. // See the file COPYING for copying permission. #pragma once #include <type_traits> #include <utility> #include <hadesmem/config.hpp> // TODO: Implement same interface as std::optional<T> to make switching later // easier. // TODO: Add tests. ...
<commit_before>// // Copyright (c) 2013-2014 Christoph Malek // See LICENSE for more information. // #ifndef RJ_GAME_COMPONENTS_STAR5_HPP #define RJ_GAME_COMPONENTS_STAR5_HPP #include <SFML/Graphics.hpp> #include <cmath> namespace rj { class star5 : public sf::ConvexShape { static constexpr float m_pi{3.14159...
<commit_before>#define CATCH_CONFIG_MAIN #include "catch.hpp" #include "rapidjson/document.h" #include "mstch/mstch.hpp" #include "test_context.hpp" #include "test_data.hpp" #include "specs_data.hpp" #include "specs_lambdas.hpp" using namespace mstchtest; mstch::node to_value(const rapidjson::Value& val) { if (val...
<commit_before>/* Copyright (c) 2013, 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>#include "testing/testing.hpp" #include "indexer/cell_coverer.hpp" #include "indexer/indexer_tests/bounds.hpp" #include "geometry/covering_utils.hpp" #include "coding/hex.hpp" #include "base/logging.hpp" // Unit test uses m2::CellId<30> for historical reasons, the actual production code uses RectId....
<commit_before>/* Copyright (c) 2014, 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>/******************************************************************************* ** ** Filename : util ** Created on : 03 April, 2005 ** Copyright : (c) 2005 Till Adam ** Email : <adam@kde.org> ** *******************************************************************************/ /*****************...
<commit_before>/*! \copyright (c) RDO-Team, 2011 \file main.cpp \authors \authors (lord.tiran@gmail.com) \authors (rdo@rk9.bmstu.ru) \date 13.12.2009 \brief \indent 4T */ // ---------------------------------------------------------------------------- PCH // --...
<commit_before><commit_msg>coverity#705153 Missing break in switch, surely this is not intentional<commit_after><|endoftext|>
<commit_before>/* Jim Viebke Jun 3 2015 */ #include "non_player_character.h" void NPC::a_star_pathfind(const int & x_dest, const int & y_dest, World & world) { cout << "\nSearching for path from " << x << "," << y << " to " << x_dest << "," << y_dest << ".\n"; /* F = G + H G: actual cost to reach a certain room ...
<commit_before>/* * examples/matrices.C * * Copyright (C) 2017 D. Saunders, Z. Wang, J-G Dumas * ========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 b...
<commit_before>#include "serial.h" speed_t baud = 4800; std::string port = "/dev/ttyUSB0"; Serial gps(baud, port, false); void readGPS() { for(int i = 0; i < 4; ++i) { while(gps.serialRead(1)) { if (gps.getData() == "\n") break; std::cout << gps.getData(); } std::cout << std::endl; } } void printCon...
<commit_before>#include "catch.hpp" #include "../statemachine.hpp" using namespace fsm11; using StateMachine_t = fsm11::StateMachine<>; using State_t = StateMachine_t::state_type; TEST_CASE("construct a state", "[state]") { State_t s("name"); REQUIRE(s.childMode() == State_t::Exclusive); REQUIRE(!std::...
<commit_before>#include "notepad.h" #include "ui_notepad.h" #include <QFileDialog> #include <QFile> #include <QMessageBox> #include <QTextStream> #include <QListWidget> #include <QtPrintSupport> #include <QListView> #include <fileviewmodel.h> Notepad::Notepad(QWidget *parent) : QMainWindow(parent), ui(new Ui:...
<commit_before>#include "PrivateQGraphicsItem.h" #include "MapInfoManager.h" #include "MapGraphicsScene.h" #include <QGraphicsSceneContextMenuEvent> #include <QGraphicsSceneMouseEvent> PrivateQGraphicsItem::PrivateQGraphicsItem(PrivateQGraphicsItemParent * user) : user(user) { this->setZValue(1.0); } QRectF Pr...
<commit_before>#include <ruby.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include "ewah.h" typedef VALUE (ruby_method)(...); typedef struct ewah { EWAHBoolArray<uword64> *bits; } EWAH; extern "C" void ewah_free(EWAH *bits) { delete(bits->bits); free(bits); } extern "C" V...
<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 "gm.h" #include "Resources.h" #include "SkCanvas.h" #include "SkStream.h" #include "SkSurface.h" #include "SkTypeface.h" class DFTextGM : public skiagm...
<commit_before>// --------------------------------------------------------------------- // // Copyright (C) 1998 - 2016 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the GNU Lesse...
<commit_before>#include <boost/make_shared.hpp> #include <gtest/gtest.h> #include <yamail/resource_pool.hpp> namespace { using namespace testing; using namespace yamail::resource_pool; using namespace yamail::resource_pool::sync; using boost::make_shared; struct resource {}; typedef boost::shared_ptr<resource> res...
<commit_before>#include <tiramisu/tiramisu.h> using namespace tiramisu; void gen(std::string name, int size, int val0, int val1) { tiramisu::init(name); tiramisu::function *function0 = global::get_implicit_function(); tiramisu::constant N("N", tiramisu::expr((int32_t) size), p_int32, true, NULL, 0, func...
<commit_before>#include <catch.hpp> #include <ecs.hpp> enum class ColumnNames { Surname, Age, Height }; template <ColumnNames Name, class T> using mycolumn = helene::column_description<ColumnNames, Name, T>; TEST_CASE("", "") { helene::table<ColumnNames, mycolumn<ColumnNames::Sur...
<commit_before>/* * Copyright (C) 2016,2017 deipi.com LLC and contributors. 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 Software without restriction, including without ...
<commit_before>#define BOOST_TEST_MODULE json test #include <boost/test/unit_test.hpp> #include <ten/json.hh> #ifdef TEN_JSON_CXX11 #include <ten/jserial.hh> #include <ten/jserial_maybe.hh> #include <ten/jserial_seq.hh> #include <ten/jserial_assoc.hh> #include <ten/jserial_enum.hh> #endif #include <array> using namesp...
<commit_before>#define BOOST_TEST_MODULE json test #include <boost/test/unit_test.hpp> #include <ten/json.hh> #ifdef TEN_JSON_CXX11 #include <ten/jserial.hh> #include <ten/jserial_maybe.hh> #include <ten/jserial_seq.hh> #include <ten/jserial_assoc.hh> #include <ten/jserial_enum.hh> #endif #include <array> using namesp...
<commit_before>// // KinematicsSimulator.cpp // GPcode01_01_xcode // // Created by young-min kang on 3/27/15. // Copyright (c) 2015 young-min kang. All rights reserved. // #include "DynamicSimulator.h" CDynamicSimulator::CDynamicSimulator() : CSimulator() {} void CDynamicSimulator::init() { for(int i=0;i<N...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before><commit_msg>Setting pending override mesh<commit_after><|endoftext|>
<commit_before>#ifndef BENCHMARK_HPP_ #define BENCHMARK_HPP_ #define BOOST_TEST_NO_MAIN #define BOOST_TEST_ALTERNATIVE_INIT_API #include "application.hpp" #include "options.hpp" #include "benchmark_suite.hpp" #include <boost/test/included/unit_test.hpp> #include <boost/mpl/list.hpp> namespace gearshifft { /// Li...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2014 Tavendo 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 //...
<commit_before>/* * Copyright (c) 2013 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>#include <iostream> #include <string> #include <fstream> #include <cstdint> using namespace std; template <typename T> struct Node { Node *left; Node *right; T data; }; template <typename T> class BinaryTree { private: Node<T>* root; int CountElements = 0; public: BinaryTree(); ~BinaryTre...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2014 Tavendo 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 //...
<commit_before>#include <iostream> #include <string> #include <fstream> #include <cstdint> using namespace std; template <typename T> struct Node { Node *left; Node *right; T data; }; template <typename T> class BinaryTree { private: Node<T>*root(); int CountElements = 0; public: BinaryTree(); ~BinaryTr...
<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/files/file_path.h" #include "base/files/scoped_temp_dir.h" #include "base/run_loop.h" #include "chrome/app/chrome_comman...
<commit_before>#include <iostream> #include <string> #include <fstream> using namespace std; template<typename T> struct Node { T x; Node<T> * left; Node<T> * right; }; template<typename T> class Tree { private: Node<T> * root; public: Tree() { root->x = 0; root->left = root->right ...
<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>#include <iostream> #include <vector> #include <algorithm> using namespace std; struct option { option ( string optionShortName, string optionLongName, string optionDescription) : fOptionShortName (optionShortName), fOptionLongName (optionLongName), fOptionDescription (opt...
<commit_before>/* This file is part of the ORK library. Full copyright and license terms can be found in the LICENSE.txt file. */ #pragma once #include "ork/ork.hpp" #if ORK_USE_GLM # include "glm/fwd.hpp" #endif // ORK_USE_GLM namespace ork { /* From color.hpp */ enum class color_space; #if ORK_USE_GLM using co...
<commit_before>//======================================================================= // Copyright (c) 2015 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //========================================================...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * Based on LLVM/Clang. * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. * */ #ifndef PLUGIN_H #def...
<commit_before>/* * Copyright (c) 2016 dresden elektronik ingenieurtechnik gmbh. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * */ #include <QApplication> #incl...
<commit_before>/** * @file osc.cpp * @brief Brief description of file. * */ #include "angort/angort.h" #include "../wrappers.h" #include <lo/lo.h> #define THROWOSC(e) throw RUNT("ex$diamond",e.what()) using namespace angort; static BasicWrapperType<lo_address> tLoAddr("LOAD"); %type LoAddr tLoAddr lo_address ...
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit) * Copyright (C) 2005 Artem Pavlenko * * Mapnik 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 an...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team: http://bohrium.bitbucket.org Bohrium 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 3 of the Licens...
<commit_before>/* * Firmware flashing tool for Blu-Ray drives using the Mediatek MT1939 chip. * Copyright (c) 2014 Micah Elizabeth Scott * * 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 Softwa...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: FDatabaseMetaDataResultSetMetaData.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-08 06:37:17 $ * * The Conte...
<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/accessibility/browser_accessibility_manager.h" #include "base/logging.h" #include "content/browser/accessibi...
<commit_before>#include "viewer/primitives/simple_geometry.hh" #include "viewer/window_3d.hh" #include "estimation/jet/jet_filter.hh" #include "estimation/jet/jet_pose_opt.hh" #include "estimation/jet/jet_rk4.hh" #include "util/environment.hh" #include "eigen.hh" #include "sophus.hh" namespace estimation { namespa...
<commit_before>#include <cnoid/Plugin> #include <boost/bind.hpp> using namespace cnoid; using namespace boost; class ProtoPlugin : public Plugin { public: ProtoPlugin() : Plugin("ProtoPlugin") { } /* virtual functions can be overridden by child functions */ virtual bool initialize() { // ...
<commit_before>#include <memory> #include <archive.h> #include <archive_entry.h> #include "main.h" static bool care_about(struct archive_entry *entry) { mode_t mode = archive_entry_mode(entry); #if 0 if (AE_IFLNK == (mode & AE_IFLNK)) { // ignoring symlinks for now return false; } #endif if (AE_IFREG != (m...
<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_PSIZE_H #define ...
<commit_before> /* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkComposeShader.h" #include "SkColorFilter.h" #include "SkColorPriv.h" #include "SkXfermode.h" ////////////////////////////////...
<commit_before>#ifndef PICOLIB_STREAM_H_ #define PICOLIB_STREAM_H_ namespace Pico { class IO { public: VIRTUAL_METHOD IO& in(void *, size_t) = 0; VIRTUAL_METHOD IO& out(const void *, size_t) = 0; METHOD IO& read(void *ptr, size_t count) { return in(...
<commit_before>// festus/algebraic-path-test.cc // // 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>/// /// @file primecount.hpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PRIMECOUNT_HPP #define PRIMECOUNT_HPP #include <stdexcept> #include <string> #include <s...
<commit_before>/*************************************************** This is a library for the HDC1000 Humidity & Temp Sensor Designed specifically to work with the HDC1008 sensor from Adafruit ----> https://www.adafruit.com/products/2635 These sensors use I2C to communicate, 2 pins are required to interf...
<commit_before>/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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, ei...
<commit_before>// PythonStuff.cpp // Copyright 2011, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "PythonStuff.h" #include "Area.h" #include "Point.h" #include "AreaDxf.h" #include "kurve/geometry.h" #if _DEBUG #undef _DEBUG #include <Python.h> ...
<commit_before>#include "dynet/nodes.h" #include "dynet/dynet.h" #include "dynet/training.h" #include "dynet/timing.h" #include "dynet/rnn.h" #include "dynet/gru.h" #include "dynet/lstm.h" #include "dynet/dict.h" #include "dynet/expr.h" #include "dynet/cfsm-builder.h" #include "dynet/hsm-builder.h" #include "dynet/glob...
<commit_before>/* exception_handler.cc Jeremy Barnes, 26 February 2008 Copyright (c) 2009 Jeremy Barnes. All rights reserved. */ #include <cxxabi.h> #include <cstring> #include <fstream> #include "jml/compiler/compiler.h" #include "jml/utils/environment.h" #include "backtrace.h" #include "demangle.h" #includ...
<commit_before>// PythonStuff.cpp // written by Dan Heeks, February 6th 2009, license: GPL version 3 http://www.gnu.org/licenses/gpl-3.0.txt #include "PythonStuff.h" #include <set> #include "Area.h" #if _DEBUG #undef _DEBUG #include <Python.h> #define _DEBUG #else #include <Python.h> #endif #ifd...
<commit_before>#include "ExampleAndroidHandler.h" #include <AndroidLog.h> ExampleAndroidHandler::ExampleAndroidHandler() { // State variables m_bShouldQuit = false; m_bIsVisible = false; m_bIsPaused = true; // Egl m_Display = EGL_NO_DISPLAY; m_Surface = EGL_NO_SURFACE; m_Context = NULL; } ExampleAndroidHa...
<commit_before>#include <stdio.h> #include <iostream> #include "opencv2/highgui/highgui.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/nonfree/nonfree.hpp" #include "opencv2/video/video.hpp" #include <utils.h> #include <vector> #include "types.h" using namespace std; using namespace visual_odom...
<commit_before>/* * Copyright 2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<commit_before>/****************************************************************************** * Copyright (c) 2011, Howard Butler, hobu.inc@gmail.com * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions ar...
<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 "GrInOrderDrawBuffer.h" // We will use the reordering buffer, unless we have NVPR. // TODO move NVPR to batch so we can reorder static inline bool all...
<commit_before>#include "dialogrender.h" #include <math.h> #include <QVBoxLayout> #include <QImage> #include <QColor> #include <QPainter> #include <QMessageBox> #include <QFileDialog> #include <QMessageBox> #include <QListWidget> #include <QPushButton> #include "tools.h" #include "rendering/scenery.h" #include "rende...
<commit_before>//=- llvm/CodeGen/DFAPacketizer.cpp - DFA Packetizer for VLIW -*- C++ -*-=====// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// // http_client_handler_file.cc // #include "plat_os.h" #include "plat_net.h" #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <cerrno> #include <csignal> #include <iostream> #include <sstream> #include <string> #include <vector> #include <algorith...
<commit_before>#include "ofApp.h" #include "ofxPS3EyeGrabber.h" #define WIDTH 640 #define HEIGHT 480 //-------------------------------------------------------------- void ofApp::setup(){ // Set the video grabber to the ofxPS3EyeGrabber. vidGrabber.setGrabber(std::make_shared<ofxPS3EyeGrabber>()); vidGrabb...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2019 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>/* * %injeqt copyright begin% * Copyright 2014 Rafał Malinowski (rafal.przemyslaw.malinowski@gmail.com) * %injeqt copyright end% * * 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 Softwar...
<commit_before>/* * Copyright (C) 2007 Justin Karneges * * 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 version....
<commit_before>#ifndef MAINSTATE_HPP #define MAINSTATE_HPP #include <memory> #include <SFML/Graphics/RenderTarget.hpp> #include "gamelib/GameState.hpp" #include "gamelib/sprite/SpriteSet.hpp" #include "gamelib/Scene/Scene.hpp" #include "gamelib/tile/StaticRenderTilemap.hpp" #include "gamelib/event/SFMLEvent.hpp" #incl...
<commit_before>#include <engine/ParamQuantity.hpp> #include <app.hpp> #include <engine/Engine.hpp> namespace rack { namespace engine { engine::Param *ParamQuantity::getParam() { assert(module); return &module->params[paramId]; } void ParamQuantity::setSmoothValue(float smoothValue) { if (!module) return; smo...
<commit_before>/* This file is part of Ingen. * Copyright (C) 2007-2009 Dave Robillard <http://drobilla.net> * * Ingen 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 (...
<commit_before>#include <glog/logging.h> #include <util/util.h> #include <mailer_pool.h> using namespace std::placeholders; namespace { struct mailer_extra { const std::string server; const std::string from; const std::vector<std::string> to; }; typedef std::pair<std::vector<char>, size_t> payload_t; size_t ...
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include "ProtobufUtil.hpp" #include "Archive.h" #include "Descriptor.h" #include <iomanip> #include <sstream> using namespace leap; using leap::internal::protobuf::WireType; WireType leap::internal::protobuf::ToWireT...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2016 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 Foundation; eit...
<commit_before>/* Copyright libCellML Contributors 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 ...
<commit_before>//===--- SILGlobalVariable.cpp - Defines SILGlobalVariable structure ------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>//===-- X86JITInfo.cpp - Implement the JIT interfaces for the X86 target --===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before>#include <cmath> #include <cassert> #include <sstream> #include "libinterpreter/builtins.h" const Value builtins::dispatch(BuiltinAtom::Id atom_id, ExecutionContext& ctxt, const std::vector<Value>& arguments) { switch (atom_id) { case BuiltinAtom::Id::POW: re...
<commit_before>//===-- asan_suppressions.cc ----------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// Copyright (c) 2007, 2008 libmv authors. // // 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, m...