text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SQLException.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: hr $ $Date: 2006-06-20 01:36:25 $ * * The Contents of this file are ...
<commit_before>#ifndef __MEDIA_OBJECT_IMPL_HPP__ #define __MEDIA_OBJECT_IMPL_HPP__ #include <Factory.hpp> #include "MediaObject.hpp" #include <EventHandler.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <jsonrpc/JsonSerializer.hpp> #include <KurentoException.hpp> ...
<commit_before>#include "writeback.h" #include <kernel/kernel.h> template <typename ISA> Writeback<ISA>::Writeback( Module* parent, std::endian endian) : Module( parent, "writeback"), endian( endian) { rp_mem_datapath = make_read_port<Instr>("MEMORY_2_WRITEBACK", Port::LATENCY); rp_execute_datapath = make_rea...
<commit_before><commit_msg>Linux: fix memory leak in new SkFontHost code.<commit_after><|endoftext|>
<commit_before>// The MIT License (MIT) // // Copyright (c) 2017 Darrell Wright // // 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 ri...
<commit_before>/*! \file EulerParameterVector.cpp */ #include "EulerParameterVector.h" namespace numlib{ namespace tensor{ EulerParameterVector::EulerParameterVector(Real q1_, Real q2_, Real q3_, Real q4_): q1(q1_), q2(q2_), q3(q3_), q4(q4_) { } EulerParameterVector::EulerParameterVector(const TensorR2 & r...
<commit_before>/** * @file simulator_node.cpp * @author Icaro da Costa Mota * @author Matheus Vieira Portela * @date 25/03/2014 * * @attention Copyright (C) 2014 UnBall Robot Soccer Team * * @brief Has a Gazebo plugin for controlling the robots and publish the state of the simulation */ #include <ros/ro...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * BufferV.cpp * */ #include "ChunkV.h" #include "adios2/toolkit/format/buffer/BufferV.h" #include <assert.h> #include <iostream> #include <stddef.h> // max_align_t #include <s...
<commit_before>/************************************************************************* * * $RCSfile: adjushdl.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: dvo $ $Date: 2001-06-29 21:07:17 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* * ===================================================================================== * * Filename: 3.cpp * * Description: Solution to the third problem of the `evens' section. * * Version: 1.0 * Created: 28.01.2015 6,00,07 * Revision: none * Compil...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: postuhdl.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-17 10:56:12 $ * * The Contents of this file are made...
<commit_before>// Copyright (c) 2013 Intel Corporation. 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 "xwalk/application/browser/application_process_manager.h" #include "xwalk/application/common/application_manif...
<commit_before>#include "test/test_syscoin_services.h" #include "data/utxo.json.h" #include "utiltime.h" #include "rpcserver.h" #include <boost/test/unit_test.hpp> #include <univalue.h> int currentTx = 0; extern UniValue read_json(const std::string& jsondata); BOOST_FIXTURE_TEST_SUITE (syscoin_snapshot_tests, SyscoinMa...
<commit_before>#include "test/test_syscoin_services.h" #include "data/utxo.json.h" #include "utiltime.h" #include "rpcserver.h" #include <boost/test/unit_test.hpp> #include <univalue.h> int currentTx = 0; extern UniValue read_json(const std::string& jsondata); BOOST_FIXTURE_TEST_SUITE (syscoin_snapshot_tests, SyscoinMa...
<commit_before>#include "SynchroProducer.h" #include <node-manager/SuperNodeManager.h> #include <node-manager/NodeManagerBase.h> #include <net/distribute/DataTransfer2.hpp> #include <boost/thread.hpp> #include <glog/logging.h> #include <sstream> #include <unistd.h> // sleep using namespace sf1r; #define SYNCHRO_PRO...
<commit_before>/*! @file @copyright Edouard Alligand and Joel Falcou 2015-2017 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_BRIGAND_ALGORITHMS_COUNT_HPP #define BOOST_BRIGAND_ALGORITHMS_COUNT_HPP #if __cplusplus >= 201402L #include <array> #endif #include <brigand/co...
<commit_before>#include "IGTLinkStreamer.hpp" #include "FAST/Data/Image.hpp" #include "FAST/AffineTransformation.hpp" #include <boost/shared_array.hpp> #include <boost/lexical_cast.hpp> #include "igtlOSUtil.h" #include "igtlMessageHeader.h" #include "igtlTransformMessage.h" #include "igtlPositionMessage.h" #include "i...
<commit_before>/************************************************************************* * * $RCSfile: slidebitmap.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-11-26 18:59:01 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: wakeupevent.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-09-17 08:31:22 $ * * The Contents of this file are m...
<commit_before> #include <gloperate-qt/base/GLContextFactory.h> #include <QOpenGLContext> #include <QSurfaceFormat> #include <cppassist/memory/make_unique.h> #include <gloperate-qt/base/GLContext.h> namespace gloperate_qt { GLContextFactory::GLContextFactory(QWindow * window) : m_window(window) { } GLContextFac...
<commit_before>// Created by 乔磊 on 2015/8/7. // Copyright (c) 2015年 乔磊. All rights reserved. // #include <NSolver/linearVelocityPotential/linearVelocityPotential.h> namespace velocityPotential { using namespace dealii; template <int dim> void LinearVelocityPotential<dim>::transfer_solution ( const FESyst...
<commit_before>//============================================================================================================= /** * @file eegref.cpp * @author Viktor Klüber <v.klueber@gmx.net>; * Lorenz Esch <Lorenz.Esch@tu-ilmenau.de>; * Matti Hamalainen <msh@nmr.mgh.harvard.edu> * @version ...
<commit_before>//Eric is sleeping #include "PivotKick.hpp" #include <Utils.hpp> using namespace std; using namespace Geometry2d; namespace Gameplay { namespace Behaviors { REGISTER_CONFIGURABLE(PivotKick) } } ConfigDouble *Gameplay::Behaviors::PivotKick::_aim_Speed; ConfigDouble *Gameplay::Behaviors::PivotKick...
<commit_before> #include <yuni/yuni.h> #include <yuni/core/string.h> #include <yuni/io/file.h> #include <yuni/core/getopt.h> #include <yuni/core/logs.h> #include <yuni/parser/peg/grammar.h> #include <yuni/core/variant.h> using namespace Yuni; //! logger static Yuni::Logs::Logger<> logs; class Settings final {...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: EnhancedCustomShapeEngine.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-08 20:25:41 $ * * The Contents of th...
<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>/* * Copyright 2018 NXP. * * 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 conditions and the following disclaimer. ...
<commit_before>/* * InitGaborWeights.hpp * * Created on: Aug 13, 2011 * Author: kpeterson */ #ifndef INITGABORWEIGHTS_HPP_ #define INITGABORWEIGHTS_HPP_ #include "InitWeights.hpp" #include "InitGauss2DWeights.hpp" namespace PV { class InitWeightsParams; class InitGaborWeightsParams; class InitGaborWeigh...
<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>// // xec_ssa_print.cpp // // Created by Edmund Kapusniak on 10/08/2014. // Copyright (c) 2014 Edmund Kapusniak. All rights reserved. // #include "xec_ssa_print.h" #include <unordered_map> #include "xec_ssa.h" class xec_ssa_printer { public: explicit xec_ssa_printer( xec_ssa* root ); vo...
<commit_before>#ifndef MEAS_DIFFUSION_HPP #define MEAS_DIFFUSION_HPP #include<stdio.h> #include<vector> #include<map> class Meas_Diffusion { public: int icall; bool written; int delay; public: Meas_Diffusion(float Emin=0, float Emax=1, float _Ebin=1); void init(float Emin, float Emax, float Ebi...
<commit_before>#include <catch.hpp> #include <string> #include <unordered_map> TEST_CASE("literals encoding strategy") { char const literal[] = { 0, 1, 2 }; std::string s(literal, sizeof(literal)/sizeof(char)); CHECK(s.size()==3); } namespace { class Resource /*final*/ { public: typedef std::string(*Resource...
<commit_before> /**************************************************************************** ** Copyright (c) 2006 - 2011, the LibQxt project. ** See the Qxt AUTHORS file for a list of authors and copyright holders. ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** mod...
<commit_before>//--------------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2016 Sergej Zuyev (sergej.zuyev - at - zz-systems.net) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated do...
<commit_before>#pragma once /** * \file algorithm.hpp * * This header providers various high-level functions to perform common * algorithms and communication patterns found in bulk-synchronous parallel * programs. */ #include <vector> #include "world.hpp" #include "coarray.hpp" #include "communication.hpp" ...
<commit_before><commit_msg>accept svg documents in svg: namespace (hack)<commit_after><|endoftext|>
<commit_before>/* * Copyright (C) 2021 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) 2015-2018, LAAS-CNRS // Authors: Joseph Mirabel (joseph.mirabel@laas.fr) // // This file is part of gepetto-viewer. // gepetto-viewer 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 Softwar...
<commit_before>/************************************************************************* * * $RCSfile: statusbarcontroller.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2004-09-09 17:13:16 $ * * The Contents of this file are made available subject to the terms of * either of the fol...
<commit_before>/******************************************************* * Copyright (c) 2018, 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 <iostream> #include <complex> #include <vector> #include <htool/cluster.hpp> #include <htool/lrmat.hpp> #include <htool/fullACA.hpp> using namespace std; using namespace htool; class MyMatrix: public IMatrix<double>{ const vector<R3>& p1; const vector<R3>& p2; public: MyMatrix(const vec...
<commit_before>// https://en.wikipedia.org/wiki/Gray_code unsigned gray_code(unsigned n) { return n ^ (n >> 1); } // итерирующий генератор перестановок из 6 элементов class shuffle6 { // набор элементов для перестановок в виде 4-х битовых групп static const unsigned item_set = 0x543210; // оставшиеся элем...
<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>/************************************************************************* * * $RCSfile: commtest.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2005-01-03 17:05:57 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<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. #ifndef NIX_BASE_TYPES_H #de...
<commit_before>/* The MIT License (MIT) Copyright (c) 2014 Conrado Miranda 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, cop...
<commit_before>// CxxSwizzle // Copyright (c) 2013-2015, Piotr Gwiazdowski <gwiazdorrr+github at gmail.com> #pragma once #include <array> #include <swizzle/detail/utils.h> #include <swizzle/detail/common_binary_operators.h> #include <utility> #include <swizzle/vector.hpp> namespace swizzle { template <class Scal...
<commit_before>#include "stdafx.h" #include "CommandDefend.h" CommandDefend::CommandDefend() { } CommandDefend::~CommandDefend() { } bool CommandDefend::ShouldRunThisCommand(ParsedCommand* Parsed) { return (Parsed->Words->at(0) == "defend"); } void CommandDefend::Run(ParsedCommand* Parsed) { //There wasn't anot...
<commit_before><commit_msg>vector<OUString*> to vector<OUString> as a temporary<commit_after><|endoftext|>
<commit_before>#ifndef LIBTEN_HTTP_SERVER_HH #define LIBTEN_HTTP_SERVER_HH #include <fnmatch.h> #include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/compare.hpp> #include <chrono> #include <functional> #include <netinet/tcp.h> #include "ten/buffer.hh" #include "ten/logging.hh" #include "te...
<commit_before>/* * AlloSphere Research Group / Media Arts & Technology, UCSB, 2009 */ /* Copyright (C) 2006-2008. The Regents of the University of California (REGENTS). All Rights Reserved. Permission to use, copy, modify, distribute, and distribute modified versions of this software and its documentation w...
<commit_before>/************************************************************************/ /* */ /* Copyright 1998-2002 by Ullrich Koethe */ /* Cognitive Systems Group, University of Hamburg, Germany */ /* ...
<commit_before>#include "indexer/ftypes_matcher.hpp" #include "indexer/feature.hpp" #include "indexer/feature_data.hpp" #include "indexer/classificator.hpp" #include "std/sstream.hpp" #include "std/utility.hpp" namespace ftypes { uint32_t BaseChecker::PrepareToMatch(uint32_t type, uint8_t level) { ftype::TruncVal...
<commit_before>#include "rssitem.h" #include "3rd-party/catch.hpp" #include "cache.h" #include "configcontainer.h" using namespace newsboat; TEST_CASE("RssItem::sort_flags() cleans up flags", "[RssItem]") { ConfigContainer cfg; Cache rsscache(":memory:", &cfg); RssItem item(&rsscache); SECTION("Repeated letters...
<commit_before>#include <gmock/gmock.h> #include <gtest/gtest.h> #include <babylon/core/future_then.h> #define USE_TIMINGS 0 inline std::string thread_id_string(const std::thread::id& threadId) { std::stringstream ss; ss << threadId; return ss.str(); } inline size_t string_counter(const std::string& s) { #if ...
<commit_before>/* Copyright (c) 2013, 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 condi...
<commit_before>#include "testutil.hpp" #include <apollo/stack_balance.hpp> #include <boost/test/unit_test.hpp> #include <boost/test/unit_test_monitor.hpp> #include <boost/exception/diagnostic_information.hpp> #include <exception> // std::terminate() #include <iostream> // std::cerr // See http://stackoverflow.com/...
<commit_before>//======================================================================= // Copyright (c) 2014-2015 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 <QCommandLineParser> #include "../DataLayer/DataContainer.h" #include "../CommunicationLayer/CommunicationContainer.h" #include "../BusinessLayer/BusinessContainer.h" #include "../PresenterLayer/PresenterContainer.h" #include "../ViewLayer/ViewContainer.h" #include "../InfrastructureLayer/Infra...
<commit_before>/* Rapicorn Tests * Copyright (C) 2008 Tim Janik * * 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.1 of the License, or (at your option) any later ...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 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. Redistri...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>/* This file is part of the Vc library. {{{ Copyright © 2014 Matthias Kretz <kretz@kde.org> 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 retai...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved */ #ifndef _Stroika_Foundation_Containers_Common_inl_ #define _Stroika_Foundation_Containers_Common_inl_ 1 /* ******************************************************************************** ***************************** Imple...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2010-03-12 14:05:50 +0100 (Fr, 12 Mrz 2010) $ Version: $Revision: 16010 $ Copyright (c) German Cancer Research Center, Division of Medical and ...
<commit_before>/* * Copyright (C) 2006-2021 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia 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 (FSF),...
<commit_before>/* * Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia 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 (FSF),...
<commit_before>/* * SessionHunspell.cpp * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERCHANTAB...
<commit_before>/// /// @file pi_deleglise_rivat_parallel2.cpp /// @brief Parallel implementation of the Lagarias-Miller-Odlyzko prime /// counting algorithm with the improvements of Deleglise and /// Rivat. In this implementation the easy leaves have been /// split up into clustered easy leaves an...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2012, 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>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2013-2015 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>//----------------------------------*-C++-*----------------------------------// /*! * \file example/Physics_B.cc * \author Stuart Slattery * \date Wed Oct 05 09:38:40 2011 * \brief Physics_B member definitions. */ //---------------------------------------------------------------------------// /...
<commit_before>/* * Copyright (c) 2015, The Regents of the University of California (Regents). * 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 mu...
<commit_before>/* * SessionSourceDatabase.cpp * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERC...
<commit_before>/* $Id$ * * Copyright (c) 2010 Anders Wallin (anders.e.e.wallin "at" gmail.com). * * This file is part of OpenCAMlib * (see https://github.com/aewallin/opencamlib). * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General ...
<commit_before>/* The MIT License Copyright (c) 2012 by Jorrit Tyberghein 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...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTextureDomainEffect.h" #include "GrTBackendEffectFactory.h" #include "gl/GrGLEffect.h" #include "gl/GrGLEffectMatrix.h" #include "SkFloatingPoint.h"...
<commit_before>/* * This file is part of the UnTech Editor Suite. * Copyright (c) 2016 - 2019, Marcus Rowe <undisbeliever@gmail.com>. * Distributed under The MIT License: https://opensource.org/licenses/MIT */ #pragma once #include "abstractaccessors.h" #include "listundohelper.h" namespace UnTech { namespace Gu...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Build Suite. ** ** Commercial License Usage ** Licensees holding valid commercial Qt ...
<commit_before>extern "C" { #include "halide_hexagon_remote.h" #include <sys/mman.h> #include <memory.h> #include <stdlib.h> #include <stdio.h> #include <dlfcn.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #define FARF_LOW 1 #include "HAP_farf.h" } #define DEBUG_PRINT(x) FARF(LOW, "%s", x); #i...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C $ ...
<commit_before>/******************************************************* Lightwave Scene Loader for OSG Copyright (C) 2004 Marco Jez <marco.jez@poste.it> OpenSceneGraph is (C) 2004 Robert Osfield ********************************************************/ #include "SceneLoader.h" #include <osg/Notify> #includ...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>// Copyright (c) 2020 The Orbit 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 "OrbitSshQt/Tunnel.h" #include <QHostAddress> #include <QTimer> #include "OrbitBase/Logging.h" #include "OrbitSshQt/Error.h" /...
<commit_before>/********************************************************************* * Thinker * * * * Logistic-function neural network with backpropagation. * * ...
<commit_before>/*! * \file File tileSet.cpp * \brief Implementation of the class TileSet * * Auxiliary documentation * \sa tileSet.hpp */ #include <tileSet.hpp> #include <assert.h> /*! @class TileSet @brief This class provides the tile sets to the game */ //! A constructor. /*! * This is a constructor method o...
<commit_before>/* * Copyright 2002-2009 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>#include "Compute.h" #include "ImageLogger.h" #include "VideoSource.h" #include <iostream> #include <opencv2/imgproc.hpp> #define countof(v) (sizeof v / sizeof v[0]) static int redChannel = 2; static int greenChannel = 1; static int blueChannel = 0; static int grayChannels = -1; enum SegMethod {Ho...
<commit_before>/** * @file thread.cpp * @brief Brief description of file. * */ #include <angort/angort.h> #include <pthread.h> #include <unistd.h> #include "../wrappers.h" using namespace angort; // thread hook object Angort uses to do... stuff. class MyThreadHookObject : public ThreadHookObject { // a big...
<commit_before>#include <boost/python.hpp> #include <boost/python/suite/indexing/vector_indexing_suite.hpp> using namespace boost::python; #include "QTRSensors.h" #include <wiringPi.h> class WrapperFuncs{ public: static boost::shared_ptr<QTRSensorsRC> init( list _pins, unsigned int timeout, unsigned char...
<commit_before>#include "StableHeaders.h" #include "UICanvas.h" #include "Profiler.h" #ifndef Q_WS_WIN #include <QX11Info> #endif #include <QCoreApplication> #include <QPicture> #include <QGraphicsSceneEvent> #include <QUuid> #include <QWidget> #include <QGraphicsProxyWidget> #include <Ogre.h> #i...
<commit_before>#include <Scenes/IntegrationTestScene.hpp> namespace asc { IntegrationTestScene::IntegrationTestScene(void) : Scene("IntegrationTestScene") { m_AddedCallbackId = m_EntityManager.OnEntityAdded.registerCallback(std::bind( &EntityRepresentationManager::handleRegisterEntity, &m_EntityRepresent...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 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>/**************************************************************************** ** ** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercia...
<commit_before>#include "trainer.h" namespace multiverso { namespace wordembedding { Trainer::Trainer(int trainer_id, Option *option, multiverso::Barrier *barrier, Dictionary* dictionary, WordEmbedding* WordEmbedding, MemoryManager* memory_mamanger) { ...
<commit_before>#include "twister.h" const unsigned CYCLE = 0x100; //Suggest we wrap these arrays inside an fsm or test base class const unsigned C_TRANS_ = 0xff; int block_units[][0x10] = { 0x74, 0x63, 0x69, 0x67, 0x72, 0x68, 0x6e, 0x6c, 0x61, 0x67, 0x74, 0x6c, 0x69, 0x73, 0x61, 0x61, 0x6f, 0x6d, 0x6f, 0x72, 0x6e, ...
<commit_before>#include "stdio.h" #include "stdlib.h" #include <iostream> #define MAXSTRLEN 255 // 用户可在255以内定义最大串长 typedef unsigned char SString[MAXSTRLEN+1]; // 0号单元存放串的长度 void get_next(SString T,int next[]){ int i,j; next[1]=0; j=0; while(i<T[0]){ printf("%d\n ??",j); if(j == 0 || T[i]...
<commit_before>// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name //...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld 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...
<commit_before>#include "pstream.h" #include <iostream> template class redi::pstreambuf; template class redi::pstream_common<char>; template class redi::pstream; template class redi::ipstream; template class redi::opstream; template class redi::rpstream; int main() { using namespace redi; char c; ipstre...