text
stringlengths
54
60.6k
<commit_before>#include "Config.h" #include "common/FileNameTools.h" #include <fstream> namespace d2d { Config* Config::m_instance = NULL; const char* FILENAME = "config.json"; Config::Config() { m_use_dtex = true; } Config* Config::Instance() { if (!m_instance) { m_instance = new Config(); if (FilenameTo...
<commit_before><commit_msg>[drape] [tracks] Allow to render tracks for 20 zoomLevel MAPSME-12900<commit_after><|endoftext|>
<commit_before>#ifdef HAVE_CONFIG_H #include <config.h> #endif /* local */ #include "stateval/StateMachineThread.h" #include "stateval/StateMachine.h" #include "Logger.h" /* STD */ #include <iostream> #include <string> #include <map> #include <cassert> using namespace std; static Logger logger ("stateval.StateMachi...
<commit_before>/** * \file * \brief SpiMasterLowLevelInterruptBased class header for SPIv2 in STM32 * * \author Copyright (C) 2016-2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: generatedtypeset.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 02:06:16 $ * * The Contents of this file a...
<commit_before>/* * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the fi...
<commit_before>#pragma once #include <cassert> #include <vector> #include <random> #include <memory> #include <string> #include <cmath> #include <macros.hh> #include <vec.hh> #include <pretty_printers.hh> #include <loss_functions.hh> #include <dataset.hh> #include <timer.hh> #include <model.hh> #include <classifier.h...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ODriver.cxx,v $ * * $Revision: 1.16 $ * * last change: $Author: kz $ $Date: 2006-12-13 16:22:01 $ * * The Contents of this file are made ...
<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 "chrome/browser/autocomplete/history_quick_provider.h" #include <vector> #include "base/basictypes.h" #include "base/i18n/br...
<commit_before>/************************************************************************* * * $RCSfile: aststructinstance.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-08-20 09:20:12 $ * * The Contents of this file are made available subject to the terms of * either of the follow...
<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/importer/firefox_profile_lock.h" #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/ty...
<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. #include <nix/util/util.hpp>...
<commit_before><commit_msg>Fix for x64 handler registration<commit_after><|endoftext|>
<commit_before>#pragma once #include <algorithm> namespace crest { namespace algo { template <typename Container, typename Element> bool contains(const Container & c, const Element & element) { return std::find(c.begin(), c.end(), element) != c.end(); }; temp...
<commit_before>/* * main.cpp * * Created on: 2011-11-15 * Author: matlab */ #include <stdio.h> // Qt stuff #include <QtCore/QTime> #include <QtCore/QTimer> #include <QtGui/QApplication> #include <QtGui/QGraphicsRectItem> #include <QtGui/QPen> #include <QtGui/QColor> // OpenCV stuff #include <opencv2/core/...
<commit_before>// Copyright 2017-2020 The Verible 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 a...
<commit_before>namespace mant { template <typename T, typename U = double> class LipschitzContinuityAnalysis : public PassivePropertyAnalysis<T, U> { public: using PassivePropertyAnalysis<T, U>::PassivePropertyAnalysis; double getLipschitzConstant() const noexcept; std::string toString() con...
<commit_before>/** * @file tc.hxx * @author Muhammad A. Awad ([email protected]) * @brief Triangle Counting algorithm. * @version 0.1 * @date 2022-08-06 * * @copyright Copyright (c) 2022 * */ #pragma once #include <gunrock/algorithms/algorithms.hxx> namespace gunrock { namespace tc { template <typename vert...
<commit_before><commit_msg>no message<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: register.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: vg $ $Date: 2007-03-26 14:48:51 $ * * The Contents of this file are made ...
<commit_before>#include "callback_parameter.hpp" #include "callback_object.hpp" #include "code/ylikuutio/common/any_value.hpp" #include "code/ylikuutio/hierarchy/hierarchy_templates.hpp" // Include standard headers #include <iostream> // std::cout, std::cin, std::cerr #include <memory> // std::make_shared, std::shar...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: source.cxx,v $ * * $Revision: 1.18 $ * * last change: $Author: rt $ $Date: 2005-09-08 18:18:03 $ * * The Contents of this file are made a...
<commit_before>/* * LayoutAppender.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_LAYOUTAPPENDER_HH #define _LOG4CPP_LAYOUTAPPENDER_H...
<commit_before>/* * Copyright (c) 2012-2015 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ #include "config.h" #if CROWN_PLATFORM_ANDROID #include "apk_file.h" #include "assert.h" #include "macros.h" #include <android/asset_manager.h> namespace...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_DISCRETEFUNCTION_LOCAL_HH #define DUNE_GDT_DISCRETEFUNCTION_LOCAL_HH #...
<commit_before>// This file is part of the dune-pymor project: // https://github.com/pyMor/dune-pymor // Copyright Holders: Felix Albrecht, Stephan Rave // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_PYMOR_OPERATORS_INTERFACES_HH #define DUNE_PYMOR_OPERATORS_INTERFACES_HH...
<commit_before>/* * error.hpp * * Created on: Oct 6, 2015 * Author: zmij */ #ifndef TIP_HTTP_SERVER_ERROR_HPP_ #define TIP_HTTP_SERVER_ERROR_HPP_ #include <stdexcept> #include <tip/log.hpp> #include <tip/http/common/response_status.hpp> namespace tip { namespace http { namespace server { class error: pub...
<commit_before>// ----------------------------------------------------------------------------- // // GAMCS -- Generalized Agent Model and Computer Simulation // // Copyright (C) 2013-2014, Andy Huang <[email protected]> // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If ...
<commit_before>#include "Binary.hpp" #include <stdexcept> #include <algorithm> #include "constants.hpp" #include "Tree.hpp" using namespace std; int safe_fclose(FILE* fptr) { return fptr ? fclose(fptr) : 0; } Binary::Binary(const string& binary_file_path) : bin_fptr_(nullptr, safe_fclose) { // open the binary fi...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.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 ob...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>/** * @file lldrawpoolwlsky.cpp * @brief LLDrawPoolWLSky class implementation * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the...
<commit_before>/* * This source file is part of ArkGameFrame * For the latest info, see https://github.com/ArkGame * * Copyright (c) 2013-2017 ArkGame 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 o...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkSelectionSource.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> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <stdio.h> #include <iostream> #include <fstream> #include <boost/lexical_cast.hpp> #include "packet.h" #define BUFSIZE 121 #define FILENAME "Testfile" #define TEST_FILENAME "Testfile2" #define PORT 10038...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkImageWeightedSum.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>#include "Effect.h" #include "main.h" #include <QFile> Effect::Effect(RenderContext *context) : VideoNode(context), m_fboIndex(0), m_intensity(0), m_previous(0), m_blankPreviewFbo(0) { } void Effect::initialize() { QSize size = uiSettings->previewSize(); delete m_displayPre...
<commit_before>/* ofxTableGestures (formerly OF-TangibleFramework) Developed for Taller de Sistemes Interactius I Universitat Pompeu Fabra Copyright (c) 2011 Daniel Gallardo Grassot <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this ...
<commit_before>#include "Folder.h" #include "File.h" #include "database/SqliteTools.h" #include "filesystem/IDirectory.h" namespace policy { const std::string FolderTable::Name = "Folder"; const std::string FolderTable::CacheColumn = "path"; unsigned int Folder::* const FolderTable::PrimaryKey = &Folder::...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2010-03-31 16:40:27 +0200 (Mi, 31 Mrz 2010) $ Version: $Revision: 21975 $ Copyright (c) German Cancer Research Center, Division of Medic...
<commit_before>/* * kernel.cpp * * Created on: Feb 20, 2017 * Author: garrett */ #include "Kernel.h" #include "drivers/ProgrammableInterruptController.h" #include "memory/alloc/PageFrameAllocator.h" #include "drivers/Keyboard.h" #include "interrupts/InterruptDescriptorTable.h" #include "drivers/TTY/Console....
<commit_before>// SciTE - Scintilla based Text Editor // LexCPP.cxx - lexer for C++, C, Java, and Javascript // Copyright 1998-2000 by Neil Hodgson <[email protected]> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #include <ct...
<commit_before>// Scintilla source code edit control /** @file LexLua.cxx ** Lexer for Lua language. ** ** Written by Paul Winwood. ** Folder by Alexey Yutkin. ** Modified by Marcos E. Wurzius & Philippe Lhoste **/ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> ...
<commit_before>#include <iostream> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <dirent.h> #include <stddef.h> #include <linux/inotify.h> using namespace std; #include "debug.h" #include "config.h" Config::Config(int count, char** values) : m_all(false), m_verbose(2)...
<commit_before>#include "pending_irob.h" #include "debug.h" #include "timeops.h" #include <functional> #include <vector> using std::vector; using std::max; using std::mem_fun_ref; using std::bind1st; #include "pthread_util.h" static pthread_mutex_t count_mutex = PTHREAD_MUTEX_INITIALIZER; ssize_t PendingIROB::obj_cou...
<commit_before>// Copyright (c) 2017 Andrey Valyaev <[email protected]> // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. #include <Result.h> #include <Format.h> #include <Report.h> using namespace std; using namespace oout; Result::Res...
<commit_before>/*========================================================================= Program: Visualization Library Module: STLRead.cc Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reprod...
<commit_before>/******************************************************************************* GPU OPTIMIZED MONTE CARLO (GOMC) 2.31 Copyright (C) 2018 GOMC Group A copy of the GNU General Public License can be found in the COPYRIGHT.txt along with this program, also can be found at <http://www.gnu.org/licenses/>. **...
<commit_before>#include "config.h" #include "Window.h" #include "Global.h" #include "Input.h" #include "Egl.h" #include <GL/gl.h> Window::Window(int width, int height) : Rectangle(0, 0, width, height) , running(true) , fullscreen(false) { display = new Display; global = new Global(display->get_registry()); di...
<commit_before>#include <stdexcept> #include "ClassFile.h" #include "OutputStream.h" namespace { void writeUnsigned(OutputStream* fp, int n, uint32_t val) { uint8_t buf[16]; for(int i = n; i >= 0; --i) buf[i] = (val >> (8 * (n - i - 1))) & 0xff; fp->write(buf, n); } void writeWord(OutputStream* fp, uint16...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <addrdb.h> #include <addrman.h> #include <chainparams.h>...
<commit_before>/* * beagle.cpp * BEAGLE * * @author Andrew Rambaut * @author Marc Suchard * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <list> #include <vector> #include "beagle.h" #include "BeagleImpl.h" #ifdef CUDA #include "CUDA/BeagleCUDAImpl.h" #endif #incl...
<commit_before>#include "broker.hpp" #include "message.hpp" #include <algorithm> #include <boost/algorithm/string.hpp> #include <unordered_map> namespace { bool revStrEquals(const std::string& str1, const std::string& str2) { //compare strings in reverse if(str1.length() != str2.length()) return false; for(i...
<commit_before>// $Id$ /* Copyright (c) 2007-2010, 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>//======================================================================= // Copyright (c) 2013-2020 Baptiste Wicht. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================...
<commit_before>#include "Tetris/Game/Tetris.hpp" #include <iostream> #include <fstream> #include <ctime> #include <stdexcept> #include <algorithm> namespace tetris { namespace game { void Tetris::setScore(const int score) { score_ = score; fireScoreUpdated(); } void Tetris::addScore(const int value) { s...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "EC_SkyBox.h" #include "Renderer.h" #include "SceneManager.h" #include "OgreMaterialUtils.h" #include "LoggingFunctions.h" DEFINE_POCO_LOGGING_FUNCTIONS("EC_S...
<commit_before>/** @file @brief Display struct and related types. @date 2016 @author Sensics, Inc. <http://sensics.com> */ // Copyright 2016 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: NeonSession.hxx,v $ * * $Revision: 1.29 $ * * last change: $Author: rt $ $Date: 2007-11-07 10:03:57 $ * * The Contents of this file are m...
<commit_before>// This file is part of the AliceVision project. // Copyright (c) 2018 AliceVision contributors. // 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 at https://mozilla.org/MPL/2.0/. #inc...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the QtCore module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Comme...
<commit_before>/** * * main * ledger-core * * Created by Pierre Pollastri on 15/09/2016. * * The MIT License (MIT) * * Copyright (c) 2016 Ledger * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal *...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Manuel Yguel <[email protected]> // // 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, ...
<commit_before>#include "qgeomapreplygooglemaps.h" #include <QNetworkAccessManager> #include <QNetworkCacheMetaData> #include <QDateTime> QT_BEGIN_NAMESPACE QGeoMapReplyGooglemaps::QGeoMapReplyGooglemaps(QNetworkReply *reply, const QGeoTileSpec &spec, QObject *parent) : QGeoTiledMapReply(spec, parent), ...
<commit_before>AliAnalysisTaskNuclei* AddHighMultNucleiTask(TString name = "name", ULong64_t triggerMask = AliVEvent::kHighMultV0) { // get the manager via the static access member. since it's static, you don't need // to create an instance of the class here to call the function AliAnalysisManager *mgr = Al...
<commit_before>#include "../data_structures/dynamic_graph.hpp" #include "../data_structures/import_edge.hpp" #include "../data_structures/query_node.hpp" #include "../data_structures/restriction.hpp" #include "../data_structures/static_graph.hpp" #include "../util/fingerprint.hpp" #include "../util/graph_loader.hpp" #i...
<commit_before>#include "QDataAnalysisView.h" #include "QAction" #include "QHeaderView" #include <algorithm> #include "simvis/color.h" #include "xo/system/log.h" #include "xo/utility/types.h" #include "qtfx.h" #include <array> #include "xo/system/log.h" #include "xo/container/sorted_vector.h" #include "xo/numerical/con...
<commit_before>/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT GmbH * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
<commit_before>//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 Ryo Suzuki // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <algorithm> # include...
<commit_before>/** \brief Utility for generating ISSN mapping tables from Zeder. * \author Madeeswaran Kannan ([email protected]) * * \copyright 2019 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the...
<commit_before>#include <mapnik/map.hpp> #include <mapnik/load_map.hpp> #include <mapnik/agg_renderer.hpp> #include <mapnik/version.hpp> #include <mapnik/debug.hpp> #include <mapnik/image_util.hpp> #include <mapnik/unicode.hpp> #include <mapnik/datasource_cache.hpp> #include <mapnik/font_engine_freetype.hpp> #pragma G...
<commit_before>/* Copyright 2016 Stanford University, NVIDIA Corporation * * 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 ...
<commit_before>// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>#include <cstring> #include <fstream> #include <list> #include <unistd.h> #include <signal.h> #include <pthread.h> #include <sys/time.h> #include <sys/wait.h> #include <sys/msg.h> #include <sys/stat.h> #include "global.h" #include "judge.h" #include "scoreboard.h" #include "rejudger.h" #include "webse...
<commit_before>#include <cassert> #include <vector> #include <sstream> #include <boost/foreach.hpp> #include <fnv_solution.hpp> #include <stp/c_interface.h> FNVSolution::FNVSolution(const FNVParam& param, const FNVAlgo& algo, VC& vc, const std::vector<Expr>& octetExprs) { std::ostringstream...
<commit_before><commit_msg>[TCling] Also add temporary debug output to InspectMembers.<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2007-2010 Digital Bazaar, Inc. All rights reserved. */ #include "monarch/sql/mysql/MySqlConnection.h" #include "monarch/sql/mysql/MySqlStatement.h" #include <mysql/errmsg.h> using namespace std; using namespace monarch::sql; using namespace monarch::sql::mysql; using namespace mon...
<commit_before>#include <opencv2/opencv.hpp> // #include "opencv2/highgui/highgui.hpp" // #include "opencv2/imgproc/imgproc.hpp" //#include "opencv2/gpu/gpu.hpp" #include "opencv2/core/cuda.hpp" #include "opencv2/cudaobjdetect.hpp" using namespace cv; using namespace std; int findObject(vector<Rect> found, Mat img,st...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <[email protected]> // Copyright (C) 2008 Benoit Jacob <[email protected]> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Jitse Niesen <[email protected]> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by th...
<commit_before><commit_msg>Cyber: checked return value of WriteHeader method.<commit_after><|endoftext|>
<commit_before>#include "catch.hpp" #include <initializer_list> #include "cxxopts.hpp" class Argv { public: Argv(std::initializer_list<const char*> args) : m_argv(new char*[args.size()]) , m_argc(args.size()) { int i = 0; auto iter = args.begin(); while (iter != args.end()) { auto len = ...
<commit_before>#include "sys_local.h" #define RAPTURE_DEFAULT_PORT 1750 #define RAPTURE_DEFAULT_BACKLOG 32 #define RAPTURE_DEFAULT_MAXCLIENTS 8 #define RAPTURE_NETPROTOCOL 0 namespace Network { using namespace ClientPacket; enum Netmode_e { Netmode_Red, // No connections allowed on the server, and any curr...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>#include <cassert> #include <iostream> #include <list> #include <pqxx/pqxx> #include <pqxx/compiler-internal.hxx> using namespace PGSTD; using namespace pqxx; namespace { #ifndef PQXX_HAVE_DISTANCE template<typename ITERATOR> size_t distance(ITERATOR begin, ITERATOR end) { size_t d = 0; while (be...
<commit_before>#include <iostream> #include <vpp/core/image2d.hh> #include <vpp/core/pyramid.hh> int main() { using namespace vpp; image2d<vint1> img(4, 4); int s1[] = { 1,2,3,4, 5,6,7,8, 9,10,11,12, 13,14,15,16 }; int s2[] = { (1+2+5+6)/4, (3+4+7+8)/4, (9+10+13+14)/4, (11+12+15+16...
<commit_before>#include "keyword.hh" #include <array> #include <cassert> using namespace std; namespace { struct Entry { Keyword k; const char* str; }; static constexpr array<Entry, static_cast<int>(Keyword::MAX)+1> keyword_table{{ { Keyword::not_keyword, "\0" }, { Keyword::else_, "else" }, { Keyw...
<commit_before>/* * Copyright (C) 2014 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 <cassert> #include <boost/cstdint.hpp> #include <boost/integer/static_log2.hpp> void fatal(const char*, ...); extern "C" unsigned long hashbytes(unsigned char[], unsigned int); class Tiles; template<int Ntiles> class PackedTiles { friend class Tiles; enum { Nbits = boost::static_log2<Nti...
<commit_before>{ // .........................macro dirs.C............................ // This macro illustrates how to create a hierarchy of directories // in a Root file. // 10 directories called plane0, plane1, plane9 are created. // Each plane directory contains 200 histograms. // // Run this macro (Note that the ma...
<commit_before>/**\file * \ingroup example-programmes * \brief Matrix-esque terminal animation * * This is a terminal programme that uses libefgy's vt100 code to render a text * version of the matrix 'scrolling streams of text' animation. It's really * fairly simple but also kinda nice to see how the vt100 output...
<commit_before>#include "tensorflow_types.hpp" // TODO: Capture ... (named and un-named args) and forward to call // TODO: py_object_convert (convert from Python to R). could be as.character, // as.matrix, as.logical, etc. Could also be done automatically or via // some sort of dynamic type annotation mechanism //...
<commit_before>/*------------------------------------------------------------------------- * * FILE * result.cxx * * DESCRIPTION * implementation of the pqxx::result class and support classes. * pqxx::result represents the set of result tuples from a database query * * Copyright (c) 2001-2006, Jeroe...
<commit_before>#include <boost/tokenizer.hpp> #include <iostream> #include <unistd.h> #include <string.h> #include <cstdlib> #include <errno.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <string> #include <sstream> #include <vector> //using namespace boost; using namespace std; int main(...
<commit_before>#include <iostream> #include <string.h> #include <boost/tokenizer.hpp> #include <vector> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <algorithm> #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> #include <time.h> #include ...
<commit_before>// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #include "scalloc.h" #include <errno.h> #include <string.h> #include "allocators/bl...
<commit_before>#include "debug.h" #include "scanner.h" namespace flora { // Public Methods Scanner::Scanner() { state_ = Scanner::State::Uninitialized; stream_ = nullptr; peek = 0; } Scanner::~Scanner() { } void Scanner::Initialize(CharacterStream *stream) { stream_ = stream; state_ = Scanner::State::...
<commit_before>#include <string> #include <nds.h> #include <nds/debug.h> #include "./math.h" #include "./sprite.h" #include "./debug.h" namespace FMAW { //------------------------------------------------------------------------------ // Common sprite helpers. //------------------------------------------------------...
<commit_before>/* * Copyright 2010-2020 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bx#license-bsd-2-clause */ #include "bx_p.h" #include <bx/thread.h> #if BX_CONFIG_SUPPORTS_THREADING #if BX_PLATFORM_WINDOWS && !BX_CRT_NONE # include <bx/string.h> #endif #if BX_CRT_NONE # inc...