text
stringlengths
54
60.6k
<commit_before>#ifndef CONTAINERS_NAME_STRING_HPP_ #define CONTAINERS_NAME_STRING_HPP_ #include <string> #include "http/json/json_adapter.hpp" #include "rpc/serialize_macros.hpp" // The kind of string that can only contain either the empty string or acceptable names for // things. You may only assign non-empty stri...
<commit_before>#include "zpublic.hpp" #include "stdio.h" #include <string> #include <atlbase.h> #include <fstream> #include "cpptest-1.1.2/src/cpptest.h" using namespace Test; #ifdef _MSC_VER #pragma warning (disable: 4290) #endif void test_mrumap(); void test_thread(); void test_ptr(); void test_vector(); void tests...
<commit_before>// // ofxLaserDacBase.cpp // // Created by Seb Lee-Delisle on 07/11/2017. // // #include "ofxLaserDacHelios.h" using namespace ofxLaser; DacHelios:: DacHelios() : heliosManager(DacHeliosManager::getInstance()) { pps = 30000; newPPS = 30000; frameMode = true; connected = false; newArmed =...
<commit_before>/**************************************************************************** * * Copyright (C) 2013 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
<commit_before><commit_msg>clang<commit_after><|endoftext|>
<commit_before>#include "SilentCompiler.h" #include <iostream> #include <fstream> #include <vector> using namespace std; //File reader class fileReader{ public: fileReader() { } string readAllText(string path) { string output; ifstream file(path); output.assign((istreambuf_iterator<char>(file)), (istre...
<commit_before>//------------------------------------------------------------------------------ // Copyright (c) 2020 John D. Haughton // // 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 wi...
<commit_before>/* ** Copyright 2011 Merethis ** ** This file is part of Centreon Broker. ** ** Centreon Broker is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Broker is distributed i...
<commit_before>// #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include <iostream> #include <chrono> #include <thread> #include <cassert> #include <cstring> #include <list> #include <atomic> #include <mutex> // #include "catch.hpp" #include "i_stat.hpp" #include "...
<commit_before>/* * Copyright (C) 1999 Lars Knoll ([email protected]) * (C) 1999 Antti Koivisto ([email protected]) * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. * Copyright (C) 2010 Google Inc. All rights reserved. * * This library is free software; you can redistribute ...
<commit_before>/*Santiago Zubieta*/ #include <iostream> #include <numeric> #include <fstream> #include <climits> #include <cstring> #include <cstdio> #include <cmath> #include <queue> #include <list> #include <map> #include <set> #include <stack> #include <deque> #include <vector> #include <string> #include <cstdlib> #...
<commit_before>//===-- SocketTest.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>/************************************************************************* * * $RCSfile: atom.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: pl $ $Date: 2001-12-12 13:57:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>#ifndef ENTT_SIGNAL_DISPATCHER_HPP #define ENTT_SIGNAL_DISPATCHER_HPP #include <cstddef> #include <memory> #include <type_traits> #include <utility> #include <vector> #include "../config/config.h" #include "../core/fwd.hpp" #include "../core/type_info.hpp" #include "sigh.hpp" namespace entt { /** ...
<commit_before>/** * Copyright (c) 2016 DeepCortex GmbH <[email protected]> * Authors: * - Paul Asmuth <[email protected]> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License ("the license") as * published by the Free Software Foun...
<commit_before>#include "util.hpp" #include "distributed-node.hpp" DistributedNode::DistributedNode(std::string new_keyfile) :status(OBJECT), ddata(OBJECT), keyfile(new_keyfile){ uint16_t port = 30000; while(true){ try{ this->server = new SymmetricEpollServer(this->keyfile, port, 10); }catch(std::runtime_err...
<commit_before>/****************************************************************************** * Copyright (C) 2018 Kitsune Ral <[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 Fre...
<commit_before>//! //! @file ParameterDialog.cpp //! @author Björn Eriksson <[email protected]> //! @date 2010-03-01 //! //! @brief Contains a class for interact with paramters //! //$Id$ #include <QtGui> #include <cassert> #include "ParameterDialog.h" #include "HopsanCore.h" //! Constructor. //! @param cor...
<commit_before>/** \file krimdok_flag_pda_records.cc * \brief A tool for adding a PDA field to KrimDok records. * \author Dr. Johannes Ruscheinski ([email protected]) * \author Johannes Riedl ([email protected]) * * \copyright 2016,2017,2018 Universitätsbibliothek Tübingen. A...
<commit_before>#include "queue.h" #include "gtest/gtest.h" class queueTest : public testing::Test { protected: // SetUp() & TearDown() are virtual functions from testting::Test, // so we just signify that we override them here virtual void SetUp() { q1_.push(1); q1_.push(2); q2_.push(1); q2_.pus...
<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 "PlatformString.h" #undef LOG #include "testing/gtest/include/gtest/gtest.h" #include "webkit/glue/devtools/devtools_mock_rpc....
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2016 Francois Beaune, The appleseedhq O...
<commit_before>#include "videoplayer.h" #include <QGuiApplication> #include <QTimer> #include <QOpenGLShaderProgram> #include <QOpenGLTexture> #include <QMouseEvent> #define PROGRAM_VERTEX_ATTRIBUTE 0 #define PROGRAM_TEXCOORD_ATTRIBUTE 1 VideoPlayer::VideoPlayer(QWidget *parent) : QOpenGLWidget(parent), c...
<commit_before> #include <UnitTest++.h> #include <TestReporterStdout.h> #include <OSGConfig.h> #include <OSGBaseInitFunctions.h> int main(int argc, char *argv[]) { OSG::osgInit(argc, argv); return UnitTest::RunAllTests(); // UnitTest::TestReporterStdout rep; // return UnitTest::RunAllTests(rep, Unit...
<commit_before>/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gl/builders/GrGLProgramBuilder.h" #include "GrGLProgramDesc.h" #include "GrBackendEffectFactory.h" #include "GrEffect.h" #include "GrGpuGL.h" #include...
<commit_before>#ifndef __BUF_PATCH_HPP__ #define __BUF_PATCH_HPP__ /* * This file provides the basic buf_patch_t type as well as a few low-level binary * patch implementations (currently memmove and memcpy patches) */ class buf_patch_t; #include "buffer_cache/types.hpp" #include "serializer/types.hpp" typedef ui...
<commit_before>//===- Driver.cpp ---------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>#include "Runtime/Weapon/CBomb.hpp" #include "Runtime/GameGlobalObjects.hpp" #include "Runtime/Graphics/CBooRenderer.hpp" #include "Runtime/Particle/CElementGen.hpp" #include "Runtime/World/CGameLight.hpp" #include "Runtime/World/CMorphBall.hpp" #include "Runtime/World/CPlayer.hpp" #include "DataSpec/D...
<commit_before>#pragma once #include <memory> #include <string> #include <vector> #include "Runtime/RetroTypes.hpp" #include "Runtime/rstl.hpp" #include "Runtime/Audio/CSfxManager.hpp" #include "Runtime/AutoMapper/CMapWorld.hpp" #include "Runtime/Graphics/CModel.hpp" #include "Runtime/World/CEnvFxManager.hpp" #includ...
<commit_before> // Implementation for TestArray. See TestByte.cc // // jhrg 1/12/95 // $Log: TestArray.cc,v $ // Revision 1.4 1995/03/04 14:38:00 jimg // Modified these so that they fit with the changes in the DAP classes. // // Revision 1.3 1995/02/10 02:33:37 jimg // Modified Test<class>.h and .cc so that they ...
<commit_before>#include "CONTROL_S.H" #include "DRAW.H" #include "SPECIFIC.H" void DrawBinoculars() { S_Warn("[DrawBinoculars] - Unimplemented!\n"); } int GetChange(struct ITEM_INFO* item, struct ANIM_STRUCT* anim)//7D48C { struct CHANGE_STRUCT* change;//$t1 struct RANGE_STRUCT* range;//$v1 int i;//$t2 int j;//...
<commit_before>/************************************************************************* * * $RCSfile: FWS.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2003-10-06 15:43:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: wntgdi.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-06-19 20:01:18 $ * * The Contents of this file are made av...
<commit_before>#ifndef __V_PLAY_HPP__ #define __V_PLAY_HPP__ #include "utility.hpp" #include "debug.hpp" #include "videotype.hpp" using namespace UtilityLib; typedef BOOL (*VPlayDataHandler)(void* pData, VideoFrame& packet); typedef BOOL (*VPlayPBTimeCallback)(void* pData, int time); typedef BOOL (*VPlayRawFrameHand...
<commit_before>#pragma once #include "PageFrameAllocator.hpp" #include "PageTable.hpp" class MMU { public: MMU(uint32_t mmap_addr, uint32_t mmap_length); void *palloc(size_t numberOfPages); int pfree(void *startOfMemoryRange, size_t numberOfPages); void install(); private: PageFrameAllocator _pageF...
<commit_before>#include <QtWidgets/QHBoxLayout> #include <QtCore/QString> #include "gridParameters.h" #include "../../../qrkernel/settingsManager.h" GridParameters::GridParameters(QWidget *parent) : QFrame(parent) { QHBoxLayout *layout = new QHBoxLayout(this); mShowGridCheckBox = new QCheckBox(this); QString con...
<commit_before>//--------------------------------------------------------------------------- // hexanoise/generator_opencl.cpp // // Copyright 2014, [email protected] Released under the MIT License. //--------------------------------------------------------------------------- #include "generator_opencl.hpp" ...
<commit_before>/** * @file cache.cpp * */ #include "cache.h" #include "info.h" #include "logger.h" #include "plugin_factory.h" #include <boost/lexical_cast.hpp> #include <time.h> using namespace std; using namespace himan::plugin; typedef lock_guard<mutex> Lock; std::mutex itsCheckMutex; cache::cache() { itsLog...
<commit_before>//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution....
<commit_before>#ifndef __LIB_IMENUCONTROL_HPP__ #define __LIB_IMENUCONTROL_HPP__ #include <lib/draw/rendergroup.hpp> #include <lib/include/key.hpp> #include <lib/include/color.hpp> #include "menumanager.hpp" #include <lib/draw/scene.hpp> namespace lib { namespace menu { class IMenuControl : public lib::draw::Rend...
<commit_before>#include "gpu_buffer.hpp" #include "glfunctions.hpp" #include "../base/assert.hpp" glConst glTarget(GPUBuffer::Target t) { if (t == GPUBuffer::ElementBuffer) return GLConst::GLArrayBuffer; return GLConst::GLElementArrayBuffer; } GPUBuffer::GPUBuffer(Target t, uint8_t elementSize, uint16_t cap...
<commit_before>#pragma once #include <memory> #include <type_traits> #include "glog/logging.h" // This file defines a pointer wrapper |not_null| that statically ensures // non-nullness where possible, and performs runtime checks at the point of // conversion otherwise. // The point is to replace cases of undefined b...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>#include "ptk/shell.h" #include <cctype> #include <cstring> #include <cstdio> using namespace ptk; ShellCommand::ShellCommand(const char *name) : SubThread(), name(name) { next_command = Shell::commands; Shell::commands = this; } void ShellCommand::printf(const char *fmt, ...) { va_list arg...
<commit_before>/************************************************************************* * * $RCSfile: chrdlg.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: fme $ $Date: 2001-06-01 10:20:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<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>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * CONDOR Copyright Notice * * See LICENSE.TXT for additional notices and disclaimers. * * Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, Madison, WI. All Rights Reserved. * No ...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2017 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
<commit_before>/* * Copyright (c) 2016, Nils Asmussen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in bin...
<commit_before> #include <databaseImplement.h> using std::cout; using std::cin; using std::endl; void database:: add(itemInfo stuff) { map<string, itemInfo> :: iterator it; static int i=0; char c; for (it=mymap.begin(); it!=mymap.end(); ++it) { if(it->second.rfid==stuff.rfid) { cout<<"RFID Exists do u ...
<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) 2012 Jolla Ltd. * * Contact: Mohammed Hassan <[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 * ver...
<commit_before>#include "dynet/hsm-builder.h" #include <fstream> #include <iostream> #include <sstream> #include "dynet/param-init.h" using namespace std; namespace dynet { Cluster::Cluster() {} void Cluster::new_graph(ComputationGraph& cg) { for (Cluster* child : children) { child->new_graph(cg); } bias...
<commit_before>/* Copyright 2017 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>///////////////////////////////////////////////////////////////////////// // $Id: memory.cc,v 1.58 2006/09/02 12:08:28 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. // // MandrakeSoft S.A. // 43, rue d'Aboukir /...
<commit_before>#include <iostream> #include <boost/variant.hpp> using std::nullptr_t; using std::pair; using std::make_pair; using std::move; template <typename T, typename F, typename BaseInner, typename ArgsT> struct ComposeVariantVisitor { struct Inner : BaseInner { Inner(ArgsT&& a) : BaseInner(std::move(a...
<commit_before>/** @file Data/Metadata.hpp @brief Metadata classes. @author Timothy Howard @copyright 2013-2014 Timothy Howard under the MIT license; see @ref index or the accompanying LICENSE file for full text. */ #ifndef HORD_DATA_METADATA_HPP_ #define HORD_DATA_METADATA_HPP_ #include <Hord/config.hpp> #include <...
<commit_before>/** @file serialization.hpp @brief Serialization definitions. @author Timothy Howard @copyright 2013-2014 Timothy Howard under the MIT license; see @ref index or the accompanying LICENSE file for full text. */ #ifndef HORD_SERIALIZATION_HPP_ #define HORD_SERIALIZATION_HPP_ #include <Hord/config.hpp> ...
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*- Copyright 2015 Raffaello D. Di Napoli This file is part of Abaclade. Abaclade 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 Foundat...
<commit_before>/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: include/eos/render/normals.hpp * * Copyright 2014-2019 Patrik Huber * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
<commit_before>#pragma once #include <string> #include <engine/gfx/shapes.hpp> #include <stlw/result.hpp> #include <stlw/type_ctors.hpp> namespace game { namespace boomhs { template <typename L> class boomhs_game { L &logger_; boomhs_game(L &l) : logger_(l) { } friend struct boomhs_library; inli...
<commit_before>// // DemoFog.cpp // IcEngDemo // // Created by Sherman Chen on 3/22/17. // Copyright (c) 2017 Simviu Technology Inc. // All rights reserved. // http://www.simviu.com/dev // #include "DemoScene.h" using namespace std; using namespace ctl; using namespace Ic3d; static const string K_sModel = "IcDe...
<commit_before>/** * Copyright (c) 2016-present, Facebook, 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...
<commit_before>/******************************************************************************* * BAREFOOT NETWORKS CONFIDENTIAL & PROPRIETARY * * Copyright (c) 2017-2021 Barefoot Networks, Inc. * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of * Barefoot Networ...
<commit_before>#ifndef V_SMC_CORE_PARTICLE_HPP #define V_SMC_CORE_PARTICLE_HPP #include <vector> #include <cmath> #include <cstddef> #include <boost/function.hpp> #include <boost/random/binomial_distribution.hpp> #include <boost/random/uniform_01.hpp> #include <Eigen/Dense> #include <vSMC/internal/rng.hpp> #include <v...
<commit_before>#ifndef VSMC_CORE_PARTICLE_HPP #define VSMC_CORE_PARTICLE_HPP #include <vsmc/internal/common.hpp> #include <vsmc/internal/resampling.hpp> namespace vsmc { /// \brief Particle class representing the whole particle set /// \ingroup Core /// /// \tparam T Requirement: /// \li Constructor compatible with ...
<commit_before>#ifndef VSMC_CORE_RESAMPLE_HPP #define VSMC_CORE_RESAMPLE_HPP #include <vsmc/internal/common.hpp> namespace vsmc { namespace internal { template <typename SizeType, typename RngSetType> inline void weight2replication (SizeType N, SizeType S, RngSetType &rng_set, const double *weight, SizeType...
<commit_before>#include "Player.h" #include <SFML/Graphics.hpp> #include <iostream> #include <sstream> #include <iomanip> #include "../World/World.h" #include "../Renderer/RenderMaster.h" sf::Font f; Player::Player() : Entity ({2500, 125, 2500}, {0, 0, 0}, {0.3, 1.0, 0.3}) , m_itemDown (sf::Keyboard::Down) ...
<commit_before>/** * @file fsradarentry.cpp * @brief Firestorm radar entry implementation * * $LicenseInfo:firstyear=2013&license=viewerlgpl$ * Copyright (c) 2013 Ansariel Hiller @ Second Life * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkScalarsToColors.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. Redis...
<commit_before>#include "Explorer.h" #include "imgui.h" #include "imgui_docking.h" #include "App.h" #include "ModuleFileSystem.h" #include "ModuleRenderer3D.h" #include "JSONLoader.h" #include "Functions.h" #include "ResourceTextureLoader.h" #include "ResourceManager.h" Explorer::Explorer(bool start_enabled) { } Expl...
<commit_before>/* * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * 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><commit_msg>Reopen RenderDoc UI if closed on capture<commit_after><|endoftext|>
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: Mace.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This softw...
<commit_before>/////////////////////////////////////////////// // Author: Henrik Tydesjo // // Preprocessor Class for the SPD // // // /////////////////////////////////////////////// #include "AliITSPreprocessorSPD.h" #include "AliITSCalibrationSP...
<commit_before>/************************************************************************** * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 3 of the License, or (a...
<commit_before>/* * Copyright (C) 2013-2014 INRA * * 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>#include "audiopipe.hpp" #include "core.h" #include <QMessageBox> #include <algorithm> #define BPM_MIN 30.0; QString RtAudioApiToQString(RtAudio::Api api) { switch (api) { case RtAudio::UNSPECIFIED: return "Default"; case RtAudio::UNIX_JACK: return "Jack"; case RtAudio::LIN...
<commit_before>#include "ClientConnection.hpp" #include "CryptoHandler.hpp" #include "FlakyFakeSocketHandler.hpp" #include "Headers.hpp" #include "PortForwardClientListener.hpp" #include "PortForwardClientRouter.hpp" #include "ServerConnection.hpp" #include "SocketUtils.hpp" #include "UnixSocketHandler.hpp" #include <...
<commit_before>/* * Copyright (c) 2015 - 2021, Intel Corporation * * 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 li...
<commit_before>/* * Scope Guard * Copyright (C) 2017 offa * * This file is part of Scope Guard. * * Scope Guard 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 * (...
<commit_before>#include "Halide.h" #include <stdio.h> using namespace Halide; using namespace Halide::Internal; using std::string; // Count the number of stores to a given func, and the number of calls to sin class Counter : public IRVisitor { string func; using IRVisitor::visit; void visit(const Store ...
<commit_before>#pragma once #include "path.hpp" struct stat; namespace spn { using ToPathStr = To8Str; using PathCh = char; using PathStr = std::basic_string<PathCh>; using EnumCBD = std::function<void (const PathCh*, bool)>; struct Dir_depLinux { static std::string Getcwd(); static void Chdir(ToPathStr path...
<commit_before>/*====================================================================== This file is part of the elastix software. Copyright (c) University Medical Center Utrecht. All rights reserved. See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for details. This software is distri...
<commit_before>/* -*- mode:linux -*- */ /** * \file grid_world.cc * * * * \author Ethan Burns * \date 2008-10-08 */ #include <iostream> #include <stdlib.h> #include <string.h> #include "grid_state.h" #include "grid_world.h" using namespace std; /** * Create a new GridWorld. */ GridWorld::GridWorld(const H...
<commit_before>#ifndef BST_HPP #define BST_HPP #include "BSTNode.hpp" #include "BSTIterator.hpp" #include <utility> // for std::pair template<typename Data> class BST { protected: /** Pointer to the root of this BST, or nullptr if the BST is empty */ BSTNode<Data>* root; /** Number of Data items stored in thi...
<commit_before> /* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Sk2DPathEffect.h" #include "SkBlitter.h" #include "SkPath.h" #include "SkScan.h" class Sk2DPathEffectBlitter : public SkBlitter...
<commit_before>/* * Event Manager by quckly.ru * Version: 1.1 * */ #include "q_events.h" EventManager Events; EventManager::EventManager() { m_hook = false; //m_args = std::vector<EventArg>(16); } void EventManager::RegisterEvent(const int _msg_id, EventCallback _func) { // Check for exist for (auto iter = ...
<commit_before>/*////////////////////////////////////////////////////////////////// //// SKIRT -- an advanced radiative transfer code //// //// © Astronomical Observatory, Ghent University //// ///////////////////////////////////////////////////////////////// */ #ifdef BUILDING_WITH_MPI #in...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCProperty.cpp // @Author : LvSheng.Huang // @Date : 2012-03-01 // @Module : NFCProperty // // -----------------------------------------------...
<commit_before><commit_msg>fix timer<commit_after><|endoftext|>
<commit_before>#include "response.h" #include <regex> #include <iostream> #include <algorithm> using namespace std; const char* STATUSLINE_PATTERN1 = "HTTP/([\\d\\.]+)\\s([\\d]+)\\s([\\w\\.-]+)\\r\\n"; const char* STATUSLINE_PATTERN = "(.*?)\\s(.*?)\\s(.*?)\\r\\n"; const char* HEADER_PATTERN = "(.*?):\\s(.*?)\\r\\n"; ...
<commit_before>/* ** Copyright 2014-2017 Robert Fratto. See the LICENSE.txt file at the top-level ** directory of this distribution. ** ** Licensed under the MIT license <http://opensource.org/licenses/MIT>. This file ** may not be copied, modified, or distributed except according to those terms. */ #include <gtest/g...
<commit_before>// -*- C++ -*- //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------...
<commit_before>#include <gtest/gtest.h> #include <ros/ros.h> #include <actionlib/client/simple_action_client.h> #include <actionlib/client/terminal_state.h> #include <move_base_msgs/MoveBaseAction.h> #include <move_basic/queued_action_server.h> #include <queue> #include <memory> #include <mutex> #include <condition_var...
<commit_before>#include <gtest/gtest.h> #include <cstdlib> #include <cmath> #include <cassert> #include <atomic> #include <queue> #include <pthread.h> #include <libprecisegc/details/utils/make_unique.hpp> #include <libprecisegc/details/utils/scoped_thread.hpp> #include <libprecisegc/details/utils/scope_guard.hpp> #in...
<commit_before>#include "baseMesh.h" baseMesh::baseMesh() { lightShader.load("shaders/lightShader"); shaderColorSource = 0; //if you need to load an image to pass in use this // //image.loadImage("stripes.jpg"); //mesh.mapTexCoordsFromTexture(image.getTextureReference()); } void baseMesh:...
<commit_before>/* PICCANTE Examples The hottest examples of Piccante: http://vcg.isti.cnr.it/piccante Copyright (C) 2014 Visual Computing Laboratory - ISTI CNR http://vcg.isti.cnr.it First author: Francesco Banterle This program is free software: you can redistribute it and/or modify it under the terms of the GN...
<commit_before>/* Copyright (c) 2007, 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...