text
stringlengths
54
60.6k
<commit_before>/** This is a tool shipped by 'Aleph - A Library for Exploring Persistent Homology'. Its purpose is to calculate zero-dimensional persistence diagrams of spectra. This is supposed to yield a simple feature descriptor which in turn might be used in machine learning pipepline. Input: filenam...
<commit_before>#include "binary_io.hpp" BasicBinaryStream& operator<<(BasicBinaryStream& stream, const std::string& s) { stream << s.length(); stream.put(s.c_str(), s.length() * sizeof(char)); return stream; } BasicBinaryStream& operator>>(BasicBinaryStream& stream, std::string& s) { size_t len; stream >> ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the demonstration applications of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL...
<commit_before> #include "journal/player.hpp" #include <list> #include <string> #include <vector> #include "benchmark/benchmark.h" #include "glog/logging.h" #include "gtest/gtest.h" #include "journal/method.hpp" #include "journal/profiles.hpp" #include "journal/recorder.hpp" #include "ksp_plugin/interface.hpp" #incl...
<commit_before>#include <karl/storage.hpp> #include <karl/util/guard.hpp> namespace supermarx { storage::storage(std::string const& embedded_dir) { const char *server_options[] = \ {"test", "--innodb=OFF", "-h", embedded_dir.c_str(), NULL}; int num_options = (sizeof(server_options)/sizeof(char*)) - 1; mysql_libr...
<commit_before>#include <clang-c/Index.h> #include <cstdio> #include <array> #include <iostream> #include <vector> namespace { const unsigned int indent_spaces = 4; const std::string indentation(indent_spaces, ' '); } CXCursor tu_cursor; struct client_data { CXTranslationUnit tu; std::vector<CXCu...
<commit_before>#include <stan/math/prim.hpp> #include <gtest/gtest.h> #include <limits> #include <string> TEST(ErrorHandlingMat, CheckLess_Matrix) { using stan::math::check_less; const char* function = "check_less"; double x; double high; Eigen::Matrix<double, Eigen::Dynamic, 1> x_vec; Eigen::Matrix<double...
<commit_before> #include "journal/player.hpp" #include <list> #include <string> #include <thread> #include <vector> #include "benchmark/benchmark.h" #include "glog/logging.h" #include "gtest/gtest.h" #include "journal/method.hpp" #include "journal/profiles.hpp" #include "journal/recorder.hpp" #include "ksp_plugin/in...
<commit_before>// this node is the dispersion simulation of two wheel robots // ros communication: // subscribe to topic "/swarm_sim/two_wheel_robot" // service client to service "/gazebo/set_joint_properties" #include <ros/ros.h> #include <swarm_robot_msg/two_wheel_robot.h> #include <gazebo_msgs/SetJointProp...
<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 "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" #include "base/string_util.h" #include "build/build_config.h...
<commit_before>#include <sirikata/core/util/Standard.hh> #include <sirikata/core/transfer/TransferMediator.hpp> #include <sirikata/core/transfer/MaxPriorityAggregation.hpp> #include <stdio.h> using namespace std; AUTO_SINGLETON_INSTANCE(Sirikata::Transfer::TransferMediator); using namespace Sirikata; using namespa...
<commit_before> #include "journal/player.hpp" #include <list> #include <string> #include <vector> #include "benchmark/benchmark.h" #include "glog/logging.h" #include "gtest/gtest.h" #include "journal/method.hpp" #include "journal/profiles.hpp" #include "journal/recorder.hpp" #include "ksp_plugin/interface.hpp" #incl...
<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 <oleacc.h> #include "app/l10n_util.h" #include "chrome/browser/browser.h" #include "chrome/browser/browser_window.h" #include...
<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 <oleacc.h> #include "app/l10n_util.h" #include "chrome/browser/browser.h" #include "chrome/browser/browser_window.h" #include...
<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> // // 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) 2010-2012 Francois Beaune, Jupiter Jazz // // Permission is hereby granted, free of charge, to any person obt...
<commit_before>#pragma once #ifndef DELEGATE_HPP # define DELEGATE_HPP #include <cassert> #include <bitset> #include <memory> #include <new> #include <type_traits> #include <utility> #include "lightptr.hpp" namespace { template<typename T> constexpr const T &as_const(T &t) { return t; } template <typename T...
<commit_before>#pragma once #ifndef DELEGATE_HPP # define DELEGATE_HPP #include <cassert> #include <bitset> #include <memory> #include <new> #include <type_traits> #include <utility> #include "lightptr.hpp" namespace { template<typename T> constexpr const T &as_const(T &t) { return t; } template <typename ...
<commit_before>// Copyright by Contributors #include <xgboost/metric.h> #include "../helpers.h" TEST(Metric, RMSE) { xgboost::Metric * metric = xgboost::Metric::Create("rmse"); ASSERT_STREQ(metric->Name(), "rmse"); EXPECT_NEAR(GetMetricEval(metric, {0, 1}, {0, 1}), 0, 1e-10); EXPECT_NEAR(GetMetricEval(metric,...
<commit_before>#include "searchdialog.h" #include "ui_searchdialog.h" #include <QPlainTextEdit> #include <QDebug> /** Object's constructor. */ SearchDialog::SearchDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SearchDialog) { ui->setupUi(this); gbReplaceClicked = false; gbSearchClicked = f...
<commit_before>/* Copyright (c) 2015-present Advanced Micro Devices, Inc. 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 the Software without restriction, including without limitation the...
<commit_before>#include <QString> #include <QtTest> #include <getopt.h> #include "application.h" class Test_Application : public QObject { Q_OBJECT public: Test_Application(); private slots: void test_process_cmd(); void test_crc_index_cmd(); void test_crc_name_cm...
<commit_before>//===- CFGPrinter.cpp - DOT printer for the control flow graph ------------===// // // 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 2009-2011 Red Hat, 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 applic...
<commit_before>#ifndef EBITEN_GAME_GRAPHICS_DETAIL_OPENGL_GRAPHICS_CONTEXT_HPP #define EBITEN_GAME_GRAPHICS_DETAIL_OPENGL_GRAPHICS_CONTEXT_HPP #include "ebiten/game/graphics/detail/opengl/device.hpp" #include "ebiten/game/graphics/color_matrix.hpp" #include "ebiten/game/graphics/drawing_region.hpp" #include "ebiten/ga...
<commit_before>#include "caffe2/operators/pack_segments.h" namespace caffe2 { namespace { REGISTER_CPU_OPERATOR(PackSegments, PackSegmentsOp<CPUContext>); REGISTER_CPU_OPERATOR(UnpackSegments, UnpackSegmentsOp<CPUContext>); OPERATOR_SCHEMA(PackSegments) .NumInputs(2) .NumOutputs(1) .SetDoc( "Map...
<commit_before>#include "caffe2/operators/reduction_ops.h" namespace caffe2 { namespace { REGISTER_CPU_OPERATOR(SumElements, SumElementsOp<float, CPUContext>); REGISTER_CPU_OPERATOR(SumSqrElements, SumSqrElementsOp<float, CPUContext>); REGISTER_CPU_OPERATOR( SumElementsGradient, SumElementsGradientOp<float, ...
<commit_before>/* * REmbeddedPosix.cpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero Genera...
<commit_before>//===--- CodeGenTypes.cpp - TBAA information for LLVM CodeGen -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<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/test/in_process_browser_test.h" #include "base/command_line.h" #include "base/file_path.h" #include "base/file_u...
<commit_before>//===--- Tool.cpp - The LLVM Compiler Driver --------------------*- 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 (C) 2004 Pascal Giorgi, Clément Pernet * 2013, 2014 the LinBox group * 2018 revamped by Pascal Giorgi * * Written by : * Pascal Giorgi <pascal.giorgi@lirmm.fr> * Clément Pernet <clement.pernet@imag.fr> * Brice ...
<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 2011-2015 Quickstep Technologies LLC. * Copyright 2015-2016 Pivotal Software, 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 * * h...
<commit_before>#include "SVM.h" #include "TrainData.h" #include "ParamGrid.h" #include "Mat.h" Nan::Persistent<v8::FunctionTemplate> SVM::constructor; NAN_MODULE_INIT(SVM::Init) { v8::Local<v8::FunctionTemplate> ctor = Nan::New<v8::FunctionTemplate>(SVM::New); constructor.Reset(ctor); ctor->InstanceTemplate()->...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: hints.hxx,v $ * $Revision: 1.9 $...
<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++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * The Contents of this file are made available subject to the terms of * either of the following licenses * * - GNU Lesser General Pu...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXDE-Qt - a lightweight, Qt based, desktop toolset * http://razor-qt.org * * Copyright: 2012 Razor team * Authors: * Alexander Sokoloff <sokoloff.a@gmail.com> * * This program or library is free software; you can redistribute it * and/or modif...
<commit_before>#include <algorithm> #include "servicelayer.h" #include "sortings.h" ServiceLayer::ServiceLayer() { sortByName(1); //Defaults to sorting the list by name. } vector<Persons> ServiceLayer::list() { return dl.getVector(); } //regular sorting. Reyndi að nota klasaföll, en það vill þýðandinn ekki. ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief force symbols into programm /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License...
<commit_before>/* Copyright (C) 2003-2013 by Kristina Simpson <sweet.kristas@gmail.com> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this softw...
<commit_before>// Copyright (c) 2015-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <zmq/zmqpublishnotifier.h> #include <chain.h> #include <chainparams.h> #include <rpc/server.h> #incl...
<commit_before>//===- PassRegistry.cpp - Pass Registration Implementation ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* aboutdata.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2001,2002,2004 Klarälvdalens Datakonsult AB Kleopatra 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 ...
<commit_before>/*************************************************************************** Kopete Instant Messenger kopetewindows.cpp ------------------- (C) 2001-2002 by Duncan Mac-Vicar P. <duncan@kde.org> (C) 2001-2002 by Stefan Gehn <sgehn@gmx.n...
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 req...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.H $ ...
<commit_before>#pragma once #include <fc/io/enum_type.hpp> #include <fc/io/raw.hpp> #include <fc/reflect/reflect.hpp> /** * The C keyword 'not' is NOT friendly on VC++ but we still want to use * it for readability, so we will have the pre-processor convert it to the * more traditional form. The goal here is to...
<commit_before>/* medDropSite.cpp --- * * Author: Julien Wintz * Copyright (C) 2008 - Julien Wintz, Inria. * Created: Fri Feb 19 17:41:43 2010 (+0100) * Version: $Id$ * Last-Updated: Mon Feb 22 21:15:03 2010 (+0100) * By: Julien Wintz * Update #: 18 */ /* Commentary: * */ /* Change log: ...
<commit_before>/* * Copyright 2012 Anders Wallin (anders.e.e.wallin "at" gmail.com) * * This file is part of OpenVoronoi. * * OpenVoronoi 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 ...
<commit_before>/* RawSpeed - RAW file decoder. Copyright (C) 2009-2014 Klaus Post Copyright (C) 2017 Axel Waggershauser 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;...
<commit_before><commit_msg>Coverity: Allocate |cache| after we have a logic path where we can return and leak.<commit_after><|endoftext|>
<commit_before>#pragma once #ifndef VARIANT_HPP # define VARIANT_HPP #include <exception> #include <array> #include <utility> #include <type_traits> #include <typeinfo> namespace detail { template <typename A, typename ...B> struct max_align { static constexpr auto const align = (alignof(A) > max_align<B.....
<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 "chrome/gpu/gpu_video_layer_glx.h" #include <GL/glew.h> #include "chrome/common/gpu_messages.h" #include "chrome/gpu/gpu_thr...
<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 "media/base/android/media_player_bridge.h" #include "base/android/jni_android.h" #include "base/android/jni_string.h" #includ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fntctl.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-09-17 05:25:14 $ * * The Contents of this file are made a...
<commit_before><commit_msg>Add error message to help debug install status inconsistency from logs.<commit_after><|endoftext|>
<commit_before>#pragma once #ifndef VARIANT_HPP # define VARIANT_HPP #include <cassert> #include <type_traits> #include <typeinfo> #include <utility> namespace detail { template <typename A, typename ...B> struct max_align { static constexpr auto const align = (alignof(A) > max_align<B...>::align) ? a...
<commit_before>// Unique ownership #include <memory> #include <utility> struct foo {}; void func(std::unique_ptr<foo> obj) { } int main() { std::unique_ptr<foo> obj = std::make_unique<foo>(); func(std::move(obj)); } // Transfer unique ownership of a dynamically allocated object to // another unit of code. // //...
<commit_before><commit_msg>fdo#46340: fix crash in SdrGrafObj::getInputStream:<commit_after><|endoftext|>
<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 Linguist of the Qt Toolkit. ** ** $QT_BEGIN_LIC...
<commit_before>//===-- BenchmarkResult.cpp -------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
<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 "base/process.h" #include <errno.h> #include <sys/resource.h> #include "base/file_util.h" #include "base/lazy_instance.h" #i...
<commit_before>/* * Copyright (c) 2018 Egor Pugin * * 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 * to use, copy, modify, ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: IDocumentStatistics.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2007-07-17 13:04:39 $ * * The Contents of this fi...
<commit_before>// Copyright (c) 2013 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "consensus/validation.h" #include "data/sighash.json.h" #include "main.h" #include "random.h" #include "sc...
<commit_before>/* Copyright (C) 2012 Lasath Fernando <kde@lasath.org> Copyright (C) 2012 David Edmundson <kde@davidedmundson.co.uk> 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 Fo...
<commit_before><commit_msg>unnecessary cast<commit_after><|endoftext|>
<commit_before><commit_msg>tdf#91917 tdf#91602: avoid layout recursion differently<commit_after><|endoftext|>
<commit_before>/* Print.cpp - Base class that provides print() and println() Copyright (c) 2008 David A. Mellis. All right 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 Free Software Foundation; eith...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ftnboss.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 03:48:34 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * $RCSfile: frmdlg.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2004-06-17 16:05:06 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/** * @file thread/win32thread.cpp * @brief Win32 thread/mutex handling * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: impfnote.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-09-09 10:32:25 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * $RCSfile: listsh.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: mba $ $Date: 2002-07-19 11:16:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: listsh.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: hr $ $Date: 2006-08-14 17:54:22 $ * * The Contents of this file are made a...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before><commit_msg>remove Remove()<commit_after><|endoftext|>
<commit_before>/***************************************************************************** * playlist_item.cpp : Manage playlist item **************************************************************************** * Copyright © 2006-2008 the VideoLAN team * $Id$ * * Authors: Clément Stenac <zorglub@videolan.org> ...
<commit_before>/***************************************************************************** * standardpanel.cpp : The "standard" playlist panel : just a treeview **************************************************************************** * Copyright (C) 2000-2005 the VideoLAN team * $Id$ * * Authors: Clément S...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestUnicodeStringArrayAPI.cxx ------------------------------------------------------------------------- Copyright 2008 Sandia Corporation. Under the terms of Contract DE-AC04-...
<commit_before> ////using the C++ API #include "zorba_api.h" #include "store/naive/basic_item_factory.h" #include "store/naive/simple_store.h" //for debug #include "compiler/parser/xquery_driver.h" #include "util/logging/loggermanager.hh" #include "timer.h" #include "api/serialization/serializer.h" #include <fstr...
<commit_before>/************** <auto-copyright.pl BEGIN do not edit this line> ************** * * VR Juggler is (C) Copyright 1998-2007 by Iowa State University * * Original Authors: * Allen Bierbaum, Christopher Just, * Patrick Hartling, Kevin Meinert, * Carolina Cruz-Neira, Albert Baker * * This librar...
<commit_before>/* TyTools - public domain Niels Martignène <niels.martignene@protonmail.com> https://koromix.dev/tytools This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, distribute, and modify this file as you see f...
<commit_before>/* * Copyright (C) 2008-2013 The Communi Project * * 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 of the License, or (at your * option) any later version....
<commit_before>#pragma once #include <math.h> // base vector struct template <int n> struct Vec { float v[n]; float& operator[]( const int i ) { return this->v[i]; } const float& operator[]( const int i ) const { return this->v[i]; } }; typedef Vec<2> Vec2; typedef Vec<3> Vec3; ...
<commit_before>#include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <sensor_msgs/PointCloud.h> #include <math.h> static const float tol = 0.000000000000001f; double magnitude(double vec[3]){ return sqrt(vec[0]*vec[0] + vec[1]*vec[1] + vec[2]*vec[2]); } void normalize(double vec[3]){ float m = mag...
<commit_before>#include <mlopen/convolution.hpp> #include <mlopen/mlo_internal.hpp> namespace mlopen { mlopenStatus_t ConvolutionDescriptor::FindConvFwdAlgorithm(mlopen::Context& handle, const mlopen::TensorDescriptor& xDesc, const cl_mem x, const mlopen::TensorDescriptor& wDesc, const cl_mem w, con...
<commit_before>/* * Copyright (C) 2011 Jonas Weber (mail@jonasw.de) * All Rights Reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright...
<commit_before>/*********************************************************** * * omxAlgebraFunctions.h * * Created: Timothy R. Brick Date: 2008-11-13 12:33:06 * * Includes the functions required for omxAlgebra statements. * These functions should take a number of values that * evenly matches the number of args r...
<commit_before> /* Olimpíada Brasileira de Informática Seletiva para a IOI, Teste Final, 2009 Problema: Boliche Data de submissão: 29/05/2012 Autor da solução: Luiz Rodrigo <@lurodrigo> <luizrodri.go@hotmail.com> Tags: ad-hoc Complexidade: O(1) */ #include <iostream> #include <string> ...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dispatchrecordersupplier.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-06-19 10:58:01 $ * * The Contents of thi...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 * * (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>#include <cassert> #include <iostream> #include "dinit.h" #include "service.h" #include "baseproc-sys.h" #include "control.h" #define RUN_TEST(name) \ std::cout << #name "... "; \ name(); \ std::cout << "PASSED" << std::endl; void cptest1() { service_set sset; int fd = bp_sys::allocfd();...
<commit_before>/** ** \file libport/file-library.cc ** \brief Implements libport::file_library. */ #include <cstdlib> #include <stdexcept> #include <iostream> #include "libport/config.h" #ifdef LIBPORT_HAVE_DIRECT_H # include <direct.h> #endif #ifdef LIBPORT_HAVE_SYS_PARAM_H # include <sys/param.h> #endif #incl...
<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 libmeegotouch. ** ** If you have questions regarding t...
<commit_before><commit_msg>Remove verbose log message<commit_after><|endoftext|>
<commit_before><commit_msg>ClusterVarsAction fix<commit_after><|endoftext|>