text
stringlengths
54
60.6k
<commit_before>#include <algorithm> #include <cassert> #include "system.h" #include "errors.h" #include "utils.h" int System::installMemory(MemoryModule &mod, SizeType offset, SizeType size) { int status = ERR_SUCCESS; // NB: if(size <= 0 || /* overflow */offset + size < offset) { if(offset + size <= offs...
<commit_before>/* * Copyright 2010-2020 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bx#license-bsd-2-clause */ #include "bx_p.h" #include <bx/os.h> #include <bx/thread.h> #if BX_CONFIG_SUPPORTS_THREADING #if BX_PLATFORM_WINDOWS && !BX_CRT_NONE # include <bx/string.h> #endif #i...
<commit_before>// Copyright 2016 Chris Drake // // 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 o...
<commit_before>/* Copyright (c) 2006, MassaRoddel, 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 ...
<commit_before>/*! @file */ #ifndef VECTOR_HPP__ #define VECTOR_HPP__ #include <memory> #include <numeric> #include <algorithm> #include <cmath> #include <vector> #include <iostream> #include <random> #include <assert.h> namespace linalgcpp { /*! @brief Vector represents a mathmatical vector with a size ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: escpitem.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: kz $ $Date: 2007-05-10 14:25:20 $ * * The Contents of this file are made ...
<commit_before>/* * Copyright (c) 2017 Akil Darjean (adarjean@uh.edu) * Distributed under the MIT License. * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT */ #include "window.h" #include <iostream> void Window::create() { this->filename = ""; init(); draw(); } void W...
<commit_before>/* * Copyright (c) 2017 Akil Darjean (adarjean@uh.edu) * Distributed under the MIT License. * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT */ #include "window.h" #include <SFML/Graphics.hpp> #include <boost/filesystem.hpp> #include <exception> #include <future> str...
<commit_before>/** * Copyright (C) 2018 3D Repo Ltd * * This program 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 option) any later version. * * T...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Vesa-Matti Hartikainen <vesa-matti.hartikainen@jollamobile.com> ** ****************************************************************************/ /* This Source Code Form is subje...
<commit_before>/* * Copyright 2015 BrewPi/Elco Jacobs. * * This file is part of BrewPi. * * BrewPi 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>/* * Copyright (c) 2014, Iwasa Kazmi * 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 * ...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
<commit_before>#include "carcv.hpp" #include "det.hpp" using namespace std; using namespace cv; namespace fs = boost::filesystem; int main(int argc, char** argv) { CarCV c; cout << "arg1: path of list" << endl; cout << "arg2: cascadexml path" << endl; CascadeClassifier cascade; cascade.load(argv[2]); fs::p...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2006 Peter Kmmel // Permission to use, copy, modify, distribute and sell this software for any // purpose is hereby granted without fee, provided that the above copyright // not...
<commit_before>// Copyright © 2015 Mikko Ronkainen <firstname@mikkoronkainen.com> // License: MIT, see the LICENSE file. #include <exception> #include "Raytracing/Primitives/Mesh.h" #include "Raytracing/Ray.h" #include "Utils/ObjReader.h" #include "Utils/PlyReader.h" #include "Utils/StringUtils.h" #include ...
<commit_before>/* This file is part of KOrganizer. Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com> 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 Li...
<commit_before>/*************************************************************************** * Copyright (C) 2007 by Thomas Moenicke * * thomas.moenicke@kdemail.net * * ...
<commit_before>/////////////////////////////////////////////////////////////////////////////////////////////////// // OpenGL Mathematics Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) /////////////////////////////////////////////////////////////////////////////////////////////////// // Created : 2008-08-31 ...
<commit_before><commit_msg>Added unit tests for the Matrix class.<commit_after>#include "gtest/gtest.h" #include "Matrix.h" /** * Object Construction tests */ TEST(MatrixContructionTests, ByZeroMatrix) { Matrix a; const char *expectedResult = "[ 000.00, 000.00 ]\n[ 000.00, 000.00 ]\n"; EXPECT_STREQ(expectedResult...
<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 "android_webview/browser/aw_browser_main_parts.h" #include "android_webview/browser/aw_browser_context.h" #include "android_w...
<commit_before>/* Copyright (c) 2005-2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required b...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007, 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>// 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 writing, software ...
<commit_before>// Copyright 2013 Sean McKenna // // 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 ...
<commit_before>#ifndef PIXELBOOST_DISABLE_BOX2D #include "Box2D/Box2D.h" #include "pixelboost/graphics/renderer/box2d/box2dRenderer.h" #include "pixelboost/logic/component/physics/physics.h" #include "pixelboost/logic/message/physics/collision.h" #include "pixelboost/logic/system/physics/2d/physics.h" #include "pixel...
<commit_before>#include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestFixture.h> #include "gui/buttongroup.hpp" #include "gui/button.hpp" #define BUTTONCOUNT 3 class ButtonGroupTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(ButtonGroupTest); CPPUNIT_TEST(activateTest); CPPUNIT_TEST_SUITE_END(...
<commit_before>/* * tests/embodiment/Control/OperationalAvatarController/OACMock.cc * * @author Zhenhua Cai <czhedu@gmail.com> * @date 2011-06-14 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free...
<commit_before>//===-- MachineFunction.cpp -----------------------------------------------===// // // 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>//===-- DWARFTypeUnit.cpp -------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <iostream> #include "matrix.h" #include "checks.h" template<std::size_t NumberOfRows, std::size_t NumberOfCulomns, std::size_t NumberOfSecondRows> int TestMatrixProduct() { std::cout << "Testing A(" << NumberOfRows << "," << NumberOfCulomns << ") X B(" << NumberOfCulomns << "," << NumberO...
<commit_before> #include "RigidBodyManipulator.h" #include <stdexcept> using namespace std; const int defaultRobotNum[1] = {0}; const set<int> RigidBody::defaultRobotNumSet(defaultRobotNum,defaultRobotNum+1); RigidBody::RigidBody(void) : parent(nullptr), S(TWIST_SIZE, 0), dSdqi(0, 0), J(TWIST_SIZE, 0...
<commit_before>// $Id$ /*********************************************************************** Moses - factored phrase-based language decoder Copyright (C) 2006 University of Edinburgh This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as ...
<commit_before>/** * \file * \brief SignalsCatcherControlBlock class header * * \author Copyright (C) 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 "rtkTestConfiguration.h" #include "rtkProjectionsReader.h" #include "rtkMacro.h" #include "rtkDigisensGeometryReader.h" #include "rtkThreeDCircularProjectionGeometryXMLFile.h" #include <itkRegularExpressionSeriesFileNames.h> typedef rtk::ThreeDCircularProjectionGeometry GeometryType; template...
<commit_before>#include "common.h" #include "World.h" #include "Species.h" #include <algorithm> static long idGen = 0; Species::Species(Species* originalSpecies){ id = idGen++; if (originalSpecies == NULL){ // completely new species while (!generateDna()) ; }else{ // evolution of an existing specie...
<commit_before>//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------...
<commit_before>#include "dg/PointerAnalysis/Pointer.h" #include "dg/PointerAnalysis/PSNode.h" #ifndef NDEBUG #include <iostream> namespace dg { namespace pta { void Pointer::dump() const { target->dump(); std::cout << " + "; offset.dump(); } void Pointer::print() const { dump(); std::cout << "\n...
<commit_before>#ifndef ARABICA_DOM_CONF_TEST_HPP #define ARABICA_DOM_CONF_TEST_HPP #include "../CppUnit/framework/TestCase.h" #include "../CppUnit/framework/TestSuite.h" #include "../CppUnit/framework/TestCaller.h" #include <DOM/Simple/DOMImplementation.hpp> #ifdef ARABICA_WINDOWS const std::string PATH_...
<commit_before>//===- X86EvexToVex.cpp ---------------------------------------------------===// // Compress EVEX instructions to VEX encoding when possible to reduce code size // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // Licens...
<commit_before>/** * Skeleton.cpp * Contributors: * * Arthur Sonzogni (author) * Licence: * * Public Domain */ #include "Skeleton.hpp" #include <stdexcept> #include <iostream> #define GLM_FORCE_RADIANS #include <glm/gtx/matrix_operation.hpp> #include <glm/gtc/matrix_transform.hpp> #define DEGTORAD 0....
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief line editor using readline /// /// @file /// /// DISCLAIMER /// /// Copyright 2014-2015 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache Lic...
<commit_before>/* Copyright (c) <2013-2014>, <BenHJ> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of co...
<commit_before>//===-- ValueSymbolTable.cpp - Implement the ValueSymbolTable class -------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and revised by Reid // Spencer. It is distributed under the University of Illinois Open Source // License. S...
<commit_before>/** * @file lsh_test.cpp * * Unit tests for the 'LSHSearch' class. */ #include <mlpack/core.hpp> #include <mlpack/core/metrics/lmetric.hpp> #include <boost/test/unit_test.hpp> #include "old_boost_test_definitions.hpp" #include <mlpack/methods/lsh/lsh_search.hpp> #include <mlpack/methods/neighbor_sea...
<commit_before>/* * mode_plasma.cpp * * Copyright (C) 2014 William Markezana <william.markezana@me.com> * */ #include "mode_plasma.h" /* * public library interface * */ extern "C" mode_interface* create_mode(size_t pWidth, size_t pHeight, bool pAudioAvailable) { return new mode_plasma(pWidth,...
<commit_before>//===----------------------------------------------------------------------===// // // PelotonDB // // hash_join_test.cpp // // Identification: tests/executor/hash_join_test.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===---------------------------...
<commit_before>/* $Id: middlewareGeneralTests.cpp,v 1.1.2.7 2013/02/01 17:26:58 matthewmulhern Exp $ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Technologies, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2012, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
<commit_before>/* * sink_fixture.hpp * * Created on: Mar 18, 2017 * Author: ckielwein */ #ifndef TESTS_PURE_SINK_FIXTURE_HPP_ #define TESTS_PURE_SINK_FIXTURE_HPP_ #include <vector> namespace fc { namespace pure { /** * \brief automatically checks if certain events where received * \tparam T type of tok...
<commit_before>#include "../kontsevich_graph_series.hpp" #include <ginac/ginac.h> #include <iostream> #include <fstream> #include <limits> #include "../util/continued_fraction.hpp" #include <Eigen/Dense> #include <Eigen/SparseCore> #include <Eigen/SparseQR> #include <Eigen/OrderingMethods> using namespace std; using na...
<commit_before>/* Copyright 2007-2015 QReal Research Group * * 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 ap...
<commit_before>#include "intermediateNode.h" #include <QQueue> using namespace generatorBase; using namespace myUtils; SimpleNode::SimpleNode(const qReal::Id &id, QObject *parent) : IntermediateNode(parent) , mId(id) { } IntermediateNode::Type SimpleNode::type() const { return Type::simple; } qReal::Id SimpleNo...
<commit_before>/***************************************************************************** YASK: Yet Another Stencil Kernel Copyright (c) 2014-2017, Intel Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t...
<commit_before>#include "condor_common.h" #include <set> #include "MyString.h" #include "condor_sockaddr.h" #include "condor_netdb.h" #include "condor_config.h" #include "condor_sockfunc.h" #include "ipv6_hostname.h" #include "ipv6_addrinfo.h" static condor_sockaddr local_ipaddr; static MyString local_hostname; static...
<commit_before>#include "controller_push.h" #include "controller_statistics.h" #include "controller_storage.h" #include <mist/bitfields.h> #include <mist/config.h> #include <mist/json.h> #include <mist/procs.h> #include <mist/stream.h> #include <mist/tinythread.h> #include <string> namespace Controller{ /// Interna...
<commit_before>/* * Copyright 2015, 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, this l...
<commit_before>/** * Touhou Community Reliant Automatic Patcher * Tasogare Frontier support plugin * * ---- * * New Super Marisa Land support functions */ #include <thcrap.h> #include "thcrap_tasofro.h" #include "tfcs.h" #include "bgm.h" #include "cv0.h" #include "nsml_images.h" #include <set> /// Detou...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser General Public License. See // LICENSE.TX...
<commit_before>#include "helpers/file_helpers.h" #include <sys/stat.h> #include <errno.h> #include <fstream> using std::string; using std::ifstream; using std::istreambuf_iterator; using std::ofstream; using std::vector; bool file_exists(const string &path) { struct stat file_stat; return stat(path.c_str(), &file...
<commit_before> #include <Hord/utility.hpp> #include <Hord/IO/Prop.hpp> #include <cassert> #include <iostream> #include <bitset> using Hord::enum_cast; using Type = Hord::IO::PropType; using State = Hord::IO::PropState; using Store = Hord::IO::PropStateStore; void print_store( Store const& s, Type const t = static...
<commit_before>/* This file is part of solidity. solidity 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. solidity ...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com> // // 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...
<commit_before>// Copyright 2015 Google 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 require...
<commit_before>#include "command.h" Command::Command(const char* text) { int i=0; // turn the string into a stream stringstream ssin(*text); //put the stream to the array while (i<argc ){ ssin >> argv[i]; i+=1; } } virtual Command::~Command() { // TODO(asarlidou) implement } char* const* Command::getAr...
<commit_before>/* * Clever programming language * Copyright (c) 2011 Clever Team * * 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 t...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkPolylineMaskImageFilterTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reser...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile: mitkPropertyManager.cpp,v $ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Bio...
<commit_before>/* 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 at http://mozilla.org/MPL/2.0/. */ #include <mpd/client.h> #include "consumer.hh" #include "globals.hh" using namespace boost::filesy...
<commit_before>/*************************************************************************** copyright : (C) 2002 - 2008 by Scott Wheeler email : wheeler@kde.org ***************************************************************************/ /*********************************************...
<commit_before>#include "calculate.hpp" #include <sstream> #include <stack> using namespace std; multimap<string, oper_t> opers; multimap<string, func_t, funcname_compare> funcs; /// pop element from stack and return it /// std::stack<T>::pop() is stupid and returns void template<typename T> T pop(stack<T> &s) { T ...
<commit_before>#include "constants.h" #include <cv_bridge/cv_bridge.h> #include <dynamic_reconfigure/server.h> #include <image_transport/camera_publisher.h> #include <image_transport/image_transport.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl_ros/point_cloud.h> #include <sensor_msgs/CameraInfo.h> #i...
<commit_before>// c++ -std=c++11 converter.cpp -o converter -I/usr/local/include -L/usr/local/lib -lassimp -g -Wall /// When debugging, link against my assimp library: // c++ -std=c++11 converter.cpp -o converter -I/usr/local/include -L/Users/yotam/Work/ext/assimp/build/code -lassimpd -g -Wall #define SAVE_RIG 1 #inc...
<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>// Copyright (c) 2016 Bitcoin Unlimited Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // All global variables that have construction/destruction dependencies // must be placed in this file so that the...
<commit_before>/** \file * \brief Implementation of hexdump() * * This file contains an implementation of hexdump() which can be used * to write a hex dump of arbitrary memory locations to ostreams and * log4cpp targets. * * \author Peter Hille (png!das-system) <peter@das-system-networks.de> * * \version 1.1 M...
<commit_before>// Copyright (c) 2015 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 "httprpc.h" #include "base58.h" #include "chainparams.h" #include "httpserver.h" #include "rpc/protocol.h...
<commit_before>/* * Copyright (C) 2008-2009 J-P Nurmi jpnurmi@gmail.com * * 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 License, or (at your * option) any ...
<commit_before>#include "toyfs.hpp" #include <cmath> #include <iostream> #include <memory> #include <sstream> #include <string> #include <vector> #include <deque> using std::cerr; using std::cout; using std::endl; using std::istringstream; using std::fstream; using std::make_shared; using std::shared_ptr; using std::s...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2017 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before> #include "matrix_product_sparse.h" #include <Eigen/Core> #include <Eigen/LU> #include <Eigen/SparseLU> #include <general/class_tic_toc.h> #define profile_matrix_product_sparse 1 template<typename T> using SparseMatrixType = Eigen::SparseMatrix<T>; template<typename T> using MatrixType = Eigen::Matrix<T...
<commit_before>//=========================================== // Lumina-DE source code // Copyright (c) 2015, Ken Moore // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #include "syntaxSupport.h" #include <QJsonArray> #include <QJsonD...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 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 * inc...
<commit_before>/* Copyright (c) 2008-2021 the MRtrix3 contributors. * * 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 at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this L...
<commit_before>// // Copyright 2015 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and rep...
<commit_before>/* Copyright 2017 Stanford University, NVIDIA Corporation * * 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>#include "depthai/pipeline/AssetManager.hpp" #include "spdlog/fmt/fmt.h" #include "utility/spdlog-fmt.hpp" // std #include <fstream> namespace dai { std::string Asset::getRelativeUri() { return fmt::format("{}:{}", "asset", key); } std::shared_ptr<dai::Asset> AssetManager::set(Asset asset) { ...
<commit_before>#include "ffmpeg_video_source.h" extern "C" { #include <libavutil/imgutils.h> } namespace gg { VideoSourceFFmpeg::VideoSourceFFmpeg() { // nop } VideoSourceFFmpeg::VideoSourceFFmpeg(std::string source_path, enum ColourSpace colour_space, ...
<commit_before>#include "ffmpeg_video_target.h" #include "except.h" namespace gg { VideoTargetFFmpeg::VideoTargetFFmpeg(const std::string codec) : _codec(NULL), _codec_id(AV_CODEC_ID_NONE), _frame(NULL), _framerate(-1), _sws_context(NULL), _format_context(NULL), _stream(NULL), _frame_i...
<commit_before>#include <iostream> // Inludes common necessary includes for development using depthai library #include "depthai/depthai.hpp" int main() { using namespace std; // Create pipeline dai::Pipeline pipeline; // Rotate color frames auto camRgb = pipeline.create<dai::node::ColorCamera>()...
<commit_before>/** * Copyright (C) 2007 by INdT * * This program 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 License, or (at your option) any later version. * * Thi...
<commit_before>/** * @file * * @brief Write key sets using yaml-cpp * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include "write.hpp" #include "yaml-cpp/yaml.h" #include <kdbassert.h> #include <kdbease.h> #include <kdblogger.h> #include <kdbplugin.h> #include <fstream> using na...
<commit_before>/* Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <limits> #include <utility> #include "util/pair.h" #include "library/attribute_manager.h" #include "frontends/lean/token_table.h" n...
<commit_before>#include <Box2D/Dynamics/b2WorldCallbacks.h> #include "augs/math/steering.h" #include "augs/templates/container_templates.h" #include "augs/templates/algorithm_templates.h" #include "game/detail/physics/physics_queries.h" #include "game/detail/entity_scripts.h" #include "game/components/movement_componen...
<commit_before>#include "camera_system.hpp" #include <game/game_engine.hpp> #include "../physics/transform_comp.hpp" #include "../physics/physics_comp.hpp" namespace mo { namespace sys { namespace cam { using namespace unit_literals; Camera_system::Camera_system(ecs::Entity_manager& entity_manager, Game_engine& ...
<commit_before>/******************************************************************************* The MIT License (MIT) Copyright (c) 2014 Alexander Zolotarev <me@alex.bio> from Minsk, Belarus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2012 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>// Copyright (c) 2011-2015 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 "trafficgraphwidget.h" #include "clientmodel.h" #include <QPainter> #include <QColor> #include <QTim...
<commit_before>#include "ray/raylet/worker_pool.h" #include <sys/wait.h> #include <algorithm> #include <thread> #include "ray/status.h" #include "ray/util/logging.h" namespace { // A helper function to get a worker from a list. std::shared_ptr<ray::raylet::Worker> GetWorker( const std::list<std::shared_ptr<ray...
<commit_before>#include "start_thread.h" #include "tmd.h" #include "incline_def_async_qtable.h" #include "incline_driver_async_qtable.h" #include "incline_mgr.h" #include "incline_util.h" using namespace std; incline_def* incline_driver_async_qtable::create_def() const { return new incline_def_async_qtable(); } ve...