<commit_before># -*- coding: utf-8 -*-

"""
    sphinxcontrib.chapeldomain
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    The Chapel language domain.

    :copyright: Copyright 2015 by Chapel Team
    :license: Apache v2.0, see LICENSE for details.

    Chapel website: http://chapel.cray.com/
    Chapel spec:    http://chapel.cray.com/language.html

"""

import re

from docutils import nodes
from docutils.parsers.rst import directives
from six import iteritems

from sphinx import addnodes
from sphinx.directives import ObjectDescription
from sphinx.domains import Domain, Index, ObjType
from sphinx.locale import _
from sphinx.roles import XRefRole
from docutils.parsers.rst import Directive
from sphinx.util.docfields import Field, GroupedField, TypedField
from sphinx.util.nodes import make_refnode

from sphinxcontrib.chapeldomain.chapel import ChapelLexer

VERSION = '0.0.20'


# regex for parsing proc, iter, class, record, etc.
chpl_sig_pattern = re.compile(
    r"""^ ((?:\w+\s+)*                        # optional: prefixes
           (?:proc|iter|class|record)\s+      #   must end with keyword
           (?:type\s+|param\s+)?              # optional: type or param method
          )?
          ([\w$.]*\.)?                        # class name(s)
          ([\w\+\-/\*$\<\=\>\!]+)  \s*        # function or method name
          (?:\((.*?)\))?                      # optional: arguments
          (\s+(?:const\s)? \w+|               #   or return intent
           \s* : \s* [^:]+|                   #   or return type
           \s+(?:const\s)? \w+\s* : \s* [^:]+ #   or return intent and type
          )?
          $""", re.VERBOSE)<commit_msg>Update the version number for next release ahead of time<commit_after># -*- coding: utf-8 -*-

"""
    sphinxcontrib.chapeldomain
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    The Chapel language domain.

    :copyright: Copyright 2015 by Chapel Team
    :license: Apache v2.0, see LICENSE for details.

    Chapel website: http://chapel.cray.com/
    Chapel spec:    http://chapel.cray.com/language.html

"""

import re

from docutils import nodes
from docutils.parsers.rst import directives
from six import iteritems

from sphinx import addnodes
from sphinx.directives import ObjectDescription
from sphinx.domains import Domain, Index, ObjType
from sphinx.locale import _
from sphinx.roles import XRefRole
from docutils.parsers.rst import Directive
from sphinx.util.docfields import Field, GroupedField, TypedField
from sphinx.util.nodes import make_refnode

from sphinxcontrib.chapeldomain.chapel import ChapelLexer

VERSION = '0.0.21'


# regex for parsing proc, iter, class, record, etc.
chpl_sig_pattern = re.compile(
    r"""^ ((?:\w+\s+)*                        # optional: prefixes
           (?:proc|iter|class|record)\s+      #   must end with keyword
           (?:type\s+|param\s+)?              # optional: type or param method
          )?
          ([\w$.]*\.)?                        # class name(s)
          ([\w\+\-/\*$\<\=\>\!]+)  \s*        # function or method name
          (?:\((.*?)\))?                      # optional: arguments
          (\s+(?:const\s)? \w+|               #   or return intent
           \s* : \s* [^:]+|                   #   or return type
           \s+(?:const\s)? \w+\s* : \s* [^:]+ #   or return intent and type
          )?
          $""", re.VERBOSE)
{'fraction_non_alphanumeric': 0.14938751120406335, 'fraction_numerical': 0.006573050492978787, 'mean_word_length': 2.1407129455909946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3615373', 'n_tokens_mistral': 1066, 'n_tokens_neox': 980, 'n_words': 282}