<commit_before>from selenium import webdriver


def before_all(context):
    context.browser = webdriver.Firefox()


def after_all(context):
    context.browser.quit()


def before_feature(context, feature):
    pass<commit_msg>Fix BDD test<commit_after>from selenium import webdriver
from time import sleep


def before_all(context):
    context.browser = webdriver.Firefox()


def after_all(context):
    sleep(1)
    context.browser.close()  # Use close instead of quit (because quit gives error)
    context.browser = None


def before_feature(context, feature):
    pass
{'fraction_non_alphanumeric': 0.08869565217391304, 'fraction_numerical': 0.0017391304347826088, 'mean_word_length': 4.485714285714286, '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': '3479028', 'n_tokens_mistral': 176, 'n_tokens_neox': 164, 'n_words': 47}