text
stringlengths
54
60.6k
<commit_before>/* * Copyright (c) 2012 Holger Schletz <holger.schletz@web.de> * 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 copyrig...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2015 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
<commit_before>#include "StdAfx.h" #include "ByteStream.h" /* RawSpeed - RAW file decoder. Copyright (C) 2009 Klaus Post 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 Found...
<commit_before>/** * Exercise 5 : Read in a gph-file, computes the longest (with respect to the edge weights) shortest path from any vertex to the vertex with index 1. * * @author FirstSanny */ #include <iostream> #include <fstream> #include <utility> #include <vector> #include <climits> #include <boost/graph/adja...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>void recTPC2007(Int_t type, const char *filename="data.root") { // .L $ALICE_ROOT/TPC/macros/recTPC2007.C // recTPC2007(0,"rfio:/castor/cern.ch/alice/data/2007/12/16/11/07000013151011.20.root") //recTPC2007(0,"alien:///alice/data/2007/LHC07w_TPC/000012674/raw/07000012674011.90.root") // recT...
<commit_before> #include <limits> #include <cassert> #include <type_traits> // // CppCon 2014: Walter E. Brown "Modern Template Metaprogramming: A Compendium" // // ~ https://www.youtube.com/watch?v=Am2is2QCvxY // ~ https://www.youtube.com/watch?v=a0FliKwcwXE // namespace meta { template <int N> struct Abs { ...
<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. #include <ctime> #include <f...
<commit_before>#include <mlopen.h> #include "test.hpp" #include <vector> #include <array> #include <iterator> #include <algorithm> #include <numeric> #include <memory> #include <utility> #include <iostream> #include <cmath> #include <mlopen/tensor.hpp> #include <mlopen/convolution.hpp> #include <mlopen/returns.hpp> #in...
<commit_before>#include "gtest/gtest.h" #include "tcframe_test_commons.cpp" #include "tcframe/problem.hpp" using tcframe::BaseProblem; class MyProblem : public BaseProblem { protected: void Config() { setSlug("foo"); setTimeLimit(2); setMemoryLimit(256); } void InputFormat() { } ...
<commit_before>// Copyright 2016-2020 Francesco Biscani (bluescarni@gmail.com) // // This file is part of the mp++ library. // // 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/MP...
<commit_before>#include "MS5837.h" #include <Wire.h> #define MS5837_ADDR 0x76 #define MS5837_RESET 0x1E #define MS5837_ADC_READ 0x00 #define MS5837_PROM_READ 0xA0 #define MS5837_CONVERT_D1_8192 0x4A #define MS5837_CONVERT_D2_8192 0x5A const float MS5837::Pa = 100....
<commit_before>// This is free and unencumbered software released into the public domain. // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any purpose, commercial or non-commercial, and by any // means. // In jur...
<commit_before>// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Engine - Lua scripting module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Core/Algorithm.hpp> #include <string> // Functions args bool NzLuaImplQueryArg(NzLuaInstance& instance,...
<commit_before><commit_msg>coverity#1269591 Uncaught exception<commit_after><|endoftext|>
<commit_before>#pragma once #include "clam/config.h" namespace clam { //// // Base numerical domains for user options //// enum CrabDomain { INTERVALS , INTERVALS_CONGRUENCES , BOXES , DIS_INTERVALS /*, ZONES_SPARSE_DBM*/ , ZONES_SPLIT_DBM , TERMS_INTERVALS , TERMS_DIS_I...
<commit_before>/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this fil...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 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 Joshua Boyce 2010-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // This file is part of HadesMem. // <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com> #pra...
<commit_before>#pragma once #include <quote/pp/cat.hpp> #include <quote/pp/size.hpp> #include <quote/pp/tuple_element.hpp> #include <quote/pp/tuple_cons.hpp> #include <quote/pp/tuple_car.hpp> #include <quote/pp/tuple_cdr.hpp> #if !defined(QUOTE_PP_TUPLE_FOREACH) # define QUOTE_PP_TUPLE_FOREACH(macro, data,...
<commit_before>/** * @file LLRenderNavPrim.cpp * @brief Renderable primitives used by the pathing library * * $LicenseInfo:firstyear=2001&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or ...
<commit_before>/** * @file llimconversation.cpp * @brief LLIMConversation class implements the common behavior of LNearbyChatBar * @brief and LLIMFloater for hosting both in LLIMContainer * * $LicenseInfo:firstyear=2012&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2012, Linden Research, 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>/* * Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020, Intel Corporation * * 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 ...
<commit_before>// Copyright 2020 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <array> #include <cstdio> #include <iostream> #include <iterator> #includ...
<commit_before>/* \author Geoffrey Biggs */ #include <iostream> #include <boost/thread/thread.hpp> #include "pcl/common/common_headers.h" #include "pcl/common/common_headers.h" #include "pcl/features/normal_3d.h" #include "pcl/io/pcd_io.h" #include "pcl/visualization/pcl_visualizer.h" #include <pcl/console/parse.h> ...
<commit_before>#include "srs_figure_rtmp_chunk.h" #include "../app/srs_figure_app_log.h" using namespace srs_rtmp_chunk; rtmp_chunk::rtmp_chunk(unsigned long lChunkStreamID,unsigned char cMessageType,long lTimeStamp): mChunkBasicHeader(basic_header_error), mpBasicHeader(nullptr), mTimeStamp(lTimeStamp), mMessa...
<commit_before>// // File: RenderCommandEncoder.cpp // Author: Hongtae Kim (tiff2766@gmail.com) // // Copyright (c) 2016-2017 Hongtae Kim. All rights reserved. // #include "../GraphicsAPI.h" #if DKGL_ENABLE_VULKAN #include "RenderCommandEncoder.h" #include "Texture.h" #include "GraphicsDevice.h" using namespace D...
<commit_before>/** @file * * @ingroup dspSoundFileLib * * @brief Tests for the #TTSoundfile class * * @details Tests the core functions of the TTSoundfile class in order to ensure that things are working after a build. It also demostrate how to make calls to common methods within the class.@n * IMPORTANT NOTE: ...
<commit_before>#include "PackNode.h" #include "PackIDMgr.h" #include "typedef.h" #include <simp/NodeFactory.h> namespace esprpacker { PackNode::PackNode() : m_node_id(-1) , m_pkg_id(-1) { } uint32_t PackNode::GetID() const { return simp::NodeID::ComposeID(m_pkg_id, m_node_id); } void PackNode::SetFilepath(cons...
<commit_before> #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "FireSimulator.h" #include "../World.h" #include "../BlockID.h" #include "../Defines.h" #include "../Chunk.h" // Easy switch for turning on debugging logging: #if 0 #define FLOG LOGD #else #de...
<commit_before>#include <iostream> #include <sstream> #include <map> #include <unordered_map> #include <vector> #include <string> #include "dict.h" #include "dictglobal.h" using Dict = std::unordered_map<std::string, std::string>; using IdentificatorType = unsigned long; namespace { #ifndef NDEBUG const b...
<commit_before>// // Created by Yihung Lee on 10/31/17. // #include "gtest/gtest.h" #include "LeetCodeHeaders.hpp" ArrayQuiz aq; TEST (ArrayTest, findDuplicate) { std::vector<int> vec{1, 2, 3, 4, 5, 6, 5, 7, 8, 9}; EXPECT_EQ(5, aq.findDuplicate(vec)); } TEST (ArrayTest, lengthOfLongestSubstring) { cout ...
<commit_before>// Copyright 2020 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "iree_tf_compiler/TF/Passes.h" #include "mlir-hlo/Dialect/mhlo/IR/chlo_op...
<commit_before>/* ======================================================================= Copyright (c) 2011, Institute for Microelectronics, TU Wien http://www.iue.tuwien.ac.at ----------------- ViennaFVM - The Vienna Finite Volume Method Library ...
<commit_before>/* * Copyright 2019-2022 Diligent Graphics LLC * Copyright 2015-2019 Egor Yusov * * 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/lice...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkTestHierarchicalDataReader.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>// Ouzel by Elviss Strazdins #ifndef OUZEL_FORMATS_INI_HPP #define OUZEL_FORMATS_INI_HPP #include <algorithm> #include <array> #include <cstdint> #include <functional> #include <iterator> #include <map> #include <stdexcept> #include <string> #include <vector> namespace ouzel::ini { class ParseErro...
<commit_before>// // Copyright (c) 2019, University of Edinburgh // 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>/****************************************************************** * * Round for C++ * * Copyright (C) Satoshi Konno 2015 * * This is licensed under BSD-style license, see file COPYING. * ******************************************************************/ #include <boost/test/unit_test.hpp> #include <...
<commit_before>/// Common commands for all bitstreams /// /// (c) Koheron #ifndef __DRIVERS_COMMON_HPP__ #define __DRIVERS_COMMON_HPP__ #include <array> #include <drivers/dev_mem.hpp> #include <drivers/wr_register.hpp> #include <drivers/addresses.hpp> #include <drivers/init.hpp> class Common { public: Common(...
<commit_before>// Copyright 2015-2020 Elviss Strazdins. All rights reserved. #ifndef OUZEL_GRAPHICS_DISPATCHSEMAPHORE_HPP #define OUZEL_GRAPHICS_DISPATCHSEMAPHORE_HPP #include <stdexcept> #include <dispatch/dispatch.h> namespace ouzel::graphics::metal { class DispatchSemaphore final { public: exp...
<commit_before>#include "WavSource.h" #define DR_WAV_IMPLEMENTATION #include <HgSound/dr_wav.h> #include <include/ThreadPool.h> namespace HgSound { ThreadPool ioThreads(2); BufferedWavSource::~BufferedWavSource() { delete[] m_samples; } StreamingWavSource::~StreamingWavSource() { } SamplePacket BufferedWavSourc...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkInteractorStyleRubberBandZoom.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm f...
<commit_before>#include <Fqd.hpp> using namespace flink; using namespace eeros::hal; Fqd::Fqd(std::string id, void* libHandle, std::string device, uint32_t subDeviceNumber, uint32_t channel, double scale, double offset, double rangeMin, double rangeMax, std::str...
<commit_before>#include "text_shape.hpp" #include "../drape/shader_def.hpp" #include "../drape/attribute_provider.hpp" #include "../drape/glstate.hpp" #include "../drape/batcher.hpp" #include "../drape/texture_set_holder.hpp" #include "../base/math.hpp" #include "../base/logging.hpp" #include "../base/stl_add.hpp" #i...
<commit_before>// Copyright (c) 2010 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. // This file implements the ViewGLContext and PbufferGLContext classes. #include <dlfcn.h> #include <GL/glew.h> #include <GL/glxew.h> ...
<commit_before>/*============================================================================== Copyright (c) Kapteyn Astronomical Institute University of Groningen, Groningen, Netherlands. All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required ...
<commit_before> /*! \file \author Igor Mironchik (igor.mironchik at gmail dot com). Copyright (c) 2013-2017 Igor Mironchik 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 restrict...
<commit_before>/* Copyright 2008 Brain Research Institute, Melbourne, Australia Written by J-Donald Tournier, 27/06/08. This file is part of MRtrix. MRtrix is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Sof...
<commit_before>#ifndef COFFEE_MILL_COMMON_DEFERED_READER_HPP #define COFFEE_MILL_COMMON_DEFERED_READER_HPP #include <mill/common/Trajectory.hpp> #include <string_view> #include <optional> #include <iterator> #include <cstddef> namespace mill { class ReaderIterator; class ReaderIteratorSentinel; class DeferedReaderBa...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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 2019 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>/* Copyright 2017 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>//------------------------------------------------------------------------------ // File: minterface.hpp // // Desc: Interface for Data Mining. // // Copyright (c) 2014-2018. veyesys.com All rights reserved. //------------------------------------------------------------------------------ #ifndef __M_INTE...
<commit_before>/* Copyright 2017 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>/* Copyright 2019 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>/* Copyright (C) 2017 Alexandr Akulich <akulichalexander@gmail.com> This file is a part of TelegramQt library. 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; ei...
<commit_before>#include "BLEPad_UART.h" BLEPad_UART::BLEPad_UART(HardwareSerial &s) { hs = &s; }; int BLEPad_UART::available() { return hs->available(); } void begin(unsigned long baud) { return hs->begin(baud); } size_t BLEPad_UART::write(uint8_t c) { return hs->write(c); } void ...
<commit_before>// This file is part of DVS-ROS - the RPG DVS ROS Package #include "dvs_renderer/renderer.h" #include <std_msgs/Float32.h> namespace dvs_renderer { Renderer::Renderer(ros::NodeHandle & nh, ros::NodeHandle nh_private) : nh_(nh), image_tracking_(nh) { got_camera_info_ = false; // get parameters...
<commit_before>/* * Copyright 2016 Andrei Pangin * * 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 ...
<commit_before>/*************************************************************************/ /* gd_glue.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>#include "catch.hpp" #include "kangaru/kangaru.hpp" namespace test_autowire_construct { struct service1 {}; auto service_map(service1 const&) -> kgr::autowire; struct service2 { friend auto service_map(service2 const&) -> kgr::autowire; }; TEST_CASE("autowire can construct a service", "[container]") ...
<commit_before>//======================================================================= // Copyright (c) 2014-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>#include "catch.hpp" #include <storage/cache.h> using namespace cheesebase; SCENARIO("Reading and writing to cache.") { GIVEN("A cache") { Cache cache{ "test.db", OpenMode::create_always, 8 }; } } <commit_msg>add simple Cache test case<commit_after>#include "catch.hpp" #include <storage/cac...
<commit_before>//============================================================================================================= /** * @file rtfwdsetupwidget.cpp * @author Ruben Dörfel <ruben.doerfel@tu-ilmenau.de> * @since 0.1.0 * @date May, 2020 * * @section LICENSE * * Copyright (C) 2020, Ruben D...
<commit_before>/** * (c) 2019 by Mega Limited, Wellsford, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth in the Terms of Service. * * The MEGA SDK is distributed in the h...
<commit_before>/* * Copyright (C) 2015 Cloudius Systems, Ltd. */ #include "core/do_with.hh" #include "cql_test_env.hh" #include "cql3/query_processor.hh" #include "cql3/query_options.hh" #include "core/distributed.hh" #include "core/shared_ptr.hh" #include "utils/UUID_gen.hh" #include "message/messaging_service.hh" ...
<commit_before>/****************************************************************************** * Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com) * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions a...
<commit_before>#include <string> #include <iostream> #include <sstream> #include <stdexcept> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include "SearchParser.h" using namespace xercesc; using namespace std; // Error codes enum { ERROR_ARGS = 1, ERROR_XERCES_INIT, ...
<commit_before>// Copyright 2016-2019 Chris Conway (Koderz). All Rights Reserved. #include "RuntimeMeshProviderPlane.h" FRuntimeMeshProviderPlaneProxy::FRuntimeMeshProviderPlaneProxy(TWeakObjectPtr<URuntimeMeshProvider> InParent) : FRuntimeMeshProviderProxy(InParent) { } FRuntimeMeshProviderPlaneProxy::~FRuntime...
<commit_before>// (C) 2014 Arek Olek #pragma once #include <iostream> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/graphviz.hpp> struct graph_writer { bool labels; graph_writer(bool l) : labels(l) {} virtual void operator()(std::ostream& out) const { if(labels) { out << "node [sha...
<commit_before>#include "DerivativeBaseMaterial.h" template<> InputParameters validParams<DerivativeBaseMaterial>() { InputParameters params = validParams<Material>(); params.addClassDescription("KKS model helper material to provide the free energy and its first and second derivatives"); params.addParam<std::str...
<commit_before>/****************************************************************************** * Copyright 2018 The Apollo 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 ...
<commit_before>#include "MaterialTensorAux.h" #include "SymmTensor.h" template<> InputParameters validParams<MaterialTensorAux>() { MooseEnum quantities("VonMises=1, PlasticStrainMag, Hydrostatic, Hoop, FirstInvariant, SecondInvariant, ThirdInvariant, TriAxiality"); InputParameters params = validParams<AuxKernel...
<commit_before>/*! @file * * @brief Do I need a Parker * * This module contains the routines that drive the dinapd daemon. * * @author APope * @date 20-02-2016 */ /*! ** @addtogroup DINAP_module DINAP module documentation ** @{ */ /* MODULE DINAP */ #include <syslog.h> #include <stdlib.h> #include <unistd...
<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 "net/test/test_server.h" #include <poll.h> #include <vector> #include "base/command_line.h" #include "base/file_util.h" #in...
<commit_before>#include "VSLapp.h" #include <QLockFile> #include <QDir> #include <QApplication> #include <QSettings> #include <QDateTime> #include <QMessageBox> #include <QMainWindow> #include <QTextStream> #ifdef __unix #include <unistd.h> #include <sys/types.h> #endif void VSLapp::applicationSetup(const char *organi...
<commit_before>// Copyright 2013 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 "nacl_io/socket/udp_node.h" #include <errno.h> #include <string.h> #include <algorithm> #include "nacl_io/log.h" #include "nacl...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ListenerHelper.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: kz $ $Date: 2006-11-06 15:04:41 $ * * The Contents of this file are...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkXRenderWindow.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen. This software is copyrighted...
<commit_before>#include "workerCL.hpp" #define __CL_DEFINE_EXCEPTIONS #include <CL/cl.hpp> #include <vector> #include <string> #include <iostream> #include "log.hpp" #include "reads.hpp" using namespace std; WorkerCL::WorkerCL(size_t platform_id, size_t device_id){ /* GPU environment preparation */ //Get plat...
<commit_before>#pragma once #include <cstdint> namespace haste { using std::uint32_t; enum class entity_type : uint32_t { camera = 0, mesh = 1, light = 2, empty = 3 }; inline uint32_t encode_material(uint32_t material_id, entity_type type) { return material_id << 2 | uint32_t(type); } inline uint32_t dec...
<commit_before>/*========================================================================= * * Copyright Leiden University Medical Center, Erasmus University Medical * Center and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
<commit_before>/* Copyright 2016 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>// -------------------------------------------------------------------------------------- // File: bspline_field.cxx // Date: Mar 5, 2014 // Author: code@oscaresteban.es (Oscar Esteban) // Version: 1.0 beta // License: GPLv3 - 29 June 2007 // Short Summary: // -------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: webdavprovider.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2005-09-09 16:17:04 $ * * The Contents of this file are...
<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>#include "MessageHandler.h" #include "IqrfCdcChannel.h" #include "IqrfSpiChannel.h" #include "UdpChannel.h" #include "UdpMessage.h" #include "helpers.h" #include "MessageQueue.h" #include "IqrfLogging.h" #include "PlatformDep.h" #include <climits> enum IqrfWriteResults { wr_OK = 0x50, wr_Error_Len =...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX600 グループ DMACAa 定義 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/LI...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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 "blackmagicsdk_video_source.h" #include "deck_link_display_mode_detector.h" #include <chrono> namespace gg { VideoSourceBlackmagicSDK::VideoSourceBlackmagicSDK() : IVideoSource() , _frame_rate(0.0) , _video_buffer(nullptr) , _video_buffer_length(0) , _cols(0) , _rows(0)...
<commit_before>//===-- TestCompletion.cpp --------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "CommonFoundation.h" #include "CommonMeshUtilities.h" #include "CommonLog.h" #include "CommonProfiler.h" bool isAlembicMeshValid( Alembic::AbcGeom::IObject *pIObj ) { //ESS_PROFILE_FUNC(); Alembic::AbcGeom::IPolyMesh objMesh; Alembic::AbcGeom::ISubD objSubD; if(Alembic::AbcGeom::IPolyMesh:...
<commit_before>// Copyright 2016 Alessio Sclocco <a.sclocco@vu.nl> // // 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>// Copyright (c) 2006, 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 ...
<commit_before>//===--- BindingInferenceTests.cpp ----------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>// // Copyright (c) 2014 Toshiaki Takada // // 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...