text
stringlengths
54
60.6k
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /**\file examples/valence.C \brief Valence of sparse matrix over Z or Zp. \ingroup examples */ //#include "linbox-config.h" #include <iostream> #include "linbox/field/modular-double.h" #include "linbox/field/gmp-integers.h" #i...
<commit_before>/** * @file * @copyright defined in eos/LICENSE */ #include <fc/io/raw.hpp> #include <fc/bitutil.hpp> #include <fc/smart_ref_impl.hpp> #include <algorithm> #include <mutex> #include <boost/range/adaptor/transformed.hpp> #include <boost/multi_index_container.hpp> #include <boost/multi_index/sequence...
<commit_before>#include <Element.h> #include <FWPlatform.h> #include <HeadingText.h> #include <TextLabel.h> #include <LinearLayout.h> #include <FWApplication.h> #include <cassert> using namespace std; atomic<int> Element::nextInternalId(1); Element::~Element() { // the platform itself cannot be unregistered at th...
<commit_before>/** * \file FFTPlot.cpp * \brief Contains the FFTPlot class */ #include "FFTPlot.h" // class constructor FFTPlot::FFTPlot(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : ChaosPlot(parent, id, ...
<commit_before>// Copyright 2013 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_frame/turndown_prompt/turndown_prompt.h" #include <atlbase.h> #include <shlguid.h> #include "base/bind.h" #include "base...
<commit_before>#include "loadedinstance.hpp" #include <map> #include <string> #if defined(_MSC_VER) || defined(__BORLANDC__) #define WIN32_LEAN_AND_MEAN #include <windows.h> inline void *getMethod(void *handle, const char *methodName) { return static_cast<void*>(GetProcAddress(static_cast<HMODULE>(handle), metho...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkPolyDataSilhouette.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details....
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkMedicalImageProperties.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for deta...
<commit_before>/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | ...
<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>// $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>/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across ...
<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>#include <osg/Image> #include <osg/Notify> #include <osg/Geode> #include <osg/Image> #include <osg/GL> //Make the half format work against openEXR libs // #define OPENEXR_DLL #include <osgDB/Registry> #include <osgDB/FileNameUtils> #include <osgDB/FileUtils> #include <ImfRgbaFile.h> #include <ImfIO.h...
<commit_before>// *************************************************************************** // // Generated automatically by genwrapper. // Please DO NOT EDIT this file! // // *************************************************************************** #include <osgIntrospection/ReflectionMacros> #include <osgInt...
<commit_before>#include "GraphML.h" #include "DirectedGraph.h" #include "UndirectedGraph.h" #include <tinyxml2.h> #include <Table.h> #include <cassert> #include <map> #include <iostream> using namespace std; using namespace tinyxml2; using namespace table; GraphML::GraphML() : FileTypeHandler("GraphML", true) { ...
<commit_before>#include "webcam.hpp" using namespace cv; using namespace std; Mat ellipticKernel(int width, int height = -1) { if (height==-1) { return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2)); } else { return getStructuringElement(MORPH_ELLIPSE,Size(width,height), Point(w...
<commit_before>/************************************************************************* * * $RCSfile: MABTables.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: oj $ $Date: 2001-10-12 11:53:28 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* Copyright (c) 2015, Burak Sarac, burak@linux.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: 1. Redistributions of source code must retain the above copyright notice, this list ...
<commit_before>#include "Job.h" namespace cefpdf { namespace job { Job::Job() : m_outputPath(), m_pageSize(), m_pageOrientation(PageOrientation::PORTRAIT), m_pageMargin(), m_backgrounds(false), m_status(Job::Status::PENDING), m_callback(), m_scale(100) { SetPageSize(cefpdf::constan...
<commit_before>#include "statistics.hpp" #include "indexer/classificator.hpp" #include "indexer/data_factory.hpp" #include "indexer/feature_impl.hpp" #include "indexer/feature_processor.hpp" #include "geometry/triangle2d.hpp" #include "base/logging.hpp" #include "base/string_utils.hpp" #include "std/iomanip.hpp" #i...
<commit_before>#include <chrono> #include <fstream> #include <iostream> #include "image.h" using namespace AhoViewer::Booru; #include "browser.h" #include "settings.h" Image::Image(const std::string &path, const std::string &url, const std::string &thumbPath, const std::string &thumbUrl, co...
<commit_before>#include "stdafx.h" #include "TimeManager.h" TimeManager* g_pTimeManager=NULL ; TimeManager::TimeManager() { __ENTER_FUNCTION m_CurrentTime = 0 ; __LEAVE_FUNCTION } TimeManager::~TimeManager() { __ENTER_FUNCTION __LEAVE_FUNCTION } BOOL TimeManager::Init() { __ENTER_FUNCTION #if defined(_...
<commit_before><commit_msg>Update Pollard Rho.cpp<commit_after><|endoftext|>
<commit_before>#include "Common.h" #include "Logging.h" #include <stdarg.h> VINYL_NS_BEGIN; namespace Log { FormatVarInt::FormatVarInt(int i) { m_value = i; } FormatVarInt::~FormatVarInt() { if (m_cache != nullptr) { delete m_cache; } } const char* FormatVarInt::GetString() { if (m_cache != null...
<commit_before>//---------------------------------------------------------------------------// //! //! \file Utility_TetrahedronHelpers.cpp //! \author Alex Robinson, Eli Moll //! \brief Tetrahedron helper functions //! //---------------------------------------------------------------------------// // Std Lib Incl...
<commit_before>/* ============================================================================ * Copyright (c) 2014 William Lenthe * Copyright (c) 2014 DREAM3D Consortium * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the f...
<commit_before>/* Copyright (c) 2018 PaddlePaddle 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 applic...
<commit_before>#include "buffer/core.h" #include "allocators/scalloc_core-inl.h" #include "spinlock-inl.h" #include "typed_allocator.h" #include "utils.h" namespace { scalloc::TypedAllocator<scalloc::CoreBuffer> core_buffer_alloc; SpinLock new_buffer_lock(LINKER_INITIALIZED); } namespace scalloc { uint64_t CoreBu...
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. 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 // // ...
<commit_before>/*********************************************************************** filename: CEGUIClipboard.cpp created: 28/5/2011 author: Martin Preisler purpose: Implements platform independent clipboard handling ***********************************************************************...
<commit_before>/* * Pyramid.cpp * * Created on: Sep 13, 2014 * Author: goldman */ #include "Pyramid.h" using namespace std; Pyramid::Pyramid(Random& _rand, Configuration& _config, ImprovementHarness& _harness) : Optimizer(_rand, _config, _harness), sfx_options(harness.epistasis().size...
<commit_before>/************************************************************************* * * $RCSfile: XMLIndexObjectSourceContext.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: dvo $ $Date: 2001-06-29 21:07:22 $ * * The Contents of this file are made available subject to the terms of * either of...
<commit_before>#include "RThread.h" #include "REventLoop.h" #include "RForwardList.h" #include "RSpinLocker.h" class RThreadPrivate { public: static void run(void *arg); }; static const rtime sTimeBlockMax = std::numeric_limits<rtime>::max() / 1000; static const rtime sTickBlock...
<commit_before>#include "mmcore/CoreInstance.h" #include "mmcore/MegaMolGraph.h" #include "mmcore/utility/log/Log.h" #include "mmcore/utility/log/StreamTarget.h" #include "AbstractFrontendService.hpp" #include "FrontendServiceCollection.hpp" #include "GUI_Service.hpp" #include "Lua_Service_Wrapper.hpp" #include "Open...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLProjectedPolyDataRayBounder.cxx Language: C++ Date: $Date$ Version: $Revision$ Thanks: Thanks to Lisa Sobierajski Avila who developed this class. Copyr...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: qtITK.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCopyright.txt o...
<commit_before><commit_msg>Make sure the number of the tokens in the line pointed to by the latchoffset is 5.<commit_after><|endoftext|>
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "QtHttpAssetProvider.h" #include "ConfigurationManager.h" #include "EventManager.h" #include "AssetModule.h" #include "RexAsset.h" #include "AssetMetadataInterface.h" #include "AssetServic...
<commit_before>// // Copyright (c) 2013-2014 Christoph Malek // See LICENSE for more information. // #ifndef RJ_SHARED_LEVEL_MANAGER_LEVEL_MANAGER_HPP #define RJ_SHARED_LEVEL_MANAGER_LEVEL_MANAGER_HPP #include "level.hpp" #include "packer_pack.hpp" #include "packer_unpack.hpp" #include <mlk/filesystem/filesystem.h>...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include "zbase/ap...
<commit_before>#include "stdafx.h" using namespace System; using namespace System::Reflection; using namespace System::Runtime::CompilerServices; using namespace System::Runtime::InteropServices; using namespace System::Security::Permissions; // // AZuɊւʏ͈ȉ̑ZbgƂĐ䂳܂B // AZuɊ֘AtĂύXɂ́A // ̑lύXĂB // [assembl...
<commit_before>#include "Pair.h" namespace zxing { namespace oned { namespace rss { Pair::Pair(int value, int checksumPortion, FinderPattern finderPattern) : DataCharacter (value, checksumPortion), m_finderPattern(finderPattern) { } Pair::Pair() : DataCharacter (0, 0), m_finderPattern(FinderPattern()), m_co...
<commit_before>// // Created by skgchxngsxyz-carbon on 16/07/31. // #include <stdint.h> #include <stddef.h> #include <ydsh/ydsh.h> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { auto *state = DSState_createWithOption(DS_OPTION_COMPILE_ONLY); DSError dsError; DSState_eval(state,...
<commit_before>#ifndef COMPILE_TIME_STRINGS_HPP_ #define COMPILE_TIME_STRINGS_HPP_ #include <string> #include <type_traits> namespace static_string { template <typename Char, Char...> struct static_string; template <typename Char> struct static_string<Char> { using char_type = Char; using string_type = std::bas...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: precompiled_stoc.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2006-09-16 17:27:19 $ * * The Contents of this file ...
<commit_before>#ifndef SYNTH_CGWRAPPERS_HPP_INCLUDED #define SYNTH_CGWRAPPERS_HPP_INCLUDED #include <clang-c/Index.h> #include <boost/noncopyable.hpp> #include <memory> #include <vector> namespace synth { struct DeleterForCXIndex { void operator() (CXIndex cidx) const { clang_disposeIndex(cidx); } }; struct Del...
<commit_before>#include "common.h" #include "parse.h" namespace { class Cursor { public: Cursor(const char* p, int line=1, int column=1) : p_(p), line_(line), column_(column) {} char operator*() const { return *p_; } Cursor& operator++() { incr(); return *this; } Cursor operator++(int) { Cursor prev(p_, line_, c...
<commit_before>#include "runtime_internal.h" #include "HalideRuntime.h" extern "C" { #define EGLAPI #define EGLAPIENTRY typedef int32_t EGLint; typedef unsigned int EGLBoolean; typedef void *EGLContext; typedef void *EGLDisplay; typedef void *EGLNativeDisplayType; typedef void *EGLConfig; typedef void *EGLSurface; #...
<commit_before>/* * Copyright (c) 2012, Willow Garage, 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: * * * Redistributions of source code must retain the above copyright * ...
<commit_before>// Convert file supported by xylib to ascii format // Licence: Lesser GNU Public License 2.1 (LGPL) // $Id$ #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <string.h> #include "xylib/xylib.h" using namespace std; void print_usage() { cout << "Usage:\n" "\txyco...
<commit_before>#include <string> #include "nbind/api.h" #include "control.h" #include "ui.h" class UiButton : public UiControl { DEFINE_EVENT(onClicked) public: UiButton(std::string text); UiButton(); ~UiButton(); DEFINE_CONTROL_METHODS() void setText(std::string text); std::string getText(); void onDestroy...
<commit_before>#pragma once #include "priority_queue.hpp" #include "timing.hpp" #include "helpers.hpp" namespace search { // // Lifelong planning // namespace lp { // // Lifelong A* // class LpAstarCore { // // ...
<commit_before>// -------------------------------------------------------------------- // Utility.cpp // // Created by Barrett Davis on 5/11/16. // Copyright © 2016 Tree Frog Software. All rights reserved. // -------------------------------------------------------------------- #include <cmath> // log() #inclu...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: options.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2007-06-27 21:15:08 $ * * The Contents of this file are made a...
<commit_before><commit_msg>ByteString::ConvertToUnicode->rtl::OUString::ctor::toChar<commit_after><|endoftext|>
<commit_before>/******************************************************************************* * Copyright (c) 2015 Wojciech Migda * All rights reserved * Distributed under the terms of the GNU LGPL v3 ******************************************************************************* * * Filename: array2d.hpp * *...
<commit_before>/* * Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org) * * 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/LICENS...
<commit_before>/* * Copyright 2009-2018 The VOTCA Development Team (http://www.votca.org) * * 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/LICENS...
<commit_before>#include <exodus/program.h> programinit() function main() { var dbname2 = COMMAND.a(2); var filenames = COMMAND.field(FM, 3, 999999); if (not dbname2 and not OPTIONS) { var syntax = "dbattach - Attach foreign database files to the current default database\n" "\n" "Syntax is dbattach TAR...
<commit_before>// Copyright 2020 The Pigweed 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
<commit_before>// Copyright 2019 The TCMalloc 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
<commit_before>// RUN: %clang_cc1 -fsyntax-only -verify -faccess-control -std=c++0x -Wsign-compare %s // C++ rules for ?: are a lot stricter than C rules, and have to take into // account more conversion options. // This test runs in C++0x mode for the contextual conversion of the condition. struct ToBool { explicit ...
<commit_before>/* * Copyright (C) 2018 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
<commit_before>#include <stdio.h> #include "Halide.h" #include <algorithm> #include <iostream> using namespace Halide; using namespace Halide::Internal; void print_term(const Term &t) { if (!t.var) { if (t.coeff.defined()) { std::cout << t.coeff; } else { std::cout << 0; ...
<commit_before>/************************************************************************** Copyright (c) 2017 sewenew 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.a...
<commit_before>#include "scoped-pass.hpp" #include "posix-virtual-aligner.hpp" #include <analloc2> using namespace analloc; PosixVirtualAligner aligner; void TestFullRegion(); bool HandleFailure(FreeTreeAllocator<AvlTree, uint16_t, uint8_t> *); int main() { TestFullRegion(); return 0; } void TestFullRegion() {...
<commit_before>#include "libtorrent/lazy_entry.hpp" #include <boost/lexical_cast.hpp> #include <iostream> #include "test.hpp" #include "libtorrent/time.hpp" using namespace libtorrent; int test_main() { using namespace libtorrent; ptime start(time_now()); for (int i = 0; i < 1000000; ++i) { char b[] = "d1:ai...
<commit_before>// Copyright (C) 2011 Milo Yip // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: officeresourcebundle.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2006-03-29 12:45:02 $ * * The Contents of this f...
<commit_before>/* * Copyright (C) 2014 Pelagicore AB * All rights reserved. */ #include "gmock/gmock.h" #include "gtest/gtest.h" #include "pulsegateway.h" #include "pulsegateway_unittest_data.h" #include "generators.h" #include "log.h" using namespace pelagicore; class PulseMockController: public Controll...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: filedlgimpl.hxx,v $ * * $Revision: 1.13 $ * * last change: $Author: ihi $ $Date: 2007-11-19 16:32:06 $ * * The Contents of this file are ...
<commit_before>/* * Smithsonian Astrophysical Observatory, Cambridge, MA, USA * This code has been modified under the terms listed below and is made * available under the same terms. */ /* * Copyright 1993-2004 George A Howlett. * * Permission is hereby granted, free of charge, to any person obtaining * a copy...
<commit_before>/** * @file dtnn_rules_impl.hpp * @author Ryan Curtin * * Implementation of DualTreeKMeansRules. */ #ifndef __MLPACK_METHODS_KMEANS_DTNN_RULES_IMPL_HPP #define __MLPACK_METHODS_KMEANS_DTNN_RULES_IMPL_HPP #include "dtnn_rules.hpp" namespace mlpack { namespace kmeans { template<typename MetricType,...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Test.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkShader.h" static void assert_ifDrawnTo(skiatest::Reporter* reporter, ...
<commit_before>#include "variant_adder.hpp" namespace vg { using namespace std; VariantAdder::VariantAdder(VG& graph) : graph(graph) { // Nothing to do! } // We need a function to grab the index for a path PathIndex& VariantAdder::get_path_index(const string& path_name) { if (!indexes.count(path_name)...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "compressor.h" #include "hash.h" #include "pubkey.h" #include...
<commit_before>#include <vector> #include <iostream> #include "controller.h" #include "query.h" #include "split.h" #include "item.h" const std::string Controller::ADD_CMD = "ADD"; const std::string Controller::DEL_CMD = "DEL"; const std::string Controller::QUERY_CMD = "QUERY"; const std::string Controller::WQUERY_C...
<commit_before>#pragma once #include <iostream> #include "binary.hxx" namespace despairagus { namespace bitwisetrie { using std::cout; using std::ostream; template <typename A> class bitwisetrie { template<typename B> using conref = const B &; using bitA = std::bitset<sizeof(A) << 3>; using by...
<commit_before>#pragma once #include <iostream> #include "binary.hxx" namespace despairagus { namespace bitwisetrie { using std::cout; using std::ostream; template <typename A> class bitwisetrie final { template<typename B> using conref = const B &; using bitA = std::bitset<sizeof(A) << 3>; us...
<commit_before>/* * ctapdev.cc * * Created on: 24.06.2013 * Author: andreas */ #include <ctapdev.h> using namespace dptmap; extern int errno; ctapdev::ctapdev( cnetdev_owner *netdev_owner, std::string const& devname, rofl::cmacaddr const& hwaddr) : cnetdev(netdev_owner, devname), fd(-1) { tap...
<commit_before>#include <map> #include <ros/ros.h> #include <control_msgs/FollowJointTrajectoryAction.h> #include <actionlib/server/simple_action_server.h> #include <std_msgs/Float32.h> std::map<std::string, ros::Publisher> g_gripper_servo_angle_pub; class GripperAction { protected: ros::NodeHandle nh_; // NodeH...
<commit_before>// std includes #include <iostream> // Qt includes #include <QDebug> #include <QTreeView> #include <QTabBar> #include <QSettings> #include <QAction> #include <QModelIndex> #include <QCheckBox> // ctkDICOMCore includes #include "ctkDICOMDatabase.h" #include "ctkDICOMIndexer.h" // ctkDICOMWidgets includ...
<commit_before>#ifndef RINGBUFFER_H #define RINGBUFFER_H #include <cassert> #include <boost/circular_buffer.hpp> #include "contrib/pa_ringbuffer.h" #include "errors.hpp" /** * Abstraction over a ring buffer. * * This generic abstract class represents a general concept of a ring buffer * for samples. It can be i...
<commit_before>#include "BasicAIModule.h" using namespace BWAPI; void BasicAIModule::onStart() { this->showManagerAssignments=false; if (Broodwar->isReplay()) return; // Enable some cheat flags Broodwar->enableFlag(Flag::UserInput); //Broodwar->enableFlag(Flag::CompleteMapInformation); BWTA::read...
<commit_before>#include "anki/resource/MaterialShaderProgramCreator.h" #include "anki/util/Assert.h" #include "anki/util/Exception.h" #include "anki/misc/Xml.h" #include "anki/core/Logger.h" #include <algorithm> #include <sstream> namespace anki { //====================================================================...
<commit_before>/*++ Copyright (c) 2012 Microsoft Corporation Module Name: smt_strategic_solver.h Abstract: Create a strategic solver with tactic for all main logics used in SMT. Author: Leonardo (leonardo) 2012-02-19 Notes: --*/ #include"cmd_context.h" #include"combined_solver.h" #include"tactic...
<commit_before>#include "BaseScene.h" ofColor BaseScene::twitterColour = ofColor(255,0,0); // ---------------------------------------------------- BaseScene::BaseScene() { audioPtr = NULL; generateComplimentaryColours(); } // ---------------------------------------------------- BaseScene::~BaseScene() { ...
<commit_before>/* * ServalCommunication.cpp * * Created on: Apr 15, 2016 * Author: sni */ #include "ServalCommunication.h" #include <chrono> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <ice/communication/messages/Message.h> #include <serval_interface.h>...
<commit_before>#include "MemAllocator.h" #include <iostream> #include <Windows.h> #define CHUNK_MAX_SIZE ~(1 << 31) MemAllocator::MemAllocator() { poolSize = 10 * 1024; memoryPool = VirtualAlloc(NULL, poolSize, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); if (!memoryPool) { throw std::exception("Failed to...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>/* * Copyright 2015 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #include <dune/stuff/test/test_common.hh> #include <dune/common/exceptions.hh> #ifndef ...
<commit_before>/* * Launch and manage WAS child processes. * * author: Max Kellermann <mk@cm4all.com> */ #include "was_stock.hxx" #include "was_quark.h" #include "was_launch.hxx" #include "stock/MapStock.hxx" #include "stock/Class.hxx" #include "stock/Item.hxx" #include "child_manager.hxx" #include "async.hxx" #in...
<commit_before>/*! \copyright (c) RDO-Team, 2011 \file main.cpp \author (rdo@rk9.bmstu.ru) \authors (lord.tiran@gmail.com) \date 10.05.2009 \brief common- \indent 4T */ // ----------------------------------------------------------------------- PLATFORM #include "util...
<commit_before>/* * Copyright (c) 2006, Mathieu Champlon * 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 ...
<commit_before>#include <string> #include <vector> #include <iostream> #include <stdlib.h> #include <cstdio> #include <sys/wait.h> #include <sys/stat.h> using namespace std; class command{ protected: vector<string> commandlist; bool commandPass; string commandType; bool allCount; string nextConnector; pub...
<commit_before>// Copyright 2014 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 "media/cast/transport/transport/udp_transport.h" #include <algorithm> #include <string> #include <vector> #include "base/bind.h"...
<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 "content/renderer/media/capture_video_decoder.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "content/...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to a...