text
stringlengths
54
60.6k
<commit_before>#include <PluginFactory/PluginFactory.hpp> #include <PluginFactory/details/PolicyProperties.hpp> #include <load_plugins/PluginInterface.hpp> #include <load_plugins/PluginServiceInterface.hpp> #include "ConcreteService.hpp" #include <iostream> #include <memory> using MyPlugin = std::unique_ptr<load_p...
<commit_before>#pragma once #pragma message("NETClassBase.hpp - 1") #include "NETClassBase.inl" #pragma message("NETClassBase.hpp - 2") #include "NETClass.hpp" #pragma message("NETClassBase.hpp - 3") #pragma message("NETClassBase.hpp - 4") #include "../NETDerivedClassChecker/NETDerivedClassChecker.hpp" #pragma message...
<commit_before>// $Id: OoiEnergy_test.C,v 1.1 2000/05/30 10:28:50 oliver Exp $ #include <BALL/CONCEPT/classTest.h> /////////////////////////// #include <BALL/SOLVATION/ooiEnergy.h> #include <BALL/FORMAT/PDBFile.h> #include <BALL/FORMAT/HINFile.h> #include <BALL/KERNEL/system.h> #include <BALL/STRUCTURE/fragmentDB.h> ...
<commit_before>#include <QCoreApplication> #include <QSqlQuery> #include <QSqlError> #include <QDebug> #include <QCache> #include <QVector> #include <QStringList> #include <QSqlRecord> #include <QUrl> #include <QDir> #include <cxxabi.h> #include <QException> #include "kernel.h" #include "factory.h" #include "geometries...
<commit_before>#ifndef __MEDIA_ELEMENT_IMPL_HPP__ #define __MEDIA_ELEMENT_IMPL_HPP__ #include "MediaObjectImpl.hpp" #include "MediaElement.hpp" #include "MediaType.hpp" #include "MediaLatencyStat.hpp" #include <EventHandler.hpp> #include <gst/gst.h> #include <mutex> #include <set> #include <random> #include "MediaFlow...
<commit_before>#include "Decoder_LDPC_BP_peeling.hpp" #include "Tools/Perf/common/hard_decide.h" #include "Tools/Noise/Erased_value.hpp" #include "Tools/Math/utils.h" using namespace aff3ct; using namespace aff3ct::module; template<typename B, typename R> Decoder_LDPC_BP_peeling<B, R>::Decoder_LDPC_BP_peeling(const ...
<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>/*************************************************************************** ** ** This file is part of the qmlogre example on http://qt.gitorious.org. ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).* ** ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) **...
<commit_before>/******************************************************************************\ * ___ __ * * /\_ \ __/\ \ * * \//\ \ /\_\ \ \____ ___ _____ _____ __ ...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2017 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>/* * 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 License, Version 2.0 (the * "...
<commit_before>/* * Copyright (C) 2008, 2009 Nokia Corporation. * * Contact: Marius Vollmer <marius.vollmer@nokia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation....
<commit_before>/* * Copyright 2003,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 * * Unl...
<commit_before>// g++ main.cpp -o main -lzmq ./libcryptopp.a -std=c++11 #include <zmq.hpp> #include <string> #include <iostream> #include <unistd.h> #include <vector> #include <sstream> #include <bitset> #include "cryptopp/osrng.h" #include "cryptopp/integer.h" #include "cryptopp/nbtheory.h" #include "cryptopp/dh.h" #...
<commit_before>/* * Copyright (C) 2004, 2005, 2006 Apple Computer, 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: * 1. Redistributions of source code must retain the above copyright ...
<commit_before><commit_msg>gfe-relnote: (n/a) Always handle MSG_TOO_BIG when sending buffered packets. Protected by existing --gfe2_reloadable_flag_quic_treat_queued_packets_as_sent.<commit_after><|endoftext|>
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "NotificationWidget.h" #include "NaaliUI.h" #include "Framework.h" #include "Renderer.h" namespace RexLogic { NotificationWidget::NotificationWidget(RexLogicModule *rex_logic, QWidget ...
<commit_before>#include "pch.h" #include "AssemblyUILayer.h" #include "GameManager.h" #include "StageManager.h" #include "DataManager.h" #include "ResourceManager.h" #include "InputManager.h" #include "AssemblyLineLayer.h" #include "EquipmentStatusLayer.h" #include "AssemblyDisplayLayer.h" #include "SkillLineLayer.h" #...
<commit_before>#pragma once #include <array> #include <vector> #include "Runtime/RetroTypes.hpp" #include <zeus/CColor.hpp> #include <zeus/CMatrix4f.hpp> #include <zeus/CVector3f.hpp> #include <zeus/CVector4f.hpp> namespace urde { class CElementGen; class CParticleGlobals { CParticleGlobals() = default; static ...
<commit_before>#include "UIHandler.h" UIHandler::UIHandler() { } UIHandler::~UIHandler() { } void UIHandler::Initialize(ID3D11Device* device, ID3D11DeviceContext* deviceContext) { this->m_maxUIComponents = 10; this->m_nrOfUIComponents = 0; for (int i = 0; i < this->m_maxUIComponents; i++) { UIComponent* newUIC...
<commit_before>#include "Scheduler.h" //#include "Assert.h" //TODO: Split to files. One file - one class. namespace MT { static const size_t TASK_BUFFER_CAPACITY = 4096; ThreadContext::ThreadContext() : taskScheduler(nullptr) , hasNewTasksEvent(EventReset::AUTOMATIC, true) , state(ThreadState::...
<commit_before>#include "cinder/app/AppNative.h" #include "cinder/gl/gl.h" using namespace ci; using namespace ci::app; using namespace std; class RetinaSampleApp : public AppNative { public: void prepareSettings( Settings *settings ) override; void setup(); void mouseDrag( MouseEvent event ); void mouseDown( M...
<commit_before>/* --------------------------------------------------------------------------------- FIXME: Consider avoiding using STL in this instrumentation. Which might improve performance FIXME: Try to avoid current requirement of -finstrument-functions-exclude-file-list=/usr/ -finstrument-functions-ex...
<commit_before>// // Allocate objects smaller than a page. // #include "types.h" #include "mmu.h" #include "kernel.hh" #include "spinlock.h" #include "kalloc.hh" #include "mtrace.h" #include "cpu.hh" // allocate in power-of-two sizes up to 2^KMMAX // must be < 12 #define KMMAX 11 struct header { struct header *nex...
<commit_before>#include "module_scanningsonar.h" #include <QtCore> #include <stdio.h> #include "scanningsonar_form.h" #include "sonarreturndata.h" #include "sonardatasourceserial.h" #include "sonardatasourcefile.h" #include "sonardatacsvrecorder.h" #include "sonardata852recorder.h" #include <Module_ThrusterCon...
<commit_before>#include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/io/openni_grabber.h> #include <pcl/visualization/cloud_viewer.h> #include <pcl/compression/octree_pointcloud_compression.h> #include <stdio.h> #include <sstream> #include <stdlib.h> using namespace std; using namespace pcl; using ...
<commit_before>// Copyright 2015 Patrick Putnam // // 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 a...
<commit_before>#ifndef CPP_REF_HPP #define CPP_REF_HPP #include <stdexcept> #include <utility> #include <cassert> struct ref_counted { virtual ~ref_counted() { } std::size_t rc = 0; friend void incref(ref_counted* self) { self->rc++; } friend void decref(ref_counted* self) { if(--self->rc == 0) delete s...
<commit_before>/************************************************* * SEED Source File * * (C) 1999-2007 The Botan Project * *************************************************/ #include <botan/seed.h> #include <botan/bit_ops.h> namespace Botan { /****************************...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>/* This file is part of Akregator. Copyright (C) 2008 Frank Osterfeld <osterfeld@kde.org> 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 L...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ // TEST Foundation::Containers::DataStructures::DoublyLinkedList #include "Stroika/Foundation/StroikaPreComp.h" #include <iostream> #include <sstream> #include "Stroika/Foundation/Containers/Private/PatchingDataStructure...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved */ // TEST Foundation::Execution::Other #include "Stroika/Foundation/StroikaPreComp.h" #include "Stroika/Foundation/Common/Property.h" #include "Stroika/Foundation/DataExchange/ObjectVariantMapper.h" #include "Stroika/Founda...
<commit_before>/* * Copyright (C) 2008 by Singularity Institute for Artificial Intelligence * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation and including t...
<commit_before>#include <iostream> #include <stdio.h> #include <fstream> #include <vector> //#include <map> //#include <set> #include <unordered_set> //#include <unordered_map> #include <cmath> #include <algorithm> // #include <gnuplot-iostream.h> #include <assert.h> #include <boost/program_options.hpp> #include <boos...
<commit_before><commit_msg>Delete mqBI2qNewton.cc<commit_after><|endoftext|>
<commit_before>/* * Copyright (C) 2007, 2008, 2009, 2010 Apple 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: * 1. Redistributions of source code must retain the above copyright * ...
<commit_before>#include "ltl/detail/task_queue_impl.hpp" #include "ltlcontext/ltlcontext.hpp" #include "ltl/detail/task_context.hpp" #include "ltl/detail/current_task_context.hpp" #include "ltl/detail/log.hpp" #include <condition_variable> #include <thread> #include <mutex> #include <deque> #include <vector> #includ...
<commit_before>/* * Copyright (c) 2007-2009 Digital Bazaar, Inc. All rights reserved. */ #include "db/mail/SmtpClient.h" #include "db/net/InternetAddress.h" using namespace std; using namespace db::io; using namespace db::mail; using namespace db::net; using namespace db::rt; SmtpClient::SmtpClient() { mSslCon...
<commit_before>//======================================================================= // Copyright 2014-2015 David Simmons-Duffin. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //=============================================================...
<commit_before>#include <cassert> #include <yaml-cpp/yaml.h> int main() { YAML::Node node = YAML::Load("[1, 2, 3]"); assert(node.IsSequence()); std::cout << "Successful execution of application that links against yaml-cpp4rkt!" << std::endl; return 0; } <commit_msg>Add missing #include <iostream><co...
<commit_before>// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <unistd.h> #include <pwd.h> #include <sys/stat.h> #include "FileSystemRasp.hpp" #include "utils/Log.hpp" extern std::string DEVELOPER_NAME; extern std::string APPLICATION_NAME; static char TEMP_BUFFER[1024]; name...
<commit_before>#include "comm.hpp" #include <stdint.h> #include <unistd.h> #include <errno.h> #include <algorithm> #include <assert.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include "log.hpp" namespace fcwt { const char* const server_ipv4_addr = "192.168.0.1"; sock::sock(int fd) :...
<commit_before><commit_msg>[openmp] Workaround bug in old Android pthread_attr_setstacksize<commit_after><|endoftext|>
<commit_before><commit_msg>INTEGRATION: CWS impressfunctions (1.7.38); FILE MERGED 2005/10/28 10:57:35 cl 1.7.38.1: #125341# reworked FuPoor classes to use refcounting<commit_after><|endoftext|>
<commit_before>#pragma once #include <cmath> #include <iostream> const uint8_t POSIT_ROUND_DOWN = 0; const uint8_t POSIT_ROUND_TO_NEAREST = 1; /* class posit represents arbitrary configuration posits and their arithmetic */ template<size_t nbits> class quire : std::bitset<nbits> { public: quire<nbits>() {} quir...
<commit_before>#include <iostream> #include <ctime> #include "mad.h" int main(int argc, char** argv) { using namespace mad; { srand(time(NULL)); size_t max = rand() % 20 + 1; Var x0 = 1, x1 = 2, x2 = 3; std::vector<Var> x = { x0, x1, x2 }; Var y =...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission ...
<commit_before>#include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include "opencv2/imgcodecs.hpp" #include <opencv2/highgui.hpp> #include <opencv2/ml.hpp> #include <vector> #include <string> #include <iostream> #include <sstream> /********************************************************************************...
<commit_before>/// /// @file test.cpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primecount.hpp> #include <primesieve.hpp> #include <stdint.h> #include <iostream> #include <...
<commit_before>#include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include "opencv2/imgcodecs.hpp" #include <opencv2/highgui.hpp> #include <opencv2/ml.hpp> using namespace cv; using namespace cv::ml; Mat resizeImageTo1xN(const Mat image){ Size size(image.cols*image.rows,1); resize(image,image,size); return...
<commit_before> /* * client.cpp * * Handles the client env. * * Created by Ryan Faulkner on 2014-06-08 * Copyright (c) 2014. All rights reserved. */ #include <iostream> #include <string> #include <vector> #include <regex> #include <assert.h> #include "column_types.h" #include "redis.h" #include "md5.h" #in...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2016. // 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) //=================================...
<commit_before>/* * Copyright (c) 2019 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 <mpi.h> #include <stdio.h> #include <stdlib.h> #include <cassert> #include <cstring> #include <string> #include <sstream> #include "phIO.h" #include "phComm.h" #include "phio_base.h" #include "ph_mpi_help.h" #ifndef PHASTAIO_TIMERS_ON #define PHASTAIO_TIMERS_ON 0 #endif struct phastaio_stats { ...
<commit_before>/* Copyright (c) 2012, 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 <vector> #include <array> #include <map> #include <iostream> #include <iomanip> #include <fstream> #include <string> #include <tuple> #include <glm/glm.hpp> #include <SDL.h> #include "gl_core_3_3.h" #include "util.h" std::string util::readFile(const std::string &fName){ std::ifstream file(fNam...
<commit_before>#include <iostream> #include <ctime> #include <fstream> #include <Windows.h> #include "..\include\Game.h" #include "..\include\Common.h" #include "..\include\PlayerTypes\PlayerTypes.h" #include "..\include\EnemyTypes\EnemyTypes.h" using namespace std; using namespace Common; void Game::MainMenu(){...
<commit_before>#include <iostream> #include <ctime> #include <fstream> #include <Windows.h> #include <string> #include "..\include\Game.h" #include "..\include\Common.h" #include "..\include\PlayerTypes\PlayerTypes.h" #include "..\include\EnemyTypes\EnemyTypes.h" using namespace std; using namespace Common; // To ...
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff/ // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // // Contributors: Tobias Leibner #ifndef DUNE_STUFF_LA_CONTAINER_CONTAINER_INT...
<commit_before>/* This file is part of libkcal. Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either ...
<commit_before>#include "riptide_hardware/dvl_processor.h" int main(int argc, char **argv) { ros::init(argc, argv, "dvl_processor"); DVLProcessor dp; ros::spin(); } DVLProcessor::DVLProcessor() : nh("dvl_processor") { imu_state_sub = nh.subscribe<riptide_msgs::Imu>("/state/imu", 1, &DVLProcessor::ImuCB, this)...
<commit_before>#include "Threading.hpp" #include "ThreadData.hpp" #include "Config.hpp" #include PLATFORM_PATH(PlatformSpecific_Threading.inl) <commit_msg>-: Fix for commit 102<commit_after>#include "Threading.hpp" #include "ThreadData.hpp" #include <cassert> #include "Config.hpp" #include PLATFORM_PATH(Pla...
<commit_before>/* * Copyright 2014 Milian Wolff <mail@milianw.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later...
<commit_before><commit_msg>ULTRA RAINBOW SUPERSONIC THREEDEE (u aint never seen nuthin like dis<commit_after><|endoftext|>
<commit_before>#include "VersatileFile.h" VersatileFile::VersatileFile(const QString& file_name) : file_name_(file_name) { if (!isLocal()) { socket_ = new QSslSocket(); socket_->setSocketOption(QAbstractSocket::KeepAliveOption, 1); server_path_ = getServerPath(); host_name_ = getHostName(); server_port_ ...
<commit_before>/* Copyright (c) 2010, 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>/* Safety Framework for Component-based Robotics Created on: August 13, 2012 Copyright (C) 2012-2013 Min Yang Jung, Peter Kazanzides 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) */ #inc...
<commit_before>//------------------------------------------------------------------------ // // CASROS: Component-based Architecture for Safe Robotic Systems // // Copyright (C) 2012-2014 Min Yang Jung and Peter Kazanzides // //------------------------------------------------------------------------ // // Created on ...
<commit_before>#include <cmath> #include <iostream> #include <ale_interface.hpp> #include <glog/logging.h> #include <gflags/gflags.h> #include "prettyprint.hpp" #include "dqn.hpp" // DQN Parameters DEFINE_bool(gpu, true, "Use GPU to brew Caffe"); DEFINE_bool(gui, false, "Open a GUI window"); DEFINE_string(rom, "roms/p...
<commit_before>// // // Copyright (C) 2004 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004 Pingtel Corp. // Licensed to SIPfoundry under a Contributor Agreement. // // $$ ////////////////////////////////////////////////////////////////////////////// // SYSTEM INCLUDES //#incl...
<commit_before>#pragma once #include <glm/vec3.hpp> #include <memory> #include "../linking.hpp" class btCollisionShape; class PhysicsManager; namespace Physics { class Trigger; /// Represents a shape for physics objects and facilitates creation of /// underlying types. class Shape { friend c...
<commit_before>/** @file ConnectionSTREAMImages.cpp @author Lime Microsystems @brief Image updating and version checking */ #include "ConnectionSTREAM.h" #include "ErrorReporting.h" #include "SystemResources.h" #include "LMS64CProtocol.h" #include "LMSBoards.h" #include <iostream> #include <fstream> #inclu...
<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_SEQUENCES_FRONT_HPP #define BOOST_BRIGAND_SEQUENCES_FRONT_HPP #include <brigand/sequences/filled_list.hpp> #include <brigand/types/inte...
<commit_before> #include <mpi.h> #include "adios2.h" #include <cstdint> #include <iomanip> #include <iostream> #include <math.h> #include <memory> #include <stdexcept> #include <string> #include <vector> #include "PrintData.h" int main(int argc, char *argv[]) { MPI_Init(&argc, &argv); if (argc < 2) { ...
<commit_before>// Copyright (c) 2015 Andrew Sutton // All rights reserved #ifndef LINGO_LEXING_HPP #define LINGO_LEXING_HPP // The lexing module provides support for writing lexers // by providing a number of generic scanners for different // character sequences. // // These algorithms are based on a Lexer concept. E...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: myucp_resultset.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 13:32:08 $ * * The Contents of this file ar...
<commit_before>#include "nucleus/HighPerformanceTimer.h" #include "nucleus/Config.h" #include "nucleus/Logging.h" #if OS(WIN) #include "nucleus/Win/WindowsMixin.h" #elif OS(MACOSX) #include <mach/mach_time.h> #elif OS(POSIX) #include <time.h> #ifdef CLOCK_MONOTONIC #define CLOCKID CLOCK_MONOTONIC #else #define CLOCKI...
<commit_before>/* OpenSceneGraph example, osgtexture3D. * * 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, modi...
<commit_before><commit_msg>Alphabetized file format lists<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> using namespace pcl; int main (int argc, char** argv) { PointCloud<PointXYZ>::Ptr cloud (new PointCloud<PointXYZ>); if (io::loadPCDFile<PointXYZ> ("test_pcd.pcd", *cloud) == -1) //* load the file { PCL_ERROR ("Couldn...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
<commit_before> /* * Copyright (C) 2010, Victor Semionov * 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>#include <stdio.h> #include <string.h> #include <unistd.h> #include <mpi.h> #define MASTER 0 #define TAG 0 #define MAX 25 const long long MSGSIZE = 99999999; int main(int argc, char *argv[]) { int my_rank, source, num_nodes; char *message = new char[MSGSIZE]; MPI_Init(&argc, &argv); MPI_Comm_r...
<commit_before>#include <stdio.h> #include <string.h> #include <unistd.h> #include <mpi.h> #define MASTER 0 #define TAG 0 #define MAX 25 const long long MSGSIZE = 999999; int main(int argc, char *argv[]) { int my_rank, source, num_nodes; char message[MSGSIZE]; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_W...
<commit_before>// Copyright (2015) Gustav #include "finans/core/commandline.h" #include "gtest/gtest.h" #include "gmock/gmock.h" using namespace testing; struct CommandlineTest : public Test { std::ostringstream output; std::ostringstream error; }; #define GTEST(x) TEST_F(CommandlineTest, x) /* void main(int ...
<commit_before>/* Copyright (c) 2009-2010 Ilmar 'Ingaras' Kruis (seaeagle1@users.sourceforge.net) 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 r...
<commit_before>#include <nodelet/nodelet.h> #include <pluginlib/class_list_macros.h> #include "OpenniWrapperNode.h" #include "OpenniWrapperNodelet.h" void OpenniWrapperNodelet::onInit() { NODELET_DEBUG("Initializing nodelet"); inst_.reset(new OpenniWrapperNode(getNodeHandle(),getPrivateNodeHandle())); in...
<commit_before>#include "input/input_state.h" #include "input/keycodes.h" #include "ui/ui_screen.h" #include "ui/ui_context.h" #include "ui/screen.h" #include "i18n/i18n.h" #include "gfx_es2/draw_buffer.h" UIScreen::UIScreen() : Screen(), root_(0), recreateViews_(true), hatDown_(0) { } UIScreen::~UIScreen() { delet...
<commit_before>// Copyright (c) 2020 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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: propertysethelper.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 19:25:24 $ * * The Contents of this file ...
<commit_before>template <size_t maxSets> inline DescriptorSetPool<maxSets>::DescriptorSetPool(Renderer& renderer) : _renderer(renderer) {} template <size_t maxSets> inline DescriptorSetPool<maxSets>::~DescriptorSetPool() { descriptorPool.destroy(); } template <size_t maxSets> inline bool DescriptorSetPool<maxSets...
<commit_before>#include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/csma-module.h" #include "ns3/internet-module.h" #include "ns3/applications-module.h" #include "ns3/ipv4-global-routing-helper.h" using namespace ns3; /* Example Topology: 2 levels, each node connected to 2 leaves per level. ...
<commit_before>// Copyright 2020 The Authors. // // 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 ...
<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 "base/command_line.h" #include "base/files/file_path.h" #include "base/path_service.h" #include "base/process/launch.h" #include "...
<commit_before>/****************************************************************************** * * Module : HaskinoRuntimeScheduler * Copyright : (c) University of Kansas * License : BSD3 * Stability : experimental * * Haskino Runtime Scheduler module *******************************************...
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute ...
<commit_before> #pragma once #include <gloperate/base/make_unique.hpp> #include <gloperate/pipeline/AbstractPipeline.h> #include "DummyStage.hpp" using namespace gloperate; class TestPipeline : public AbstractPipeline { public: TestPipeline() { auto stage0 = make_unique<DummyStage>("", std::vector<...
<commit_before>//============================================================================ // Name : CubemapRenderer.h // Author : Duarte Peixinho // Version : // Copyright : ;) // Description : Dynamic Cube Map aka Environment Map //=================================================================...
<commit_before>#include "stan/math/functions/binomial_coefficient_log.hpp" #include <gtest/gtest.h> TEST(MathFunctions, binomial_coefficient_log) { using stan::math::binomial_coefficient_log; EXPECT_FLOAT_EQ(1.0, exp(binomial_coefficient_log(2.0,2.0))); EXPECT_FLOAT_EQ(2.0, exp(binomial_coefficient_log(2.0...