text
stringlengths
54
60.6k
<commit_before>// This file is based on FlexLexer.h, installed on systems that have // Flex installed. But then, it is way too dangerous to use the same // name, as the installed one is read instead of this one. So make // sure *not* to name this file FlexLexer.h. // $Header: /cvsroot/urbi/./devel-code/urbiserver/k...
<commit_before>// ConfigFile.cpp #include "ConfigFile.h" using std::string; ConfigFile::ConfigFile( string filename, string delimiter, string comment, string sentry ) : myDelimiter(delimiter), myComment(comment), mySentry(sentry) { // Construct a ConfigFile, getting keys and value...
<commit_before>// Copyright (c) 2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcnestedtests.h" #include "chainparams.h" #include "consensus/validation.h" #include "validation.h" #in...
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved. #ifndef RDB_PROTOCOL_PB_SERVER_HPP_ #define RDB_PROTOCOL_PB_SERVER_HPP_ #include <map> #include <set> #include <string> #include "clustering/administration/metadata.hpp" #include "clustering/administration/namespace_interface_repository.hpp" #inclu...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include "CTRStats...
<commit_before>/**************************************************************************** * * Copyright (c) 2013-2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are me...
<commit_before>/* * Copyright (c) 2011 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 (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2017 The Zcash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pubkey.h> #include <secp256k1.h> #include <secp256k1_rec...
<commit_before> #include <osgParticle/FluidProgram> #include <osgParticle/Operator> #include <iostream> #include <osg/Vec3> #include <osg/io_utils> #include <osgDB/Registry> #include <osgDB/Input> #include <osgDB/Output> bool FluidProgram_readLocalData(osg::Object &obj, osgDB::Input &fr); bool FluidProgram_writeL...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in **...
<commit_before> #include <Eigen/Dense> #include <vector> #include "TestsCatchRequire.h" #include "../core/NeuralNetwork.h" TEST_CASE("NeuralNetwork can be initialised", "[NeuralNetwork]") { // create a basic layout 2 inputs, 2 nodes in the 1st layer 1 in the 2nd int nodes[3] = { 2, 2, 1}; std::vector<int>...
<commit_before>// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <httpserver.h> #include <netaddress.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz...
<commit_before>// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #include "CoreAudio.h" #include <math.h> #include <stdlib.h> #include "../../Logger.h" #include "Functiondiscoverykeys_devpkey.h" #include "VolumeTransformation.h" // {EC9CB649-7E84-4B...
<commit_before>#line 2 "togo/debug_constraints.hpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. @file debug_constraints.hpp @brief Definitions for constraints. */ #pragma once #include <togo/config.hpp> #if defined(TOGO_USE_CONSTRAINTS) #include <type_traits> #define TOGO_CONSTRA...
<commit_before>#include "occupancy_map_server.h" using namespace std; using namespace boost::filesystem; #define MAP_IDX(sx, i, j) ((sx) * (j) + (i)) bool OccupancyMapServer::mapCallback(nav_msgs::GetMap::Request &req, nav_msgs::GetMap::Response &res ){ //header (uint32 seq, time stamp, string frame_id) res...
<commit_before>#include "rshell.h" #include <iostream> #include <string> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <cstdio> #include <cstring> #include <vector> #include <sstream> using namespace std; // Constructors // Default constructor (cre...
<commit_before>#include <iostream> #include <vector> #include <string> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/wait.h> #include <string.h> #include <boost/tokenizer.hpp> using namespace std; using namespace boost; int syntaxCheck(vector<string>&vect); bool isConn...
<commit_before>#include "rshell.h" #include <iostream> #include <string> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <cstdio> #include <cstring> #include <vector> #include <sstream> using namespace std; // Constructors // Default constructor (cre...
<commit_before>/** * Copyright (C) 2013 Tadas Vilkeliskis <vilkeliskis.t@gmail.com> * * * 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...
<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 // "Lic...
<commit_before>#include <iterator> #include <unordered_set> #include <unordered_map> #include <vector> #include "builtin_extra.hh" #include "cons_util.hh" #include "equality.hh" #include "printer.hh" #include "s_rules.hh" #include "s_closure.hh" #include "symbol.hh" #include "zs_error.hh" #include "zs_memory.hh" usin...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * 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...
<commit_before>#include <vw/FileIO.h> #include <vw/Image.h> #include <vw/Math.h> #include <vw/Cartography.h> using namespace vw; #include <boost/program_options.hpp> #include <boost/type_traits.hpp> #include <boost/utility/enable_if.hpp> namespace po = boost::program_options; // Function for highlighting spots of dat...
<commit_before>#pragma once #include "boost_defs.hpp" #include "apple_hid_usage_tables.hpp" #include "iokit_utility.hpp" #include "userspace_types.hpp" #include <IOKit/hid/IOHIDDevice.h> #include <IOKit/hid/IOHIDElement.h> #include <IOKit/hid/IOHIDQueue.h> #include <IOKit/hid/IOHIDUsageTables.h> #include <IOKit/hid/I...
<commit_before>#include <node.h> #include <nan.h> #include <v8.h> #include <uv.h> #include <windows.h> #include <tlhelp32.h> #include <tchar.h> #include <list> #include <stdio.h> #include <psapi.h> #include <string> #include <vector> using namespace v8; using namespace node; BOOL CALLBACK MonitorEnumProc(HMONITO...
<commit_before>#include "segment.h" #include <cstdlib> namespace oop_project { const size_t Segment::kMaxCars = 5; Segment::Segment(size_t capacity, Segment* prev, int ready_percent, size_t num_junctions, size_t toll_pass_limit) : capacity_(capacity), enter_junction_(new Junction(num_junct...
<commit_before>#include "card-reader.h" #include "credentials.h" #include "electric-strike.h" #include "led.h" #include "sesame.h" #include <Arduino.h> Sesame::Sesame(void) : cardReader(pinCardReaderRST, pinCardReaderSS), electricStrike(pinElectricStrike, timeElectricStrikeOpen), led(pinLedRed, pinLedGreen, pinL...
<commit_before>#include <SFML/Graphics/Rect.hpp> #include <SFML/System/Vector2.hpp> #include <SFML/System/Vector3.hpp> #include <SFML/Graphics/View.hpp> #include <functional> // std::hash #include <string> namespace jd { std::string const keyName(int keyCode); // Taken from boost (not available in recent versions (...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ifinishedthreadlistener.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2007-07-18 13:33:25 $ * * The Contents of thi...
<commit_before>/** * solver.cpp * * by Mohammad Elmi * Created on 24 Oct 2013 */ #include "solver.h" #include "gradient.h" #include <iostream> #include <iomanip> namespace aban2 { void solver::write_step(size_t step) { std::stringstream s; s << out_path << std::setfill('0') << std::setw(6) << st...
<commit_before>/* * Copyright (C) 2017 Muhammad Tayyab Akram * * 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 b...
<commit_before>/* Copyright 2015 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>/* * Connection pooling for the translation server. * * author: Max Kellermann <mk@cm4all.com> */ #include "tstock.hxx" #include "translate_client.hxx" #include "stock.hxx" #include "tcp_stock.hxx" #include "lease.hxx" #include "pool.hxx" #include "net/AllocatedSocketAddress.hxx" #include <daemon/l...
<commit_before>#ifndef vector_hpp #define vector_hpp #include "util.hpp" #include <cstdlib> #include <iostream> #include <sstream> #include <stdint.h> #include <math.h> //#include <tgmath.h> #define VEC_SIZE_MATCH_THIS_P(V) \ (this->size == V->size) #define VEC_SIZE_EQUAL_R(U,V) \ (U.size == V.size) using nam...
<commit_before>// Copyright 2012 the V8 project authors. 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>/* This file will handle (as a minimum) the visualization of the emulator * in the form of interfacing with a user's input. * * Author Maxwell J Svetlik */ #include <SDL2/SDL.h> #include <stdio.h> #include "visualization.h" #include "video_const.h" const int SCREEN_WIDTH = 166; const int SCREEN_H...
<commit_before>/** * pty.js * Copyright (c) 2013, Christopher Jeffrey, Peter Sunde (MIT License) * * pty.cc: * This file is responsible for starting processes * with pseudo-terminal file descriptors. */ #include <v8.h> #include <node.h> #include <node_buffer.h> #include <string.h> #include <stdlib.h> #include <win...
<commit_before>/************************************************************************* * * $RCSfile: optinet2.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: kz $ $Date: 2004-08-31 12:13:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/* * Copyright (C) 2015 deipi.com LLC and contributors. All rights reserved. * * 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 limit...
<commit_before><commit_msg>use C++11 iteration<commit_after><|endoftext|>
<commit_before><commit_msg>Share common code of if/else branches<commit_after><|endoftext|>
<commit_before><commit_msg>Use more proper integer types and range-for loops, reduce scope<commit_after><|endoftext|>
<commit_before><commit_msg>bracket up this horror anyway<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: cellfrm.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: svesik $ $Date: 2004-04-21 09:55:30 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * $RCSfile: flyfrms.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: mib $ $Date: 2001-10-12 13:22:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: porftn.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2004-11-16 15:52:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before><commit_msg>coverity#704936 Unchecked dynamic_cast<commit_after><|endoftext|>
<commit_before><commit_msg>SwViewShell::ImplEndAction: avoid direct PaintDesktop()<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: multmrk.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: vg $ $Date: 2003-04-17 15:33:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>#include <ros/this_node.h> #include <swri_profiler/profiler.h> #include <ros/publisher.h> #include <swri_profiler_msgs/ProfileIndex.h> #include <swri_profiler_msgs/ProfileIndexArray.h> #include <swri_profiler_msgs/ProfileData.h> #include <swri_profiler_msgs/ProfileDataArray.h> namespace spm = swri_prof...
<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>// REQUIRES: x86-64-registered-target // RUN: %clang_cc1 -x c++ %s -triple i386-apple-darwin10 -O0 -fasm-blocks -emit-llvm -o - | FileCheck %s struct Foo { static int *ptr; static int a, b; struct Bar { static int *ptr; }; }; void t1() { Foo::ptr = (int *)0xDEADBEEF; Foo::Bar::ptr = (in...
<commit_before>#include "plane_calibration/planes.hpp" #include <cmath> #include <iostream> namespace plane_calibration { Planes::Planes(const CalibrationParameters::Parameters& parameters, const PlaneToDepthImage& plane_to_depth) : plane_to_depth_(plane_to_depth) { pair_count_ = parameters.precomputed_plane_p...
<commit_before>/* * Copyright © 2010 Intel Corporation * * 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, mod...
<commit_before>#include <iostream> #include "vg.hpp" #include "haplotype_extracter.hpp" #include "json2pb.h" #include "xg.hpp" using namespace std; using namespace vg; void trace_haplotypes_and_paths(xg::XG& index, vg::id_t start_node, int extend_distance, ...
<commit_before>//======================================================================= // Copyright (c) 2013-2018 Baptiste Wicht. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================...
<commit_before>#include <node.h> #include <nan.h> #include <v8.h> #include <vector> #include "mouse.h" #include "deadbeef_rand.h" #include "keypress.h" #include "screen.h" #include "screengrab.h" #include "MMBitmap.h" #include "snprintf.h" using namespace v8; /* __ __ | \/ | ___ _ _ ___ ...
<commit_before>#include <iostream> #include <unistd.h> #include <string> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <errno.h> #include <vector> #include <stdlib.h> #include <fcntl.h> #include <pwd.h> using namespace std; void parse(char * line, vector<string> & input...
<commit_before>#include<iostream> #include<pwd.h> #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>...
<commit_before> /* A simple program to count reads. Similar to htseq-count, but much much * faster. */ #include <cstdio> #include <getopt.h> #include "logger.hpp" #include "read_set.hpp" #include "transcripts.hpp" #include "trie.hpp" #include "samtools/sam.h" #include "samtools/samtools_extra.h" extern "C" { #incl...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include "schemas....
<commit_before>/* Copyright (C) 2001 by Christopher Nelson 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 version 2 of the License, or (at your option) any lat...
<commit_before>#ifndef SFUTIL_HPP_INCLUDED #define SFUTIL_HPP_INCLUDED SFUTIL_HPP_INCLUDED #include <SFML/Graphics/Rect.hpp> #include <SFML/System/Vector2.hpp> #include <SFML/System/Vector3.hpp> #include <SFML/Graphics/View.hpp> #include <functional> // std::hash #include <string> namespace jd { std::string const k...
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>#include "etl_audio.hpp" using namespace std; using namespace nervana; bool audio::config::set_config(nlohmann::json js) { // TODO } shared_ptr<audio::params> audio::param_factory::make_params(std::shared_ptr<const decoded>) { auto params = shared_ptr<audio::params>(new audio::params()); ...
<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>/******************************************************************************* Copyright (c) 2014, Jan Koester jan.koester@gmx.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: * R...
<commit_before>#include <opencv2/opencv.hpp> #include <iostream> #include "dbn/dbn.hpp" #include "dbn/layer.hpp" #include "dbn/conf.hpp" #include "dbn/labels.hpp" #include "dbn/test.hpp" #include "detector.hpp" #include "data.hpp" int main(int argc, char** argv ){ if(argc < 2){ std::cout << "Usage: sudo...
<commit_before>/** * \file sysexp.hpp * * \brief Driver for performing system experiments * * \author Marco Guazzone (marco.guazzone@gmail.com) * * <hr/> * * Copyright (C) 2012 Marco Guazzone * [Distributed Computing System (DCS) Group, * Computer Scie...
<commit_before>/* The MIT License (MIT) Copyright (c) 2019 Daniel Illescas Romero <https://github.com/illescasDaniel> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, i...
<commit_before>internal void LoadCharacter(s16 CharacterOffset, u8 * FileBuffer, u8 * TextureBuffer, int XOffset, int YOffset, int Height, int TextureWidth) { if(CharacterOffset ==0) return; int Width = * (FileBuffer + CharacterOffset ); if(Width == 0) return; u8 * ImageData = (FileBuffer + Character...
<commit_before>#include <iostream> #include <SFML/Graphics.hpp> #include "Game.hpp" #include "Houses.hpp" #include <boost/cast.hpp> CreateUnitMessage::CreateUnitMessage(Unit::Type type, const Player &player, const sf::Vector2f &position): Message(Messages::createUnit), type(type), player(player), position(pos...
<commit_before>#include "./window.h" #include <QOpenGLContext> #include <QOpenGLDebugLogger> #include <QDebug> #include <QCoreApplication> #include <QStateMachine> #include <QAbstractState> #include <QAbstractTransition> #include <QLoggingCategory> #include "./graphics/gl.h" #include "./abstract_scene.h" QLoggingCateg...
<commit_before>#include "File.h" #include "Index.h" #include "RegExpIndexer.h" #include "ConsoleLog.h" #include "FieldIndexer.h" #include "IndexParser.h" #include <tclap/CmdLine.h> #include <iostream> #include <stdexcept> #include <limits.h> #include "ExternalIndexer.h" using namespace std; using namespace TCLAP; n...
<commit_before>#include "app.h" #include "ui_app.h" #include "Managers/app_manager.h" App::~App() { delete ui; } App::App(QWidget *parent) : QMainWindow(parent), ui(new Ui::App), dashboardPage(new DashboardPage(this)), startupAppsPage(new StartupAppsPage(this)), systemCleanerPage(new SystemCle...
<commit_before>#include <sys/types.h> #include <sys/ioctl.h> #include <unistd.h> #include <arpa/inet.h> // manipulação de endereços IP #include <linux/if_ether.h> #include <net/ethernet.h> #include <net/if.h> // ifr struct #include <netinet/ether.h> // header ethernet #include <netinet/in.h> ...
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/table.h" #include "leveldb/cache.h" #include "leveldb/comparator.h" #...
<commit_before>// -*- C++ -*- // Implementation of class xFOOx // // Copyright (C) 2006 by John Weiss // This program is free software; you can redistribute it and/or modify // it under the terms of the Artistic License, included as the file // "LICENSE" in the source code archive. // // This program is distributed in...
<commit_before>#include "yebash.hpp" #include "History.hpp" #include "catch.hpp" #include <sstream> using namespace yb; TEST_CASE( "No suggestions when history is empty", "[basic.empty_history]" ) { std::stringstream ss; History history; history.read(ss); HistorySuggestion suggestion(history); ...
<commit_before>#include <vector> #include <map> #include <cstring> #include <algorithm> #include <iostream> #include "alloc.hpp" #include "safemacros.h" #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> namespace aL4nin { template <> struct meta<int> { int* allo...
<commit_before>#include <BinaryTree.hpp> #include <catch.hpp> /*SCENARIO ("init", "[init]") { BinaryTree<int> obj; // REQUIRE(obj.root_() == nullptr); } SCENARIO("insert", "[insert]") { BinaryTree<int> obj; obj.insert_node(3); REQUIRE(obj.find_node(3, obj.root_())->data == 3); } SCENARIO("find_node", "[find...
<commit_before>#include <matrix.hpp> #include <catch.hpp> SCENARIO("matrix init without parametrs", "[init wp]") { Matrix matrix; REQUIRE(matrix.rows() == 4); REQUIRE(matrix.columns() == 4); for (int i=0;i<matrix.rows(); i++) { for (int j = 0; j<matrix.columns();j++) { REQUIRE(matrix.Element(i,j) == 0); }...
<commit_before>#include <BST.hpp> #include <catch.hpp> #include <fstream> SCENARIO ("init", "[init]") { BST<int> test; REQUIRE(test.getroot() == nullptr); REQUIRE(test.getcount() == 0); } SCENARIO("insert", "[init]") { BST<int> test; test.add(10); REQUIRE(test.search(10, test.getroot()) != 0); ...
<commit_before>#include <QTest> #include "mainwindow.h" #include "test-suite.h" QMap<QDateTime, QString> _log; QMap<QString, QString> _md5; mainWindow *_mainwindow; int main(int argc, char *argv[]) { QApplication a(argc, argv); int failed = 0; for (QObject *suite : TestSuite::suites) ...
<commit_before>#define BOOST_TEST_MODULE test_hopscotch_map #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include <boost/mpl/list.hpp> #include "utils.h" #include "hopscotch_map.h" using test_types = boost::mpl::list<hopscotch_map<int64_t, int64_t>, hopscotch_...
<commit_before>/* C++ interface test */ #include <libmemcached/memcached.hpp> #include <cstdio> #include <cstdlib> #include <cstring> #include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <ctime> #include <libtest/server.h> #include <libtest/test.hpp> #include <string> #i...
<commit_before>#ifndef STATEMACHINE_TRANSITION_HPP #define STATEMACHINE_TRANSITION_HPP #include "statemachine_fwd.hpp" #include <functional> #include <type_traits> namespace statemachine { namespace detail { //! A type-tag for creating eventless transitions. struct noEvent_t {}; //! A type-tag for creating targetle...
<commit_before>// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0 #include "heritage.hh" #include "widget.hh" namespace Rapicorn { static Color adjust_color (Color color, double saturation_factor, double value_factor) { double hue, saturation, value; color.get_hs...
<commit_before>#include <alloca.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <time.h> #include <math.h> #include "dlfcn.h" #include "ladspa.hpp" #include "util.hpp" #define BLOCK_SIZE 2048 void *plug = NULL; static float *audio_buffer; static int audio_count = 0; INNER void cleanup() { dl...
<commit_before>/* * Copyright 2019 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 option...
<commit_before> #include <fstream> #include <vector> #define MAX_LINE_LENGTH 1024 #define MAX_NUM_LITERALS 100 using namespace std; class MaxSatInstance { enum {CNF, PARTIAL, WEIGHTED, WEIGHTED_PARTIAL} format; int numVars, numClauses; int *clauseLengths; vector<int> *negClausesWithVar, *posClausesWithVar; ...
<commit_before>// cpl::net::IP #include <cppl/include/ip.hpp> // cpl::net::UDP_Socket #include <cppl/include/udp_socket.hpp> // cpl::net::Sockaddr #include <cppl/include/sockaddr.hpp> // std::cout #include <iostream> // std::thread #include <thread> // std::chrono #include <chrono> #include "flags.hpp" int main(...
<commit_before>#ifndef STAN_MATH_PRIM_FUN_LOWER_REG_INC_GAMMA_HPP #define STAN_MATH_PRIM_FUN_LOWER_REG_INC_GAMMA_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/digamma.hpp> #include <stan/math/prim/fun/exp.hpp> #include <stan/math/prim/fun/gamma_p.hpp> #include <s...
<commit_before>#ifndef STAN_MATH_PRIM_SCAL_PROB_BETA_BINOMIAL_LPMF_HPP #define STAN_MATH_PRIM_SCAL_PROB_BETA_BINOMIAL_LPMF_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/scal/err/check_consistent_sizes.hpp> #include <stan/math/prim/scal/err/check_nonnegative.hpp> #include <stan/math/prim/scal/err/chec...
<commit_before>/* dtkComposerSceneNodeLeaf.cpp --- * * Author: Julien Wintz * Copyright (C) 2008-2011 - Julien Wintz, Inria. * Created: Fri Feb 3 14:02:14 2012 (+0100) * Version: $Id$ * Last-Updated: Mon Feb 27 16:14:30 2012 (+0100) * By: Julien Wintz * Update #: 200 */ /* Commentary: * *...
<commit_before>// Copyright 2013 The Flutter 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 <algorithm> #include <iomanip> #include <iostream> #include <iterator> #include <sstream> #include <string> #include "flutter/comm...
<commit_before>// virustest_experiment.cpp // Copyright (C) 2015 Rob Colbert <rob.isConnected@gmail.com> // License: MIT (see LICENSE) #include <virustest_experiment.h> #include <virustest_exception.h> #include <algorithm> VirusTest::Experiment::Experiment(const std::string& name) : m_name(name) , m_log(spdlog::get(...
<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>#include "devcon/devcon_client.h" #include "halley/net/connection/network_service.h" #include "halley/net/connection/message_queue_tcp.h" #include "halley/support/logger.h" #include "halley/core/api/halley_api.h" #include "halley/net/connection/message_queue.h" #include "devcon/devcon_messages.h" using ...
<commit_before>#include <deal.II/grid/tria.h> #include <deal.II/grid/tria_accessor.h> #include <deal.II/grid/tria_iterator.h> #include <deal.II/grid/grid_generator.h> #include <deal.II/grid/manifold_lib.h> #include <deal.II/grid/grid_out.h> #include <deal.II/grid/grid_tools.h> #include <cmath> #include <iostream> #inc...