text
stringlengths
54
60.6k
<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 QtDeclarative module of the Qt Toolkit. ** ** $QT_...
<commit_before>#include "MainFrame.hpp" #include "misc_ui.hpp" #include <wx/accel.h> #include <wx/utils.h> #include "AboutDialog.hpp" namespace Slic3r { namespace GUI { wxBEGIN_EVENT_TABLE(MainFrame, wxFrame) wxEND_EVENT_TABLE() MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size) ...
<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>//======================================================================= // Copyright Baptiste Wicht 2011-2012. // 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>#include "iotsa.h" #include "iotsaCapabilities.h" #include "iotsaConfigFile.h" #include <ArduinoJWT.h> #include <ArduinoJson.h> #define IFDEBUGX if(1) // Static method to check whether a string exactly matches a Json object, // or is included in the Json object if it is an array. static bool stringCont...
<commit_before>/* * Copyright (C) 2008-2012 J-P Nurmi <jpnurmi@gmail.com> * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at your * option) any late...
<commit_before>//======================================================================= // Copyright (c) 2014-2015 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>// Copyright 2015, Christopher J. Foster and the other displaz contributors. // Use of this code is governed by the BSD-style license found in LICENSE.txt #include "HookFormatter.h" #include "IpcChannel.h" #include "PointViewerMainWindow.h" HookFormatter::HookFormatter(PointViewerMainWindow* getPaylo...
<commit_before>//https://code.google.com/p/nya-engine/ #include "log.h" #include "stdout_log.h" namespace nya_log { namespace { log_base *default_log=0; } log_base &no_log() { static log_base l; return l; } void set_log(log_base *l) { default_log=l; } log_base &log(const char *tag) { if(!tag) ...
<commit_before>/* Copyright (c) 2013 Daniele Bartolini, Michele Rossi Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto 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, i...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2008 Renato Araujo Oliveira Filho <renatox@gmail.com> Copyright (c) 2000-2009 Tor...
<commit_before>/* StartingGateMission.cpp -- Implementation of StartingGateMission class Copyright (C) 2014 Tushar Pankaj This file is part of San Diego Robotics 101 Robosub. San Diego Robotics 101 Robosub is free software: you can redistribute it and/or modify it under the terms of the GNU General...
<commit_before>#ifndef LIBPORT_UNIT_TEST_HH # define LIBPORT_UNIT_TEST_HH // See documentation on: // https://core.gostai.com/projects/common/wiki/BoostUnit # define BOOST_TEST_DYN_LINK # include <boost/test/unit_test.hpp> namespace libport { using boost::unit_test::test_suite; } // Fwd for the entry point functi...
<commit_before>#include "iteration/group/group_source_iteration.h" #include <memory> #include "iteration/updater/tests/source_updater_mock.h" #include "quadrature/calculators/tests/spherical_harmonic_moments_mock.h" #include "convergence/tests/final_checker_mock.h" #include "solver/group/tests/single_group_solver_moc...
<commit_before>#include <iostream> #include <string> #include <fstream> #include "lib/store.hpp" #include "lib/graph.hpp" void store::save(const Graph& g, const std::string filename) { std::ofstream fs(filename); for (auto& v : g.list) { fs << *v.get() << std::endl; } } Graph store::load(const std::string...
<commit_before>// Steer TRD QA train for Reconstruction (Clusterizer, Tracking and PID). // // Usage: // run.C(optList, files, nev, first, runNo, ocdb_uri, grp_uri) // // optList : "ALL" [default] or one/more of the following: // "EFF" : TRD Tracking Efficiency // "EFFC" : TRD Tracking Efficiency Combine...
<commit_before>#ifndef LIB_MART_COMMON_GUARD_NW_UNIX_H #define LIB_MART_COMMON_GUARD_NW_UNIX_H /** * unix.h (mart-netlib) * * Copyright (C) 2019: Michael Balszun <michael.balszun@mytum.de> * * This software may be modified and distributed under the terms * of the MIT license. See either the LICENSE file in the l...
<commit_before>/* * This file is part of otf2xx (https://github.com/tud-zih-energy/otf2xx) * otf2xx - A wrapper for the Open Trace Format 2 library * * Copyright (c) 2013-2016, Technische Universität Dresden, Germany * All rights reserved. * * Redistribution and use in source and binary forms, with or without *...
<commit_before>/// /// @file Wheel.hpp /// @brief Classes and structs related to wheel factorization. /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef WHEEL_HPP #define WHEEL_HPP ...
<commit_before>/* * Copyright (C) 2016, Shubham Batra (https://www.github.com/batrashubham) * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: webconninfo.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: ihi $ $Date: 2007-11-26 16:40:29 $ * * The Contents of this file are m...
<commit_before>#pragma once #include <vector> #include <algorithm> #include <stdexcept> namespace helene { namespace detail { } template <class T, class Allocator = std::allocator<T>> class stable_vector { typedef std::vector<T, Allocator> vector_type; public: typedef typename vector_type::size_type size...
<commit_before>/************************************************************************* * * $RCSfile: dbaexchange.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: fs $ $Date: 2001-03-27 14:38:28 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>#pragma once #include <staticjson/error.hpp> #include <cstddef> #include <cstdint> #include <memory> #include <unordered_map> namespace staticjson { struct NonMobile { NonMobile() {} ~NonMobile() {} NonMobile(const NonMobile&) = delete; NonMobile(NonMobile&&) = delete; NonMobile& o...
<commit_before>/************************************************************************* * * $RCSfile: codegen.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-03-29 11:48:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>#pragma once #include <cassert> #include <tudocomp/def.hpp> #include <tudocomp/util/View.hpp> namespace tdc { /// \brief Contains a literal and its location in the input. /// /// This structure is used by encoders to get a glimpse at the literals it will /// receive. The encoder is given a stream of l...
<commit_before>// // Created by mwo on 28/05/17. // #include "MempoolStatus.h" #include "rpccalls.h" namespace xmreg { using namespace std; void MempoolStatus::set_blockchain_variables(MicroCore *_mcore, Blockchain *_core_storage) { mcore = _mcore; core_storage = _c...
<commit_before>/* * Copyright (C) 2017 ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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 License, or * (at your op...
<commit_before>/*************************************************************************** msxml.cpp - XML Helper ------------------- begin : sam mai 17 2003 copyright : (C) 2003 by Michael CATANZARITI email :...
<commit_before>/* * Copyright (C) 2015 Daniel Nicoletti <dantti12@gmail.com> * * 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 of the License, or (at your option...
<commit_before> #pragma once #include <string> #include "NamedObject.hpp" namespace werk { /** * An abstract class that represents an action to be executed one or more * times, but not in an ongoing fashion (should not execute indefinitely). * * Named to enable easier debugging. */ class Action : public NamedO...
<commit_before>//===------------------------- mutex.cpp ----------------------------------===// // // 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>/************************************************************************* * * $RCSfile: scriptinfo.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2004-04-27 13:42:22 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>#include "PolyStatic.hpp" #include <string> #include <map> #include <fstream> namespace ps { namespace { struct ParseElement { virtual ParseElement *Clone() const = 0; virtual ~ParseElement(){} }; struct ScriptFile : public virtual ParseElement { std::string filename; ScriptFile...
<commit_before>#include <OpenGLTexture.h> #include <TextureRef.h> #include <Image.h> #include <Surface.h> #define GL_GLEXT_PROTOTYPES #if defined __APPLE__ #include <OpenGLES/ES3/gl.h> #include <OpenGLES/ES3/glext.h> #elif (defined GL_ES) #include <GLES3/gl3.h> #include <EGL/egl.h> #include <EGL/eglext.h> #else #def...
<commit_before>#include "FieldAccessor.h" #include "JniLocalRef.h" #include "ArgConverter.h" #include "NativeScriptAssert.h" #include "Util.h" #include "V8GlobalHelpers.h" #include <assert.h> using namespace v8; using namespace std; using namespace tns; void FieldAccessor::Init(JavaVM *jvm, ObjectManager *objectManag...
<commit_before>#include "OpenGLTexture.h" #include "TextureRef.h" #include "Image.h" #include "Surface.h" #define GL_GLEXT_PROTOTYPES #if defined __APPLE__ #include <OpenGLES/ES3/gl.h> #include <OpenGLES/ES3/glext.h> #elif (defined GL_ES) #include <GLES3/gl3.h> #include <EGL/egl.h> #include <EGL/eglext.h> #else #def...
<commit_before>#include <Render/Pipelining/Buffer/Renderbuffer.hh> #include <utility> namespace AGE { Renderbuffer::Renderbuffer(GLint width, GLint height, GLenum internal_format) : _id(0), _width(width), _height(height), _internal_format(internal_format) { glGenRenderbuffers(1, &_id); bind(); glRende...
<commit_before>/** * * @file ESP8266WiFiMulti.cpp * @date 16.05.2015 * @author Markus Sattler * * Copyright (c) 2015 Markus Sattler. All rights reserved. * This file is part of the esp8266 core for Arduino environment. * * This library is free software; you can redistribute it and/or * modify it under the ter...
<commit_before>// // Copyright 2013 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and rep...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9n_mcs_scom.C $ ...
<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 <stdio.h> #include <string> #include <vector> #include <iostream> #include <fstream> #include <algorithm> #include <stdlib.h> #include <string.h> #include <sstream> #include <engine/gfx/Shader.hpp> using namespace std; namespace { boost::expected<std::string, std::string> load_shader_from_cst...
<commit_before>/************************************************************************* * * $RCSfile: xmlithlp.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: dvo $ $Date: 2001-07-09 20:10:43 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* * Copyright (C) 2010 - 2015 Leonid Kostrykin * * Chair of Medical Engineering (mediTEC) * RWTH Aachen University * Pauwelsstr. 20 * 52074 Aachen * Germany * */ #include <Carna/qt/Display.h> #include <Carna/base/FrameRenderer.h> #include <Carna/base/SpatialMovement.h> #include <Carna/ba...
<commit_before>/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox> #i...
<commit_before>#include <stdio.h> #include <iostream> #include "EasyCL.h" using namespace std; //#include "THClTensorRandom.h" //extern void clnn_ClStorage_init(lua_State* L); //extern void clnn_ClTensor_init(lua_State* L); //extern void clnn_ClTensorMath_init(lua_State* L); //extern void clnn_ClTensorOperator_init(l...
<commit_before>#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #if QT_VERSION >= 0x050000 #include <QUrlQuery> #else...
<commit_before>#include "Anemometer.h" #include <Arduino.h> namespace SkyeTracker { Anemometer::Anemometer(int sensorPin) { _sensorPin = sensorPin; } Anemometer::~Anemometer() { } // Wind speed in meters per second float Anemometer::WindSpeed() { // Get a value between 0 and 1023 from the analog pin con...
<commit_before>//------------------------------------------------------------------------------ // winURLLoader.cc //------------------------------------------------------------------------------ #include "Pre.h" #include "winURLLoader.h" #include "Core/String/StringConverter.h" #include "IO/Stream/MemoryStream....
<commit_before>#include "gamelib/components/rendering/SpriteComponent.hpp" #include "gamelib/core/res/ResourceManager.hpp" #include "gamelib/core/rendering/RenderSystem.hpp" #include "gamelib/properties/PropResource.hpp" #include <SFML/Graphics/Vertex.hpp> namespace gamelib { SpriteComponent::SpriteComponent() : ...
<commit_before>#include "randomized.hpp" #include "parallel.hpp" #include "parallel.cpp" #include <vector> #include <cstdlib> #include <cmath> #include <iostream> #include <atomic> //TODO! usa una libreria migliore per random /** * Flip a coin until a head is found, then return the number of tails */ unsigned long ...
<commit_before>#include <stdio.h> #include <float.h> #ifdef WIN32 #include <windows.h> #endif #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include "raytracing.h" //temporary variables //these are only used to illustrate //a simple debug drawing. A ray Vec3Df testRayOr...
<commit_before>#include "vec3.hpp" #include "mat4.hpp" #include "Transform.hpp" #include "Sphere.hpp" #include "Plane.hpp" #include <vector> #include "zlib.h" #include "png.h" #include <stdint.h> #include <memory> #include "Sampling.hpp" #include "Renderable.hpp" #include "PerspectiveCamera.hpp" #include "Image.hpp" #i...
<commit_before>#include "DualExActor_Tests.h" #include "cryptoTools/Network/Endpoint.h" #include "Common.h" #include "cryptoTools/Common/Defines.h" #include "DualEx/DualExActor.h" #include "cryptoTools/Network/Channel.h" #include "cryptoTools/Common/Log.h" #include "DebugCircuits.h" //#include "MyAssert.h" #include <...
<commit_before>// Copyright 2012-2013 Samplecount S.L. // // 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 app...
<commit_before>#include <libdariadb/storage/memstorage.h> #include <memory> #include <unordered_map> #include <stx/btree_map.h> using namespace dariadb; using namespace dariadb::storage; /** Map: id -> hash: step-> Chunk{from,to,step,data_array} */ struct MemChunk { Time from; Time to; ...
<commit_before>#include "ipdb.h" #include <cstdio> #include <cstring> #include <endian.h> #include <fcntl.h> #include <stdint.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> #include <stdexcept> IPDB::IPDB(const char* filename) { fd_ = open(filename, O_RDWR); if (fd_<0) { throw std::runtime_...
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved. // // ______ __ ___ // /\__ _\ /\ \ /\_ \ // \/_/\ \/ __ \_\ \ _____ ___\//\ \ __ // \ \ \ /'__`\ /'_` \/\ '__`\ / __`\\ \ \ /'__`\ // \ \ \/\ \L\.\_/\ \L\ \ \ \L\ \/...
<commit_before>// Copyright 2020 DeepMind Technologies Limited. // // 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...
<commit_before><?hh //strict namespace HHPack\Codegen\Example; use HHPack\Codegen\{OutputNamespace, GeneratorName}; use HHPack\Codegen\Contract\{FileGeneratable, GeneratorProvider}; use HHPack\Codegen\HackUnit\{TestClassGenerator}; use HHPack\Codegen\Project\{PackageClassGenerator}; use function HHPack\Codegen\Cli\{d...
<commit_before>/* This file is part of SWGANH. For more information, visit http://swganh.com Copyright (c) 2006 - 2011 The SWG:ANH Team 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 v...
<commit_before>#include "stdafx.h" #include "Logger.h" #include <memory> #include <locale> // wstring_convert std::shared_ptr<spdlog::logger> getFallbackLogger() { constexpr const char *fallbackLoggerName = "Fallback_stderr"; spdlog::drop(fallbackLoggerName); return spdlog::stderr_logger_mt(fallbackLoggerN...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2010 Belledonne Communications SARL. 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 Founda...
<commit_before>// Copyright (c) 2013-2016 Anton Kozhevnikov, Thomas Schulthess // 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 cop...
<commit_before>// Piano Hero // Copyright (c)2006 Nicholas Piegdon // See license.txt for license information #include "State_Playing.h" #include "State_TrackSelection.h" #include "version.h" #include <string> using namespace std; #include "string_util.h" #include "MenuLayout.h" #include "TextWriter.h" ...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: anytostring.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-08 02:27:17 $ * * The Contents of this file are ma...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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; eit...
<commit_before>// Vaca - Visual Application Components Abstraction // Copyright (c) 2005-2009 David Capello // 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 o...
<commit_before>/******************************************************************************* Largest area rectangle histogram ================================ Ref - http://www.geeksforgeeks.org/largest-rectangle-under-histogram/ - http://www.geeksforgeeks.org/largest-rectangular-area-in-a-histogram-set-1/ ---...
<commit_before>// // Copyright RIME Developers // Distributed under the BSD License // // 2011-04-24 GONG Chen <chen.sst@gmail.com> // #include <cctype> #include <rime/common.h> #include <rime/composition.h> #include <rime/context.h> #include <rime/engine.h> #include <rime/filter.h> #include <rime/formatter.h> #include...
<commit_before>/// HEADER #include <csapex_ml/features_message.h> /// PROJECT #include <csapex/utility/assert.h> #include <csapex/utility/register_msg.h> CSAPEX_REGISTER_MESSAGE(csapex::connection_types::FeaturesMessage) using namespace csapex; using namespace connection_types; FeaturesMessage::FeaturesMessage(Mess...
<commit_before>/* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2008-2011 Ames Laboratory Iowa State University and The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifications ("Contributions") provide...
<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>#include "kincidenceformatter.h" #include <kstaticdeleter.h> #include <kglobal.h> #include <klocale.h> #include <kiconloader.h> #ifndef KORG_NOKABC #include <kabc/stdaddressbook.h> #define size count #endif KIncidenceFormatter* KIncidenceFormatter::mInstance = 0; static KStaticDeleter<KIncidenceFormatte...
<commit_before>// Copyright 2011 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
<commit_before>/******************************************************************************* * libproxy - A library for proxy configuration * Copyright (C) 2006 Nathaniel McCallum <nathaniel@natemccallum.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GN...
<commit_before>/* Stepper.cpp - - Stepper library for Wiring/Arduino - Version 0.4 Original library (0.1) by Tom Igoe. Two-wire modifications (0.2) by Sebastian Gassner Combination version (0.3) by Tom Igoe and David Mellis Bug fix for four-wire (0.4) by Tom Igoe, bug fix from Noah Shibley D...
<commit_before>/* mbed Microcontroller Library * Copyright (c) 2017-2019 ARM Limited * * SPDX-License-Identifier: MIT * * 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 restrict...
<commit_before>#include "videoframe_i420.h" #include <cstring> namespace gg { VideoFrame_I420::VideoFrame_I420(bool manage_data) : VideoFrame(manage_data) { } VideoFrame_I420::VideoFrame_I420(const size_t cols, const size_t rows) : gg::VideoFrame(true) { cv::Mat buffer = cv::Mat::zeros(rows, cols, CV_8U...
<commit_before>/* * Copyright (c) 2008-2016 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/ * * MRtrix is distributed in the hope that i...
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011-2016 Martin Raiber * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Licen...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
<commit_before>/* * Copyright (c) 2010, 2012-2013, 2015,2017-2019 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating *...
<commit_before>#include <iostream> #include <list> #include <string> #include <algebra/block_matrix.h> #include <algebra/matrix.h> #include <algebra/vector.h> using std::cout; using std::endl; using namespace MathTL; int main() { cout << "Testing the class BlockMatrix ..." << endl; BlockMatrix<double> defaultM; ...
<commit_before>// Copyright 2008, 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: // // 1. Redistributions of source code must retain the above copyright notice, // this list o...
<commit_before>////////////////////////////////////////////////////////////////////////// // // SneezyMUD - All rights reserved, SneezyMUD Coding Team // ////////////////////////////////////////////////////////////////////////// // commodity.cc #include "stdsneezy.h" #include "shop.h" #include "obj_commodity.h" #inc...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
<commit_before><commit_msg>Always play ChromeVox enabled/disabled sounds regardless of system sound enabled flag.<commit_after><|endoftext|>
<commit_before>#include "src/triangle.h" #define VERTEX_SWAP(v1, v2) { gfx_Vertex s = v2; v2 = v1; v1 = s; } // simplest case: will plot either a flat bottom or flat top triangles enum TriangleType { FLAT_BOTTOM, FLAT_TOP }; // internal: perform triangle rendering based on its type static void drawTriangleTy...
<commit_before>// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -verify -fsyntax-only -std=c++11 -fms-extensions %s #if !__has_feature(attribute_deprecated_with_replacement) #error "Missing __has_feature" #endif int a1 [[deprecated("warning", "fixit")]]; // expected-error{{'deprecated' attribute takes no more than 1 a...
<commit_before>#include "PNGRead.hpp" #include <memory> #include <cstdio> #include <png.h> namespace Slic3r { namespace png { struct PNGDescr { png_struct *png = nullptr; png_info *info = nullptr; PNGDescr() = default; PNGDescr(const PNGDescr&) = delete; PNGDescr(PNGDescr&&) = delete; PNGDescr&...
<commit_before>#include <osg/MatrixTransform> #include <osg/ClipNode> #include <osg/Billboard> #include <osg/Geode> #include <osg/Group> #include <osg/Notify> #include <osg/Material> #include <osg/PolygonOffset> #include <osg/PolygonMode> #include <osg/LineStipple> #include <osgDB/Registry> #include <osgDB/ReadFile> ...
<commit_before>/* Library to control the 74HC595 More info at http://bildr.org/?s=74hc595 */ #include "Arduino.h" #include "Shiftduino.h" int _dataPin; //pin 14 on the 75HC595 int _latchPin; //pin 12 on the 75HC595 int _clockPin; //pin 11 on the 75HC595 int _numOfRegisterPins; //number of c.i. in casca...
<commit_before>// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. #pragma once #include TYPE_INDEX_HEADER #include <string> #if __GNUG__ // Mac and linux #include <cxxabi.h> #include <cstdlib> #include MEMORY_HEADER #endif // // Demangle type names on mac and linux. // Just returns type_info.name() on ...
<commit_before>/* * Copyright 2009-2019 The VOTCA Development Team * (http://www.votca.org) * * Licensed under the Apache License, Version 2.0 (the "License") * * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
<commit_before>#ifndef DUNE_STUFF_RANGES_RANGES_HH #define DUNE_STUFF_RANGES_RANGES_HH #ifdef HAVE_CMAKE_CONFIG #include "cmake_config.h" #else #include "config.h" #endif // ifdef HAVE_CMAKE_CONFIG #if HAVE_DUNE_GRID #include <dune/stuff/common/disable_warnings.hh> #include <dune/grid/common/gridview.hh> #include...
<commit_before>/* Copyright (c) 2012, William Magato 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 notice, this list of condi...