0
  5   Cˆl–Ãa¾”Êe¶…	@àš¸!)‹Fÿ�þYVl¬´_iæ_xÏå929äÅá ¡    CPackage: sm
Type: Package
Title: Smoothing Methods for Nonparametric Regression and Density
        Estimation
Version: 2.2-5.7.1
Date: 2021-09-13
Author: Adrian Bowman and Adelchi Azzalini. 
         Ported to R by B. D. Ripley <ripley@stats.ox.ac.uk> up to version 2.0,
	      version 2.1 by Adrian Bowman and Adelchi Azzalini,
	      version 2.2 by Adrian Bowman.	 	 
Maintainer: Adrian Bowman <adrian.bowman@glasgow.ac.uk>
Depends: R (>= 3.1.0)
Suggests: rgl, misc3d, interp, gam, tkrplot, rpanel (>= 1.1-4), tcltk
Description: This is software linked to the book
  'Applied Smoothing Techniques for Data Analysis -
  The Kernel Approach with S-Plus Illustrations' Oxford University Press.
License: GPL (>= 2)
LazyData: TRUE
NeedsCompilation: yes
Packaged: 2022-07-04 08:59:51 UTC; ripley
Repository: CRAN
Date/Publication: 2022-07-04 11:29:42 UTC
Built: R 4.2.1; x86_64-pc-linux-gnu; 'Thu, 07 Jul 2022 19:24:22 -0500'; unix
  B   Eˆl–äY>”JeJe@†à¸Û*bÑ¿�þ[tY¹BáYI#Mùæ„„ó_å_ŠI|¥�+Wé3ž¯Çã ?÷     E# Copyright 2017-present Gregory Szorc <gregory.szorc@gmail.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

"""generate release notes from commit messages (EXPERIMENTAL)

It is common to maintain files detailing changes in a project between
releases. Maintaining these files can be difficult and time consuming.
The :hg:`releasenotes` command provided by this extension makes the
process simpler by automating it.
"""


import difflib
import re

from mercurial.i18n import _
from mercurial.pycompat import open
from mercurial.node import hex
from mercurial import (
    cmdutil,
    config,
    error,
    logcmdutil,
    minirst,
    pycompat,
    registrar,
    util,
)
from mercurial.utils import (
    procutil,
    stringutil,
)

cmdtable = {}
command = registrar.command(cmdtable)

try:
    # Silence a warning about python-Levenshtein.
    #
    # We don't need the the performance that much and it get anoying in tests.
    import warnings

    with warnings.catch_warnings():
        warnings.filterwarnings(
            action="ignore",
            message=".*python-Levenshtein.*",
            category=UserWarning,
            module="fuzzywuzzy.fuzz",
        )

        import fuzzywuzzy.fuzz as fuzz

        fuzz.token_set_ratio
except ImportError:
    fuzz = None

# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
testedwith = b'ships-with-hg-core'

DEFAULT_SECTIONS = [
    (b'feature', _(b'New Features')),
    (b'bc', _(b'Backwards Compatibility Changes')),
    (b'fix', _(b'Bug Fixes')),
    (b'perf', _(b'Performance Improvements')),
    (b'api', _(b'API Changes')),
]

RE_DIRECTIVE = re.compile(br'^\.\. ([a-zA-Z0-9_]+)::\s*([^$]+)?$', re.MULTILINE)
RE_ISSUE = br'\bissue ?[0-9]{4,6}(?![0-9])\b'

BULLET_SECTION = _(b'Other Changes')


class parsedreleasenotes:
    def __init__(self):
        self.sections = {}

    def __contains__(self, section):
        return section in self.sections

    def __iter__(self):
        return iter(sorted(self.sections))

    def addtitleditem(self, section, title, paragraphs):
        """Add a titled release note entry."""
        self.sections.setdefault(section, ([], []))
        self.sections[section][0].append((title, paragraphs))

    def addnontitleditem(self, section, paragraphs):
        """Adds a non-titled release note entry.

        Will be rendered as a bullet point.
        """
        self.sections.setdefault(section, ([], []))
        self.sections[section][1].append(paragraphs)

    def titledforsection(self, section):
        """Returns titled entries in a section.

        Returns a list of (title, paragraphs) tuples describing sub-sections.
        """
        return self.sections.get(section, ([], []))[0]

    d