text
stringlengths
54
60.6k
<commit_before>/* Copyright 2011 StormMQ Limited 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> #include <climits> #include <string> #include <vector> #include <set> #include <ostream> #include <sstream> #include "Poco/Util/ServerApplication.h" #include "Poco/File.h" #include "Poco/DirectoryIterator.h" #include "IndigoRequestHandler.h" #include "IndigoConfiguration.h" using nam...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2014 Paul Asmuth, Google Inc. * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public Licen...
<commit_before>/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed as defined on the LICENSE file found in the * root directory of this source tree. */ #include <algorithm> #include <ctime> #include <boost/format.hpp> #include <boost/io/detail/quoted_mani...
<commit_before>#include "mount.hpp" #include <server/path.hpp> #include <silicium/connecting_observable.hpp> #include <silicium/total_consumer.hpp> #include <silicium/http/http.hpp> #include <silicium/coroutine.hpp> #include <silicium/sending_observable.hpp> #include <silicium/socket_observable.hpp> #include <silicium/...
<commit_before>// Tuple unpacking using a tuple indexer // // Adapted from: http://loungecpp.wikidot.com/tips-and-tricks%3aindices // // tuple<A,B,C> result = // tuple<A,B,C>(f(get<0>(x), f(get<1>(x), f(get<2>(x)); // // Is replaced with // // tuple<Args...> result = tuple<Args...>(f(get<Indices>(x))...); // #include...
<commit_before>/* This software is released under the BSD License. | | Copyright (c) 2011, Kevin P. Barry [the resourcerver project] | All rights reserved. | | Redistribution and use in source and binary forms, with or without | modification, are permitted provided that the following conditions are met...
<commit_before>#include <algorithm> #include <fcntl.h> #include <linux/fs.h> #include <stdio.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/stat.h> #include "linux_io_calls_no_eventfd.hpp" #include "arch/linux/arch.hpp" #include "config/args.hpp" #include "utils2.hpp" #include "logg...
<commit_before> /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * *...
<commit_before>/* $Id$ */ /* * Copyright (c) 2010 .SE (The Internet Infrastructure 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. Redistributions of source code must r...
<commit_before>#include "renderer/opengl/OpenGLTexture.h" namespace lime { static int *sAlpha16Table = 0; bool gFullNPO2Support = false; bool gPartialNPO2Support = false; bool NonPO2Supported (bool inNotRepeating) { static bool tried = false; //OpenGL 2.0 introduced non PO2 as standard, in 200...
<commit_before>//============================================================================= // SuperCPPCString.cpp // // v1.1.2 - 2016.02.17 by Abe Pralle // // See README.md for instructions. //============================================================================= #include "SuperCPPCString.h" #include <c...
<commit_before>// This code is based on Sabberstone project. // Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva // RosettaStone is hearthstone simulator using C++ with reinforcement learning. // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon #include <Rosetta/Enchants/Effect.hpp> #include...
<commit_before>#include <type_traits> #include <algorithm> #include <sstream> #include <mipp.h> #include "Tools/Exception/exception.hpp" #include "Tools/general_utils.h" #include "Modem_optical.hpp" using namespace aff3ct; using namespace aff3ct::module; // //std::vector<std::vector<float>> llrs; //size_t llr_idx; ...
<commit_before>#include <iostream> #include <string> #include <boost/program_options.hpp> #include <vector> #include <fstream> #include "ioHandler.h" #include <map> #include <unordered_map> #include <boost/dynamic_bitset.hpp> #include <boost/iostreams/filter/gzip.hpp> #include <boost/iostreams/filtering_stream.hpp> #in...
<commit_before>/** * This file is part of TelepathyQt4 * * @copyright Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/> * @copyright Copyright (C) 2011 Nokia Corporation * @license LGPL 2.1 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Les...
<commit_before>// // ImportOSM.cpp: The main Builder class of the VTBuilder // // Copyright (c) 2006-2012 Virtual Terrain Project // Free for all uses, see license.txt for details. // // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx...
<commit_before>// // Content3d.cpp // // 3D Content Management class. // // Copyright (c) 2003-2004 Virtual Terrain Project. // Free for all uses, see license.txt for details. // #include "vtlib/vtlib.h" #include "vtdata/FilePath.h" #include "vtdata/vtLog.h" #include "Content3d.h" #include "TerrainScene.h" vtItem3d::...
<commit_before>#include <handy/handy.h> #include <sys/wait.h> using namespace std; using namespace handy; struct Report { long connected; long retry; long sended; long recved; Report() { memset(this, 0, sizeof(*this)); } }; int main(int argc, const char* argv[]) { if (argc < 9) { prin...
<commit_before>/************************************************************************* * * $RCSfile: MDriver.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: vg $ $Date: 2005-02-24 14:39:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before><commit_msg>connectivity: fix the mozab build<commit_after><|endoftext|>
<commit_before>#ifndef MIMOSA_REF_COUNTABLE_HH # define MIMOSA_REF_COUNTABLE_HH # include <cassert> # include "ref-counted-ptr.hh" namespace mimosa { class RefCountableBase { public: inline RefCountableBase() : ref_count_(0) { } inline RefCountableBase(const RefCountableBase & /*other*/)...
<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...
<commit_before>/// /// @file SieveOfEratosthenes.cpp /// @brief Implementation of the segmented sieve of Eratosthenes. /// /// Copyright (C) 2013 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the New BSD License. See the /// LICENSE file in the top level directory. /// #include "config...
<commit_before>// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include "RenderTargetOGL.h" #include "TextureOGL.h" #include "Engine.h" #include "RendererOGL.h" namespace ouzel { namespace graphics { RenderTargetOGL::RenderTargetOGL() { } Rend...
<commit_before>/** * This software is released under the terms of the MIT License * * 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...
<commit_before>#include <iostream> #include "menuinterface.h" #ifdef _WIN32 #include <windows.h> #endif using namespace std; /* bool systemCheck { #ifdef _APPLE_ return 0; #elif _WIN32 return 1; #else return 2; #endif } */ MenuInterface::MenuInterface() { _firstTimeBo...
<commit_before>// Copyright (c) 2013 augmented-go team // See the file LICENSE for full license and copying terms. #pragma once #include <QMainWindow> #include <QFileDialog> #include <QDebug> #include <QTimer> #include "Game.hpp" #include "ui_GUI.h" #include "ui_NewGameDialog.h" #include "AugmentedView.hpp" #include...
<commit_before>#include <numeric> #include "glm/gtc/matrix_transform.hpp" #include "glm/gtx/compatibility.hpp" #include "glm/gtx/epsilon.hpp" #include "glm/gtx/quaternion.hpp" #include "wx/dir.h" #include "MainFrame.hpp" void MainFrame::OnUpdateUI(wxUpdateUIEvent& event) { switch(event.GetId()) { case I...
<commit_before>#include <StdAfx.h> #include <Interpret/SmartView/AdditionalRenEntryIDs.h> #include <Interpret/InterpretProp.h> #include <Interpret/ExtraPropTags.h> namespace smartview { #define PERISIST_SENTINEL 0 #define ELEMENT_SENTINEL 0 void AdditionalRenEntryIDs::Parse() { WORD wPersistDataCount = 0; // Ru...
<commit_before>/* * libjingle * Copyright 2013 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: * * 1. Redistributions of source code must retain the above copyright notice, * ...
<commit_before> // StackTrace.cpp // Implements the functions to print current stack traces #include "Globals.h" #include "StackTrace.h" #ifdef _WIN32 #include "../StackWalker.h" #else #include <execinfo.h> #endif void PrintStackTrace(void) { #ifdef _WIN32 // Reuse the StackWalker from the LeakFinder projec...
<commit_before>/* Twofold-Qt * (C) Copyright 2014 HicknHack Software GmbH * * The original code can be found at: * https://github.com/hicknhack-software/Twofold-Qt * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
<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>// // Copyright "Renga Software" LLC, 2016. All rights reserved. // // "Renga Software" LLC PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // "Renga Software" LLC DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // #include "stdafx.h" #include "RengaProper...
<commit_before>/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009 - 2014 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribute it...
<commit_before>#include "module_pressuresensor.h" #include "pressure_form.h" #include "module_uid.h" #define REGISTER_CALIB 00 // 8 bytes #define REGISTER_PRESSURE_RAW 8 #define REGISTER_TEMP_RAW 10 #define REGISTER_PRESSURE 12 #define REGISTER_TEMP 14 #define REGISTER_STATUS 17 // indicates problem between i2c-spi b...
<commit_before>// Copyright (C) 2014 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Core/Win32/HardwareInfoImpl.hpp> #include <Nazara/Core/Error.hpp> #include <windows.h> #ifdef NAZARA_COMPILER_MS...
<commit_before>//! \file ToJsonWriter.cpp #include "ToJsonWriter.h" #include <json/json.h> #include "Article.h" /*! Get article links in an array. * Basically undoing the Wikipedia to article conversion... * \param article pointer to article which links should be extracted * \return Json::Value array with titles...
<commit_before>#ifndef MJOLNIR_CORE_SYSTEM_HPP #define MJOLNIR_CORE_SYSTEM_HPP #include <mjolnir/core/Unit.hpp> #include <mjolnir/core/Particle.hpp> #include <mjolnir/core/Topology.hpp> #include <mjolnir/core/SimulatorTraits.hpp> #include <mjolnir/core/BoundaryCondition.hpp> #include <mjolnir/core/RandomNumberGenerator...
<commit_before>/* Fernando Jorge Mota (13200641) e Caique Rodrigues Marques (13204303) * Task.cc * * Created on: Feb 27, 2014 */ #include "Task.h" #include <stdlib.h> #include <ucontext.h> #include <stdio.h> namespace BOOOS { volatile Task * Task::__running; Task* Task::__main; int Task::STACK_SIZE = 32768; int ...
<commit_before>/** * \file dcs/testbed/system_identification.hpp * * \brief Performs system identification experiments. * * \author Marco Guazzone (marco.guazzone@gmail.com) * * <hr/> * * Copyright (C) 2012 Marco Guazzone * [Distributed Computing System (DCS) Group, * ...
<commit_before>#include <gtest/gtest.h> #include <map> #include <sstream> #include <string> #include <boost/filesystem.hpp> #include <sqlite3.h> #include "prioritydb.h" #define DEFAULT_MAX_SIZE 100000000LL namespace fs = boost::filesystem; class DBFixture : public ::testing::Test { protected: typedef std::...
<commit_before>#ifndef __STAN__IO__STAN_CSV_READER_HPP__ #define __STAN__IO__STAN_CSV_READER_HPP__ #include <istream> #include <iostream> #include <sstream> #include <string> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include <stan/math/matrix.hpp> namespace stan { namespace io { ...
<commit_before>#include "VirtualMachine.h" VirtualMachine::VirtualMachine() { //ctor stackSize = 0; } VirtualMachine::~VirtualMachine() { //dtor } void VirtualMachine::interpret(unsigned char bytecode[], int byteSize) { for(int a = 0; a < byteSize; a++) { int currentInstruction = bytecode...
<commit_before>#include <iostream> using namespace std; class Rectangle { int width, height; public : void set_values (int, int); int area() { return width*height; } }; void Rectangle::set_values (int x, int y) { width = x; height = y; } int main() { Rectangle rect, rectb; rect.set_values(3,4); rectb.set_...
<commit_before>/** * \file SphericalEngine.hpp * \brief Header for GeographicLib::SphericalEngine class * * Copyright (c) Charles Karney (2011, 2012) <charles@karney.com> and licensed * under the MIT/X11 License. For more information, see * http://geographiclib.sourceforge.net/ *********************************...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this f...
<commit_before>#define SOL_CHECK_ARGUMENTS #include <sol.hpp> #include <vector> #include <iostream> int main(int, char**) { std::cout << "=== containers example ===" << std::endl; sol::state lua; lua.open_libraries(); lua.script(R"( function f (x) print('--- Calling f ---') for k, v in pairs(x) do p...
<commit_before>// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Engine - Network module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Network/RUdpConnection.hpp> #include <utility> #include <Nazara/Network/Debug.hpp> namespace Nz { /*! * \br...
<commit_before>#include "HeatMapVisualization.h" HeatMapVisualization::HeatMapVisualization(QSize resolution) : QWidget() { mainLayout = new QVBoxLayout(); lastEvents = NULL; height = resolution.height(); width = resolution.width(); heatMap = new int*[height]; for (int i = 0; i < ...
<commit_before>/* Copyright 2016 Kristofer Björnson * * 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>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>#include "Players/UCI_Mediator.h" #include <string> #include <future> #include <numeric> #include <algorithm> #include "Players/Player.h" #include "Game/Board.h" #include "Game/Clock.h" #include "Game/Game_Result.h" #include "Moves/Move.h" #include "Utility/String.h" UCI_Mediator::UCI_Mediator(const ...
<commit_before>/* Advent of Code 2016 Day 4: Squares With Three Sides */ #include <string> #include <iostream> #include <fstream> #include <vector> #include <map> #include <algorithm> //#define DEBUG /******************************************************* ** Room object ***************...
<commit_before>#ifndef _FM_INDEX_FM_INDEX_HPP #define _FM_INDEX_FM_INDEX_HPP #include "wavelet_tree_huffman.hpp" #include "wavelet_tree_binary.hpp" #include "wavelet_matrix.hpp" #include <am/succinct/rsdic/RSDic.hpp> #include <am/succinct/sdarray/SDArray.hpp> #include <am/succinct/sais/sais.hxx> #include <algorithm> ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #ifdef ENABLE_QUICKSTART_APPLET #include <unotools/moduleoptions.hxx> #include <unotools/dynamicmenuoptions.hxx> #include <gtk/gtk.h> #include <glib.h> #include <osl/mutex.hxx> #include <vcl/bitmapex.hxx> #include <vcl/bm...
<commit_before>#include <Rcpp.h> #include "XlsWorkBook.h" #include "XlsWorkSheet.h" #include <libxls/xls.h> using namespace Rcpp; // [[Rcpp::export]] CharacterVector xls_col_types(std::string path, std::string na, int i = 0, int nskip = 0, int n = 100) { std::vector<CellType> types = ...
<commit_before>// // RowVectorBlock.hpp // ~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2014 Rick Yang (rick68 at gmail dot com) // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL...
<commit_before>/* * #%L * %% * Copyright (C) 2011 - 2016 BMW Car IT GmbH * %% * 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>/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: include/eos/core/image/opencv_interop.hpp * * Copyright 2017 Patrik Huber * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
<commit_before>#pragma once #include <cstddef> #include <cstdint> #include <array> #include <atomic> #include <limits> #include <utility> #include <vector> #include <insertionfinder/algorithm.hpp> #include <insertionfinder/case.hpp> #include <insertionfinder/cube.hpp> #include <insertionfinder/twist.hpp> #include <inse...
<commit_before> #include <iostream> //GlEW, before GLFW #define GLEW_STATIC #include <GL/glew.h> // GLFW #include <GLFW/glfw3.h> // Should make it cross platform // glm #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> // SOIL #include <soil/SOIL.h> #include "Shader.h"...
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include "MemoryStream.h" #include <algorithm> using namespace leap; MemoryStream::MemoryStream(void) {} bool MemoryStream::Write(const void* pBuf, std::streamsize ncb) { if (buffer.size() - m_writeOffset < ncb) ...
<commit_before>#ifndef OPENGM_LEARNING_WEIGHTS #define OPENGM_LEARNING_WEIGHTS namespace opengm{ namespace learning{ template<class T> class Weights{ public: typedef T ValueType; Weights(const size_t numberOfParameters=0) : weights_(numberOfParameters){ } ValueType getWeight...
<commit_before>/** * @file streamingaudio_fmodex.cpp * @brief LLStreamingAudio_FMODEX implementation * * $LicenseInfo:firstyear=2002&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it u...
<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 2008 Henry de Valence <hdevalence@gmail.com> // Copyright 2010 Dennis Nie...
<commit_before>// MFEM Example 1 - Parallel Version // // Compile with: make ex1p // // Sample runs: mpirun -np 4 ex1p -m ../data/square-disc.mesh // #include "mfem.hpp" #include <fstream> #include <iostream> #include "mpi.h" #include "dmumps_c.h" // #define JOB_INIT -1 // #define JOB_END -2 #de...
<commit_before>// $Id: elem_refinement.C,v 1.14 2005-05-03 23:22:24 roystgnr Exp $ // The libMesh Finite Element Library. // Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // L...
<commit_before>/* * This file is part of meego-im-framework * * * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * Contact: Nokia Corporation (directui@nokia.com) * * If you have questions regarding the use of this file, please contact * Nokia at directui@nokia.com. * ...
<commit_before>/* * 1671. Anansi's Cobweb * Time limit: 1.0 second * Memory limit: 64 MB * * [Description] * Usatiy-Polosatiy XIII decided to destroy Anansi's home — his cobweb. The * cobweb consists of N nodes, some of which are connected by threads. Let * us say that two nodes belong to the same piece if it ...
<commit_before>/** * Appcelerator Kroll - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved. */ #include "php_module.h" namespace kroll { PHPEvaluator::PHPEvaluator() : StaticBoundObject("PHPEval...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2011, Willow Garage, 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...
<commit_before>/* SPI.cpp - SPI library for esp8266 Copyright (c) 2015 Hristo Gochkov. All rights reserved. This file is part of the esp8266 core for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publish...
<commit_before>#include <cmd_quest_pass_handler.h> #include <runtasks.h> #include <log.h> #include <QJsonArray> #include <QCryptographicHash> CmdQuestPassHandler::CmdQuestPassHandler(){ m_vInputs.push_back(CmdInputDef("questid").integer_().required().description("Quest ID")); m_vInputs.push_back(CmdInputDef("ans...
<commit_before>#include <Halide.h> #include <stdio.h> #ifdef _WIN32 extern "C" bool QueryPerformanceCounter(uint64_t *); extern "C" bool QueryPerformanceFrequency(uint64_t *); double currentTime() { uint64_t t, freq; QueryPerformanceCounter(&t); QueryPerformanceFrequency(&freq); return (t * 1000.0) / f...
<commit_before>// @(#)root/base:$Name: $:$Id: TViewer3DPad.cxx,v 1.4 2005/03/11 17:22:21 brun Exp $ // Author: Richard Maunder 10/3/2005 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>// $Id$ AliEmcalPicoTrackMaker* AddTaskEmcalPicoTrackMaker( const char *name = "PicoTracks", const char *inname = "tracks", const char *runperiod = "", Bool_t includeNoITS = kTRUE, AliESDtrackCuts *cuts = 0 ) { // Get the pointer to the existing analysis manager vi...
<commit_before>/*************************************************** This is a library for the Adafruit TTL JPEG Camera (VC0706 chipset) Pick one up today in the adafruit shop! ------> http://www.adafruit.com/products/397 These displays use Serial to communicate, 2 pins are required to interface Adafruit i...
<commit_before> // // Calculate flow in the forward and central regions using the Q cumulants method. // // Inputs: // - AliAODEvent // // Outputs: // - AnalysisResults.root or forward_flow.root // #include <iostream> #include <TROOT.h> #include <TSystem.h> #include <TList.h> #include <THn.h> #include "AliAnalysisMa...
<commit_before><commit_msg>unused include vector<commit_after><|endoftext|>
<commit_before>#include <iostream> #include "NexusPublisher.h" /** * Create an object responsible for the main business logic of the software. It * manages reading data from the NeXus file and publishing it to the data * stream. * * @param publisher - the publisher which provides methods to publish the data * t...
<commit_before>#include "gtest/gtest.h" #include <rapidcheck/gtest.h> #include <algorithm> #include <climits> #include <numeric> #include <tuple> #include <vector> #include SPECIFIC_HEADER // Running tests TEST(TEST_NAME, InputItSelf) { auto expected = std::make_tuple(-2, 1, 1); auto&& out = sum3({{ 1, -2, 1 }}...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkTkAppInit.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Th...
<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) 2011 Heiko Strathmann * Copyrig...
<commit_before>#include "MainLogic.h" #include "MotorDriver.h" #include "DualEncoderDriver.h" #include "FrontLiftedDetection.h" #include "ProximitySensors.h" #include <cmath> #define STANDARD_SPEED 170 #define SPEED_CHANGE_STEP 1 #define DISTANCE_BETWEEN_MOTORS 85.00 #define HALF_DISTANCE_...
<commit_before>#include "MergeSort.h" #include <cstring> #include <vector> void Merge(int *s, int start, int mid, int last) { std::vector<int> t(last - start + 2); int i, j, k; for (i = start, j = mid + 1, k = start; i <= mid && j <= last; k++) { if (s[i] <= s[j]) { t[k] = s[i]; i++; } else...
<commit_before>#include "model.h" #include "recognition.h" #include <memory> #include <algorithm> #include <vector> using std::min; using std::max; using std::make_shared; using std::dynamic_pointer_cast; int FIGURE_SELECT_GAP = -1; int CLOSED_FIGURE_GAP = -1; const int TRACK_FIT_GAP = 10; const int DELETION_MOVE_MIN...
<commit_before>/// \file AddTaskEmcalJetCDF.C /// \brief Adds a AliAnalysisTaskEmcalJetCDF analysis task and coresponding containers /// /// Analysis of leading jets distribution of pt and multiplicity, R distribution /// N80 and Pt80 and Toward, Transverse, Away UE histos /// /// \author Adrian SEVCENCO <Adrian.Sevcen...
<commit_before>/* * niinudge.cpp * * Copyright (c) 2014 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include <iostream> #include <...
<commit_before>// // ControlPrinter.cpp // Tonic // // Created by Morgan Packard on 4/28/13. // #include "ControlPrinter.h" namespace Tonic { namespace Tonic_{ ControlPrinter_::ControlPrinter_() :message("%f\n"), hasPrinted(false){ } void ControlPrinter_::setMessage(string messageArg){ mes...
<commit_before>#include <list> #include <iostream> #include <string> #include <regex> #include <cstdlib> #include <cstdio> #include <cstring> #include <cerrno> #include <sys/stat.h> #include "log.h" #include "crawler.h" #include "strexception.h" #include "tld.h" // thanks [http://myregexp.com/examples.html] std::re...
<commit_before><commit_msg>The initial value for PRODUCT should obviously be one, not zero<commit_after><|endoftext|>
<commit_before>/* * Contact groups model * This file is based on TelepathyQt4Yell Models * * Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright (C) 2011 Martin Klapetek <martin dot klapetek at gmail dot com> * * This library is free software; you can redistribute it and/or * modify it u...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "OgreMaterialResource.h" #include "OgreRenderingModule.h" #include <Ogre.h> namespace OgreRenderer { OgreMaterialResource::OgreMaterialResource(const std::string& id) : ...
<commit_before>#include "ToolBase.h" #include "TSVFileStream.h" #include "Helper.h" #include "BasicStatistics.h" #include <QFileInfo> #include <QBitArray> class ConcreteTool : public ToolBase { Q_OBJECT public: ConcreteTool(int& argc, char *argv[]) : ToolBase(argc, argv) { ops << ">" << ">=" << "=" << "<=" <...
<commit_before>#include "VirtualMachine.h" VirtualMachine::VirtualMachine() { //ctor stackSize = 0; } VirtualMachine::~VirtualMachine() { //dtor } void VirtualMachine::interpret(unsigned char bytecode[], int byteSize) { for(int a = 0; a < byteSize; a++) { int currentInstruction = bytecode...
<commit_before>/* --------------------------------------------------------------------- * Numenta Platform for Intelligent Computing (NuPIC) * Copyright (C) 2013, Numenta, Inc. Unless you have an agreement * with Numenta, Inc., for a separate license for this software code, the * following terms and conditions app...
<commit_before>#include <stdafx.h> #include "CDrawableBuilder.h" void CDrawableBuilder::CDrawableRedable(CDrawableStruct* self) { self->color = RGB(255, 0, 0); } void CDrawableBuilder::CDrawableDealloc(CDrawableStruct* self) { Py_TYPE(self)->tp_free((PyObject*)self); } int CDrawableBuilder::CDrawableInit(CDrawabl...
<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) 2000-2009 Torus Knot Software Ltd Permission is hereby granted, free of charge,...