text
stringlengths
54
60.6k
<commit_before>// // Matirx.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/2.0/. // #ifnd...
<commit_before>// [[Rcpp::depends(BH)]] #include "Random.h" #include <boost/random/mersenne_twister.hpp> #include <boost/random/uniform_01.hpp> #include <boost/random/uniform_real_distribution.hpp> #include <boost/random/normal_distribution.hpp> #include <boost/random/poisson_distribution.hpp> #include <boost/random/...
<commit_before>#include <SDL.h> #include <iostream> #include "SnakeEngine.h" #include <vector> const int SCREEN_WIDTH = 1920; const int SCREEN_HEIGHT = 1200; //const int SCREEN_WIDTH = 1366; //const int SCREEN_HEIGHT = 768; const int SNAKE_GRID_WIDTH = BOARD_WIDTH; const int SNAKE_GRID_HEIGHT = BOARD_HEIGHT; const ...
<commit_before>// Vaca - Visual Application Components Abstraction // Copyright (c) 2005-2009 David Capello // 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 o...
<commit_before>/************************************************************************* * * $RCSfile: StorageNativeOutputStream.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: vg $ $Date: 2005-03-23 09:41:52 $ * * The Contents of this file are made available subject to the terms of * either of th...
<commit_before>/* * Copyright (c) 2008-2009 * * School of Computing, University of Utah, * Salt Lake City, UT 84112, USA * * and the Gauss Group * http://www.cs.utah.edu/formal_verification * * See LICENSE for licensing information */ /* * ISP: MPI Dynamic Verification Tool * * File: ...
<commit_before>#include "UnrealCVPrivate.h" #include "ViewMode.h" #include "BufferVisualizationData.h" /** FViewMode is a helper class to tweak render options. Important options are Tonemapper EyeAdaptation TemporalAA MotionBlur Lighting Bloom ColorGrading GammaCorrection DepthOfField LensFlare Vignette */ ...
<commit_before>//======================================================================= // Copyright (c) 2015-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>/* * Adplug - Replayer for many OPL2/OPL3 audio file formats. * Copyright (C) 1999 - 2002 Simon Peter <[email protected]>, et al. * * 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 ...
<commit_before>#include "GurobiSolver.h" #include <Eigen/Core> #include "gurobi_c++.h" #include "Optimization.h" #include "drake/common/drake_assert.h" namespace drake { namespace solvers { bool GurobiSolver::available() const { return true; } // TODO(naveenoid): This is currently largely copy-pasta from the depre...
<commit_before>// Copyright (c) 2012 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 "xwalk/application/browser/application_protocols.h" #include <algorithm> #include <string> #include <vector> #include "base/...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>#pragma once /** @file @brief format string Copyright (C) 2011 Cybozu Labs, Inc., all rights reserved. */ #include <string> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <cybozu/exception.hpp> namespace cybozu { std::string format(const char *format, ...) { #ifdef _MSC_VER va...
<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>#ifndef HELLOBYEPROTO_HPP #define HELLOBYEPROTO_HPP #include "stateMachine.hpp" template <class Identifier, class Packet> class HelloByeServerHello { using SM = StateMachine<Identifier, Packet>; private: int clientCookie; int serverCookie; public: HelloByeServerHello(); __attribute__((always_in...
<commit_before>/* * Copyright (C) 2009-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 ke...
<commit_before>#pragma once #ifndef SCOPEEXIT_HPP # define SCOPEEXIT_HPP #include <utility> /* This counts the number of args */ #define NARGS_SEQ(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, N, ...) N #define NARGS(...) NARGS_SEQ(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) /* This will let macros expand before concatin...
<commit_before>#ifndef TOKEN_I_HH #define TOKEN_I_HH #ifndef TOKEN_HH #error "Please include via parent file" #endif #include <utility> #include "decl.hh" #include "util.hh" // Type mapping template<Token::Type t, typename T> T to_type() = delete; template<> std::string to_type<Token::Type::identifier>() = delete; ...
<commit_before>/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2014 Filipe Coelho <[email protected]> * * 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 notice appear ...
<commit_before>/* * Filter.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_FILTER_HH #define _LOG4CPP_FILTER_HH #include "log4cpp/Log...
<commit_before>/* nobleNote, a note taking application * Copyright (C) 2012 Christian Metscher <[email protected]>, Fabian Deuchler <[email protected]> * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
<commit_before>// Copyright (c) 2014 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 "base58.h" #include "hash.h" #include "uint256.h" #include <assert.h> #include <stdint.h> #include <strin...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 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>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <[email protected]> // // 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 c...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 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>#pragma once #ifndef SIPL_MATRIX_MATRIX_H #define SIPL_MATRIX_MATRIX_H #include "matrix/MatrixBase.hpp" #include "matrix/Vector.hpp" #include "matrix/Wrappers.hpp" #include <cmath> #include <iostream> namespace sipl { // Need to use 'this' pointer below because templated base class members are // not...
<commit_before>// Copyright 2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <unordered_set> #include "elang/optimizer/validator.h" #include "base/logging.h" #include "base/numerics/safe_conversions.h" #include "...
<commit_before>#include <babylon/engines/extensions/multi_render_extension.h> #include <babylon/core/logging.h> #include <babylon/engines/thin_engine.h> #include <babylon/materials/textures/imulti_render_target_options.h> #include <babylon/materials/textures/internal_texture.h> #include <babylon/maths/isize.h> namesp...
<commit_before>/* This file is part of libDAI - http://www.libdai.org/ * * Copyright (c) 2006-2011, The libDAI 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 <dai/dai_config.h> #ifdef DAI_WITH_BP #include <iostr...
<commit_before>// This file is part of UDPipe <http://github.com/ufal/udpipe/>. // // Copyright 2016 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. ...
<commit_before>#ifndef VSMC_RNG_SEED_HPP #define VSMC_RNG_SEED_HPP #include <vsmc/rng/common.hpp> #include <ctime> #include <cstdlib> namespace vsmc { namespace rng { class Seed { public : typedef unsigned long result_type; static Seed &create () { static Seed seed; return seed; ...
<commit_before>#include "binlog.h" #include "util/log.h" #include "util/strings.h" #include <map> /* Binlog */ Binlog::Binlog(uint64_t seq, char cmd, char type, const leveldb::Slice &key){ buf.append((char *)(&seq), sizeof(uint64_t)); buf.push_back(cmd); buf.push_back(type); buf.append(key.data(), key.size()); } ...
<commit_before><commit_msg>Unit test for UNO field item implementation.<commit_after><|endoftext|>
<commit_before>/** * @file * * @brief Write key sets using yaml-cpp * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include "write.hpp" #include "yaml.h" #include <kdbease.h> #include <kdblogger.h> #include <kdbplugin.h> #include <fstream> using namespace std; using namespace kdb...
<commit_before>// Copyright 2012-2013 Samplecount S.L. // // 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>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 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. Redistr...
<commit_before>#include <iostream> /* allows to perform standard input and output operations */ #include <fstream> #include <stdio.h> /* Standard input/output definitions */ #include <stdint.h> /* St...
<commit_before>#include "brandes.h" #include <queue> #include <stack> #include <algorithm> #include <thread> template<typename T> void Brandes<T>::process(T vertex_id, std::unordered_map<T, fType> *BC_local) { std::stack<T> S; std::unordered_map<T, std::vector<T> > P; std::unordered_map<T, int> sigma; ...
<commit_before>/* * main.cpp -- This file is part of primesieve * * Copyright (C) 2011 Kim Walisch, <[email protected]> * * 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 versio...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXQt - a lightweight, Qt based, desktop toolset * https://lxqt.org * * Copyright: 2010-2011 Razor team * Authors: * Alexander Sokoloff <[email protected]> * * This program or library is free software; you can redistribute it * and/or modify...
<commit_before>/**************************************************************************** This file is part of the GLC-lib library. Copyright (C) 2005-2006 Laurent Ribon ([email protected]) Version 0.9.6, packaged on June, 2006. http://glc-lib.sourceforge.net GLC-lib is free software; you can red...
<commit_before>#include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <exception> #include <sys/time.h> #include "modules/htmTree.h" #include "modules/kdTree.h" #include "misc.h" #include ...
<commit_before>/* * Open Source Movement Analysis Library * Copyright (C) 2016, Moveck Solution 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...
<commit_before>#include <clpeak.h> #define MSTRINGIFY(...) #__VA_ARGS__ static const char *stringifiedKernels = #include "global_bandwidth_kernels.cl" #include "compute_sp_kernels.cl" #include "compute_hp_kernels.cl" #include "compute_dp_kernels.cl" #include "compute_integer_kernels.cl" ; sta...
<commit_before>// Copyright 2012 the V8 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. #include "src/v8.h" #include "src/bootstrapper.h" #include "src/codegen.h" #include "src/compiler.h" #include "src/cpu-profiler.h" #incl...
<commit_before>/* * Copyright (c) 2018, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
<commit_before>#include "common.h" #include "Ruby.h" #include "RubyObject.h" #include "RubyModule.h" #include <node.h> #include <limits> #include <iostream> using namespace v8; const int32_t MIN_INT32 = std::numeric_limits<int32_t>::min(); const int32_t MAX_INT32 = std::numeric_limits<int32_t>::max(); Handle<Value> ...
<commit_before>/*- * Copyright (C) 2008-2009 by Maxim Ignatenko * [email protected] * * All rights reserved. * * * * Redistribution and use in source and binary forms, with or withou...
<commit_before>#ifndef AX_INPUT_OUTPUT_H #define AX_INPUT_OUTPUT_H #include <iostream> #include "Expression.hpp" namespace ax { template<class V, typename std::enable_if< is_VectorExpression<typename V::value_trait>::value >::type*& = enabler> std::ostream& operator<<(std::ostre...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: olestorage.cxx,v $ * $Revision: ...
<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>//============================================================================================================= /** * @file annotationview.cpp * @author Lorenz Esch <[email protected]>; * Gabriel Motta <[email protected]> * @since 0.1.0 * @date March, 2020 * * @sec...
<commit_before>/* * Copyright (c) 2012-2016 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ #include "device.h" #include "array.h" #include "config.h" #include "input_manager.h" #include "log.h" #include "lua_environment.h" #include "material_manag...
<commit_before>#include <iostream> #include <stdio.h> #include <dirent.h> #include <vector> #include <sys/stat.h> #include <iomanip> using namespace std; void printPermissions(int protec) { if (S_ISDIR(protec) != 0) cout << "d"; else cout << "-"; cout << ((protec & S_IRUSR)?"r":"-"); cout << ((protec ...
<commit_before>#include "device.h" #include "sysex/commands.h" #include "sysex/deviceinfo.h" #include "sysex/getcommands.h" #include "sysex/infos.h" #include "sysex/midi.h" #include <array> #include <cstring> #include <iostream> #include <sstream> #include <unistd.h> Device::Device(int inPortNumber, int outPortNumber...
<commit_before>#include <iostream> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <errno.h> #include <string.h> #include <stdio.h> #include <vector> #include <string> #include <algorithm> using namespace std; ...
<commit_before>#include <iostream> #include <vector> #include <string> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <cstring> #include <cstdlib> #include <algorithm> #include <cassert> #include <pwd.h> #include <grp.h> #include <iomanip> #include <errn...
<commit_before>#include "dialogs.h" #include "juci.h" #include "singletons.h" namespace sigc { #ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template <typename Functor> struct functor_trait<Functor, false> { typedef decltype (::sigc::mem_fun(std::declval<Functor&>(), ...
<commit_before>/* * fMBT, free Model Based Testing tool * Copyright (c) 2012, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * *...
<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, to ...
<commit_before>/* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM 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 ...
<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. // On Tizen installing applications requires super-user powers primarily because // some pieces of information of the application are put ...
<commit_before>#include "palabos3D.h" #include "palabos3D.hh" #include <vector> #include <cmath> using namespace plb; using namespace plb::descriptors; using namespace std; typedef double T; typedef Array<T,3> Velocity; //#define DESCRIPTOR descriptors::D3Q27Descriptor #define DESCRIPTOR MRTD3Q19Descriptor typedef ...
<commit_before>#include "palabos3D.h" #include "palabos3D.hh" #include <vector> #include <cmath> using namespace plb; using namespace plb::descriptors; using namespace std; typedef double T; typedef Array<T,3> Velocity; //#define DESCRIPTOR descriptors::D3Q27Descriptor #define DESCRIPTOR MRTD3Q19Descriptor typedef ...
<commit_before>/* * mod_dup - duplicates apache requests * * Copyright (C) 2013 Orange * * 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 * * U...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * helloADIOS1Writer_nompi.cpp : non mpi version of helloADIOS1Writer * * Created on: Jan 9, 2017 * Author: Norbert Podhorszki [email protected] */ #include <iostream> ...
<commit_before>/* Copyright (c) 2012 Carsten Burstedde, Donna Calhoun 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>//////////////////////////////////////////////////////////////////////// // This file is part of Grappa, a system for scaling irregular // applications on commodity clusters. // Copyright (C) 2010-2014 University of Washington and Battelle // Memorial Institute. University of Washington authorizes use ...
<commit_before>/* Copyright (C) 2016 Claude SIMON (http://zeusw.org/epeios/contact.html). This file is part of 'eSketch' software. 'eSketch' 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, e...
<commit_before>// Copyright (c) 2012 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/chromeos/login/enrollment/enterprise_enrollment_screen.h" #include "base/bind.h" #include "base/logging.h" #i...
<commit_before>/* This file is part of the KDE project. Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). 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 o...
<commit_before>/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2018 David Shah <[email protected]> * * 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 permiss...
<commit_before>/* Copyright (c) 2016, Patricio Gonzalez Vivo 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>// cc_lang.cc see license.txt for copyright and terms of use // code for cc_lang.h #include "cc_lang.h" // this module #include <string.h> // memset void CCLang::ANSI_C() { // just in case I forget to initialize something.... memset(this, 0, sizeof(*this)); tagsAreTypes = f...
<commit_before>#include "enumcreator.h" #include "protocolparser.h" #include <QStringList> #include <math.h> EnumCreator::EnumCreator(const QDomElement& e): minbitwidth(0) { parse(e); } void EnumCreator::clear(void) { minbitwidth = 0; name.clear(); comment.clear(); output.clear(); nameLis...
<commit_before>#include "insect.hpp" #include "graph/graph.hpp" #include <iostream> void Insect::draw(sf::RenderTarget& target, Graph *g, sf::Sprite sprite) { Branch *b = g->getBranch(path.getBranchID(currentBranch)); float cpos = pos; float sign = 1.0f; if (b->getSecondNode() == path.getNodeID(currentBranch))...
<commit_before>#include <string.h> #include <iostream> #include <sstream> #include <map> #include <unistd.h> #include <openssl/sha.h> #include <openssl/hmac.h> #include "base64.h" #include <jansson.h> #include "kraken.h" #include "curl_fun.h" // INFO workaround for std::to_string when not using c++11 namespace patch {...
<commit_before>#include <type_traits> namespace Lambda { using namespace std; struct Functor {}; template<typename _Type> struct IsBound { static bool constexpr s_f = !is_base_of< Functor, typename remove_cv< typename remove_reference<_Type>::type >::type >::value; }; template<typename _...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkObjectMorphologyImageFilterTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reser...
<commit_before>// Copyright (c) 2014, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: [email protected] #include "logging.h" #include <assert.h> #include <boost/bind.hpp> #include <queue> #include <set> #in...
<commit_before>/**\file * \brief Matrix-esque terminal animation * * \copyright * Copyright (c) 2012-2013, ef.gy Project Members * \copyright * 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 So...
<commit_before>/**\file * \ingroup example-programmes * \brief Matrix-esque terminal animation * * This is a terminal programme that uses libefgy's vt100 code to render a text * version of the matrix 'scrolling streams of text' animation. It's really * fairly simple but also kinda nice to see how the vt100 output...
<commit_before>#include "OrientationSensorsWrapper.h" #include "SDLogDriver.h" #include "DualEncoderDriver.h" #include "MotorDriver.h" #include "PlanarAccelerationModule.h" #include "TireContactModule.h" #include "FrontLiftedDetection.h" #include "constants.h" #include <Wire.h> #include <SD.h> enum { WAITING_FOR_CO...
<commit_before>#include "packer.hpp" namespace vg { Packer::Packer(void) : xgidx(nullptr) { } Packer::Packer(xg::XG* xidx, size_t binsz) : xgidx(xidx), bin_size(binsz) { coverage_dynamic = gcsa::CounterArray(xgidx->seq_length, 8); if (binsz) n_bins = xgidx->seq_length / bin_size + 1; } Packer::~Packer(void)...
<commit_before>#include "../include/parser.h" #include "../include/exceptions.h" #define IGNORE_PARSE_ERROR(FUN, ARG)\ try \ { \ return FUN(ARG); \ } \ catch (ParseError e) \ { ...
<commit_before>#include <exception> #include <iostream> #include <vector> #include "execution_step.h" #include "parser.h" #define STATE_INIT 0 #define STATE_PIPE 1 std::vector<ExecutionStep*> parse_tokens(std::vector<std::string> tokens) throw (std::string) { std::vector<ExecutionStep*> ret; ExecutionStep* hea...
<commit_before>#include "parser.h" using namespace std; static void rndr_blockcode(struct buf *ob, struct buf *text, void *opaque); static void rndr_blockquote(struct buf *ob, struct buf *text, void *opaque); static void rndr_header(struct buf *ob, struct buf *text, int level, void *opaque); static void rndr_list(str...
<commit_before>/* Copyright (c) 2003, 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>// -*- mode: c++, encoding: utf-8 -*- /** * tbrpg – Text based roll playing game * * Copyright © 2012 Mattias Andrée ([email protected]) * * 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 Softw...
<commit_before>/* * Pi 2 is connected to the ImP/IMU via UART, Camera via CSI, Burn Wire Relay * via GPIO and Pi 1 via Ethernet and GPIO for LO, SOE and SODS signals. * * This program controls most of the main logic and for the PIOneERs mission * on board REXUS. */ #include <stdio.h> #include <cstdint> #include ...
<commit_before>/*************************************** ** Tsunagari Tile Engine ** ** reader.cpp ** ** Copyright 2011-2013 PariahSoft LLC ** ***************************************/ // ********** // Permission is hereby granted, free of charge, to any person obtaining a copy // of...
<commit_before>#include <queue> #include <cstring> #include <iostream> #include <vector> #include <string.h> #include <unistd.h> #include <boost/tokenizer.hpp> #include <boost/algorithm/string.hpp> #include <sys/utsname.h> #include <sys/types.h> #include <sys/wait.h> using namespace std; using namespace boost; // Cas...
<commit_before>#include<iostream> #include<sstream> #include<stdio.h> #include<boost/tokenizer.hpp> #include<errno.h> #include<string> #include<string.h> #include<sys/types.h> #include<sys/wait.h> #include<sys/unistd.h> using namespace std; using namespace boost; typedef tokenizer<char_separator<char> > Tok; void re...
<commit_before>#include <iostream> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <errno.h> #include <vector> #include "comParse.h" #include <cstring> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> using namespace boost; using namespace std; struct redirect;...
<commit_before>#include <boost/tokenizer.hpp> #include <iostream> #include <unistd.h> #include <string.h> #include <cstdlib> #include <errno.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <string> #include <sstream> #include <vector> using namespace boost; using namespace std; int main() ...
<commit_before>#include <iostream> #include <boost/tokenizer.hpp> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <errno.h> #include <vector> #include <cstring> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <signal.h> #include <list> #include "comPars...
<commit_before>// Copyright 2015 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
<commit_before>/***************************************************************************** * Copyright 2011 Sergey Shekyan * * 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://ww...
<commit_before>/* socket.cpp -*- C++ -*- Rémi Attab ([email protected]), 18 Nov 2013 FreeBSD-style copyright and disclaimer apply Socket abstraction implementation */ #include "socket.h" #include "utils.h" #include "lockless/tls.h" #include <array> #include <string> #inclu...
<commit_before>#include <string> #include <iostream> #include <ctime> #include <array> #include <cmath> #include "solver.h" #include "message.h" #include "key.h" #include "language_data.h" Solver::Solver(Message* message, Key &key) : message_(message), key_(key), bestKey_(nullptr), tempTabu_(std::unordere...