text
stringlengths
54
60.6k
<commit_before>#include "WindowManager.hpp" #include "Log.h" #include "opengl.hpp" #include <external/glad/glad.h> #include <imgui.h> #include <external/imgui_impl_glfw_gl3.h> namespace { const int default_opengl_major_version = 4; const int default_opengl_minor_version = 1; void ErrorCallback(int error, char co...
<commit_before>/********************************************* * Author: Jun Jiang - jiangjun4@sina.com * Created: 2017-08-02 11:25 * Last modified: 2017-08-03 15:06 * Filename: Logging.cpp * Description: **********************************************/ #include "utils/Log.h" #include "stdlib.h" #include "stdio.h" #inc...
<commit_before>/** Copyright (C) 2017 Tim Kuipers - Released under terms of the AGPLv3 License */ #include "SVG.h" namespace cura { std::string SVG::toString(Color color) { switch (color) { case SVG::Color::BLACK: return "black"; case SVG::Color::WHITE: return "white"; case SVG::Col...
<commit_before>#include "CTML.h" // tests if two strings are equivelent to each other bool assert_strings_equal(const std::string& left, const std::string& right) { return (left == right); } // this test ensures that HTML inside of the content is escaped correctly. void run_escape_test() { // what the node's to str...
<commit_before>/*************************************************************************/ /* lws_client.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>#include <stdio.h> #include <string.h> #include <sys/select.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/uio.h> #include <sys/un.h> #include <unistd.h> #include <Carbon/Carbon.h> #include "server.hpp" #include "server_objc_part.h" #include "Mutex.hpp" namespace { org_pqrs_KeyRemap4...
<commit_before>/* vcflib C++ library for parsing and manipulating VCF files Copyright © 2010-2020 Erik Garrison Copyright © 2020 Pjotr Prins This software is published under the MIT License. See the LICENSE file. */ #include "Variant.h" #include "convert.h" #include "join.h" #include "split.h" #...
<commit_before>#include <cmath> #include "filters/mitchell_filter.h" MitchellFilter::MitchellFilter(float w, float h, float b, float c) : Filter(w, h), b(b), c(c) {} float MitchellFilter::weight(float x, float y) const { return mitchell_1d(x * inv_w * 2.f) * mitchell_1d(y * inv_h * 2.f); } float MitchellFilter::mitc...
<commit_before>#include "pch.h" //////////////////////////////////////////////////////////////////////////////// // // Helper Functions // //////////////////////////////////////////////////////////////////////////////// bool IsWindows9x() { static bool bChecked = false; static bool bIs9x; if (!bChecked) ...
<commit_before>/* * Copyright (c) 2012-2016 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ #include "boot_config.h" #include "dynamic_string.h" #include "json_object.h" #include "map.h" #include "platform.h" #include "sjson.h" #include "temp_alloc...
<commit_before>/* Copyright (c) 2003, 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> #include <ros/ros.h> #include <gps_cartesian_grid/FixToPoint.h> #include <gps_cartesian_grid/LatLonToPoint.h> #include <tf2_ros/transform_broadcaster.h> #include <sensor_msgs/Imu.h> #include <geometry_msgs/TransformStamped.h> #include <geometry_msgs/Point.h> #include <GeographicLib/LocalCartesian.hpp> ...
<commit_before> #include "config.h" // system #include <iostream> // boost #include <boost/filesystem.hpp> // dune-common #include <dune/common/exceptions.hh> #include <dune/common/mpihelper.hh> #include <dune/common/timer.hh> // dune-stuff #include <dune/stuff/common/parameter/tree.hh> #include <dune/stuff/common/...
<commit_before>/* * Copyright (c) 2015 Advanced Micro Devices, Inc. * All rights reserved. * * For use for simulation and test purposes only * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution...
<commit_before>#ifndef MANIFOLDS_VARIABLE_INTERFACE_HH #define MANIFOLDS_VARIABLE_INTERFACE_HH #include "function.hh" #include "full_function_defs.hh" #include <tuple> namespace manifolds { template <int N> struct VariableImpl : MultiFunction { static const bool stateless = true; template <class ... Ar...
<commit_before>// @(#)root/auth:$Id$ // Author: G. Ganis 08/07/2005 /************************************************************************* * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>#ifndef NEU_LAYER_ACTIVATION_SIGMOID_HPP #define NEU_LAYER_ACTIVATION_SIGMOID_HPP //20151212 #include <neu/layer/activation/impl.hpp> #include <neu/activation_func/sigmoid_loss.hpp> namespace neu { namespace layer { using sigmoid = activation<neu::sigmoid>; namespace traits { template<> class...
<commit_before>/* * Copyright (c) 2001-2011 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU * General Public License as published by the Free Software * Foundation; either version 2 of ...
<commit_before>/* * Copyright (c) 2003-2007 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU * General Public License as published by the Free Software * Foundation; either version 2 of ...
<commit_before>/** @file @brief This file is part of the G+Smo library. 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 http://mozilla.org/MPL/2.0/. Author(s): */ #include <...
<commit_before>/************************************************************************* * * $RCSfile: swundo.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: jp $ $Date: 2001-01-23 20:23:33 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#include "NotifyGVContactsTable.h" #include "ContactsParserObject.h" GVContactsTable::GVContactsTable (QObject *parent) : QObject (parent) , nwMgr (this) , mutex(QMutex::Recursive) , bLoggedIn(false) , bRefreshRequested (false) { }//GVContactsTable::GVContactsTable GVContactsTable::~GVContactsTable () ...
<commit_before> /** \class DelphesLCIOConverter * * Class handling output of Delphes ROOT tree in LCIO * * \author F.Gaede, DESY * \date June 2020 * */ #include "DelphesLCIOConverter.h" #include "classes/DelphesClasses.h" //#include "TROOT.h" #include "TClonesArray.h" #include "TTree.h" #include "lcio.h" #...
<commit_before>#include <osg/Texture2D> #include <osg/TexGen> #include <osg/Material> #include <osg/LightSource> #include <osg/Geode> #include <osg/ShapeDrawable> #include <osgUtil/CullVisitor> #include <osgUtil/RenderToTextureStage> #include "CreateShadowedScene.h" using namespace osg; class CreateShadowTextureCul...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the Qt Compositor. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms ...
<commit_before>#ifndef H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_WRAPPERS_HPP #define H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_WRAPPERS_HPP #include <algorithm> #include <iterator> namespace cutehmi { template <class INPUT_IT, class SIZE, class OUTPUT_IT> OUTPUT_IT copy_n(INPUT_IT first, SIZE count, OUTPUT_IT result); t...
<commit_before><commit_msg>Build break fix.<commit_after><|endoftext|>
<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 "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/extensions/extension_service.h" #include "chrome/brow...
<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 "media/filters/ffmpeg_audio_decoder.h" #include "media/base/data_buffer.h" #include "media/filters/ffmpeg_common.h" #include...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* libodfgen * Version: MPL 2.0 / LGPLv2.1+ * * 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 http:/...
<commit_before>#include "plugin_base.h" #include "default_term_ui.h" #include "main_dlg.h" class DefaultTermUI : public virtual PluginBase, public virtual TermUI { public: DefaultTermUI() : PluginBase("term_ui", "default terminal ui plugin", 0) , m_MainDlg(wxT("wxGLTerm")) { } virtua...
<commit_before>// // RemotePhotoTool - remote camera control software // Copyright (C) 2008-2014 Michael Fink // /// \file EdsdkSourceDeviceImpl.hpp EDSDK - SourceDevice impl // #pragma once // includes #include "SourceDevice.hpp" #include "EdsdkRemoteReleaseControlImpl.hpp" #include "EdsdkShutterCounterReader.hpp" n...
<commit_before>/* * ExprConverter.cpp * * This file is part of the XShaderCompiler project (Copyright (c) 2014-2017 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "ExprConverter.h" #include "GLSLKeywords.h" #include "AST.h" #include "ASTFactory.h" #include "Exception.h" #include "Hel...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "LocalAssetStorage.h" #include "LocalAssetProvider.h" #include "AssetAPI.h" #include "QtUtils.h" #include "Profiler.h" #include <QFileSystemWatcher> #include...
<commit_before>#include "qiniuprotocol.h" QiniuProtocol::QiniuProtocol() { _settingInfos.append({"proxy", tr("Proxy"), tr("socks5://localhost:1080"), Text, false, "", ""}); _settingInfos.append({"endpoint", tr("Region endpoint"), tr("https://developer....
<commit_before>#include <iostream> #include <algorithm> #include <iterator> #include <vector> #define Iterator typename #define Functor typename template <Iterator Iterator_t, Functor Functor_t> class ConditionalIterator { public: bool operator == (ConditionalIterator<Iterator_t,Functor_t> that) const { retu...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // Macro to setup AliPerformanceTask for // TPC performance QA to run on PWG1 QA train. // // Input: ESDs, ESDfriends (optional), Kinematics (optional), TrackRefs (optional) // ESD and MC input handlers must be attached to ...
<commit_before>/* Copyright (c) 2017 Hans-Kristian Arntzen * * 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, copy, ...
<commit_before>#pragma warning(disable: 4996) // 'sprintf': This function or variable may be unsafe. #include <cstdio> #include <string> #include <fstream> #include <windows.h> #include <tlhelp32.h> #include <psapi.h> #include <shlwapi.h> #include <filesystem> namespace fs = std::experimental::filesystem; ...
<commit_before>/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * **********************...
<commit_before>#ifndef ___INANITY_COM_POINTER_H___ #define ___INANITY_COM_POINTER_H___ #include "naming.h" /* Файл содержит класс указателя на интерфейс объекта COM. */ BEGIN_INANITY #if defined(_DEBUG) && defined(_M_IX86) #define CHECK_OBJECT() \ if(!object) \ __asm int 3; #else #define CHECK_OBJECT() #endif t...
<commit_before>#include <node.h> #include <node_events.h> #include <assert.h> #include <string.h> #include <stdlib.h> #include <zlib.h> #define CHUNK 16384 using namespace v8; using namespace node; class Gzip : public EventEmitter { public: static void Initialize (v8::Handle<v8::Object> target) { HandleS...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ftnidx.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:55:15 $ * * The Contents of this file are made av...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.o...
<commit_before>#include "EngContainer.hpp" #include "EngComponent.hpp" #include <algorithm> void updateContainerItem( EngComponent *component ) { component->update(); } EngContainer::EngContainer() { components = NULL; } EngContainer::~EngContainer(){ if ( NULL != components ) { delete( componen...
<commit_before>// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #include "../common_includes.h" #include "base/fi...
<commit_before>/* ** ** Author(s): ** - Pierre ROULLON <proullon@aldebaran-robotics.com> ** ** Copyright (C) 2012, 2013 Aldebaran Robotics ** See COPYING for the license */ #include <stdexcept> #include <qi/log.hpp> #include <qi/api.hpp> #include <qi/anyfunction.hpp> #include <qi/session.hpp> #include <jni.h> #incl...
<commit_before>void MakeTRDZeroMisAlignment(){ // Create TClonesArray of zero misalignment objects for TRD // const char* macroname = "MakeTRDZeroMisAlignment.C"; TClonesArray *array = new TClonesArray("AliAlignObjParams",1000); TClonesArray &alobj = *array; Int_t sActive[18]={0,0,1,1,1,0,1,0,0,0,0,1,1,...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dxfvec.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2006-09-17 15:50:32 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: swcrsr.hxx,v $ * * $Revision: 1.21 $ * * last change: $Author: ihi $ $Date: 2007-11-22 15:28:27 $ * * The Contents of this file are made ...
<commit_before>#include "KAI/KAI.h" #include "KAI/Operation.h" #include "KAI/BuiltinTypes/All.h" #include "KAI/Continuation.h" #include "KAI/PropertyBase.h" #include "KAI/Value.h" #include "KAI/Compiler.h" #include "KAI/Reflected.h" #include "KAI/Executor.h" #include "KAI/BuiltinTypes/All.h" #include "KAI/Pathname.h" #...
<commit_before>#ifndef _SNARKFRONT_COMPILE_QAP_HPP_ #define _SNARKFRONT_COMPILE_QAP_HPP_ #include <array> #include <cstdint> #include <fstream> #include <functional> #include <string> #include <snarklib/AuxSTL.hpp> #include <snarklib/HugeSystem.hpp> #include <snarklib/IndexSpace.hpp> #include <snarklib/PPZK_randomnes...
<commit_before>#include "framescontainerwindow.h" #include "project.h" #include <QtCore> #include <string> #include <QDir> #include <QFileInfoList> #include <QProgressDialog> using namespace std; FramesContainerWindow::FramesContainerWindow() : QListWidget() { this->setWrapping(false); this->se...
<commit_before>// Copyright (c) 2011-2013 The Bitcoin Core developers // Copyright (c) 2015-2018 The Bitcoin Unlimited developers // Copyright (c) 2017 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #incl...
<commit_before> #include "journal/player.hpp" #include <list> #include <string> #include <vector> #include "benchmark/benchmark.h" #include "glog/logging.h" #include "gtest/gtest.h" #include "journal/method.hpp" #include "journal/profiles.hpp" #include "journal/recorder.hpp" #include "ksp_plugin/interface.hpp" #incl...
<commit_before>#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <sys/mman.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <vector> #include <algorithm> #include "lj_mm.h" using namespace std; #define ARRAY_SIZE(a) (sizeof((a))/sizeof((a)[0])) static int fail_num = 0; typedef struct { ...
<commit_before>/* * This file is part of TelepathyQt4 * * Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright (C) 2008 Nokia Corporation * * 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 b...
<commit_before>#include "itkCommandLineArgumentParser.h" #include "itkImage.h" #include "itkResampleImageFilter.h" #include "itkImageFileReader.h" #include "itkImageFileWriter.h" //------------------------------------------------------------------------------------- /** run: A macro to call a function. */ #define r...
<commit_before>// // TripDub.cpp // // Module for Double-You-Double-You-Double-You support (WWW) // Ref: http://web.yost.com/Misc/nix-on-www.html // // Copyright (c) 2002-2003 Virtual Terrain Project // Free for all uses, see license.txt for details. // #include "config_vtdata.h" // The dependency on Libwww is option...
<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>/* * tutorial_demo_node.cpp * * Created on: Mar 17, 2014 * Author: Péter Fankhauser * Institute: ETH Zurich, Autonomous Systems Lab */ #include <ros/ros.h> #include <grid_map/grid_map.hpp> #include <vector> #include <string> #include <cmath> #include <limits> using namespace std; using na...
<commit_before><commit_msg>Fix max anisotropy in Vulkan backend (#466)<commit_after><|endoftext|>
<commit_before>#include "runtime_internal.h" extern "C" { extern void *malloc(size_t); extern void free(void *); } namespace Halide { namespace Runtime { namespace Internal { WEAK void *default_malloc(void *user_context, size_t x) { // We want to return an aligned address to the application. // In addition...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Symbian application wrapper of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGP...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: protocolhandlercache.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:13:46 $ * * The Contents of this fi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: loaddispatchlistener.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:37:35 $ * * The Contents of this fi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fontmenucontroller.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:52:46 $ * * The Contents of this file...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>/* * Copyright 2001 - 2009 Todd Richmond * * This file is part of Blister - a light weight, scalable, high performance * C++ server infrastructure. * * Blister 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 ...
<commit_before>#include "slowmatcher.hpp" #include "utils.hpp" #include <opencv2/features2d/features2d.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <opencv2/highgui/highgui.hpp> // ---------------------------------------------------------------------------------- Qualit...
<commit_before>#include <cmath> #include <algorithm> #include <memory> #include "simple_svg_1.0.0.hpp" // Since M_PI isn't part of the C++ standard, we define it here to be more // portable. #ifndef M_PI #define M_PI 3.14159265358979323846 #endif using namespace svg; namespace rob_diag { class Pose { public: Pos...
<commit_before>// // command_executor.cpp // hardware-control // // Created by Julian Becker on 11.05.16. // Copyright © 2016 Julian Becker. All rights reserved. // #include "command_executor.hpp" #include <catch.h> #include <typeindex> #include <mutex> #include <map> template <int...> struct Seq {}; template <...
<commit_before>/* * PrenexLink.cc * * Copyright (C) 2017 Linas Vepstas * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation and including the * exceptions at http://opencog.org/wik...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDialog> #include <QFileDialog> #include <QFont> #include <QFontMetrics> #include <QListWidgetItem> #include <QPainterPath> #include <QRadioButton> #include <QDebug> #include "audioengine.h" #include "costume.h" #include "dragelemcategory.h" ...
<commit_before>/** * @file GUINodePlotter.cpp * @brief class to visually plot the result of implementation of a transformer to obtain * coordinates for a graph's nodes using the edge's weights */ #include <iostream> #include "../include/GUINodePlotter.hpp" namespace clusterer { namespace frontend { GUINodePlotter::...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software 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. Redistri...
<commit_before><commit_msg>INTEGRATION: CWS adc15 (1.10.10); FILE MERGED 2006/09/12 17:20:06 np 1.10.10.1: #i69082# fix problem with lost text in @see tags<commit_after><|endoftext|>
<commit_before>/// @author Michał Orynicz #include "VisualOdometer.hpp" #include "BirdsEyeTranslationReader.hpp" #include "TangentRotationReader.hpp" #include "SmoothFilter.hpp" #include "TrimHistoryFilter.hpp" #include "LucasCandaePyramidTracker.hpp" #include "ShiThomasFeatureExtractor.hpp" #include "PreparationFunct...
<commit_before>/*========================================================================= Program: Monteverdi2 Language: C++ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See Copyright.txt for details. Monteverdi2 is distributed under the CeCILL licence version 2. See Licenc...
<commit_before>#define DeutSelector_cxx // The class definition in DeutSelector.h has been generated automatically // by the ROOT utility TTree::MakeSelector(). This class is derived // from the ROOT class TSelector. For more information on the TSelector // framework see $ROOTSYS/README/README.SELECTOR or the ROOT User...
<commit_before>#include "ConeShapeEditor.hpp" #include <Engine/Component/Shape.hpp> #include <Engine/Manager/Managers.hpp> #include <Engine/Manager/PhysicsManager.hpp> #include <Engine/Physics/Shape.hpp> #include <imgui.h> namespace GUI { void ConeShapeEditor::Show(Component::Shape* comp) { ImGui::Indent(...
<commit_before>#ifndef MJOLNIR_INPUT_READ_SYSTEM_HPP #define MJOLNIR_INPUT_READ_SYSTEM_HPP #include <extlib/toml/toml.hpp> #include <mjolnir/core/System.hpp> #include <mjolnir/core/BoundaryCondition.hpp> #include <mjolnir/util/throw_exception.hpp> #include <mjolnir/util/logger.hpp> #include <mjolnir/math/vector_util.hp...
<commit_before>/// \file json.cpp Holds all JSON-related code. #include "json.h" #include <sstream> #include <fstream> int JSON::Value::c2hex(int c){ if (c >= '0' && c <= '9') return c - '0'; if (c >= 'a' && c <= 'f') return c - 'a' + 10; if (c >= 'A' && c <= 'F') return c - 'A' + 10; return 0; } std::strin...
<commit_before>// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "bin/options.h" namespace dart { namespace bin { OptionProcessor* OptionProce...
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "bin/dartutils.h" #include "bin/process.h" #include "include/dart_api.h" // E...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/log/log.h> LOG_SETUP("fef_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/searchlib/fef/fef.h> #include <vespa/searchlib/fef/objectstore.h> using nam...
<commit_before>#pragma once #include "../common.hpp" namespace wrd { /// means null-reference. template <typename T> T& nulOf() { T* ret = 0; return *ret; } template <typename T> wbool nul(T* any) { return !any; } template <typename T> wbool nul(T& any) { ...
<commit_before>#ifdef _WIN32 #include <direct.h> #define getcwd _getcwd #define PATH_SEP ';' #else #include <unistd.h> #define PATH_SEP ':' #endif #include <cstring> #include <iostream> #include <sstream> #include "context.hpp" #include "constants.hpp" #include "parser.hpp" #include "file.hpp" #include "inspect.hpp" #...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "DebugOperatorNew.h" #include "EC_Sound.h" #include "Framework.h" #include "Entity.h" #include "Scene.h" #include "AttributeMetadata.h" #include "AudioAPI.h" #include "AudioAsset.h" #include "AssetAPI.h" #include "...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>// // Copyright (C) 2015 Red Hat, Inc. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This ...
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "include/dart_native_api.h" #include "platform/assert.h" #include "vm/bootstrap...
<commit_before>Bool_t gIsAnalysisLoaded = kFALSE ; //______________________________________________________________________ Bool_t LoadLib( const char* pararchivename) { // Loads the AliRoot required libraries from a tar file Bool_t rv = kTRUE ; char cdir[1024] ; sprintf(cdir, "%s", gSystem->WorkingDir...
<commit_before>/* * Copyright (C) 2008-2011 The QXmpp developers * * Authors: * Manjeet Dahiya * Jeremy Lainé * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Le...
<commit_before>#pragma once #include <utility> namespace frea { namespace op { #define _NOEXCEPT(e) noexcept((Self&)std::declval<Self>() e (T&)std::declval<T>()) #define NOEXCEPT(e) noexcept(_NOEXCEPT(e)) #define NOEXCEPT_2(e, e2) noexcept(_NOEXCEPT(e) && _NOEXCEPT(e2)) #define DEF_OP(op) \ template <class...
<commit_before>/* Copyright(c) 2016-2018 Panos Karabelas 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, copy, modify, merge, p...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: ImageRegistration14.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ...
<commit_before>#include "audio_postprocess.h" #include <SDL.h> AudioSDL::AudioSDL() { internal_memory = std::make_unique<u8[]>(BUFFER_SIZE * 4); for (u32 i = 0; i < 4; ++i) buffers[i] = &internal_memory[BUFFER_SIZE * i]; SDL_AudioSpec opt = {}, tmp = {}; opt.freq = 44100; opt.channels = 2; opt.format = A...
<commit_before> // Under Windows, define the gettimeofday() function with corresponding types #ifdef _MSC_VER #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <mmsystem.h> #include "atTime.h++" // CONSTANTS #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 // GLOBAL VARIABLES (ne...
<commit_before>#ifndef THREAD_H #define THREAD_H #include <pthread.h> #include <boost/noncopyable.hpp> #include <boost/scoped_ptr.hpp> template <class T> class Thread : boost::noncopyable { private: pthread_t t; public: Thread(T const& to_run); }; template <class T> static void* _os_thread_bounce_fun(void *v) {...