text
stringlengths
54
60.6k
<commit_before>/*! * \file File componentMovement.cpp * \brief Implementation of the class of component movements present in the game * * The class implemented here provides to the game the speed and type * of movement that a given element can perform * * \sa componentMovement.hpp */ #include <componentMo...
<commit_before>/** * Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free...
<commit_before>#include "Process.hpp" #include "log.hpp" #include "Filesystem.hpp" #include "quote.hpp" #include <boost/config.hpp> #include <boost/algorithm/string/join.hpp> #include <boost/iostreams/stream.hpp> #include <boost/iostreams/device/file_descriptor.hpp> #include <cassert> #include <stdexcept> #if define...
<commit_before>/// \file conn_http_dynamic.cpp /// Contains the main code for the HTTP Dynamic Connector #include <iostream> #include <queue> #include <cstdlib> #include <cstdio> #include <cmath> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <getopt.h> #include <ctime> #include <mist/socket...
<commit_before>/* * Copyright (c) 2012-2021 Daniele Bartolini et al. * License: https://github.com/dbartolini/crown/blob/master/LICENSE */ #pragma once #include "core/math/aabb.inl" #include "core/math/intersection.h" #include "core/math/plane3.inl" namespace crown { /// Functions to manipulate Frustum. /// /// @...
<commit_before>/* This software is released under the BSD License. | | Copyright (c) 2015, Kevin P. Barry [ta0kira@gmail.com] | 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>// @(#)root/graf:$Name: $:$Id: TArc.cxx,v 1.9 2005/11/11 17:31:48 couet Exp $ // Author: Rene Brun 16/10/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. ==...
<commit_before><commit_msg>coverity#705828 Dereference before null check<commit_after><|endoftext|>
<commit_before>#include "boost_test.h" #include "ComplexFixedPoint.h" #include <complex> using namespace std; BOOST_AUTO_TEST_CASE( CFxpConstructors ) { /* Check constructors */ CFxp b(1, -3, 4); BOOST_CHECK_EQUAL(b.width(), 4); BOOST_CHECK_EQUAL(b.real(), 1); BOOST_CHECK_EQUAL(b.imag(), -3); CFxp c(complex<in...
<commit_before><commit_msg>Save coefficient of restitution to JSON.<commit_after><|endoftext|>
<commit_before>/******************************************************************************* Copyright 2018,2019 Google LLC 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 ...
<commit_before>/** \copyright * Copyright (c) 2015, Balazs Racz * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice...
<commit_before>#include <sys/signalfd.h> #include "zlog/zlog.hpp" #include "exemodel/poll_tools.hpp" #include "exemodel/signalee.hpp" namespace exemodel { void mask_signal(int signum) { sigset_t mask; sigemptyset(&mask); sigaddset(&mask, signum); int ret = ::sigprocmask(SIG_BLOCK, &mask, NULL); validate_ret(r...
<commit_before><commit_msg>INTEGRATION: CWS changefileheader (1.18.10); FILE MERGED 2008/04/01 15:44:44 thb 1.18.10.3: #i85898# Stripping all external header guards 2008/04/01 12:43:23 thb 1.18.10.2: #i85898# Stripping all external header guards 2008/03/31 13:01:23 rt 1.18.10.1: #i87441# Change license header to LPGL v...
<commit_before>/* * caosVM_files.cpp * openc2e * * Created by Alyssa Milburn on Sat Aug 13 2005. * Copyright (c) 2005 Alyssa Milburn. All rights reserved. * * 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...
<commit_before>/* * Copyright (c) 2010 Nathaniel McCallum <nathaniel@natemccallum.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>/* * Copyright (c) 2015, Nagoya University * 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>/* * SinglePlayer.cpp * OpenLieroX * * Created by Albert Zeyer on 15.01.10. * code under LGPL * */ #include "SinglePlayer.h" #include "Options.h" #include "ConfigHandler.h" #include "game/Mod.h" #include "game/Level.h" #include "GfxPrimitives.h" #include "DeprecatedGUI/Menu.h" #include "CClie...
<commit_before>/* * mutation_class_test.cc */ #include "mutation_class.h" #include "gtest/gtest.h" #include "dynkin.h" namespace cluster { TEST(MutationClass, A3) { QuiverMatrix mat = dynkin::A3; MutationClass c(mat); EXPECT_TRUE(c.is_finite()); EXPECT_EQ(4, c.size()); EXPECT_TRUE(c.contains(std::make...
<commit_before>#include <Halide.h> #include <stdio.h> #include "clock.h" using namespace Halide; int main(int argc, char **argv) { ImageParam src(UInt(8), 1); Func dst; Var x; dst(x) = src(x); Var xo; dst.split(x, xo, x, 8*4096); // dst.parallel(xo); speeds up halide's memcpy considerabl...
<commit_before> #include <QApplication> #include <QMainWindow> #include <QPushButton> #include <QVBoxLayout> #include "qsoftkeystack.h" class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = 0); ~MainWindow() {} }; MainWindow::MainWindow(QWidget *parent) : QMainWindow(pa...
<commit_before>#include <gtest/gtest.h> #include "PDBSetup.h" #include "MolSetup.h" #include "BondAdjacencyList.h" #include "ConfigSetup.h" #include "FFSetup.h" //For geometry kinds #include "FFConst.h" #include "Reader.h" #include "InputFileReader.h" #include "Simulation.h" #include<unistd.h> #include "MoveSet...
<commit_before>// Copyright 2015 Google Inc. 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 require...
<commit_before>#include "prelude.hpp" #include "park.hpp" #include "builtin/thread.hpp" namespace rubinius { Object* Park::park(STATE, CallFrame* call_frame) { utilities::thread::Mutex::LockGuard lg(mutex_); if(!state->check_async(call_frame)) return NULL; wake_ = false; sleeping_ = true; state-...
<commit_before>/* Copyright 2017 Nervana Systems 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 required by applicable law or agre...
<commit_before>//===--- KeyPaths.cpp - Key path helper symbols ---------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>#include <windows.h> #include <tchar.h> #include <newpluginapi.h> #include <m_langpack.h> #include <m_clist.h> #include <m_skin.h> HINSTANCE hInst = NULL; int hLangpack; PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), "Styx History Synchronizer", PLUGIN_MAKE_VERSION(0, 0, 0, 1), "History synchro...
<commit_before>//! @Alan //! Exercise 10.11: //! Write a program that uses stable_sort and isShorter to sort a vector passed //! to your version of elimDups. //! Print the vector to verify that your program is correct. //! #include <iostream> #include <string> #include <vector> #include <algorithm> #include <numeric> ...
<commit_before>// Bug 564005 - Valgrind errors and crash on exit with Gtk::UIManager // Bug 154498 - Unnecessary warning on console: signalproxy_connectionnode.cc #include <glibmm.h> #include <sigc++/sigc++.h> #include <iostream> #include <stdlib.h> #define ACTIVATE_BUG 1 // A class with its own reference-count, fo...
<commit_before>// Petter Strandmark 2012--2013 // // Test functions from // Jorge J. More, Burton S. Garbow and Kenneth E. Hillstrom, // "Testing unconstrained optimization software", // Transactions on Mathematical Software 7(1):17-41, 1981. // http://www.caam.rice.edu/~zhang/caam454/nls/MGH.pdf // #include <cmath> #i...
<commit_before>#ifndef THREAD_POOL_HPP #define THREAD_POOL_HPP #include <noncopyable.hpp> #include <worker.hpp> #include <atomic> #include <stdexcept> #include <memory> #include <vector> #include <future> #include <type_traits> /** * @brief The ThreadPoolOptions struct provides construction options for ThreadPool. ...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>#include "CTerm.h" #include "CTermTree.h" #include <algorithm> #include <iostream> using namespace std; /* AVL class definition */ template <class T> void CTermTree<T>::rebalance(CTerm<T> *n) { setBalance(n); if (n == NULL) return; if (n->balance == -2) { if (height(n->left->left...
<commit_before>#include "CssWriter.h" CssWriter::CssWriter(ostream* out) { this->out = out; } void CssWriter::writeStylesheet(Stylesheet* s) { vector<AtRule*>* atrules = s->getAtRules(); vector<AtRule*>::iterator aIt; vector<Ruleset*>* rulesets = s->getRulesets(); vector<Ruleset*>::iterator rIt; for (aIt...
<commit_before>/* * Copyright (c) 2015, 2016, Intel Corporation * * 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 lis...
<commit_before>//----------------------------------------------------------------------------- // Jikken - 3D Abstract High Performance Graphics API // Copyright(c) 2017 Jeff Hutchinson // Copyright(c) 2017 Tim Barnes // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software...
<commit_before>// // WulfGame/Game/Game.cpp // Copyright (C) 2012 Lexi Robinson // This code is freely available under the MIT licence. // #include <functional> #include "Game/Game.h" #include "Map/Doors.h" using namespace Wulf; Game::Game(const Difficulty difficulty) : map(nullptr), running(false), dtime(0) , emgr...
<commit_before>#include "Game/Game.h" #include <fstream> #include <string> #include <mutex> #include "Players/Player.h" #include "Game/Board.h" #include "Game/Clock.h" #include "Game/Color.h" #include "Moves/Move.h" #include "Exceptions/Game_Ending_Exception.h" #include "Exceptions/Out_Of_Time_Exception.h" #include ...
<commit_before><commit_msg>Display maximum vram as well.<commit_after><|endoftext|>
<commit_before>#include "FROG/GameState.hpp" #include "FROG/Debug.hpp" namespace frog{ GameState::GameState(AppInfo& _appinfo) : State(), appInfo(_appinfo) { } GameState::~GameState() { } void GameState::enter() { } void GameState::update() { preupdate(); for(auto it = m_gameObje...
<commit_before>#include "HdfReader.h" #include "h5io.h" #include <cstdlib> #include <cassert> // --------------------------------------------------------------------------- cigma::HdfReader::HdfReader() { file_id = -1; } cigma::HdfReader::~HdfReader() { } // -----------------------------------------------------...
<commit_before>#include "HomieNode.hpp" #include "Homie.hpp" using namespace HomieInternals; std::vector<HomieNode*> HomieNode::nodes; PropertyInterface::PropertyInterface() : _property(nullptr) { } void PropertyInterface::settable(PropertyInputHandler inputHandler) { _property->settable(inputHandler); } Propert...
<commit_before>/* $Id: Input.C,v 1.16 2001-12-13 13:53:46 wilsonp Exp $ */ /* (Potential) File sections: * Service: constructors, destructors * Input: functions directly related to input of data * xCheck: functions directly related to cross-checking the input * against itself for consistency and completene...
<commit_before>/* * Fiahil * 03.06.2012 */ #include "JsManager.hpp" JsManager* JsManager::_me = 0; JsManager::JsManager() : _cf(JsMode::LAST, 0) { this->_p1m[gdl::Keys::W] = std::make_pair(JsInput::UP, &JsManager::kUp); this->_p1m[gdl::Keys::A] = std::make_pair(JsInput::LEFT, &JsManager::kLeft); this->_p1...
<commit_before>// $Id$ // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 /************************************************************************** * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full ...
<commit_before>#include "tools/cabana/canmessages.h" #include <QDebug> #include <QSettings> #include "tools/cabana/dbcmanager.h" CANMessages *can = nullptr; CANMessages::CANMessages(QObject *parent) : QObject(parent) { can = this; QObject::connect(this, &CANMessages::received, this, &CANMessages::process, Qt::...
<commit_before>/* * This File is part of Davix, The IO library for HTTP based protocols * Copyright (C) 2013 Adrien Devresse <adrien.devresse@cern.ch>, CERN * * 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...
<commit_before>// Copyright 2017 Google Inc. 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 require...
<commit_before>/************************************************************************* This software allows for filtering in high-dimensional observation and state spaces, as described in M. Wuthrich, P. Pastor, M. Kalakrishnan, J. Bohg, and S. Schaal. Probabilistic Object Tracking using a Range Camera IEEE/RSJ Int...
<commit_before>// /////////////////////////////////////////////////////////////////////////// // tenh/implementation/innerproduct.hpp by Victor Dods, created 2013/09/08 // Copyright Leap Motion Inc. // /////////////////////////////////////////////////////////////////////////// #ifndef TENH_IMPLEMENTATION_INNERPRODUCT_...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Axel Naumann <axel@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser G...
<commit_before>/* Copyright (c) 2017-2019 Hans-Kristian Arntzen * * 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, c...
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see htt...
<commit_before>#include <iostream> #include <clang/AST/ASTConsumer.h> #include <clang/AST/ASTContext.h> #include <clang/AST/RecursiveASTVisitor.h> #include <clang/Rewrite/Core/Rewriter.h> #include <clang/Tooling/CommonOptionsParser.h> #include <clang/Tooling/Tooling.h> class RenameRewriter : public clang::Rewriter { ...
<commit_before>#include <iostream> #include <clang/AST/ASTConsumer.h> #include <clang/AST/ASTContext.h> #include <clang/AST/RecursiveASTVisitor.h> #include <clang/Rewrite/Core/Rewriter.h> #include <clang/Tooling/CommonOptionsParser.h> #include <clang/Tooling/Tooling.h> enum class RenameType { Function, Field ...
<commit_before> // Library includes #include <string> #include <ostream> #include <iostream> #include <memory> #include "grl/KukaFRI.hpp" #include "grl/KukaFriClientData.hpp" #include <boost/log/trivial.hpp> #include <cstdlib> #include <cstring> #include <iostream> #include <boost/asio.hpp> #include <vector> #includ...
<commit_before>/*-------------neuralnet.cpp--------------------------------------------------// * * Neural Net -- A computational model of a neural network * * Purpose: Before building a purely analog circuit with the BIAS project, we * decided to first develop a computational model of how we expe...
<commit_before>//===- llvm-cov.cpp - LLVM coverage tool ----------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before><commit_msg>So assume SwUiWriterTest::testEmbeddedDataSource works on MACOSX now too<commit_after><|endoftext|>
<commit_before>// // Author: NagaChaitanya Vellanki // #include <GLFW/glfw3.h> #include <iostream> #include <string> static float LINE_LENGTH = 10.0f; static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) { glfwSetWindowSh...
<commit_before>/* Copyright (c) 2008-2019 the MRtrix3 contributors. * * 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/. * * Covered Software is provided under this L...
<commit_before>//===-- scudo_tls_linux.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>/* Copyright 2012-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "watchman.h" #include <folly/Synchronized.h> namespace { struct config_state { json_ref global_cfg; w_string global_config_file_path; json_ref arg_cfg; }; folly::Synchronized<config_state> confi...
<commit_before><commit_msg>coverity#1130385 Missing break in switch<commit_after><|endoftext|>
<commit_before>#include <cpp-pcp-client/connector/client_metadata.hpp> #include <cpp-pcp-client/connector/errors.hpp> #define LEATHERMAN_LOGGING_NAMESPACE CPP_PCP_CLIENT_LOGGING_PREFIX".client_metadata" #include <leatherman/logging/logging.hpp> #include <openssl/x509v3.h> #include <openssl/ssl.h> #include <stdio.h>...
<commit_before>#include"../header/QCOstream.hpp" #include<ostream> #include<memory> #include"../header/CQCircuit.hpp" #include"../header/IQBit.hpp" using namespace std; namespace { inline void print_space(ostream &os) { os<<"@"; } inline void print_column(ostream &os) { os<<"x"; } void print_IQBit_or_spac...
<commit_before>//Copyright (C) 2013 David Braam //Copyright (c) 2016 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include "SkirtBrim.h" #include "support.h" namespace cura { void SkirtBrim::getFirstLayerOutline(SliceDataStorage& storage, const unsigned int primary_line_count, co...
<commit_before>// SystemTray.cc // Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net) // // 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 w...
<commit_before>#include "Trackobot.h" #include <QDir> #include <QStandardPaths> #include <QLocalServer> #include <QLocalSocket> #include "Updater.h" #include "Settings.h" #if defined Q_OS_MAC #include "CocoaInitializer.h" #include "SparkleUpdater.h" #elif defined Q_OS_WIN #include "WinSparkleUpdater.h" #elif define...
<commit_before>// RUN: pp-trace -ignore FileChanged,MacroDefined %s -target x86_64 -fms-extensions -w | FileCheck --strict-whitespace %s #pragma comment(compiler, "compiler comment") #pragma comment(exestr, "exestr comment") #pragma comment(lib, "lib comment") #pragma comment(linker, "linker comment") #pragma comment(...
<commit_before>/* * Copyright (C) 2018 Red Hat, Inc. * * Licensed under the GNU Lesser General Public License Version 2.1 * * 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 ...
<commit_before>/* Copyright 2016 Colin Girling 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 or agreed to in writ...
<commit_before>/*! * @file alignment.cpp * * @brief Alignment class source file */ #include <limits> #include <algorithm> #include "node.hpp" #include "edge.hpp" #include "graph.hpp" #include "alignment.hpp" AlignmentParams::AlignmentParams(int16_t m, int16_t mm, int16_t gap_opn, int16_t gap_ext, AlignmentTy...
<commit_before>/* Copyright (c) 2009-2013, 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 ...
<commit_before>/* * Copyright (C) 2016-2017 Rhys Ulerich * * 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/. */ #ifndef DESCENDU_TILE_HPP #define DESCENDU_TILE_HPP ...
<commit_before>// $Id$ // // Test Suite for geos::noding::SegmentPointComparator class. #include <tut.hpp> // geos #include <geos/noding/SegmentNode.h> #include <geos/noding/SegmentString.h> #include <geos/geom/Coordinate.h> #include <geos/geom/CoordinateSequence.h> #include <geos/geom/CoordinateArraySequenceFactory....
<commit_before>#include <cstdio> #include "blifparse.hpp" #include "blif_common.hpp" #include "blif_lexer.hpp" #include "blif_error.hpp" namespace blifparse { //.conn [Extended BLIF] void Callback::conn(std::string src, std::string /*dst*/) { parse_error(-1, src, "Unsupported BLIF extension '.conn'"); } //.cn...
<commit_before>/* * Copyright (C) 2013 * Alessio Sclocco <a.sclocco@vu.nl> * * 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 lat...
<commit_before>#pragma once #include "common.hpp" #include <Prelude/FastList.hpp> #include <Prelude/LinkedList.hpp> #include <Prelude/Allocator.hpp> #include "value.hpp" #include "value-map.hpp" #include "char-array.hpp" #include "classes/object.hpp" #include "allocator.hpp" namespace Mirb { class FreeBlock: public...
<commit_before>/// /// @file pmath.hpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PMATH_HPP #define PMATH_HPP #include <stdint.h> #include <algorithm> #include <cassert> #incl...
<commit_before>#include <iostream> #include <new> #include <stdexcept> #include <vector> #include <memory> #include <mutex> #include <thread> class bitset { public: explicit bitset( size_t size ) /*strong*/; bitset( bitset const & other ) = delete; auto operator =( bitset const & other ) -> bitset & = delete; bits...
<commit_before>/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- */ /* * Copyright 2014 Teclo Networks AG */ #include "connection.h" #include <functional> #include <google/protobuf/text_format.h> #include "io-backend.h" #include "log.h" #include "sequtil.h" #include "strutil.h" TcpFlow::TcpFlow(State* state, Pro...
<commit_before>#pragma once #include <opencv2/core/core.hpp> #include <ctype.h> #include <cmath> namespace sift { const auto IMAGE_DATA_TYPE = CV_8U; typedef uint8_t image_t; const auto GAUSSIAN_PYR_KERNEL_SIZE = 3; // sigma of the gaussian blur kernel const auto GAUSSIAN_PYR_SIGMA0 = std::sq...
<commit_before>/* * Copyright (c) 2003-2016 Rony Shapiro <ronys@pwsafe.org>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ /// \fi...
<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 "db/builder.h" #include "db/filename.h" #include "db/dbformat.h" #include "db/...
<commit_before>/* * Copyright (C) 2007 Marc Boris Duerner * Copyright (C) 2007 Laurentiu-Gheorghe Crisan * * 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 of ...
<commit_before>/* * Copyright (c) 2008-2009, Thomas Jaeger <ThJaeger@gmail.com> * * 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 in all copies. * * THE SOFTWAR...
<commit_before>#include <fstream> #include <iostream> #include <math.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace cv; using namespace std; const double PI = 3.1415926536; const float angle2step = 6875.4935; const float std_z = -270; ...
<commit_before>#pragma once #include <QGLWidget> #include <QOpenGLFunctions> #include <QTime> #include <array> #include <random> #include <memory> #include "textured_rect.hpp" #include "bullet.hpp" #include "space.hpp" #include "unordered_map" #include "images.hpp" class GameWindow; double conste...
<commit_before>#include <Halide.h> #include "image_io.h" #include <time.h> #include <iostream> #include <math.h> using namespace Halide; using namespace std; Var x("x"), y("y"), c("c"), bin("bin"); Var cx("cx"), cy("cy"); Expr pi = (float) M_PI; Func Gradient(Func input) { Func grad("grad"); grad(x, y, c) = Tu...
<commit_before><commit_msg>Fix a race condition in cached_iter evb (#66)<commit_after><|endoftext|>
<commit_before><commit_msg>-Werror,-Wunused-const-variable<commit_after><|endoftext|>
<commit_before><commit_msg>set spacing to output data of vtk image exporter<commit_after><|endoftext|>
<commit_before>// // File: map.cc // Author: ruehle // // Created on April 13, 2007, 4:41 PM // #include "map.h" #include <iostream> #include <tools/matrix.h> #include <tools/tokenizer.h> #include <numeric> using namespace std; Map::~Map() { vector<BeadMap *>::iterator iter; for(iter=_maps.begin();iter!=_...
<commit_before><commit_msg>Add the definition of 'populateData' function and refer to issue #26 Update 3 for more info<commit_after><|endoftext|>
<commit_before>/*############################################################################## Copyright (C) 2011 HPCC Systems. All rights reserved. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Fre...
<commit_before>#include "stdafx.hpp" #include <cfloat> #include <CppUnitTest.h> #include <functional> #include "Geometry/Grassmann.hpp" #include "Geometry/R3Element.hpp" #include "Quantities/Astronomy.hpp" #include "Quantities/BIPM.hpp" #include "Quantities/Constants.hpp" #include "Quantities/Dimensionless.hpp" #in...
<commit_before>/* ** Copyright 2013,2015 Merethis ** ** This file is part of Centreon Broker. ** ** Centreon Broker is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Broker is distribu...
<commit_before>#include "amuse/AudioGroupData.hpp" namespace amuse { IntrusiveAudioGroupData::~IntrusiveAudioGroupData() { if (m_owns) { delete m_pool; delete m_proj; delete m_sdir; delete m_samp; } } IntrusiveAudioGroupData::IntrusiveAudioGroupData(IntrusiveAudioGroupData...