text
stringlengths
54
60.6k
<commit_before>#include <tamer/tamer.hh> #include <sys/select.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> namespace tamer { namespace { class driver_tamer : public driver { public: driver_tamer(); ~driver_tamer(); virtual void at_fd(int fd, int action, const event<> &e); virtual voi...
<commit_before>#include "tangram.h" #include "platform_osx.h" #include "data/clientGeoJsonSource.h" #include "debug/textDisplay.h" #include <cmath> #include <memory> #include <signal.h> #include <stdlib.h> // Forward declaration void init_main_window(bool recreate); std::string sceneFile = "scene.yaml"; GLFWwindow* ...
<commit_before>/* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2011-2016 Phusion Holding B.V. * * "Passenger", "Phusion Passenger" and "Union Station" are registered * trademarks of Phusion Holding B.V. * * Permission is hereby granted, free of charge, to any person obtaining a co...
<commit_before>//----------------------------------------------------------------------------- // HIMG, by Marcus Geelnard, 2015 // // This is free and unencumbered software released into the public domain. // // See LICENSE for details. //----------------------------------------------------------------------------- #...
<commit_before>#include <iostream> #include <fstream> #include <sstream> #include <wordexp.h> #include <ros/ros.h> #include <message_filters/subscriber.h> #include <message_filters/synchronizer.h> #include <message_filters/sync_policies/approximate_time.h> #include <image_transport/image_transport.h> #include <image...
<commit_before>#include "system/state.hh" #include <iostream> #include <fstream> #include "common/array.hh" using namespace divine; namespace divine { class succ_container_t: public divine::array_t<state_t> { public: //!A constructor (only calls a constructor of array_t<state_t> with //! parameters 409...
<commit_before>#ifndef PI #define PI 3.14159265359f #endif #ifndef GLM_FORCE_RADIANS #define GLM_FORCE_RADIANS #define DEGREES_TO_RADIANS(x) (x * PI / 180.0f) #endif #include "world.hpp" #include "shader.hpp" extern GLFWwindow* window; // The "extern" keyword here is to access the variable "window" declared in tutor...
<commit_before>/************************************************************************* * * $RCSfile: mediator.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: vg $ $Date: 2003-04-15 16:17:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2019 Intel Corporation. All Rights Reserved. #include "ds5/ds5-options.h" #include "ds5/ds5-motion.h" #include "synthetic-stream.h" #include "motion-transform.h" namespace librealsense { template<rs2_format FORMAT> void cop...
<commit_before>#include "arch/runtime/runtime.hpp" #include "arch/runtime/starter.hpp" #include "utils.hpp" #include <boost/bind.hpp> #include "arch/runtime/thread_pool.hpp" #include "do_on_thread.hpp" int get_thread_id() { return linux_thread_pool_t::thread_id; } int get_num_threads() { return linux_threa...
<commit_before>#pragma once #include <vector> #include "graph.hpp" namespace simple_graph { template<typename V, typename E> bool bellman_ford(const Graph<V, E> &g, size_t start_idx, size_t goal_idx, std::vector<size_t> *path) { std::vector<size_t> distance(g.vertex_num(), std::numeric_limits<size_t>::max()); ...
<commit_before>// Copyright (c) 2016-2019 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_INTERNAL_ACTION_INPUT_HPP #define TAO_PEGTL_INTERNAL_ACTION_INPUT_HPP #include <cstddef> #include <cstdint> #include <string> #include <string_view> ...
<commit_before>/* ** Author(s): ** - Cedric GESTES <[email protected]> ** ** Copyright (C) 2013 Aldebaran Robotics */ #include <qi/iocolor.hpp> #include <sstream> #include <qi/os.hpp> #if defined(__APPLE__) or defined(__linux__) static std::string makeCol(char c, char modifier = -1) { std::stringstream...
<commit_before>#ifndef CLUSTERING_ADMINISTRATION_ISSUES_JSON_HPP_ #define CLUSTERING_ADMINISTRATION_ISSUES_JSON_HPP_ #include <string> #include "errors.hpp" #include <boost/uuid/uuid.hpp> #include "utils.hpp" #include "http/json/json_adapter.hpp" enum _issue_type_t { VCLOCK_CONFLICT, MACHINE_DOWN, NAME_...
<commit_before>/** * Copyright (c) 2014, Timothy Stack * * 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 ...
<commit_before>// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include <rapidjson/rapidjson.h> #include <rapidjson/filereadstream.h> #include <rapidjson/document.h> #include "Sprite.h" #include "CompileConfig.h" #include "Engine.h" #include "Renderer.h" #include "Texture.h" #include "...
<commit_before>#include "athena/VectorWriter.hpp" #include <cstdio> #include <cstring> #include <vector> #include <iostream> namespace athena::io { void VectorWriter::seek(atInt64 position, SeekOrigin origin) { switch (origin) { case SeekOrigin::Begin: if (position < 0) { atEr...
<commit_before>// Copyright (c) 2011 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 "net/base/net_errors.h" #include <winsock2.h> #include "base/logging.h" namespace net { // Map winsock error to Chromium e...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Axel Naumann <[email protected]> // // 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>//filename: Balanced.cpp #include "StackType.h" #include <iostream> using namespace std; bool IsOpen(char symbol); bool IsClosed(char symbol); bool Matches(char symbol, char openSymbol); int main() { char symbol; StackType stack; bool balanced = true; char openSymbol; cout << "Enter an ex...
<commit_before>/* * Copyright (C) 2008-2011 The QXmpp developers * * Author: * Olivier Goffart <[email protected]> * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GN...
<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...
<commit_before>// Copyright 2022 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "iree/compiler/Codegen/LLVMGPU/LLVMGPUUtils.h" #include "iree/compiler/Co...
<commit_before>#include "Task.h" #include <ESP8266WiFi.h> #include "ThingSpeak.h" #include "Setting.h" #define LED_FIELD 1 #define FAN_FIELD 2 #define WATER_PUMP_FIELD 3 #define COOLER_FIELD 4 #define HEATER_FIELD 5 #define VALUE_CONTROL_FOR_DEVICE(device, controlVal, maxValOfDevi...
<commit_before>/* bzflag * Copyright (c) 1993-2011 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *...
<commit_before>/** ========================================================================== * 2011 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes * with no warranties. This code is yours to share, use and modify with no * strings attached and no restrictions or obligations. * * For more ...
<commit_before>#include "convergence/final_flux_or_n.h" #include <memory> #include <optional> #include "convergence/status.h" #include "convergence/flux/tests/multi_checker_mock.h" #include "data/system_fluxes.h" #include "test_helpers/test_helper_functions.h" #include "test_helpers/gmock_wrapper.h" using ::testing:...
<commit_before>/* * FileMode.hpp * * Copyright (C) 2009-12 by RStudio, PBC * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General Publi...
<commit_before>#include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include <nav_msgs/OccupancyGrid.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl_ros/point_cloud.h> #include <tf/transform_listener.h> #include <pcl_ros/transforms.h> #include <cmath> typedef pcl::PointCloud<pcl::PointXYZ> PointClou...
<commit_before>/* This file is part of KAddressBook. Copyright (c) 2004 Tobias Koenig <[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 version 2 of the Licen...
<commit_before>/* This file is part of the KDE project Copyright (C) 2001 Christoph Cullmann <[email protected]> Copyright (C) 2001 Joseph Wenninger <[email protected]> Copyright (C) 2001, 2004 Anders Lund <[email protected]> Copyright (C) 2007-2008 Dominik Haumann <dhaumann kde org> Copyright (C) ...
<commit_before>/* * perspective.cpp * * Created on: 2016年12月23日 * Author: zhuqian */ #include "raiden.h" #include "perspective.h" #include "sampling.h" #include "paramset.h" #include "film.h" PerspectiveCamera::PerspectiveCamera(const Transform& c2w, const Bound2f& screenWindow, Float shutterOpen, Float sh...
<commit_before><commit_msg>fix travis<commit_after>float sum(float a, float b) { return a+b; } <|endoftext|>
<commit_before>/******************************************************************************\ This file is part of the C! library. A.K.A the cbang library. Copyright (c) 2003-2014, Cauldron Development LLC Copyright (c) 2003-2014, Stanford University ...
<commit_before>//------------------------------------------------------------------------------ // imgui-d3d11.cc // Dear ImGui integration sample with D3D11 backend. //------------------------------------------------------------------------------ #include "d3d11entry.h" #define SOKOL_IMPL #define SOKOL_D3D11 #define...
<commit_before>//=====================================================================// /*! @file @brief RX メイン @author 平松邦仁 ([email protected]) */ //=====================================================================// #include <cstdint> #include <cmath> #include "main.hpp" #include "rx/rx63x/system.hpp" #...
<commit_before>/* * Copyright (c) 2014—2016 David Wicks, sansumbrella.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: * * Redistributions of source code must retain the above copyrig...
<commit_before>/********************************************************************* # Copyright (c) 2013-2015, Rethink Robotics # 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. Redi...
<commit_before>/* This file is part of the Cagibi daemon, part of the KDE project. Copyright 2010 Friedrich W. H. Kossebau <[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 ...
<commit_before>//======================================================================= // Copyright (c) 2014-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>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ // vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s /* * Copyright (C) FFLAS-FFPACK * Written by Pascal Giorgi <[email protected]> * * This file is Free Software and part of FFLAS-FFPACK. * * ========LI...
<commit_before>/** * @file */ #include "bi/io/cpp/CppClassGenerator.hpp" #include "bi/io/cpp/CppResumeGenerator.hpp" #include "bi/visitor/Gatherer.hpp" #include "bi/primitive/encode.hpp" bi::CppClassGenerator::CppClassGenerator(std::ostream& base, const int level, const bool header, const bool generic, const Cl...
<commit_before>/* * Copyright (c) 2011-2013 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>/*********************************************************************** test/string.cpp - Tests the behavior of mysqlpp::String, particularly its data conversion methods. Copyright (c) 2007-2008 by Educational Technology Resources, Inc. Others may also hold copyrights on code in this file. See the...
<commit_before>#include "Math/Polynomial.h" #include "Math/Derivator.h" #include "Math/IFunction.h" #include "Math/Functor.h" #include "Math/WrappedFunction.h" #include "Math/WrappedParamFunction.h" #include <iostream> #include <vector> #include <cassert> #include <cmath> #ifdef HAVE_ROOTLIBS #include "TStopwatch.h" ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
<commit_before>#include <nan.h> #include "../kv-types.h" #include "env.h" #include "txn.h" #include "db.h" using namespace v8; using namespace kv; using namespace kv::lmdb; template<class T> int mdb_cmp_fn(const MDB_val *a, const MDB_val *b) { T ta((const char*)a->mv_data, a->mv_size), tb((const char*)b->mv_data, ...
<commit_before>// ============================================================================= // Event Class for .NET Style Events // by Clint Caywood // February 18, 2010 // ============================================================================= #ifndef EVENT_HPP #define EVENT_HPP #include <vector> #include ...
<commit_before> #include "logging.h" #include <stdio.h> /* printf, fopen */ #include <stdarg.h> /* va_args */ #include <string.h> /* memcpy */ #include <time.h> /* time_t */ static const char* loglevel2string (const enum TCAM_LOG_LEVEL level) { switch (level) ...
<commit_before> #include "idTable.h" // @Author: Vik Singh // @Date: 12/30/2004 // CLASS Id Id::Id (IdTable * table) { this->table = table; } Id::Id (const u_int32_t * num, IdTable * table) { for (int i = 0; i < 5; i += 1) key[i] = *(num + i); this->table = table; } Id::Id (const std::string& idString, IdT...
<commit_before>/* Calf DSP Library * RDF file generator for LADSPA plugins. * Copyright (C) 2007 Krzysztof Foltman * * This program 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 * versio...
<commit_before><commit_msg>am c2bb5391: Merge "Use GetEntryPointFromQuickCompiledCode instead of GetQuickOatCodeOffset"<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2011, Jon Maken * License: 3-clause BSD * Revision: 12/09/2011 2:36:08 PM * * Example: * * HiRes::Statistics<double> stats = * for_each(istream_iterator<double>(cin), * istream_iterator<double><(), * HiRes::Statistics<double>());...
<commit_before>/* Copyright (c) 2013, David C Horton 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, modify, merge, publi...
<commit_before>/* * Copyright (C) 2009 Toni Gundogdu. * * This file is part of cclive. * * cclive 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) an...
<commit_before>#include "config.h" #include <algorithm> #include <functional> #include "http_client.h" #include "exception.h" #include <cinttypes> #ifndef HAVE_LIBCURL #include "buffered_socket.h" #else #include <cstring> #endif namespace arg3 { namespace net { #define THIS_USER_AGENT "libarg3net" #ifdef HA...
<commit_before>/* * This file is part of Poedit (http://poedit.net) * * Copyright (C) 2015 Vaclav Slavik * * 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, inc...
<commit_before>#include <string> #include <fstream> #include <iostream> #include <utility> #include <cstdio> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/ptrace.h> #include <sys/wait.h> #include <sys/user.h> #include "dwarf/dwarf++.hh" #include "elf/elf++.hh" #include "linenoise.h" clas...
<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>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include <iostream> #include "process_curve.h" #include "init_curves.h" #include "spline.h" #define BORDER 100 using namespace std; // Resolution: the number of discrete line segments in each curve. // numPoints: the number of points to plot; number of splines is // thus numPoints - 2. //...
<commit_before>// // inpal_prime.cpp // InversePalindrome // // Created by Bryan Triana on 7/13/16. // Copyright © 2016 Inverse Palindrome. All rights reserved. // #include "inpal_prime.hpp" #include <cmath> #include <vector> #include <string> #include <algorithm> std::vector<std::size_t> inpal::prime::prime_li...
<commit_before>// // inpal_prime.cpp // Inverse Palindrome Library // // Created by Bryan Triana on 7/21/16. // Copyright © 2016 Inverse Palindrome. All rights reserved. // #include "inpal_prime.hpp" #include "inpal_algorithm.hpp" std::vector<std::size_t> inpal::prime::prime_list(std::size_t range) { const ...
<commit_before>#include <semaphore.h> #include <fcntl.h> #include <sys/stat.h> #include <mist/defines.h> #include "input.h" #include <sstream> #include <fstream> #include <iterator> namespace Mist { Input * Input::singleton = NULL; void Input::userCallback(char * data, size_t len, unsigned int id){ for (in...
<commit_before>#include <cstdlib> #include <cstdarg> #include <boost/asio.hpp> #include <boost/bind.hpp> #include "perf.hpp" #include "iproto.hpp" #include "iproto_conn.hpp" #define LOG_DEBUG 0 namespace IProto { int stderr_printf(char const* format, ...) { va_list args; va_start(args, format); int result = vfpri...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */ #include "job.h" #include <cassert> #include <cstdio> #include <cstring> #include <iostream> #include <memory> #include <sstream> #include <string> #define BOOST_FILESYSTEM_NO_DEPRECATED #include...
<commit_before>/** * Copyright 2017 Shusheng Shao <[email protected]> * * 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 r...
<commit_before>#include "UpdateDialogGtkFactory.h" #include "FileUtils.h" #include "Log.h" #include "UpdateDialog.h" #include "StringUtils.h" #include <dlfcn.h> #include <errno.h> #include <fcntl.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> class UpdateDialogGtk; // GTK updater UI library embedd...
<commit_before>/* Dorm LED Project: led_desk_anim_cmds.cpp This file contains the desk LED animation commands. These are meant to be executed using the multithreaded system. Note: First element in the var stack is to store number of complete executions (resetable). Created by: Michael Fischler 10/22/2016 ...
<commit_before>// Copyright (c) 2020 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #include "qt/pivx/balancebubble.h" #include "qt/pivx/forms/ui_balancebubble.h" #include "qt/pivx/qtutils.h" #include <QG...
<commit_before>/** * @note HEADER-ONLY IMPLEMENTATION FILE * @warn Do not include directly */ // FFNN #include <ffnn/assert.h> #include <ffnn/logging.h> #include <ffnn/layer/activation.h> namespace ffnn { namespace optimizer { template<> template<typename ValueType, template<class> class NeuronType, ...
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit) * Copyright (C) 2006 Artem Pavlenko * * Mapnik 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 an...
<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>#include <nan.h> #include <node.h> #include <string> #include <cstring> #include "../include/str_array_converter.h" #include "git2/strarray.h" using namespace v8; using namespace node; git_strarray *StrArrayConverter::Convert(Local<v8::Value> val) { if (!Nan::To<bool>(val).FromJust()) { return N...
<commit_before>/******************************************************************************/ /** @file @author Scott Fazackerley @brief Wraps the Arduino Serial object and provides a simple printf implementation for C. @copyright Copyright 2016 The University of British Columbia, IonDB Project Contribut...
<commit_before>/* This file is part of Ingen. Copyright 2007-2015 David Robillard <http://drobilla.net/> Ingen 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 ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/workarounds/dp16...
<commit_before>// Copyright (c) 2009 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 "media/base/video_frame_impl.h" #include "media/filters/ffmpeg_common.h" #include "media/filters/ffmpeg_demuxer.h" #include "...
<commit_before>#include <assert.h> #include <mutex> #include <chrono> #include <thread> #include <mutex> #include <condition_variable> #include "core.hpp" #include "audio.hpp" #include "dsp/samplerate.hpp" #include "dsp/ringbuffer.hpp" #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsuggest-override" #in...
<commit_before>#include "chrono_parallel/collision/ChCCollisionSystemBulletParallel.h" namespace chrono { namespace collision { /* void defaultChronoNearCallback(btBroadphasePair& collisionPair, btCollisionDispatcher& dispatcher, btDispatcherInfo& dispatchInfo) { btCollisionDispatcher::defaultNearCallback(collisi...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>#include <vtkVersion.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkImageImport.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkInteractorStyleImage.h> #include <vtkXMLImageDataWriter.h> int m...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICE...
<commit_before>/************************************************************************** The MIT License (MIT) Copyright (c) 2015 Dmitry Sovetov https://github.com/dmsovetov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 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 "training/graph_group_sync.h" namespace marian { SyncGraphGroup::SyncGraphGroup(Ptr<Config> config) : GraphGroup(config), ExponentialSmoothing{options_->get<float>("exponential-smoothing")}, delay_{options_->get<size_t>("optimizer-delay")} { // @TODO: rename to something else; ...
<commit_before>// // // inline bool no_such_file() { return no_file; }; <commit_msg>Delete file_system__no_such_file.cpp<commit_after><|endoftext|>
<commit_before>#include "videosourcefactory.h" namespace gg { VideoSourceFactory VideoSourceFactory::_factory_singleton; VideoSourceFactory::VideoSourceFactory() { // TODO } VideoSourceFactory::~VideoSourceFactory() { // TODO } VideoSourceFactory & VideoSourceFactory::get_instance() { return _factory_s...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under 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) //======================================...
<commit_before>#include "mainwindow.h" #include <QLabel> #include <QDockWidget> #include <QSettings> #include <QAction> #include <QMenuBar> #include <QMenu> #include <QFile> #include <QMessageBox> #include <QFileDialog> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { // menu - file QMenu ...
<commit_before>#include <vector> #include <iostream> #include <algorithm> #include <limits> using namespace std; #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include "treehash/boosted-treehash.hh" extern "C" { #include "timers.h" } void fill_random(uint64_...
<commit_before>/* bzflag * Copyright (c) 1993 - 2008 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>#include "Value.h" #include <sstream> #include <cassert> namespace libol { Value Value::create(Object &val) { Value value; value.type = OBJECT; value.value = new Object(val); return value; } Value Value::create(Array &val) { Value value; valu...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sddlgfact.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-09 04:18:42 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fuoltext.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: obo $ $Date: 2006-09-16 18:52:52 $ * * The Contents of this file are mad...
<commit_before><commit_msg>coverity#705876 Dereference before null check<commit_after><|endoftext|>
<commit_before><commit_msg>-Werror,-Wunused-const-variable<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: presvish.cxx,v $ * * $Revision: 1.26 $ * * last change: $Author: vg $ $Date: 2005-03-23 14:05:38 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>// Copyright Daniel Wallin, Arvid Norberg 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/session.hpp> #include <libtorrent/torrent.hpp> #inc...