text
stringlengths
54
60.6k
<commit_before>#pragma once #include <cmath> #include "global_config.hpp" namespace mocc { union float_int { float f; int32_t i; }; union double_int { double f; int64_t i; }; inline bool fp_equiv_ulp(float v1, float v2) { float_int i1; i1.f = v1; ...
<commit_before>/* * Copyright 2007-2018 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>/* * Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu) * * Released under the MIT license, see LICENSE.txt */ #include <deque> #include <cassert> #include "halMafExport.h" using namespace std; using namespace hal; MafExport::MafExport() : _maxRefGap(0), _noDupes(false) { } MafExport::~Maf...
<commit_before>/* The MIT License: Copyright (c) 2009-2011 Ivan Gagis 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, mo...
<commit_before>#include <fstream> #include <iostream> #include <string> #include <cstring> #include <vector> #include "mugen_item_content.h" #include "mugen_section.h" #include "mugen_reader.h" #include "globals.h" // Check for Clsn static bool checkClsn( const std::string &clsn ){ return ( clsn.find("Clsn") != std...
<commit_before>//--------------------------------------------------------- // Copyright 2016 Ontario Institute for Cancer Research // Written by Matei David (matei.david@oicr.on.ca) //--------------------------------------------------------- // #include "nanopolish_extract.h" #include <iostream> #include <sstream> #in...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2017 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before>// Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.com> // // 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 with...
<commit_before>#include "omnicore/wallettxs.h" #include "omnicore/log.h" #include "omnicore/omnicore.h" #include "omnicore/rules.h" #include "omnicore/script.h" #include "omnicore/utilsbitcoin.h" #include "amount.h" #include "base58.h" #include "coincontrol.h" #include "init.h" #include "main.h" #include "pubkey.h" #...
<commit_before>/** \file * * Copyright (c) 2015 by Travis Gockel. All rights reserved. * * This program is free software: you can redistribute it and/or modify it under the terms of the Apache License * as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any la...
<commit_before>/*! * Copyright (c) 2015 by Contributors * \file upsampling_nearest.cc * \brief * \author Bing Xu */ #include "./deconvolution-inl.h" #include "./upsampling-inl.h" namespace mxnet { namespace op { template<> Operator *CreateOp<cpu>(UpSamplingParam param) { if (param.sample_type == up_enum::kNeare...
<commit_before>/* This file is part of the Grantlee template system. Copyright (c) 2009,2010 Stephen Kelly <steveire@gmail.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 Free Software Foundation; eithe...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 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>#include "clay.hpp" #include <cstdio> #include <cstdlib> #include <cstdarg> // // invoke stack - a compilation call stack // static vector<InvokeStackEntry> invokeStack; void pushInvokeStack(ObjectPtr callable, const vector<TypePtr> &argsKey) { invokeStack.push_back(make_pair(callable, argsKey)...
<commit_before>/** Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License */ #include "pathOrderOptimizer.h" #include "utils/logoutput.h" #include "utils/BucketGrid2D.h" #include "utils/linearAlg2D.h" #define INLINE static inline namespace cura { /** * */ void PathOrderOptimizer::optimize() { ...
<commit_before>/** Copyright (C) 2013 Ultimaker - Released under terms of the AGPLv3 License */ #include "pathOrderOptimizer.h" #include "utils/logoutput.h" #include "utils/SparsePointGridInclusive.h" #include "utils/linearAlg2D.h" #define INLINE static inline namespace cura { /** * */ void PathOrderOptimizer::optim...
<commit_before>#include <catch.hpp> #include "aux/Aux.hpp" #include "Chip8.hpp" #include "CPU.hpp" namespace { using namespace Core8; SCENARIO("CPUs can assign the value of one register to another", "[assign]") { GIVEN("A CPU with some initialized registers") { Aux::TestKit testKit; CPU& cpu = testKit.cpu...
<commit_before>#include "UnitTest++/UnitTest++.h" #include "StrongAI/AI/CaseBasedAI/CaseBasedAI.hpp" SUITE( CaseBasedAITest ) { TEST( smokeTest ) { CaseBasedAI ai( 0, 0, 0, 0 ); auto output = ai.output(); CHECK_EQUAL( 0, output.size() ); ai.learn( 1 ); } TEST( seeks...
<commit_before>#include <Bull/Network/Address/SockAddrBuffer.hpp> #include <Bull/Network/Socket/UdpSocketImpl.hpp> namespace Bull { namespace prv { UdpSocketImpl::UdpSocketImpl(const std::unique_ptr<SocketImpl>& socket) : m_socket(socket) { /// Nothing } ...
<commit_before>#pragma once //mandala #include "types.hpp" #include "vertex_buffer.hpp" #include "index_buffer.hpp" #include "gpu_program_mgr.hpp" #include "basic_gpu_program.hpp" #include "rectangle.hpp" #include "line.hpp" #include "gpu_buffer_mgr.hpp" namespace mandala { template<typename T> void render_r...
<commit_before>#include <plasp/sas/Variable.h> #include <iostream> #include <plasp/utils/Formatting.h> #include <plasp/utils/IO.h> #include <plasp/utils/ParserException.h> namespace plasp { namespace sas { //////////////////////////////////////////////////////////////////////////////////////////////////// // // Var...
<commit_before>// Copyright (2015) Gustav #include "ride/proto.h" #include <google/protobuf/text_format.h> #include <wx/utils.h> #include <cassert> #include <fstream> // NOLINT this is how we use fstrean #include <sstream> // NOLINT this is how we use sstream #include <string> #include "tinyxml2.h" // NOLINT th...
<commit_before>#include "interface/usb.h" #include "util/bytebuffer.h" #include "util/log.h" #include "gpio.h" #ifdef CHIPKIT #define USB_VBUS_ANALOG_INPUT A0 #endif #define USB_HANDLE_MAX_WAIT_COUNT 35000 namespace gpio = openxc::gpio; using openxc::interface::usb::UsbDevice; using openxc::interface::usb::UsbEnd...
<commit_before>#pragma once /* RLTK (RogueLike Tool Kit) 1.00 * Copyright (c) 2016-Present, Bracket Productions. * Licensed under the LGPL - see LICENSE file. */ #include <string> #include <functional> #include <SFML/Graphics.hpp> #include "texture_resources.hpp" #include "virtual_terminal.hpp" #include "colors.hpp...
<commit_before>#pragma once #include "path.hh" #include "types.hh" #include "hash.hh" #include "content-address.hh" #include <map> namespace nix { /* Abstract syntax of derivations. */ struct DerivationOutput { StorePath path; std::optional<FixedOutputHash> hash; /* hash used for expected hash computatio...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "documentmetastoreattribute.h" #include <vespa/vespalib/util/exceptions.h> namespace proton { namespace { const vespalib::string _G_documentMetaStoreName("[documentmetastore...
<commit_before>// Copyright (c) 2011-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // File contains modifications by: The Gulden developers // All modifications: // Copyright (c) 2016-2018 Th...
<commit_before>/// /// @file pi_lmo_parallel.cpp /// @brief Parallel implementation of the Lagarias-Miller-Odlyzko /// prime counting algorithm using OpenMP. This implementation /// uses load balancing to ensure all threads are kept busy /// till the very end. This implementation also does not use...
<commit_before>#define __STDC_LIMIT_MACROS #include "rpc/mailbox/mailbox.hpp" #include <stdint.h> #include "errors.hpp" #include <boost/bind.hpp> #include <boost/function.hpp> #include "concurrency/pmap.hpp" #include "logger.hpp" /* raw_mailbox_t */ const int raw_mailbox_t::address_t::ANY_THREAD = -1; raw_mailbox...
<commit_before>#include "AutoTileDockWidget.h" #include "devices\Microscope.h" #include "MainWindow.h" #include "AgentController.h" namespace fetch{ namespace ui{ AutoTileDockWidget::AutoTileDockWidget(device::Microscope *dc, MainWindow *parent) : QDockWidget("Auto Tile",parent) { QWidget *w = new QWidget(this...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XTDataObject.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-08 16:56:12 $ * * The Contents of this file are m...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * inc...
<commit_before>/****************************************************************************** * Copyright 2018 The Apollo 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 ...
<commit_before>/** * \file RLSFilter.cpp */ #include "RLSFilter.h" #include <cstdint> #include <iostream> #include <stdexcept> #include <Eigen/Core> namespace ATK { template<typename DataType_> class RLSFilter<DataType_>::RLSFilterImpl { public: typedef Eigen::Matrix<DataType_, Eigen::Dynamic, Eigen::...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met:...
<commit_before>#include "gtest.h" #include "proposer.h" class ProposerTest : public testing::Test { protected: int id; int instances; struct proposer* p; virtual void SetUp() { id = 2; instances = 100; p = proposer_new(id, instances); } virtual void TearDown() { } }; TEST_F(ProposerTest, Prepare) { p...
<commit_before>/* * Vulkan examples debug wrapper * * Appendix for VK_EXT_Debug_Report can be found at https://github.com/KhronosGroup/Vulkan-Docs/blob/1.0-VK_EXT_debug_report/doc/specs/vulkan/appendices/debug_report.txt * * Copyright (C) 2016 by Sascha Willems - www.saschawillems.de * * This code is licensed under th...
<commit_before>#include <babylon/rendering/bounding_box_renderer.h> #include <babylon/babylon_stl_util.h> #include <babylon/buffers/vertex_buffer.h> #include <babylon/culling/bounding_box.h> #include <babylon/engines/engine.h> #include <babylon/engines/scene.h> #include <babylon/materials/ishader_material_optio...
<commit_before>#include "buffer_pool.hpp" #include <utility> #include <turbo/container/mpmc_ring_queue.hxx> namespace { } // anonymous namespace namespace beam { namespace message { buffer_pool::buffer_pool(std::size_t message_size, capacity_type capacity) : pool_(), free_list_(capacity) { for (auto iter ...
<commit_before>#pragma once #include <type_traits> #include <functional> #include <utility> #include <vector> #include <SFML/Graphics.hpp> #include "imgui/imgui.h" #include "Time.hpp" struct Game { public: Game(); virtual ~Game(); Game(Game const& other) = delete; Game(Game&& other) = delete; Game& operato...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000-2002 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. Red...
<commit_before>#ifndef _A_STAR_HPP_ #define _A_STAR_HPP_ #include <vector> #include <boost/none.hpp> #include <boost/optional.hpp> #include <boost/pool/pool_alloc.hpp> #include <boost/unordered_map.hpp> #include "search/BucketPriorityQueue.hpp" #include "util/PointerOps.hpp" template < class Domain, class Nod...
<commit_before>//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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://ww...
<commit_before>#include <gtest/gtest.h> #include <Unittests/unittests_common.hh> namespace { class OpenMeshReadWriteOFF : public OpenMeshBase { protected: // This function is called before each test is run virtual void SetUp() { // Do some initial stuff with the member data here......
<commit_before><commit_msg>fixed filesystem unit tests<commit_after><|endoftext|>
<commit_before>#include "Button.hpp" #include "Utils/Math.hpp" av::ui::Button::Button(const sf::Vector2f l_size, const sf::Vector2f l_position) : m_click_callback_(nullptr), m_enter_callback_(nullptr), m_exit_callback_(nullptr), m_background_(l_size) { m_inited_ = false; Init(l_size, l_position, 30, sf::Color::Gr...
<commit_before>#include "parlex/details/wirth.hpp" #include "parlex/builtins.hpp" #include "parlex/parser.hpp" #include "utils.hpp" #include "parlex/builder.hpp" #include "utf.hpp" #include <iostream> namespace parlex { namespace details { erased<builder::node> wirth_t::process_factor2(std::u32string const & docume...
<commit_before>/* Copyright (C) 2005-2011, 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 co...
<commit_before>/** * @file * @author Jason Lingle * @date 2012.02.06 * @brief Implementation of the GameDiscoverer class */ #include <cstring> #include <iostream> #include <algorithm> #include <SDL.h> #include "game_discoverer.hxx" #include "antenna.hxx" #include "tuner.hxx" #include "io.hxx" #include "src/glob...
<commit_before>// Copyright (c) 2017 William W. Fisher (at gmail dot com) // This file is distributed under the MIT License. #include "ofp/demux/pktfilter.h" #include <pcap/bpf.h> #include "ofp/log.h" using namespace ofp::demux; PktFilter::PktFilter(PktFilter &&rhs) : prog_{rhs.prog_}, filter_{std::move(rhs.filter_)...
<commit_before> #include "ofxCvGrayscaleImage.h" #include "ofxCvColorImage.h" #include "ofxCvFloatImage.h" //-------------------------------------------------------------------------------- ofxCvGrayscaleImage::ofxCvGrayscaleImage( const ofxCvGrayscaleImage& mom ) { allocate(mom.width, mom.height); cvCopy( mo...
<commit_before>#include "npc_system.h" #include "../algos/algorithm.h" #include "../algos/los_algorithm.h" #include "../components/collider_component.h" #include "../components/description_component.h" #include "../components/npc_component.h" #include "../components/player_component.h" #include <cmath> #include <glog/l...
<commit_before>// HACK - lifted from https://github.com/harto/realpath-osx #include <climits> #include <cstdio> #include <cstdlib> #include <cstring> #include <string> int main (int argc, char** argv) { using namespace std; size_t pathIdx = 1; bool canonicalizeMissing = false; if (argc ==...
<commit_before>#include "opt/ssa/phi_builder.h" #include "design/design_tool.h" #include "iroha/resource_class.h" #include "iroha/stl_util.h" #include "opt/bb_set.h" #include "opt/data_flow.h" namespace iroha { namespace opt { namespace ssa { PhiBuilder::PhiBuilder(ITable *tab, DebugAnnotation *annotation) : tabl...
<commit_before>/* Copyright (C) 2013 BMW Group * Author: Manfred Bathelt (manfred.bathelt@bmw.de) * Author: Juergen Gehring (juergen.gehring@bmw.de) * 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>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "platform/hashmap.h" #include "bin/builtin.h" #include "platform/utils.h" Has...
<commit_before>#include "RecommendSearchService.h" #include <recommend-manager/User.h> #include <recommend-manager/ItemCondition.h> #include <recommend-manager/UserManager.h> #include <recommend-manager/ItemManager.h> #include <recommend-manager/RecommenderFactory.h> #include <recommend-manager/RecommendParam.h> #inclu...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr> * * T...
<commit_before>// // Created by david on 2019-03-18. // #include <algorithms/class_algorithm_status.h> #include <glog/logging.h> #include <string> #include <tensors/class_tensors_finite.h> #include <tensors/model/class_model_finite.h> #include <tools/common/log.h> #include <tools/common/prof.h> #include <tools/finite/m...
<commit_before>#include "collision.h" Collision::Collision() { } bool Collision::Check(std::vector<std::shared_ptr<Entity> > shapes, std::string move) { auto current = shapes.front(); if (move == "down" && ( current->get<CPosition>()->getY() + current->get<CVelocity>()->getVelY() > 448 || ( ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/*********************************************************************** filename: StateChangeWrapper.cpp created: Wed, 8th Feb 2012 author: Lukas E Meindl *************************************************************************/ /****************************************************...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: chips/p9/procedures/hwp/lib/p9_hcd_common.H $ ...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * Version: MPL 1.1 / GPLv3+ / LGPLv3+ * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License or as spec...
<commit_before>#ifdef WIN32 #include <windows.h> #else #include <sys/select.h> #include <unistd.h> #endif #include <stdio.h> #include <stdlib.h> #include "SaleaeDeviceApi.h" #include "saleaeinterface.h" #if 0 #include <iostream> #include <typeinfo> #define LOG std::cerr << "[" << __func__ << ":" << __LINE...
<commit_before>/* This file is part of Groho, a simulator for inter-planetary travel and warfare. Copyright (c) 2017-2018 by Kaushik Ghose. Some rights reserved, see LICENSE This file defines the simulator code */ #include <filesystem> #include "initialorbit.hpp" #include "simulation.hpp" #include "simulator.hpp" #d...
<commit_before>// Copyright (c) 2014 Steinwurf ApS // All Rights Reserved // // Distributed under the "BSD License". See the accompanying LICENSE.rst file. namespace stub { /// @brief The return_handler is a helper object that is used /// e.g. in the call object to control which return values should /// be...
<commit_before>/******************************************************************************* * c7a/api/action_node.hpp * * Part of Project c7a. * * * This file has no license. Only Chuck Norris can compile it. ******************************************************************************/ #pragma once #ifnde...
<commit_before>#include <QUrl> #include "qt_sound.hpp" QtSound::QtSound() { for (auto &kv : sound_map) { auto path = QUrl::fromLocalFile(kv.second.first); sounds[kv.first].setSource(path); } } bool QtSound::play(AudibleAlert alert) { int loops = sound_map[alert].second> - 1 ? sound_map[alert].second : Q...
<commit_before>#pragma once #ifdef __clang__ #pragma GCC diagnostic ignored "-Wdeprecated" #pragma GCC diagnostic ignored "-Wdisabled-macro-expansion" #pragma GCC diagnostic ignored "-Wdocumentation" #pragma GCC diagnostic ignored "-Wdocumentation-unknown-command" #pragma GCC diagnostic ignored "-Wglobal-constructors"...
<commit_before>// Copyright 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 "cc/resources/picture.h" #include <set> #include <string> #include "base/base64.h" #include "base/trace_event/trace_event.h" #in...
<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>#include <stdio.h> #include <iostream> #include <memory> #include <string> #include <vector> #include <clang/Basic/DiagnosticOptions.h> #include <clang/Basic/TargetInfo.h> #include <clang/CodeGen/CodeGenAction.h> #include <clang/Frontend/CompilerInstance.h> #include <clang/Frontend/TextDiagnosticPrinte...
<commit_before>// Copyright (c) 2009 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 "native_client/src/include/portability.h" #if NACL_OSX #include <crt_externs.h> #endif #define NACL_NO_INLINE EXTERN_C_BEGI...
<commit_before>/* * Copyright (C) 2008-2019 The QXmpp developers * * Author: * Georg Rudoy * Jeremy Lainé * * Source: * https://github.com/qxmpp-project/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GN...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the QtCore module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No...
<commit_before>#ifndef SILICIUM_ITERATOR_RANGE_HPP #define SILICIUM_ITERATOR_RANGE_HPP #include <silicium/config.hpp> #include <boost/static_assert.hpp> #include <cassert> namespace Si { namespace detail { //std::iterator_traits<T const *>::value_type seems to be T (GCC 4.8), but that //is not useful at all bec...
<commit_before>#ifndef SILICIUM_ITERATOR_RANGE_HPP #define SILICIUM_ITERATOR_RANGE_HPP #include <silicium/config.hpp> #include <boost/static_assert.hpp> #include <boost/range/begin.hpp> #include <boost/range/end.hpp> #include <cassert> namespace Si { namespace detail { //std::iterator_traits<T const *>::value_typ...
<commit_before>// See LICENSE file for copyright and license details. #include <cstdlib> #include <cassert> #include <ctime> #include <stdexcept> #include "core/core.hpp" #include "core/jsonHelpers.hpp" #include "core/command.hpp" #include "core/command/commandMove.hpp" #include "core/command/commandAttack.hpp" #inclu...
<commit_before>/* * Copyright (C) 2014 Cloudius Systems, Ltd. */ #ifndef PRINT_HH_ #define PRINT_HH_ #include <boost/format.hpp> #include <iostream> inline void apply_format(boost::format& fmt) { } template <typename A0, typename... Arest> inline void apply_format(boost::format& fmt, A0&& a0, Arest&&... arest) { ...
<commit_before>// The MIT License (MIT) // Copyright (c) 2013 Danny Y., Rapptz // 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...
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <guido.tack@monash.edu> */ /* 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>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/diag/prdf/common/plat/pegasus/prdfLaneRepair.C $ ...
<commit_before>/* Copyright 2018 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 <sys/types.h> #include <sys/ioctl.h> #include <unistd.h> #include <arpa/inet.h> // manipulação de endereços IP #include <linux/if_ether.h> #include <net/ethernet.h> #include <net/if.h> // ifr struct #include <netinet/ether.h> // header ethernet #include <netinet/in.h> ...
<commit_before>/* The MIT License (MIT) Copyright (c) 2014 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 Aldebaran Robotics */ #include <gtest/gtest.h> #include <vector> #include <iostream> #include <cmath> #include <qi/transport/src/zmq/zmq_publisher.hpp> #include <qi/transport/src/zmq/zmq_subscriber.hpp> #include <qi/perf/sleep.hpp> #include <boost/timer.hpp> struct SubscribePe...
<commit_before>/****************************************************************************** File: Realloc.cpp Description: Object Memory management class object resizing routines ******************************************************************************/ #include "Ist.h" #pragma code_seg(MEM_SEG) #inclu...
<commit_before>#ifndef GUARD_phatbooks_persistent_object_hpp #define GUARD_phatbooks_persistent_object_hpp #include "phatbooks_database_connection.hpp" #include <sqloxx/general_typedefs.hpp> #include <sqloxx/handle.hpp> /** * @file phatbooks_database_connection.hpp * * Contains base classes for "business classes" ...
<commit_before>// Copyright (c) 2009 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 <limits> #include <set> #include <string> #include "chrome/browser/history/text_database.h" #include "app/sql/statement.h" #...
<commit_before>// Copyright (c) 2009 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 "chrome/browser/process_singleton.h" #include "base/base_paths.h" #include "base/command_line.h" #include "base/process_util....
<commit_before> #include "stdafx.h" #include <cstdlib> #include <stdio.h> #include <iostream> #include <zorba/util/time.h> #include "zorbautils/hashmap.h" #include "util/hashmap32.h" #include "util/hashmap.h" #include "util/unordered_map.h" namespace zorba { namespace UnitTests { class IntCompFunc { public: sta...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/mctp/runtime/mctprp_rt.C $ ...
<commit_before>/* Copyright (C) 2005 by Andrew Mann 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 later version....
<commit_before>// Copyright (c) 2011 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 "chrome/browser/ui/webui/theme_source.h" #include "base/message_loop.h" #include "base/ref_counted_memory.h" #include "chrome...
<commit_before>// Copyright (c) 2010 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 "chrome/common/pepper_plugin_registry.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/native_lib...
<commit_before>// Copyright (c) 2010 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 "chrome/common/pepper_plugin_registry.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/native_lib...
<commit_before>/* Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <vector> #include <utility> #include <string> #include "util/thread.h" #include "util/pair.h" #include "util/script_state.h" namesp...