<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 RRngtools(RPackage):
    """This package contains a set of functions for working with Random Number
    Generators (RNGs). In particular, it defines a generic S4 framework for
    getting/setting the current RNG, or RNG data that are embedded into objects
    for reproducibility. Notably, convenient default methods greatly facilitate
    the way current RNG settings can be changed."""

    homepage = "https://renozao.github.io/rngtools"
    url      = "https://cran.r-project.org/src/contrib/rngtools_1.2.4.tar.gz"
    list_url = "https://cran.r-project.org/src/contrib/Archive/rngtools"

    version('1.2.4', '715967f8b3af2848a76593a7c718c1cd')

    depends_on('r-pkgmaker', type=('build', 'run'))
    depends_on('r-stringr', type=('build', 'run'))<commit_msg>r-rngtools: add 1.3.1 (#10418)<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 RRngtools(RPackage):
    """This package contains a set of functions for working with Random Number
    Generators (RNGs). In particular, it defines a generic S4 framework for
    getting/setting the current RNG, or RNG data that are embedded into objects
    for reproducibility. Notably, convenient default methods greatly facilitate
    the way current RNG settings can be changed."""

    homepage = "https://renozao.github.io/rngtools"
    url      = "https://cran.r-project.org/src/contrib/rngtools_1.2.4.tar.gz"
    list_url = "https://cran.r-project.org/src/contrib/Archive/rngtools"

    version('1.3.1', sha256='763fc493cb821a4d3e514c0dc876d602a692c528e1d67f295dde70c77009e224')
    version('1.2.4', '715967f8b3af2848a76593a7c718c1cd')

    depends_on('r-pkgmaker', type=('build', 'run'))
    depends_on('r-stringr', type=('build', 'run'))
{'fraction_non_alphanumeric': 0.11435294117647059, 'fraction_numerical': 0.06352941176470588, 'mean_word_length': 4.198044009779951, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '3310895', 'n_tokens_mistral': 769, 'n_tokens_neox': 688, 'n_words': 192}