text
stringlengths
54
60.6k
<commit_before>/* * Copyright (C) 2008-2011, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ /// \file li...
<commit_before>/** * @file conv_layer.hpp * @author Marcus Edel * * Definition of the ConvLayer class. */ #ifndef __MLPACK_METHODS_ANN_LAYER_CONV_LAYER_HPP #define __MLPACK_METHODS_ANN_LAYER_CONV_LAYER_HPP #include <mlpack/core.hpp> #include <mlpack/methods/ann/layer/layer_traits.hpp> #include <mlpack/methods/ann...
<commit_before>#include <memory> #include <zmqpp/message.hpp> #include <boost/property_tree/ptree.hpp> #include <tools/log.hpp> #include <zmqpp/context.hpp> #include <fcntl.h> #include "pifacedigital.hpp" #include "zmqpp/actor.hpp" #include "../../../libpifacedigital/src/pifacedigital.h" #include "../../../libmcp23s17/...
<commit_before>///////// UI D2D1 Render code #include "ui.hpp" namespace ui { //// --> HRESULT Window::CreateDeviceIndependentResources() { D2D1_FACTORY_OPTIONS options; ZeroMemory(&options, sizeof(D2D1_FACTORY_OPTIONS)); HRESULT hr = S_OK; if ((hr = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED...
<commit_before>#include <iostream> #include <fstream> #include <sstream> #include <stdexcept> #include <string> #include <vector> #include <iterator> #include "retriever.h" #include "../node.h" #include "../node_util.h" #include "../string_util.h" #include "../tree.hh" using std::ifstream; using std::invalid_argument;...
<commit_before>//============================================================================================================= /** * @file settingscontrollergui.cpp * @author Juan GPC <juangpc@gmail.com> * @since 0.1.0 * @date May, 2020 * * @section LICENSE * * Copyright (C) 2020, Juan GPC. All ri...
<commit_before>// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved // Please see LICENSE.md in repository root for license information // https://github.com/AtomicGameEngine/AtomicGameEngine #include <Atomic/Atomic.h> #include <Atomic/IO/Log.h> #include <Atomic/Core/ProcessUtils.h> #include <Atomic/...
<commit_before>#include<iostream> #include<string> template<class T> class Randomizer { public: Randomizer(T num1, T num2):_NUM1(num1), _NUM2(num2){} T getRandom(); private: T _NUM1, _NUM2; }; template<class T> T Randomizer<T>::getRandom() { return(rand() % _NUM1 + _NUM2); } int main() { /*Randomizer Code: **Q...
<commit_before>// This code is part of the Super Play Library (http://www.superplay.info), // and may only be used under the terms contained in the LICENSE file, // included with the Super Play Library. // // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY // KIND, EITHER EXPRESSED OR IMPLI...
<commit_before>#include "Math/GenVector/Transform3D.h" #include "Math/Math_vectypes.hxx" #include "RandomNumberEngine.h" #include "benchmark/benchmark.h" template <typename T> using Point = ROOT::Math::PositionVector3D<ROOT::Math::Cartesian3D<T>, ROOT::Math::DefaultCoordinateSystemTag>; template <typename T> using ...
<commit_before>#include<iostream> #include<vector> using namespace std; int unimodal(vector<int> v){ bool fin=false; int tamanio=v.size()-1; int indice=tamanio/2; while(!fin){ if(v.at(indice-1)<v.at(indice)) if(v.at(indice+1)<v.at(indice)) fin=true; else indice+=(tamanio-...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2014 Max-Planck-Institute for Intelligent Systems, * University of Southern California, * Karlsruhe Institute of Technology * Jan Issac (jan.issac@gmail.com) * * All rights reserved. * *...
<commit_before>/* * This file is part of TelepathyQt4 * * Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright (C) 2009 Nokia Corporation * * 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 b...
<commit_before>#include "browser/views/inspectable_web_contents_view_views.h" #include "browser/inspectable_web_contents_impl.h" #include "base/strings/utf_string_conversions.h" #include "content/public/browser/web_contents_view.h" #include "ui/views/controls/webview/webview.h" #include "ui/views/widget/widget.h" #in...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>#include <ros/ros.h> #include <actionlib/server/simple_action_server.h> #include <roomba_clean_actions/basic_cleanAction.h> #include <roomba_serial/SendButton.h> #include <roomba_serial/SetMode.h> #include <roomba_serial/Sensors.h> #include <ctime> class basic_cleanAction { protected: ros::NodeHandle ...
<commit_before>/* * Copyright (C) 2015-2018 Dubalu LLC. All rights reserved. * Copyright (C) 2014 furan * * 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 ...
<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 COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 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 COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<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/extensions/extension_webrequest_time_tracker.h" #include "base/bind.h" #include "base/compiler_specific.h" #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 test performs a series false positive checks using a list of URLs // against a known set of SafeBrowsing data. // // It uses ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: MNSMozabProxy.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-08 06:28:06 $ * * The Contents of this file are ...
<commit_before>#include "gui/navigation/qrnavigationtabpage.h" #include <QtCore/qdebug.h> #include <QtCore/qsortfilterproxymodel.h> #include <QtGui/qstandarditemmodel.h> #include <QtWidgets/qboxlayout.h> #include <QtWidgets/qpushbutton.h> #include "db/qrtblnavigation.h" #include "gui/navigation/qrnavigationmodel.h" #...
<commit_before>// // Reactor.cpp // ofxLibwebsockets // // Created by Brett Renfer on 4/12/12. // Copyright (c) 2012 Robotconscience. All rights reserved. // #include "ofxLibwebsockets/Reactor.h" namespace ofxLibwebsockets { //-------------------------------------------------------------- Reactor::React...
<commit_before>#include "ros/ros.h" #include "vrep_common/VrepInfo.h" #include "rosgraph_msgs/Clock.h" #include <string> const int SIM_STARTED = 1; ros::Publisher clock_publisher; ros::Subscriber vrep_clock_subscriber; float sim_time = -1; void updateClock(const vrep_common::VrepInfo::ConstPtr & new_time) { if (S...
<commit_before>#include "ofUtils.h" #include "ofImage.h" #if defined(TARGET_OF_IPHONE) || defined(TARGET_OSX ) || defined(TARGET_LINUX) #include "sys/time.h" #endif #ifdef TARGET_WIN32 #include <mmsystem.h> #ifdef _MSC_VER #include <direct.h> #endif #endif static bool enableDataPath = true; static unsigned...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2013 Mohammed Nafees <nafees.technocool@gmail.com> // #include "Navigati...
<commit_before>#ifndef SCENE_BUILDINGS_FACADES_LOWPOLYWALLBUILDER_HPP_DEFINED #define SCENE_BUILDINGS_FACADES_LOWPOLYWALLBUILDER_HPP_DEFINED #include "GeoCoordinate.hpp" #include "meshing/MeshTypes.hpp" #include "mapcss/ColorGradient.hpp" namespace utymap { namespace scene { // Responsible for building facade wall i...
<commit_before>/* * Moon++ Scripts for Ascent MMORPG Server * Copyright (C) 2007-2008 Moon++ Team <http://www.moonplusplus.info/> * * 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 v...
<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 3 of the License, or * (at your option) any later version. * * Written (W) 2012 Heiko Strathmann */ #incl...
<commit_before>#ifndef MJOLNIR_CORE_NAIVE_PAIR_CALCULATION #define MJOLNIR_CORE_NAIVE_PAIR_CALCULATION #include "System.hpp" namespace mjolnir { template<typename traitsT> class NaivePairCalculation { public: typedef traitsT traits_type; typedef System<traits_type> system_type; typedef typename traits_...
<commit_before>// Copyright 2014 Toggl Desktop developers. #include "./mainwindowcontroller.h" #include "./ui_mainwindowcontroller.h" #include <iostream> // NOLINT #include <QAction> // NOLINT #include <QCloseEvent> // NOLINT #include <QtConcurrent/QtConcurrent> // NOLINT #include <QDebug> // NOLINT #include <Q...
<commit_before>/* * Copyright 1999-2004 The Apache Software Foundation. * * 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>/* 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>/* * Advent of Code 2016 * Day 7 (part 1) * * Command: clang++ --std=c++14 day07a.cpp * */ #include <fstream> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; const string INPUT_FILE = "input07.txt"; const int MAX_LINE_LENGTH = 2000; int main(void)...
<commit_before>/***************************************************************************** * input_slider.hpp : VolumeSlider and SeekSlider **************************************************************************** * Copyright (C) 2006-2011 the VideoLAN team * $Id$ * * Authors: Clément Stenac <zorglub@videol...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Co...
<commit_before>// @(#)root/tmva/tmva/dnn:$Id$ // Author: Simon Pfreundschuh 20/07/16 /************************************************************************* * Copyright (C) 2016, Simon Pfreundschuh * * All rights reserved. * * ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>// HACK - lifted from https://github.com/harto/realpath-osx #include <climits> #include <cstring> #include <cstdio> #include <cstdlib> int main (int argc, char** argv) { size_t pathIdx = 1; if (argc == 3 && strcmp (argv[1], "--canonicalize-missing") == 0) { pathIdx += 1; } else i...
<commit_before>//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2010-2013 The PECOS Development Team // // This library is free softw...
<commit_before>#include "JPetHLDReader.h" #include <iostream> bool JPetHLDReader::OpenFile (const char* filename){ JPetReader::OpenFile(filename); ReadData("T"); fBranch->SetAddress(fEvent); }<commit_msg>drobna poprawka<commit_after>#include "JPetHLDReader.h" #include <iostream> bool JPetHLDReader::OpenFile (const...
<commit_before>#include "stdafx.h" #include "character_skills_layout.h" using namespace std; using namespace glm; namespace asdf { namespace gurps_track { using namespace ui::layout_constants; character_skills_layout_t::character_skills_layout_t(std::shared_ptr<character_t> _character) : ui_list_view_t() ...
<commit_before>/* * Copyright (C) 2008 The Android Open Source Project * * 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 <fstream> #include <string> #include <iostream> #include <sstream> #include <stdlib.h> #define max_cov 100000 #define CC0 50 // if summary coverage accross the window is 0, we artificially replace it with CC0 value, which should be approximately a half of read length using namespace std; ...
<commit_before>/** * * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017 GAMS Software GmbH <support@gams.com> * Copyright (c) 2017 GAMS Development Corp. <support@gams.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
<commit_before>//======================================================================= // Copyright (c) 2013-2018 Baptiste Wicht. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================...
<commit_before>//================================================================================================= // Copyright (C) 2016 Olivier Mallet - All Rights Reserved //================================================================================================= #inc...
<commit_before>// Copyright 2019 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2015-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>/* * Copyright (c) 2016, 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 directory. * ...
<commit_before>#include "assets.gen.h" #include "coders_crux.gen.h" #include "Element.h" #include "ElementCube.h" #include "periodic.h" #include <sifteo.h> using namespace Sifteo; #define NUM_CUBES 3 #define MAX_REACTION_SIZE 3 static Metadata M = Metadata() .title("Periodic Project") .package("edu.ksu.per...
<commit_before>/* This file is part of "libarchive-ruby-swig", a simple SWIG wrapper around libarchive. Copyright 2011, Tobias Koch <tobias.koch@gmail.com> libarchive-ruby-swig is licensed under a simplified BSD License. A copy of the license text can be found in the file LICENSE.txt distributed with the source...
<commit_before>#if defined(__WINDOWS__) #define WIN32_LEAN_AND_MEAN #define NOGDI #include <windows.h> #else #include <sys/stat.h> #include <signal.h> #include <unistd.h> // isatty #endif #include <string.h> // strncpy, strcmp #include "Config.h" #include "Common.h" const char* Format( const ch...
<commit_before>/* Copyright (c) 2013 Daniele Bartolini, Michele Rossi Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto 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, i...
<commit_before>#include "types.h" #include "amd64.h" #include "kernel.hh" #include "mmu.h" #include "spinlock.h" #include "condvar.h" #include "queue.h" #include "proc.hh" #include "cpu.hh" #include "vm.hh" #include "sperf.hh" #include "kmtrace.hh" #include "futex.h" #include <uk/mman.h> //SYSCALL int sys_fork(int fl...
<commit_before>/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "util/flet.h" #include "util/scoped_map.h" #include "kernel/environment.h" #include "kernel/normalizer.h" #include "kernel/builtin.h...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 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>/* * 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 3 of the License, or * (at your option) any later version. * * Written (W) 1999-2009 Soeren Sonnenburg * W...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include "logjoin/...
<commit_before>/* * objectList.cpp * * Created on: May 4, 2014 * Author: Srinivasan */ <commit_msg>removed unwanted file<commit_after><|endoftext|>
<commit_before>#include "optionshierarchy.h" #include "io.h" #include <iostream> using namespace std; using namespace mlpack::io; /* Ctors, Dtors, and R2D2 [actually, just copy-tors] */ /* Constructs an empty OptionsHierarchy node. */ OptionsHierarchy::OptionsHierarchy() : children() { nodeData.node = ""; nodeD...
<commit_before>#include <algorithm> //std::sort #include <iomanip> //std::setw #include <iostream> //std::cout, std::cerr #include <sstream> //std::stringstream #include <string> //std::string #include <vector> //std::vector #include <dirent.h> //dirent, opendir, readdir #include <errno.h> //errno #include <grp....
<commit_before>#ifndef AFFINE_INVARIANT_FEATURES_AFFINE_INVARIANT_FEATURE #define AFFINE_INVARIANT_FEATURES_AFFINE_INVARIANT_FEATURE #include <algorithm> #include <vector> #include <affine_invariant_features/affine_invariant_feature_base.hpp> #include <affine_invariant_features/parallel_tasks.hpp> #include <boost/bi...
<commit_before>#pragma once #include "integrators/symplectic_runge_kutta_nystrom_integrator.hpp" #include <algorithm> #include <cmath> #include <ctime> #include <vector> #include "glog/logging.h" #include "quantities/quantities.hpp" #ifdef ADVANCE_ΔQSTAGE #error ADVANCE_ΔQSTAGE already defined #else #define ADVANC...
<commit_before>#include "generated_flexnlp_test.o.h" #include "Halide.h" #include <tiramisu/utils.h> #include <cstdlib> #include <iostream> #include "configure.h" int main(int, char **) { std::vector<double> duration_vector; double start, end; const int hsize = HIDDEN_SIZE; const int isize = INPUT_SIZE; co...
<commit_before>#include "intnw_instruments_network_chooser.h" #include "intnw_instruments_net_stats_wrapper.h" #include "libcmm_net_restriction.h" #include "debug.h" #include <assert.h> #include "libpowertutor.h" #include <functional> #include <sstream> #include <string> using std::max; using std::ostringstream; using...
<commit_before>/* * Copyright 2015 Intel(r) 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 by applic...
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/fnet/transport.h> #include <vespa/fnet/transport_thread.h> #include <vespa/fnet/iserveradapter.h> #include <vespa/fnet/ipacketstreamer.h> #...
<commit_before>/* * Copyright (c) 2018 Cisco and/or its affiliates. * 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>/*********************************************************************** filename: CEGUIFalTextComponent.cpp created: Sun Jun 19 2005 author: Paul D Turner <paul@cegui.org.uk> *************************************************************************/ /********************************...
<commit_before>/** @file @brief Implementation @date 2014 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) #define OSVR_DEV_VERBOSE_DISABLE // Int...
<commit_before>#include "lxqtfiledialoghelper.h" #include <libfm-qt/libfmqt.h> #include <libfm-qt/filedialog.h> #include <QWindow> #include <QMimeDatabase> #include <QDebug> #include <QTimer> #include <QSettings> #include <memory> static std::unique_ptr<Fm::LibFmQt> libfmQtContext_; LXQtFileDialogHelper::LXQtFileD...
<commit_before><commit_msg>coverity#1309069 Uncaught exception<commit_after><|endoftext|>
<commit_before><commit_msg>coverity#738654 Uninitialized scalar field<commit_after><|endoftext|>
<commit_before>/* * Copyright 2016 CodiLime * * 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>/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy...
<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 "webkit/fileapi/file_system_usage_cache.h" #include "base/basictypes.h" #include "base/file_util.h" #include "base/scoped_tem...
<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 that the f...
<commit_before>// Start by just creating shared memory and checking multiple processes can read // and write to it. // Then get the atomic operations working (add and cas). // Then implement the algorithm. Option to clear all the memory? #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h...
<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>// Copyright (C) M.Golov 2016 #include <iostream> #include <string> #include <functional> struct InputData { int value; }; struct TransformedData { double value; }; InputData produceFx() { return InputData{42}; } TransformedData transformFx(InputData input) { return TransformedData{(double)input.valu...
<commit_before>/* * C S O U N D * * L I C E N S E * * This software is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. *...
<commit_before>// 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 "base/command_line.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/scoped_ptr.h" #include "base/stri...
<commit_before>/** * This file is part of Slideshow. * Copyright (C) 2008 David Sveningsson <ext@sidvind.com> * * Slideshow 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 ...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: helpdispatch.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-07 17:39:04 $ * * The Contents of this file are m...
<commit_before>#include "leveldb_ext.h" static void PyLevelDB_set_error(leveldb::Status& status) { extern PyObject* leveldb_exception; PyErr_SetString(leveldb_exception, status.ToString().c_str()); } const char leveldb_repair_db_doc[] = "leveldb.RepairDB(db_dir)\n" ; PyObject* leveldb_repair_db(PyObject* self, PyOb...
<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 (c) 2006-2014, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of ...
<commit_before>/* * Copyright (c) 2014 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>//============================================================================ // vSMC/include/vsmc/rng/discrete_distribution.hpp //---------------------------------------------------------------------------- // vSMC: Scalable Monte Carlo //----------------------------------------...
<commit_before>/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include "VRDataQueue.h" #include <main/VRError.h> namespace MinVR { // Use this when the client has no new data to offer. const VRDataQueue::serialData VRDataQueue::noData = ""; VRDataQueue::VRDataQueue(const VRDataQueue::serialData serializedQueue) { addSerializedQueue(serializedQueue); } // ...
<commit_before>// v8 #include <v8.h> // node #include <node.h> #include <node_version.h> // stl #include <sstream> #include <iostream> #include <stdio.h> #include <stdlib.h> // osr #include "ogr_spatialref.h" //#include "ogr_core.h" //#include "cpl_conv.h" #include "cpl_string.h" //#include "ogr_p.h" //#include "cpl...
<commit_before>/* Copyright (c) 2003, Magnus Jonsson & 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, t...
<commit_before>/// \file conn_ts.cpp /// Contains the main code for the TS Connector #include <queue> #include <string> #include <iostream> #include <cmath> #include <ctime> #include <cstdio> #include <cstdlib> #include <cstring> #include <unistd.h> #include <getopt.h> #include <sys/time.h> #include <sys/wait.h> #inc...
<commit_before>#include <QAction> #include <QApplication> #include <QBoxLayout> #include <QDesktopWidget> #include "base.h" #include "nedit.h" #include "note.h" #include "nmain.h" #include "nside.h" #include "ntabs.h" #include "menu.h" #include "proj.h" #include "psel.h" #include "svr.h" #include "recent.h" #include "...