text
stringlengths
54
60.6k
<commit_before>// Copyright 2017 Google 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 applicable law o...
<commit_before>/* * Copyright 2021 The TensorFlow Runtime Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<commit_before>/** * @file allknn_main.cpp * @author Ryan Curtin * * Implementation of the AllkNN executable. Allows some number of standard * options. */ #include <mlpack/core.hpp> #include <mlpack/core/tree/cover_tree.hpp> #include <string> #include <fstream> #include <iostream> #include "neighbor_search.hpp...
<commit_before><commit_msg>Add Rrrola to copyright string<commit_after><|endoftext|>
<commit_before><commit_msg>remove dummy test<commit_after><|endoftext|>
<commit_before>#include "FileEvent.h" #if defined(__linux__) // POSIX++ #include <cstring> #include <cassert> // Linux #include <sys/inotify.h> // PDTK #include <cxxutils/vterm.h> // file/directory flags static constexpr uint32_t from_native_flags(const native_flags_t flags) noexcept { return (flags & IN_A...
<commit_before>#include "detectors.h" //Constructor vacio Detectors::Detectors(void) { this->hog = HOGDescriptor(); } //Constructores Detectors::Detectors(HOGDescriptor hog_) { this->hog = HOGDescriptor(hog_); } //Constructor Copia Detectors::Detectors(const Detectors& Detectors_) { this->hog = Detectors_.hog; } ...
<commit_before>#ifndef CINSERT_ITERATOR #define CINSERT_ITERATOR #include<iterator> #include<memory> //addressof #include<utility> //declval, move namespace nTool { template<class T,class Holder,class RefFunc_t,RefFunc_t RefFunc,class MoveFunc_t=RefFunc_t,MoveFunc_t MoveFunc=RefFunc> class CInsert_iterator:public st...
<commit_before>#include "../utils/utils.hpp" #include <stdint.h> #include <ctime> Rand randgen(time(NULL)); // From Numerical Recipes static const uint64_t Mul = 2685821657736338717LL; static const uint64_t Vini = 4101842887655102017LL; static const double Fl = 5.42101086242752217e-20; Rand::Rand(unsigned long seed...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation ([email protected]) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>/* * Copyright (c) 2014, Shogun Toolbox 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. Redistributions of source code must retain the above copyright notic...
<commit_before>/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
<commit_before>#include <powerset.hpp> #include "helpers.hpp" #include <vector> #include <string> #include <iterator> #include "catch.hpp" using iter::powerset; using IntPermSet = std::multiset<std::multiset<int>>; TEST_CASE("powerset: basic test, [1, 2, 3]", "[powerset]") { const std::vector<int> ns = {1, 2, ...
<commit_before>#include "connection.hpp" #include <boost/log/trivial.hpp> #include <boost/throw_exception.hpp> #include <tmsp/types.pb.cc> namespace tmsp { namespace wire { /* Original tendermint implementation: func ReadVarint(r io.Reader, n *int, err *error) int { var size = ReadUint8(r, n, err) var nega...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>/** MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight Project home: https://github.com/puuu/MQTT433gateway/ The MIT License (MIT) Copyright (c) 2017 Jan Losinski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do...
<commit_before>//===------------------------- MemLocation.cpp ----------------------------===// // // 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>//////////////////////////////////////////////////////////////////////////////// /// @brief V8 line editor /// /// @file /// /// DISCLAIMER /// /// Copyright 2014-2015 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file exc...
<commit_before>//===-- Method.cpp - Implement the Method class ------------------*- C++ -*--=// // // This file implements the Method & GlobalVariable classes for the VMCore // library. // //===----------------------------------------------------------------------===// #include "llvm/ValueHolderImpl.h" #include "llvm/...
<commit_before>// -*- mode: c++; c-basic-offset:4 -*- // This file is part of libdap, A C++ implementation of the OPeNDAP Data // Access Protocol. // Copyright (c) 2011 OPeNDAP, Inc. // Author: James Gallagher <[email protected]> // // This library is free software; you can redistribute it and/or // modify it un...
<commit_before>#include "frame.h" #include "util.h" #include "gtest/gtest.h" #include <string> #include <iostream> TEST(UtilTest, NormalTest) { std::string data = "hello world"; uint8_t enc_a_wire[30]; const uint8_t e_wire[13] = {0x00, 0x0b, 'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'}; int32...
<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>// Virvo - Virtual Reality Volume Rendering // Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University // Contact: Jurgen P. Schulze, [email protected] // // This file is part of Virvo. // // Virvo is free software; you can redistribute it and/or // modify it under the terms of the GN...
<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 "base/message_loop.h" #include "base/thread.h" #include "testing/gtest/include/gtest/gtest.h" namespace { // We use caps her...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) Module: itkThresholdImageFilterTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2000 National Library of Medicine All right...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkVersorTransformOptimizerTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved...
<commit_before>#include "Neohuman.h" #include <iostream> #include "BWEM/bwem.h" using namespace BWAPI; using namespace Filter; using namespace BWEM; using namespace BWEM::BWAPI_ext; using namespace BWEM::utils; #define MIN(a, b) (((a) < (b) ? (a) : (b))) #define MAX(a, b) (((a) < (b) ? (b) : (a))) #define SATRUATI...
<commit_before>#include <Servo.h> #include <Arduino.h> #include "PicoRobo.h" //==================================================================================================================== //Parameter //==============================================================================================================...
<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 "base/string_number_conversions.h" #include "base/utf_string_conversions.h" #include "chrome/browser/extensions/extension_brow...
<commit_before>/* -------------------------------------------------------------------------- * * OpenSim: toyLeg_example.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and ...
<commit_before>/*********************************************************************** filename: CEGUIXMLAttributes.cpp created: Sat Mar 12 2005 author: Paul D Turner *************************************************************************/ /*******************************************************...
<commit_before>// alien:///alice/cern.ch/user/t/tschuste/correction_hybrid_nulled.root AliDhcTask *AddTaskDhc( Int_t iAna = 2, TString chUName = "", TString chHEffFile = "", TString chMuEffFile = "", TString chTaskFile = "", TString chTaskName = "", TString chNTracks = "PicoTracks") { Char_t chEx...
<commit_before> #pragma once #include "physics/rigid_motion.hpp" #include <utility> #include "geometry/identity.hpp" #include "geometry/linear_map.hpp" namespace principia { namespace physics { namespace internal_rigid_motion { using geometry::LinearMap; template<typename FromFrame, typename ToFrame> RigidMotion...
<commit_before>/*! @file @author Albert Semenov @date 05/2008 */ #include "MyGUI_OgreDataManager.h" #include "MyGUI_OgreDiagnostic.h" #include "MyGUI_OgreDataStream.h" #include <Ogre.h> #include "MyGUI_LastHeader.h" namespace MyGUI { OgreDataManager::OgreDataManager() : mIsInitialise(false) { } void Og...
<commit_before>/* Highly Optimized Object-Oriented Molecular Dynamics (HOOMD) Open Source Software License Copyright (c) 2008 Ames Laboratory Iowa State University All rights reserved. Redistribution and use of HOOMD, in source and binary forms, with or without modification, are permitted, provided that the following ...
<commit_before>#include <iostream> #include <string> #include <vector> #include "../../include/ktt.h" int main(int argc, char** argv) { // Initialize platform and device index size_t platformIndex = 0; size_t deviceIndex = 0; if (argc >= 2) { platformIndex = std::stoul(std::string{ argv[1...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 * * (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>#include "asocket.h" // C++ #include <cassert> #include <cstring> #include <cstdint> // STL #include <iostream> // PDTK #include <cxxutils/error_helpers.h> #include <cxxutils/streamcolors.h> #ifndef CMSG_LEN #define CMSG_ALIGN(len) (((len) + sizeof(size_t) - 1) & (size_t) ~ (sizeof(size_t) - 1)) #def...
<commit_before> #include "SerialData.h" #include "PIDDataManager.h" #include "SelfPositionManager.h" #include "StrategyManager.h" #include "BlockMoveManager.h" #include "BlockMoveStrategy.h" #include "InOutManager.h" #include "PIDDataManager.h" #include "SoundPlayTask.h" #define FIELD 220 #define EDGE_LINE 120 // 黒線と...
<commit_before>#include "physics/n_body_system.hpp" #include <cmath> #include <functional> #include <vector> #include "geometry/r3_element.hpp" #ifndef _MANAGED #include "glog/logging.h" #endif #include "integrators/symplectic_partitioned_runge_kutta_integrator.hpp" #include "quantities/quantities.hpp" using princi...
<commit_before><commit_msg>bugfix<commit_after><|endoftext|>
<commit_before>#include "physics/n_body_system.hpp" #include <map> #include <memory> #include <string> #include <vector> #include "geometry/grassmann.hpp" #include "geometry/point.hpp" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "physics/body.hpp" #include "physics/trajectory.hpp" #include "quantities...
<commit_before>/* * LocationController.cpp * * Created on: 29-07-2014 * Author: szsz */ #include <log4cxx/propertyconfigurator.h> #include <boost/program_options.hpp> #include <string> #include <cmath> #include <stdio.h> #include "LocationCommon.h" #include "LocationController.h" using namespace std; usi...
<commit_before>#pragma once //=====================================================================// /*! @file @brief イグナイター・クライアント・クラス @author 平松邦仁 ([email protected]) @copyright Copyright (C) 2017, 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/...
<commit_before>/* * Menu creation and other helper functions. * By 2MB Solutions (https://2mb.solutions) * Provided under the MIT license. See license.txt for details. * Billy: https://stormdragon.tk * Michael: https://michaeltaboada.me */ #include <dynamic_menu.h> #include <string> #include <vector> #include <mis...
<commit_before>// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/omi/e...
<commit_before>#ifndef BFC_AST_MOD_HPP #define BFC_AST_MOD_HPP #include "types.h" #include "ast/base.hpp" #include "ast/seq.hpp" #include "ast/traits.hpp" #include "ast/visitor.hpp" #include "token.hpp" #include <cstddef> namespace bfc { namespace ast { /* NB: when adding visitable node types, make sure you add a ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/share...
<commit_before><commit_msg>bortli compression detection fixed<commit_after><|endoftext|>
<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 (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed in accordance with the terms specified in * the LICENSE file found in the root directory of this source tree. */ #include <sys/stat.h> #include <rocksdb/db.h> #include <rocksdb/env.h> #inc...
<commit_before><commit_msg>fixed a bug with produced items<commit_after><|endoftext|>
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.C...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/generic/memory/lib/spd/rdimm/ddr4/rdimm_raw_cards.C...
<commit_before>using namespace GeFiCa; // draw V, E distributions saved in an input ROOT file void drawFields(const char *input="ppc.root") { // Get data from input file TFile *file = new TFile(input, "update"); // "update" allows creation of TH3 PointContactDZ *detector = (PointContactDZ*) file->Get("pcdz"); ...
<commit_before>/// @file /// @version 2.5 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause #include <hltypes/hexception.h> #include <hltypes/hmap.h> #include <hltypes/hlog.h> #i...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>// Copyright 2019 Intel Corporation. #include "pmlc/dialect/tile/gradient.h" #include "llvm/ADT/SetVector.h" #include "llvm/Support/FormatVariadic.h" #include "mlir/Support/DebugStringHelper.h" #include "base/util/logging.h" #include "pmlc/dialect/tile/builder.h" #include "pmlc/dialect/tile/ops.h" #i...
<commit_before>// DeceiverPlayer by Sxntk // PPCG: http://codegolf.stackexchange.com/a/104972/11933 // DeceiverPlayer.hpp // If we have two shoots, better shoot one by one #ifndef __DECEPTIVE_PLAYER_HPP__ #define __DECEPTIVE_PLAYER_HPP__ #include "Player.hpp" class DeceptivePlayer final : public Player { public: D...
<commit_before>#include <iostream> #include <cstdio> #include <QApplication> #include <QtUiTools> #include "med.hpp" using namespace std; class MainUi : public QObject { Q_OBJECT public: MainUi() { loadUiFiles(); } Med med; private slots: void onProcessClicked() { med.listProcesses(); proce...
<commit_before>#include <iostream> #include <sstream> #include <string> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "classifierio.hpp" using namespace std; ClassifierIO::ClassifierIO(int dirNum, int stageNum) { _dirNum = dirNum; _stageNum = stageNum; } // giv...
<commit_before>// =================================================================== // // Copyright (C) 2021-2022 Kimura Ryo // // // // This Source Code Form is subject to the terms of the Mozilla Public // // Licens...
<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 <libtorrent/alert.hpp> #include <libtorrent/alert_types.hpp> #include <boost/p...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXDE-Qt - a lightweight, Qt based, desktop toolset * http://razor-qt.org * * Copyright: 2011 Razor team * Authors: * Petr Vanek <[email protected]> * * This program or library is free software; you can redistribute it * and/or modify it under ...
<commit_before>/* * Copyright (c) 2013 Akihiro Kaneda. * 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, * ...
<commit_before>#ifdef HAVE_CONFIG_H #include "config.h" #endif extern "C" { #include "php.h" } #include "php_ini.h" #include "ext/standard/info.h" #include "php_mmseg.h" #include <sys/stat.h> using namespace std; // SegmenterManager ZEND_DECLARE_MODULE_GLOBALS(mmseg) /* True global resources - no need for thread s...
<commit_before>// bdls_processutil.cpp -*-C++-*- // ---------------------------------------------------------------------------- // NOTICE // // This component is not up to date with current BDE coding standards, and // should not be used ...
<commit_before>#include <string> #include <iostream> #include <windows.h> #define MAXWAIT 10000 bool insertDll(DWORD procID, std::string dll); BOOL InjectDLL(DWORD dwProcessId, LPCSTR lpszDLLPath); bool InjectDll(char *dllName, DWORD ProcessID); void main( int argc, char* argv[] ) { InjectDLL( 6968, "c:\\src\\gi...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2017 Nathan Osman * * 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++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "config.h" #include "vbucket.hh" #include "ep_engine.h" #include "ep.hh" #include "backfill.hh" static bool isMemoryUsageTooHigh(EPStats &stats) { double currentSize = static_cast<double>(stats.currentSize.get(...
<commit_before>#include "gimbal_impl.h" #include "global_include.h" #include <functional> namespace dronecode_sdk { GimbalImpl::GimbalImpl(System &system) : PluginImplBase(system) { _parent->register_plugin(this); } GimbalImpl::~GimbalImpl() { _parent->unregister_plugin(this); } void GimbalImpl::init() {} ...
<commit_before>#include "lodmaker.h" struct QVertex { aten::vertex v; uint32_t idx; uint32_t grid[3]; uint64_t hash; QVertex() {} QVertex( aten::vertex _v, uint32_t i, uint64_t h, uint32_t gx, uint32_t gy, uint32_t gz) : v(_v), idx(i), hash(h) { grid[0] = gx; grid[1] = gy; grid[2] = gz; } ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: provider.cxx,v $ * * $Revision: 1.18 $ * * last change: $Author: rt $ $Date: 2005-09-09 12:20:03 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLChartStyleContext.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: hr $ $Date: 2007-06-27 14:51:11 $ * * The Contents of this f...
<commit_before>#pragma once /* * Covariant Script Version Info * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
<commit_before>#include <ros/ros.h> #include <dynamic_reconfigure/server.h> #include <geometry_msgs/Pose.h> #include <geometry_msgs/PoseArray.h> #include <geometry_msgs/PoseStamped.h> #include <kinect_tomato_searcher/CalibrationConfig.h> #include <algorithm> #include <memory> #include <vector> struct Calibrator { ...
<commit_before>/************************************************************************* * * $RCSfile: NamedBoolPropertyHdl.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: sab $ $Date: 2001-03-16 14:37:07 $ * * The Contents of this file are made available subject to the terms of * either of the fo...
<commit_before><commit_msg>adding glBindBuffer in opengl.hpp<commit_after>#ifndef ATEMA_OPENGL_HEADER #define ATEMA_OPENGL_HEADER #include <glad/glad.h> // glBindBuffer #undef glBindBuffer GLAPI PFNGLBINDBUFFERPROC at_glBindBuffer; #define glBindBuffer at_glBindBuffer #endif<|endoftext|>
<commit_before>/* Copyright (c) 2005, 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>/* -*- 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>// File: QtxDockWindow.cxx // Author: Sergey TELKOV #include "QtxDockWindow.h" #include <qlayout.h> #include <qpixmap.h> #include <qdockarea.h> #include <qmainwindow.h> #include <qapplication.h> /*! Class: QtxDockWindow::Watcher [Internal] Descr: Internal object with event filter. */ ...
<commit_before>/* * This file is part of QZeitgeist. * * Copyright (C) 2013 David Rosca <[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 * version 2.1 o...
<commit_before>/* * Copyright 2008 28msec, 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 applicable la...
<commit_before>#pragma once #include <random> #include <distributions/common.hpp> #include <distributions/special.hpp> namespace distributions { //typedef std::default_random_engine rng_t; //typedef std::mt19937 rng_t; typedef std::ranlux48 rng_t; inline int sample_int (int low, int high, rng_t & rng) { std::u...
<commit_before>#ifndef UTILS_FACTORY_HPP #define UTILS_FACTORY_HPP #include <cassert> #include <map> template <class Base, class ID, class... Args> class Factory { public: typedef Base*(*CreatorFunction)(Args...); public: template <class Derive> static Base* defaultCreator(Args... arg...
<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>#ifndef KGR_KANGARU_INCLUDE_KANGARU_DETAIL_ERROR_HPP #define KGR_KANGARU_INCLUDE_KANGARU_DETAIL_ERROR_HPP #include "traits.hpp" #include "single.hpp" #include "service_traits.hpp" namespace kgr { namespace detail { template<typename T, typename... Args> struct ServiceError { template<typename Service...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * Copyright (c) 2015 Kohei Yoshida * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and asso...
<commit_before>#ifndef CRTIICS_NLL_HPP #define CRTIICS_NLL_HPP #include "critic.hpp" namespace nnlib { /// \brief Negative log loss critic. /// /// This critic requires matrix input and single-column matrix output. template <typename T = double> class NLL : public Critic<T> { public: NLL(bool average = true); bo...
<commit_before>//============================================================================ // MCKL/include/mckl/random/threefry.hpp //---------------------------------------------------------------------------- // MCKL: Monte Carlo Kernel Library //--------------------------------------------------------------------...
<commit_before>#ifndef PROTOCOL_MESSAGES_HPP_ #define PROTOCOL_MESSAGES_HPP_ #include <cstdint> namespace protocol { namespace message { struct heartbeat_message_t { enum { ID = 0x00 }; std::uint8_t seq; } __attribute__((packed)); struct log_message_t { enum { ID = 0x01 }; uint32_t time; char data[100];...
<commit_before>/************************************************************************* * * Copyright (c) 2011-2012 Kohei Yoshida * * 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 wit...
<commit_before>#ifndef _INCLUDED_INPUT_HPP #define _INCLUDED_INPUT_HPP #include <cstddef> #include <cstdint> #include <fstream> #include <iostream> #include <string> #include <utility> #include <vector> #include <boost/utility/string_ref.hpp> #include <boost/variant.hpp> #include <tudocomp/util.h> #include <tudocom...
<commit_before><commit_msg>Work around missing std::underlying_type in GCC 4.6<commit_after><|endoftext|>
<commit_before>#ifndef _INCLUDED_DS_LCP_ARRAY_HPP #define _INCLUDED_DS_LCP_ARRAY_HPP #include <tudocomp/util.h> #include <sdsl/rank_support.hpp> // for the rank data structure #include "forward.hh" namespace tudocomp { constexpr int bits = 0; typedef size_t len_t; template<class T> class LCPArray { typedef sdsl...
<commit_before>/************************************************************************/ /* */ /* Copyright 1998-2002 by Ullrich Koethe */ /* */ /* ...
<commit_before>#include "Python.h" #include "DippyDecompAlgo.h" #include "DippyDecompApp.h" #include "DippyPythonUtils.h" /** * Perform branching * * This function should populate the (down|up)Branch(LB|UB) vectors with (indices, bound-value) pairs * which define the branch. */ bool DippyAlgoMixin::c...
<commit_before>/** * @file llfloaterabout.cpp * @author James Cook * @brief The about box from Help->About * * $LicenseInfo:firstyear=2001&license=viewergpl$ * * Copyright (c) 2001-2009, Linden Research, Inc. * * Second Life Viewer Source Code * The source code in this file ("Source Code") is pro...