text
stringlengths
54
60.6k
<commit_before>/* * Tests for the next hop computation (LFDB). * * Copyright (C) 2018 Vincenzo Maffione * Author: Vincenzo Maffione <v.maffione@gmail.com> * * This file is part of rlite. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Publ...
<commit_before>/* medViewContainer.cpp --- * * Author: Julien Wintz * Copyright (C) 2008 - Julien Wintz, Inria. * Created: Mon Oct 26 21:54:57 2009 (+0100) * Version: $Id$ * Last-Updated: Tue Jun 15 16:26:36 2010 (+0200) * By: Julien Wintz * Update #: 425 */ /* Commentary: * */ /* Change ...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (a...
<commit_before>/*============================================================================= Library: CppMicroServices Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ex...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); ui->ErrorLabel->setText("No error :)"); foreach(const QHostAddress &address, QNetworkInterface::allAddresses()) { if (ad...
<commit_before>#include <iostream> #include <fftw3.h> #include <vector> #include <stdio.h> #include <math.h> typedef unsigned char sample_res; typedef unsigned char sample_res_unsigned; fftw_complex *fft_in; fftw_complex *fft_out; fftw_complex *fft_result; sample_res *fft_samples; float *window; double window_len; do...
<commit_before>/** \brief A tool to find and eliminate unused C++ includes. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2017 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under ...
<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>/**************************************************************************** ** ** 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 Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>/** \brief Tool for submitting full-text files to an ElsticSearch server. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2018 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify ...
<commit_before>/** \file mysql_diff_schemas.cc * \brief A tool for listing the differences between two schemas. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2020 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redis...
<commit_before>/* * TTBlue Audio Object Base Class * Copyright © 2008, Timothy Place * * License: This code is licensed under the terms of the GNU LGPL * http://www.gnu.org/licenses/lgpl.html */ #include "TTAudioObject.h" #include "TTEnvironment.h" // This coeff is used in GainDataspace mapping MIDI to and ...
<commit_before>/* * Copyright (C) 2010 Tommi Maekitalo * * 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 License, or (at your option) any later version....
<commit_before>#include "renderer.h" #include "pb_utils.h" #include "gateway_mod/context.h" #include "gateway_mod/pool.h" #include "WS_commons/data_structures.h" namespace navitia{ void render(webservice::RequestData& request, webservice::ResponseData& response, navitia::gateway::Context& context){ switch(context...
<commit_before>#include "Unpacker.h" #include "ofUtils.h" using namespace std; namespace ofxMessagePack { //---------- Unpacker::Unpacker() { this->hasMessageReady = false; } //---------- bool Unpacker::load(string filename) { ifstream file; file.open(ofToDataPath(filename).c_str(), ios::in | ios::bina...
<commit_before>#include "cfg.h" #include "hg.h" #include "cfg_format.h" #include "cfg_binarize.h" using namespace std; void CFG::Binarize(CFGBinarize const& b) { if (!b.Binarizing()) return; if (!b.bin_l2r) { assert(b.bin_l2r); return; } // l2r only so far: cerr << "Binarizing "<<b<<endl; //TODO....
<commit_before>#include "PhysicsWorld.h" // STD #include <array> // bullet #include <btBulletDynamicsCommon.h> #include "LinearMath/btHashMap.h" //troen #include "../constants.h" #include "../gamelogic.h" #include "../util/gldebugdrawer.h" #include "../model/abstractmodel.h" #include "../controller/bikecontroller.h" #i...
<commit_before>#ifndef MURMUR_HASH_H #define MURMUR_HASH_H #include <stdint.h> uint64_t MurmurHash64A ( const void * key, int len, unsigned int seed ) { const uint64_t m = 0xc6a4a7935bd1e995; const int r = 47; uint64_t h = seed ^ (len * m); const uint64_t * data = (const uint64_t *)key; const ui...
<commit_before>#include <plasp/sas/TranslatorASP.h> #include <plasp/utils/Formatting.h> namespace plasp { namespace sas { //////////////////////////////////////////////////////////////////////////////////////////////////// // // TranslatorASP // ///////////////////////////////////////////////////////////////////////...
<commit_before>////////////////////////////////////////////////////////////////////// // sect2.cpp -- Emit the Section2 Procedures // Date: Sat Nov 30 13:50:35 2013 /////////////////////////////////////////////////////////////////////// #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #in...
<commit_before>#ifndef FACTOR_ENCODER #define FACTOR_ENCODER #include <limits> #include <map> #include <queue> #include <string> class Token { public: int source; double cost; Token(): source(-1), cost(std::numeric_limits<double>::max()) {}; Token(int src, double cst): source(src)...
<commit_before>// Copyright (c) 2022 ASMlover. 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 o...
<commit_before>// Copyright (c) 2020 ASMlover. 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 o...
<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>#include "ISprite.h" #include "ISymbol.h" #include "IBody.h" #include <Box2D/Box2D.h> #include "common/Math.h" #include "common/color_trans.h" #include "dataset/BVFactory.h" #include "dataset/AbstractBV.h" #include "dataset/SpriteFactory.h" namespace d2d { ISprite::ISprite() : m_body(NULL) , m_obse...
<commit_before>/** * This file is part of the CernVM File System. */ #include "swissknife_lease.h" #include <algorithm> #include "swissknife_lease_curl.h" #include "swissknife_lease_json.h" #include "logging.h" #include "util/string.h" namespace { bool CheckParams(const swissknife::CommandLease::Parameters& p) ...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // // Contributors: Kirsten Weber #ifndef DUNE_GDT_BASEFUNCTIONSET_INTERFACE_HH #define D...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_EVALUATION_INTERFACE_HH #define DUNE_GDT_EVALUATION_INTERFACE_HH #incl...
<commit_before>/* * Copyright 2019 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 ...
<commit_before>/**************************************************************************** atom.hpp - support file for writing LV2 plugins in C++ 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 GN...
<commit_before>/* Copyright (c) 2019, Michael Fisher <mfisher@kushview.net> 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 SOFTWAR...
<commit_before>void loadlibs () { gSystem->Load("libPhysics"); gSystem->Load("libMinuit"); // Uncomment the following line for macosx // Waiting for a better solution gSystem->Load("libg2c_sh"); gSystem->Load("libmicrocern"); gSystem->Load("libpdf"); gSystem->Load("libpythia6"); gSystem->Load("libE...
<commit_before>void loadlibs () { gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libminicern"); gSystem->Load("$(ROOTSYS)/lib/libPhysics"); gSystem->Load("$(ROOTSYS)/lib/libEG"); gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libSTEER"); gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTGe...
<commit_before>void loadlibs () { gSystem->Load("libPhysics"); // Uncomment the following line for Darwin // Waiting for a better solution // gSystem->Load("libg2c_sh"); gSystem->Load("libmicrocern"); gSystem->Load("libpdf"); gSystem->Load("libpythia6"); gSystem->Load("libEG"); gSystem->Load("libGe...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: PropertySetMerger.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2006-06-19 18:03:54 $ * * The Contents of this file ...
<commit_before>// Copyright (c) 2021 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #include "qt/pivx/governancemodel.h" #include "budget/budgetmanager.h" #include "budget/budgetutil.h" #include "destinati...
<commit_before>#ifndef MESCALINE_AUDIO_ENGINE_H_INCLUDED #define MESCALINE_AUDIO_ENGINE_H_INCLUDED #include <Mescaline/Audio.hpp> #include <Mescaline/Audio/AudioBus.hpp> #include <Mescaline/Audio/IO/Client.hpp> #include <Mescaline/Audio/Node.hpp> #include <Mescaline/Audio/Plugin/API.h> #include <Mescaline/Audio/SynthD...
<commit_before> #include "rdb_protocol/proto_utils.hpp" std::string cJSON_print_primary(cJSON *json, const query_language::backtrace_t &backtrace) { guarantee_debug_throw_release(json, backtrace); if (json->type != cJSON_Number && json->type != cJSON_String) { throw query_language::runtime_exc_t(strpri...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of meegotouch-controlpanelapplets. ** ** If you have que...
<commit_before>/* * Copyright 2006-2008 The FLWOR Foundation. * * 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...
<commit_before>#include "settings_manager.hpp" #include <cstdlib> #include <cstring> #include <map> #include <string> #include <pugixml.hpp> #include <base/error.hpp> #include <base/macros.hpp> namespace { std::string BuildKey(const pugi::xml_node& node) { CHECK(node.type() == pugi::node_element); if(node.par...
<commit_before>#pragma once #include "event_queue/entry.hpp" #include "event_queue/event.hpp" #include "event_queue/event_time_stamp.hpp" #include "hash_utility.hpp" #include "modifier_flag_manager.hpp" #include "pointing_button_manager.hpp" namespace krbn { namespace event_queue { class queue { public: queue(const...
<commit_before>// Copyright (c) 2012 Intel Corp // Copyright (c) 2012 The Chromium Authors // // 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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DateTime.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2007-07-09 11:56:29 $ * * The Contents of this file are made ...
<commit_before>// illarionserver - server for the game Illarion // Copyright 2011 Illarion e.V. // // This file is part of illarionserver. // // illarionserver 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 Found...
<commit_before>/* Copyright 2014 Peter Goodman, all rights reserved. */ /* Copyright 2014 Peter Goodman, all rights reserved. */ #include "clients/util/instrument_memop.h" // Needs to go first. GRANARY_USING_NAMESPACE granary; // Instrument all of the instructions in a basic block. void MemOpInstrumentationTool::I...
<commit_before>/* This program will add histograms (see note) and Trees from a list of root files and write them to a target root file. The target file is newly created and must not be identical to one of the source files. Syntax: hadd targetfile source1 source2 ... or hadd -f targ...
<commit_before>// Copyright (C) 2017, 2018 Rob Caelers <rob.caelers@gmail.com> // // 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 righ...
<commit_before>/************************************************************************* * * $RCSfile: services.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: vg $ $Date: 2005-03-10 16:38:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: WTypeSelect.hxx,v $ * * $Revision: 1.12 $ * * last change: $Author: rt $ $Date: 2005-09-08 15:43:33 $ * * The Contents of this file are m...
<commit_before>#ifndef SLICE_HPP #define SLICE_HPP #include "iterator_range.hpp" #include "wrap_iter.hpp" #include <iterator> #include <assert.h> namespace iter { template <typename Container> auto slice( Container && container, typename std::iterator_traits<decltype(conta...
<commit_before><commit_msg>Fix build failure with GCC on identifier reusing.<commit_after><|endoftext|>
<commit_before>// Copyright 2006-2008 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // The common functionality when building with or without snapshots. #include "src/v8.h" #include "src/api.h" #include "src/base/p...
<commit_before>#include "../stkpl/StkPl.h" #include "../commonfunc/StkObject.h" #include "../commonfunc/StkStringParser.h" #include "../stksocket/stksocket.h" #include "StkWebAppSend.h" class StkWebAppSend::Impl { public: int SendBufSize; int RecvBufSize; int TimeoutInterval; int MyId; public: const wchar_t* S...
<commit_before>#include "LightShaderHandler.h" LightShaderHandler::LightShaderHandler() { } LightShaderHandler::~LightShaderHandler() { } int LightShaderHandler::Initialize(ID3D11Device * device, HWND * windowHandle, DirectX::XMFLOAT2 resolution) { HRESULT hResult; ID3D10Blob* vertexShaderBuffer = nullptr; ID3D1...
<commit_before>/*! * \copy * Copyright (c) 2009-2013, Cisco Systems * 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...
<commit_before>/* TMP36.h - Library for reading the temperature of a TMP36. Created by Maurice (Mausy5043) Hendrix, FEB2015 MIT license */ //#include "Arduino.h" #include "TMP36.h" TMP36::TMP36(int pin, int samples) { _pin = pin; _samples = samples; } void TMP36::begin() { // set up the pin! pinMode(_...
<commit_before>// Copyright (c) 2012 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 "xwalk/runtime/browser/android/xwalk_dev_tools_server.h" #include "base/android/jni_string.h" #include "base/basictypes.h" #i...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use t...
<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>//////////////////////////////////////////////////////////////////////////////// /// @brief random functions /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2013 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use t...
<commit_before>#include "Local.h" #include "DungeonManager.h" gameImports_s* trap; static gameExports_s exportFns; static int iLoadingScreen = 0; static Image* ptLoadScreenImage = NULL; void Game_Init() { trap->printf("--- New Game ---\n"); ptLoadScreenImage = trap->RegisterImage("ui/images/loading"); iLoadingScr...
<commit_before>//===-- IsInf.cpp ---------------------------------------------------------===// // // 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>//===-- Atomic.cpp - Atomic Operations --------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkTypeface.h" namespace skiagm { class FontScalerGM : public GM { public: FontScalerGM() { this->setBGColor(0xFFFFFFFF); ...
<commit_before>/* * (C) Copyright 2015 ETH Zurich Systems Group (http://www.systems.ethz.ch/) and others. * * 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/...
<commit_before>/*************************************************************************** * The Kernel-Machine Library * * Copyright (C) 2004, 2005 by Rutger W. ter Borg * * ...
<commit_before>#ifndef SILICIUM_HTML_HPP #define SILICIUM_HTML_HPP #include <silicium/source/source.hpp> #include <silicium/sink/sink.hpp> namespace Si { namespace html { template <class CharSink, class Char> void write_char(CharSink &&sink, Char c) { using Si::append; switch (c) { case '&' : appe...
<commit_before>#pragma once //=====================================================================// /*! @file @brief メニュー・クラス @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2017, 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/L...
<commit_before>#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> #include "ShowImageModule.hpp" #include "../framework/types/Matrix.hpp" using namespace std; using namespace uipf; /* */ void ShowImageModule::run( DataManager& data) const { using namespace cv; const Matrix...
<commit_before>#include "testing/testing.hpp" #include "coding/uri.hpp" #include "base/macros.hpp" #include "std/bind.hpp" #include "std/queue.hpp" #include "std/utility.hpp" using url_scheme::Uri; namespace { class TestUri { public: TestUri(string const & uri) { m_uri = uri; } TestUri & Scheme(string const &sch...
<commit_before>// The MIT License (MIT) // Copyright (c) 2016, Microsoft // 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 // t...
<commit_before>#include "config.h" #include <gtest/gtest.h> #include <ros_type_introspection/deserializer.hpp> #include <sensor_msgs/JointState.h> #include <sensor_msgs/NavSatStatus.h> #include <sensor_msgs/Imu.h> #include <std_msgs/Int16MultiArray.h> using namespace ros::message_traits; using namespace RosIntrospect...
<commit_before>#line 2 "togo/impl/file_io/posix.ipp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. */ #include <togo/config.hpp> #include <togo/types.hpp> #include <togo/assert.hpp> #include <togo/log.hpp> #include <togo/file_io.hpp> #include <cerrno> #include <cstdio> #include <cstring...
<commit_before>#include "Tex3D.hpp" namespace Ra { namespace Core { template<typename T> Tex3D<T>::Tex3D( const Vector3i& resolution, const Vector3& start, const Vector3& end ) : Grid3<T> ( resolution ), m_aabb( start, end ...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2014 Francois Beaune, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any...
<commit_before>/* * Copyright (C) 2004-2011 See the AUTHORS file for details. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. */ #define REQUIRESSL #include "FileUtils.h" #i...
<commit_before>/************************************************************************************** * Project: MapWindow Open Source (MapWinGis ActiveX control) ************************************************************************************** * The contents of this file are subject to the Mozilla Public L...
<commit_before>/* Copyright 2011-2017 Frederic Langlet Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. you may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
<commit_before><commit_msg>Added panning via mouse movement<commit_after><|endoftext|>
<commit_before>//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include "InterlockingGenerator.h" #include <algorithm> // max #include "Application.h" #include "Slice.h" #include "slicer.h" #include "utils/polygonUtils.h" #include "utils/VoxelUtils.h" namespace ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 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>// See Fossen 2011, chapter 12.3.2 #include "lagrange_allocator.h" #include <iostream> template<typename Derived> inline bool isFucked(const Eigen::MatrixBase<Derived>& x) { return !((x.array() == x.array())).all() && !( (x - x).array() == (x - x).array()).all(); } void printMatrix6(Eigen::MatrixXd...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=================================...
<commit_before>/// \file /// \ingroup tutorial_hist /// \notebook /// Example of candle plot with 2-D histograms. /// /// \macro_image /// \macro_code /// /// \author Georg Troska void candleplot() { gStyle->SetTimeOffset(0); auto rng = new TRandom(); auto dateBegin = new TDatime(2010,1,1,0,0,0); auto dat...
<commit_before>// Copyright 2013 The Flutter 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 "flutter/shell/platform/android/android_image_generator.h" #include <android/bitmap.h> #include <android/hardware_buffer.h> #incl...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: desktopbecdef.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: ihi $ $Date: 2006-08-04 12:28:17 $ * * The Contents of this file are...
<commit_before><commit_msg>WW8DocumentImpl::utext: Call delegates utext instead of text<commit_after><|endoftext|>
<commit_before>#include "astutil.h" #include "bb.h" #include "expr.h" #include "passes.h" #include "stmt.h" #include "symbol.h" #include "symscope.h" static Map<Type*,FnSymbol*> freeMap; // map of types to _free functions static Map<Type*,FnSymbol*> touchMap; // map of types to _touch functions // // insertGCTemps i...
<commit_before>#include <mantella_bits/helper/geometry.hpp> // C++ Standard Library #include <stdexcept> #include <cmath> namespace mant { arma::Mat<double>::fixed<2, 2> get2DRotationMatrix( const double& angle) noexcept { double sinAngle = std::sin(angle); double cosAngle = std::cos(angle); retu...
<commit_before>#include <QCoreApplication> #include <QCommandLineParser> #include <QCommandLineOption> #include <QStringList> #include <QThread> #include "PackageGenerator.h" bool copyRecursive(const QDir& source,const QDir& target){ auto list=source.entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndD...
<commit_before>// illarionserver - server for the game Illarion // Copyright 2011 Illarion e.V. // // This file is part of illarionserver. // // illarionserver 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 Softwar...
<commit_before><commit_msg>coverity#1307697 Dereference null return value<commit_after><|endoftext|>
<commit_before>/* Copyright 2021 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>/* * Copyright (c) 2004 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 copyri...
<commit_before>// __BEGIN_LICENSE__ // Copyright (c) 2009-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use ...
<commit_before>// Dear ImGui: standalone example application for SDL2 + OpenGL // (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. // ...
<commit_before>/* * This program is just for personal experiments here on AVR features and C++ stuff * to check compilation and link of FastArduino port and pin API. * It does not do anything interesting as far as hardware is concerned. */ #include <fastarduino/analog_input.h> #include <fastarduino/time.h> #includ...
<commit_before>// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "browser/net_log.h" #include "browser/browser_context.h" #include "base/command_line.h" #include "base/files/file_util.h" #include "base/json/json_writer.h" #i...