text
stringlengths
54
60.6k
<commit_before>/* ** ** Copyright (C) 2012 Aldebaran Robotics */ #include <map> #include <boost/algorithm/string.hpp> #include <gtest/gtest.h> #include <qi/application.hpp> #include <qi/anyobject.hpp> #include <qi/type/dynamicobjectbuilder.hpp> #include <qi/type/detail/traceanalyzer.hpp> qiLogCategory("test"); cl...
<commit_before>#include "Halide.h" #include <tiramisu/utils.h> #include <cstdlib> #include <iostream> #include "wrapper_test_21.h" #ifdef __cplusplus extern "C" { #endif uint8_t my_external(halide_buffer_t *buf0) { return 0; //buf0->host[0]; } #ifdef __cplusplus } // extern "C" #endif int main(int, char**) ...
<commit_before>// ======================================================================== // // Copyright 2009-2018 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>#include "thread.h" #include <QtWidgets/QApplication> using namespace qReal; using namespace interpreters::robots; using namespace interpreters::robots::details; Id const startingElementType = Id("RobotsMetamodel", "RobotsDiagram", "InitialNode"); Thread::Thread(GraphicalModelAssistInterface const *g...
<commit_before>// Time: ctor: O(n), // query: O(logn) // Space: O(n) /** * Definition of Interval: * classs Interval { * int start, end; * Interval(int start, int end) { * this->start = start; * this->end = end; * } */ // Segment Tree solution. class SegmentTreeSumNode {...
<commit_before>#include "Halide.h" using namespace Halide; #include "../png.h" #include <iostream> #include <limits> #include <sys/time.h> double now() { struct timeval tv; gettimeofday(&tv, NULL); static bool first_call = true; static time_t first_sec = 0; if (first_call) { first_call = false; first_sec ...
<commit_before>#include "qspiaccessibleinterface.h" #include <qdebug.h> #include <qdbusmessage.h> #include <dbusconnection.h> #include <qaccessible.h> #include "constant_mappings.h" QSpiAccessibleInterface::QSpiAccessibleInterface() { } bool QSpiAccessibleInterface::handleMessage(QAccessibleInterface *interface, i...
<commit_before>/* * Copyright (c) 2015, Nagoya University * 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, ...
<commit_before>#ifndef INC_IO_HPP #define INC_IO_HPP #include <iostream> #include <string> #include <utility> #include <vector> namespace io { template<typename T> class basic_formatter { public: basic_formatter(const T &fmt) { size_t start = 0; for(size_t i = 0; i < fmt.size(); i++) { // Jesus Chris...
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*- * * Copyright (c) 2001-2003 Carsten Pfeiffer <pfeiffer@kde.org> * Copyright (c) 2003 Zack Rusin <zack@kde.org> * * KMail is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License, version 2, as * p...
<commit_before>/* * Copyright (c) 2001 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU * General Public License as published by the Free Software * Foundation; either version 2 of the L...
<commit_before>#include "SecIdentity.hpp" #include "Util.hpp" SecurityIdentity::SecurityIdentity(const SID * sid) { SecurityIdentity(reinterpret_cast<const unsigned char*>(sid), sizeof(SID)); } SecurityIdentity::SecurityIdentity(const unsigned char * sid, unsigned short sid_size) { this->raw_sid = new unsigned cha...
<commit_before>#include <iostream> #include <fstream> #include <vector> #include <iomanip> #include <cmath> #include <string> #include <algorithm> using namespace std; double logsumexp(double x1, double x2) { if(x1 > x2) return x1 + log(1. + exp(x2 - x1)); return x2 + log(1. + exp(x1 - x2)); } int main() { //...
<commit_before>/* Copyright (c) 2012 Carsten Burstedde, Donna Calhoun All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list ...
<commit_before> #include <Grappa.hpp> #include <ParallelLoop.hpp> #include <GlobalVector.hpp> #include <Array.hpp> using namespace Grappa; DEFINE_uint64(log_vertices, 8, "log2(total number of vertices)"); #define NUM_VERTICES (1L << FLAGS_log_vertices) DEFINE_uint64(max_children, -1, "max number of children"); DEFINE...
<commit_before>/*************************************************************************** * Copyright (C) 2006-2007 by Rajko Albrecht * * ral@alwins-world.de * * ...
<commit_before>/****************************************************************************** * Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com) * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions a...
<commit_before>#ifndef __AXIS_HPP #define __AXIS_HPP #ifndef __ODRIVE_MAIN_H #error "This file should not be included directly. Include odrive_main.h instead." #endif class Axis { public: enum Error_t { ERROR_NONE = 0x00, ERROR_INVALID_STATE = 0x01, //<! an invalid state was requested ERRO...
<commit_before>#include "PictureRenderer.h" #include "SamplePipeControllers.h" #include "SkCanvas.h" #include "SkDevice.h" #include "SkGPipe.h" #include "SkPicture.h" #include "SkTDArray.h" #include "SkTypes.h" #include "picture_utils.h" #if SK_SUPPORT_GPU #include "SkGpuDevice.h" #endif namespace sk_tools { enum { ...
<commit_before>//===----------------------------------------------------------------------===// // LLVM 'Analyze' UTILITY // // This utility is designed to print out the results of running various analysis // passes on a program. This is useful for understanding a program, or for // debugging an analysis pass. // //...
<commit_before>/* * Copyright (c) 2016 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>#include <vector> #include <boost/geometry.hpp> #include <boost/geometry/geometries/point_xy.hpp> #include "kdtree.h" void natural_neighbor(std::vector<double>& known_points); typedef boost::geometry::model::point <double, 3, boost::geometry::cs::cartesian> Point; using namespace spatial_index; std::...
<commit_before>/* Copyright (c) 2013 250bpm s.r.o. 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, mo...
<commit_before>#ifndef NETWORKING_H #define NETWORKING_H #include <iostream> #include <set> #ifdef _WIN32 #include <windows.h> #include <tchar.h> #include <stdio.h> #include <strsafe.h> #else #include <signal.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/...
<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. #if defined(OS_WIN) #include <windows.h> #endif #include <stack> #include "chrome/common/ipc_sync_message.h" #include "base/loggi...
<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/environment.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/stringprintf.h" #include "base/...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: formstrings.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-09-16 13:18:31 $ * * The Contents of this file are m...
<commit_before>/* * * Copyright 2018 Asylo authors * * 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 applicab...
<commit_before>#include "imageprocessor.h" #include <QColor> ImageProcessor::ImageProcessor() { } // Private Methods QVector<double> ImageProcessor::histChannel(QImage image, QColor color) { QVector<double> histogram(256); int width = image.width(); int height = image.height(); for(int j = 0; j < ...
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Trace.h" #include <array> #include <cstdarg> #include <cstdio> #include <cstdlib> #include <cstring> #inc...
<commit_before>#pragma once //#define BOOST_VARIANT_MINIMIZE_SIZE 1 #include "boost/variant.hpp" #include "boost/optional.hpp" #include <map> #include <list> #include <string> namespace libubjpp { class value; /** * Object type. Note std::map is preferred to std::unordered_map due to its * size: 24 bytes as oppos...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: odbcconfig.cxx,v $ * * $Revision: 1.19 $ * * last change: $Author: rt $ $Date: 2007-07-24 12:08:47 $ * * The Contents of this file are ma...
<commit_before>/** Copyright (c) 2017, 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>// Copyright 2011 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...
<commit_before>#ifndef CONFIG_HPP #define CONFIG_HPP // Window DLL support #ifdef _WINDOWS # define MAPNIK_DECL __declspec (dllexport) # pragma warning( disable: 4251 ) # pragma warning( disable: 4275 ) #else # define MAPNIK_DECL #endif #endif<commit_msg>added new line at the end of file<commit_after>#ifndef CONFIG...
<commit_before>#pragma once //=====================================================================// /*! @file @brief ルネサス RX デバイス選択 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2016, 2019 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/ma...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX グループ・RSPI I/O 制御 @n Copyright 2016 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include "common/renesas.hpp"...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX グループ・RSPI I/O 制御 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2016, 2017 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/mast...
<commit_before>// Use of this source code is governed by a BSD-style license // that can be found in the License file. // // Author: dingcongjun (dingcj) #include <stdlib.h> #include "Line2.h" #include "Logger.h" namespace poppy { Line2::Line2(int x1, int y1, int x2, int y2) :k_(0.0f), kb_(0.0f), a_(0.0f), b_(0.0...
<commit_before>#ifndef WORKER_HPP #define WORKER_HPP #include <memory> #include <thread> #include <atomic> #include <queue> #include <stdint.h> #include <string.h> #include "basicTrie.hpp" #include "ring.hpp" #include "routingTable.hpp" #include "arpTable.hpp" #include "headers.hpp" #include "util.hpp" #include "conf...
<commit_before> #include "CMesh.h" CMesh::CMesh() {} CMesh::CMesh(SMeshBuffer * const Buffer) { Buffers.push_back(Buffer); Materials.push_back(Buffer->GetMaterial()); Root = new SMeshNode{}; Root->Buffers.push_back(Buffer); LoadDataIntoBuffers(); } CMesh::CMesh(SMeshBuffer && Buffer) : CMesh(n...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * 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 no...
<commit_before>/* Copyright (c) 2012 QtHttpServer Project. * 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 * not...
<commit_before>#include "fontStyle.h" MapTile* FontStyle::processedTile = nullptr; FontStyle::FontStyle(const std::string& _fontName, std::string _name, float _fontSize, bool _sdf, GLenum _drawMode) : Style(_name, _drawMode), m_fontName(_fontName), m_fontSize(_fontSize), m_sdf(_sdf) { constructVertexLayout(); ...
<commit_before>/*****************************************************************************/ /** * @file main.cpp * @author Naohisa Sakamoto * @brief Example program for kvs::KMeansClustering class. */ /*****************************************************************************/ #include <kvs/glut/Applica...
<commit_before>//============================================================================== // Single cell simulation view information solvers widget //============================================================================== #include "cellmlfileruntime.h" #include "singlecellsimulationviewinformationsol...
<commit_before>/************************************************************************* * * $RCSfile: rscdep.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: vg $ $Date: 2002-01-29 14:58:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/* * @file ex9.cpp * @details This file is the solution to exercise 9. * @author Alexander Rettkowski * @date 12.07.2017 */ #include <boost/config/warning_disable.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/...
<commit_before><commit_msg>Fix to use the correct vulkan device<commit_after><|endoftext|>
<commit_before>#include "replication/delete_queue.hpp" #include "btree/node.hpp" #include "buffer_cache/buf_lock.hpp" #include "buffer_cache/co_functions.hpp" #include "containers/scoped_malloc.hpp" #include "logger.hpp" #include "store.hpp" namespace replication { namespace delete_queue { // The offset of the prim...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: formsimp.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2007-04-11 13:27:35 $ * * The Contents of this file are made ...
<commit_before>/* * Copyright (C) 2018 The Android Open Source Project * * 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>/** * This is an open source non-commercial project. Dear PVS-Studio, please check it. * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com * * @file FileProviderList.cpp * @brief * @details * @date Created on 06.12.2016 * @copyright 2016 DDwarf LLC, <dev@ddwarf.org> * @aut...
<commit_before>/* Drawing Area * * Gtk::DrawingArea is a blank area where you can draw custom displays * of various kinds. * * This demo has two drawing areas. The checkerboard area shows * how you can just draw something; all you have to do is write * a draw function, as shown here. * * The "scribble" area is...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: filtertracer.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-01-19 17:47:54 $ * * The Contents of this file are ...
<commit_before>/* * Copyright (C) 2013 Frank Mertens. * * 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. */ #incl...
<commit_before>#include <Arduino.h> #include "HaskinoComm.h" #include "HaskinoCommands.h" #include "HaskinoDigital.h" #include "HaskinoExpr.h" static bool handleReadPin(int size, const byte *msg, CONTEXT *context); static bool handleWritePin(int size, const byte *msg, CONTEXT *context); static bool handleReadPort(int ...
<commit_before>#pragma once <commit_msg>feat: Added support of the demonstrator robot model<commit_after>#pragma once // C++ STL #include <vector> // HOP #include <hop_bits/optimisationProblem/robotic/robotModel.hpp> #include <hop_bits/optimisationProblem/robotic/robotModel/parallelKinematicMachine_6pups.hpp> namesp...
<commit_before>#include <QtCore/QCoreApplication> #include <QtCore/QFile> #include <QtCore/QXmlStreamReader> #include <QtCore/QStack> #include <QtCore/QStringList> #include <QtCore/QDebug> class Reader { QString outString; QTextStream out; QXmlStreamReader xml; int depth; bool supressIndent; ...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2019 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 <rpc/rawtransaction_util.h> #include <coins.h> #include <core...
<commit_before>// $Id$ /* * Example macro to run locally an analysis task for comparing the offline * with the HLT esd tree. * * The output is a root file containing the histograms defined in the * analysis task. There is one output file per detector. * * Run without arguments to get a few examples how to use th...
<commit_before>#ifndef _WIN32 #include "WindowsContainer.h" int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WindowsContainer win; win.main(hInstance, hPrevInstance, lpCmdLine, nCmdShow); return 0; } #else //#include "vld.h" //insert debug-flag here #in...
<commit_before>/* * Copyright (C) 2008-2010 The QXmpp developers * * Author: * Manjeet Dahiya * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gen...
<commit_before>/* This file is part of the kblog library. Copyright (c) 2007 Mike Arthur <mike@mikearthur.co.uk> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 ...
<commit_before>/** \file FullTextCache.cc * \brief Implementation of functions relating to our full-text cache. * \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 re...
<commit_before>#include "gtest/gtest.h" #include "testable.hpp" TEST(GetTwoTest, Two) { EXPECT_EQ(2, getTwo()); } <commit_msg>`TEST(ShaderStruct_must_be_initialized_appropriately, ShaderStruct)`.<commit_after>#include "gtest/gtest.h" #include "testable.hpp" #include "cpp/ylikuutio/common/globals.hpp" TEST(GetTwoT...
<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>/* Siconos-Kernel version 3.0.0, Copyright INRIA 2005-2008. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
<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>#ifndef __GLOBALS_HPP_INCLUDED #define __GLOBALS_HPP_INCLUDED #include "any_value.hpp" // GCC (at least g++ 4.7.2) and Visual Studio 2015 do support // setting default values of a struct using C++11 syntax. // Clang 3.7.0 and Visual Studio 2013 do not support // setting default values of a struct using...
<commit_before>// Ylikuutio - A 3D game and simulation engine. // // Copyright (C) 2015-2020 Antti Nuortimo. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the ...
<commit_before>#include "rtkprojections_ggo.h" #include "rtkMacro.h" #include "itkProjectionsReader.h" #include <itkImageFileWriter.h> #include <itkRegularExpressionSeriesFileNames.h> #include <itkTimeProbe.h> int main(int argc, char * argv[]) { GGO(rtkprojections, args_info); typedef double OutputPixelType; ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<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/fast_io.h> #include <fastarduino/time.h> #include <fa...
<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/boards/board.h> #include <fastarduino/uart.h> #includ...
<commit_before>// Copyright (c) 2011-2016 Ryan Prichard // // 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, mod...
<commit_before>// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/gtest/gtest.h> #include <vespa/searchcore/proton/matching/unpacking_iterators_optimizer.h> #include <vespa/searchcore/proton/matching/querynodes.h> #include <ve...
<commit_before>/* * Copyright (c) 2014-2015, Georgia Tech Research Corporation * All rights reserved. * * Author(s): Karen Liu <karenliu@cc.gatech.edu> * * Georgia Tech Graphics Lab and Humanoid Robotics Lab * * Directed by Prof. C. Karen Liu and Prof. Mike Stilman * <karenliu@cc.gatech.edu> <mstilman@cc.gatec...
<commit_before>#include <log.h> #include <iostream> #include <QDateTime> #include <QDir> #include <QThread> void Log::info(QString tag, QString msg){ // deprecated Log::add("INFO",tag.toStdString(), msg.toStdString()); } // --------------------------------------------------------------------- void Log::info(con...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2015 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fwkresid.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:11:00 $ * * The Contents of this file are made ...
<commit_before>#include "PorousMedia.h" template<> Parameters valid_params<PorousMedia>() { Parameters params; params.set<Real>("thermal_conductivity")=1.0; params.set<Real>("thermal_conductivity_fluid")=0.3707; //[W/(m.K)] params.set<Real>("thermal_conductivity_solid")=80.0; //[W/(m.K)] params.set<Real>("...
<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 (c) 2016, Ford Motor Company * 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 *...
<commit_before>// // Copyright (c) 2012 Kim Walisch, <kim.walisch@gmail.com>. // All rights reserved. // // This file is part of primesieve. // Homepage: http://primesieve.googlecode.com // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
<commit_before>#include "common/access_log/access_log_manager_impl.h" #include <string> #include "common/common/assert.h" #include "common/common/fmt.h" #include "common/common/lock_guard.h" #include "absl/container/fixed_array.h" namespace Envoy { namespace AccessLog { AccessLogManagerImpl::~AccessLogManagerImpl(...
<commit_before>/* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #include "deferred_shading_demo/game_state_manager.h" #include "common/math.h" #include "common/camera.h" #include "common/d3d_util.h" #include ...
<commit_before>#ifndef STAN_IO_STAN_CSV_READER_HPP #define STAN_IO_STAN_CSV_READER_HPP #include <boost/algorithm/string.hpp> #include <stan/math/prim.hpp> #include <istream> #include <iostream> #include <sstream> #include <string> #include <vector> #include <ctype> namespace stan { namespace io { // FIXME: should co...
<commit_before>#include <algorithm> #include <iostream> #include <string> #include <vector> typedef std::pair<std::string, bool> list_item; std::string title(list_item const& item) { return item.first + std::string(item.second, '*'); } bool is_selected(list_item const& item) { return item.second; } bool is_not_s...
<commit_before>#ifndef VG_STREAM_PROTOBUF_EMITTER_HPP_INCLUDED #define VG_STREAM_PROTOBUF_EMITTER_HPP_INCLUDED /** * \file protobuf_emitter.hpp * Defines an output cursor for writing Protobuf data to files. */ #include <cassert> #include <iostream> #include <istream> #include <fstream> #include <functional> #inclu...
<commit_before> #include <iostream> #include <utility> #include <cstdlib> #include <X11/Xlib.h> #include <boost/scope_exit.hpp> // According to the xmodmap, there are eight bits of buttons. #define MAX_BUTTON_CODES 256 int main() { // Define a delayed release of the display pointer. Display* display; BOOS...
<commit_before>#include "itkImage.h" #include "itkRandomImageSource.h" #include "itkGradientRecursiveGaussianImageFilter.h" #include "itkGradientMagnitudeImageFilter.h" #include "itkImageFileReader.h" #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkActor2D.h> #...
<commit_before>/* * Copyright (c) 2013-2014 Kajetan Swierk <k0zmo@outlook.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 rig...
<commit_before>#include <catch.hpp> #include "../coap-decoder.h" #include "test-data.h" //#include "../mc/pipeline.h" using namespace moducom::coap; using namespace moducom::pipeline; TEST_CASE("CoAP decoder tests", "[coap-decoder]") { //layer3::MemoryChunk<1024> buffer_in; //buffer_in.memcpy(buffer_16bit_de...
<commit_before>// Copyright 2010 Google Inc. All Rights Reserved. // Author: jacobsa@google.com (Aaron Jacobs) // // 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....
<commit_before>#include "himan_unit.h" #include "util.h" #define BOOST_TEST_MODULE util using namespace std; using namespace himan; const double kEpsilon = 1e-3; BOOST_AUTO_TEST_CASE(UV_TO_GEOGRAPHICAL) { // Transform grid coordinates to lat and lon in stereographic projection himan::point stereoUV(8.484046, 3.8...
<commit_before>#include <QNetworkRequest> #include <QNetworkReply> #include <QDir> #include <QFile> #include "program-updater.h" #include "functions.h" #include "json.h" ProgramUpdater::ProgramUpdater() : ProgramUpdater("https://api.github.com/repos/Bionus/imgbrd-grabber") { } ProgramUpdater::ProgramUpdater(QString...
<commit_before>/* 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; either version 2 of the License, or (at your option) any later versi...
<commit_before>/* Purple Nurple Emulator WARNING: Nurple only in good conscience. The code loads an image and creates an ofVboMesh from it. Two nipple positions are defined. The potentiometers (or keyboard presses [z/x and n/m]) adjusts the pressure on the left and right nipples. The mesh vertices are rotated around ...
<commit_before>// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include <armnn/Types.hpp> #include <armnn/IRuntime.hpp> #include <armnn/Deprecated.hpp> #include <ISubgraphViewConverter.hpp> #include <SubgraphView.hpp> #include <optimizations/Optimization.hpp> #in...