text
stringlengths
54
60.6k
<commit_before>/** * @file support.hh * @author Miroslav Cibulka * @created 12/5/15 * @copyright Copyright (c) 2015 XXX * @detail * */ #pragma once #include "../src/state.hh" #include "../src/cell.hh" #include "../src/cellular_automata.hh" #include <iostream> #include <ctime> /** * @brief this example sta...
<commit_before>/************************************************************************* * * $RCSfile: uiborder.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2004-08-23 08:56:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#include <iostream> #include <pthread.h> #include <Python.h> #include "character.h" using namespace std; static int error(const std::string & message){ std::cout << message << std::endl; return -1; } pthread_mutex_t quitMutex = PTHREAD_MUTEX_INITIALIZER; bool globalQuit = false; pthread_mute...
<commit_before>// // MFM.cpp // Clock Signal // // Created by Thomas Harte on 18/09/2016. // Copyright © 2016 Thomas Harte. All rights reserved. // #include "MFM.hpp" #import "../PCMTrack.hpp" #import "../../../NumberTheory/CRC.hpp" using namespace Storage::Encodings::MFM; template <class T> class Shifter { pu...
<commit_before>#pragma once #include "../utility/iterator_traits.hpp" #include "sxml_parse_core.hpp" namespace SXML { namespace Internal { template <typename T, typename... L, template <typename...> class ContainerT> void xml_parse_generic_container( ContainerT <T, L...>...
<commit_before>// This file may contain portions of the code derived/adopted from the Go // standard library, which is covered by a BSD-style license. You can find more // details in 3rdparty/go_license.txt file. #include "stf.hh" #include "zbs/vector.hh" #include "zbs/string.hh" #include "zbs/unicode/utf8.hh" STF_SU...
<commit_before>/** \brief Utility for augmenting MARC records with links to a local full-text database. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2015 Universitätsbiblothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it ...
<commit_before>/* * Caching HTTP responses in heap memory. * * author: Max Kellermann <mk@cm4all.com> */ #include "http_cache_heap.hxx" #include "http_cache_rfc.hxx" #include "http_cache_document.hxx" #include "http_cache_age.hxx" #include "cache.hxx" #include "istream.h" #include "rubber.hxx" #include "istream_ru...
<commit_before>/* Copyright (c) 2003, 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 condi...
<commit_before>/* Copyright (c) 2003, 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 condi...
<commit_before>/* Copyright (c) 2003, 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 condi...
<commit_before>// // Copyright (c) 2002-2013 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 "compiler/translator/OutputGLSL.h" TOutputGLSL::TOutputGLSL(TInfoSinkBase& objSink, ...
<commit_before> #ifndef __FRAMEWORK_RECORDING_DISPATCHRECORDER_HXX_ #include <recording/dispatchrecorder.hxx> #endif #ifndef __FRAMEWORK_THREADHELP_WRITEGUARD_HXX_ #include <threadhelp/writeguard.hxx> #endif #ifndef __FRAMEWORK_THREADHELP_READGUARD_HXX_ #include <threadhelp/readguard.hxx> #endif #ifndef __FRAMEWORK_...
<commit_before> #include <nstd/Console.h> #include <nstd/Error.h> #include <nstd/Time.h> #include <lz4.h> #include "Tools/Sha256.h" #include "Client.h" bool_t Client::connect(const String& user, const String& password, const String& address) { disconnect(); // establish connection uint16_t port; uint32_t i...
<commit_before>#include <gtest/gtest.h> #include <type_traits> #include <utils.h> template<typename I> class TestPowInt : public ::testing::Test { protected: const I zero; const I one; const I two; const I three; const I five; const I max; const I digits; TestPowInt() { ze...
<commit_before>// // Copyright 2012 Francisco Jerez // // 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,...
<commit_before>/* This file is part of Magnum. Original authors — credit is appreciated but not required: 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 — Vladimír Vondruš <mosra@centrum.cz> 2018 — scturtle <scturtle@gmail.com> This is free and unencumbered software rele...
<commit_before>#pragma once #include "signature-page.hh" #include "tree-draw.hh" #include "time-series-draw.hh" #include "clades-draw.hh" #include "mapped-antigens-draw.hh" #include "aa-at-pos-draw.hh" #include "antigenic-maps-draw.hh" #include "title-draw.hh" // ------------------------------------------------------...
<commit_before>#include "stdlibs_for_debugging.h" #include "foobar.h" // TODO (unit test): // - reflection.h, REFLECTABLE(function), namespace::ClassTemplate, namespace::function(ClassTemplate), SmartRef // - also make sure that no invalid free functions are added (e.g. push_back on a vector) #include <smartref/smar...
<commit_before>/*******************************************************************************/ /* Bela Csound Rendering functions */ /* */ /************************************************************...
<commit_before>#include <vector> #include <string> #include "analysis/ReachingDefinitions/RDMap.h" #include "analysis/ReachingDefinitions/ReachingDefinitions.h" #include "../tools/TimeMeasure.h" // create two random rd maps of the // size 'size' and merge them void run(int size, int times = 100000) { using namesp...
<commit_before>/***************************************************************************************** * * * GHOUL * * General Helpful Open Utili...
<commit_before>#ifndef _SDD_ORDER_ORDER_HH_ #define _SDD_ORDER_ORDER_HH_ #include <algorithm> // find #include <initializer_list> #include <iostream> #include <memory> // shared_ptr, unique_ptr #include <sstream> #include <utility> // pair #include <vector> #include "sdd/order/order_builder.hh" #include "sdd/uti...
<commit_before>#include "agenda.h" #include "errors.h" #include <unistd.h> #include <thread> #include <sstream> #include <unistd.h> #include <boost/bind.hpp> #include <time.h> #include <iostream> using namespace es3; agenda::agenda(size_t num_unbound, size_t num_cpu_bound, size_t num_io_bound, bool quiet, bool ...
<commit_before>/** * This file is part of the CernVM File System. */ #define __STDC_FORMAT_MACROS #include "authz_fetch.h" #include <errno.h> #include <signal.h> #include <sys/wait.h> #include <syslog.h> #include <unistd.h> #include <algorithm> #include <cassert> #include <cstring> #include "clientctx.h" #include...
<commit_before>#ifndef DIPLOMA_OBJECT_META_H #define DIPLOMA_OBJECT_META_H #include <cstring> #include <atomic> #include <libprecisegc/details/gc_handle.hpp> #include <libprecisegc/details/gc_tagging.hpp> #include <libprecisegc/details/managed_ptr.hpp> #include <libprecisegc/details/type_meta.hpp> #include <libprecis...
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */ /* Authors: Ethan Coon (ecoon@lanl.gov) */ #include "MatrixMFD.hh" #include "MatrixMFD_Factory.hh" #include "Function.hh" #include "FunctionFactory.hh" #include "implicit_snow_distribution_evaluator.hh" namespace Amanzi { na...
<commit_before>#include "stdlibs_for_debugging.h" #include "foobar.h" // TODO (unit test): // - reflection.h, REFLECTABLE(function), namespace::ClassTemplate, namespace::function(ClassTemplate), SmartRef // - also make sure that no invalid free functions are added (e.g. push_back on a vector) #include <smartref/smar...
<commit_before>/**************************************************************************** * * Copyright (C) 2019 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>// Copyright (c) 2020 The Orbit 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 "LibunwindstackUnwinder.h" #include <unwindstack/Memory.h> #include <unwindstack/Regs.h> #include <unwindstack/RegsX86_64.h> #i...
<commit_before>// @(#)root/net:$Id$ // Author: Jan Fiete Grosse-Oetringhaus 28/9/2004 // Jancurova.lucia@cern.ch Slovakia 29/9/2008 /************************************************************************* * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>#include "Application.hpp" #include "GraphicsService.hpp" #include "SoundService.hpp" #include "TimeService.hpp" #include "Global.hpp" #include "MainMenuState.hpp" #include "PlayGameState.hpp" #include "Log.hpp" namespace Game { Application::Application() { LOGI("Application::Aplication"); } ...
<commit_before>/************************************************************************************ ** * @copyright (c) 2013-2100, ChengDu Duyer Technology Co., LTD. All Right Reserved. * *************************************************************************************/ /** * @file g_client_factory.cpp * @ve...
<commit_before>// *************************************************************************** // // Generated automatically by genwrapper. // Please DO NOT EDIT this file! // // *************************************************************************** #include <osgIntrospection/ReflectionMacros> #include <osgInt...
<commit_before>// @(#)root/net:$Id$ // Author: Fons Rademakers 19/12/96 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>#include "stdafx.h" #include "common/RhoPort.h" #include "common/StringConverter.h" #include "ruby/ext/rho/rhoruby.h" #include "MainWindow.h" #ifdef OS_WINCE__ #include <tapi.h> #include <tsp.h> //#include <sms.h> #endif using namespace rho; using namespace rho::common; extern "C" HWND getMainWnd(); e...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/hwpf/fapi2/include/return_code_defs.H $ ...
<commit_before>/* * VHDL code generation for statements. * * Copyright (C) 2008 Nick Gasson (nick@nickg.me.uk) * * 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 ...
<commit_before>//===- LoopUnrollAndJam.cpp - Code to perform loop unroll and jam ---------===// // // Copyright 2019 The MLIR 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 // /...
<commit_before>#include "stdafx.h" #include "ImageIndexer.h" using namespace std; using namespace boost::assign; using namespace Magick; ImageIndexer::ImageIndexer() { } ImageIndexer::~ImageIndexer() { } bool HashesAreSimilar(const char* a, const char* b, const size_t size, const size_t threshold) { throw_assert(t...
<commit_before>/******************************************************************** * @file : pluginbase.cpp * @author : zapline <zhuxianzhang@kingsoft.com> * @date : 2012/12/08 22:49 * @brief : * * *********************************************************************/ #include "pluginbase.h" CPl...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Research In Motion <blackberry-qt@qnx.com> ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage **...
<commit_before>/* * NetworkFmu.cpp * * Created on: 03.06.2016 * Author: hartung */ #include "../include/EmptyFmu.hpp" namespace FMI { EmptyFmu::EmptyFmu(const Initialization::FmuPlan & in) : AbstractFmu(in) { } EmptyFmu::~EmptyFmu() { } FMI::AbstractFmu* EmptyFmu::d...
<commit_before>/* Copyright (C) 1998 by Jorrit Tyberghein and Dan Ogles. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any lat...
<commit_before>#include "selfdrive/ui/ui.h" #include <unistd.h> #include <cassert> #include <cmath> #include <cstdio> #include "selfdrive/common/util.h" #include "selfdrive/common/watchdog.h" #include "selfdrive/hardware/hw.h" #define BACKLIGHT_DT 0.05 #define BACKLIGHT_TS 10.00 #define BACKLIGHT_OFFROAD 75 // Pr...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <stack> enum class InputType { Console, File, Constructor }; class CalculationNotDoneException: public std::exception { virtual const char* what() const throw() { return "The Input() method should be executed ...
<commit_before>/** * Copyright (c) 2016-2018 mvs developers * * This file is part of metaverse-explorer. * * metaverse-explorer 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 Sof...
<commit_before>#ifndef STAN_COMMAND_STANC_HELPER_HPP #define STAN_COMMAND_STANC_HELPER_HPP #include <stan/version.hpp> #include <stan/lang/compiler.hpp> #include <stan/io/cmd_line.hpp> #include <exception> #include <fstream> #include <iostream> #include <stdexcept> #include <string> #include <vector> /** * Print th...
<commit_before>#ifndef STAN_IO_ARRAY_VAR_CONTEXT_HPP #define STAN_IO_ARRAY_VAR_CONTEXT_HPP #include <stan/io/var_context.hpp> #include <boost/throw_exception.hpp> #include <stan/math/prim/mat/fun/Eigen.hpp> #include <algorithm> #include <functional> #include <map> #include <numeric> #include <sstream> #include <string...
<commit_before><commit_msg>fixed bug with escape sequences<commit_after><|endoftext|>
<commit_before>#include "../../fswork/fswork.h" #include "../../windlg/windlg.h" #include <curses.h> #define TAB_KEY 9 using namespace std; void load_pair_fm() { init_pair (0, COLOR_WHITE, COLOR_BLACK); init_pair (1, COLOR_BLACK, COLOR_WHITE); init_pair (2, COLOR_RED, COLOR_BLACK); init_pair (3, COLOR_BLACK, COL...
<commit_before>#include <QChar> #include <QByteArray> #include <QCryptographicHash> #include <QFileDialog> #include <QKeyEvent> #include <QList> #include <QMessageBox> #include <QMetaEnum> #include <QNetworkAccessManager> #include <QNetworkReply> #include <QNetworkRequest> #include <QProgressDialog> #include <QRegExp> ...
<commit_before>//===-- Immediate.cpp - the swift immediate mode --------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * CONDOR Copyright Notice * * See LICENSE.TXT for additional notices and disclaimers. * * Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, Madison, WI. All Rights Reserved. * No ...
<commit_before>// Id$ // Author: Valeriy Onuchin 15/11/2003 /************************************************************************* * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>#include <ostream> #include <gtest/gtest.h> #include "KeyCode.hpp" #include "FlagStatus.hpp" #include "Config.hpp" using namespace org_pqrs_KeyRemap4MacBook; Config config; std::ostream& operator<<(std::ostream& os, const EventType& v) { return os << v.get(); } std::ostream& operator<<(std::ostream& os...
<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 <iostream> #include <fstream> #include <memory> typedef struct node { node * next; int value; } Node, *PNode; PNode CreateList(const std::shared_ptr<int>& inputArray, int numberOfItems); PNode ReverseList(PNode head); void PrintList(PNode head); void FreeList(PNode head); int main(int argc...
<commit_before>#ifndef SAVE_STATE_H # define SAVE_STATE_H # pragma once struct statebuf { void* sp; void* label; }; inline bool savestate(statebuf& ssb) noexcept { bool r; #if defined(i386) || defined(__i386) || defined(__i386__) asm volatile ( "movl %%esp, %0\n\t" // store sp "movl $1f, %1\n\t" // ...
<commit_before>// bdldfp_decimalconvertutil.cpp -*-C++-*- #include <bdldfp_decimalconvertutil.h> #include <bsls_ident.h> BSLS_IDENT_RCSID(bdldfp_decimalconvertutil_cpp,"$Id$ $CSID$") #include <bdldfp_decimalplatform.h> #include <bsls_assert.h> #ifdef BDLDFP_DECIMALPLATFORM_C99_T...
<commit_before>/*************************************************************************** Copyright (C) 2006-2008 by Marco Gulino <marco@kmobiletools.org> 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 ...
<commit_before>#include <iostream> #include <QDir> #include <QTextStream> //============================================================================== // Computer engine class //============================================================================== #include "computerengine.h" #include "computermath...
<commit_before>#include "mdlearn.hpp" #include <cstdlib> #include <cstring> #include <boost/array.hpp> #include <algorithm> TilesMDLearn::TilesMDLearn(FILE *in) : TilesMdist(in) { initops(10); } void TilesMDLearn::initops(unsigned int dmax) { unsigned int oldsz = ops.size(); ops.resize(dmax+1); for (unsigned int ...
<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 "metatype_p.h" #include "metatype.h" #include <ostream> #include <mutex> #include <vector> #include <array> #include <unordered_map> namespace rtti { namespace { #define DEFINE_STATIC_TYPE_INFO(NAME, TYPEID) \ TypeInfo{CString{#NAME}, sizeof(NAME), MetaType_ID{TYPEID}, MetaType_ID{TYPEID}, ...
<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>// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <banman.h> #include <chainparams.h> #include <consensus/consensus.h> #include <net.h> #include <net_proces...
<commit_before>#include "ScrollableWidget.hpp" #include <iostream> gsf::ScrollableWidget::ScrollableWidget(float width, float height) : ChildWidget(width, height) , m_totalWidth{ width } , m_totalHeight{ height } , m_scrollOffsetX{ 0.f } , m_scrollOffsetY{ 0.f } , m_scrollSpeed{ 6.0f } , m_isVerticalScrollEnabled{ tru...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2018 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may o...
<commit_before>/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Core/MemoryManager.hpp> #include <cstdio> #include <cstdlib> #include <ctime> #include <stdexcept> #if defined(N...
<commit_before>//===-- MessageObjects.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>/* * Jamoma DSP Soundfile Player * Copyright © 2010, Tim Place * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/licenses/BSD/ */ #include "TTSoundfilePlayer.h" #define thisTTClass TTSoundfilePlayer #define thisTTClassName "soundfile.pla...
<commit_before>#include "SynchronousCameraQueue.hpp" #include <ros/console.h> #include "../../matlab/profiling.hpp" SynchronousCameraQueue::SynchronousCameraQueue(long int arrivalDelay, long int maxDelay, long maxGroupInterval, bool ensureCam0) { this->maxDelay = maxDelay; this->arrivalDelay = arrivalDelay; this-...
<commit_before>/* Copyright (c) 2016 Bastien Durix 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, publish...
<commit_before><commit_msg>Fix custom types in node list search<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: addresssettings.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-08 19:04:54 $ * * The Contents of this file ar...
<commit_before>#include "USBDevice.h" #include <sstream> #include <stdexcept> #include <libusb-1.0/libusb.h> USBDevice::USBDevice( uint16_t idVendor, uint16_t idProduct) : m_ctx(NULL) , m_handle(NULL) , m_version(0.0) , m_idVendor(idVendor) , m_idProduct(idProduct) { int result = libu...
<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 "Lice...
<commit_before>#include "LiveMediaExtPch.h" #include <Media/RtspService.h> #include <LiveMediaExt/LiveSourceTaskScheduler.h> #include <LiveMediaExt/LiveRtspServer.h> namespace lme { RtspService::RtspService(ChannelManager& channelManager) :m_channelManager(channelManager), m_cEventloop(0), m_pRtspServer(NULL), ...
<commit_before>// Copyright 2015-2018 Elviss Strazdins. All rights reserved. #ifdef _WIN32 # define WIN32_LEAN_AND_MEAN # define NOMINMAX # include <WinSock2.h> # include <WS2tcpip.h> # undef WIN32_LEAN_AND_MEAN # undef NOMINMAX #else # include <sys/socket.h> # include <netinet/in.h> # include <errno.h> # in...
<commit_before>/* * Drive.cpp * * Created on: Feb 1, 2016 * Author: Edward */ #include "Drive.h" #include <cmath> #include <memory> #include <string> namespace subsystems { std::string Drive::ModeToString(Mode_t mode) { switch(mode) { case Mode_t::VBus: return "VBus"; case Mode_t::Position: retur...
<commit_before>// A work-in-progress llvm backend #include <set> #include <taichi/common/util.h> #include <taichi/io/io.h> #include "../ir.h" #include "../program.h" #include "../tlang_util.h" #include "codegen_cuda.h" #include "cuda_context.h" #if defined(TLANG_WITH_CUDA) #include "cuda_runtime.h" #endif #include ...
<commit_before>//===-- FileCollectorTest.cpp -----------------------------------*- C++ -*-===// // // Part of the LLVM Project, 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 // //===------------...
<commit_before> #include "Path.h" #include "SpanningTree.h" #include <iostream> Path::Path(const size_t size) { length = size; path.reserve(length); } Path::~Path(void) { // path.clear(); } /** * Recurser function for fromTree to do the search */ static void fromTreeHelper(SpanningTree * const tree, std...
<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 <EXTERN.h> // from the Perl distribution #include <perl.h> // from the Perl distribution #ifdef WIN32 // Perl win32 specific includes, found in perl\\lib\\CORE\\win32.h // Defines the windows specific convenience RunPerl() function, // which is not available on other operating systems. #include...
<commit_before>/* * Copyright (C) 2018 The Android Open Source Project * * 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 ...
<commit_before>// Copyright 2014 The Crashpad 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 // // Unle...
<commit_before>// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s // TAG_member is used to encode debug info for 'z' in A. // CHECK: TAG_member class A { public: int z; }; A *foo (A* x) { A *a = new A(*x); return a; } <commit_msg>Add a test to verify that -flimit-debug-info is working in some way.<commit_...
<commit_before>// RUN: clang -fsyntax-only -verify %s class X { }; X operator+(X, X); void f(X x) { x = x + x; } struct Y; struct Z; struct Y { Y(const Z&); }; struct Z { Z(const Y&); }; Y operator+(Y, Y); bool operator-(Y, Y); // expected-note{{candidate function}} bool operator-(Z, Z); // expected-note{{...
<commit_before>/* * Ultrasonic.cpp - Library for HC-SR04 Ultrasonic Ranging Module.library * * Created by ITead studio. Apr 20, 2010. * iteadstudio.com * * SVN Keywords * ---------------------------------- * $Author$ * $Date$ * $Revision$ * ---------------------------------- */ #include <stdlib.h> #include...
<commit_before><commit_msg>src/aio.cpp: Added error reporting responses<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2018-2021 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <llmq/commitment.h> #include <evo/deterministicmns.h> #include <evo/specialtx.h> #include <chainpa...
<commit_before>#include <pybind11/pybind11.h> #include <pybind11/stl.h> // for conversions between c++ and python collections #include <pybind11/numpy.h> // support for numpy arrays #include "trajectory.h" #include "raster.h" #include "visibility.h" #include "planning.h" namespace py = pybind11; /** Converts a nupy ...
<commit_before>/************************************************************************* * * $RCSfile: SalGtkFilePicker.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: kz $ $Date: 2005-07-12 11:59:09 $ * * The Contents of this file are made available subject to the terms of * either of the followi...
<commit_before>#include "text/table.h" #include "text/cmdline.h" #include "cortex/batch.h" #include "cortex/cortex.h" #include "cortex/logger.h" #include "thread/thread.h" #include "cortex/measure.hpp" #include "cortex/minibatch.h" #include "cortex/stochastic.h" #include "cortex/accumulator.h" #include "text/concatenat...
<commit_before><commit_msg>fdo#74366# Determining bMail was accidentally inverted<commit_after><|endoftext|>
<commit_before><commit_msg>coverity#703936 Unchecked return value<commit_after><|endoftext|>
<commit_before>#include "cvd/connected_components.h" #include <climits> #include <algorithm> using namespace std; namespace CVD{ static unsigned int root_of(const vector<unsigned int>& parents, unsigned int n) { while(n != parents[n]) n = parents[n]; return n; } struct CompareFistIntLessThan { bool operator()...