text
stringlengths
54
60.6k
<commit_before>ab5185f8-327f-11e5-a128-9cf387a8033e<commit_msg>ab57d7c7-327f-11e5-b92f-9cf387a8033e<commit_after>ab57d7c7-327f-11e5-b92f-9cf387a8033e<|endoftext|>
<commit_before>6cba3d7a-2d3d-11e5-8550-c82a142b6f9b<commit_msg>6d17fc6e-2d3d-11e5-8d5a-c82a142b6f9b<commit_after>6d17fc6e-2d3d-11e5-8d5a-c82a142b6f9b<|endoftext|>
<commit_before>#include <iostream> #include <vector> #include <map> #include <fstream> #include <string> #include <iterator> #include <functional> #include <algorithm> #include <deque> #include <sstream> std::string trim_begin(const std::string& str) { auto alpha = std::find_if_not(str.begin(), str.end...
<commit_before>1d75799c-2d3e-11e5-af27-c82a142b6f9b<commit_msg>1e0308c0-2d3e-11e5-bfb3-c82a142b6f9b<commit_after>1e0308c0-2d3e-11e5-bfb3-c82a142b6f9b<|endoftext|>
<commit_before>231ba5b8-585b-11e5-beda-6c40088e03e4<commit_msg>23224878-585b-11e5-80d0-6c40088e03e4<commit_after>23224878-585b-11e5-80d0-6c40088e03e4<|endoftext|>
<commit_before>b90808b8-35ca-11e5-96f6-6c40088e03e4<commit_msg>b90eb076-35ca-11e5-954f-6c40088e03e4<commit_after>b90eb076-35ca-11e5-954f-6c40088e03e4<|endoftext|>
<commit_before>1f9c42c8-585b-11e5-81e0-6c40088e03e4<commit_msg>1fa46ed8-585b-11e5-a32f-6c40088e03e4<commit_after>1fa46ed8-585b-11e5-a32f-6c40088e03e4<|endoftext|>
<commit_before>891be399-4b02-11e5-a396-28cfe9171a43<commit_msg>For bobby to integrate at some point<commit_after>892ab59e-4b02-11e5-8855-28cfe9171a43<|endoftext|>
<commit_before>#include <iostream> #include <unistd.h> #include <getopt.h> #include <cstring> #include <cstdlib> #include "util.h" #include "sniffer.h" using namespace std; static int verbose_flag = 0; static int debug_flag = 0; static int help_flag = 0; static char * interface = 0; int main(int argc, char ** argv) ...
<commit_before>2f757e88-5216-11e5-bcfc-6c40088e03e4<commit_msg>2f7d1882-5216-11e5-986c-6c40088e03e4<commit_after>2f7d1882-5216-11e5-986c-6c40088e03e4<|endoftext|>
<commit_before>c2bbd808-35ca-11e5-b3bc-6c40088e03e4<commit_msg>c2c28a4a-35ca-11e5-a207-6c40088e03e4<commit_after>c2c28a4a-35ca-11e5-a207-6c40088e03e4<|endoftext|>
<commit_before>d4f6a65e-313a-11e5-b0d7-3c15c2e10482<commit_msg>d4fca9a1-313a-11e5-a09a-3c15c2e10482<commit_after>d4fca9a1-313a-11e5-a09a-3c15c2e10482<|endoftext|>
<commit_before>0930d1d4-2f67-11e5-a078-6c40088e03e4<commit_msg>0937c0b8-2f67-11e5-8f4a-6c40088e03e4<commit_after>0937c0b8-2f67-11e5-8f4a-6c40088e03e4<|endoftext|>
<commit_before>81cf0e5f-2d15-11e5-af21-0401358ea401<commit_msg>81cf0e60-2d15-11e5-af21-0401358ea401<commit_after>81cf0e60-2d15-11e5-af21-0401358ea401<|endoftext|>
<commit_before>7d3665e3-4b02-11e5-8256-28cfe9171a43<commit_msg>Did ANOTHER thing<commit_after>7d43ef97-4b02-11e5-bdf2-28cfe9171a43<|endoftext|>
<commit_before>#include <iostream> #include "named_param_map.hpp" constexpr bool constexpr_strequal(char const *one, char const *two) { return (*one && *two) ? (*one == *two && constexpr_strequal(one + 1, two + 1)) : (!*one && !*two); } template<typename NP0> auto collect(NP0&& first) -> named_param_ma...
<commit_before>4296d9a1-2748-11e6-bbc5-e0f84713e7b8<commit_msg>Now it no longer crashes if X<commit_after>42c747fd-2748-11e6-bfd9-e0f84713e7b8<|endoftext|>
<commit_before>d3ded98c-585a-11e5-ba73-6c40088e03e4<commit_msg>d3e891fe-585a-11e5-b491-6c40088e03e4<commit_after>d3e891fe-585a-11e5-b491-6c40088e03e4<|endoftext|>
<commit_before>#include "Observador.h" Observador::Observador() { m_enviados=0; m_recibidos=0; m_perdidos=0; m_QoS=0; m_usuarios=0; } Observador::~Observador() { } void Observador::PktEnviado(Pkt<Const Packet>paquete); { t_enviado=Simulator::Now(); m_enviados=m_enviados++ uint64_t id = paquete->Get...
<commit_before>#pragma once #include <vector> #include "timing_graph_fwd.hpp" #include "timing_constraints_fwd.hpp" #include "analysis_types.hpp" class TimingTags; struct ta_runtime; /* * TimingAnalyzer represents a interface class for all timing analyzers */ template<class AnalysisType, class DelayCalcType> clas...
<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>/* * CPatcher.cpp * * Created on: 19.07.2009 * Author: gerstrong */ #include "CPatcher.h" #include <dirent.h> #include <string.h> #include <fstream> #include "../FindFile.h" #include "../StringUtils.h" CPatcher::CPatcher(int episode, int version,unsigned char *data, const std::string& datadi...
<commit_before><commit_msg>Fix NULL_RETURN defect found by Coverity.<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * 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 "Application.h" #include "Module.h" #include "ModuleScripting.h" #include "ModuleAudio.h" #include "ModuleCamera3D.h" #include "ModuleFileSystem.h" #include "ModuleGOManager.h" #include "ModuleInput.h" #include "ModuleSceneIntro.h" #include "ModuleLighting.h" #include "ModulePhysics3D.h" #inclu...
<commit_before>#include <QPainter> #include <QTimer> #include "CommentLib.h" #include "AssassinWar.h" #include "MapLoader.h" AssassinWar::AssassinWar(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags), m_pRepaintTimer(NULL) { ui.setupUi(this); MapLoader mapLoader; QWidget* pMapWid...
<commit_before>#include<iostream> #include <vector> using namespace std; class Floor { protected: string name; int sizeSqFt; vector<string> features; public: }; <commit_msg>Updated room class<commit_after>#include<iostream> #include <vector> using namespace std; class Room { protected: string name; ...
<commit_before>// $Id$ // Category: geometry // // See the class description in the header file. #include "AliModulesCompositionMessenger.h" #include "AliModulesComposition.h" #include "AliGlobals.h" #include <G4UIdirectory.hh> #include <G4UIcmdWithAString.hh> #include <G4UIcmdWithoutParameter.hh> #include <G4UIcmdWi...
<commit_before>#include "Iop_SubSystem.h" #include "../MemoryStateFile.h" #include "../Ps2Const.h" #include "../Log.h" #include "placeholder_def.h" using namespace Iop; using namespace PS2; #define LOG_NAME ("iop_subsystem") #define STATE_CPU ("iop_cpu") #define STATE_RAM ("iop_ram") #define STATE_SCR...
<commit_before>#include "queuemanager.h" #include "rdkafka.h" QueueManager::QueueManager(rd_kafka_t *rk) : rk_(rk) { } QueueManager::~QueueManager() { ASSERT(queues_.empty()); } void QueueManager::add(rd_kafka_queue_t* queue) { CritScope ss(&crt_); ASSERT(queues_.find(queue) == queues_.end()); //re...
<commit_before>#include "FileSystem.h" #ifdef _WIN32 #include "windows.h" #endif #ifdef __unix__ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #endif #include <iostream> namespace StiGame { namespace FS { FileSystem::FileSystem() { } #ifdef __unix__ //POSIX implementation s...
<commit_before>/* * Copyright (c) 2018, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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.or...
<commit_before>/* This file is part of the Rendering library. Copyright (C) 2007-2012 Benjamin Eikel <benjamin@eikel.org> Copyright (C) 2007-2012 Claudius Jähn <claudius@uni-paderborn.de> Copyright (C) 2007-2012 Ralf Petring <ralf@petring.net> This library is subject to the terms of the Mozilla Public License, v...
<commit_before><commit_msg>re-fix example<commit_after><|endoftext|>
<commit_before>/*********************************************************************** OpenSync Plugin for KDE 3.x Copyright (C) 2004 Stewart Heitmann <sheitmann@users.sourceforge.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 ...
<commit_before>#pragma once #include <exception> #include <string> class SensorBuildException : public std::exception { public: SensorBuildException(const std::string& message) : message(message) { } virtual const char* what() const noexcept override { return message.c_str(); } p...
<commit_before>/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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>// @(#)root/tmva $Id$ // Author: Kim Albertsson /************************************************************************* * Copyright (C) 2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/* httprequest.cpp * Copyright (C) 2003-2005 Tommi Maekitalo * * 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 the License, or (at your option...
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/observable.h> #include <set> #include <unordered_set> class ObservableTest: public testing::Test {}; TEST_F(ObservableTest, SimpleAssignmentCheck) { autowiring::observable<int> ob; bool hit...
<commit_before>/* * mmvtkmDataRenderer.cpp * * Copyright (C) 2018 by VISUS (Universitaet Stuttgart) * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "mmvtkm/mmvtkmRenderer.h" #include "mmvtkm/mmvtkmDataCall.h" #include "vtkm/io/reader/VTKDataSetReader.h" //#define VTKM_DEVICE_ADAPTER VTKM_DEVICE_ADAPTE...
<commit_before>/* bzflag * Copyright (c) 1993-2015 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>#include <stdlib.h> #include <unistd.h> #include <string> #include <cmath> #include <iostream> #include <wiringSerial.h> #include "Hardware.h" #define LENGTH_ONE 11.5 #define LENGTH_TWO 16.0 #define I_MIN_VAL 0 #define I_MAX_VAL 1023 #define I_MIN_ANG -65 #define I_MAX_ANG 65 #define J_MIN_VAL 230 #d...
<commit_before>/* * main.cpp * * Copyright (C) ST-Ericsson SA 2011 * Authors: Srimanta Panda <srimanta.panda@stericsson.com>, * Ola Borgelin <ola.borgelin@stericsson.com>, * Karin Hedlund <karin.hedlund@stericsson.com>, * Markus Andersson <markus.m.andersson@stericsson.com> for ST-Eric...
<commit_before>#include <tuple> #include "acmacs-base/enumerate.hh" #include "acmacs-base/fmt.hh" #include "acmacs-base/read-file.hh" #include "acmacs-base/filesystem.hh" #include "acmacs-base/quicklook.hh" #include "seqdb-3/compare.hh" #include "acmacs-map-draw/mod-amino-acids.hh" #include "acmacs-map-draw/draw.hh" #...
<commit_before>#include <chrono> #include <iostream> #include <stdio.h> #include "uvpp_udp.hpp" int main(int argc, char *argv[]) { struct sockaddr_in saddr; uv_ip4_addr("239.255.255.1", 12345, &saddr); uvpp::Loop uvloop; uvpp::Signal sigint(uvloop); sigint.set_callback([&uvloop](){ uvloo...
<commit_before>#ifndef ELEKTRA_KDBTHREAD_HPP #define ELEKTRA_KDBTHREAD_HPP #include <kdbcontext.hpp> #include <kdb.hpp> #include <mutex> #include <thread> #include <vector> #include <cassert> #include <algorithm> #include <functional> #include <unordered_map> namespace kdb { /// Subject from Observer pattern for T...
<commit_before>// // ConfigImpl.cpp #include "common/RhoStd.h" #include "common/AutoPointer.h" #include "common/RhodesApp.h" #include "common/RhoConf.h" #include "generated/cpp/ConfigBase.h" #include "logging/RhoLog.h" namespace rho { using namespace apiGenerator; using namespace common; class C...
<commit_before>// // oexpand.cpp // // Created by Edmund Kapusniak on 29/10/2014. // Copyright (c) 2014 Edmund Kapusniak. All rights reserved. // #include "oexpand.h" ometatype oexpand::metatype = { &mark_expand, "object" }; oexpand* oexpand::alloc() { void* p = malloc( sizeof( oexpand ) ); return new...
<commit_before>/* Copyright 2015-2020 Igor Petrovic 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 i...
<commit_before>#include <cstdint> #include <kernel/definitions.hpp> #include <kernel/cpu/common.hpp> #include <kernel/vfs/vfs.hpp> #include <kernel/vfs/file.hpp> #include <kernel/vfs/ramfs.hpp> #include <kernel/vfs/cache.hpp> #include <yatf.h> TEST(cache, new_cache_is_empty) { vfs::cache c; REQUIRE(c.empty())...
<commit_before>#ifndef __BUFFER_CACHE_SEMANTIC_CHECKING_HPP__ #define __BUFFER_CACHE_SEMANTIC_CHECKING_HPP__ #include "buffer_cache/types.hpp" #include "utils.hpp" #include <boost/crc.hpp> #include "containers/two_level_array.hpp" #include "buffer_cache/buf_patch.hpp" #include "serializer/serializer.hpp" // TODO: Hav...
<commit_before>/* * Copyright (c) 2015, 2016, 2017, 2018, 2019, 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 * ...
<commit_before>/* * Licensed under the MIT License (MIT) * * Copyright (c) 2013 AudioScience Inc. * * 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 witho...
<commit_before>#include "SocketSession.h" #include "fxtimer.h" #include "fxdb.h" #include "fxmeta.h" #include "PlayerSession.h" #include "ServerSession.h" #include "GameServer.h" #include <signal.h> #include "gflags/gflags.h" unsigned int g_dwPort = 20000; bool g_bRun = true; DEFINE_uint32(server_id, 30001, "server ...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributi...
<commit_before>#include <drivers/mpu6000.hpp> #include <hal.h> #include <hal_config.hpp> MPU6000::MPU6000(SPIDriver *spid, const SPIConfig *spicfg) : spid(spid), spicfg(spicfg) { } void MPU6000::init() { uint8_t txbuf[8], rxbuf[8]; // Start bus chMtxLock(&spi_mtx); spiAcquireBus(spid); spiStart(spid, spi...
<commit_before>/******************************************************************************\ This file is part of the C! library. A.K.A the cbang library. Copyright (c) 2003-2015, Cauldron Development LLC Copyright (c) 2003-2015, Stanford University ...
<commit_before><commit_msg>fdo#74595 Make HTML detection to follow specs<commit_after><|endoftext|>
<commit_before>/*********************************************************************** custom1.cpp - Example very similar to simple1, except that it accesses the query results through a Specialized SQL Structure instead of through Row objects. Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by My...
<commit_before>#include <libtorrent/enum_net.hpp> #include <libtorrent/socket.hpp> #include <libtorrent/broadcast_socket.hpp> #include <vector> using namespace libtorrent; int main() { io_service ios; asio::error_code ec; std::vector<ip_interface> const& net = enum_net_interfaces(ios, ec); for (std::vector<ip_in...
<commit_before>#include "State.h" #include <fstream> #include "Configuration.h" #include "utils/BencodeWriter.h" #include "utils/BencodeParser.h" mtt::TorrentState::TorrentState(std::vector<uint8_t>& p) : pieces(p) { } void mtt::TorrentState::save(const std::string& name) { auto folderPath = mtt::config::getInterna...
<commit_before>#include <iostream> #include <vpp/vpp.hh> int main() { using vpp::image2d; using vpp::vint2; using vpp::make_box2d; image2d<int> img1(make_box2d(100, 200)); image2d<int> img2({100, 200}); assert(img1.domain() == img2.domain()); assert(img1.nrows() == 100); assert(img1.ncols() == 200);...
<commit_before>/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include <python/helpers/pystream.h> #include <python/helpers/python_convert_o...
<commit_before>//===-- BuildDB-C-API.cpp ---------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2019 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.or...
<commit_before>#include "stm32f4xx_hal.h" #include "stm32f4xx.h" #include "stm32f4xx_it.h" #include "dcf77.h" #include "cRCSwitch.h" #include "cBsp.h" #include "cMaster.h" extern volatile uint8_t UART_buffer_pointer; extern volatile uint8_t UART_cmdBuffer[100]; static uint64_t lastReceivedUARTChar=0; static bool bina...
<commit_before>#include "SCTPSocket.h" #include "TempFailure.h" #include "SocketUtils.h" #include <netinet/in.h> #include <poll.h> #include <cstring> using namespace NET; SCTPSocket::SCTPSocket( unsigned numOutStreams /* = 10 */, unsigned maxInStreams /* = 65535 */, un...
<commit_before>#include "aquila/global.h" #include "aquila/functions.h" #include "aquila/ml/Dtw.h" #include <unittestpp.h> #include <vector> SUITE(Dtw) { TEST(DistanceToItself) { const std::size_t SIZE = 3; double arr1[SIZE] = {0, 1, 2}, arr2[SIZE] = {1, 2, 3}; std::vector<double> v1(a...
<commit_before> // $Id$ /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * ...
<commit_before>#include "binson.hpp" #include <binson_light.h> #include <string.h> #include <stdexcept> using namespace std; Binson & Binson::put(const std::string &key, const BinsonValue &v) { m_items[key] = move(v); return *this; } Binson & Binson::put(const std::string &key, Binson o) { m_items[key]...
<commit_before>#include <gtest/gtest.h> #include <zmq.hpp> #if defined(ZMQ_CPP11) && defined(ZMQ_BUILD_DRAFT_API) #include <array> TEST(poller, create_destroy) { zmq::poller_t poller; ASSERT_EQ(0u, poller.size ()); } static_assert(!std::is_copy_constructible<zmq::poller_t>::value, "poller_t should not be ...
<commit_before>// Source : https://leetcode.com/problems/maximum-gap/ // Author : Yijing Bai // Date : 2016-04-03 /********************************************************************************** * * Given an unsorted array, find the maximum difference between the successive elements * in its sorted form. *...
<commit_before>/* * Copyright (c) 2014-2016, imec * All rights reserved. */ #include <random> #include <memory> #include <cstdio> #include <iostream> #include <climits> #include <stdexcept> #include <cmath> #include "error.h" #include "bpmf.h" #include "io.h" static const bool measure_perf = false; std::ostream...
<commit_before>#include "Model.h" #include <tiny_obj_loader.h> #include <vector> static const char* g_vertexShaderSource = R"(#version 150 in vec3 Position; in vec3 Normal; in vec2 TexCoord0; uniform mat4 uWorldMatrix; uniform mat4 uViewProjMatrix; out vec3 vWorldNormal; out vec2 vTexCoord0; out vec3 vWorldPositio...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: nbdll.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-08 16:33:14 $ * * The Contents of this file are made ava...
<commit_before>#include <ORM/backends/Sqlite3.hpp> orm::Sqlite3Bdd def("./salamandre.db"); orm::Bdd& orm::Bdd::Default = def; #include <Salamandre-stats/stats.hpp> float Stats::default_robustesse = 99.9f; void Stats::init() { orm::Bdd::Default.connect(); orm::Tables::create(); } void Stats::close() { or...
<commit_before>#include <ORM/backends/Sqlite3.hpp> orm::Sqlite3Bdd def("./salamandre.db"); orm::Bdd& orm::Bdd::Default = def; #include <Salamandre-stats/stats.hpp> using namespace salamandre::stats; float Stats::default_robustesse = 99.9f; void Stats::init() { orm::Bdd::Default.connect(); orm::Tables::creat...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ParseContext.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2006-10-12 12:44:00 $ * * The Contents of this file are ...
<commit_before>#include <chrono> #include <exception> #include <stdexcept> // __gnu_cxx::__verbose_terminate_handler #include <fstream> #include <iostream> #include <thread> #include <libtorrent/add_torrent_params.hpp> #include <libtorrent/alert_types.hpp> #include <libtorrent/bencode.hpp> #include <libtorrent/create_...
<commit_before>/* * Copyright 2009, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this l...
<commit_before>#include <bits/stdc++.h> #include<chrono> #include<random> typedef unsigned long long ui; using namespace std; int main() { /**************************************************************/ /* Generating Random Graph */ /* ...
<commit_before>// Copyright 2010-2014 Google // 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 a...
<commit_before>// Copyright © 2014 Lénaïc Bagnères, hnc@singularity.fr // 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...
<commit_before>// @(#)root/base:$Id$ // Author: Fons Rademakers 04/08/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: outlundo.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-10-12 13:02:41 $ * * The Contents of this file are made...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>#include <SFML/Graphics.hpp> #include <vector> #include <string> #include "gui.hpp" #include "message_box.hpp" #include "text.hpp" gui::MessageBox::MessageBox(const sf::Vector2u& dimensions, const std::string& text, const gui::Font& font, const sf::Color& backgroundCol, cons...
<commit_before>#pragma once /* Manage communication between the two threads: - A Command thread, that manages add-actor/start/status/kill/... requests. This thread also keeps a list of open sockets, for clean termination. - A SimGrid thread, that runs the simulation. Communication is done via lockfree q...
<commit_before>// Copyright 2016 The SwiftShader 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 // // Un...
<commit_before>#include <variant> #include <catch2/catch.hpp> #include "dexode/EventBus.hpp" #include "dexode/eventbus/test/event.hpp" namespace dexode::eventbus::test { // class TestProducer //{ // public: // using Events = std::variant<event::T1, event::T2>; // // void onUpdate(TransactionEventBus& bus) // { // ...
<commit_before><commit_msg>Fix logic inversion<commit_after><|endoftext|>
<commit_before><commit_msg>Remove some useless swapping call inside SwGrfNode<commit_after><|endoftext|>
<commit_before><commit_msg>WaE: private field 'doc' is not used<commit_after><|endoftext|>
<commit_before>/// /// @file calculator.hpp /// @brief calculator::eval(const std::string&) evaluates an integer /// arithmetic expression and returns the result. If an error /// occurs a calculator::error exception is thrown. /// <https://github.com/kimwalisch/calculator> /// ...
<commit_before><commit_msg>coverity#1302687 Dereference null return value<commit_after><|endoftext|>
<commit_before>/* * cam_altair.cpp * PHD Guiding * * Created by Robin Glover. * Copyright (c) 2014 Robin Glover. * All rights reserved. * * This source code is distributed under the following "BSD" license * Redistribution and use in source and binary forms, with or without * modification, are permitt...
<commit_before>#include "sprite.h" #include <fstream> #include <iostream> #include <sstream> #include <vector> namespace entities { Sprite::Sprite(const std::string& path, SpriteType type) : type_(type) { load(path); direction_ = util::Direction::RIGHT; visualDirection_ = util::Direction::RIGHT; } bool Sprit...
<commit_before><commit_msg>fdo#43249: WW8: fix double border import:<commit_after><|endoftext|>
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2012 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...