text
stringlengths
54
60.6k
<commit_before>#include "sphere.h" #include "utils.h" namespace batoid { Sphere::Sphere(double R) : _R(R), _Rsq(R*R), _Rinv(1./R), _Rinvsq(1./R/R) {} double Sphere::sag(double x, double y) const { if (_R != 0) return _R*(1-std::sqrt(1-(x*x + y*y)*_Rinvsq)); return 0.0; } V...
<commit_before>/*! * FrameReceiverRxThreadUnitTest.cpp * * Created on: Feb 5, 2015 * Author: Tim Nicholls, STFC Application Engineering Group */ #include <boost/test/unit_test.hpp> #include "FrameReceiverUDPRxThread.h" #include "IpcMessage.h" #include "SharedBufferManager.h" #include <log4cxx/logger.h> #in...
<commit_before>//------------------------------------------------------------------------------ /// \file string.cpp //------------------------------------------------------------------------------ /// \brief Implementation of general purpose functions for string processing //------------------------------------------...
<commit_before>#include <vector> #include <string> #include <sstream> #include "error_handling.h" #include "game.h" #include "coordinate.h" #include "fight.h" #include "io.h" #include "item.h" #include "level.h" #include "misc.h" #include "monster.h" #include "options.h" #include "os.h" #include "player.h" #include "r...
<commit_before>#include "window.h" #include "game_engine_interface.h" #include <iostream> void Window::initialise (GameEngineInterface* a_engine, void* args, void* retval) { m_engine = a_engine; m_args = args; m_retval = retval; setDimensions (2, 2, 2, 2); } void Window::setDimensions (int ...
<commit_before>#include <array> #include "core/image.h" #include "core/image_draw.h" #include "core/io.h" #include "core/identicon.h" #include "core/hashgen_retro.h" #include "core/hashgen_sprator.h" #include "core/argparse.h" #include "core/random.h" #include "core/str.h" #include "core/collage.h" #include "core/pale...
<commit_before>/****************************************************************************** * ____ ______ ____ __ __ * * /\ _`\ /\ _ \ /\ _`\ /\ \/\ \ * * \ \,\L\_\\ \ \L\ \\ \,\L\_\\ \ \_\ \ ...
<commit_before>/* * Copyright (C) 2015 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 limit...
<commit_before> #include <iostream> #include <fstream> #include <iterator> #include <steve/Language.hpp> #include <steve/Lexer.hpp> #include <steve/Parser.hpp> #include <steve/Elaborator.hpp> using namespace steve; int main() { Language lang; // Read the input text into a file. using Iter = std::istreambuf_i...
<commit_before>/* * article.cpp * * Copyright (c) 2001, 2002, 2003, 2004 Frerich Raabe <[email protected]> * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. For licensing and dist...
<commit_before>#ifndef AMGCL_PRECONDITIONER_CPR_HPP #define AMGCL_PRECONDITIONER_CPR_HPP /* The MIT License Copyright (c) 2012-2016 Denis Demidov <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
<commit_before><commit_msg>fix string conversion in 1da3af5f1eb6a32fd0ab10da7cf2f8ddb298a3a1<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: pickerhistory.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2005-04-13 10:25:01 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: poolio.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2007-06-27 21:37:41 $ * * The Contents of this file are made av...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: linkdlg.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-10-12 12:18:06 $ * * The Contents of this file are made ...
<commit_before><commit_msg>tdf#89666: vcl: speed up HbLayoutEngine line layout for large paragraphs<commit_after><|endoftext|>
<commit_before><commit_msg>This is an int, not float<commit_after><|endoftext|>
<commit_before><commit_msg>Fixed premature wrapping, black spot in A1 and scrollbar and button position.<commit_after><|endoftext|>
<commit_before>// RUN: %check_clang_tidy %s readability-static-accessed-through-instance %t struct C { static void foo(); static int x; int nsx; void mf() { (void)&x; // OK, x is accessed inside the struct. (void)&C::x; // OK, x is accessed using a qualified-id. foo(); // OK, foo() is acce...
<commit_before><commit_msg>dr78: #i106108# SetDocumentModified also for page margins<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: svditer.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2004-04-02 14:12:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before><commit_msg>disable borders for tabbar in Calc (ScTabControl)<commit_after><|endoftext|>
<commit_before><commit_msg>Resolves: #i123003# Corrected Handle/Overlay visualization...<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: tabvwsh.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2004-08-12 09:30:33 $ * * 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: tabfrm.hxx,v $ * * $Revision: 1.18 $ * * last change: $Author: hr $ $Date: 2007-09-27 08:58:50 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * $RCSfile: cfgitems.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: kz $ $Date: 2004-02-26 15:43:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: labelcfg.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-08-23 08:59:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2014. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================================...
<commit_before>#include <vector> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <aslam/cameras/GridCalibrationTargetCheckerboard.hpp> #include <sm/eigen/serialization.hpp> namespace aslam { namespace cameras...
<commit_before>/* * Promise2 * * Copyright (c) 2015-2016 "0of" Magnus * Licensed under the MIT license. * https://github.com/0of/Promise2/blob/master/LICENSE */ #ifndef PROMISE2_API_CPP #define PROMISE2_API_CPP #define NESTING_PROMISE 1 #define DEFERRED_PROMISE 1 #ifdef __APPLE__ # define USE_DISPATCH 1 #endif /...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one ...
<commit_before>/* * * Copyright 2015-2016, Google 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: * * * Redistributions of source code must retain the above copyright * notice...
<commit_before>/************************************************************************* * * $RCSfile: pam.hxx,v $ * * $Revision: 1.12 $ * * last change: $Author: vg $ $Date: 2005-02-22 08:16:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>// Reverse by Predicate // c++11, c++14 #include <algorithm> template <typename I, typename P> void reverse_by_predicate(I begin, I end, P pred) //requires BidirectionalIterator<I> && Predicate<P, ValueType<I>> { while (begin != end) { end = std::rotate(begin, std::find_if(begin, end, p...
<commit_before>/** * @file game_object.hpp * @brief Contains methods to game_object class' management. This methods can control the entire * game object, setting the components, free them, loading and playing audio, animations, components, * setting and displaying hitboxes, detecting and notifing collission with...
<commit_before>#include "halley/file/path.h" #include <sstream> using namespace Halley; Path::Path() {} Path::Path(const char* name) { setPath(name); } Path::Path(const std::string& name) { setPath(name); } Path::Path(const String& name) { setPath(name); } void Path::setPath(const String& value) { String rawP...
<commit_before>/* * Implementation for the mbed library * https://github.com/mbedmicro/mbed * * Copyright (c) 2016 Christopher Haster * * 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>/** ========================================================================== * 2014 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes * with no warranties. This code is yours to share, use and modify with no * strings attached and no restrictions or obligations. * * For mor...
<commit_before>#include <iostream> #include <fstream> #include <functional> #include <memory> #include <cmath> #include <cstring> #include "../include/Neuralnet.hpp" #include "../include/Layer.hpp" #include "../include/FullyConnected.hpp" #include "../include/Convolutional.hpp" #include "../include/Pooling....
<commit_before>#include "gtest/gtest.h" #include "motor_shield.h" #define SPEED_L 1 #define DIR_L 2 #define SPEED_R 3 #define DIR_R 4 MotorShield mshield(SPEED_L, DIR_L, SPEED_R, DIR_R); TEST(MotorShield, Initialization) { ASSERT_EQ(0, mshield.getMinSpeed()); ASSERT_EQ(255, mshield.getMaxSpeed()); ASSERT_EQ(...
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // Decodes the blocks generated by block_builder.cc. #include "table/block.h" #inclu...
<commit_before>#include <gl/pogl.h> #include <thread> #include "POGLExampleWindow.h" static const POGL_CHAR SIMPLE_EFFECT_VS[] = { R"( #version 330 layout(location = 0) in vec3 position; layout(location = 1) in vec4 color; out vec4 vs_Color; void main() { vs_Color = color; gl_Position = vec4(position, 1.0...
<commit_before> // Copyright 2010-2012 University of Washington. All Rights Reserved. // LICENSE_PLACEHOLDER // This software was created with Government support under DE // AC05-76RL01830 awarded by the United States Department of // Energy. The Government has certain rights in the software. #ifndef __INCOHERENT_RELE...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
<commit_before>#include "../test_helpers.hxx" namespace { enum colour { red, green, blue }; enum class weather : int { hot, cold, wet }; } namespace pqxx { PQXX_DECLARE_ENUM_CONVERSION(colour); PQXX_DECLARE_ENUM_CONVERSION(weather); } namespace { void test_strconv_bool() { PQXX_CHECK_EQUAL(pqxx::to_string(...
<commit_before>#include "catch.hpp" #include <mapnik/text/icu_shaper.hpp> #include <mapnik/text/harfbuzz_shaper.hpp> #include <mapnik/text/font_library.hpp> #include <mapnik/unicode.hpp> namespace { void test_shaping( mapnik::font_set const& fontset, mapnik::face_manager& fm, std::vector<std::tuple...
<commit_before>#include "column_like_table_scan_impl.hpp" #include <algorithm> #include <array> #include <map> #include <memory> #include <regex> #include <sstream> #include <string> #include <utility> #include <vector> #include "storage/create_iterable_from_segment.hpp" #include "storage/resolve_encoded_segment_type...
<commit_before>/* Copyright 2021 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>// ------------------------------------------------------------------------- // @FileName : NFCProxyServerNet_ClientModule.cpp // @Author : LvSheng.Huang // @Date : 2013-05-06 // @Module : NFCProxyServerNet_ClientModule // // ------------------...
<commit_before>//---------------------------- logtest.cc --------------------------- // $Id: logtest.cc 23710 2011-05-17 04:50:10Z bangerth $ // Version: $Name$ // // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 by the deal.II authors // // This file is subject to QPL and may not be...
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE Main #include <boost/test/unit_test.hpp> #include <timedb.h> BOOST_AUTO_TEST_CASE(d_64) { // 10 0000 0000 BOOST_CHECK_EQUAL(timedb::Compression::compress_delta_64(1), 257); BOOST_CHECK_EQUAL(timedb::Compression::compress_delta_64(64), 320); BOOS...
<commit_before>/* * Copyright (C) 2015 ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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 of the License, or * (at your op...
<commit_before>#include <boost/test/unit_test.hpp> #include <flexcore/pure/event_sinks.hpp> #include <flexcore/pure/event_sources.hpp> #include <flexcore/core/connection.hpp> using namespace fc; namespace fc { namespace pure { template<class T> struct event_sink_value { void operator()(T in) { *storage = in; } st...
<commit_before>#include "TiglViewerConsole.h" Console::Console(QWidget *parent) : QPlainTextEdit(parent) { prompt = "TiglViewer> "; QPalette p = palette(); p.setColor(QPalette::Base, Qt::black); p.setColor(QPalette::Text, Qt::green); setPalette(p); history = new QStringList; historyPo...
<commit_before>// // Name: VehicleDlg.cpp // // Copyright (c) 2006 Virtual Terrain Project // Free for all uses, see license.txt for details. // // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #include <wx/colordlg.h> #include "vtlib/vtlib.h" #include "vtlib/core/TerrainScene....
<commit_before>// // Name: VehicleDlg.cpp // // Copyright (c) 2006 Virtual Terrain Project // Free for all uses, see license.txt for details. // // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include <wx/colordlg.h> #include "vt...
<commit_before>#include <iostream> /* allows to perform standard input and output operations */ #include <fstream> #include <stdio.h> /* Standard input/output definitions */ #include <stdint.h> /* St...
<commit_before>// Copyright (c) 2017 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 Software without restriction, including without limitation ...
<commit_before>// // Created by Ivan Shynkarenka on 09.07.2015. // #include "catch.hpp" #include "benchmark/environment.h" using namespace CppBenchmark; TEST_CASE("Environment information", "[CppBenchmark][Environment]") { REQUIRE((Environment::Is32BitOS() || Environment::Is64BitOS())); REQUIRE((Environment...
<commit_before>/*! \brief serial_controller_node. * Manages serial communications with AVR-Master. * * This node manages serial communications with the AVR-Master. * Therefore it first requests all data from AVR-Master and then sends all * commands to AVR-Master in a Loop. Data read is stored in md49_da...
<commit_before>/*! \brief serial_controller_node. * Manages serial communications with AVR-Master. * * This node manages serial communications with the AVR-Master. * Therefore it first requests all data from AVR-Master and then sends all * commands to AVR-Master in a Loop. Data read is stored in md49_da...
<commit_before>/* ** Author(s): ** - Cedric GESTES <[email protected]> ** ** Copyright (C) 2012 Aldebaran Robotics */ #include <gtest/gtest.h> #include <qi/signal.hpp> #include <qi/future.hpp> #include <qi/signalspy.hpp> #include <qi/anyobject.hpp> #include <qi/application.hpp> #include <qi/type/objecttyp...
<commit_before>// // CG tests // // g++-mp-7 -O2 -Wall -std=c++11 -I/opt/local/include cg_test.cpp -o cg.test -L/opt/local/lib -loptim -framework Accelerate // g++-mp-7 -O2 -Wall -std=c++11 -I./../../include cg.cpp -o cg.test -L./../.. -loptim -framework Accelerate // #include "optim.hpp" #include "./../test_fns/test_...
<commit_before>// Copyright (c) 2011, Robert Escriva // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // ...
<commit_before>#include <limits> #include <cmath> #include <cgo/minimax/minimax_agent.hpp> using namespace cgo::base; using namespace cgo::minimax; MiniMaxAgent::MiniMaxAgent(Marker marker) : Agent(marker), _turnNumber(0) {} /* virtual */ MiniMaxAgent::~MiniMaxAgent() {} Move MiniMaxAgent::makeMove(State& state,...
<commit_before>#include <array> #include <cstdlib> #include <iostream> #include <string> #include "snarkfront.hpp" using namespace snarkfront; using namespace std; void printUsage(const char* exeName) { cout << "usage: " << exeName << " -m keygen|input|proof|verify" << endl; exit(EXIT_FAILU...
<commit_before>/* * Copyright (C) 2014 Cloudius Systems, Ltd. */ #ifndef DELETER_HH_ #define DELETER_HH_ #include <memory> #include <cstdlib> #include <assert.h> #include <type_traits> class deleter final { public: struct impl; struct raw_object_tag {}; private: // if bit 0 set, point to object to be f...
<commit_before>#include "session.h" #include "util.h" Session::Session() { curl_ = {cpr::util::newHolder(), &cpr::util::freeHolder}; auto curl = curl_->handle; if (curl) { // Set up some sensible defaults auto version_info = curl_version_info(CURLVERSION_NOW); auto version = std::...
<commit_before>/*********************************************************************** filename: CEGUIFalTextComponent.cpp created: Sun Jun 19 2005 author: Paul D Turner <[email protected]> *************************************************************************/ /********************************...
<commit_before>// Copyright (c) 2009 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 "chrome/browser/chromeos/boot_times_loader.h" #include <vector> #include "base/command_line.h" #include "base/file_path.h" #...
<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 "chrome/browser/ui/views/find_bar_host.h" #include "chrome/browser/ui/find_bar/find_bar_controller.h" #include "chrome/browse...
<commit_before>// Copyright (c) 2014 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 <windows.h> #include "base/at_exit.h" #include "base/command_line.h" #include "base/logging_win.h" #include "base/process/pro...
<commit_before>// Copyright (c) 2009 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 "chrome/renderer/media/video_renderer_impl.h" #include "media/base/buffers.h" #include "media/base/yuv_convert.h" VideoRende...
<commit_before>//---------------------------------------------------------------------------- // copyright 2012, 2013, 2014 Keean Schupke // compile with -std=c++11 // templateio.h #ifndef TEMPLATEIO_HPP #define TEMPLATEIO_HPP #include <iostream> #include <vector> #include <tuple> using namespace std; //----------...
<commit_before>/* * Copyright (C) 2017 koolkdev * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "Wfs.h" #include "DeviceEncryption.h" #include "Area.h" #include "Directory.h" #include "FileDevice.h" #include "MetadataBlock.h" #...
<commit_before>// Copyright 2018 Google LLC // 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 ag...
<commit_before>/**************************************************************************** ** ncs is the backend's server of nodecast ** Copyright (C) 2010-2012 Frédéric Logier <[email protected]> ** ** https://github.com/nodecast/ncs ** ** This program is free software: you can redistribute it and/or modi...
<commit_before>#include <binary_search_tree.hpp> #include <catch.hpp> SCENARIO("default constructor") { BinarySearchTree<int> bst; REQUIRE(bst.root() == nullptr); REQUIRE(bst.count() == 0); } SCENARIO("insertElement") { BinarySearchTree<int> bst; bst.insert(7); REQUIRE(bst.value_() == 7); REQUIRE(bst.leftNode...
<commit_before>#include <BinaryTree.hpp> #include <catch.hpp> SCENARIO ("init", "[init]") { BinaryTree<int> obj; REQUIRE(obj.root_() == nullptr); } SCENARIO ("output to cout", "<<") { BinaryTree<int> tree; tree.insert_node(3); REQUIRE( std::cout << tree ); } SCENARIO("find_node", "[find_node]") { Bin...
<commit_before>#include <matrix.hpp> #include <catch.hpp> SCENARIO("matrix init without parametrs", "[init wp]") { Matrix matrix; REQUIRE(matrix.rows() == 4); REQUIRE(matrix.columns() == 4); for (int i=0;i<matrix.rows(); i++) { for (int j = 0; j<matrix.columns();j++) { REQUIRE(matrix[i][j] == 0); } } } ...
<commit_before>#include <BinaryTree.hpp> #include <catch.hpp> SCENARIO ("init", "[init]") { BinaryTree<int> obj; REQUIRE(obj.root_() == nullptr); } SCENARIO("insert", "[insert]") { BinaryTree<int> obj; obj.insert_node(3); REQUIRE(obj.find_node(3, obj.root_())->data == 3); } SCENARIO("find_node", "[find_nod...
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * Test memcp * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * ...
<commit_before>/* Copyright (C) 2009, Stefan Hacker <[email protected]> Copyright (C) 2005-2009, Thorvald Natvig <[email protected]> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are ...
<commit_before>/**************************************************************************** ** ** Copyright (C) Qxt Foundation. Some rights reserved. ** ** This file is part of the QxtWeb module of the Qxt library. ** ** This library is free software; you can redistribute it and/or modify it ** under the terms ...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>// Copyright 2012-2013 Samplecount S.L. // // 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> #include "ComputeProcessor.h" #include <cassert> #include <string> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> std::string GetExecutableFullPath() { char buffer[512]; GetModuleFileName(NULL, buffer, sizeof(buffer) - 1); return buffer; } #endif // List of all registered transform...
<commit_before>#include "is_valid_char.hxx" #include "../../Positive_Matrix_With_Prefactor_State.hxx" #include <algorithm> #include <iterator> #include <string> using namespace std::literals; inline void check_iterator(const char character, const std::vector<char>::const_iterator &begin, ...
<commit_before>// Copyright (c) 2009 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 "chrome/test/nacl/nacl_test.h" #include "base/file_util.h" #include "base/path_service.h" #include "chrome/common/chrome_path...
<commit_before>//============================================================================ // Name : sandpile1.cpp // Author : Aldo Guzmán-Sáenz // Version : // Copyright : // Description : This program simulates an abelian sandpile's evolution. //===================================================...
<commit_before>/************************************************************************* * * $RCSfile: saltimer.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2003-05-28 12:35:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>// // scan.cpp // See the file "LICENSE.md" for the full license governing this code. // #include "compile.h" #if COMPILE_DMZ #include "scan.h" #include "expiry_categorize.h" #include "expiry_seg.h" #define SCAN_FOREVER 0 // useful for performance profiling #define EXTRA_TIME_FOR_EXPIRY_IN_MICROSEC...
<commit_before>// Virvo - Virtual Reality Volume Rendering // Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University // Contact: Jurgen P. Schulze, [email protected] // // This file is part of Virvo. // // Virvo is free software; you can redistribute it and/or // modify it under the terms of the GN...
<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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unmovss.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2008-03-12 11:41:25 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * $RCSfile: fuconbez.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: aw $ $Date: 2002-02-15 17:02:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#include "selfdrive/ui/qt/onroad.h" #include <iostream> #include "selfdrive/common/swaglog.h" #include "selfdrive/common/timing.h" #include "selfdrive/ui/paint.h" #include "selfdrive/ui/qt/util.h" #ifdef ENABLE_MAPS #include "selfdrive/ui/qt/maps/map.h" #endif OnroadWindow::OnroadWindow(QWidget *pare...
<commit_before>#include <hdmarker/subpattern.hpp> #include <ucalib/ucalib.hpp> #include <cliini/cliini.hpp> #include <opencv2/highgui.hpp> #include <metamat/mat.hpp> #include <ucalib/proxy.hpp> #include <iostream> using namespace cv; using namespace cliini; using namespace hdmarker; cliini_opt opts[] = { { "...