text
stringlengths
54
60.6k
<commit_before><commit_msg>Planning: allow more iterations for calculating self-path.<commit_after><|endoftext|>
<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>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2017-2019 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>/* This file is part of the MinSG library extension BlueSurfels. Copyright (C) 2014 Claudius Jähn <claudius@uni-paderborn.de> Copyright (C) 2016-2017 Sascha Brandt <myeti@mail.uni-paderborn.de> This library is subject to the terms of the Mozilla Public License, v. 2.0. You should have received a c...
<commit_before><commit_msg>Prevent base::debug::BreakDebugger() from being folded by the linker<commit_after><|endoftext|>
<commit_before>/* * Simulation.cpp * * The box2d simulation of the pinball machine */ #ifndef PINBALL_BOT_SIMULATION #define PINBALL_BOT_SIMULATION #include <stdio.h> #include <Box2D/Box2D.h> #include <cmath> #include "../agent/Ball.cpp" #include "../agent/State.cpp" const int32 VELOCITY_ITERATIONS = 6;...
<commit_before>#include "common.h" #include <iostream> #include <boost/math/special_functions/binomial.hpp> // probability of equality of two calls of the SAME reference position double p_equal_calls = 0.0; // probability of 'sequenced position' which represents the probability of a read // starting at a given pos...
<commit_before>/* * * Copyright 2015, Google Inc. * 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, thi...
<commit_before>/** * TEM.cpp * main program for running DVM-DOS-TEM * * It runs at 3 run-mods: * (1) site-specific * (2) regional - time series * (3) regional - spatially (not yet available) * * Authors: Shuhua Yi - the original codes * Fengming Yuan - re-designing and re-cod...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <string.h> #include "oamlCommon.h" #define SWAP16(x) (((x) & 0xff) << 8 | ((x) & 0xff00) >> 8) #define SWAP32(x) (((x) & 0xff) << 24 | ((x) & 0xff00) << 8 | ((x) & 0xff0000) >> 8 | ((x) >> 24) & 0xff) enum { AIFF_ID = 0x46464941, FORM_ID = 0x4D524F46,...
<commit_before>/* Copyright (c) 2008-2014, 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> // -todo: make sizeBytes() static function // -todo: make swapIdxPair function // -todo: copy in CncrBlkLst from simdb // todo: take out version from CncrLst // todo: transition CncrLst to be without any stack variables - just use the functions and pass them addresses? // todo: make default constructor...
<commit_before>// // Copyright (c) 2011 Kim Walisch, <kim.walisch@gmail.com>. // All rights reserved. // // This file is part of primesieve. // Homepage: http://primesieve.googlecode.com // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
<commit_before>#include <imgui_utils/icons_font_awesome_5.h> #include <babylon/babylon_imgui/run_scene_with_inspector.h> #include <imgui_utils/app_runner/imgui_runner.h> #include <babylon/GL/framebuffer_canvas.h> #include <babylon/core/logging.h> #include <babylon/samples/samples_index.h> #ifdef _WIN32 #include <wind...
<commit_before>/* Copyright (c) 2014, Fengping Bao <jamol@live.com> * * 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 notice appear in all copies. * * THE SOFTWARE IS PR...
<commit_before>/* * stream_iterator.cc * Copyright 2014-2015 John Lawson * * 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 * * Unles...
<commit_before>#pragma once #include <cassert> #include <fstream> #include <cstring> #include <string> /** * This namespace defines wrappers for std::ifstream, std::ofstream, and * std::fstream objects. The wrappers perform the following steps: * - check the open modes make sense * - check that the call to open()...
<commit_before>// // Copyright (C) 2005-2007 SIPez LLC // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2005-2007 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // $$ ////////////////////////////////////////////////////////////////////////////// // Author: Dan Petrie...
<commit_before>/* The rapidradio project rapidradio command line tool Author: Michal Okulski, the rapidradio team Website: www.rapidradio.pl Email: michal@rapidradio.pl Inspired by AVR's RFM70 libraries. ------------------------------------------------------------------------------------ The MIT Licens...
<commit_before>/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * 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 retai...
<commit_before>#include <fstream> #include "system.hpp" namespace System { bool Printer_Base::uni_special(char ch) { return (ch & 0xc0) == 0x80; } int Printer_Base::uni_strlen(const char *word) { int len = 0; for(; *word; word++) { if(!uni_special(*word)) { len++; } } return len; } int Printer...
<commit_before>/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * 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 ...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 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. Redi...
<commit_before>// Copyright (c) 2011-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Unit tests for denial-of-service detection/prevention code #include "chainparams.h" #include "keystore.h" ...
<commit_before>// Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chain.h" #include "chainparams.h" #include "pow.h" #include "random.h" #include "util.h" #include "te...
<commit_before>#include <QTest> #include <QtCore> #include <QHostInfo> #include <tglobal.h> #include <stdio.h> static QByteArray randomString() { QByteArray data; data.reserve(128); #if QT_VERSION >= 0x040700 data.append(QByteArray::number(QDateTime::currentMSecsSinceEpoch())); #else QDateTime now = ...
<commit_before>// @(#)root/core/meta:$Id$ // Author: Paul Russo 30/07/2012 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>#include <common-ee.h> #include <kernel.h> #include <string.h> #define INIT_PRIO 0x40 #define STACK_SIZE 0x8000 char nullThreadStack[STACK_SIZE] __attribute__ ((aligned(16))); void nullThreadProc(u32) { //Do nothing } char sleepingThreadStack[STACK_SIZE] __attribute__ ((aligned(16))); void sleepingTh...
<commit_before>//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include <cmath> //For M_PI. #include "SettingsTest.h" #include "../src/settings/FlowTempGraph.h" #include "../src/settings/types/LayerIndex.h" #include "../src/settings/types/AngleRadians.h" #include ...
<commit_before><commit_msg>i mean. basics<commit_after>namespace dfg { class DFG { public DFG() { } public ~DGF() { } } private vector<ptree> jsons; } <|endoftext|>
<commit_before>/* Copyright (c) 2010-2012, Delft University of Technology * 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 a...
<commit_before>/* * Copyright 2008-2009 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 require...
<commit_before>#include <cstdio> #include <vector> #include <stack> #include <algorithm> #include <memory> namespace Frogs { enum class Frog { None, Brown, Green }; enum class Step { None, JumpLeft, LeapLeft, JumpRight, LeapRight }; class State { std::vector<Frog> lilies; int count,...
<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>#include <cassert> #include <fstream> #include <iostream> #include <strstream> #include <util/PlatformUtils.hpp> #include <PlatformSupport/DOMStringHelper.hpp> #include <DOMSupport/DOMSupportDefault.hpp> #include <XPath/XObjectFactoryDefault.hpp> #include <XPath/XPathSupportDefault.hpp> #include <XPat...
<commit_before>#include <iostream> #include <fstream> #include <functional> #include <typeinfo> #include <time.h> #include <cstdio> #include <vector> #include <time.h> #define SEQAN_DEBUG #define SEQAN_TEST #include <seqan/file.h> #include <seqan/modifier.h> using namespace std; using namespace seqan; ////////////...
<commit_before>/* * Copyright (C) 2017-2018 Nagisa Sekiguchi * * 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 app...
<commit_before>#ifndef GENERIC_REV_HPP # define GENERIC_REV_HPP # pragma once #include <iterator> #include <utility> namespace gnr { namespace detail { template <typename T> class rev_impl { T ref_; public: template <typename U> explicit rev_impl(U&& r) noexcept(noexcept(T(std::forward<U>(r)))) : ref_(s...
<commit_before>/* * Copyright 2016 The Imaging Source Europe 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 * * Unless required b...
<commit_before>/* This file is part of the ORK library. Full copyright and license terms can be found in the LICENSE.txt file. */ #include"ork/ork.hpp" #define ORK_STL_INC_FILE <fstream> #include"ork/core/stl_include.inl" #define ORK_STL_INC_FILE <iostream> #include"ork/core/stl_include.inl" #define ORK_STL_INC_FILE <m...
<commit_before>#include "loom.hpp" namespace loom { using ::distributions::sample_from_scores_overwrite; Loom::Loom ( rng_t & rng, const char * model_in, const char * groups_in, const char * assign_in) : cross_cat_(model_in), assignments_(cross_cat_.kinds.size()), value_jo...
<commit_before>// Simple UDP-to-HTTPS DNS Proxy // // (C) 2016 Aaron Drew // // Intended for use with Google's Public-DNS over HTTPS service // (https://developers.google.com/speed/public-dns/docs/dns-over-https) #include <arpa/inet.h> #include <curl/curl.h> #include <errno.h> #include <grp.h> #include <netdb.h> #inc...
<commit_before> /* * MIT License * * Copyright (c) 2017 Susanow * Copyright (c) 2017 Hiroki SHIROKURA * * 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 ...
<commit_before>#include <getopt.h> #include <iostream> #include <fstream> #include "error_handling.h" #include "game.h" #include "command.h" #include "io.h" #include "score.h" #include "misc.h" #include "level_rooms.h" #include "player.h" #include "options.h" #include "os.h" #include "move.h" #include "rogue.h" #incl...
<commit_before>// main.cc for Fluxbox Window manager // Copyright (c) 2001 - 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net) // and 2003 Simon Bowden (rathnor at users.sourceforge.net) // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>//===--------------------------- new.cpp ----------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <sys/time.h> #ifdef WIN32 #include <winsock2.h> #else #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #endif #ifndef WIN32 #include <unistd.h> #endif #include "netbase.h" extern int GetRandInt(int nMax); /* * NTP uses two fixed point formats. The f...
<commit_before>/// /// @file phi.cpp /// @brief The PhiCache class calculates the partial sieve function /// (a.k.a. Legendre-sum) using the recursive formula: /// phi(x, a) = phi(x, a - 1) - phi(x / primes[a], a - 1). /// phi(x, a) counts the numbers <= x that are not divisible by /// any ...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 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 "pow.h" #include "arith_uint256.h" #include "chain.h" #i...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 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 "pow.h" #include "arith_uint256.h" #include "chain.h" #i...
<commit_before>#include "ski.h" class SkiTerm { public: SkiTerm() { } SkiTerm(const QChar& c) { ch = c; } virtual ~SkiTerm() { } virtual QString toHof() const { return QString(ch); } virtual bool isWellFormed() const { return !ch.isNull(); } QChar ch; }; class SkiSubTerm : public SkiTerm { pub...
<commit_before>#include <uri> #include <regex> #include <iostream> using namespace uri; /////////////////////////////////////////////////////////////////////////////// URI::URI(const char* uri) : URI{std::string{uri}} {} /////////////////////////////////////////////////////////////////////////////// URI::URI(const...
<commit_before> #include "uri.h" #include <algorithm> #include <iomanip> #include <sstream> #include <stdexcept> #include <string> #include <type_traits> using namespace std; namespace coda { namespace net { namespace helper { #ifdef URIPARSER_FOUND static std::string fromRange(const UriTextRangeA &rng) {...
<commit_before>// Copyright 2011 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 require...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>#include"xml.hpp" Xml::Xml(){ } bool Xml::open(const QString filename){ if(!QFile::exists(filename)) return false; this->filename = filename; return true; } bool Xml::save(){ return true; } <commit_msg>xmlパースのopen部分を書いた<commit_after>#include"xml.hpp" Xml::Xml(){ } bool Xml::open(c...
<commit_before>// // Capture.cpp : Capture events to a window. // #include "stdafx.h" #include "Capture.h" #include "vtdata/vtLog.h" // Class statics std::map <void*, Capture*> Capture::registry; Capture::Capture(void* winId) { _ok = false; _winId = winId; registry.insert(std::pair<void*, Capture*>(_winId, this))...
<commit_before>#include <ros/ros.h> #include "map_creator/WorkSpace.h" #include "H5Cpp.h" #include <hdf5.h> using namespace H5; using namespace std; #define POSES_DATASETNAME "poses_dataset" #define SPHERE_DATASETNAME "sphere_dataset" #define POSE_GROUPNAME "/Poses" #define SPHERE_GROUPNAME "/Spheres" #define RAN...
<commit_before>// @(#)root/gl:$Name: $:$Id: TRootOIViewer.cxx,v 1.2 2001/05/14 16:27:39 brun Exp $ // Author: Valery Fine & Fons Rademakers 5/10/2000 and 28/4/2001 /************************************************************************* * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. * *...
<commit_before>#include <QtGui/QTransform> #include <QtCore/QStringList> #include "constants.h" #include "worldModel.h" #include "src/engine/items/wallItem.h" #include "src/engine/items/colorFieldItem.h" #include "src/engine/items/ellipseItem.h" #include "src/engine/items/stylusItem.h" using namespace twoDModel; usi...
<commit_before> #include <atomic> #include <iostream> using namespace std; struct DoubleWord { uint64_t a; uint64_t b; }; int main() { atomic<DoubleWord> dw1; DoubleWord dw2{3, 4}; DoubleWord dw3{5, 6}; dw1 = DoubleWord{7, 8}; // This will compile using LOCK CMPXCHG8B bool ...
<commit_before>#include "kernel.h" #include "raster.h" #include "pixeliterator.h" using namespace Ilwis; bool PixelIterator::isValid() const { return _isValid; } PixelIterator::PixelIterator() : _localOffset(0), _currentBlock(0), _step(0), _flow(fXYZ),_isValid(false),_positionid(0) { } PixelIterator::PixelIte...
<commit_before>/************************************************************************* * * $RCSfile: writersvc.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: jb $ $Date: 2002-05-27 13:55:02 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>//************************************************************************************************** // // OSSIM Open Source Geospatial Data Processing Library // See top level LICENSE.txt file for license information // //**************************************************************************...
<commit_before>#include <vcl/dialog.hxx> #include <vcl/fixed.hxx> #ifndef _SV_BUTTON_HXX #include <vcl/button.hxx> #endif namespace desktop { void displayCmdlineHelp( void ); class CmdlineHelpDialog : public ModalDialog { public: CmdlineHelpDialog ( void ); FixedText m_ftHead; ...
<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>/* -*- 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><commit_msg>* fix build error on arm<commit_after><|endoftext|>
<commit_before>#include "mex.h" #include <iostream> #include "drakeUtil.h" #include "RigidBodyManipulator.h" #include "math.h" using namespace Eigen; using namespace std; // convert Matlab cell array of strings into a C++ vector of strings vector<string> get_strings(const mxArray *rhs) { int num = mxGetNumberOfElem...
<commit_before>/* Siconos-Kernel, Copyright INRIA 2005-2010. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free ...
<commit_before>/***************************************************************************** * cmd_input.cpp ***************************************************************************** * Copyright (C) 2003 the VideoLAN team * $Id$ * * Authors: Cyril Deguet <asmax@via.ecp.fr> * Olivier Teulière <i...
<commit_before>/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** All rights reserved. ** ** This file is a part of the chemkit project. For more information ** see <http://www.chemkit.org>. ** ** Redistribution and use in s...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2019 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
<commit_before>#include <cstdio> #include <cmath> #include "../../inmost.h" using namespace INMOST; int main(int argc,char ** argv) { int permut = 0; int solver = 0; // 0 - INNER_ILU2, 1 - INNER_MLILUC, 2 - PETSc // 3 - Trilinos_Aztec, 4 - Trilinos_Ifpack, // 5 - Trilinos_ML, 6 - Trilinos_Belos, 7 - ANI int rank...
<commit_before>/* * Copyright (C) 2016-2018 Muhammad Tayyab Akram * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<commit_before>/* * Copyright (c) 2003-2005 The Regents of The University of Michigan * 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 c...
<commit_before><commit_msg>サーバーから与えられた隠し要素をファイルに記録できるようにした<commit_after><|endoftext|>
<commit_before>#if !defined(B9_MODULE_HPP_) #define B9_MODULE_HPP_ #include <b9/instructions.hpp> #include <cstdint> #include <iostream> #include <stdexcept> #include <string> #include <vector> namespace b9 { class Compiler; class ExecutionContext; class VirtualMachine; // Function Definition struct FunctionDef { ...
<commit_before>/* * Copyright (c) 2017-2018, Rauli Laine * 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>/////////////////////////////////////////////////////////////////////////////// // // File AdvectionDiffusionReaction.cpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of...
<commit_before>#include "sox.h" #include <QFile> #include <QDir> #include <QCoreApplication> #include <QProcess> Sox::Sox(QObject *parent) : QObject(parent) { } QString Sox::bin() { QString path; QFile soxApp; if (soxApp.exists(qApp->applicationDirPath()+QDir::separator()+"sox.exe")) path = q...
<commit_before>/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Copyright 2021 The CFU PLayground 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 obtain a copy of the License at ...
<commit_before>#include "V3DBatchModelGroup.h" #ifndef VFRAME_NO_3D #include "V3DCamera.h" #include "V3DShader.h" V3DBatchModelGroup::V3DBatchModelGroup(V3DObject* BaseObject, unsigned int MaxSize) : VGroup(MaxSize) { baseObject = BaseObject; } void V3DBatchModelGroup::Destroy() { VSUPERCLASS::Destroy(); delete b...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkTkAppInit.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Cop...
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ // vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s //#include "goto-def.h" /* Copyright (c) FFLAS-FFPACK * Written by Clément Pernet <clement.pernet@imag.fr> * ========LICENCE======== * This file is part of the li...
<commit_before>#include "chr/cross/CrossSketch.h" #if defined(CHR_PLATFORM_DESKTOP) || defined(CHR_PLATFORM_EMSCRIPTEN) #include "chr/cross/CrossDelegate.h" #endif #if defined(CHR_PLATFORM_DESKTOP) #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #endif using namespace std; namespace chr { ...
<commit_before>/** * @cond ___LICENSE___ * * Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors. * * 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 rest...
<commit_before>#include <cstdint> #include <iostream> template<size_t N> using num = std::integral_constant<size_t, N>; auto typeFromID(num<7>){ double ret{17.0}; return ret; } auto typeFromID(num<8>){ uint64_t ret{19}; return ret; } auto typeFromID(num<9>){ const char* ret{"A"}; return ret;...
<commit_before>// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \ // RUN: -fdebug-prefix-map=%S=/SOURCE_ROOT %s -emit-llvm -o - | FileCheck %s template <typename T> void b(T) {} void c() { // CHECK: !DISubprogram(name: "b<(lambda at // CHECK-SAME: /SOURCE_ROOT/debug-prefix-map-lam...
<commit_before>// ========================================================================== // // This file is part of DO++, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2013 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // Lic...
<commit_before>#include "view/SceneView.h" #include "DotSceneLoader.h" #include "util/BulletDebugDrawer.h" #include <OgreRoot.h> #include <OgreViewport.h> #include <OgreConfigFile.h> #include <OgreEntity.h> #include <OgreWindowEventUtilities.h> #include <sstream> #include <string> SceneView::SceneView(Rally::Model...
<commit_before>#include <iostream> #include <iomanip> #include "janssonxx.h" using namespace std; #define ASSERT_OP(lhs, rhs, op, m) \ do { \ if(!((lhs) op (rhs))) { \ std::cerr << std::boolalpha; \ std::cerr << __FILE__ << '[' << __LINE__ << "]: ERROR: " << (m) << std::endl; \ std::cerr << "\ttest: " ...
<commit_before>/** * @file Cosa/SPI/Driver/HCI.cpp * @version 1.0 * * @section License * Copyright (C) 2015, Mikael Patel * * 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...
<commit_before>/*************************************************************************** xloggertestcase.cpp ------------------- begin : 2003/12/02 copyright : (C) 2003 by Michael CATANZARITI email : mcatan...
<commit_before>/** * @author: Jeff Thompson * See COPYING for copyright and distribution information. */ #include <cstdlib> #include <sstream> #include <iostream> #include <boost/date_time/posix_time/posix_time_types.hpp> #include <boost/date_time/posix_time/time_serialize.hpp> #include <boost/date_time/gregorian/g...
<commit_before>// Copyright 2020 DeepMind Technologies Limited. // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
<commit_before>#include "../src/http/server/server_connection.h" #include "../src/protocol/handler_http1.h" #include "../src/http/server/server_traits.h" #include "mocks/mock_connector.h" #include <gtest/gtest.h> #include <gmock/gmock.h> using namespace http; TEST(server_connection, invalid_request) { boost::asio::i...
<commit_before>#include "../../view/editorViewScene.h" #include <QtCore/qmath.h> #include "../nodeElement.h" #include "portHandler.h" qreal const PortHandler::mMaximumFractionPartValue = 0.9999; PortHandler::PortHandler(NodeElement *node, qReal::models::GraphicalModelAssistApi *graphicalAssistApi, QList<StatPoint> ...