<commit_before># Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class PyPathos(PythonPackage):
    """Parallel graph management and execution in heterogeneous computing """

    homepage = "https://github.com/uqfoundation/pathos"
    url      = "https://pypi.io/packages/source/p/pathos/pathos-0.2.0.zip"

    version('0.2.0', sha256='2f4e67e7914c95fb0cce766bab173eb2c5860ee420108fa183099557ac2e50e9')

    depends_on('python@2.6:2.8,3.1:')

    depends_on('py-setuptools@0.6:', type='build')
    depends_on('py-multiprocess@0.70.4:', type=('build', 'run'))
    depends_on('py-pox@0.2.2:', type=('build', 'run'))
    depends_on('py-ppft@1.6.4.5:', type=('build', 'run'))
    depends_on('py-dill@0.2.5:', type=('build', 'run'))<commit_msg>Fix py-pathos source file extension (#14080)<commit_after># Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class PyPathos(PythonPackage):
    """Parallel graph management and execution in heterogeneous computing """

    homepage = "https://github.com/uqfoundation/pathos"
    url      = "https://pypi.io/packages/source/p/pathos/pathos-0.2.3.tar.gz"

    version('0.2.3', sha256='954c5b0a8b257c375e35d311c65fa62a210a3d65269195557de38418ac9f61f9')
    version('0.2.0', sha256='2f4e67e7914c95fb0cce766bab173eb2c5860ee420108fa183099557ac2e50e9')

    depends_on('python@2.6:2.8,3.1:')

    depends_on('py-setuptools@0.6:', type='build')
    depends_on('py-multiprocess@0.70.7:', type=('build', 'run'))
    depends_on('py-pox@0.2.5:', type=('build', 'run'))
    depends_on('py-ppft@1.6.4.9:', type=('build', 'run'))
    depends_on('py-dill@0.2.9:', type=('build', 'run'))

    def url_for_version(self, version):
        url = self.url.rsplit('/', 1)[0]
        if version >= Version('0.2.2'):
            url += '/pathos-{0}.tar.gz'
        else:
            url += '/pathos-{0}.zip'

        url = url.format(version)
        return url
{'fraction_non_alphanumeric': 0.1729119638826185, 'fraction_numerical': 0.10248306997742664, 'mean_word_length': 3.990990990990991, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4225522', 'n_tokens_mistral': 948, 'n_tokens_neox': 851, 'n_words': 140}