text
stringlengths
54
60.6k
<commit_before>/*********************************************************************** load_jpeg.cpp - Example showing how to insert BLOB data into the database from a file. Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and (c) 2004-2009 by Educational Technology Resources, Inc. Others may al...
<commit_before>/************************************************************************* * * $RCSfile: doctemplates.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: mav $ $Date: 2002-07-10 09:31:28 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>/*! \file SpecularTransmission.cpp * \author Jared Hoberock * \brief Implementation of SpecularTransmission class. */ #include "SpecularTransmission.h" #include "../geometry/Mappings.h" SpecularTransmission ::SpecularTransmission(const Spectrum &t, const float etai, ...
<commit_before>#include "ast.h" #include <iostream> #include <sstream> #include <map> #include <functional> #include <stdexcept> #include <cassert> #include "utils.h" using namespace std; extern VarStack nowStack; TValue ast::Identifier::run() { std::cout << "Creating identifier: " << name << std::endl; value =...
<commit_before>/************************************************************************* * * $RCSfile: viewstrategy.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: vg $ $Date: 2003-04-24 14:01:26 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>// OpenQASM example, executes an OpenQASM circuit read from the input stream // (repeatedly if the number of repetitions is passed as an argument) // Source: ./examples/qasm/qasm.cpp #include <iostream> #include "qpp.h" int main(int argc, char** argv) { using namespace qpp; QCircuit qc; //...
<commit_before>/************************************************************************* * * $RCSfile: pres.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: ka $ $Date: 2001-04-04 16:35:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved */ #include "../StroikaPreComp.h" #include <cstdio> #include "../IO/FileAccessException.h" #include "Throw.h" #include "TimeOutException.h" #include "ErrNoException.h" using namespace Stroika; using namespace Stroika::Founda...
<commit_before>/* kopeteaccountmanager.cpp - Kopete Account Manager Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org> Copyright (c) 2003-2004 by Olivier Goffart <ogoffart@kde.org> Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org> *********************...
<commit_before>/***************************************************************************** * Controller_widget.cpp : Controller Widget for the controllers **************************************************************************** * Copyright (C) 2006-2008 the VideoLAN team * $Id$ * * Authors: Jean-Baptiste K...
<commit_before>/* * Copyright 2011 Esrille 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_msg>introduced Date::IsValidDate() and Date::Normalize()<commit_after><|endoftext|>
<commit_before><commit_msg>Remove some unused macros<commit_after><|endoftext|>
<commit_before>#include <cstring> #include <Bull/Core/IO/InStringStream.hpp> namespace Bull { InStringStream::InStringStream(const String& string) : m_cursor(0), m_string(string) { /// Nothing } ByteArray InStringStream::read(std::size_t length) { ByteArray bytes(l...
<commit_before>#pragma once #include <array> #include <algorithm> #include <initializer_list> #include <cassert> #include "But/Mpl/SizeTypeFor.hpp" namespace But { namespace Container { /** @brief simple std::array<> replacement, that keeps number of elements. this way * container can appear to be resizing, ...
<commit_before>/* * Copyright (C) 2011, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #include <object/...
<commit_before>#include "ssaorenderpass.hpp" #include "../../engine.hpp" #include <random> #include <world/component/transformcomponent.hpp> SSAORenderSystem::SSAORenderSystem(int width, int height) { shaderProgram .attach("assets/shaders/ssao.vert", ShaderType::vertex) .attach("assets/shaders/ssao.frag", ShaderT...
<commit_before>/** * @file x_tre_split.hpp * @author Andrew Wells * * Defintion of the XTreeSplit class, a class that splits the nodes of an X * tree, starting at a leaf node and moving upwards if necessary. * * This is known to have a bug: see #368. */ #ifndef __MLPACK_CORE_TREE_RECTANGLE_TREE_X_TREE_SPLIT_HPP...
<commit_before>/* color_master.cpp This file is part of: GAME PENCIL ENGINE https://create.pawbyte.com Copyright (c) 2014-2018 Nathan Hurde, Chase Lee. Copyright (c) 2014-2018 PawByte. Copyright (c) 2014-2018 Game Pencil Engine contributors ( Contributors Page ) Permission is hereby granted, free of charge,...
<commit_before>// This file is part of the "x0" project, http://github.com/christianparpart/x0> // (c) 2009-2017 Christian Parpart <christian@parpart.family> // // Licensed under the MIT License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of // the Licens...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: uidl_tok.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-07 19:07:50 $ * * The Contents of this file are made ...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 3 * * (c) 2006-2008 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>#ifndef PLUS_ONE_TO_NUMBER_AS_ARRAY_HPP #define PLUS_ONE_TO_NUMBER_AS_ARRAY_HPP // https://leetcode.com/problems/plus-one/description/ // Given a non-negative integer represented as a non-empty array of digits, // plus one to the integer. // You may assume the integer do not contain any leading zero, e...
<commit_before>/*========================================================================= File: vtkReplayImageVideoSource.cxx Author: Chris Wedlake <cwedlake@robarts.ca> Language: C++ Description: ========================================================================= Copyright (c) Chris Wedlake, cwe...
<commit_before><commit_msg>const_cast: convert some C-style casts and remove some redundant ones<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
<commit_before>/// /// @file /// @copyright Copyright (C) 2017, Jonathan Bryan Schmalhofer /// /// @brief Node to calculate the trajectory to be followed. /// #include <string> #include <ros/ros.h> #include <js_messages/Trajectory3D.h> #include "js_trajectory_planning_node/rtrrtstar_class.h" int main(int argc, char **...
<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 tools applications of the Qt Toolkit. ** ** $QT_BE...
<commit_before>/* Resembla: Word-based Japanese similar sentence search library https://github.com/tuem/resembla Copyright 2017 Takashi Uemura 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 h...
<commit_before>#include <iostream> #include <cmath> #include "../../include/boids2D/MovableBoid.hpp" #include "../../include/Utils.hpp" // TODO : steering + solver. The force send should be only normalize in the end MovableBoid::MovableBoid(glm::vec3 location, BoidType t) : MovableBoid(location, glm::vec3(0,0,0),...
<commit_before><commit_msg>fix -Wunused-variable<commit_after><|endoftext|>
<commit_before>/* * Copyright 2008-2012 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>/* * * Copyright (C) 2004 Mekensleep * * Mekensleep * 24 rue vieille du temple * 75004 Paris * licensing@mekensleep.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...
<commit_before>#include "qt/editor_dialog.hpp" #include "search/result.hpp" #include "indexer/classificator.hpp" #include "indexer/feature.hpp" #include "indexer/osm_editor.hpp" #include "base/collection_cast.hpp" #include "std/set.hpp" #include "std/vector.hpp" #include <QtWidgets/QDialogButtonBox> #include <QtWi...
<commit_before>#ifndef STAN_MATH_PRIM_ARR_FUN_APPEND_ARRAY_HPP #define STAN_MATH_PRIM_ARR_FUN_APPEND_ARRAY_HPP #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/prim/scal/meta/is_vector_like.hpp> #include <stan/math/prim/scal/meta/return_type.hpp> #include <boost/math/tools/promotion.hpp> #include <boost...
<commit_before>#include "SparseSideInfo.h" #include "linop.h" #include <SmurffCpp/Utils/MatrixUtils.h> #include <vector> namespace smurff { SparseSideInfo::SparseSideInfo(const DataConfig &mc) { F = mc.getSparseMatrixData(); Ft = F.transpose(); } SparseSideInfo::~SparseSideInfo() {} int SparseSideInfo::c...
<commit_before>/* * * Copyright (C) 2004 Mekensleep * * Mekensleep * 24 rue vieille du temple * 75004 Paris * licensing@mekensleep.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...
<commit_before>#include "ug_sampling_bias.h" #include <iostream> #include <boost/foreach.hpp> #include "moses/Util.h" #ifndef NO_MOSES #include "moses/Timer.h" #endif // #ifdef HAVE_CURLPP // #include <curlpp/Options.hpp> // #include <curlpp/cURLpp.hpp> // #include <curlpp/Easy.hpp> // #endif // #ifdef WITH_MMT_BIAS_C...
<commit_before>#include <build-bot/bot.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <chrono> #include <thread> #include <boost/asio.hpp> #include <boost/filesystem.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/ini_parser.hpp> namespace fs = boost::filesys...
<commit_before>/* * #%L * %% * Copyright (C) 2011 - 2014 BMW Car IT 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 * ...
<commit_before>//===-- X86TargetMachine.cpp - Define TargetMachine for the X86 -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before><commit_msg>Don't add the sender's address to the list of recipients even if it's listed in the Mail-Followup-To header.<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: geometrycontrolmodel.hxx,v $ * * $Revision: 1.17 $ * * last change: $Author: hr $ $Date: 2006-06-19 22:56:13 $ * * The Contents of this f...
<commit_before>#include "Rendering/CascadedShadowMap.hpp" #include <cmath> #include <algorithm> #include "Math/Vec2.hpp" #include "Math/Math.hpp" #include "Math/Frustum.hpp" #include "Math/BoundingBox.hpp" namespace CascadedShadowMap { int GetShadowCascadeResolution() { return 1024; } unsigned int GetCascadeCount(...
<commit_before>// Copyright 2018 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
<commit_before>// -*- c-basic-offset: 8; indent-tabs: nil -*- // // See LICENSE for details. // #include <smoke.h> #include <smoke/qtcore_smoke.h> #include <Qt/qstring.h> #include <Qt/qstringlist.h> #include <Qt/qpointer.h> #include <Qt/qmetaobject.h> #include <QtCore/qobject.h> #include <QtGui/qapplication.h> #include...
<commit_before>#include "FCStdAfx.h" #include "HAL.h" #include "RC_Comms.h" #include "GS_Comms.h" #include "utils/Clock.h" #include <boost/asio.hpp> #include <boost/thread.hpp> #include <sys/time.h> #include <sys/resource.h> //#include <boost/program_options.hpp> #include <thread> #include <iostream> ...
<commit_before>/* This file is part of the Palabos library. * * Copyright (C) 2011-2015 FlowKit Sarl * Route d'Oron 2 * 1010 Lausanne, Switzerland * E-mail contact: contact@flowkit.com * * The most recent release of Palabos can be downloaded at * <http://www.palabos.org/> * * The library Palabos is free soft...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 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>/** * raftmath.tcc - * @author: Jonathan Beard * @version: Tue Apr 28 13:48:37 2015 * * Copyright 2015 Jonathan Beard * * 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 a...
<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 "webkit/blob/blob_data.h" #include "base/logging.h" #include "base/time.h" #include "third_party/WebKit/WebKit/chromium/publi...
<commit_before>/* Copyright (c) 2015, Project OSRM, Dennis Luxen, others 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>//===--- swift-reflection-dump.cpp - Reflection testing application -------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>//===- InlineCoast.cpp - Cost analysis for inliner ------------------------===// // // 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 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrBatchFontCache.h" #include "GrFontAtlasSizes.h" #include "GrGpu.h" #include "GrRectanizer.h" #include "GrSurfacePriv.h" #include "SkString.h" #incl...
<commit_before>#include "colorpickerscene.hpp" #include <QApplication> #include <QClipboard> #include <QGraphicsEllipseItem> #include <QGraphicsPixmapItem> #include <QGraphicsTextItem> #include <QTimer> ColorPickerScene::ColorPickerScene(QPixmap *pixmap, QWidget *parentWidget) : QGraphicsScene(), QGraphicsView(this, p...
<commit_before>#include "Fullback.hpp" #include <Constants.hpp> #include <vector> #include <boost/foreach.hpp> #include <boost/make_shared.hpp> #include "../../Window.hpp" #include <Geometry2d/util.h> using namespace std; Gameplay::Behaviors::Fullback::Fullback(GameplayModule *gameplay, Side side): Behavior(game...
<commit_before>#ifndef ALEPH_TOPOLOGY_IO_EDGE_LISTS_HH__ #define ALEPH_TOPOLOGY_IO_EDGE_LISTS_HH__ #include <algorithm> #include <fstream> #include <set> #include <string> #include <vector> #include "utilities/String.hh" namespace aleph { namespace io { class EdgeListReader { public: bool readWeights() const no...
<commit_before>/* Rapicorn * Copyright (C) 2008 Tim Janik * * 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 versio...
<commit_before>/** * @file * @copyright defined in eos/LICENSE */ #pragma once #include <eosio/chain/transaction.hpp> #include <eosio/chain/types.hpp> #include <boost/asio/io_context.hpp> #include <future> namespace boost { namespace asio { class thread_pool; }} namespace eosio { namespace chain { class tran...
<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 "Lic...
<commit_before>#include <plasp/pddl/TranslatorASP.h> #include <plasp/utils/TranslatorException.h> namespace plasp { namespace pddl { //////////////////////////////////////////////////////////////////////////////////////////////////// // // TranslatorASP // ////////////////////////////////////////////////////////////...
<commit_before>///////////////////////////////////////////////////////////////////////// // $Id$ ///////////////////////////////////////////////////////////////////////// // // Copyright 2003 by David N. Welton <davidw@dedasys.com>. // // This library is free software; you can redistribute it and/or // modify it und...
<commit_before>/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/stochastic-testsuite/copasi_wrapper.cpp,v $ $Revision: 1.3 $ $Name: $ $Author: gauges $ $Date: 2006/04/24 14:18:25 $ End CVS Header */ #define COPASI_MAIN #include <iostream> #include <stdlib.h> #include "copasi...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 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>/* Copyright (c) 2008-2019 the MRtrix3 contributors. * * 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/. * * Covered Software is provided under this L...
<commit_before>/**************************************************************************** ** ** Copyright (C) Qxt Foundation. Some rights reserved. ** ** This file is part of the QxtGui module of the Qt eXTension library ** ** This library is free software; you can redistribute it and/or modify it ** under the terms...
<commit_before>#pragma sw require header org.sw.demo.google.protobuf.protoc #pragma sw require header org.sw.demo.qtproject.qt.base.tools.moc-5 #define QT_VERSION "-5" /*void configure(Build &s) { if (s.isConfigSelected("mt")) { auto ss = s.createSettings(); ss.Native.LibrariesType = LibraryTy...
<commit_before>/* * Copyright (C) 2008-2013 Communi authors * * 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 p...
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2010-2013 The PECOS Development Team // // This library is free softw...
<commit_before>/* * Copyright (c) 2012 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#pragma once // prints matrix to stdout in row-major order template <typename T, size_t N, size_t M> void print(const tmat<T, N, M>& m); <commit_msg>why would I want this<commit_after>#pragma once // prints matrix to stdout in column-major order template <typename T, size_t N, size_t M> void print(cons...
<commit_before>/* * Copyright (C) 2014 Luke San Antonio * All rights reserved. */ #pragma once #include <utility> // for std::move namespace survive { template <class T> struct Maybe_Owned { template <class... Args> Maybe_Owned(Args&&... args) noexcept; Maybe_Owned(T&& t) noexcept; Maybe_Owned...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>// Copyright 2013 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 "skia/ext/lazy_pixel_ref_utils.h" #include "skia/ext/lazy_pixel_ref.h" #include "third_party/skia/include/core/SkBitmapDevice.h" ...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 * * (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>/* * Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia 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 (FSF),...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: genericunodialog.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: kz $ $Date: 2008-03-05 18:23:00 $ * * The Contents of this file ...
<commit_before><commit_msg>More compat stuff<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SwXMLBlockExport.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: hr $ $Date: 2006-08-14 16:31:24 $ * * The Contents of this file ...
<commit_before>// Copyright 2015 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 "sky/tools/sky_snapshot/loader.h" #include <memory> #include "base/command_line.h" #include "base/files/file_path.h" #include "b...
<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>// 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/linux/public/flutter_linux/fl_method_response.h" #include <gmodule.h> G_DEFINE_QUARK(fl_method_response_e...
<commit_before><commit_msg>stats: fix compute_pcr_time macro to take base & ext<commit_after><|endoftext|>
<commit_before> #include "example_edison_gpio.hpp" #include <cossb.hpp> USE_COMPONENT_INTERFACE(example_edison_gpio) example_edison_gpio::example_edison_gpio() :cossb::interface::icomponent(COMPONENT(example_edison_gpio)) { } example_edison_gpio::~example_edison_gpio() { } bool example_edison_gpio::setup() { re...
<commit_before>#ifndef HASH_ID_HPP_ #define HASH_ID_HPP_ #include <chrono> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <random> namespace sm { struct Is64BitArch { static constexpr bool value = sizeof(void*) == 8; }; template<bool Is64BitArch> struct HashPrimeAndBase { ...
<commit_before>/* * Copyright (c) 2014 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>/** MiracleGrue - Model Generator for toolpathing. <http://www.grue.makerbot.com> Copyright (C) 2011 Far McKon <Far@makerbot.com>, Hugo Boyer (hugo@makerbot.com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License a...
<commit_before>//Copyright (c) 2021 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include "LightningTree.h" #include "../utils/linearAlg2D.h" using namespace cura; coord_t LightningTreeNode::getWeightedDistance(const Point& unsupported_loc, const coord_t& supporting_radius) const...
<commit_before>//Copyright (c) 2021 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include "LightningTree.h" #include "../utils/linearAlg2D.h" using namespace cura; coord_t LightningTreeNode::getWeightedDistance(const Point& unsupported_loc, const coord_t& supporting_radius) const...
<commit_before>// Copyright (c) 2019 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/pivx/coldstakingmodel.h" #include "uint256.h" #include "bitcoinunits.h" #include "guiutil.h" #include <iostrea...
<commit_before> #include "../interface/Color.h" Color::Color() { // Default constructor } Color::Color(int a1, int a2, int a3, int a4) : id_(a1) { r_ = a2/255.; g_ = a3/255.; b_ = a4/255.; } //Static function to initialize all custom colors into vector of Colors std::vector<Color> Color::init() { ...
<commit_before>#include "MWViewController.h" #include "MWGameScene.h" #include "MWGameView.h" #include "MWViewSegue.h" #if MW_ENABLE_SCRIPT_BINDING #include "../lua/MWLuaUtils.h" #endif #include <new> using namespace cocos2d; using namespace std; MW_FRAMEWORK_BEGIN MWViewController *MWViewController::create(MWViewSe...
<commit_before>#pragma once #include "DxLib.h" #include <string> #include "IState.hpp" using namespace std; class Core { public: static Core &GetInstance(void) { static Core instance; return instance; } private: Core(void) { } private: vector<IState*> StateList; string NowStateName; public: // 場面を追加します void ...
<commit_before>/* c2ffi Copyright (C) 2013 Ryan Pavlik This file is part of c2ffi. c2ffi 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 ...
<commit_before>/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. 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>// // This script converts the MNIST dataset to the leveldb format used // by caffe to train siamese network. // Usage: // convert_mnist_data input_image_file input_label_file output_db_file // The MNIST dataset could be downloaded at // http://yann.lecun.com/exdb/mnist/ #include <fstream> // NOLI...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qbs. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses m...