text
stringlengths
54
60.6k
<commit_before>#include "codecvt/codecvt" #include <cstring> #include "cppunit-header.h" #include "multistring.h" // utility wrapper to adapt locale facets for use outside of locale framework template<class Facet> class deletable_facet : public Facet { public: template<class ...Args> deletable_facet(Args&& ...arg...
<commit_before>/* rapt - RichieSam's Adventures in Path Tracing * * rapt is the legal property of Adrian Astley * Copyright Adrian Astley 2015 */ #include "basic_path_tracer/basic_path_tracer.h" #include "graphics/d3d_util.h" #include "graphics/d3d_texture2d.h" #include "graphics/cuda_texture2d.h" #include "scen...
<commit_before>#include <boost/python.hpp> #include <boost/interprocess/ipc/message_queue.hpp> #include <boost/shared_ptr.hpp> using namespace boost::interprocess; using namespace boost::python; void register_shared_memory_object() { typedef shared_memory_object T; class_<T, boost::shared_ptr<T>, boost::nonco...
<commit_before>#include <ir/index_manager/index/Indexer.h> #include <ir/index_manager/index/FieldIndexer.h> #include <ir/index_manager/index/TermReader.h> #include <ir/index_manager/index/TermPositions.h> #include <boost/filesystem.hpp> #include <boost/filesystem/path.hpp> using namespace std; namespace bf...
<commit_before>#include "gtest/gtest.h" #include "format.hpp" namespace { struct ButFormat: public testing::Test { }; TEST_F(ButFormat, SampleStrings) { { constexpr auto fmt = BUT_FORMAT(""); EXPECT_EQ( 0u, fmt.expectedArguments() ); EXPECT_EQ( "", fmt.format() ); } { constexpr auto fmt = BUT_...
<commit_before>// // main.cpp // Playground // // Created by Fu Lam Diep on 12.03.16. // Copyright © 2016 Fu Lam Diep. All rights reserved. // #include <iostream> #include <vector> #include <glm/glm.hpp> #include <ChaosCore/core.cpp> #include "attrib.hpp" #include "geom.hpp" using namespace glm; using namespace c...
<commit_before>#include "vast/event.h" #include "vast/actor/source/test.h" #include "vast/concept/parseable/core.h" #include "vast/concept/parseable/numeric/real.h" #include "vast/concept/parseable/string/char_class.h" #include "vast/concept/parseable/vast/detail/to_schema.h" #include "vast/util/assert.h" #include "vas...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under 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) //======================================...
<commit_before>// Copyright (C) 2012 Rhys Ulerich // // 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 3 of the License, or // (at your option) any later version. // // This prog...
<commit_before>/*! \copyright (c) RDO-Team, 2013 \file goto_line_dialog.cpp \author (robot.xet@gmail.com) \date 04.01.2013 \brief \indent 4T */ // ---------------------------------------------------------------------------- PCH #include "app/rdo_studio_mfc/pch/stdpch.h" //...
<commit_before>/* Copyright 2015 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 required by applicable law o...
<commit_before>#include "GolfBall.hpp" #include "../Resources.hpp" #include "Default3D.vert.hpp" #include "Default3D.geom.hpp" #include "Default3D.frag.hpp" #include "glm/gtc/constants.hpp" #include "../Util/Log.hpp" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/quaternion.hpp> GolfBall::GolfBall(BallType ...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding t...
<commit_before>#include "ShAlgebra.hpp" #include <map> #include "ShCtrlGraph.hpp" #include "ShDebug.hpp" #include "ShError.hpp" #include "ShOptimizer.hpp" #include "ShEnvironment.hpp" namespace { using namespace SH; typedef std::map<ShCtrlGraphNodePtr, ShCtrlGraphNodePtr> CtrlGraphCopyMap; struct CtrlGraphCopier { ...
<commit_before>/** Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License */ #include "SkirtBrim.h" #include "support.h" namespace cura { void SkirtBrim::getFirstLayerOutline(SliceDataStorage& storage, const unsigned int primary_line_count, const int primary_extruder_skirt_brim_line_width, const...
<commit_before>/* Copyright (c) 2009-2011 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" ...
<commit_before>#ifndef SROOK_INCLUDE_VARIADIC_PLAYER_HPP #define SROOK_INCLUDE_VARIADIC_PLAYER_HPP #include<srook/mpl/variadic_tmp_player.hpp> namespace srook{ namespace mpl{ inline namespace v1{ // Tag to ***er. // These tags have feautures that changing the mode(Single/All). namespace variadic_tag{ struct Single{};...
<commit_before>/* * Copyright (c) 2017 alexi kulmametiev@mail.com * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use...
<commit_before>#include <iostream> #include "server.h" Server::Server(unsigned short port) { // logging settings bottleserve.set_access_channels(websocketpp::log::alevel::all); bottleserve.clear_access_channels(websocketpp::log::alevel::frame_payload); bottleserve.init_asio(); bottleserve.set_message_handler([...
<commit_before>/* * Copyright 2014 Cloudius Systems */ #include "apps/httpd/request_parser.hh" #include "core/reactor.hh" #include "core/sstring.hh" #include "core/app-template.hh" #include "core/circular_buffer.hh" #include <iostream> #include <algorithm> #include <unordered_map> #include <queue> #include <bitset> ...
<commit_before>#include <vector> #include <cmath> #include <set> #include <cassert> #include "../include/graph.h" #include "../include/tournament.h" #include "../include/exceptions.h" typedef std::shared_ptr<Tournament> tournament_ptr; bool check_if_fixable(TournamentGraph& graph, std::set<int>& nodes, int winner)...
<commit_before>/* Copyright (c) 2009-2012, 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 ...
<commit_before>// Copyright (c) 2016 Bluespec, Inc. All Rights Reserved. // This is a boilerplate 'main' to drive a Bluesim executable without // using the BlueTcl top-level that bsc normally generates. // Example: // Suppose your top-level BSV file is Foo.bsv, with top-level module mkFoo // Compile and link the top...
<commit_before>/** \brief Updates Zeder w/ the last N issues of harvested articles for each journal. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2018 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it an...
<commit_before>#pragma once #include <algorithm> #include <numeric> #include "maths/random.hpp" class DSU { public: DSU() : DSU(0) {} DSU(const size_t vertices_count) : parent_(vertices_count), sets_count_(vertices_count) { srand(static_cast<uint32_t>(Random::get_rand_seed())); std::iota(parent_.be...
<commit_before>/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "base/timer.h" class Timer::TimerTask : public Task { public: TimerTask(TimerPtr timer, boost::system::error_code ec) : Task(timer->task_id_, timer->task_instance_), timer_(timer), ec_(ec) { } virtual...
<commit_before>#pragma once #include <cstdint> // uint8_t #include <functional> // hash #include <iosfwd> #include <limits> // numeric_limits #include <type_traits> // is_nothrow_constructible #include <utility> // forward #include "sdd/mem/variant_impl.hh" #include "sdd/util/hash.hh" #include "sdd/util...
<commit_before>#ifndef _SDD_MEM_VARIANT_HH_ #define _SDD_MEM_VARIANT_HH_ #ifndef LIBSDD_VARIANT_SIZE #define LIBSDD_VARIANT_SIZE 16 #endif #include <climits> // USHRT_MAX #include <cstdint> // uint8_t #include <functional> // hash #include <iosfwd> #include <type_traits> // is_nothrow_constructible #include ...
<commit_before>/** * blufs - a c++ luafilesystem library * -------------------------------------------------------- * Copyright 2013-2015 Dmitry Ledentsov * [MIT License](http://opensource.org/licenses/MIT) * */ #include "blufs_lib.h" #include <boost/filesystem.hpp> #include <boost/interprocess/sync/file_lock.h...
<commit_before>/* * Copyright 2007-2019 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>#include "btree/rget.hpp" #include "errors.hpp" #include <boost/bind.hpp> #include <boost/make_shared.hpp> #include "btree/btree_data_provider.hpp" #include "btree/iteration.hpp" #include "containers/iterators.hpp" #include "arch/coroutines.hpp" /* * Possible rget designs: * 1. Depth-first search th...
<commit_before>#include <iostream> #include <boost/optional.hpp> #include "cccallcc.hpp" int f(cont<int> k) { k(1); return 0; } boost::optional< cont<int> > global_k; int g(cont<int> k) { global_k = k; return 0; } int main() { std::cout << "f => " << call_cc<int>(f) << std::endl; std::cout...
<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>/*************************************************************************** * Copyright (c) Ian Rees (ian.rees@gmail.com) 2015 * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before>/************************************************************************************\ This source file is part of the APRIL Utility library * For latest info, see http://libapril.sourceforge.net/ * *****************************************...
<commit_before>// Copyright 2017 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 o...
<commit_before>#include <stan/services/sample/hmc_nuts_dense_e_adapt.hpp> #include <stan/io/empty_var_context.hpp> #include <stan/callbacks/unique_stream_writer.hpp> #include <test/unit/util.hpp> #include <src/test/unit/services/util.hpp> #include <test/test-models/good/optimization/rosenbrock.hpp> #include <test/unit/...
<commit_before>#pragma warning(push) #pragma warning(disable:4996) #pragma warning(disable:4244) #pragma warning(disable:4291) #pragma warning(disable:4146) #include "clang/AST/AST.h" #include "clang/AST/ASTContext.h" #include "clang/AST/ASTConsumer.h" #include "clang/AST/DeclVisitor.h" #include "clang/Frontend/ASTCon...
<commit_before>#include "MainScreen.hpp" #include "../Util/WarnGuard.hpp" WARN_GUARD_ON #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include "../Graphics/Scene/SceneLoader.hpp" WARN_GUARD_OFF #include "../Util/FileLoad.hpp" #include "../Graphics/Image/ImageLoader.hpp" #include "../Graphics/Scene/Scen...
<commit_before>// BESAsciiTransmit.cc // This file is part of bes, A C++ back-end server implementation framework // for the OPeNDAP Data Access Protocol. // Copyright (c) 2004,2005 University Corporation for Atmospheric Research // Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.edu> // // This l...
<commit_before>#include <algorithm> #include <cpr/cpr.h> #include <utils.h> #include "command.h" #include "../CommandHandler.h" #include "../OptionParser.h" #include "../skills.h" #define REG 0 #define IRON 1 #define ULT 2 /* full name of the command */ CMDNAME("level"); /* description of the command */ CMDDESCR("l...
<commit_before>#include "Jitter.h" #include <iostream> #include <set> #ifdef _DEBUG //#define DUMP_STATEMENTS #endif #ifdef DUMP_STATEMENTS #include <iostream> #endif using namespace Jitter; void CJitter::AllocateRegisters(BASIC_BLOCK& basicBlock) { auto& symbolTable = basicBlock.symbolTable; s...
<commit_before>/** Copyright (C) 2015 Ultimaker - Released under terms of the AGPLv3 License */ #include "LayerPlanBuffer.h" #include "gcodeExport.h" #include "utils/logoutput.h" #include "FffProcessor.h" namespace cura { void LayerPlanBuffer::flush() { if (buffer.size() > 0) { insertPreheatCommand...
<commit_before>#include "../includes/declarations.h" //Function used to check collision with the balls. Attribute obstacle checks if the ball is the black or red. bool checkCollision(int xp, int yp) { for (int i = 0; i < num_circles; i++) { int xc = circles[i].x; int yc = circles[i].y; ...
<commit_before>/*! * \file File component.cpp * \brief Implementation of Component class * * Here is the implementation of Component's methods * * \sa component.hpp */ #include <component.hpp> #include <gameObject.hpp> /*! @fn void Component::own(GameObject *go) @brief Assigns a object as prop...
<commit_before>// Copyright (c) 1998-1999 Matra Datavision // Copyright (c) 1999-2012 OPEN CASCADE SAS // // The content of this file is subject to the Open CASCADE Technology Public // License Version 6.5 (the "License"). You may not use the content of this file // except in compliance with the License. Please obtain ...
<commit_before>// Copyright (c) 1998-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2....
<commit_before>#include <string> #include <cstring> #include <fstream> #include <vector> #include "global.h" #include "RoleFactory.h" #include "util/EventSender.h" LogCategory mainlog("main", "Main"); ConfigVariable<std::vector<std::string>> dc_files("general/dc_files", std::vector<std::string>()); int main(int arg...
<commit_before>/* * Copyright 2016 Datto 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 or...
<commit_before>// RemoveOrAddTool.cpp // Copyright (c) 2009, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "RemoveOrAddTool.h" #include "../interface/HeeksObj.h" #include "MarkedList.h" RemoveOrAddTool::RemoveOrAddTool(HeeksObj *...
<commit_before>#include "TextInputWidget.hpp" #include <iostream> gsf::TextInputWidget::TextInputWidget(float width, float height, sf::Font &font) : ChildWidget{ width, height } //, m_text{ "", font, 12, sf::Color::Black } , m_text{ nullptr } , m_cursor{ "|", font, 12 } , m_scrollable{ nullptr } , m_isFocused{ false }...
<commit_before>/* * Copyright (c) 2007 The Hewlett-Packard Development Company * All rights reserved. * * Redistribution and use of this software in source and binary forms, * with or without modification, are permitted provided that the * following conditions are met: * * The software must be used only for Non...
<commit_before>#pragma once #include "../base/assert.hpp" #include "../base/base.hpp" #include "../std/string.hpp" #include "../std/sstream.hpp" #include "../std/utility.hpp" namespace m2 { template <int kDepthLevels = 31> class CellId { public: // TODO: Move CellId::DEPTH_LEVELS to private. static int const DEP...
<commit_before>/* Gobby - GTK-based collaborative text editor * Copyright (C) 2008-2014 Armin Burgmeier <armin@arbur.net> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission noti...
<commit_before><commit_msg>7766bc08-2d53-11e5-baeb-247703a38240<commit_after><|endoftext|>
<commit_before>#include "Halide.h" using namespace Halide; using namespace Halide::ConciseCasts; int main(int argc, char **argv) { Target target = get_target_from_environment(); std::cout << "Target: " << target.to_string() << "\n"; // We take two 8 bit matrices as input. Var x("x"), y("y"); Ima...
<commit_before><commit_msg>4aefa8ae-2e1d-11e5-affc-60f81dce716c<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2015 arduino-menusystem * Licensed under the MIT license (see LICENSE) */ #include "MenuSystem.h" // ********************************************************* // MenuComponent // ********************************************************* MenuComponent::MenuComponent(const char* na...
<commit_before><commit_msg>506ca440-5216-11e5-a7b4-6c40088e03e4<commit_after><|endoftext|>
<commit_before>/* * RBGolfPin.cpp * golf * * Created by Robert Rose on 4/17/09. * Copyright 2009 __MyCompanyName__. All rights reserved. * */ #include "RBGolfPin.h" #include "RudeGL.h" const float kGolfPinHeight = 10.0f; const float kGolfPinFlagHeight = 2.0f; const unsigned int kGolfPinFlagColor = 0xFF000...
<commit_before><commit_msg>We apologise for the previous fix. Those responsible have been sacked<commit_after><|endoftext|>
<commit_before><commit_msg>Add a "library" root tag to the xml file<commit_after><|endoftext|>
<commit_before><commit_msg>d2a6044f-352a-11e5-ae8c-34363b65e550<commit_after><|endoftext|>
<commit_before><commit_msg>a12be9a6-2d3e-11e5-8885-c82a142b6f9b<commit_after><|endoftext|>
<commit_before><commit_msg>ecbc2fb3-2e4e-11e5-a4cf-28cfe91dbc4b<commit_after><|endoftext|>
<commit_before><commit_msg>I finished programming, there is nothing left to program<commit_after><|endoftext|>
<commit_before><commit_msg>Don't kick users for setting nicks<commit_after><|endoftext|>
<commit_before><commit_msg>9363bf06-2d14-11e5-af21-0401358ea401<commit_after><|endoftext|>
<commit_before><commit_msg>code and doc reorgs for clarity<commit_after><|endoftext|>
<commit_before><commit_msg>5ae7ec4a-2d16-11e5-af21-0401358ea401<commit_after><|endoftext|>
<commit_before><commit_msg>having coffee<commit_after><|endoftext|>
<commit_before><commit_msg>eaf0e252-585a-11e5-a98d-6c40088e03e4<commit_after><|endoftext|>
<commit_before><commit_msg>Backup, rebase this later<commit_after><|endoftext|>
<commit_before><commit_msg>f4f35ad2-585a-11e5-90eb-6c40088e03e4<commit_after><|endoftext|>
<commit_before><commit_msg>481661f8-5216-11e5-a118-6c40088e03e4<commit_after><|endoftext|>
<commit_before><commit_msg>gsghfklghjsad<commit_after><|endoftext|>
<commit_before><commit_msg>swapVariantの安定性向上<commit_after><|endoftext|>
<commit_before>#include <zorba/zorba.h> #include <fstream> #include <iostream> #include <iomanip> #include <sstream> // tests are allowed to use internals #include "api/unmarshaller.h" #include "store/api/item.h" #include "zorbatypes/xqpstring.h" #include "util/properties.h" using namespace zorba; using namespace st...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use t...
<commit_before>//=====================================================================// /*! @file @brief SCI (UART) サンプル @n RX64M, RX71M: @n 12MHz のベースクロックを使用する @n     P07 ピンにLEDを接続する @n SCI1 を使用する @n RX65N (Renesas Envision kit RX65N): @n 12MHz のベースクロックを使用する @n     P70 に接続された LED を利用する...
<commit_before><commit_msg>Maintain center of rotation for compound objects.<commit_after><|endoftext|>
<commit_before>#include <stdio.h> #include <cmath> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <assert.h> #include "common/util.h" #include "common/swaglog.h" #include "common/visionimg.h" #include "ui.hpp" #include "paint.hpp" int write_param_float(float param, const char* param_name, bool...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2013 - 2015, Göteborg Bit Factory. // // 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...
<commit_before>/* File: LibSVL.cpp Purpose: Compiles all code necessary for SVL.h. Author: Andrew Willmott */ #define __SVL__ #ifdef VL_DEBUG #define VL_CHECKING #endif #define LIBPIXEL__MATH__COMPILEGUARD using namespace std; #include "basics.h" #include "constants.h"...
<commit_before>#include "AConfig.h" #if(HAS_STD_2X1_THRUSTERS) #include "Device.h" #include "Pin.h" #include "Thrusters2X1.h" #include "Settings.h" #include "Motors.h" #include "Timer.h" //Motors motors(9, 10, 11); //Motors motors(6, 7, 8); Motors motors(PORT_PIN,VERTICLE_PIN,STARBORD_PIN); int new_p = MIDPOINT; int ...
<commit_before>#ifndef FILES_HPP #define FILES_HPP #define NUMBER_OF_FILES 12 const char* src_file_names[NUMBER_OF_FILES] = {"../../../../images/binary/avatar.bmp", "../../../../images/binary/cameleon.bmp", "../../../../imag...
<commit_before>#include <NfcAdapter.h> NfcAdapter::NfcAdapter(PN532Interface &interface) { shield = new PN532(interface); } NfcAdapter::~NfcAdapter(void) { delete shield; } void NfcAdapter::begin() { shield->begin(); uint32_t versiondata = shield->getFirmwareVersion(); if (! versiondata) { ...
<commit_before>#include "cnn/training.h" namespace cnn { using namespace std; Trainer::~Trainer() {} float Trainer::clip_gradients() { float gscale = 1; if (clipping_enabled) { double gg = 0; for (auto p : model->all_parameters_list()) gg+=p->g_squared_l2norm(); gg = sqrt(gg); if (gg > cli...
<commit_before>/** * Copyright (c) 2014 Ruben Nijveld, Aaron van Geffen * See LICENSE for license. */ #include "../config.h" #include "sqlite.h" #include <sqlite3.h> #include <stdio.h> #include <iostream> namespace dazeus { namespace db { /** * Cleanup all prepared queries and close the connection. */ SQLiteDat...
<commit_before>#include "dbmanager.h" bool DBManager::openDB() { db = QSqlDatabase::addDatabase("QSQLITE"); QFileInfo fileInfo("vertsys.db"); db.setDatabaseName(fileInfo.absoluteFilePath()); bool status; if (!fileInfo.exists()) { status = db.open(); QSqlQuery query(db); ...
<commit_before><commit_msg>fixed a simple compilation problem of fft unit test in windows ticket #79<commit_after><|endoftext|>
<commit_before>/* * PolarPulse.cpp * * Created on: 15.05.2016 * Author: niklausd */ #include <Timer.h> #include <Arduino.h> #include "PolarPulse.h" const bool PolarPulse::IS_POS_LOGIC = false; const bool PolarPulse::IS_NEG_LOGIC = true; const int PolarPulse::PLS_NC = -1; const int PolarPulse::IND_...
<commit_before>#include <iostream> #include <influxdb_raw_db_utf8.h> #include <influxdb_simple_api.h> #include <influxdb_line.h> using namespace influxdb::api; int main(int argc, char* argv[]) { try { const char* url = "http://localhost:8086"; influxdb::raw::db_utf8 db(url); influxdb...
<commit_before>#include "dialogarp.h" #include "ui_dialogarp.h" Dialogarp::Dialogarp(QWidget *parent) : QDialog(parent), ui(new Ui::Dialogarp) { ui->setupUi(this); connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(StartArp())); ui->lv_client->setModel(new QStringListModel()); #ifdef _WIN32 ...
<commit_before>#define SOL_CHECK_ARGUMENTS #include <sol.hpp> #include <iostream> int main() { std::cout << "=== protected_functions example ===" << std::endl; sol::state lua; // A complicated function which can error out // We define both in terms of Lua code lua.script(R"( function handler (message) ...
<commit_before>////////////////////////////////////////////////////////////////////////// // // SneezyMUD - All rights reserved, SneezyMUD Coding Team // ////////////////////////////////////////////////////////////////////////// #include "stdsneezy.h" #include "obj_general_weapon.h" #include "obj_base_weapon.h" #incl...
<commit_before>// This file is part of the dune-grid-multiscale project: // http://users.dune-project.org/projects/dune-grid-multiscale // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #include <dune/stuff/test/main.hh> // <- has to come first #incl...
<commit_before>#include <criterion/criterion.h> #include <criterion/redirect.h> #include <iostream> #include <string> // set a timeout for I/O tests TestSuite(redirect, .timeout = 0.1); #if __GNUC__ >= 5 Test(redirect, mock) { auto fmock = criterion::mock_file(); fmock << "Hello" << std::flush; fmock.see...
<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>/* bzflag * Copyright (c) 1993 - 2005 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 * IMPLI...