text
stringlengths
54
60.6k
<commit_before>/**************************************************************************************/ /* */ /* Visualization Library */ /* http://www.visualizationlibrary...
<commit_before>#include "gtest/gtest.h" #include "inc.h" #include <functional> #include <algorithm> #include <iterator> #include <type_traits> NS_BEGIN(elloop); using namespace std; using namespace std::placeholders; void print(int n1, int n2, int n3) { p(n1); p(" "); p(n2); p(" "); p(n3); cr; } template <typen...
<commit_before>// Copyright (c) 2011, Christian Rorvik // Distributed under the Simplified BSD License (See accompanying file LICENSE.txt) #ifndef CRUNCH_BASE_PLATFORM_WIN32_WINTYPES_HPP #define CRUNCH_BASE_PLATFORM_WIN32_WINTYPES_HPP // // typedefs for windows.h types to avoid pulling in entire system header for sim...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of libdui. ** ** If you have questions regarding the use ...
<commit_before>/*************************************************************************** * Copyright (C) 2004 by * * Jason Kivlighn ([email protected]) * * Unai Garro ([email protected]) * ...
<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>#ifndef STAN_MATH_GPU_KERNELS_COPY_HPP #define STAN_MATH_GPU_KERNELS_COPY_HPP #ifdef STAN_OPENCL #include <stan/math/gpu/kernel_cl.hpp> namespace stan { namespace math { namespace opencl_kernels { // \cond const char *copy_kernel_code = STRINGIFY( // \endcond /** * Copy one matrix to anoth...
<commit_before><commit_msg>migrate ImpNumberFill implementation to OUStringBuffer<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: connctrl.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: hr $ $Date: 2007-06-27 16:54:09 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: eventdlg.cxx,v $ * * $Revision: 1.14 $ * * last change: $Author: hr $ $Date: 2007-06-27 17:04:36 $ * * The Contents of this file are made...
<commit_before><commit_msg>tdf#92725 FormattedField: when model value is NULL, force empty display string<commit_after><|endoftext|>
<commit_before><commit_msg>fdo#76878 Revert "Resolves: #i116244# need to reset rotation..."<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.o...
<commit_before><commit_msg>sw: check 0 paint window in RenderContextGuard<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: prtopt.cxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 17:14:33 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: envprt.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: obo $ $Date: 2006-09-16 22:54:29 $ * * The Contents of this file are made ...
<commit_before>/*************************************************************************** copyright : (C) 2002 - 2008 by Scott Wheeler email : [email protected] ***************************************************************************/ /*********************************************...
<commit_before>/** * @file Cosa/IOStream/Driver/VWIO.hh * @version 1.0 * * @section License * Copyright (C) 2013, Mikael Patel * * 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; e...
<commit_before>/*********************************************************************** filename: HUDDemo.cpp created: 11/8/2012 author: Lukas E Meindl *************************************************************************/ /*************************************************************************** * Cop...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2015, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: invmerge.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 23:00:14 $ * * The Contents of this file are made ...
<commit_before><commit_msg>Removed unnecessary std::move<commit_after><|endoftext|>
<commit_before>// // GridZone.cpp // Created by Matt Kaufmann on 01/07/14. // #include "ExampleGame/Components/ComponentTypes/ComponentTypeIds.h" #include "ExampleGame/Components/Grid/GridCell.h" #include "ExampleGame/Components/Grid/GridManager.h" #include "ExampleGame/Components/Grid/GridZone.h" #include "ExampleG...
<commit_before>#include <cstdlib> #include <iostream> #include <SFML/Graphics.hpp> #include "context.hpp" #include "../debug.hpp" static sf::Font font; static sf::Text debugText; static sf::RenderWindow window; static sf::Texture displayTexture; static sf::Sprite displaySprite; // SFML needs a sprite to render a te...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: recursionhelper.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 17:51:05 $ * * The Contents of this file ar...
<commit_before><commit_msg>Actually add new topic to list of topics in producer<commit_after><|endoftext|>
<commit_before>/** * @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required b...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is added by mcw. */ #include <sal/config.h> #include <unotest/filters-test.hxx> #include <test/bootstrapfixture.hxx> #include <rtl/strbuf.hxx> #include <osl/file.hxx> #include "scdll.hxx" #include <sfx2/app...
<commit_before><commit_msg>create one fewer arrays<commit_after><|endoftext|>
<commit_before>/* * Copyright 2016 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>#include "../../include/base/ErrorInfo.hpp" namespace cutehmi { namespace base { QString ErrorInfo::toString() const { QString result = str; result += "\n[error class: "; result += errClass; result += " code: "; result += code; result += "]"; return result; } } } //(c)MP: Copyright © 2017, Mic...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: aststack.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-06-20 03:47:52 $ * * The Contents of this file are made ...
<commit_before>#include <rtosc/automations.h> #include <cmath> using namespace rtosc; AutomationMgr::AutomationMgr(int slots, int per_slot, int control_points) :nslots(slots), per_slot(per_slot), active_slot(0), p(NULL), learn_queue_len(0), damaged(0) { this->slots = new AutomationSlot[slots]; memset(this...
<commit_before>// Copyright 2013 Google Inc. 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 require...
<commit_before>//===-- HostThreadPosix.cpp -------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "webconfig/WebConfig.h" #include "StaticFileServing.h" WebConfig::WebConfig(QObject * parent) : QObject(parent) , _port(WEBCONFIG_DEFAULT_PORT) , _server(nullptr) { _hyperion = Hyperion::getInstance(); const Json::Value &config = _hyperion->getJsonConfig(); _baseUrl = QString::fromStdSt...
<commit_before>#include <fcntl.h> #include <unistd.h> #include "ssr_priv.hpp" #define PROCSTAT_PATH "/proc/stat" #define MEMINFO_PATH "/proc/meminfo" SysStatsMonitor::SysStatsMonitor() { mProcStatFd = -1; mRawProcStats.mPending = false; mMeminfoFd = -1; mRawMemInfo.mPending = false; } SysStatsMonitor::~SysStats...
<commit_before>/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across ...
<commit_before>/** ========================================================================== * 2013 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes * with no warranties. This code is yours to share, use and modify with no * strings attached and no restrictions or obligations. * * For more ...
<commit_before>/* FPF - Frame Processing Framework See the file COPYING for copying permission. */ /* fpf_main.c - main(), generic chain driver executable for FPF History: created: 2015-11 - A.Shumilin. */ #include <iostream> #include <stdlib.h> #include <unistd.h> // #include <ini.h> #include <fpf.h> #include "cl...
<commit_before>#include "render_pipeline/rpcore/util/primitives.hpp" #include <geomVertexWriter.h> #include <geomTriangles.h> #include <geomNode.h> #include <materialAttrib.h> #include "render_pipeline/rpcore/util/rpmaterial.hpp" namespace rpcore { static NodePath create_geom_node(const std::string& name, Geom* geo...
<commit_before>#include <cstdio> #include <random> #include <cmath> #include <string> #include <cstring> #include <stdexcept> #include <cassert> //------------------------------------------------------------------------------ namespace base91 { static const unsigned base=91; static const unsigned char_bits=8; static ...
<commit_before>#include <windows.h> #include <tchar.h> #include <Shlwapi.h> #include "resource.h" #include <vector> #pragma comment(lib, "Shlwapi.lib") #ifndef UNICODE #error "Must be compiled with unicode support." #endif #define USE_TASKBAR_API (_WIN32_WINNT >= _WIN32_WINNT_WIN7) #define XP (_WIN32_WINNT < _WIN32...
<commit_before>#include <windows.h> #include <tchar.h> #include <Shlwapi.h> #include "resource.h" #include <vector> #pragma comment(lib, "Shlwapi.lib") #ifndef UNICODE #error "Must be compiled with unicode support." #endif #define USE_TASKBAR_API (_WIN32_WINNT >= _WIN32_WINNT_WIN7) #define XP (_WIN32_WINNT < _WIN3...
<commit_before>/* * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>/* * Copyright 2011 Hallgrimur H. Gunnarsson. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <ctype.h> #include <...
<commit_before>#include "ride/project.h" #include <wx/utils.h> #include <wx/process.h> #include <wx/txtstrm.h> #include "ride/mainwindow.h" #include "ride/compilermessage.h" Project::Project(MainWindow* output, const wxString& root_folder) : output_(output), root_folder_(root_folder) { } const wxString& Project::roo...
<commit_before>#include "layer_t.hpp" #include "input_handler.hpp" namespace rltk { void layer_t::make_owner_draw_backing() { if (!backing) { backing = std::make_unique<sf::RenderTexture>(); } backing->create(w, h); } void layer_t::on_resize(const int width, const int height) { resize_func(this, width, height)...
<commit_before>/* This file is part of Akregator. Copyright (C) 2008 Frank Osterfeld <[email protected]> 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 L...
<commit_before><commit_msg>minor<commit_after><|endoftext|>
<commit_before><commit_msg>compile<commit_after><|endoftext|>
<commit_before> /* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
<commit_before>#include <boost/bind.hpp> #include <gazebo/gazebo.hh> #include <gazebo/physics/physics.hh> #include <gazebo/common/common.hh> #include <iostream> using namespace std; #define PI 3.1415926 namespace gazebo { class ModelController1 : public ModelPlugin { public: ModelController1() : ModelPlugin(),De...
<commit_before>#include "NFComm/NFPluginModule/NFPlatform.h" #if NF_PLATFORM == NF_PLATFORM_WIN #endif #pragma comment( lib, "Dbghelp.lib" ) #ifdef NF_DEBUG_MODE #if NF_PLATFORM == NF_PLATFORM_WIN #ifdef NF_DYNAMIC_PLUGIN #pragma comment( lib, "NFCore_d.lib" ) #pragma comment( lib, "Theron_d.lib" ...
<commit_before>/* Copyright (c) 2013, Ford Motor Company 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 condit...
<commit_before>#include <QApplication> #include <QtGlobal> #include <QProcess> #include <QFile> #include <QCommandLineParser> #include "neovimconnector.h" #include "app.h" #if defined(Q_OS_WIN) && defined(USE_STATIC_QT) #include <QtPlugin> Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin); #endif int ui_main(int argc, char...
<commit_before>#include <QApplication> #include <QtGlobal> #include <QProcess> #include <QFile> #include <QCommandLineParser> #include "neovimconnector.h" #include "app.h" #if defined(Q_OS_WIN) && defined(USE_STATIC_QT) #include <QtPlugin> Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin); #endif int ui_main(int argc, char...
<commit_before>#include <QApplication> #include <QFontDatabase> #include <QtGlobal> #include <QFile> #include <QCommandLineParser> #include <QFileInfo> #include <QDir> #include "neovimconnector.h" #include "mainwindow.h" /// A log handler for Qt messages, all messages are dumped into the file /// passed via the NVIM_...
<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 is part of the FL library, a C++ Bayesian filtering library * (https://github.com/filtering-library) * * Copyright (c) 2014 Jan Issac ([email protected]) * Copyright (c) 2014 Manuel Wuthrich ([email protected]) * * Max-Planck Institute for Intelligent Systems, AMD Lab * Univer...
<commit_before>// This file is part of the dune-hdd project: // http://users.dune-project.org/projects/dune-hdd // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_HDD_LINEARELLIPTIC_PROBLEMS_THERMALBLOCK_HH #define DUNE_HDD_LINEARELLIPTIC_...
<commit_before>#include <scitbx/array_family/boost_python/flex_fwd.h> #include <scitbx/array_family/boost_python/flex_wrapper.h> #include <scitbx/serialization/single_buffered.h> #include <scitbx/matrix/transpose_multiply.h> #include <scitbx/math/utils.h> #include <scitbx/array_family/tiny_types.h> #include <boost/pyt...
<commit_before>#ifndef _COMMON_HPP_ #define _COMMON_HPP_ #include <map> #include <string> #include <vector> // Simple tuple class for reading triples of data class Tuple { public: Tuple(int x, int y, int z) : first(x), second(y), third(z) {} int first; int second; int third; }; // Python 2.x range()...
<commit_before> #include <sstream> #include <boost/foreach.hpp> #include <H5Cpp.h> #include "flame/h5writer.h" #include "flame/h5loader.h" // H5::Exception doesn't derive from std::exception // so translate to some type which does. // TODO: sub-class mixing H5::Exception and std::exception? #define CATCH() catch(H...
<commit_before>#include "get_stop_times.h" #include "routing/best_stoptime.h" #include "type/pb_converter.h" namespace navitia { namespace timetables { std::vector<datetime_stop_time> get_stop_times(const std::vector<type::idx_t> &journey_pattern_points, const DateTime &dt, ...
<commit_before>// Copyright (c) 2016 Steinwurf ApS // All Rights Reserved // // Distributed under the "BSD License". See the accompanying LICENSE.rst file. #pragma once #include <cassert> #include <cstdint> #include <algorithm> #include <ostream> #include <iomanip> #include <string> namespace hex { /// @brief Sm...
<commit_before>//===- AliasAnalysis.cpp - Generic Alias Analysis Interface Implementation -==// // // 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><commit_msg>Bug fix for inline swift zoom sims<commit_after><|endoftext|>
<commit_before>// @(#)root/graf:$Id$ // Author: Rene Brun 108/08/2002 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before><commit_msg>store_test: fix warning<commit_after><|endoftext|>
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkCellPicker.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. Redistribu...
<commit_before>/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ /** * Copyright (C) 2013 Regents of the University of California. * @author: Jeff Thompson <[email protected]> * See COPYING for copyright and distribution information. */ #ifndef NDN_DATA_HPP #define NDN_DATA_HPP #include "common...
<commit_before>//===-- GCRootLowering.cpp - Garbage collection infrastructure ------------===// // // 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) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #ifndef NIX_PROPERTY_H #defi...
<commit_before>//===- lib/Driver/GnuLdInputGraph.cpp -------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before> #include <QDateTime> #include "datetime.h" QString DateTime::defaultFormat = "yyyy-MM-dd hh:mm::ss"; QString DateTime::getTime() { return getTime(defaultFormat); } QString DateTime::getTime(QString format) { if(format.isEmpty()){ format = defaultFormat; } QString timeStr = QD...
<commit_before><commit_msg>bug in randomgenerator for 64bit int<commit_after><|endoftext|>
<commit_before>//===--- ConstraintLocator.cpp - Constraint Locator -----------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/* ------------------------------------------------------------------------ */ /* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); y...
<commit_before>// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/browser/javascript_environment.h" #include <string> #include "atom/browser/microtasks_runner.h" #include "atom/common/node_includes.h" #include "base/co...
<commit_before>#include <string> #include <fstream> #include <iostream> #include <sstream> #include <map> #include <stdexcept> #include <vigra/array_vector.hxx> #include <tclap/CmdLine.h> #include "../../include/vigra/hdf5impex.hxx" #include <set> using namespace std; using namespace vigra; /** various enums used */ ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: statusindicatorinterfacewrapper.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 00:47:31 $ * * The Contents...
<commit_before>// Copyright (c) 2015 Chaobin Zhang. All rights reserved. // Use of this source code is governed by the BSD license that can be // found in the LICENSE file. #include "slave/slave_file_thread.h" #include "base/bind.h" #include "common/options.h" #include "thread/ninja_thread.h" namespace { static bool...
<commit_before>//===- Inliner.cpp - Code common to all inliners --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//// License: Apache 2.0. See LICENSE file in root directory. //// Copyright(c) 2015 Intel Corporation. All Rights Reserved. #include "ds5-private.h" using namespace std; #define intrinsics_string(res) #res << "\t" << array2str((float_4&)table->rect_params[res]) << endl namespace librealsense { n...
<commit_before>//===- ADCE.cpp - Code to perform aggressive dead code elimination --------===// // // This file implements "aggressive" dead code elimination. ADCE is DCe where // values are assumed to be dead until proven otherwise. This is similar to // SCCP, except applied to the liveness of values. // //===-----...
<commit_before>/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ###...
<commit_before>//===-- GCSE.cpp - SSA based Global Common Subexpr Elimination ------------===// // // This pass is designed to be a very quick global transformation that // eliminates global common subexpressions from a function. It does this by // examining the SSA value graph of the function, instead of doing slow, ...
<commit_before>#include "model_initializer.h" #include "backend.h" #include "biology_module_util.h" #include "cell.h" #include "gtest/gtest.h" #include "resource_manager.h" #include "test_util.h" #include "variadic_template_parameter_util.h" namespace bdm { namespace model_initializer_test_internal { TEST(ModelInitia...
<commit_before>#include <elf/oid.h> #include <elf/memory.h> #include <elf/time.h> #include <elf/matchmaking.h> namespace elf { enum MatchRank { ROOKIE_RANK = 800, MASTER_RANK = 2500, RANK_OFFSET = 100, }; int get_rank_level(int rank) { if (rank <= ROOKIE_RANK) { ...
<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>/* This file is part of Akonadi. Copyright (c) 2009 Till Adam <[email protected]> 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)...
<commit_before>#include "engine/hash_map.h" #include "engine/log.h" #include "engine/timer.h" #include "engine/mt/sync.h" #include "engine/mt/thread.h" #include "profiler.h" namespace Lumix { namespace Profiler { struct Block { struct Hit { u64 m_length; u64 m_start; }; explicit Block(IAllocator& alloca...
<commit_before>/* --------------------------------------------------------------------- * Numenta Platform for Intelligent Computing (NuPIC) * Copyright (C) 2013, Numenta, Inc. Unless you have an agreement * with Numenta, Inc., for a separate license for this software code, the * following terms and conditions app...
<commit_before>/* * Chromaprint -- Audio fingerprinting toolkit * Copyright (C) 2010 Lukas Lalinsky <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either ...
<commit_before>/* * param.cpp * */ #include "param.h" using namespace himan; using namespace std; param::~param() {} param::param() : itsId(kHPMissingInt), itsName("XX-X"), itsScale(1), itsBase(0), itsUnivId(kHPMissingInt), itsGribParameter(kHPMissingInt), itsGribCategory(k...
<commit_before>#include <node.h> #include <nan.h> #include <rpcsvc/ypclnt.h> using namespace v8; extern "C" { int foreach_all(unsigned long instatus, char *inkey, int inkeylen, char *inval, int invallen, void *data); } NAN_METHOD(Match) { HandleScope scope; int error; if (args.Length() < 2) { ...
<commit_before>#include "../dbstore.h" #include "../print.h" #include "../userin.h" #include <iostream> #include <string> using namespace std; void hide_n_follow() { print("\nYou followed the pirate silently, while keeping your distance.\n", "green"); print("\nEventually you got to one of the storage units of ...
<commit_before>//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>#pragma once #ifndef DELEGATE_HPP # define DELEGATE_HPP #include <cassert> #include <memory> #include <new> #include <type_traits> #include <utility> template <typename T> class delegate; template<class R, class ...A> class delegate<R (A...)> { typedef R (*stub_ptr_type)(void*, A&&...); deleg...