text
stringlengths
54
60.6k
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>#include "HCUBE_Defines.h" #include "Experiments/HCUBE_AtariExperiment.h" #include <boost/foreach.hpp> #include <boost/lexical_cast.hpp> using namespace NEAT; namespace HCUBE { AtariExperiment::AtariExperiment(string _experimentName,int _threadID): Experiment(_experimentName,_threadID), vi...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before> /* * Stream.cpp * sfeMovie project * * Copyright (C) 2010-2014 Lucas Soltic * [email protected] * * This program 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>#include "GraphML.h" #include "DirectedGraph.h" #include "UndirectedGraph.h" #include <tinyxml2.h> #include <Table.h> #include <cassert> #include <map> #include <iostream> using namespace std; using namespace tinyxml2; GraphML::GraphML() : FileTypeHandler("GraphML", true) { addExtension("graphml")...
<commit_before> #include <stdio.h> #include <string.h> #include <errno.h> #include <sstream> #include "liblogger.h" namespace liblogger { LogFile::LogFile(const std::string fname) : m_fname(fname) { m_fp = fopen(m_fname.c_str(), "a"); if (m_fp == NULL) { std::stringstream ss; ss << "Cannot open file: '" << m...
<commit_before>#include "Louvain.h" #include <Graph.h> #include <iostream> #include <cassert> #include <unordered_set> using namespace std; Louvain::Louvain(Graph * _g, int _max_num_passes, double _min_modularity, bool _create_node_clusters, bool _create_edge_clusters) : g(_g), max_num_passes(_max_num_pass...
<commit_before>// Copyright (c) M5Stack. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "M5Stack.h" M5Stack::M5Stack() : isInited(0) { } void M5Stack::begin(bool LCDEnable, bool SDEnable, bool SerialEnable, bool I2CEnable) { // Co...
<commit_before>#include "MyServo.h" #include <Arduino.h> MyServo::MyServo(int pin): pin(pin), servo() {} void MyServo::setUp() { this->servo.attach(this->pin); } void MyServo::updateFromAnalog(AnalogInput& input) { int rawVal = input.read(-100, 100); int finalVal = rawVal / 10; this->servo.write(this->servo....
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // 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>#ifndef RADIAL_PAIRED_COORDINATES_VISUALIZATION_METHOD_HPP #define RADIAL_PAIRED_COORDINATES_VISUALIZATION_METHOD_HPP #include "LotsOfLines/IVisualizationMethod.hpp" namespace LotsOfLines { class RadialPairedCoordinatesVisualizationMethod : public IVisualizationMethod { public: VISUALIZATION_METHO...
<commit_before>// Program.cpp #include "stdafx.h" #include "Program.h" #include "PythonStuff.h" #include "tinyxml/tinyxml.h" #include "ProgramCanvas.h" #include "NCCode.h" #include "interface/MarkedObject.h" #include "interface/PropertyString.h" #include "interface/PropertyChoice.h" #include "interface/Tool.h...
<commit_before>#include "RThread.h" #include "REventLoop.h" #include "RForwardList.h" #include "RSpinLocker.h" class RThreadPrivate { public: static void run(void *arg); }; // FIXME: Thread list not guarded by mutex now ! static RForwardList<RThread *> sThreads; void RThreadPrivate::run(void *arg) { RThread *th...
<commit_before>#ifndef SAPLIST_HPP #define SAPLIST_HPP 1 #include <functional> #include <map> #include <typeinfo> #include <climits> #include "CollisionManager.hpp" class Collisionable { public: virtual int getXMin() = 0; virtual int getYMin() = 0; virtual int getXMax() = 0; virtual int getYMax() = 0;...
<commit_before>/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <[email protected]> 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 r...
<commit_before>// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON) // Copyright 2017 Netherlands eScience Center // // 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>/* * Vector2.cpp * * Created on: 21/12/2013 * Author: vitor */ #include "Vector2.h" Vector2::Vector2(float x, float y) { this->x = x; this->y = y; } Vector2::~Vector2() { } Vector2 Vector2::operator +(Vector2 other) { return Vector2(this->x + other.x, this->y + other.y); } void Vector2...
<commit_before>// Copyright (c) 2016 2017 2018 Jon Taylor // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "blockdb.h" #include <sstream> #include <unistd.h> // open and close #include "leveldb/db.h" #include "platform...
<commit_before>#include "bxsplit.h" #include "bxcommon.h" #include <string> #include <getopt.h> #include <iostream> #include <sstream> #include "SeqLib/BamReader.h" #include "SeqLib/BamWriter.h" struct BXTag { SeqLib::BamWriter w; size_t count = 0; SeqLib::BamRecordVector buff; }; namespace opt { static s...
<commit_before>/* cclive * Copyright (C) 2010-2011 Toni Gundogdu <[email protected]> * * 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 3 of the License, or * (at your optio...
<commit_before>#ifndef DICE_CHECKED_HPP_ #define DICE_CHECKED_HPP_ #include <limits> #include <stdexcept> namespace dice { // Check for arithmetic errors template<typename T, bool is_signed = std::numeric_limits<T>::is_signed> class checked; // signed value specialization template<typename T> ...
<commit_before>/** * @file command.cpp * @brief Request command component * * (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 set forth in ...
<commit_before>#include <iostream> #include <fstream> #include <sstream> #include <map> #include <functional> using namespace std; namespace { namespace io { enum token_type { REG, NN }; ofstream outfile; ifstream infile; void exit_ok() { infile.close(); outfile.close(); exit(0); } void exit_err(string...
<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 "base/command_line.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/ref_counted.h" #include "base/sco...
<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 <vector> #include "chrome/browser/browser.h" #include "chrome/browser/history/history.h" #include "chrome/browser/prefs/pref_...
<commit_before>// Copyright (c) 2006-2009 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. // // This file defines a class that contains various method related to branding. // It provides only default implementations of th...
<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/constrained_window_views.h" #include "views/widget/native_widget_views.h" class NativeConstrainedWi...
<commit_before>#include "LocalCluster.hpp" #include "TelegramServer.hpp" #include "RemoteServerConnection.hpp" #include "Storage.hpp" #include "TelegramServerUser.hpp" #include "DefaultAuthorizationProvider.hpp" #include <QLoggingCategory> Q_LOGGING_CATEGORY(c_loggingClusterCategory, "telegram.server.cluster", QtWar...
<commit_before> #include <gtest/gtest.h> #include <Unittests/unittests_common.hh> #include <OpenMesh/Tools/Decimater/DecimaterT.hh> #include <OpenMesh/Tools/Decimater/ModQuadricT.hh> namespace { class OpenMeshDecimater : public OpenMeshBase { protected: // This function is called before each test is run...
<commit_before>/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.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 ob...
<commit_before>#include <iostream> #include <list> #include <gmpxx.h> #define BITSET_SIZE 64 class DivisorGenerator { private: std::list<mpz_class> divisors; std::string divisorsCSV; const mpz_class dividend; const mpz_class firstValueToTest; const int count; void computeDivisors(); void computeDivisorsCSV();...
<commit_before>#if !defined (__CINT__) || (defined(__MAKECINT__)) #include <iostream> #include "TObject.h" #include "AliVEvent.h" #include "AliAnalysisTaskdNdEtapp13.h" #include "AliAnalysisManager.h" #include "TProof.h" #include "TFile.h" #include "TROOT.h" #endif const Double_t centBinsMultV0MSPD[] = {1e-10, 1., 5....
<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) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge,...
<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 "views/touchui/touch_factory.h" #include <gtk/gtk.h> #include <gdk/gdkx.h> #include <X11/cursorfont.h> #include <X11/extensio...
<commit_before>/* String is constructed with these four characters: * w - represents wolf * s - represents sheep * . - represents empty space * # - represents fence * Write out how many sheeps have been slaughtered. * * For example: * #.vov#o.o#.v#o.v.o#v * Only two sheeps in between fence #o.o# will survive....
<commit_before>#include "PidProbabilityMapper.h" #include "PidPhaseSpace.h" #include "TSF/FitRunner.h" #include "TH1D.h" PidProbabilityMapper::PidProbabilityMapper( XmlConfig * _cfg, string _nodePath ) : HistoAnalyzer( _cfg, _nodePath ){ logger->setClassSpace( "PidProbabilityMapper" ); // set up the binning bins...
<commit_before>// -*- c++ -*- /*========================================================================= Program: Visualization Toolkit Module: SLACParticleReader.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm ...
<commit_before>#include "shape/compound.h" #define rb_array_p(x) RB_TYPE_P(x, T_ARRAY) VALUE sr_cCompound; SR_SHAPE_GET(Compound, compound) SR_SHAPE_CHECK(Compound, compound) bool siren_compound_install() { SR_SHAPE_INIT(Compound) rb_define_method(sr_cCompound, "initialize", RUBY_METHOD_FUNC(siren_compound_init...
<commit_before>#ifndef VOXEL_MATH_VECTOR3_H #define VOXEL_MATH_VECTOR3_H namespace math { template <typename Ty> struct basic_vector3 { typedef Ty scalar; basic_vector3() {} basic_vector3(const basic_vector3 &copy) : x(copy.x), y(copy.y), z(copy.z) {} basic_vector3(scalar x, scalar y, scalar z) : x(x), y(y), z(z...
<commit_before>/* ------------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2014-2019 Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
<commit_before><commit_msg>attempt to fix web build<commit_after><|endoftext|>
<commit_before>//===- CGSCCPassManager.cpp - Managing & running CGSCC passes -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/// @file characterUtilities.cpp /// @author Enrico Fraccaroli /// @date Jan 29 2017 /// @copyright /// Copyright (c) 2017 Enrico Fraccaroli <[email protected]> /// Permission is hereby granted, free of charge, to any person obtaining a /// copy of this software and associated documentation...
<commit_before><commit_msg>adding header support<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2015 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 "telnetpp/routing_visitor.hpp" #include "telnetpp/options/naws/client.hpp" #include "telnetpp/options/naws.hpp" #include "telnetpp/protocol.hpp" #include "expect_elements.hpp" #include <cppunit/TestFixture.h> #include <cppunit/extensions/HelperMacros.h> class routing_visitor_test : public CppUn...
<commit_before>// Copyright (c) 2021 The Orbit 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 "SessionSetup/TargetLabel.h" #include <QAction> #include <QDesktopServices> #include <QImage> #include <QMenu> #include <QPalett...
<commit_before>/* Copyright (C) 2014-2015 Alexandr Akulich <[email protected]> This file is a part of TelegramQt library. 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 Foundatio...
<commit_before>/////////////////////////////////////////////////////////////// //Generates forwarding headers using the information //in the header.lst & vendor.lst files // //To create a header list from an existing directory of headers //dir *.h /b > headers.lst #include <iostream> #include <fstream> #include <strin...
<commit_before>// Copyright 2013-2015 Eric Schkufza, Rahul Sharma, Berkeley Churchill, Stefan Heule // // 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/license...
<commit_before>// Copyright (c) 2020 The Orbit 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 "OrbitClientServices/ProcessClient.h" #include "OrbitBase/Logging.h" #include "grpcpp/grpcpp.h" #include "outcome.hpp" #include ...
<commit_before>//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2014 Paul T. Bauman, Roy H. Stogner // Copyright (C) 2010-2013 The PE...
<commit_before>#include "qextserialport.h" #include "qextserialenumerator.h" #include "dialog.h" #include "ui_dialog.h" #include <QtCore> #include <QDebug> #include <QFileDialog> #include <QThread> #include <QNetworkRequest> #include <QNetworkReply> #include <QStandardPaths> #include <QFileInfo> #include <QApplication>...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <folly/ScopeGuard.h> #include <quic/dsr/frontend/WriteFunctions.h> namespace quic { uint64_t writePacket...
<commit_before>// Copyright 2015 Patrick Putnam // // 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 a...
<commit_before>/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, thi...
<commit_before>#include <cstring> #include <string> #include <turbo/ipc/posix/pipe.hpp> #include <turbo/filesystem/path.hpp> #include <turbo/process/status.hpp> #include <turbo/process/posix/spawn.hpp> #include <gtest/gtest.h> namespace tf = turbo::filesystem; namespace tip = turbo::ipc::posix; namespace tpp = turbo::...
<commit_before>//===-- MachineLICM.cpp - Machine Loop Invariant Code Motion Pass ---------===// // // 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) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * ver...
<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) 2000-2013 Torus Knot Software Ltd Permission is hereby granted, free of cha...
<commit_before>#include "ResNinePatch.hpp" #include "../App.hpp" #include "../util/util.hpp" using namespace morda; namespace{ class ResSubImage : public ResImage, public ResImage::QuadTexture{ friend class ResImage; std::shared_ptr<ResImage::QuadTexture> tex; std::array<Vec2r, 4> texCoords; Vec2r dim_v...
<commit_before>// // Created by FyS on 30/05/17. // #include <spdlog/spdlog.h> #include <TokenGenerator.hh> #include <TcpConnection.hh> #include <FySMessage.pb.h> #include "SessionManager.hh" fys::network::SessionManager::SessionManager(const uint size) : _connections(size), _connectionsToken(size) {} uint fys::netw...
<commit_before>#include <stdlib.h> #include "ZWaveModule.h" #include "azure_c_shared_utility/threadapi.h" #include "azure_c_shared_utility/xlogging.h" #include "azure_c_shared_utility/crt_abstractions.h" #include "messageproperties.h" #include "message.h" #include "module.h" #include "broker.h" #include <parson.h> ...
<commit_before>//===--- Immediate.cpp - the swift immediate mode -------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/* bzflag * Copyright (c) 1993 - 2008 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>#include <algorithm> #include <cstring> #include <limits> #include <memory> #include <android/log.h> #include <boost/format.hpp> #include <boost/utility.hpp> #include <tbb/blocked_range2d.h> #include <tbb/parallel_for.h> #include <tbb/task_scheduler_init.h> #include "body_parts_recognizer.h" #include...
<commit_before>#include "json.h" using namespace std; // Value JsonValue * JsonValue::fromString(string message){ int i = 0; return JsonValue::fromString(message, i); } JsonValue * JsonValue::fromString(string message, int &i){ while(i < message.length()){ i += skip_whitespace(message, i); ...
<commit_before><commit_msg>removed unused variables<commit_after><|endoftext|>
<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. // // See the corresponding header file for description of the functions in this // file. #include "chrome/installer/util/install_...
<commit_before>/*- * Copyright (c) 2009, Ascent Group. * 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> /// ********************************************************************************* /// ********************************************************************************* /// EMSCRIPTEN (for javascript) /// ****************************************************************************...
<commit_before> /// ********************************************************************************* /// ********************************************************************************* /// EMSCRIPTEN (for javascript) /// ****************************************************************************...
<commit_before>/* =========================================================================== daemon gpl source code copyright (c) 2013 unvanquished developers this file is part of the daemon gpl source code (daemon source code). daemon source code is free software: you can redistribute it and/or modify it under the...
<commit_before>#include "FAST/Testing.hpp" #include "AirwaySegmentation.hpp" #include "FAST/Importers/ImageFileImporter.hpp" #include "FAST/Algorithms/SurfaceExtraction/SurfaceExtraction.hpp" #include "FAST/Algorithms/CenterlineExtraction/CenterlineExtraction.hpp" #include "FAST/Visualization/MeshRenderer/MeshRenderer....
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 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>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the Qt Creator. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Co...
<commit_before>#include "classes.h" #include "win.h" #include <sycl.hpp> #include <chrono> #include <iostream> #include <string> #include <vector> #include <memory> using std::string; extern void compute_org(void*, int w, int h, int samps, Ray& cam, Vec& cx, Vec& cy, Vec r, Vec* c); extern void compute_org_openmp(...
<commit_before>/* * #%L * %% * Copyright (C) 2011 - 2017 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>// ========================================================================== // // This file is part of Sara, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2018 David Ok <[email protected]> // // This Source Code Form is subject to the terms of the Mozilla Public // Licen...
<commit_before>// Copyright 2022 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 o...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2011, Image Engine Design Inc. All rights reserved. // Copyright (c) 2012, John Haddon. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are per...
<commit_before>#pragma once //=====================================================================// /*! @file @brief libmad を使った MP3 デコード・クラス @n ※このクラスを使うには、libmad ライブラリーが必要 @author 平松邦仁 ([email protected]) @copyright Copyright (C) 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://...
<commit_before>//needed for testing #define CATCH_CONFIG_RUNNER #include <catch.hpp> //other stuff needed #include <glm/vec3.hpp> #include <cmath> #include <iostream> //include classes for testing #include "shape.hpp" #include "sphere.hpp" #include "box.hpp" #include "material.hpp" #include "color.hpp" // ----------...
<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/browser/notifications/desktop_notification_service.h" #include "base/task.h" #include "base/waitable_event.h" #includ...
<commit_before>// ========================================================================== // // This file is part of Sara, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2019 David Ok <[email protected]> // // This Source Code Form is subject to the terms of the Mozilla Public // Licen...
<commit_before>void sink(const char *); void sink(int); struct S { void(*f)(const char*); void apply(char* p) { f(p); } void (*get())(const char*) { return f; } }; void calls_sink_with_argv(const char* a) { sink(a); } extern int i; class BaseWithPureVirtual { public: vi...
<commit_before>/* Copyright (C) 1995-2002 MySQL AB 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 program...
<commit_before>#include "cvolumeenumerator.h" #include "volumeinfohelper.hpp" DISABLE_COMPILER_WARNINGS #include <QDir> RESTORE_COMPILER_WARNINGS const std::vector<VolumeInfo> CVolumeEnumerator::enumerateVolumesImpl() { std::vector<VolumeInfo> volumes; for (const QString& volumeName: QDir("/Volumes/").entryList(QD...
<commit_before>// Copyright 2021 Google LLC #include <chrono> // NOLINT(build/c++11) #include <thread> // NOLINT(build/c++11) #include "Firestore/core/src/auth/empty_credentials_provider.h" #include "absl/memory/memory.h" #include "app_framework.h" #include "firebase/app.h" #include "firebase/firestore.h" #include ...
<commit_before>/*************************************************************************** * Copyright (c) Juergen Riegel ([email protected]) 2014 * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // 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>/*---------------------------------------------------------------------\ | | | _ _ _ _ __ _ | | | | | | | \_/ | / \ | | | | ...
<commit_before>#include <Refal2.h> namespace Refal2 { //----------------------------------------------------------------------------- class CRulePrintHelper : public CPrintHelper { public: CRulePrintHelper( const CPrintHelper& _printHelper, const CVariables& _variables ) : printHelper( _printHelper ), variab...
<commit_before>#include <iomanip> #include <boost/format.hpp> #include "prefix.hpp" #include "util.hpp" #include "stream.hpp" #include "streamindent.hpp" #include "printing.hpp" #include "Function.hpp" #include <regex> namespace autobind { namespace { const boost::format FunctionPrototype{ "static PyObject *%s(...
<commit_before>#ifndef QUANT_PDE_FUNCTION_HPP #define QUANT_PDE_FUNCTION_HPP #include <cstring> // std::memcpy namespace QuantPDE { /** * Represents a function \f$f\f$ defined on some domain. */ class Function { virtual Real get(const Real *) const = 0; public: /** * @param coordinates Coordinates \f$\left\...
<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>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2012, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
<commit_before>/*========================================================================= * * Copyright 2011-2013 The University of North Carolina at Chapel Hill * All rights reserved. * * Licensed under the MADAI Software License. You may obtain a copy of * this license at * * https://madai-public...
<commit_before>/* Copyright 2008 Brain Research Institute, Melbourne, Australia Written by J-Donald Tournier, 27/06/08. This file is part of MRtrix. MRtrix 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 Sof...