<commit_before>import os
import collections
import subprocess
import logging
log = logging.getLogger(__name__)

import MooseDocs
from MooseInformationBase import MooseInformationBase
from MooseObjectParameterTable import MooseObjectParameterTable

class MooseObjectInformation(MooseInformationBase):
    """
    Object for generating documentation for a MooseObject.

    Args:
        yaml: The YAML node for this object.
        src[Tuple]: The source files for this object (i.e., *.h/*.C files).

    Kwargs:
        inputs[MooseDocs.Database]: A database of input files using an object.
        children[MooseDocs.Database]: A database of source files that inherit from the object.
    """


    def __init__(self, yaml, src, **kwargs):
        MooseInformationBase.__init__(self, yaml, **kwargs)

        # Member variables
        self._src = src
        self._inputs = kwargs.pop('inputs', None)
        self._children = kwargs.pop('children', None)
        self._name = yaml['name'].split('/')[-1]
        self._description = yaml['description']

        # Locate the root directory
        output = subprocess.check_output(['git', 'rev-parse', '--git-dir'], stderr=subprocess.STDOUT)
        self._root = os.path.dirname(output)

        # Create the tables (generate 'Required' and 'Optional' initially so that they come out in the proper order)
        self._tables = collections.OrderedDict()
        self._tables['Required'] = MooseObjectParameterTable()
        self._tables['Optional'] = MooseObjectParameterTable()

        for param in yaml['parameters']:
            name = param['group_name']
            if not name and param['required']:
                name = 'Required'
            elif not name and not param['required']:
                name = 'Optional'

            if name not in self._tables:
                self._tables[name] = MooseObjectParameterTable()

            self._tables[name].addParam(param)


    @staticmethod
    def filename(name):<commit_msg>Fix no parameters bug (#7419)<commit_after>import os
import collections
import subprocess
import logging
log = logging.getLogger(__name__)

import MooseDocs
from MooseInformationBase import MooseInformationBase
from MooseObjectParameterTable import MooseObjectParameterTable

class MooseObjectInformation(MooseInformationBase):
    """
    Object for generating documentation for a MooseObject.

    Args:
        yaml: The YAML node for this object.
        src[Tuple]: The source files for this object (i.e., *.h/*.C files).

    Kwargs:
        inputs[MooseDocs.Database]: A database of input files using an object.
        children[MooseDocs.Database]: A database of source files that inherit from the object.
    """


    def __init__(self, yaml, src, **kwargs):
        MooseInformationBase.__init__(self, yaml, **kwargs)

        # Member variables
        self._src = src
        self._inputs = kwargs.pop('inputs', None)
        self._children = kwargs.pop('children', None)
        self._name = yaml['name'].split('/')[-1]
        self._description = yaml['description']

        # Locate the root directory
        output = subprocess.check_output(['git', 'rev-parse', '--git-dir'], stderr=subprocess.STDOUT)
        self._root = os.path.dirname(output)

        # Create the tables (generate 'Required' and 'Optional' initially so that they come out in the proper order)
        self._tables = collections.OrderedDict()
        self._tables['Required'] = MooseObjectParameterTable()
        self._tables['Optional'] = MooseObjectParameterTable()

        for param in yaml['parameters'] or []:
            name = param['group_name']
            if not name and param['required']:
                name = 'Required'
            elif not name and not param['required']:
                name = 'Optional'

            if name not in self._tables:
                self._tables[name] = MooseObjectParameterTable()

            self._tables[name].addParam(param)


    @staticmethod
    def filename(name):
{'fraction_non_alphanumeric': 0.10119940029985007, 'fraction_numerical': 0.0014992503748125937, 'mean_word_length': 2.8087535680304474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5439614', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1026, 'n_words': 316}