text
stringlengths
54
60.6k
<commit_before>//===-- lldb-platform.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 <memory> #include <iostream> #include <string> #include <sstream> #include <functional> #include <nan.h> #include <v8.h> #include <uv.h> #include "log.h" #include "queue.h" #include "callbacks.h" #include "worker/thread.h" using namespace v8; using std::unique_ptr; using std::string; using std...
<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.h" #include "misc.h" #include ...
<commit_before>#include "machine.h" #include "maitenance.h" #include "order.h" #include "task.h" #include <iostream> #include <vector> #include <algorithm> #include <string> #include <cstdlib> #include <fstream> using std::cout; using std::string; using std::fstream; using std::vector; using std::endl; int main(int a...
<commit_before>// $Id$ /* Copyright (c) 2007-2009, Trustees of The Leland Stanford Junior 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...
<commit_before>/*ibnu.yahya@toroo.org*/ #include <QtWidgets/QApplication> #include "ignsdk.h" #include <QtWebKitWidgets/QWebView> #include <QFileDialog> #include <iostream> #include "version.h" #include <QCommandLineParser> using namespace std; int main(int argc, char *argv[]){ QApplication app(argc, argv); i...
<commit_before>#include "chip8.h" chip8 Chip8; SDL_Window *window = nullptr; SDL_Renderer *renderer = nullptr; static const uint8_t SCREEN_WIDTH = 64; static const uint8_t SCREEN_HEIGHT = 32; static const uint8_t PIXEL_SIZE = 12; // Temporary pixel buffer uint32_t pixels[2048]; // Chip8 Keypad uint8...
<commit_before>#include "multi_traceroute.h" #include "net/enums.h" #include <vector> #include <string> #include <iostream> #include <iomanip> #include <chrono> #include <cstdlib> #include <unistd.h> using std::vector; constexpr AddressFamily DEF_AF_IN_UNKNOWN = AddressFamily::Inet; constexpr int DEF_PROBES = 3; con...
<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.h" #include "misc.h" #include ...
<commit_before>////////////// // Includes // #include <SDL.h> #include <iostream> ////////// // Code // // Entry point! int main() { if (SDL_Init(SDL_INIT_EVERYTHING) != 0) { std::cout << "Failed to initialize SDL." << std::endl; return 1; } SDL_Window* window = SDL_CreateWindow( ...
<commit_before>// stdc++ #include <iostream> #include <mutex> #include <thread> #include <vector> #include <fstream> #include <future> #define qDebug 1 // mutex_adaptors #include "mutex_adaptors.hpp" /******************************************************************************/ using namespace muads; /**********...
<commit_before>//======================================================================= // Copyright (c) 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>// ======================================================================== // // Copyright 2009-2017 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>//------------------------------------------------------------------------------ // name: ofck.cpp // desc: openframeworks <=> ChucK bridge // // @author Ge Wang // @author Tim O'Brien // @author Kitty Shi // @author Madeline Huberth // // @date Fall 2015 //----------------------------------------...
<commit_before>// Include standard headers #include <stdio.h> #include <stdlib.h> #include <vector> #include <string> // Include GLEW #ifndef __GL_GLEW_H_INCLUDED #define __GL_GLEW_H_INCLUDED #include <GL/glew.h> #endif // Include GLFW #ifndef __GLFW3_H_INCLUDED #define __GLFW3_H_INCLUDED #include <glfw3.h> #endif G...
<commit_before>/* * George Papanikolaou CEID 2014 * Shortest Augmenting Path Maximum Flow algorithm implementation * aka "Edmonds–Karp algorithm" */ #include <map> #include "boost-types.h" #include <boost/graph/breadth_first_search.hpp> int shortest_aug_path(BoostGraph& BG, std::vector<BoostEdge> ret_flow) { ...
<commit_before>// // Copyright (C) 2006 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2004-2006 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved. // Licensed to SIPfoundry under a Contributor Agre...
<commit_before>#ifdef _WIN32 #define _USE_MATH_DEFINES #endif #include <iostream> #include <list> #include "core/Halite.hpp" inline std::istream& operator>>(std::istream& i, std::pair<signed int, signed int>& p) { i >> p.first >> p.second; return i; } inline std::ostream& oper...
<commit_before>#include "pipe.hpp" #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #include <string> #include <stdio.h> Pipe::Pipe() {} bool Pipe::execute(const vector<string> &cmd, string &input) { int pid; int pipes[2]; //pass in commands to args char*...
<commit_before>//== GRTransferFuncs.cpp - Path-Sens. Transfer Functions Interface -*- C++ -*--= // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>include <iostream> #include <climits> using namespace std; class edge; class vertex { public: int value; edge *arry[6]; bool visited; vertex() { value = INT_MAX; visited = false; for(int i = 0; i < 6; i++) { arry[i] = NULL; } } }; class edge { public: int weigh...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>#define CDM_CONFIGURE_NAMESPACE a0038876 #include "../../cdm/application/using_boost/cdm.hpp" #include "log.hpp" #include "temporary.hpp" #include <boost/test/unit_test.hpp> #include <silicium/sink/ostream_sink.hpp> #include <ventura/file_operations.hpp> #include <cdm/locate_cache.hpp> namespace { vent...
<commit_before>/* Siconos-sample , Copyright INRIA 2005-2011. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free...
<commit_before>// Paul Smith 1 March 2005 // Uses ffmpeg libraries to play most types of video file #include <string> #include <sstream> #include <cvd/exceptions.h> #include <cvd/videofilebuffer.h> using namespace std; namespace CVD { using namespace Exceptions::VideoFileBuffer; // // EXCEPTIONS // Exceptions::...
<commit_before>// // Copyright (c) 2015-2016 CNRS // // This file is part of Pinocchio // Pinocchio 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 // 3 of the License, or (at your opti...
<commit_before>// // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include "llvm/DebugInfo/MSF/MSFBuilder.h" #...
<commit_before>/* * AliFemtoPPbpbLamZVtxMultContainer.cxx * * Created on: Aug 30, 2017 * Author: gu74req */ //#include "AliLog.h" #include <iostream> #include "AliFemtoDreamZVtxMultContainer.h" #include "TLorentzVector.h" #include "TDatabasePDG.h" #include "TVector2.h" ClassImp(AliFemtoDreamPartContainer) A...
<commit_before>// Copyright Joshua Boyce 2010-2012. // 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) // This file is part of HadesMem. // <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com> #inc...
<commit_before>/* * Copyright © 2013 Intel Corporation * * 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, mod...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICE...
<commit_before>/* * Copyright (C) 2015 Dan Leinir Turthra Jensen <admin@leinir.dk> * * 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...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>#include <ncurses.h> #include <iostream> #include <gtest/gtest.h> #include <Utils/Utils.h> TEST(UtilsTest, LowercaseAllLowerCase) { std::string s{"hello world"}; auto actual = vis::Utils::lowercase(s); std::string expected{"hello world"}; EXPECT_EQ(expected, actual) << "lowercas...
<commit_before>/* * Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3 */ #include "ScriptMgr.h" #include "ScriptedCreature.h" #include "nexus.h" enum Spells { // Main ...
<commit_before><commit_msg>increment table position correctly if more than one table is inserted<commit_after><|endoftext|>
<commit_before>#include "consoletools.h" #include "client.h" #include "log/logger.h" #include "settings.h" #include "controller/logincontroller.h" #include "webrequester.h" #include "network/requests/registerdevicerequest.h" #include <QTextStream> #include <QCoreApplication> #include <QCommandLineParser> #include <QC...
<commit_before>/* * Copyright 2010 Google 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 l...
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * libtest * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ * * 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>// ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <fstream> #include <string> #include <vector> #include <exception> // StdAir #include <stdair/stdair_demand_types.hpp> #inc...
<commit_before>//===- FileOutputBuffer.cpp - File Output Buffer ----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before> #include "spdy_framer.H" #include <phantom/module.H> #include <pd/base/config.H> #include <pd/base/exception.H> #include <string.h> // memset #include "spdy_misc.H" namespace phantom { namespace io_benchmark { namespace method_stream { namespace { struct stream_data_t { inline stream_data_t(c...
<commit_before>#include "base.hpp" using namespace std; namespace Origen { namespace TestMethod { Base::Base() { async(false); syncup(false); } Base::~Base() { } /// Returns 1 when running in offline mode int Base::offline() { int flag; GET_SYSTEM_FLAG("offline", &flag); return flag; } void Base:...
<commit_before>// RUN: %clang_cc1 -std=c++11 -fsyntax-only %s -verify namespace ExplicitConv { struct X { }; // expected-note 2{{candidate constructor}} struct Y { explicit operator X() const; }; void test(const Y& y) { X x(static_cast<X>(y)); X x2((X)y); X x3 = y; // expected-error{{no viabl...
<commit_before>/* gph-math - math library for graphics programs Copyright (C) 2016 John Tsiombikas <nuclear@member.fsf.org> This program is free software. Feel free to use, modify, and/or redistribute it under the terms of the MIT/X11 license. See LICENSE for details. If you intend to redistribute parts of the code wi...
<commit_before>// // testing a subd idea // #include <stdlib.h> #include <iostream> #include <cctype> // std::tolower #include <algorithm> #include <vector> // in project properties, add "../include" to the vc++ directories include path #include "geometric.h" #include "glwin.h" // minimal opengl for windows ...
<commit_before>/* RTcmix - Copyright (C) 2000 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ #include <globals.h> #include <prototypes.h> #include <pthread.h> #include <iostream.h> #include <stdi...
<commit_before>#include "emitterutils.h" #include "exp.h" #include "indentation.h" #include "exceptions.h" #include "stringsource.h" #include <sstream> #include <iomanip> namespace YAML { namespace Utils { namespace { bool IsPrintable(char ch) { return (0x20 <= ch && ch <= 0x7E); } bool IsValidPla...
<commit_before> /* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkUtils.h" #include "SkOnce.h" #if 0 #define assign_16_longs(dst, value) \ do { ...
<commit_before>#ifndef CLUSTERING_ADMINISTRATION_MAIN_DIRECTORY_LOCK_HPP_ #define CLUSTERING_ADMINISTRATION_MAIN_DIRECTORY_LOCK_HPP_ #include <unistd.h> #include <exception> #include <string> #include "utils.hpp" #include "arch/io/io_utils.hpp" #define INVALID_GID (static_cast<gid_t>(-1)) #define INVALID_UID (stati...
<commit_before>#include "spotlightDemo.h" #include "vrambatcher.h" #include <nds/arm9/window.h> #include <cmath> #include <nds/arm9/input.h> #define M_PI 3.14159265358979323846 #define FULL_ROTATION M_PI*2 #define D45 FULL_ROTATION/8 #define MD45 FULL_ROTATION/-8 #define D135 (FULL_ROTATION/4+D45) #define MD135 ...
<commit_before>/** ** \file runner/interpreter.cc ** \brief Implementation of runner::Interpreter. */ // #define ENABLE_DEBUG_TRACES #include <libport/compiler.hh> #include <libport/finally.hh> #include <algorithm> #include <deque> #include <boost/range/iterator_range.hpp> #include <libport/foreach.hh> #include...
<commit_before>/************************************************************************* * * $RCSfile: fuconuno.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: aw $ $Date: 2002-03-22 09:56:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>//===- GVNPRE.cpp - Eliminate redundant values and expressions ------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the Owen Anderson and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===-...
<commit_before>/************************************************************************* * * $RCSfile: transobj.hxx,v $ * * $Revision: 1.12 $ * * last change: $Author: obo $ $Date: 2004-06-04 11:43:23 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014 Couchbase, 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...
<commit_before>//===-- ConnectionMachPort.cpp ----------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------...
<commit_before>#include "protocol.h" #include "storage.h" #include <algorithm> #include <cstdlib> #include <vector> #include <deque> #include <iostream> #include <list> #include <map> #include <set> #include <boost/bind.hpp> #include <boost/shared_ptr.hpp> #include <boost/enable_shared_from_this.hpp> #include <boost/...
<commit_before>/************************************************************************* * * $RCSfile: galwrap.cxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 16:45:08 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>#include "../../include/frame/Catalog.h" #include "../../include/frame/Point.h" #include <fstream> #include <iostream> #include <set> #include <boost/tokenizer.hpp> #include <boost/lexical_cast.hpp> using namespace shapelens; using namespace std; Catalog::Catalog() : map<unsigned long, CatObject>() { ...
<commit_before>#include <frame/Catalog.h> #include <fstream> #include <iostream> #include <boost/tokenizer.hpp> using namespace std; Catalog::Catalog() : vector<CatObject>() { } Catalog::Catalog(string catfile) : vector<CatObject>() { read(catfile); } void Catalog::read(string catfile) { // reset bitset that in...
<commit_before> #include <common/Context.h> #include <cassert> #include <map> #include <glbinding/gl/gl.h> #include <glbinding/ContextInfo.h> #include <glbinding/ProcAddress.h> #include <glbinding/Binding.h> #include <glbinding/Version.h> #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> // specifies APIENTRY, shou...
<commit_before><commit_msg>vcl: Add list of contexts sharing the same display list<commit_after><|endoftext|>
<commit_before> #include <iostream> #include <QGuiApplication> #include <QQmlFileSelector> #include <QStringList> #include <QTranslator> #include <QDebug> #include <qmltoolbox/qmltoolbox-version.h> #include <qmltoolbox/QmlApplicationEngine.h> #include <qmltoolbox/MessageHandler.h> int main(int argc, char *argv[]) {...
<commit_before><commit_msg>-Werror=unused-function<commit_after><|endoftext|>
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distribu...
<commit_before>#include <v8.h> #include <node.h> extern "C" { #include <ei.h> #include <erl_interface.h> extern const char *erl_thisnodename(void); extern short erl_thiscreation(void); #define SELF(fd) erl_mk_pid(erl_thisnodename(), fd, 0, erl_thiscreation()) } using namespace node; using namespace v8; class ErlN...
<commit_before>/*************************************************************************/ /* split_container.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved */ #include "../StroikaPreComp.h" #include <cstdarg> #include <cstdlib> #include <iomanip> #include <limits> #include <sstream> #include "../Characters/StringBuilder.h" #include "../Characters/String_Constant.h" #include "../Co...
<commit_before>#include <omni/take2/context.hpp> #include <omni/take2/block.hpp> #include <omni/take2/type.hpp> #include <omni/take2/function.hpp> #include <omni/take2/context_part.hpp> #include <omni/take2/return_statement.hpp> #include <omni/take2/literal_expression.hpp> #include <omni/take2/builtin_literal.hpp> #inc...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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 <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>/** * @file FunctionApproximatorGMR.hpp * @brief FunctionApproximatorGMR class header file. * @author Thibaut Munzer, Freek Stulp * * This file is part of DmpBbo, a set of libraries and programs for the * black-box optimization of dynamical movement primitives. * Copyright (C) 2014 Freek Stulp, E...
<commit_before><commit_msg>ignore the (unsupported ) group customshape when exporting xlsx<commit_after><|endoftext|>
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H $ ...
<commit_before>// Virvo - Virtual Reality Volume Rendering // Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University // Contact: Jurgen P. Schulze, jschulze@ucsd.edu // // This file is part of Virvo. // // Virvo is free software; you can redistribute it and/or // modify it under the terms of the GN...
<commit_before>#include "InterfaceInternal.h" extern void _dyld_register_func_for_add_image(void (*func)(const struct mach_header *mh, intptr_t vmaddr_slide)); typedef uint64_t addr_t; void *getSegmentContent(mach_header_t *header, char *segName) { struct load_command *load_cmd; segment_command_t *seg_cmd; sec...
<commit_before>//Mancala AI //Copyright Matthew Chandler 2012 #include <iostream> #include <iomanip> #include <vector> #include <limits> #include <cstdlib> //board: //2 rows of 6 bowls //2 larger bowls for scoring (stores) // //Rules //play is CCW //ending in player's own store yields extra turn //ending in empty bow...
<commit_before>#include "iconproducer.h" #include <LXQt/Settings> #include <XdgIcon> #include <QDebug> #include <QtSvg/QSvgRenderer> #include <QPainter> #include <math.h> IconProducer::IconProducer(Solid::Battery *battery, QObject *parent) : QObject(parent) { connect(battery, &Solid::Battery::chargeStateChanged, t...
<commit_before>#ifndef CHANNEL_HPP_ #define CHANNEL_HPP_ #include <stdexcept> #include <fiber_channel.h> namespace fiberpp { template<typename EventDescriptorType, typename EventPayloadType> class UnboundedMultiProducerChannel { private: struct event_wrapper; public: typedef EventDescriptorType event_descri...
<commit_before>#include <iostream> #include <array> #include "tinycl.h" #include "sparsematrix.h" #include "cgsolver.h" CGSolver::CGSolver(const SparseMatrix<float> &mat, const std::vector<float> &b, tcl::Context &context, int iter, float len) : context(context), maxIterations(iter), dimensions(mat.dim), matElems(...
<commit_before> #include <boost/python.hpp> #include <boost/python/def.hpp> #include <scitbx/array_family/flex_types.h> #include "../centroid.h" using namespace boost::python; namespace dials { namespace integration { namespace boost_python { void export_centroid() { def("centroid2d", &centroid2d <scitbx::af::...
<commit_before> #include "Timestamp.h" namespace Vq { Timestamp::Timestamp( const TimeVal &timeVal ) { } Timestamp::Timestamp( const Timestamp &other ) { } Timestamp::Timestamp( Timestamp &&other ) { } Timestamp & Timestamp::operator = ( const Timestamp &other ) { } Timestamp & Timestamp::operator = (...
<commit_before>/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Written (W) 2008-2009 Soeren Sonnenburg * C...
<commit_before>#include "plot.h" #include "curvedata.h" #include "signaldata.h" #include <qwt_plot_grid.h> #include <qwt_plot_layout.h> #include <qwt_plot_canvas.h> #include <qwt_plot_marker.h> #include <qwt_plot_curve.h> #include <qwt_plot_directpainter.h> #include <qwt_curve_fitter.h> #include <qwt_painter.h> #includ...
<commit_before>/* * (C) 2010,2014,2015 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "cli.h" #if defined(BOTAN_HAS_X509_CERTIFICATES) #include <botan/certstor.h> #include <botan/pkcs8.h> #include <botan/x509_ca.h> #include <botan/x509cert.h> #include <botan/x509path....
<commit_before> #include <togo/core/error/assert.hpp> #include <togo/core/utility/utility.hpp> #include <togo/core/log/log.hpp> #include <togo/core/collection/array.hpp> #include <togo/core/string/string.hpp> #include <togo/core/io/memory_stream.hpp> #include <quanta/core/object/object.hpp> #include <togo/support/tes...
<commit_before>#include "sequence.h" namespace magic_bean{ const int64_t kInitialValue = -1; Sequence::Sequence() { value_.store(kInitialValue); } Sequence::Sequence(int64_t initial_value) { value_.store(initial_value); } int64_t Sequence::Get() const { return value_.load(std::memory_order::memory_order_acqu...
<commit_before><commit_msg>misc: Stop "using namespace std" in protoio.cc.<commit_after><|endoftext|>
<commit_before>/* Copyright libCellML Contributors 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 ...
<commit_before>#include "rgw_cache.h" #include <errno.h> #define DOUT_SUBSYS rgw using namespace std; int ObjectCache::get(string& name, ObjectCacheInfo& info, uint32_t mask) { Mutex::Locker l(lock); map<string, ObjectCacheEntry>::iterator iter = cache_map.find(name); if (iter == cache_map.end()) { dout...
<commit_before>/************************************************************************* * * $RCSfile: combtransition.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: kz $ $Date: 2005-01-21 17:08:29 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before>#include "utils.hpp" #include "libdnf/dnf-sack-private.hpp" #include "libdnf/sack/advisorymodule.hpp" #include <tinyformat/tinyformat.hpp> #include <algorithm> #include <sys/stat.h> #include <dirent.h> #include <cstring> #include <stdexcept> extern "C" { #include <solv/solv_xfopen.h> }; #include <err...
<commit_before>/* RTcmix - Copyright (C) 2004 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ // utils.cpp // Functions for creating Handles and tables // #include <utils.h> #include <PField.h> #...
<commit_before>#include "data-course.hpp" using namespace std; void Course::init(string identifier) { copy(getCourse(identifier)); } void Course::copy(const Course& c) { id = c.id; number = c.number; title = c.title; description = c.description; section = c.section; majors = c.majors; department = c.departmen...
<commit_before>#ifndef __Data_course__ #define __Data_course__ #include "data-general.hpp" #include "data-major.hpp" #include "data-department.hpp" using namespace std; class Course { protected: string ID; int number; string title; string description; char section; vector<Major> majors; Department* departmen...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkImporter.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Thi...
<commit_before>/* * Shared memory for sharing data between worker processes. * * author: Max Kellermann <mk@cm4all.com> */ #include "shm.hxx" #include "system/Error.hxx" #include "util/RefCount.hxx" #include <inline/poison.h> #include <inline/list.h> #include <daemon/log.h> #include <boost/interprocess/sync/inte...
<commit_before>// sota.cpp : Defines the entry point for the console application. // #include <regex> #include "stdafx.h" #include "utils.h" #include "lexer.h" #include "token.h" #include "stream.hpp" #include <array> using namespace sota; std::vector<char> load(std::string filename) { std::vector<char> chars; std:...