text
stringlengths
54
60.6k
<commit_before>#include "log.h" #include <ctime> #include <cstring> #include <algorithm> namespace oak::log { Logger cout{ "msg" }; Logger cwarn{ "warn" }; Logger cerr{ "err" }; Logger::Logger(const char* name) : name_{ name } { } void Logger::addStream(Stream *stream) { streams_.push_back(stream); } v...
<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. // This is a file for random testcases that we run into that at one point or // another have crashed the program. #include "chrome/tes...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vvasielv@cern.ch> //------------------------------------------------------------------------------ #include "cling/Interpreter/Tran...
<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 "chrome/installer/gcapi/gcapi.h" #include <atlbase.h> #include <atlcom.h> #include <windows.h> #include <sddl.h> #includ...
<commit_before>/* Copyright 2013 SINTEF ICT, Applied Mathematics. */ #include <opm/core/utility/parameters/ParameterGroup.hpp> #include <opm/core/linalg/LinearSolverFactory.hpp> #include <opm/core/utility/ErrorMacros.hpp> #include <opm/autodiff/AutoDiffBlock.hpp> #include <opm/autodiff/AutoDiffHelpers.hpp> #include ...
<commit_before>#include "LIBSPU.H" #include "LIBETC.H" #include <stdio.h> #include "EMULATOR.H" #include "LIBAPI.H" #include <string.h> #define SPU_CENTERNOTE (49152) short _spu_voice_centerNote[24] = { SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, S...
<commit_before>/* * EepromManager.cpp * * Created: 23/04/2013 03:15:44 * Author: mat */ #include "brewpi_avr.h" #include <stddef.h> #include "EepromManager.h" #include "TempControl.h" #include "EepromFormat.h" #include "PiLink.h" EepromManager eepromManager; EepromAccess eepromAccess; #define pointerOffset(x...
<commit_before>#include "Plane.h" #include <GL/glew.h> #include <MathGeoLib/include/Math/float3.h> #include <MathGeoLib/include/Math/MathFunc.h> #include "Globals.h" ::Plane::Plane(int planeSize) : Primitive(), PlaneSize(planeSize) {} ::Plane::Plane(const float3& position, Quat& rotation, int planeSize) : Primiti...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkFastNumericConversion.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for detai...
<commit_before><commit_msg>Update comment<commit_after><|endoftext|>
<commit_before>//===-------------- ARCAnalysis.cpp - SIL ARC Analysis --------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>//===- SILCodeMotion.cpp - Code Motion Optimizations ----------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>//===- SILCodeMotion.cpp - Code Motion Optimizations ----------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>/**************************************************************************** ** ** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercia...
<commit_before> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <semaphore.h> #include "PcieTestBenchIndicationWrapper.h" #include "PcieTestBenchRequestProxy.h" #include "GeneratedTypes.h" class PcieTestBenchIndication : public PcieTestBenchIndicationWrapper { sem_t sem;...
<commit_before>#ifndef BVECT #define BVECT #include <vector> using namespace std; class BVect { private: double _z1; double _z2; vector<double> _x; public: BVect () {} BVect (double z1, double z2, vector<double> x) : _z1(z1), _z2(z2), _x(x) {} BVect (const BVect& b1, const BVect& b2, doub...
<commit_before>/// /// @file Wheel.hpp /// @brief Data structures related to wheel factorization. /// Wheel factorization is used to skip multiples of small /// primes in the sieve of Eratosthenes. /// /// Copyright (C) 2015 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under ...
<commit_before>/** * Copyright 2012-2013 Sergio Arroutbi Braojos <sarroutbi@gmail.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. * *...
<commit_before><commit_msg>remove unnecessary debug message<commit_after><|endoftext|>
<commit_before><commit_msg>Make search provider enforce that keyword search term visits have a decreasing relevance. Without this we could end up with visits having the same relevance, which results in randomness as to which is first, when we really wanted one to be before the other.<commit_after><|endoftext|>
<commit_before><commit_msg>Disable flaky TabDraggingTest.Tab1Tab3Escape.<commit_after><|endoftext|>
<commit_before><commit_msg>Fixed a corner case issue with printing XPS documents to the Microsoft XPS Document Writer which would not generate a job id.<commit_after><|endoftext|>
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Axel Naumann <axel@cern.ch> //------------------------------------------------------------------------------ #include <cling/UserInterface/UserInter...
<commit_before>#include "BilliardBuddy.h" int BilliardBuddy::frameIterator = 0; cv::vector<Vec2i> BilliardBuddy::cueCoords = cv::vector<Vec2i>(0, 0); int main(int argc, char* argv[]) { BilliardBuddy::help(); // Read config settings. const string inputSettingsFile = argc > 1 ? argv[1] : "config.xml"; FileSto...
<commit_before>#include <iostream> #include <cstring> // Needed for memset #include <sys/socket.h> // Needed for the socket functions #include <netdb.h> // Needed for the socket functions #include <unistd.h> #include <assert.h> #include <memory> // unique_ptr #include "sim.h" #include "jsoncpp/json/json.h" ...
<commit_before>#include <cstdlib> #include "buffer.hh" namespace mimosa { namespace stream { Buffer::Buffer(uint64_t size) : size_(size), data_(reinterpret_cast<char *>(::malloc(size + 4))) { data_[size_ - 3] = 0; data_[size_ - 2] = 0; data_[size_ - 1] = 0; data_[size...
<commit_before><commit_msg>Edit a comment.<commit_after><|endoftext|>
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkContextMouseEvent.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkScatterPlotMatrix.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>/** * Clever programming language * Copyright (c) Clever Team * * This file is distributed under the MIT license. See LICENSE for details. */ #include "core/cthread.h" namespace clever { CCondition::CCondition() { pthread_cond_init(&condition, NULL); } CCondition::~CCondition() { pthread_cond_d...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXQt - The Lightweight Desktop Environment * https://lxqt.org * * Copyright: 2010-2011 Razor team * Authors: * Petr Vanek <petr@scribus.info> * * This program or library is free software; you can redistribute it * and/or modify it under the te...
<commit_before>#include "GLFramebuffer.h" #include "GL.h" #include "GLRenderbuffer.h" #include "GLRenderTexture2D.h" #include "GLRenderTexture2DRectangle.h" #include <iostream> #include "GLUtility.h" using namespace std; // ---------------------------------------------------------------------------- //...
<commit_before> #include <NdbApi.hpp> #include <NdbOut.hpp> #include <NdbTick.h> struct S_Scan { const char * m_table; const char * m_index; NdbIndexScanOperation * m_scan; NdbResultSet * m_result; Uint32 metaid; Uint32 match_count; Uint32 row_count; }; static S_Scan g_scans[] = { { "affiliatestometa"...
<commit_before>/* $Id$ */ /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell CppAD is distributed under multiple licenses. This distribution is under the terms of the Eclipse Public License Ver...
<commit_before>#pragma once // Project specific #include <AudioHandler.hpp> #include <Doremi/Core/Include/InputHandler.hpp> #include <Doremi/Core/Include/InputHandlerClient.hpp> #include <DoremiEngine/Physics/Include/PhysicsModule.hpp> #include <DoremiEngine/Physics/Include/RigidBodyManager.hpp> //#include <DoremiEngin...
<commit_before>// Project specific #include <Editor.hpp> // Third party // Standard libraries #ifdef _WIN32 #include <windows.h> #include <DbgHelp.h> #include <stdlib.h> #include <string.h> #include <tchar.h> #else #error Platform not supported #endif #include <exception> #include <iostream> #include <exception> // ...
<commit_before><commit_msg>fix empty w:tblW<commit_after><|endoftext|>
<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>/** * \file */ #pragma once #include <rleahylib/rleahylib.hpp> #include <fma.hpp> #include <algorithm> #include <cmath> #include <cstring> #include <functional> #include <limits> #include <unordered_map> #include <utility> #include <type_traits> #pragma GCC optimize ("fast-math") namespac...
<commit_before>#include "stdafx.h" #include "Model.h" //void ConvertOBJ(std::string &f_path, std::string &f_out) //{ // try // { // std::vector<glm::vec3> temp_vertex; // std::vector<glm::vec2> temp_uv; // std::vector<glm::vec3> temp_normal; // // std::vector<std::string> l_materialN...
<commit_before>#include "file.h" #include <sys/stat.h> #include "format.h" #include "log.h" #ifdef _WIN32 #include <windows.h> #endif #include <unistd.h> #include <iomanip> #include <dirent.h> #include <stdlib.h> #ifdef APPLE #include <mach-o/dyld.h> #endif #include <mutex> #ifndef PATH_MAX #define PATH_MAX 4096 ...
<commit_before>#ifndef stack_cpp #define stack_cpp #pragma once #include <iostream> template <typename T1, typename T2> void construct(T1 * ptr, T2 const & value) { new(ptr) T1 (value); } template <typename T> void destroy(T * ptr) noexcept { ptr->~T(); } template <typename FwdIter> void destroy(FwdIter firs...
<commit_before> #include "../Flare.h" #include "FlareTravel.h" #include "FlareWorld.h" #include "FlareGame.h" #include "FlareGameTools.h" #include "../Player/FlarePlayerController.h" #include "../UI/Components/FlareNotification.h" #include "../Economy/FlareCargoBay.h" static const double TRAVEL_DURATION_PER_PHASE_KM ...
<commit_before>/* * Copyright 2014 Cloudius Systems */ #ifndef SSTRING_HH_ #define SSTRING_HH_ #include <stdint.h> #include <algorithm> #include <string> #include <cstring> #include <stdexcept> #include <initializer_list> #include <iostream> #include <functional> #include <cstdio> #include <experimental/string_view...
<commit_before>// Convert a non-negative integer to its english words representation. Given // input is guaranteed to be less than 231 - 1. // For example, // 123 -> "One Hundred Twenty Three" // 12345 -> "Twelve Thousand Three Hundred Forty Five" // 1234567 -> "One Million Two Hundred Thirty Four Thousand Five Hundred...
<commit_before>// Copyright (c) 2016, 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/globals.h" #if defined(HOST_OS_FUCHSIA) #include "vm/os.h" #include <errn...
<commit_before>/** * * \file example8.cc * \remark This file is part of VITA. * \details Building blocks run test. * * Copyright (C) 2011-2013 EOS di Manlio Morini. * * 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 thi...
<commit_before>// Copyright 2015 Google Inc. All rights reserved // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
<commit_before>// Copyright 2010 The RE2 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 "re2/set.h" #include <stddef.h> #include <algorithm> #include <memory> #include "util/util.h" #include "util/logging.h" #include "re...
<commit_before>/* silence.cpp - LV2 Toolkit API Demonstration Plugin Copyright (C) 2012 Michael Fisher <mfisher31@gmail.com> 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; ei...
<commit_before>#include <Patcher/Maj.hpp> #include <QObject> #include <QUrl> #include <QFile> #include <QNetworkRequest> #include <QNetworkAccessManager> #include <QNetworkReply> #include <QEventLoop> namespace patcher { Maj::Maj(Config& conf,int action,std::string filename,std::string url): action(action),...
<commit_before> #include "PitWizard.h" #include <iostream> #include <fstream> #include <chrono> #include <Physfs/physfs.h> #include "s3e.h" //#include <Photon-cpp/inc/PhotonPeer.h> #include <GG/GameLayer.h> #include <GG/Graphics.h> #include <GG/Core.h> #include <GG/Input.h> #include <GG/EntitySystem.h> #include <...
<commit_before>// Vertex.hpp /* * (C) Copyright 2015 Noah Roth * * 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/licenses/l...
<commit_before>/* * daemon-tools.node *** A node.JS addon that allows creating Unix/Linux Daemons in pure Javascript. *** Copyright 2010 (c) <arthur@norgic.com> * Under MIT License. See LICENSE file. * Updated by Daniel Bartlett 2011 <dan@f-box.org> */ #include <v8.h> #include <unistd.h> #include <stdlib.h> #include <...
<commit_before>#include "./core.hpp" #include "./darwin/darwin.hpp" #include <cstdlib> darwin::pixel pencil; darwin::sync_clock dclock(30); void init(){ cov_basic::storage.add_var("darwin_loadmodule",cov_basic::native_interface([](const std::deque<cov::any>& args)->cov_basic::number{ darwin::runtime.load(args.at(...
<commit_before>#ifndef __Data_course__ #define __Data_course__ #include "data-general.hpp" #include "data-major.hpp" #include "data-department.hpp" using namespace std; class Course { protected: string ID; int number; string title; string description; char section; vector<Major> majors; Department* departmen...
<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 "sandbox/src/win_utils.h" #include <map> #include "base/logging.h" #include "base/scoped_ptr.h" #include "sandbox/src/i...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: BiasCorrector.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCopyrig...
<commit_before>/* * (c) 2015 Raghavendra Nayak, All Rights Reserved. * www.openguru.com/ */ #include <iostream> #include <string> // Window is the abstract base for all concrete Window implementations class Window { public: Window() { } virtual ~Window() { } virtual void draw() =...
<commit_before>// Copyright (c) 2020 by Apex.AI 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...
<commit_before><commit_msg>Displaying results.<commit_after><|endoftext|>
<commit_before>#include "stdafx.h" #include <graphics/dynamictexture.h> #include "fogrenderer.h" #include <temple/dll.h> #include <common.h> using namespace gfx; #pragma pack(push, 1) struct FogOfWarVertex { XMFLOAT3 pos; XMFLOAT2 uv; }; #pragma pack(pop) FogOfWarRenderer::FogOfWarRenderer(MdfMaterialFactory& md...
<commit_before>// // Name: SceneGraphDlg.cpp // // Copyright (c) 2001-2004 Virtual Terrain Project // Free for all uses, see license.txt for details. // #ifdef __GNUG__ #pragma implementation "SceneGraphDlg.cpp" #endif // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifndef...
<commit_before>/* MAX1464 library for Arduino Copyright (C) 2016 Giacomo Mazzamuto <gmazzamuto@gmail.com> 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 version 2.1 of the ...
<commit_before>#include "Ubidots.h" /** * Constructor. */ Ubidots::Ubidots(char* token, char* dsName) { _token = token; currentValue = 0; val = (Value *)malloc(MAX_VALUES*sizeof(Value)); _dsName = dsName; } /** * This function is to get value from the Ubidots API * @arg id the id where you will get...
<commit_before>// FILE: dataperf.cpp // // DESCRIPTION: // // Compare relative performance of data types in SystemC // by creating long loops and performing arithmetic. // // LICENSE: // // Copyright 2014 David C Black // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use th...
<commit_before>/* * Copyright 2014 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 by applicable l...
<commit_before>/* ___ _ ___ __ _ ___ _ / _ \_ __ ___ ___ ___ ___ ___ __ _ _ __ ___ ___ _ __ | |_ ___ / _ \_ __ __ _ / _(_) ___ ___ / _ \ /_\ / /_)/ '__/ _ \ / __/ _ \/ __/ __|/ _` | '_ ` _ \ /...
<commit_before>// // Created by Per Lange Laursen on 08/03/16. // #include "Pathfinding.h" void Pathfinding::addState(int x1, int y1, std::string roadName, int x2, int y2) { Heureka::Point point1(x1, y1); Heureka::State temp1; temp1.point = point1; temp1.distanceFromStart = std::numeric_limits<double>...
<commit_before>//===- CodeEmitterGen.cpp - Code Emitter Generator ------------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<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>#pragma once #include "diff_patch_common.hpp" #include "../base/assert.hpp" #include "../base/base.hpp" #include "../std/algorithm.hpp" #include "../std/unordered_map.hpp" #include "../std/vector.hpp" namespace diff { template <class PatchWriterT, typename SizeT = uint64_t> class PatchCoder { public: ...
<commit_before>/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ #define NONADAPTIVE #undef ADAPTIVE #define _WAVELETTL_USE_TBASIS 1 #define _WAVELETTL_USE_TFRAME 1 #define _DIM 2 #in...
<commit_before>#include "ManualControl.h" #include <chrono> #include <thread> ManualControl::ManualControl(ICommunicationModule *pComModule) :ConfigurableModule("ManualControl"), ThreadedClass("ManualControl") { speed = { 0, 0 }; rotation = 0; m_pComModule = pComModule; AddSetting("Turn Left", []{return "r"; }, ...
<commit_before>/*========================================================================= Library: CTK Copyright (c) Kitware 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 ...
<commit_before>#include "objLoader.hpp" #include <iostream> #include <fstream> #include <sstream> #include <algorithm> #include <numeric> #include <map> #include <set> using namespace std; using glm::vec3; // Function to read input data values template <typename T> bool readvals(stringstream &s, const int numvals, T...
<commit_before>#include "QueryParams.h" #include <boost/filesystem/fstream.hpp> #include "Header.h" using namespace HTTP; QueryParams::QueryParams() : FMParseState(STATE_HEADERSTART), BoundaryParseCounter(2), CurrFileS(nullptr) { } QueryParams::QueryParams(const FileUploadParams &UploadParams) : FMParseState(STAT...
<commit_before>/*! @file @author Albert Semenov @date 04/2009 @module */ /* This file is part of MyGUI. MyGUI 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 L...
<commit_before>/* openDCM, dimensional constraint manager Copyright (C) 2012 Stefan Troeger <stefantroeger@gmx.net> 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...
<commit_before>// Copyright (c) 2020 The Orbit 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 "Track.h" #include "Capture.h" #include "CoreMath.h" #include "GlCanvas.h" #include "TimeGraphLayout.h" #include "absl/strings/s...
<commit_before>// Copyright (c) The University of Cincinnati. // All rights reserved. // UC MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF // THE SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED // TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A // PARTICULAR PURPOSE, OR NO...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/Attic/CTabWidget.cpp,v $ // $Revision: 1.16 $ // $Name: $ // $Author: shoops $ // $Date: 2008/06/03 13:58:56 $ // End CVS Header // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual // Properties,...
<commit_before>#include "RooFitCore/RooFit.hh" #include "Rtypes.h" #include "Rtypes.h" #include "Riostream.h" // -- CLASS DESCRIPTION [AUX] -- // Print banner message when RooFit library is loaded const char* VTAG="2.06" ; Int_t doBanner() { cout << endl << "\033[1mRooFit v" << VTAG << " -- Developed by Wouter ...
<commit_before>/** Copyright (c) 2013, Philip Deegan. 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 conditions...
<commit_before>/* * File: PIDController.cpp * Author: User * * Created on April 22, 2014, 6:28 PM */ #include "PIDController.h" using namespace boost::chrono; PIDController::PIDController(double kp, double ki, double kd) { this->setGains(kp, ki, kd); this->setConstraints(-1, -1); this->init(); }...
<commit_before>/*************************************************************************/ /* random_pcg.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: auditsh.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: vg $ $Date: 2007-02-27 13:19:56 $ * * The Contents of this file are made a...
<commit_before>// Time: O(n) // Space: O(1) /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this->val = val; * this->left = this->right = NULL; * } * } */ // Morris Traversal. class Solution { /** ...
<commit_before>/************************************************************************* * * $RCSfile: hdrcont.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2004-02-03 12:38:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>#include "kclinput.h" #include "kclinputevent.h" #include "kclthread.h" #include <KDebug> #include <QApplication> #include <QFile> #include <QMessageBox> #include <QMouseEvent> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #define BITS_PER_LONG (sizeof(long) * 8) #define NBITS(x) ((...
<commit_before>/************************************************************************* * * $RCSfile: olkact.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2003-03-26 18:06:47 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#include "application.h" #include <QtQml> #include <QScreen> #include <QKeyEvent> #include <QQuickView> #include <QStandardPaths> #include <QDebug> #include <QDir> #include <QFontDatabase> #include <QFile> #include <QWeakPointer> #include "imageprovider.h" #include "quick/enums.h" #include "quick/mode...
<commit_before>#include <Eigen/Dense> #include <iostream> // must go before other things because R defines a "length" macro #include <nimble/RcppUtils.h> #include "nimble/RcppNimbleUtils.h" //#include <nimble/ModelClassUtils.h> //#include <nimble/accessorClasses.h> #include <nimble/nimbleGraph.h> #include <nimble/Eigen...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbmetadata.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2006-07-10 14:20:08 $ * * The Contents of this file are ma...
<commit_before>/* * File: Sphere.cpp * Author: Benedikt Vogler * * Created on 4. Juli 2014, 19:25 */ #include "Sphere.hpp" std::pair<bool, Ray> Sphere::intersect(Ray const& ray) const { glm::vec3 l = ray.origin - center; float a = glm::dot(ray.direction, ray.direction); float b = 2.0f*(glm::dot(l...
<commit_before>#include "types.h" #include "kernel.hh" #include "spinlock.h" #include "amd64.h" #include "cpu.hh" #include "kalloc.hh" #include "wq.hh" static wq *wq_; static wq *wqcrit_; void* xallocwork(unsigned long nbytes) { return kmalloc(nbytes, "xallocwork"); } void xfreework(void* ptr, unsigned long nbyte...
<commit_before>/* * ==================================================================== * Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved. * * 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 ...
<commit_before>#if ! defined (__CINT__) || defined (__MAKECINT__) #include "AliLog.h" #include "AliAnalysisManager.h" #include "AliAnalysisDataContainer.h" #include "PWG1/TRD/AliTRDinfoGen.h" #include "PWG1/TRD/AliTRDpwg1Helper.h" #include "PWG1/TRD/info/AliTRDeventInfo.h" #endif void AddTRDinfoGen(AliAnalysisManager ...
<commit_before>/* * ==================================================================== * Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved. * * 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 ...