text
stringlengths
54
60.6k
<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 "catch.hpp" #include <iostream> #include <exception> // std::bad_function_call, std::runtime_error #include <thread> // std::thread, std::this_thread::yield #include <mutex> // std::mutex, std::unique_lock #include <condition_variable> // std::condition_variable #include <functional> // std::fu...
<commit_before> #include "InverseKinematicsStudy.h" #include "OpenSenseUtilities.h" #include <OpenSim/Common/IO.h> #include <OpenSim/Common/TimeSeriesTable.h> #include <OpenSim/Common/TableSource.h> #include <OpenSim/Common/STOFileAdapter.h> #include <OpenSim/Common/TRCFileAdapter.h> #include <OpenSim/Common/Reporter.h...
<commit_before>/** @file @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache...
<commit_before>#ifndef CTHREADRINGBUF #define CTHREADRINGBUF #include<condition_variable> #include<memory> //allocator #include<mutex> #include<queue> #include<utility> //forward, move, move_if_noexcept, pair #include"CAtomic_stack.hpp" #include"../algorithm/algorithm.hpp" //for_each_val namespace nThread { //a fixed...
<commit_before>/* rdrwdsk.cpp class RedrawDesktop */ /* Revision: 1.09 07.12.2001 $ */ /* Modify: 07.12.2001 SVS + RedrawDesktop . - - , Opt.ShowKeyBar Opt.ShowMenuBar , " " - Alt-F9. 12.11.2001 SVS ! 30.05.2001 OT - / 21.05.2001 OT ! " "...
<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><commit_msg>coverity#735554 Dead default in switch<commit_after><|endoftext|>
<commit_before>#ifndef CTHREADRINGBUF #define CTHREADRINGBUF #include<atomic> #include<memory> //allocator #include<vector> #include<utility> //forward, move #include"CSemaphore.hpp" #include"../algorithm/algorithm.hpp" //for_each_val namespace nThread { //a fixed-sized and cannot overwrite when buffer is full //T m...
<commit_before>#include "gtest/gtest.h" #include <yarp/sig/all.h> #include "RdImageManager.hpp" #include "RdMockupImageManager.hpp" #include "RdMockupImageEventListener.hpp" #include "RdMentalMap.hpp" #include "RdProcessorImageEventListener.hpp" using namespace rd; //-- Class for the setup of each test //----------...
<commit_before>/*----------------------------------------------------------------------+ | | | Copyright (C) 2010 Nokia Corporation. | | | | Autho...
<commit_before>#include <QtGlobal> #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) #include <QtWidgets> #else #include <QtGui> #endif #include <QTimer> #include <QStackedWidget> #include <QSortFilterProxyModel> #include <QLineEdit> #include "seafile-applet.h" #include "account-mgr.h" #include "repo-service.h" #include ...
<commit_before><commit_msg>increased error threshold in matrix-solve test (ticket #496)<commit_after><|endoftext|>
<commit_before>#include <agency/new_executor_traits.hpp> #include <cassert> #include <iostream> #include "test_executors.hpp" template<class Executor> void test() { using executor_type = Executor; { // void -> void executor_type exec; auto void_future = agency::when_all(); int set_me_to_thirtee...
<commit_before>/* * ============================================================================ * * Filename: trim.cc * Description: Trim reads using the windowed quality trimming algorithm * License: LGPL-3+ * Author: Kevin Murray, spam@kdmurray.id.au * * ==========================...
<commit_before><commit_msg>INTEGRATION: CWS warnings01 (1.38.8); FILE MERGED 2006/05/23 17:54:43 sb 1.38.8.5: RESYNC: (1.40-1.41); FILE MERGED 2006/04/20 14:47:02 sb 1.38.8.4: #i53898# Made code warning-free again after resync to SRC680m162. 2006/04/07 17:51:40 sb 1.38.8.3: RESYNC: (1.38-1.40); FILE MERGED 2005/10/27 1...
<commit_before>// vim: set sts=2 sw=2 et: // encoding: utf-8 // // Copyleft 2011 RIME Developers // License: GPLv3 // // 2011-12-07 GONG Chen <chen.sst@gmail.com> // #include <string> #include <boost/bind.hpp> #include <boost/foreach.hpp> #include <rime/candidate.h> #include <rime/common.h> #include <rime/composition.h...
<commit_before>// 8 september 2015 #include "uipriv_windows.hpp" #include "area.hpp" static LRESULT CALLBACK areaWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { uiArea *a; CREATESTRUCTW *cs = (CREATESTRUCTW *) lParam; RECT client; WINDOWPOS *wp = (WINDOWPOS *) lParam; LRESULT lResult; a = (uiArea ...
<commit_before>// Copyright 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 <string> #include "base/bind.h" #include "base/files/file.h" #include "base/files/file_path.h" #include "base/memory/scoped_ptr.h...
<commit_before>/* Copyright 2016 Mitchell Young 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 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>// // Test Suite for geos::operation::valid::IsValidOp class // Ported from JTS junit/operation/valid/IsValidTest.java rev. 1.1 #include <tut/tut.hpp> // geos #include <geos/constants.h> // for std::isnan #include <geos/operation/valid/IsValidOp.h> #include <geos/geom/Coordinate.h> #include <geos/geom/C...
<commit_before>// Copyright 2017 Google 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 law or...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>#include "StableHeaders.h" #include "Framework.h" #include "EventDataInterface.h" #include "EventManager.h" #include "ModuleManager.h" #include "Poco/DOM/DOMParser.h" #include "Poco/DOM/Element.h" #include "Poco/DOM/Attr.h" #include "Poco/DOM/NamedNodeMap.h" #include "Poco/SAX/InputSource.h" ...
<commit_before>///////////////////////////////////////////////////////////////////// // = NMatrix // // A linear algebra library for scientific computation in Ruby. // NMatrix is part of SciRuby. // // NMatrix was originally inspired by and derived from NArray, by // Masahiro Tanaka: http://narray.rubyforge.org // // =...
<commit_before>// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // ============================================================ // // ApplicationContext.cpp // // /...
<commit_before>/*********************************************************************** cmdline.cpp - Utility functions for printing out data in common formats, required by most of the example programs. Copyright (c) 2007 by Educational Technology Resources, Inc. Others may also hold copyrights on code in this ...
<commit_before>#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ ofEnableSmoothing(); ofSetFrameRate(60); width = ofGetWidth(); height = ofGetHeight(); shader.load("cortex"); fbo.allocate(width,height); //set default values bVert = 0; bHorizo...
<commit_before>/* * Copyright (c) 2012. The Regents of the University of California. All rights reserved. * Licensed pursuant to the terms and conditions available for viewing at: * http://opensource.org/licenses/BSD-3-Clause * * File: GLSLHelpers.cpp * Author: Jonathan Ventura * Last Modified: 11.17.2012 */ #...
<commit_before>/* * Copyright (C) 2006, 2007 Apple Computer, Inc. * Copyright (c) 2006, 2007, 2008, 2009, 2012 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: * * * Redistr...
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved. #include "btree/secondary_operations.hpp" #include "btree/operations.hpp" #include "buffer_cache/blob.hpp" #include "buffer_cache/serialize_onto_blob.hpp" #include "containers/archive/vector_stream.hpp" #include "protocol_api.hpp" RDB_IMPL_ME_SERIA...
<commit_before>/* bzflag * Copyright (c) 1993 - 2005 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/* * Copyright 2008-2009 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 require...
<commit_before>/* bzflag * Copyright (c) 1993 - 2008 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) Module: Language: C++ Date: Version: Copyright (c) 2000 National Library of Medicine All rights reserved. See COPYRIGHT.txt for copyright details. =====...
<commit_before>/************************************************************************* * * $RCSfile: passworddlg.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: mav $ $Date: 2002-10-31 11:08:38 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>#ifndef ORIGEN_HPP_INCLUDED #define ORIGEN_HPP_INCLUDED #define ORIGEN_VERSION "0.5.0" #ifndef debugger #define debugger __asm__("int $3"); #endif #include "origen/utils.hpp" #include "origen/helpers.hpp" #include "origen/site.hpp" namespace Origen { extern vector<Site> Sites; Utils::Version version...
<commit_before>#include "PhysicallyBasedMaterial.h" #include "BindIndexInfo.h" using namespace Rendering; using namespace Rendering::Buffer; using namespace Rendering::Shader; using namespace Rendering::Texture; void PhysicallyBasedMaterial::Initialize(Device::DirectX& dx) { auto indexer = GetConstBufferBook().GetIn...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkClipDataSet.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See C...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<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>#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <omp.h> #include "common.h" const int ser_n = 1<<18; void merge(dataType *data, int n1, int n2, dataType *res) { // printf("Thread %d doing merge.\n", omp_get_thread_num()); int i = 0, j = n1, k = 0; whi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: bmpconv.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-17 11:58:48 $ * * The Contents of this file are made ...
<commit_before>/*========================================================================= Library : Image Registration Toolkit (IRTK) Module : $Id$ Copyright : Imperial College, Department of Computing Visual Information Processing (VIP), 2008 onwards Date : $Date$ Version : $Revis...
<commit_before>/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkDeque.h" #include "SkLayerRasterizer.h" #include "SkPaint.h" #include "SkRasterizer.h" #include "Test.h" class SkReadBuffer; // Dummy class to pla...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkLabeledDataMapper.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. Redi...
<commit_before>//===- BreakConstantGEPs.cpp - Change constant GEPs into GEP instructions - --// // // pocl note: This pass is taken from The SAFECode project with trivial modifications. // Automatic locals might cause constant GEPs which cause problems during // converting the locals to kernel f...
<commit_before>#ifndef TO_FPTR_HPP_INCLUDED #define TO_FPTR_HPP_INCLUDED #include <utility> #include <functional> namespace tmp_lib { template<typename LAMBDA, typename RET, typename... ARGS> class to_fptr_t { static thread_local std::function<RET(ARGS...)> tl_function; static RET fptr_handler(ARGS... args)...
<commit_before>#include "blas.hpp" #include "linalg.hpp" #include "mkl.h" #include "strassen.hpp" #include "timing.hpp" #include <stdexcept> #include <vector> Geqrf(int m, int n, float *A, int lda, float *tau) { // First perform the workspace query. float *work = new float[1]; int lwork = -1; int info; sgeq...
<commit_before>/* examples / skeletal_animation.cc * ================================ * * In this example we'll animate Imrod, .... amazing model. * * Let's begin by including GDT: */ #include "gdt.h" /* Specifying our app * ------------------ * * We'll use SDL as the platform backend with OpenGL as the grap...
<commit_before>#ifndef VIRTUALFUNCTIONS_H_ #define VIRTUALFUNCTIONS_H_ #include <iostream> #include <ostream> #include <memory> using namespace std; class Shape { public: Shape() {} virtual ~Shape ( ) {} virtual void draw(int x, int y) { cout << "Shape::draw(): " << x << ", ...
<commit_before>/* Nazara Engine Copyright (C) 2015 Jérôme "Lynix" Leclercq (Lynix680@gmail.com) 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 limitat...
<commit_before>/* The OpenTRV project licenses this file to you under the Apache Licence, Version 2.0 (the "Licence"); you may not use this file except in compliance with the Licence. You may obtain a copy of the Licence at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr> * * T...
<commit_before>/**************************************************************************** * Copyright 2013 Evan Drumwright * This library is distributed under the terms of the GNU Lesser General Public * License (found in COPYING). ****************************************************************************/ /...
<commit_before>//////////////////////////////////////////////////////////// // // The MIT License (MIT) // // STP - SFML TMX Parser // Copyright (c) 2013-2014 Manuel Sabogal // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "So...
<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 distribu...
<commit_before>/* * VapourSynth D2V Plugin * * Copyright (c) 2012 Derek Buitenhuis * * This file is part of d2vsource. * * d2vsource 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 * ve...
<commit_before>#pragma once #include<memory> #ifndef NDEBUG #include<vector> #include<limits> #endif namespace AnyODE { #if __cplusplus >= 201402L using std::make_unique; #else template <class T, class ...Args> typename std::enable_if < !std::is_array<T>::value, std::unique_ptr<T> ...
<commit_before>/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it wil...
<commit_before>// MFEM Example 6 - Parallel Version // // Compile with: make ex6p // // Sample runs: mpirun -np 4 ex6p -m ../data/square-disc.mesh -o 1 // mpirun -np 4 ex6p -m ../data/square-disc.mesh -o 2 // mpirun -np 4 ex6p -m ../data/square-disc-nurbs.mesh -o 2 // ...
<commit_before>/** * \file Exception.hpp * \brief Defines custom exceptions used in framework. */ #ifndef ATLAS_INCLUDE_ATLAS_CORE_EXCEPTION_HPP #define ATLAS_INCLUDE_ATLAS_CORE_EXCEPTION_HPP #pragma once #include "Core.hpp" #include "Log.hpp" #include <stdexcept> namespace atlas { namespace core { ...
<commit_before>//----------------------------------------------------------------------------- // // Copyright (C) 2015 David Hill // // See COPYING for license information. // //----------------------------------------------------------------------------- // // Store class. // //---------------------------------------...
<commit_before><commit_msg>add test example code for arduino tsp<commit_after><|endoftext|>
<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>#ifndef CLUE_FORMATTING_BASE__ #define CLUE_FORMATTING_BASE__ #include <clue/config.hpp> #include <clue/type_traits.hpp> #include <clue/string_view.hpp> #include <cstdio> #include <cstdlib> #include <cstring> #include <cstdint> #include <cstdarg> #include <string> #include <stdexcept> #include <algori...
<commit_before>#include "Render.h" #include "interface/Interface.h" #include "base/basedef.h" #include "math/hash.h" #include <GL/glew.h> using fei::Render; static const GLchar *basicVertexShader = { "void main()" "{" " gl_TexCoord[0] = gl_MultiTexCoord0;" " gl_FrontColor = gl_Color;" " gl_Position = ftransform(...
<commit_before><commit_msg>abstract_runner: debug logs<commit_after><|endoftext|>
<commit_before>#ifndef YADI_FACTORY_HPP__ #define YADI_FACTORY_HPP__ #include <yaml-cpp/yaml.h> #include <functional> #include <map> #include <memory> #include <string> namespace yadi { template <typename base_t> struct factory_traits { using ptr_type = std::shared_ptr<base_t>; }; template <typename base_t> us...
<commit_before>#include <boost/test/unit_test.hpp> #include "graph.h" #include "common.h" BOOST_AUTO_TEST_CASE(graph_instantiation) { Graph g; ///// // empty graph BOOST_REQUIRE(g.empty()); BOOST_REQUIRE(g.nodes().empty()); BOOST_REQUIRE_EQUAL(g.nodes().size(), 0u); BOOST_REQUIRE(g.nodes().begin() == g.nodes(...
<commit_before>/* * Copyright 2013 Matthew Harvey * * 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 applicabl...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "client.h" #include <util/timer.h> #include <util/clientstatus.h> #include <httpclient/httpclient.h> #include <util/filereader.h> #include <cassert> #include <cstring> #include...
<commit_before>#include "ngraph.h" #include <stdint.h> #include <iostream> #include <cstring> #include <engpar_support.h> #include "Iterators/PinIterator.h" #include "Iterators/GraphIterator.h" #include "agi_typeconvert.h" namespace agi { GraphEdge* PNgraph::getEdge(lid_t lid,etype t) { return reinterpret_cast<...
<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>// Copyright (c) 2021 by Robert Bosch GmbH. 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 // // ...
<commit_before>#include <fstream> #include <boost/filesystem.hpp> #include <util/helpers.hpp> #include <imageprocessing/ConnectedComponent.h> #include <sopnet/exceptions.h> #include <sopnet/segments/EndSegment.h> #include <sopnet/segments/ContinuationSegment.h> #include <sopnet/segments/BranchSegment.h> #include "Geo...
<commit_before>//---------------------------------------------------------------------------// /* Copyright (c) 2012, Stuart R. Slattery All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *: Re...
<commit_before>/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** Copyright (C) 2014 Nomovok Ltd. All rights reserved. ** Contact: info@nomovok.com ** ** This file is part of the doc...
<commit_before>#include "inner_readers.h" #include "../flags.h" #include <cassert> using namespace dariadb; using namespace dariadb::compression; using namespace dariadb::storage; InnerReader::InnerReader(dariadb::Flag flag, dariadb::Time from, dariadb::Time to) : _chunks{}, _flag(flag), _from(from), _to(to), _...
<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>/* * Copyright 2011, 2012 Esrille 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 applic...
<commit_before>/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) UNSPECIFIED - FILL IN, 2005 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publishe...
<commit_before>/*========================================================================= Program: Bender Copyright (c) Kitware 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 ...
<commit_before>// sky.cxx -- ssg based sky model // // Written by Curtis Olson, started December 1997. // SSG-ified by Curtis Olson, February 2000. // // Copyright (C) 1997-2000 Curtis L. Olson - http://www.flightgear.org/~curt // // This library is free software; you can redistribute it and/or // modify it under the...
<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 <exception> #include <assert.h> #include "Stack.h" using namespace std; template <typename T> Stack<T>::Node::Node(T _data, Node* _pNext) { this->data = _data; this->pNext = _pNext; } template <typename T> Stack<T>::Stack() { init(); } template <typename T> Stack<T>::~Stack() { destroy(...
<commit_before>/*============================================================================= Library: CTK Copyright (c) 2010 German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in ...
<commit_before>#ifndef AVECADO_FACTORY_HPP #define AVECADO_FACTORY_HPP #include <boost/property_tree/ptree.hpp> namespace pt = boost::property_tree; namespace avecado { namespace post_process { /** * Generic factory class for creating objects based on type name and configuration. */ template <typename T> class fa...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2008 Renato Araujo Oliveira Filho <renatox@gmail.com> Copyright (c) 2000-2009 To...
<commit_before>// uses boost:asio to get some http data #include <boost/asio/io_service.hpp> #include <boost/asio/ip/tcp.hpp> #include <boost/asio/spawn.hpp> #include <boost/asio/steady_timer.hpp> #include <boost/asio/connect.hpp> #include <boost/asio/write.hpp> #include <iostream> #include <memory> namespace a = boo...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2014 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before>//============================================================================ // include/vsmc/utility/vector.hpp //---------------------------------------------------------------------------- // // vSMC: Scalable Monte Carlo // // This file is distribured under the 2-clauses BSD ...
<commit_before>/** * @file _refcounted.cpp * @brief Atomic, thread-safe ref counting and destruction mixin class * * $LicenseInfo:firstyear=2012&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2012, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * ...
<commit_before>inline opt_feat::opt_feat(const std::string in_path, const std::string in_actionNames, const int in_col, const int in_row, const int in_scale_factor, const int in_shift, const int in_scene, //only for kth const int in_dim ) :path(in_path), actionNames(in_actionNames...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // @author Vegard Sjonfjell #include <vespa/storage/persistence/fieldvisitor.h> #include <vespa/storage/persistence/testandsethelper.h> #include <vespa/document/select/parser.h> #includ...
<commit_before>/* * Copyright 2016-present 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 appl...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved */ #include "../StroikaPreComp.h" #include <cassert> #include <cstdlib> #include "BackTrace.h" #include "Debugger.h" #include "Trace.h" #include "Assertions.h" #if qPlatform_POSIX #include <cstdio>...
<commit_before>/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directo...