text
stringlengths
54
60.6k
<commit_before>#ifndef NK_ASIO_NETLINK_HPP_ #define NK_ASIO_NETLINK_HPP_ #include <asm/types.h> #include <sys/socket.h> #include <linux/netlink.h> template <typename Proto> class nl_endpoint { public: typedef Proto protocol_type; typedef asio::detail::socket_addr_type data_type; nl_endpoint(int group, in...
<commit_before>/* * Reference: http://plms.oxfordjournals.org/content/s2-42/1/230.full.pdf+html * * Instruction set * =============== * m-config symbol operations final m-config * string char op1,op2,... string * * op: * L - move left one step * R - move right one step * P<symbol> - prin...
<commit_before><commit_msg>print number of internal vertices before improvement<commit_after><|endoftext|>
<commit_before>#include <aleph/topology/Simplex.hh> #include <aleph/topology/SimplicialComplex.hh> #include <aleph/utilities/String.hh> #include <fstream> #include <istream> #include <iostream> #include <stdexcept> #include <string> #include <vector> using DataType = double; using VertexType = unsign...
<commit_before>#include <QApplication> #include <QSet> #include <QXmlStreamWriter> #include <QXmlStreamReader> #include <QMetaObject> #include <QMetaProperty> #include <QPushButton> #include <QDebug> #include <iostream> #include <QtDeclarative> #include <QtDeclarative/private/qdeclarativemetatype_p.h> #include <QtDecl...
<commit_before>/* ** Copyright 2009-2014 Merethis ** ** This file is part of Centreon Broker. ** ** Centreon Broker is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Broker is distribu...
<commit_before><commit_msg>Disable SystemMonitor.* in base_unittests.<commit_after><|endoftext|>
<commit_before><commit_msg>basebmp: B2IRange::isEmpty is surprisingly, unhelpfully lame - workaround<commit_after><|endoftext|>
<commit_before>// vim:filetype=cpp:textwidth=120:shiftwidth=2:softtabstop=2:expandtab // Copyright 2014--2016 Christoph Schwering #include <string> #include <iostream> #include <boost/bind.hpp> #include <boost/config/warning_disable.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix_co...
<commit_before>#include "OI.h" #include "Commands/DefaultDrive.h" #include "Subsystems/Chassis.h" #include "Misc/ToggleClass.h" /// Default constructor of the class. DefaultDrive::DefaultDrive() { Requires(Chassis::GetInstance()); shifterToggle = new Toggle<bool>(false, true); } /// Called just before this Command...
<commit_before>/* Copyright (c) 2010-2015, AOYAMA Kazuharu * All rights reserved. * * This software may be used and distributed according to the terms of * the New BSD License, which is incorporated herein by reference. */ #include <TSqlORMapper> #include <TCriteria> #include "tsessionsqlobjectstore.h" #include "...
<commit_before>/* * Copyright 2012 Adam Murdoch * * 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>#ifndef MINIASCAPE_CONWAYS_LIFE_GAME_TRAITS #define MINIASCAPE_CONWAYS_LIFE_GAME_TRAITS #include "core/Cell.hpp" #include "core/Rule.hpp" #include "core/Observer.hpp" #include "core/NeighborhoodIndex.hpp" #include "core/PeriodicBoundary.hpp" #include "core/RandomStateGenerator.hpp" #include "GraphicalObs...
<commit_before>/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * 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 retai...
<commit_before>// // Copyright (c) 2012 Kim Walisch, <kim.walisch@gmail.com>. // All rights reserved. // // This file is part of primesieve. // Homepage: http://primesieve.googlecode.com // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
<commit_before>/* * Copyright Copyright 2012, System Insights, 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 * * ...
<commit_before>/*********************************************************************************************************************** * * * SPLASH build system v0.2 ...
<commit_before>#include <QtGui> #include "seafile-applet.h" #include "configurator.h" #include "init-seafile-dialog.h" namespace { #if defined(Q_WS_WIN) #include <ShlObj.h> #include <shlwapi.h> static QString get_largest_drive() { wchar_t drives[MAX_PATH]; wchar_t *p, *largest_drive; ULARGE_INTEGER fre...
<commit_before> // HTTPServer.cpp // Implements the cHTTPServer class representing a HTTP webserver that uses cListenThread and cSocketThreads for processing #include "Globals.h" #include "HTTPServer.h" #include "HTTPMessage.h" #include "HTTPConnection.h" #include "HTTPFormParser.h" #include "SslHTTPConnection.h" ...
<commit_before>// Copyright 2010-2011 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>/* TCPConnector.h TCPConnector class definition. TCPConnector provides methods to actively establish TCP/IP connections with a server. ------------------------------------------ Copyright 2013 [Vic Hargrave - http://vichargrave.com] Licensed under the Apache License, Version 2.0 (t...
<commit_before>void Config() { new AliGeant3("C++ Interface to Geant3"); //======================================================================= // Create the output file TFile *rootfile = new TFile("galice.root","recreate"); rootfile->SetCompressionLevel(2); TGeant3 *geant3 = (TGeant3*)gMC; //===============...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 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. Redi...
<commit_before>#include <iostream> using std::cerr; using std::cout; #define SDL_MAIN_HANDLED #include <SDL/SDL.h> int main () { SDL_SetMainReady (); /* Init SDL... */ int init_res = SDL_Init (SDL_INIT_VIDEO); if (0 != init_res) { cerr << "[ERROR] SDL init failed: " << SDL_GetError() << "\n"; return 1; } ...
<commit_before>#pragma once #include "mpmc_bounded_queue.hpp" #include <atomic> #include <limits> namespace tp { /** * @brief The Slotted Bag is a lockless container which tracks membership by id. * The bag is divided into slots, each with a unique id, and each slot can be full or empty. * The bag supports filling...
<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...
<commit_before>// SendDlg.cpp : ʵļ // #include "stdafx.h" #include "DacrsUI.h" #include "SendDlg.h" #include "afxdialogex.h" // CSendDlg Ի IMPLEMENT_DYNAMIC(CSendDlg, CDialogBar) CSendDlg::CSendDlg() { m_pBmp = NULL ; } CSendDlg::~CSendDlg() { if( NULL != m_pBmp ) { DeleteObject(m_pBmp) ; m_pBmp = NULL ; }...
<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...
<commit_before>/**************************************************************************** * * Copyright (c) 2019-2020 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 me...
<commit_before>#include "qc.h" namespace qclib { static QString createLocalServerPath() { return QString("/tmp/qclserver_%1_%2").arg(qgetenv("USER").data()).arg(qApp->applicationPid()); } QCChannel::QCChannel(QIODevice *socket) : socket_(socket) , id_(nextId_++) , lastError_("<no last error string se...
<commit_before>// Copyright (c) 2012 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 "printing/backend/print_backend.h" #include <algorithm> #include "third_party/icu/public/common/unicode/uchar.h" #include "u...
<commit_before>#include "Endian.h" #include "os.h" #if defined( __POSIX__ ) #include <arpa/inet.h> #include <machine/endian.h> #elif defined( __WIN_API__ ) #include <WinSock2.h> #endif #if defined( __OS_X__ ) #if ( __DARWIN_BYTE_ORDER == __DARWIN_LITTLE_ENDIAN ) #define ntohll( x ) __D...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999 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. Redistri...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 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. Redi...
<commit_before>/*************************************************************************** wpprotocol.cpp - WP Plugin ------------------- begin : Fri Apr 26 2002 copyright : (C) 2002 by Gav Wood email : gav@in...
<commit_before>/**************************************************************************** * * Copyright (c) 2012-2020 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 me...
<commit_before>// Random access pseudorandom permutations #include <other/core/random/permute.h> #include <other/core/random/counter.h> #include <other/core/math/integer_log.h> #include <other/core/python/module.h> namespace other { // For details, see // John Black and Phillip Rogaway, Ciphers with Arbitrary Finit...
<commit_before><commit_msg>Move most used pages to front.<commit_after><|endoftext|>
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "Players/CECP_Mediator.h" #include <string> #include <future> #include "Game/Board.h" #include "Game/Clock.h" #include "Game/Game_Result.h" #include "Moves/Move.h" #include "Players/Player.h" #include "Exceptions/Illegal_Move.h" #include "Exceptions/Game_Ended.h" #include "Utility/String.h...
<commit_before>// $Header$ #include "RMacro.h" #include <TSystem.h> #include <TROOT.h> #include <G__ci.h> using namespace Reve; //______________________________________________________________________ // RMacro // // Sub-class of TMacro, overriding Exec to unload the previous verison // and cleanup after the execut...
<commit_before>// SFMLWidget.cpp // GTK widget containing an SFML OpenGL drawing context // Based on example from SFML github wiki: https://github.com/LaurentGomila/SFML/wiki/Source%3A-GTK-SFMLWidget // - changed to use SFML window instead of RenderWindow // Code is public domain #include "SFMLWidget.hpp" // Tested o...
<commit_before>// __BEGIN_LICENSE__ // Copyright (c) 2006-2012, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may...
<commit_before>/* Copyright 2015 Peter Goodman (peter@trailofbits.com), all rights reserved. */ #include <glog/logging.h> #include <sstream> #include <system_error> #include <llvm/Bitcode/ReaderWriter.h> #include <llvm/IR/BasicBlock.h> #include <llvm/IR/Function.h> #include <llvm/IR/LLVMContext.h> #include <llvm/IR/...
<commit_before>#include "style.h" #include <Tempest/Platform> #include <Tempest/Application> #include <Tempest/Painter> #include <Tempest/Widget> #include <Tempest/Button> #include <Tempest/Icon> #include <Tempest/TextEdit> #include <Tempest/Label> // #include <Tempest/CheckBox> #include <cassert> using namespace T...
<commit_before>#include "apf.h" #include "apfConvert.h" #include "apfMesh.h" #include "apfMesh2.h" #include "apfShape.h" #include <PCU.h> #include <map> namespace apf { class Converter { public: Converter(Mesh *a, Mesh2 *b) { inMesh = a; outMesh = b; } void run() { createVertic...
<commit_before>/* Copyright (C) 2005, Thorvald Natvig <thorvald@natvig.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) 2012 Stanford University * Copyright (c) 2015 Diego Ongaro * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE...
<commit_before>#ifndef STAN_MATH_OPENCL_REV_LDEXP_HPP #define STAN_MATH_OPENCL_REV_LDEXP_HPP #ifdef STAN_OPENCL #include <stan/math/opencl/kernel_generator.hpp> #include <stan/math/rev/core.hpp> #include <stan/math/rev/fun/value_of.hpp> namespace stan { namespace math { /** * Returns the elementwise `ldexp()` of th...
<commit_before>#ifndef STAN_MATH_REV_FUN_MULTIPLY_HPP #define STAN_MATH_REV_FUN_MULTIPLY_HPP #include <stan/math/rev/meta.hpp> #include <stan/math/rev/core.hpp> #include <stan/math/rev/core/typedefs.hpp> #include <stan/math/prim/fun.hpp> #include <type_traits> namespace stan { namespace math { /** * Return the prod...
<commit_before>// coding: utf-8 // ---------------------------------------------------------------------------- /* Copyright (c) 2009, Roboterclub Aachen e.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
<commit_before>#include "spiMaster.h" #include "main.h" #include <array> #include "mirrorDriver.h" /* *** Private Constants *** */ #define sizeofAdcSample (sizeof(adcSample) / 2) #define ENABLE_MINUS_7_PIN 52 #define ENABLE_7_PIN 53 #define ADC_CS0 35 #define ADC_CS1 37 #define ADC_CS2 7 #define ADC_CS3 2 #define trig...
<commit_before>#ifndef STAN_MATH_PRIM_FUN_QUANTILE_HPP #define STAN_MATH_PRIM_FUN_QUANTILE_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/Eigen.hpp> #include <stan/math/prim/fun/as_array_or_scalar.hpp> #include <algorithm> #include <vector> namespace stan { names...
<commit_before>#pragma once // https://infektor.net/posts/2017-03-31-range-based-enumerate.html #include <iterator> #include <utility> // ---------------------------------------------------------------------- namespace _enumerate_internal { template <class Iterator> struct enumerate_iterator { using...
<commit_before>#include "GameState.h" #include "DDSLoader.h" #include "File.h" #include "Math.h" #include "OpenGL.h" #include "StateMachine.h" #include <cassert> #include <cmath> #include <cstring> #include <list> #include <vector> #ifdef __APPLE__ #include <TargetConditionals.h> #if TARGET_OS_IPHONE static const cha...
<commit_before>#ifndef FMO_DESKTOP_EVALUATOR_HPP #define FMO_DESKTOP_EVALUATOR_HPP #include "frameset.hpp" #include <array> #include <fmo/algorithm.hpp> #include <fmo/assert.hpp> #include <fmo/pointset.hpp> #include <forward_list> #include <iosfwd> #include <map> enum class Event { TP = 0, TN = 1, FP = 2, FN = 3 }; e...
<commit_before>#ifndef __STDAIR_STDAIR_TYPES_HPP #define __STDAIR_STDAIR_TYPES_HPP // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <string> #include <vector> #include <list> // Boost (E...
<commit_before>/* * Copyright (C) 2014 Pelagicore AB * All rights reserved. */ #include <iostream> #include <unistd.h> #include <sys/signal.h> #include <sys/wait.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "controller.h" Controller::Controller(): m_pid(0) { } ...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/barChart/qwt3dBars.cpp,v $ // $Revision: 1.2 $ // $Name: $ // $Author: akoenig $ // $Date: 2007/11/13 14:24:26 $ // End CVS Header // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual // Properties, ...
<commit_before>/** @file Defines miscellaneous general purpose functor types. * @author Ralph Tandetzky */ #pragma once #include "swap.hpp" #include <utility> namespace cu { /// A functor class whose function call operator does nothing. /// /// This is a class that is needed to work around the gcc bug, that the ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkBoostBreadthFirstSearch.cxx Copyright 2007 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive license for use of this work by or ...
<commit_before>/*********************************************** * Author: Jun Jiang - jiangjun4@sina.com * Create: 2017-07-27 14:48 * Last modified : 2017-07-27 14:48 * Filename : MatrixAlgebra.cpp * Description : **********************************************/ #include "algebra/MatrixHelper.h" namespac...
<commit_before>/// @file /// @author uentity /// @date 26.02.2020 /// @brief Qt model helper impl /// @copyright /// This Source Code Form is subject to the terms of the Mozilla Public License, /// v. 2.0. If a copy of the MPL was not distributed with this file, /// You can obtain one at https://mozilla.org/MPL/2.0/ #...
<commit_before>// // Copyright (C) 2013-2016 University of Amsterdam // // 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 License, or // (at your option) any later versi...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2016. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //==================================================...
<commit_before>// // Created by Darren Otgaar on 2018/04/15. // #ifndef ZAP_RENDER_BATCH_HPP #define ZAP_RENDER_BATCH_HPP #include <array> #include <engine/index_buffer.hpp> #include <engine/vertex_buffer.hpp> #include <engine/accessor.hpp> #include <engine/mesh.hpp> namespace zap { namespace renderer { template <t...
<commit_before>/* -*- Mode: C++; c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil -*- * * Quadra, an action puzzle game * Copyright (C) 2006 Pierre Phaneuf <pphaneuf@users.sourceforge.net> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General...
<commit_before>/* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2010-2018 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>// Copyright (c) 2020, NVIDIA CORPORATION. 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, thi...
<commit_before>/* * Copyright 2005 The Apache Software Foundation. * * 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 requi...
<commit_before>// @(#)root/rint:$Name: $:$Id: TRint.cxx,v 1.20 2003/09/26 13:15:04 rdm Exp $ // Author: Rene Brun 17/02/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #inc...
<commit_before>// -*- mode: C++; c-file-style: "gnu" -*- /** * folderdiaquotatab.cpp * * Copyright (c) 2006 Till Adam <adam@kde.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 Software Foundation...
<commit_before>/* * Copyright 2016 The Cartographer 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
<commit_before>AliAnalysisTaskSEHFQA* AddTaskHFQA(AliAnalysisTaskSEHFQA::DecChannel ch,TString filecutsname="",Bool_t readMC=kFALSE, Bool_t simplemode=kFALSE, Int_t system=1 /*0=pp, 1=PbPb*/, TString finDirname=""){ // // Test macro for the AliAnalysisTaskSE for HF mesons quality assurance //Author: C.Bianchin ch...
<commit_before>/*************************************************************************** * @file red_black_tree_no_parent.h * @author Alan.W * @date 12 July 2014 * @remark Implementation of CLRS algorithms, using C++ templates. ***********************************************************...
<commit_before><commit_msg>Autofill filling on HTML form fills all entries except the entry clicked<commit_after><|endoftext|>
<commit_before>//===---- ClangQuery.cpp - clang-query tool -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "representer.h" #include "debug.h" #include "geometryutils.h" #include "manager.h" #include "resulteditor.h" #include "resultwidget.h" #include "settings.h" #include "task.h" #include "trayicon.h" #include <QApplication> #include <QClipboard> #include <QMouseEvent> #include <QScreen> Represent...
<commit_before>// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
<commit_before>//===- InputFiles.cpp -----------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>#pragma once #include "../stringify/jss_object.hpp" #include "../parse/jsd_core.hpp" #include <string> #include <iostream> #include <stdexcept> #include <vector> /** * Provides a wrapper called Base64Binary for use in classes instead of std::vector <char> etc. * It is meant to compress binary data...
<commit_before>// read two strings and report whether the strings have the same length // If not, report which is longer #include <iostream> #include <string> using std::string; using std::cin; using std::cout; using std::endl; int main() { string str1, str2; while (cin >> str1 >> str2) { if (str1.size() ==...
<commit_before>// // ex9_19.cpp // Exercise 9.19 // // Created by pezy on 12/3/14. // Copyright (c) 2014 pezy. All rights reserved. // // @Brief Rewrite the program from the previous exercise to use a list. // List the changes you needed to make. // @See ex9_18.cpp #include <iostream> #include <stri...
<commit_before>//! //! @author @huangjuncmj @Alan //! @date 19.11.2014 //! //! Exercise 9.26: //! Using the following definition of ia, copy ia into a vector and into a list. //! Use the single-iterator form of erase to remove the elements with odd values from your //! list and the even values from your vector. //! #...
<commit_before>//! @Soyn //! //! Exercise 9.51: //! Write a class that has three unsigned members representing year, //! month, and day. Write a constructor that takes a string representing //! a date. Your constructor should handle a variety of date formats, //! such as January 1, 1900, 1/1/1900, Jan 1, 1900, and so o...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before><commit_msg>Revert r369927 - [DAGCombiner] Remove a bunch of redundant AddToWorklist calls.<commit_after><|endoftext|>
<commit_before>// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #pragma once #if !defined(RXCPP_SOURCES_RX_ITERATE_HPP) #define RXCPP_SOURCES_RX_ITERATE_HPP #include "../rx-includes.hpp" namespace rxcpp { namespace sources { names...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkSource.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen. This software is copyrighted by Ken Mart...
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, 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 without limitation the rights to use, c...
<commit_before><commit_msg>Don't try to draw if there's no canvas or surface<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, 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 without limitation the rights to use, c...
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, 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 without limitation the rights to use, co...
<commit_before><commit_msg>add global pair distance interaction<commit_after><|endoftext|>
<commit_before>#include <string> #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmat...
<commit_before>#include "WPILib.h" /** * This is a quick sample program to show how to use the new Talon SRX over CAN. * As of the time of this writing (11/20/14), the only mode supported on the SRX is the * straight-up throttle (status info, such as current and temperature should work). * */ class Robot : public...
<commit_before>#include <sstream> #include <iostream> #include <vector> #include <cassert> #include <cmath> #include "config.h" #include <boost/shared_ptr.hpp> #include <boost/program_options.hpp> #include <boost/program_options/variables_map.hpp> #include "sentence_metadata.h" #include "scorer.h" #include "verbose....