<commit_before># disable missing docstring
#pylint: disable=C0111

from lettuce import world, step


@step('I have created a Discussion Tag$')
def i_created_discussion_tag(step):
    world.create_component_instance(
        step, '.large-discussion-icon',
        'discussion',
        '.xmodule_DiscussionModule',
        has_multiple_templates=False
    )


@step('I see three alphabetized settings and their expected values$')
def i_see_only_the_settings_and_values(step):
    world.verify_all_setting_entries(
        [
            ['Category', "Week 1", False],
            ['Display Name', "Discussion Tag", False],
            ['Subcategory', "Topic-Level Student-Visible Label", False]
        ])


@step('creating a discussion takes a single click')
def discussion_takes_a_single_click(step):
    assert(not world.is_css_present('.xmodule_DiscussionModule'))
    world.css_click("a[data-category='discussion']")<commit_msg>Fix failing acceptance test<commit_after># disable missing docstring
#pylint: disable=C0111

from lettuce import world, step


@step('I have created a Discussion Tag$')
def i_created_discussion_tag(step):
    world.create_component_instance(
        step, '.large-discussion-icon',
        'discussion',
        '.xmodule_DiscussionModule',
        has_multiple_templates=False
    )


@step('I see three alphabetized settings and their expected values$')
def i_see_only_the_settings_and_values(step):
    world.verify_all_setting_entries(
        [
            ['Category', "Week 1", False],
            ['Display Name', "Discussion", False],
            ['Subcategory', "Topic-Level Student-Visible Label", False]
        ])


@step('creating a discussion takes a single click')
def discussion_takes_a_single_click(step):
    assert(not world.is_css_present('.xmodule_DiscussionModule'))
    world.css_click("a[data-category='discussion']")
{'fraction_non_alphanumeric': 0.11099252934898612, 'fraction_numerical': 0.005336179295624333, 'mean_word_length': 3.9472295514511875, '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': '5322378', 'n_tokens_mistral': 557, 'n_tokens_neox': 526, 'n_words': 127}