<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 Adios2(CMakePackage):
    """Next generation of ADIOS developed in the Exascale Computing Program"""

    homepage = "https://www.olcf.ornl.gov/center-projects/adios/"
    url      = "https://github.com/ornladios/ADIOS2/archive/v2.0.0.tar.gz"
    git      = "https://github.com/ornladios/ADIOS2.git"

    maintainers = ['ax3l', 'chuckatkins']

    version('develop', branch='master')
    version('2.4.0', sha256='50ecea04b1e41c88835b4b3fd4e7bf0a0a2a3129855c9cc4ba6cf6a1575106e2')
    version('2.3.1', sha256='3bf81ccc20a7f2715935349336a76ba4c8402355e1dc3848fcd6f4c3c5931893')
    version('2.2.0', sha256='77058ea2ff7224dc02ea519733de42d89112cf21ffe7474fb2fa3c5696152948')
    version('2.1.0', sha256='d4df3b3035b4236b51c77b59d68e756e825834b2ea3cb17439927a027831453b')
    version('2.0.0', sha256='4eeedf4404824d8de6e4ef580b8a703c0aedb5c03f900f5ce6f85f0b35980135')

    variant('shared', default=True,
            description='Also build shared libraries')
    variant('pic', default=True,
            description='Enable position independent code '
                        '(for usage of static in shared downstream deps)')
    variant('mpi', default=True,
            description='Enable MPI')

    # transforms
    variant('blosc', default=True,
            description='Enable Blosc transforms')
    variant('bzip2', default=True,
            description='Enable BZip2 transforms')
    variant('zfp', default=True,
            description='Enable ZFP transforms')
    variant('png', default=True,
            description='Enable ZFP transforms')

    # sz is broken in 2.2.0: https://github.com/ornladios/ADIOS2/issues/705
    # variant('sz', default=True,
    #         description='Enable SZ compression')<commit_msg>ADIOS2: 2.5.0 (#12987)<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 Adios2(CMakePackage):
    """Next generation of ADIOS developed in the Exascale Computing Program"""

    homepage = "https://www.olcf.ornl.gov/center-projects/adios/"
    url      = "https://github.com/ornladios/ADIOS2/archive/v2.0.0.tar.gz"
    git      = "https://github.com/ornladios/ADIOS2.git"

    maintainers = ['ax3l', 'chuckatkins']

    version('develop', branch='master')
    version('2.5.0', sha256='7c8ff3bf5441dd662806df9650c56a669359cb0185ea232ecb3578de7b065329')
    version('2.4.0', sha256='50ecea04b1e41c88835b4b3fd4e7bf0a0a2a3129855c9cc4ba6cf6a1575106e2')
    version('2.3.1', sha256='3bf81ccc20a7f2715935349336a76ba4c8402355e1dc3848fcd6f4c3c5931893')
    version('2.2.0', sha256='77058ea2ff7224dc02ea519733de42d89112cf21ffe7474fb2fa3c5696152948')
    version('2.1.0', sha256='d4df3b3035b4236b51c77b59d68e756e825834b2ea3cb17439927a027831453b')
    version('2.0.0', sha256='4eeedf4404824d8de6e4ef580b8a703c0aedb5c03f900f5ce6f85f0b35980135')

    variant('shared', default=True,
            description='Also build shared libraries')
    variant('pic', default=True,
            description='Enable position independent code '
                        '(for usage of static in shared downstream deps)')
    variant('mpi', default=True,
            description='Enable MPI')

    # transforms
    variant('blosc', default=True,
            description='Enable Blosc transforms')
    variant('bzip2', default=True,
            description='Enable BZip2 transforms')
    variant('zfp', default=True,
            description='Enable ZFP transforms')
    variant('png', default=True,
            description='Enable ZFP transforms')

    # sz is broken in 2.2.0: https://github.com/ornladios/ADIOS2/issues/705
    # variant('sz', default=True,
    #         description='Enable SZ compression')
{'fraction_non_alphanumeric': 0.11907715207144628, 'fraction_numerical': 0.1458695112875217, 'mean_word_length': 3.9110840438489647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, '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': '7385741', 'n_tokens_mistral': 1717, 'n_tokens_neox': 1413, 'n_words': 235}