text
stringlengths
54
60.6k
<commit_before>/* Copyright (c) 2017 Wenova - Rise of Conquerors. All rights reserved. * * This work is licensed under the terms of the MIT license. * For a copy, see <https://opensource.org/licenses/MIT>. */ /** * @file EditableFloor.cpp * Implements class EditableFloor methods. */ /** * Commented debugs shou...
<commit_before>/* * Raging MIDI (https://github.com/waddlesplash/ragingmidi). * * Copyright (c) 2012-2013 WaddleSplash & contributors (see AUTHORS.txt). * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to de...
<commit_before>/** * * @file compiled_plugin_base.cpp * * @date Jan 15, 2013 * @author partio */ #include "compiled_plugin_base.h" #include <boost/thread.hpp> #include "plugin_factory.h" #include "logger_factory.h" #define HIMAN_AUXILIARY_INCLUDE #include "neons.h" #include "writer.h" #include "pcuda.h" #inclu...
<commit_before> #include <Hord/LockFile.hpp> #include <cstdlib> #include <cstdio> #include <utility> #include <unistd.h> #include <sys/file.h> #include <Hord/detail/gr_ceformat.hpp> namespace Hord { // class LockFile implementation #define HORD_SCOPE_CLASS LockFile LockFile::~LockFile() { release(); } LockFile...
<commit_before>#ifndef ALEPH_PERSISTENT_HOMOLOGY_CONNECTED_COMPONENTS_HH__ #define ALEPH_PERSISTENT_HOMOLOGY_CONNECTED_COMPONENTS_HH__ #include "persistenceDiagrams/PersistenceDiagram.hh" #include "persistentHomology/PersistencePairing.hh" #include "topology/SimplicialComplex.hh" #include "topology/UnionFind.hh" #i...
<commit_before>#pragma once #include "common/SerializeCustom.hpp" #include "util/RapidjsonHelpers.hpp" #include <QRegularExpression> #include <QString> #include <memory> #include <pajlada/settings/serialize.hpp> namespace chatterino { class HighlightPhrase { QString pattern; bool alert; ...
<commit_before>#include <stdlib.h> #include <stdio.h> #include <string.h> #include <winscard.h> #include "CSmartCard.h" CSmartCard::CSmartCard() { } CSmartCard::~CSmartCard() { Uninit(); } bool CSmartCard::Init() { bool ret = false; LONG result; LPTSTR pReaders, pReader; // context result = SCardEstablishC...
<commit_before>#include "OpenGLTexture.h" #include "TextureRef.h" #include "Image.h" #define GL_GLEXT_PROTOTYPES #if defined __APPLE__ #include <OpenGLES/ES3/gl.h> #include <OpenGLES/ES3/glext.h> #elsif defined GL_ES #include <GLES3/gl3.h> #include <EGL/egl.h> #include <EGL/eglext.h> #else #define GL_GLEXT_PROTOTYPE...
<commit_before>/* * OstringStream.cpp * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include "log4cpp/Portability.hh" #include <stdio.h> #include "log4c...
<commit_before>#include <iostream> #include <vector> void carr_func(int * vec) { std::cout << "carr_func - vec: " << vec << std::endl; } int main(void) { std::vector<int> v1 = {-1, 3, 5, -8, 0}; std::vector<int> v2; auto v3(v1); //initialize v3 via copy /** * Managing std::vector capacity */ //Unlike std::a...
<commit_before>/** @file config.hpp @brief Configuration. @author Tim Howard @copyright 2013 Tim Howard under the MIT license; see @ref index or the accompanying LICENSE file for full text. */ #ifndef HORD_CONFIG_HPP_ #define HORD_CONFIG_HPP_ #include <cstddef> #include <cstdint> /** @addtogroup config @{ */ /**...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision: 7837 $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. Se...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKC...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MIT...
<commit_before><commit_msg>adding chisquare output<commit_after><|endoftext|>
<commit_before><commit_msg>Doubles up on register mirroring. Will do for now. More to come.<commit_after><|endoftext|>
<commit_before><commit_msg>修改提示框字符高度计算<commit_after><|endoftext|>
<commit_before>//===-- AArch64TargetMachine.cpp - Define TargetMachine for AArch64 -------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * Copyright (c) 2012-2021 Fredrik Mellbin * * This file is part of VapourSynth. * * VapourSynth 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 ...
<commit_before>/* * Copyright (c) 2012-2013 Fredrik Mellbin * * This file is part of VapourSynth. * * VapourSynth 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 ...
<commit_before>// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/common/native_mate_converters/net_converter.h" #include <string> #include <vector> #include "atom/common/native_mate_converters/gurl_converter.h" #inclu...
<commit_before>#include "SkeletonSmoother.h" SkeletonSmoother::SkeletonSmoother(ICoordinateMapper *coordinateMapper) : m_CoordinateMapper(coordinateMapper) , m_SmoothScale(1.f) , m_PositionScale(1.f) { std::fill(m_JointPositions.at(0).begin(), m_JointPositions.at(0).end(), JointProp()); std::fill(m...
<commit_before>/* * FileLock.cpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General Publ...
<commit_before>#include <process.hpp> #include <vector> #include <glog/logging.h> #include <boost/lexical_cast.hpp> #include "config/config.hpp" #include "common/fatal.hpp" #include "common/foreach.hpp" #ifdef WITH_ZOOKEEPER #include "common/zookeeper.hpp" #endif #include "messaging/messages.hpp" #include "detec...
<commit_before>#include <cstring> #include <string> #include "halley/bytes/byte_serializer.h" #include "halley/text/halleystring.h" using namespace Halley; Serializer::Serializer(SerializerOptions options) : options(std::move(options)) , dryRun(true) {} Serializer::Serializer(gsl::span<gsl::byte> dst, SerializerOp...
<commit_before>#ifndef COZMO_COZMO_HPP_ #define COZMO_COZMO_HPP_ #include "dart/dart.hpp" using BodyNodePtr = dart::dynamics::BodyNodePtr; using SkeletonPtr = dart::dynamics::SkeletonPtr; using InverseKinematicsPtr = dart::dynamics::InverseKinematicsPtr; class Cozmo { private: SkeletonPtr cozmo; BodyNodePtr head...
<commit_before>/* * expressions.hpp * Author: Radu Cotescu (rdc1g10@soton.ac.uk) * * Part 2: Expression Templates * Write C++ templates which allow you to use types to represent arithmetic * expressions over the four basic operations (addition, subtraction, * multiplication and division), a single variable, and ...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This application is open source and may be redistributed and/or modified * freely and without restriction, both in commericial and non commericial applications, * as long as this copyright notice is maintained. * * This a...
<commit_before>/*========================================================================= * * Copyright RTK 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>/**********************************************************************/ /* Copyright 2014 RCF */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may no...
<commit_before>#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" #include "audiobuffer.h" TEST_CASE( "RingBuffer", "[AudioBuffer]" ) { SECTION("Allocation") { AudioBuffer buffer; buffer.allocateRingbuffers(1024); REQUIRE(b...
<commit_before>// // inpal_prime.hpp // inpalprime // // Created by bryan triana on 7/13/16. // Copyright © 2016 Inverse Palindrome. All rights reserved. // #ifndef inpal_prime_hpp #define inpal_prime_hpp #include <vector> #include <string> namespace inpal { class prime { public: static std:...
<commit_before>/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | ...
<commit_before>/* +---------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | ...
<commit_before>#ifndef MESOS_SCHED_HPP #define MESOS_SCHED_HPP #include <string> #include <map> #include <vector> #include <mesos.hpp> namespace mesos { class SchedulerDriver; namespace internal { class SchedulerProcess; class MasterDetector; class Configuration; } /** * Callback interface to be implemented by...
<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>/************************************************************************* * * $RCSfile: YTables.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2004-10-22 08:44:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/* * trie_buffer.hpp * * Created on: Feb 17, 2015 * Author: masha */ #ifndef INCLUDE_POOL_BUFFER_HPP_ #define INCLUDE_POOL_BUFFER_HPP_ #include "abaptr.hpp" #include <atomic> #include <cassert> #include <algorithm> namespace lfds { namespace { template<class T> struct pool_node { typed...
<commit_before>#ifndef __RANK_FILTER__ #define __RANK_FILTER__ #include <deque> #include <cassert> #include <functional> #include <iostream> #include <iterator> #include <boost/array.hpp> #include <boost/container/set.hpp> #include <boost/container/node_allocator.hpp> #include <boost/math/special_functions/round.hpp...
<commit_before>/* * Copyright 2016-2017 deepstreamHub GmbH * * 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 a...
<commit_before><commit_msg>These function members does not need to be virtual<commit_after><|endoftext|>
<commit_before>#pragma once #include <xcb/xcb.h> #include "common.hpp" #include "config.hpp" #include "utils/socket.hpp" #include "utils/string.hpp" LEMONBUDDY_NS namespace bspwm_util { struct payload; using subscriber_t = unique_ptr<socket_util::unix_connection>; using payload_t = unique_ptr<payload>; /**...
<commit_before>/************************************************************************/ /* */ /* Copyright 2001-2002 by Gunnar Kedenburg */ /* Cognitive Systems Group, University of Hamburg, Germany */ /* ...
<commit_before>#include <iostream> #include <filesystem> #include <vector> #include <map> #include <string> #include <fstream> using namespace std; #if (__cplusplus >= 201703L && (!defined(__GNUC__) || (__GNUC__*100+__GNUC_MINOR__) >= 800)) #include <filesystem> namespace fs = std::filesystem; #define USE_FILESYSTEM...
<commit_before>/************************************************************************* * * $RCSfile: ik_singleton.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: np $ $Date: 2002-11-01 17:12:04 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>/**************************************************************************** * * Copyright (c) 2018 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) 2017 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 2007 Stephen Liu * For license terms, see the file COPYING along with this library. */ #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <string.h> #include "spporting.hpp" #include "spioutils.hpp" void SP_IOUtils :: inetNtoa( in_addr * addr, char * ip, int size ) { ...
<commit_before>//===- SymbolTable.cpp ----------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: shell.cpp // Purpose: Implementation of class wxExSTCShell // Author: Anton van Wezenbeek // Copyright: (c) 2012 Anton van Wezenbeek ////////////////////////////////////////////////////////////////////////...
<commit_before>// Copyright (c) 2015 Felix Rieseberg <feriese@microsoft.com> and Jason Poon <jason.poon@microsoft.com>. All rights reserved. // Copyright (c) 2015 Ryan McShane <rmcshane@bandwidth.com> and Brandon Smith <bsmith@bandwidth.com> // Thanks to both of those folks mentioned above who first thought up a bunch ...
<commit_before>/****************************************************************************** The MIT License(MIT) Embedded Template Library. Copyright(c) 2014 jwellbelove Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software")...
<commit_before>#include "BenchmarkStack.h" #include "StackAllocator.h" BenchmarkStack::BenchmarkStack(const int runtime) : Benchmark(runtime) { } BenchmarkResults BenchmarkStack::allocation() { setStartTimer(); StackAllocator stackAllocator(1e10); int operations = 0; while(!outOfTime()){ stackAllocator.Allo...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AsynchronousTask.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2006-04-26 20:46:22 $ * * The Contents of this file a...
<commit_before>// Copyright (c) 2010 The Native Client 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 "ppapi/proxy/plugin_file_ref.h" #include "native_client/src/include/portability.h" #include "ppapi/proxy/plugin_globals....
<commit_before>/* Copyright (c) 2012, 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>#ifndef DISSENT_CRYPTO_INTEGER_H_GUARD #define DISSENT_CRYPTO_INTEGER_H_GUARD #include <QByteArray> #include <QSharedData> #include <QString> #include "Utils/Utils.hpp" namespace Dissent { namespace Crypto { class IIntegerImpl : public QSharedData { public: virtual ~IIntegerImpl() {} ...
<commit_before>#include <ros/ros.h> #include <quirkd/Alert.h> #include <nav_msgs/GetMap.h> #include <sensor_msgs/LaserScan.h> class DataController { public: DataController() { alert_pub_ = n_.advertise<quirkd::Alert>("/quirkd/alert/notification", 1); laser_sub_ = n_.subscribe("/base...
<commit_before>#include <TGUI/TGUI.hpp> #include <vili/Vili.hpp> #include "System/Window.hpp" #include <Editor/MapEditor.hpp> #include <Modes/Game.hpp> #include <Modes/Menu.hpp> #include <Modes/Toolkit.hpp> #include <System/Config.hpp> #include <System/Loaders.hpp> #include <System/Path.hpp> #include <Utils/StringUtil...
<commit_before>/* * Copyright (c) 2016 dresden elektronik ingenieurtechnik gmbh. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * */ #include <QApplication> #incl...
<commit_before>#ifndef WIN32 #pragma clang diagnostic ignored "-Wpotentially-evaluated-expression" #include <string> #include <catch.hpp> #include "chemfiles.hpp" #include "chemfiles/TrajectoryFactory.hpp" #include "chemfiles/Error.hpp" #include "chemfiles/formats/XYZ.hpp" #include "chemfiles/Frame.hpp" using names...
<commit_before>// // rule.cpp // Parse // // Created by Andrew Hunter on 30/04/2011. // Copyright 2011 __MyCompanyName__. All rights reserved. // #include "rule.h" #include "standard_items.h" using namespace contextfree; /// \brief Creates a copy of a rule rule::rule(const rule& copyFrom) : m_NonTerminal(copyFro...
<commit_before>/* JcMess: A simple utility so save your jack-audio mess. Copyright (C) 2007-2010 Juan-Pablo Caceres. 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 restri...
<commit_before>/** * Distgen * Multi-threaded memory access pattern generator * * Every thread traverses its own nested series of arrays * with array sizes as specified. Array sizes correlate * to distances in a reuse distance histogram, and fit into * given layers (caches) of the memory hierarchy. * The idea is to app...
<commit_before>/* Copyright (C) 2007 <SWGEmu> This File is part of Core3. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version....
<commit_before>/* * VehicleObjectImplementation.cpp * * Created on: 10/04/2010 * Author: victor */ #include "server/zone/objects/creature/VehicleObject.h" #include "server/zone/packets/object/ObjectMenuResponse.h" #include "server/zone/objects/creature/CreatureObject.h" #include "server/zone/objects/player/...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>/* * CUDArrays is a library for easy multi-GPU program development. * * The MIT License (MIT) * * Copyright (c) 2013-2015 Barcelona Supercomputing Center and * University of Illinois * * Developed by: Javier Cabezas <javier.cabezas@gmail.com> * * Permission is hereby gr...
<commit_before>// /////////////////////////////////////////////////////////////////////////// // tenh/conceptual/conceptualinheritancegraph.hpp by Vector Dods, created 2013/09/12 // Copyright Leap Motion Inc. // /////////////////////////////////////////////////////////////////////////// #ifndef TENH_CONCEPTUAL_CONCEPT...
<commit_before>#pragma once // std #include <cstdint> #include <unordered_map> // project #include "depthai-shared/common/UsbSpeed.hpp" #include "depthai-shared/common/optional.hpp" #include "depthai-shared/device/BoardConfig.hpp" #include "depthai-shared/utility/Serialization.hpp" #include "depthai-shared/xlink/XLin...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>#pragma once #include <cstddef> #include <boost/iterator/counting_iterator.hpp> #include <boost/iterator/transform_iterator.hpp> #include <boost/iterator/iterator_facade.hpp> #include "andres/graph/grid-graph.hxx" #include "nifty/tools/runtime_check.hxx" #include "nifty/graph/undirected_graph_base.hxx...
<commit_before>// Copyright (c) 2017 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAOCPP_PEGTL_INCLUDE_CONTRIB_REP_ONE_MIN_MAX_HPP #define TAOCPP_PEGTL_INCLUDE_CONTRIB_REP_ONE_MIN_MAX_HPP #include <algorithm> #include "../config.hpp" #include "...
<commit_before>//! \file ************************************************************** //! \brief Source Gestion des action/raccourcis //! //! - Compilateur : GCC,MinGW //! //! \author Antoine Maleyrie //! \version 1.13 //! \date 20.03.2013 //! //! ******************************************************************** ...
<commit_before>/* * Copyright (C) 2004-2013 ZNC, see the NOTICE file for details. * * 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>#include <iostream> #include <boost/smart_ptr.hpp> using namespace std; int main(){ boost::shared_ptr<int> p(new int); *p = 10; cout << *p << endl; cout << "Count of p is " << p.use_count() << endl; int* int_ptr = new int; boost::shared_ptr<int> p2(p); *int_ptr = 20; cou...
<commit_before>// This is free and unencumbered software released into the public domain. // For more information, please refer to <http://unlicense.org/> #include "GeometricShapes.h" #include <cmath> #include "SupportLibrary.h" Cylinder::Cylinder() { diameter_ = -999999; length_ = -999999; } Cylinder::~Cylind...
<commit_before>//Implementation of a Forest Fire Simulation #include <cassert> #include <random> #include "forest.hpp" #include "tclap/ValueArg.h" WARPED_REGISTER_POLYMORPHIC_SERIALIZABLE_CLASS(ForestEvent) std::vector<std::shared_ptr<warped::Event> > Forest::initializeLP() { // Register random number generator...
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*- commands/refreshx509certscommand.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2008 Klarälvdalens Datakonsult AB Kleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU General Publ...
<commit_before><commit_msg>do not make default suffix lower case<commit_after><|endoftext|>
<commit_before><commit_msg>remove whitespace<commit_after><|endoftext|>
<commit_before>/* This file is part of nSkinz by namazso, licensed under the MIT license: * * MIT License * * Copyright (c) namazso 2018 * * 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 with...
<commit_before>#include "AtomTable_wrap.h" #include <opencog/atomspace/AtomTable.h> #include <boost/python/class.hpp> using namespace opencog; using namespace boost::python; void init_AtomTable_py() { class_<AtomTable, boost::noncopyable>("AtomTable", no_init) .def(init<optional<bool> >()) .def("g...
<commit_before>#pragma once #include <rapidjson/document.h> #include "blackhole/repository/config/parser.hpp" namespace blackhole { namespace repository { namespace config { // Converter adapter specializations for rapidjson value. template<> struct transformer_t<rapidjson::Value> { typedef rapidjson::Value v...
<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>// Copyright (c) 2015 Baidu, 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 applicabl...
<commit_before>// Copyright Daniel Wallin 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 <boost/python.hpp> #include <libtorrent/torrent_info.hpp> #include "libtorrent...
<commit_before>// Copyright Daniel Wallin 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 <boost/python.hpp> #include <libtorrent/torrent_info.hpp> #include "libtorrent...
<commit_before>#include <iostream> #include <algorithm> #include <cmath> #include <iomanip> #include <vector> using namespace std; struct reg { int Y; double R; bool operator <(const reg& right) const { return Y < right.Y; } reg(int y, double r) { Y = y; R = r; } }; int main() { int N, M; ...
<commit_before>#include "Pic.h" static const u16 PIC1 = 0x20; static const u16 PIC2 = 0xA0; static const u16 PIC1_COMMAND = PIC1; static const u16 PIC1_DATA = PIC1+1; static const u16 PIC2_COMMAND = PIC2; static const u16 PIC2_DATA = PIC2+1; Pic::Pic() { //see http://web.archive.org/web/20041023230527/http:...
<commit_before>#include <iostream> using std::cin; using std::cout; using std::endl; int registers[10]; int ram[1000]; int ip = 0; bool runNextInstruction() { int instruction = ram[ip]; if (instruction == 100) return false; else { int o1 = instruction / 10 % 10; int o2 = instruction % 10; switch (instru...
<commit_before>//===- DataStructureAA.cpp - Data Structure Based Alias Analysis ----------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 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>/* This file is part of HadesMem. Copyright 2010 RaptorFactor (aka Cypherjb, Cypher, Chazwazza). <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com> HadesMem is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by t...
<commit_before>// Copyright (c) 2012 Intel Corp // Copyright (c) 2012 The Chromium Authors // // 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 limi...
<commit_before>/* The goal of these tests is to verify the behavior of all blob commands given * the current state is updateStarted. This state is achieved as an exit from * updatePending. */ #include "firmware_handler.hpp" #include "firmware_unittest.hpp" #include "status.hpp" #include "util.hpp" #include <cstdin...
<commit_before>//===- ScalarReplAggregates.cpp - Scalar Replacement of Aggregates --------===// // // This transformation implements the well known scalar replacement of // aggregates transformation. This xform breaks up alloca instructions of // aggregate type (structure or array) into individual alloca instructions ...
<commit_before>// Copyright © 2017-2018 Dmitriy Khaustov // // 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 "pch.h" #include "MyPropertyPage.h" #include "DspMatrix.h" namespace SaneAudioRenderer { namespace { void Write(std::vector<char>& out, void* src, size_t size) { assert(src); assert(size > 0); out.insert(out.end(), size, ...
<commit_before>#include <iostream> using namespace std; int main() { int x, y; cin >> x; if (x >= y) {cout << x;} else {cout << y; } return 0; }<commit_msg>Delete task21.cpp<commit_after><|endoftext|>