<commit_before>from __future__ import absolute_import
from __future__ import unicode_literals

import json

from behave import given
from behave import then
from behave import when

from paasta_tools.frameworks.task_store import MesosTaskParameters
from paasta_tools.frameworks.task_store import ZKTaskStore


@given('a ZKTaskStore')
def given_a_zktaskstore(context):
    context.task_store = ZKTaskStore(
        service_name='service',
        instance_name='instance',
        zk_hosts=context.system_paasta_config.get_zk_hosts(),
        zk_base_path='/task_store',
    )

    # clean up any old data
    for path in context.task_store.zk_client.get_children('/'):<commit_msg>fix itests for ZKTaskStore<commit_after>from __future__ import absolute_import
from __future__ import unicode_literals

import json

from behave import given
from behave import then
from behave import when

from paasta_tools.frameworks.task_store import MesosTaskParameters
from paasta_tools.frameworks.task_store import ZKTaskStore


@given('a ZKTaskStore')
def given_a_zktaskstore(context):
    context.task_store = ZKTaskStore(
        service_name='service',
        instance_name='instance',
        system_paasta_config=context.system_paasta_config,
        framework_id='testing_zk_task_store',
    )

    # clean up any old data
    for path in context.task_store.zk_client.get_children('/'):
{'fraction_non_alphanumeric': 0.06666666666666667, 'fraction_numerical': 0.0, 'mean_word_length': 4.851694915254237, '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': '4906346', 'n_tokens_mistral': 420, 'n_tokens_neox': 407, 'n_words': 100}