<commit_before>from approvaltests.reporters.generic_diff_reporter_factory import (
    GenericDiffReporterFactory,
)
from .python_native_reporter import PythonNativeReporter
from .first_working_reporter import FirstWorkingReporter
from .report_with_diff_command_line import ReportWithDiffCommandLine
from .report_with_vscode import ReportWithVSCode


class DiffReporter(FirstWorkingReporter):
    """
    The DiffReporter class goes through a chain of possible diffing tools,
    to find the first option installed on your system.

    If none are found, it falls back to writing the diffs on
    the console.

    At present, the default Reporter is the DiffReporter.
    """

    def __init__(self, reporter_factory=None):
        factory = reporter_factory or GenericDiffReporterFactory()

        reporters = list(factory.get_all_reporters_from_config())
        reporters.append(ReportWithVSCode())
        reporters.append(ReportWithDiffCommandLine())
        reporters.append(PythonNativeReporter())
        super(__class__, self).__init__(*reporters)
<commit_msg>R  extend<commit_after>from approvaltests.reporters.generic_diff_reporter_factory import (
    GenericDiffReporterFactory,
)
from .python_native_reporter import PythonNativeReporter
from .first_working_reporter import FirstWorkingReporter
from .report_with_diff_command_line import ReportWithDiffCommandLine
from .report_with_vscode import ReportWithVSCode


class DiffReporter(FirstWorkingReporter):
    """
    The DiffReporter class goes through a chain of possible diffing tools,
    to find the first option installed on your system.

    If none are found, it falls back to writing the diffs on
    the console.

    At present, the default Reporter is the DiffReporter.
    """

    def __init__(self, reporter_factory=None):
        factory = reporter_factory or GenericDiffReporterFactory()

        reporters = list(factory.get_all_reporters_from_config())
        reporters.extend([
            ReportWithVSCode(), 
            ReportWithDiffCommandLine(), 
            PythonNativeReporter()
        ])
        super(__class__, self).__init__(*reporters)

{'fraction_non_alphanumeric': 0.057998129092609915, 'fraction_numerical': 0.0, 'mean_word_length': 4.229828850855745, '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': '1774570', 'n_tokens_mistral': 575, 'n_tokens_neox': 559, 'n_words': 158}