<commit_before>from behave_cli.expect.steps import *
from behave_cli.files.steps import *
from behave_cli.api.steps import *
from behave_cli.s3mock.steps import *
from behave_cli.s3mock import setup as s3setup
from behave_cli.s3mock import teardown as s3teardown


def mp_setup(ctx):
    s3setup(ctx)


def mp_teardown(ctx):
    s3teardown(ctx)<commit_msg>Recreate mock S3 buckets when spawning test procs<commit_after>from behave_cli.expect.steps import *
from behave_cli.files.steps import *
from behave_cli.api.steps import *
from behave_cli.s3mock.steps import *
from behave_cli.s3mock import setup as s3setup
from behave_cli.s3mock import teardown as s3teardown
from behave_cli.s3mock.steps import s3bucket_named


def mp_setup(ctx):
    buckets = ctx.buckets  # save buckets before setup resets them
    s3setup(ctx)
    if len(buckets):
        for bucket in buckets:
            s3bucket_named(ctx, bucket)


def mp_teardown(ctx):
    s3teardown(ctx)
{'fraction_non_alphanumeric': 0.06889352818371608, 'fraction_numerical': 0.018789144050104383, 'mean_word_length': 4.575581395348837, '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': '1329913', 'n_tokens_mistral': 333, 'n_tokens_neox': 322, 'n_words': 86}