text
stringlengths
54
60.6k
<commit_before>#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <stdio.h> #include <iostream> #include <fstream> #include <boost/lexical_cast.hpp> #include "packet.h" #define BUFSIZE 121 #define FILENAME "Testfile" #define TEST_FILENAME "Testfile2" #define PORT 10038 ...
<commit_before><commit_msg>Free transactions is unsupported yet.<commit_after><|endoftext|>
<commit_before>#include <stan/math/prim/mat.hpp> #include <gtest/gtest.h> #include <random> TEST(ProbDistributionsLkjCov, testIdentity) { std::random_device rd; std::mt19937 mt(rd()); unsigned int K = 4; Eigen::MatrixXd Sigma(K, K); Sigma.setZero(); Sigma.diagonal().setOnes(); double eta = rd() / static_...
<commit_before><commit_msg>création d'une classe Weather<commit_after><|endoftext|>
<commit_before><commit_msg>mapper: Support association property removes<commit_after><|endoftext|>
<commit_before><commit_msg>Add all current work to main<commit_after><|endoftext|>
<commit_before><commit_msg>refactor code<commit_after><|endoftext|>
<commit_before><commit_msg>Second Change Hot Fix for Block 850242 <commit_after><|endoftext|>
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014 Francois Beaune, The appleseedhq Organi...
<commit_before>#pragma once #include <sstream> #include <type_traits> #include "blackhole/attribute.hpp" #include "blackhole/detail/traits/supports/stream_push.hpp" #include "blackhole/utils/lazy.hpp" namespace blackhole { namespace aux { //! \brief Converts various types to log event attributes. /*! Helper hierar...
<commit_before>#include <iostream> using namespace std; #include <TFile.h> #include <TTree.h> #include <TChain.h> #include <TVectorD.h> #include <TF1.h> #include "R.h" #include "Units.h" using namespace GeFiCa; void R::SOR2(int idx,bool elec) { if (fIsFixed[idx])return ; double density=fImpurity[idx]*Qe; do...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <signal.h> #include <netinet/in.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/wait.h> #include <dirent.h> #include <fcntl.h> #include <errno.h> #include <string> #include <functional> #include <unor...
<commit_before>// Copyright (C) 2011 The Libphonenumber 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 a...
<commit_before>// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #include "precomp.hpp" #include <stdio.h> #include <string.h> #include <fstream> #include <iostream> #include ...
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE EventCategorizerToolsTests #include <boost/test/unit_test.hpp> #include "EventCategorizerTools.h" #include "JPetHit/JPetHit.h" BOOST_AUTO_TEST_SUITE(TOFSuite) BOOST_AUTO_TEST_CASE(checkHitOrder) { JPetHit firstHit; firstHit.setTime(500.0); J...
<commit_before>#include "acmacs-chart-2/chart.hh" //#include "draw.hh" #include "vaccines.hh" // ---------------------------------------------------------------------- static inline acmacs::PointStyle& point_style_for(acmacs::PointStyle&& aStyle, hidb::Vaccines::PassageType pt) { switch (pt) { case hidb::Va...
<commit_before>#include <algorithm> #include <functional> #include <iomanip> #include "hidb.hh" #include "variant-id.hh" #include "vaccines.hh" // ---------------------------------------------------------------------- #pragma GCC diagnostic push #ifdef __clang__ #pragma GCC diagnostic ignored "-Wexit-time-destructor...
<commit_before>/* * Copyright (c) 2016 Shanghai Jiao Tong University. * 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/lice...
<commit_before>#include <cmd_classbook_delete_record_handler.h> #include <QJsonArray> #include <QSqlError> #include <QUuid> CmdClassbookDeleteRecordHandler::CmdClassbookDeleteRecordHandler(){ m_vInputs.push_back(CmdInputDef("classbookid").required().integer_().description("id for classbook article")); } QString C...
<commit_before>/************************************************************************* * * $RCSfile: dbinteraction.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2003-03-19 17:53:08 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before><commit_msg>add more tests<commit_after><|endoftext|>
<commit_before>// // Copyright (c) 2002-2011 The ANGLE 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 "angle_gl.h" #include "compiler/translator/BuiltInFunctionEmulator.h" #include "compiler/translator/BuiltInFun...
<commit_before>/* Copyright 2019 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>#include "aquila/global.h" #include "aquila/source/ArrayData.h" #include "aquila/transform/Dft.h" #include <unittestpp.h> #include <algorithm> #include <cstddef> #include <iterator> #include <vector> SUITE(Dft) { TEST(Delta) { const std::size_t SIZE = 8; Aquila::SampleType testA...
<commit_before> /* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkRasterWidget.h" SkRasterWidget::SkRasterWidget(SkDebugger *debugger) : QWidget() { fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 800, 800); ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // $Id: testsuite.cpp,v 1.3 2006/11/03 18:03:00 db Exp $ // // Test suite for Visual Leak Detector // //////////////////////////////////////////////////////////////////////////////// #include <cassert> #include <c...
<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>/* * writer.cpp * * Created on: Nov 26, 2012 * Author: partio */ #include "writer.h" #include "plugin_factory.h" #include "logger_factory.h" #include <fstream> #include <boost/lexical_cast.hpp> #include <boost/filesystem.hpp> #include "util.h" #include "timer_factory.h" #define HIMAN_AUXILIARY_...
<commit_before>/* Copyright (c) 2015 - present Advanced Micro Devices, Inc. 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 limitation t...
<commit_before>// Copyright (c) 2010 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/threading/thread_local.h" #include <windows.h> #include "base/logging.h" namespace base { namespace internal { // s...
<commit_before>#include "GraphReader.h" #include <json/json.hpp> #include <fstream> #include "Graph.h" namespace pathfind { GraphReader::GraphReader(const std::string& path) : _path(path) { } std::unique_ptr<Graph> GraphReader::Read() { // Load json file nlohmann::json json = nlohmann::json(std::ifstream(_path)); ...
<commit_before>#include <cmath> #include <cassert> #include "sphere.h" namespace pt { Sphere::Sphere(const glm::vec3 &center, const float radius) : center(center), radius(radius) {} bool Sphere::intersect(Ray &ray, DifferentialGeometry &dg) const { const float a = glm::dot(ray.dir, ray.dir); const float b = 2.0 * g...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<commit_before>#pragma once #ifndef DELEGATE_HPP # define DELEGATE_HPP #include <cassert> #include <cstdlib> #include <memory> #include <new> #include <type_traits> #include <utility> #include "lightptr.hpp" namespace { template <typename T> struct static_store { static constexpr auto const max_instan...
<commit_before>#pragma once #ifndef DELEGATE_HPP # define DELEGATE_HPP #include <cassert> #include <bitset> #include <memory> #include <new> #include <type_traits> #include <utility> #include "lightptr.hpp" namespace { template <typename T> struct static_store { static constexpr ::std::size_t const ma...
<commit_before>// // FilteringSpeaker.h // Clock Signal // // Created by Thomas Harte on 15/12/2017. // Copyright 2017 Thomas Harte. All rights reserved. // #ifndef FilteringSpeaker_h #define FilteringSpeaker_h #include "../Speaker.hpp" #include "../../../SignalProcessing/Stepper.hpp" #include "../../../SignalPro...
<commit_before><commit_msg>change pion selections<commit_after><|endoftext|>
<commit_before><commit_msg>use prefix and suffix in names<commit_after><|endoftext|>
<commit_before>// $Id$ AliAnalysisTaskEmcalJetHMEC* AddTaskEmcalJetHMEC( const char *outfilename = "AnalysisOutput.root", const char *nJets = "Jets", const char *nTracks = "PicoTracks", const char *nCaloClusters = "CaloClustersCorr", const Double_t minPhi = 1.8, const Double_...
<commit_before>/**************************************************************************** * * Copyright (c) 2020 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 met: *...
<commit_before>#include "tokenizer.hpp" <commit_msg>Update tokenizer.cpp<commit_after>#include "tokenizer.hpp" Command userCommand; userCommand.getSentence(); <|endoftext|>
<commit_before>#pragma once #include <tuple> #include <type_traits> #include <cmath> #include <limits> namespace spn { //! コンパイル時数値計算 & 比較 template <int M, int N> struct TValue { enum { add = M+N, sub = M-N, less = (M>N) ? N : M, great = (M>N) ? M : N, less_eq = (M<=N) ? 1 : 0, great_eq = (M>=N) ? ...
<commit_before>/* * newdatasetwidget.cpp * * Created on: 26.01.2013 * @author Ralph Schurade */ #include "newdatasetwidget.h" #include "../controls/sliderwithedit.h" #include "../controls/sliderwitheditint.h" #include "../controls/selectwithlabel.h" #include "../roiwidget.h" #include "../../../dat...
<commit_before>#pragma once #include <vector> #include <algorithm> #include <iostream> using namespace std; namespace datavis { using std::vector; inline int flat_size(const vector<int> & size) { int fs = 1; for (auto & s : size) fs *= s; return fs; } inline int flat_index(const vector<int> & i...
<commit_before>#include <stinkee_device.h> #include <stinkee_signal.h> #include <portaudio.h> #include <iostream> namespace { static const int NUM_CHANNELS = 1; static const PaSampleFormat SAMPLE_TYPE = paFloat32; struct CbUserData { std::size_t processed; const stinkee::Signal& sign...
<commit_before>//===-- driver.cpp - Clang GCC-Compatible Driver --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <sstream> #...
<commit_before>/* * main.cpp * SimpleChess * * Created by Ronak Gajrawala on 12/01/13. * Copyright (c) 2013 Ronak Gajrawala. All rights reserved. */ // #define __CPP_DEBUG__ // If you are debugging. (Currently, this changes very little.) /** * @todo Add Castle button. * @todo Add background music. * @tod...
<commit_before>/* RawSpeed - RAW file decoder. Copyright (C) 2009-2010 Klaus Post Copyright (C) 2014-2015 Pedro Côrte-Real Copyright (C) 2017 Roman Lebedev This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as pu...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: preproc.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-07 18:32:07 $ * * The Contents of this file are made a...
<commit_before>/* Siconos-Kernel version 3.0.0, Copyright INRIA 2005-2008. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
<commit_before>#include "fsbmosf.h" #include <QGridLayout> #include <QLabel> #include <QNetworkAccessManager> #include <QUrl> #include <QNetworkRequest> #include <QNetworkReply> #include <QJsonDocument> #include <QJsonObject> #include <QJsonParseError> #include <QJsonArray> #include <QFile> #include "fsentry.h" #incl...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // #include <BALL/STRUCTURE/assignBondOrderProcessor.h> #include <BALL/FORMAT/MOL2File.h> #include <BALL/KERNEL/system.h> #include <BALL/FORMAT/commandlineParser.h> #include <iostream> #include "version.h" using namespace std; using nam...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: molecularControl.C,v 1.8 2002/12/12 10:57:47 oliver Exp $ #include <BALL/MOLVIEW/GUI/WIDGETS/molecularControl.h> #include <BALL/MOLVIEW/KERNEL/molecularMessage.h> #include <BALL/MOLVIEW/GUI/DIALOGS/atomProperties.h> #include <BALL/KERNEL/sy...
<commit_before>//===-- AdbClient.cpp -------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <pcl/filters/voxel_grid.h> #include <pcl/io/pcd_io.h> #include <pcl/octree/octree_search.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/registration/icp.h> #include <pcl_ros/point_cloud.h> #include <pcl_ros/transforms.h> #include <ros/publisher.h> #include <ros/ros.h>...
<commit_before>#include "state.h" #include <stdlib.h> using namespace std; State::State(){ } /* For instantiation based on a parent search node */ // TODO: Don't think this is needed State::State(State &parent, Direction dir) { parent_ = &parent; world_ = parent.getWorld(); curRobot_ = parent.getRobot(); curBoxe...
<commit_before>#ifndef GENERICPARALLELWORLD_HH #define GENERICPARALLELWORLD_HH namespace g4 { /** * @brief Generic parallel world that can be built from function objects / lambdas. */ class GenericParallelWorld : public G4VUserParallelWorld { public: using handler_type = std::function<...
<commit_before>/* Copyright (c) 2014, J.D. Koftinoff Software, Ltd. 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>// Copyright (c) 2013 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/memory/discardable_memory.h" #include <mach/mach.h> #include "base/logging.h" namespace base { namespace { // The V...
<commit_before>#ifndef DUNE_STUFF_DATA_PROVIDER_SPE10_HH #define DUNE_STUFF_DATA_PROVIDER_SPE10_HH #ifdef HAVE_CMAKE_CONFIG #include "cmake_config.h" #else #include "config.h" #endif // ifdef HAVE_CMAKE_CONFIG #include <iostream> #include <sstream> #include <memory> #ifdef HAVE_EIGEN #include <Eigen/Core> #endif /...
<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: Sven Kaulmann #ifndef DUNE_STUFF_GRID_STRUCTURED_GRID_FACTORY...
<commit_before>#pragma once #include <vector> #include <map> #include <string> #include <functional> #include "function_traits.hpp" #include "lexical_cast.hpp" class HttpRouter { class token_parser { std::vector<std::string> m_v; static std::vector<std::string> split(std::string& s, char seperator) ...
<commit_before>#include <string> #include <map> #include <sys/types.h> #include <sys/stat.h> #ifndef windows # include <dlfcn.h> #else # include <windows.h> # define dlopen(x,y) (void*)LoadLibrary(x) # define dlsym(x,y) (void*)GetProcAddress((HMODULE)x,y) # define dlclose(x) FreeLibrary((HMODULE)x) #endif #...
<commit_before>#include "kerberos.h" #include "kerberos_worker.h" /// KerberosClient Nan::Persistent<v8::Function> KerberosClient::constructor; NAN_MODULE_INIT(KerberosClient::Init) { v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(); tpl->SetClassName(Nan::New("KerberosClient").ToLocalChe...
<commit_before>/* * Copyright 1999-2000,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 * ...
<commit_before>/** * toolchain-parallax_p8x32a * * Copyright 2017 Andrew Countryman <apcountryman@gmail.com> * * 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/li...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>//! //! termcolor //! ~~~~~~~~~ //! //! termcolor is a header-only c++ library for printing colored messages //! to the terminal. Written just for fun with a help of the Force. //! //! :copyright: (c) 2013 by Igor Kalnitsky //! :license: BSD, see LICENSE for details //! #ifndef TERMCOLOR_HPP_ #define TE...
<commit_before>/* * The main source of the Beng proxy server. * * author: Max Kellermann <mk@cm4all.com> */ #include "tpool.h" #include "direct.h" #include "lb_instance.hxx" #include "lb_setup.hxx" #include "lb_connection.hxx" #include "tcp_stock.hxx" #include "tcp_balancer.hxx" #include "hstock.hxx" #include "sto...
<commit_before>// -*-Mode: C++;-*- // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and de...
<commit_before><commit_msg>Use COMPILE_ASSERT instead of DCHECK for compile-time constant checks<commit_after><|endoftext|>
<commit_before>/****************************************************************************** This source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software ...
<commit_before>#include <util/singleton.H> #include <kernel/console.H> #include <stdarg.h> static char kernel_printk_buffer[Console::BUFFER_SIZE]; Console::Console() : iv_pos(0), iv_buffer(kernel_printk_buffer) { memset(iv_buffer, '\0', Console::BUFFER_SIZE); } int Console::putc(int c) { if (BUFFER_SIZE > iv...
<commit_before>#include <stdio.h> #include <time.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <errno.h> #include <string.h> #include "stdsneezy.h" #include "connect.h" #define WIZ_KEY_FILE "/mud/prod/lib/IPC_Wiznet" #define MAIN_PORT 7900 #define BUILD_PORT 8900 #define WIZNET_FORMAT "%...
<commit_before>/* Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura, Daniel Selsam */ #include <iostream> #include "library/tlean_exporter.h" #include "library/unfold_macros.h" #include "kernel/quotient/quotient....
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fmtornt.hxx,v $ * * $Revision: 1.12 $ * * last change: $Author: hr $ $Date: 2007-09-27 08:03:25 $ * * The Contents of this file are made ...
<commit_before>/* * Copyright (C) 2008-2013 The Communi Project * * 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. * * Th...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (info@qt.nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>#include "search_engine.hpp" #include "result.hpp" #include "search_query.hpp" #include "../storage/country_info.hpp" #include "../indexer/categories_holder.hpp" #include "../indexer/search_string_utils.hpp" #include "../indexer/mercator.hpp" #include "../indexer/scales.hpp" #include "../platform/plat...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>#ifndef _prusaslicer_technologies_h_ #define _prusaslicer_technologies_h_ //============= // debug techs //============= // Shows camera target in the 3D scene #define ENABLE_SHOW_CAMERA_TARGET 0 // Log debug messages to console when changing selection #define ENABLE_SELECTION_DEBUG_OUTPUT 0 // Renders ...
<commit_before>// Copyright Daniel Wallin 2006. Use, modification and distribution is // subject to 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) #include <libtorrent/sha1_hash.hpp> #include <boost/python.hpp> void bind_sha1_hash() ...
<commit_before>#ifndef _technologies_h_ #define _technologies_h_ //============ // debug techs //============ // Shows camera target in the 3D scene #define ENABLE_SHOW_CAMERA_TARGET 0 // Log debug messages to console when changing selection #define ENABLE_SELECTION_DEBUG_OUTPUT 0 // Renders a small sphere in the cen...
<commit_before>#include <ctime> #include <iostream> #include <iomanip> #include <algorithm> #include "assert.hpp" #include "sta_util.hpp" using std::cout; using std::endl; void identify_constant_gen_fanout_helper(const TimingGraph& tg, const NodeId node_id, std::set<NodeId>& const_gen_fanout_nodes); void identify_clo...
<commit_before>/** * @file midi.cpp * @brief Brief description of file. * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <list> #include <jack/jack.h> #include <jack/midiport.h> #include <pthread.h> #include "midi.h" #include "util/time.h" #include "globals.h" /// al...
<commit_before><commit_msg>RPC: minor fixes to params<commit_after><|endoftext|>
<commit_before>#include <cstring> #include <iostream> #include <UnitTest++.h> #include <TestReporter.h> // Part of UnitTest++ #include <tightdb.hpp> #include <tightdb/utilities.hpp> #include <vector> //#define USE_VLD #if defined(_MSC_VER) && defined(_DEBUG) && defined(USE_VLD) #include "C:\\Program ...
<commit_before>/* * fMBT, free Model Based Testing tool * Copyright (c) 2011,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>// Copyright (C) 2012 Rhys Ulerich // // 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. // // This prog...
<commit_before>/* * Map.cpp * * Created on: 24/01/2014 * Author: drb */ #include "Map.h" #include <fstream> namespace map { Map::Map() { // TODO Auto-generated constructor stub this->textures = nullptr; this->inited = false; } Map::~Map() { // TODO Auto-generated destructor stub unload(); } Map::M...
<commit_before>#include <glog/logging.h> #include <boost/filesystem.hpp> #include <regex> #include <dlfcn.h> #include <iostream> #include <util.h> #include <core/core.h> #include <rules_loader.h> using namespace boost::filesystem; namespace { const std::string dl_symbol = "rules"; std::vector<std::string> so_files(...
<commit_before>#include "scopemeasure.h" #include <cinttypes> #include <sys/time.h> namespace newsboat { ScopeMeasure::ScopeMeasure(const std::string& func, Level ll) : funcname(func) , lvl(ll) { gettimeofday(&tv1, nullptr); } void ScopeMeasure::stopover(const std::string& son) { gettimeofday(&tv2, nullptr); c...
<commit_before>/** * @file * @author Inmatarian <inmatarian@gmail.com> * @section LICENSE * Insert copyright and license information here. */ #include <cassert> #include <SDL.h> #include "defines.h" #include "zstring.h" #include "freezztManager.h" #include "sdlManager.h" #include "sdlEventLoop.h" static void t...
<commit_before>#include "sound3d.h" #include <iostream> using namespace std; int main() { sound3d s; ALCdevice* d = s.get_device(); ALCint num; alcGetIntegerv(d, ALC_NUM_HRTF_SPECIFIERS_SOFT, 1, &num); LPALCGETSTRINGISOFT ags = (LPALCGETSTRINGISOFT)(alcGetProcAddress(d, "alcGetStringiSOFT")); if(!num){ cout << "none" ...
<commit_before>/* This is both a sort of unit test, and a demonstration of how to use deadlock * prevention. * * Suggested compilation command: * c++ -Wall -pedantic -std=c++11 test.cpp -o test -lpthread */ #include <time.h> #include <errno.h> #include <stdio.h> #include <unistd.h> #include <assert.h> #include ...
<commit_before>// -*- mode: c++ -*- /* Copyright (c) 2013, Eddie Kohler * * 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, subject to the conditions * listed in the T...