text
stringlengths
54
60.6k
<commit_before>// // Created by salmon on 17-10-11. // #include "simpla/SIMPLA_config.h" #include <simpla/application/SPInit.h> #include <simpla/geometry/BoxUtilities.h> #include <simpla/geometry/Cube.h> #include <simpla/geometry/csCartesian.h> #include <simpla/mesh/CoRectMesh.h> #include <simpla/mesh/EBMesh.h> #incl...
<commit_before>/** * \file logging.hh * \brief logging **/ #ifndef LOGGING_HH_INCLUDED #define LOGGING_HH_INCLUDED #include <fstream> #include <ostream> #include <sstream> #include <ctime> #include <iomanip> #include <map> #include <assert.h> #include "misc.hh" /** \brief handles all logging **/ class Logging ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in **...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>/********************************************************************************* * Copyright (c) 2013 David D. Marshall <ddmarsha@calpoly.edu> * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2009 Torus Knot Software Ltd Permission is hereby granted, free of charge,...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// Copyright (c) 2013, 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 "vm/object_store.h" #include "vm/dart_entry.h" #include "vm/exceptions.h" #inc...
<commit_before>#include "encoder.h" EncodeToPngBufferWorker::EncodeToPngBufferWorker( unsigned char * pixbuf, size_t width, size_t height, int compression, bool interlaced, NanCallback * callback ): NanAsyncWorker(callback), _pixbuf(pixbuf), _width(width), _height(height), _compression(comp...
<commit_before>/** * @file * @brief Example of using new and delete operators * @date 12.07.12 * @author Ilia Vaprol */ #include <framework/example/self.h> #include <new> #include <cstdio> // TEST: include all C++ headers #include <cassert> #include <cctype> #include <cerrno> #include <cmath> #include <csetjmp>...
<commit_before>/****************************************************************************** * Copyright (c) 2014 Potential Ventures Ltd * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Re...
<commit_before>/* Copyright (c) 2012 Carsten Burstedde, Donna Calhoun 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 ...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQTSSAWidget.cpp,v $ // $Revision: 1.15 $ // $Name: $ // $Author: nsimus $ // $Date: 2010/06/28 11:59:44 $ // End CVS Header // Copyright (C) 2010 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc...
<commit_before>/** * Clever programming language * Copyright (c) 2011-2012 Clever Team * * 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 limita...
<commit_before>/******************************************************************************* * c7a/api/allgather_node.hpp * * Part of Project c7a. * * Copyright (C) 2015 Alexander Noe <uagtc@student.kit.edu> * * This file has no license. Only Chuck Norris can compile it. *************************************...
<commit_before>/************************************************************************* * * $RCSfile: environmentofanchoredobject.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2004-03-08 14:01:53 $ * * The Contents of this file are made available subject to the terms of * either of ...
<commit_before>/* * Copyright 2015 - 2018 gtalent2@gmail.com * * 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/. */ #pragma once #include "types.hpp" #ifdef DEBUG...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "MemoryLeakCheck.h" #include "Color.h" #include "Quaternion.h" #include "Transform.h" #include "Vector3D.h" #include "Matrix4.h" #include "IAttribute.h" #inclu...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>// $Id$ // // Standalone jet finder // // Authors: R.Haake #include "AliFJWrapper.h" #include "AliEmcalJet.h" #include "AliEmcalJetFinder.h" #include "AliLog.h" #include <vector> #include "TH1.h" //________________________________________________________________________ AliEmcalJetFinder::AliEmcalJetFi...
<commit_before>/* * Copyright 2018 Kacper Kasper <kacperkasper@gmail.com> * All rights reserved. Distributed under the terms of the MIT license. */ #include "Editorconfig.h" #include <algorithm> #include <fstream> #include <regex> #include <sstream> #include <string> #include <Directory.h> #include <Entry.h> #inc...
<commit_before>#include "common/RhodesApp.h" #include "common/RhoStd.h" #include "common/RhoConf.h" #include "common/RhoFile.h" #include "common/RhoDefs.h" #include "common/Tokenizer.h" #include "logging/RhoLogConf.h" #include "generated/cpp/LogCaptureBase.h" namespace rho { using namespace apiGenerator; us...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2014 Paul Asmuth, Google Inc. * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public Licen...
<commit_before>/* * Copyright 2012-2013 BrewPi/Elco Jacobs. * Copyright 2013 Matthew McGowan. * * This file is part of BrewPi. * * BrewPi 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...
<commit_before>/***************************************************************************** * Messages.cpp : Information about an item **************************************************************************** * Copyright (C) 2006-2007 the VideoLAN team * $Id$ * * Authors: Jean-Baptiste Kempf <jb (at) videola...
<commit_before> #include "PolycodeWindowsPlayer.h" #include <Polycode.h> #include "PolycodeView.h" #include "windows.h" #include "resource.h" #define STANDALONE_MODE using namespace Polycode; extern Win32Core *core; void wtoc(char* Dest, TCHAR* Source, int SourceSize) { for(int i = 0; i < SourceSize; ++i) Dest[i] ...
<commit_before>/***************************************************************************** * playtree.cpp ***************************************************************************** * Copyright (C) 2005 the VideoLAN team * $Id$ * * Authors: Antoine Cellerier <dionoea@videolan.org> * Clément Stenac ...
<commit_before>/* compute the Restricted Voronoi Diagram in CPU */ //RVD computing part #include "Command_line.h" #include "Mesh_io.h" #include "Mesh.h" #include "Points.h" #include "Mesh_repair.h" // Cuda part #include "CudaHelper.h" #include <time.h> // Renderring part #include "Glut_generator.h" #include "Draw...
<commit_before>// Ylikuutio - A 3D game and simulation engine. // // Copyright (C) 2015-2021 Antti Nuortimo. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the ...
<commit_before>/* Copyright 2022 The TensorFlow 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is dis...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2014-2019 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before> #pragma GCC diagnostic ignored "-Wconversion" #include <libdevcrypto/SHA3.h> #include <libethcore/Params.h> #include <libevm/ExtVMFace.h> #include "Utils.h" extern "C" { #ifdef _MSC_VER #define EXPORT __declspec(dllexport) #else #define EXPORT #endif using namespace dev; using namespace dev:...
<commit_before><commit_msg>alerts: fix alpha blending<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved. // // ______ __ ___ // /\__ _\ /\ \ /\_ \ // \/_/\ \/ __ \_\ \ _____ ___\//\ \ __ // \ \ \ /'__`\ /'_` \/\ '__`\ / __`\\ \ \ /'__`\ // \ \ \/\ \L\.\_/\ \L\ \ \ \L\ \/...
<commit_before>/** \file apply_differential_update.cc * \brief A tool for applying a differential update to a complete MARC dump. * \author Dr. Johannes Ruscheinski */ /* Copyright (C) 2018 Library of the University of Tübingen This program is free software: you can redistribute it and/or modify ...
<commit_before>/*! \file * * \brief Python exports for module base classes * \author Benjamin Pritchard (ben@bennyp.org) */ #include "bpmodule/modulebase/All.hpp" #include "bpmodule/datastore/Wavefunction.hpp" #include "bpmodule/modulemanager/ModuleManager.hpp" using bpmodule::modulemanager::ModuleManager; usi...
<commit_before>/* * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com> */ #pragma once #include <algorithm> #include <limits> #include <uavcan/stdint.hpp> #include <uavcan/error.hpp> #include <uavcan/transport/frame.hpp> #include <uavcan/linked_list.hpp> #include <uavcan/dynamic_memory.hpp> #include <uavc...
<commit_before>#pragma once //=====================================================================// /*! @file @brief MAX7219 ドライバー Copyright 2016 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include <cstdint> #include <...
<commit_before>/* * Copyright (c) 2009, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the fi...
<commit_before>/* * * This source file is a part of the Berlin Project. * Copyright (C) 2002 Tobias Hunger <tobias@fresco.org> * http://www.fresco.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Fr...
<commit_before>/** @file tutorialCommandLineArg.cpp @brief Tutorial on how to use command line parser in G+Smo. 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...
<commit_before><commit_msg>Rename variables.<commit_after><|endoftext|>
<commit_before>#include <cstdio> #include "acmacs-base/acmacsd.hh" #include "acmacs-base/argv.hh" #include "acmacs-base/filesystem.hh" #include "acmacs-base/timeit.hh" #include "acmacs-base/string.hh" #include "acmacs-base/quicklook.hh" #include "hidb-5/hidb.hh" #include "acmacs-chart-2/factory-import.hh" #include "ac...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENS...
<commit_before>// // Created by Ray Jenkins on 4/20/15. // #include "ConservatorFramework.h" #include "SetDataBuilderImpl.h" #include "GetChildrenBuilderImpl.h" #include "GetACLBuilderImpl.h" #include "SetACLBuilderImpl.h" void watcher(zhandle_t *zzh, int type, int state, const char *path, void *watcherC...
<commit_before>/* * MCore Extensions for TTBlue * Creates a wrapper for TTAudioObjects that can be used to build an audio processing graph. * Copyright © 2008, Timothy Place * * License: This code is licensed under the terms of the GNU LGPL * http://www.gnu.org/licenses/lgpl.html */ #include "multicore.h" #d...
<commit_before>/* Copyright 2014-2015 Adam Grandquist 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 agreed to ...
<commit_before>/* * Copyright (C) 2012 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, this l...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*- commands/exportopenpgpcertstoservercommand.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2008 Klarälvdalens Datakonsult AB Kleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
<commit_before>/* Copyright 2020 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
<commit_before>// Copyright (c) 2011 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 "content/renderer/render_widget_fullscreen_pepper.h" #include "base/message_loop.h" #include "content/common/view_messages.h"...
<commit_before>#ifndef BUILDERS_GENERATORS_ICOSPHEREGENERATOR_HPP_DEFINED #define BUILDERS_GENERATORS_ICOSPHEREGENERATOR_HPP_DEFINED #include "builders/generators/AbstractGenerator.hpp" #include "math/Vector3.hpp" #include <algorithm> #include <cstdint> #include <vector> namespace utymap { namespace builders { /// ...
<commit_before>#include<iostream> #include<string> // g++ --std=c++11 -Wall -pedantic hello.cpp using namespace std; int main() { string msg = "Hello, world!"; cout << msg << endl; return 0; } <commit_msg>Added bool example<commit_after>#include<iostream> #include<string> // g++ --std=c++11 -Wall -pedantic he...
<commit_before>#ifdef QUICKTEST_GUI #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> #include <FL/Fl_Button.H> #include <FL/Fl_Multiline_Output.H> #include <FL/Fl_Box.H> #include "FL/fl_draw.H" #endif #include <vector> #include <string> #include <fstream> #include "LimeSDRTest.h" #include <iostream> #include <getop...
<commit_before>/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | ...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2014 Clifford Wolf <clifford@clifford.at> * Copyright (C) 2014 Johann Glaser <Johann.Glaser@gmx.at> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provid...
<commit_before>/***************************************************************************** * playlist_model.hpp : Model for a playlist tree **************************************************************************** * Copyright (C) 2006-2011 the VideoLAN team * $Id$ * * Authors: Clément Stenac <zorglub@videol...
<commit_before>// Copyright (c) 2006-2008 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 "net/http/http_auth_handler_digest.h" #include "base/md5.h" #include "base/string_util.h" #include "net/base/net_util.h"...
<commit_before>#include "ExifParser.h" #include <math.h> #include <QtEndian> #include <QDateTime> ExifParser::ExifParser() { } ExifParser::~ExifParser() { } double ExifParser::readTime(QByteArray& buf) { char tiffHeader[] = {static_cast<char>(0x49),static_cast<char>(0x49),static_cast<char>(0x2A),static_cast<ch...
<commit_before>// RobotBuilder Version: 1.5 // // This file was generated by RobotBuilder. It contains sections of // code that are automatically generated and assigned by robotbuilder. // These sections will be updated in the future when you export to // C++ from RobotBuilder. Do not put any code or make any change in...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: LifeTime.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 00:42:04 $ * * The Contents of this file are made ...
<commit_before>#include "sweep.h" #include "protocol.h" #include "serial.h" #include <chrono> #include <thread> int32_t sweep_get_version(void) { return SWEEP_VERSION; } bool sweep_is_abi_compatible(void) { return sweep_get_version() >> 16u == SWEEP_VERSION_MAJOR; } typedef struct sweep_error { const char* what; /...
<commit_before><commit_msg>Framework: delete the redundant code, adjust frame ratio for UI<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: sddll.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: hr $ $Date: 2004-12-13 12:32:38 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/* main.cpp * landmarkswing main file - use landmark detection to detect changes in swinging direction, and move accordingly */ #include "createmodule.h" #include <iostream> #include <iomanip> #include <cstdlib> #include <unistd.h> #include <getopt.h> #include <boost/shared_ptr.hpp> #include <qi/os....
<commit_before><commit_msg>Make "Reset to Defaults" reset geolocation permissions too<commit_after><|endoftext|>
<commit_before><commit_msg>Attempt to make DownloadTest UI test less flaky.<commit_after><|endoftext|>
<commit_before>/** * @file basicdeb.cpp * @brief Basic debugger, can be replaced with setDebuggerHook() * */ #include "angort.h" #include "debtoks.h" #include "../lib/opcodes.h" #include <histedit.h> #include "completer.h" using namespace angort; bool debuggerBreakHack=false; // we have our own instance of edi...
<commit_before>/********************************************************************* * * Copyright 2011 Intel Corporation * All Rights Reserved. * * 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 t...
<commit_before>#include "OnionEncryptor.hpp" namespace Dissent { namespace Crypto { void Print(const QVector<QByteArray> &datas); OnionEncryptor &OnionEncryptor::GetInstance() { static OnionEncryptor onion_encryptor; return onion_encryptor; } int OnionEncryptor::Encrypt(const QVector<AsymmetricKey *...
<commit_before>#include "EpsilonDashboard.h" #include <QApplication> #include <QLockFile> #include <QDebug> #include <QDir> int main(int argc, char* argv[]) { QString tmpDir = QDir::tempPath(); QLockFile lockFile(tmpDir + "/epsilonDashboard.lock"); /* Trying to close the Lock File, if the attempt is unsuc...
<commit_before>#include <iostream> #include <fstream> #include <boost/regex.hpp> #include "Types.hpp" #include "Sequence.hpp" #include "Graph.hpp" #include "Path.hpp" #include "FitnessFunction.hpp" #include "GreedyPathFinder.hpp" #include "MeanOverlap.hpp" using namespace std; using namespace FireflyAssembler; Vector...
<commit_before>/** * Clever programming language * Copyright (c) Clever Team * * This file is distributed under the MIT license. See LICENSE for details. */ #include <iostream> #include "core/ast.h" #include "core/codegen.h" #include "core/scope.h" #include "core/compiler.h" namespace clever { namespace ast { v...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2018, Image Engine Design 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:...
<commit_before><commit_msg>Allow process swaps for renderer navigations away from an extension. We still avoid them for navigations away from hosted apps.<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2003-2008 Rony Shapiro <ronys@users.sourceforge.net>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2....
<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 "base/file_util.h" #include "base/path_service.h" #include "build/build_config.h" #include "chrome/common/chrome_switches.h" #...
<commit_before><commit_msg>Enabling shared worker tests for Linux/Mac. Windows is blocked on b27636.<commit_after><|endoftext|>
<commit_before><commit_msg>Enable WorkerTest.QueuedSharedWorkerShutdown because it seems to work 100% now. BUG=42641 TEST=WorkerTest.QueuedSharedWorkerShutdown<commit_after><|endoftext|>
<commit_before><commit_msg>Disable worker-cloneport.html. This is to avoid needlessly accumulating flakiness reports. We know it's flaky and are looking for the race condition. Landing for prasadt, original CR: http://codereview.chromium.org/1566006 BUG=35965 TEST=none<commit_after><|endoftext|>
<commit_before>/* * DIPlib 3.0 * This file contains definitions for common functions declared in framework.h. * * (c)2016-2017, Cris Luengo. * Based on original DIPlib code: (c)1995-2014, Delft University of Technology. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this f...
<commit_before>#pragma once #include "physics/forkable.hpp" namespace principia { namespace physics { template<typename Tr4jectory> void Forkable<Tr4jectory>::DeleteFork(not_null<Tr4jectory**> const trajectory) { CHECK_NOTNULL(*trajectory); std::experimental::optional<Instant> const fork_time = (*trajector...
<commit_before><commit_msg>PostProcessManager: fix setMinMaxLevels for StructureMipmap.<commit_after><|endoftext|>
<commit_before>/** * @copyright Copyright (c) 2014, Wojciech Krzemien * @file JPetTaskIO.cpp * @author Wojciech Krzemien, wojciech.krzemien@if.uj.edu.pl */ #include "JPetTaskIO.h" #include <cassert> #include "../JPetReader/JPetReader.h" #include "../JPetTreeHeader/JPetTreeHeader.h" #include "../JPetTask/JPe...
<commit_before>#include <cfloat> #include "Steering.h" #include "Math.h" #include "Random.h" namespace Common { Steering::Steering(const Vehicle& e) : mUnit(e) { } Vector3 Steering::seek(const Vector3& tgtpos) { Vector3 desiredVelocity = (tgtpos - mUnit.getPosition()).normalized() * mUnit.getMaxSpeed(); return...
<commit_before>/******************************************************************************* * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 1 * * (c) 2006-2007 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>// RUN: cat %s | %cling | FileCheck %s // Test Interpreter::lookupScope() #include "cling/Interpreter/Interpreter.h" #include "clang/AST/Type.h" typedef int Int_t; .rawInput 1 template <typename T> struct W { T member; }; .rawInput 0 const clang::Type* resType = 0; gCling->lookupScope("W<Int_t>", &resTy...
<commit_before>// // TSLogger.hpp // cppcommon // // Created by Sean Grimes on 12/28/16. // Copyright © 2016 Sean Grimes. All rights reserved. // #pragma once /** \brief Use FUNC to pass function name \details FUNC is defined as __PRETTY_FUNCTION__ and will pass the function name to the logger when t...
<commit_before>/* Copyright (C) 2003 MySQL AB 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 program is d...
<commit_before>/** * A cache for decoded instructions in functional simulator * @author Denis Los */ // Google test library #include <gtest/gtest.h> // Modules #include "../LRUCache.h" #include <infra/types.h> #include <mips/mips_instr.h> class Dummy { const size_t value; public: explicit Dummy( uint32 ...
<commit_before>/** * medianSales.cpp * * Author: Patrick Rummage (patrickbrummage@gmail.com) * * Objective: * Use a two-dimensional array of sales data to identify the sales agent * with the highest median sales figure in a year. */ #include <cstdlib> #include <iostream> using std::cin; using std::co...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>#pragma once // Parameters to control the behavior of an SDPSolver. See the manual // for a detailed description of each. // #include "types.hxx" #include <El.hpp> #include <iostream> class SDP_Solver_Parameters { public: int max_iterations; int max_runtime; int checkpoint_interval; bool no_f...
<commit_before> #include <iostream> #include <memory> #include <vector> #include <algorithm> #include "Include\Application.h" #include "Include\TCPSocket.h" #include "Include\TCPServerSocket.h" #include "Include\SocketEvent.h" class EchoServer : public Application { TCPServerSocket server; std::vector<std::shared...
<commit_before>/* * (C) Copyright 2013 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org...
<commit_before> #include <Python.h> #include <memory> #include <vector> #include <iostream> #include <boost/intrusive_ptr.hpp> template<class T> using ptr = boost::intrusive_ptr<T>; #define AS_GC(o) ((PyGC_Head *)(o)-1) static long& gc_refs(PyObject* self) { PyGC_Head *gc = AS_GC(self); return gc->gc.gc_refs; ...