<commit_before>from behave import *
from tdl.client import Client

use_step_matcher("re")

# ~~~~~ Setup


@given("I start with a clean broker")
def create_the_queues(context):
    request_queue = context.broker.add_queue('test.req')
    request_queue.purge()
    response_queue = context.broker.add_queue('test.resp')
    response_queue.purge()
    stomp_port = '21613'
    username = 'test'
    context.client = Client('localhost', stomp_port, username)


@given("the broker is not available")
def client_with_wrong_broker(context):
    pass<commit_msg>Moved hostname into variable.<commit_after>from behave import *
from tdl.client import Client

use_step_matcher("re")

# ~~~~~ Setup


@given("I start with a clean broker")
def create_the_queues(context):
    request_queue = context.broker.add_queue('test.req')
    request_queue.purge()
    response_queue = context.broker.add_queue('test.resp')
    response_queue.purge()
    hostname = 'localhost'
    stomp_port = '21613'
    username = 'test'
    context.client = Client(hostname, stomp_port, username)


@given("the broker is not available")
def client_with_wrong_broker(context):
    pass
{'fraction_non_alphanumeric': 0.11826086956521739, 'fraction_numerical': 0.008695652173913044, 'mean_word_length': 4.755, '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': '2318022', 'n_tokens_mistral': 388, 'n_tokens_neox': 372, 'n_words': 82}