<commit_before>__author__ = '<NAME>'

import inspect
import random
from datetime import datetime, timedelta

from db.manager import ds_manager
from db.dao.single_session_dao import SingleSessionDao
from db.dao.unit_of_work_dao import UnitOfWorkDao
from db.model import unit_of_work
from db.model.unit_of_work import UnitOfWork
from db.model.single_session import SingleSession
from system import time_helper
from system.process_context import ProcessContext
from tests.ut_process_context import PROCESS_UNIT_TEST

TOTAL_ENTRIES = 101


class TestConsumer(object):
    """ empty class that should substitute MQ Flopsy Consumer. Used for testing only """

    def acknowledge(self, delivery_tag):
        pass

    def close(self):
        pass


class TestMessage(object):
    """ empty class that should substitute MQ Message. Used for testing only """

    def __init__(self):
        self.body = None
        self.delivery_tag = None


class TestSiteMembershipDictionary(dict):
    """ this dictionary is used for testing period only to stub Synergy Construction replies"""

    def __init__(self, array_of_sites):
        super(TestSiteMembershipDictionary, self).__init__()
        random.seed('RANDOM_SEED_OBJECT')
        for site in array_of_sites:
            super(TestSiteMembershipDictionary, self).__setitem__(site, ['portfolio_%d' % random.randint(0, 20)])
#            print 'key %s value %s len %s' % ( site, self[site],  self.__len__())


class TestRestClient():
    def __init__(self, logger):<commit_msg>Update base_fixtures.py<commit_after>__author__ = '<NAME>'

import inspect
import random
from datetime import datetime, timedelta

from db.manager import ds_manager
from db.dao.single_session_dao import SingleSessionDao
from db.dao.unit_of_work_dao import UnitOfWorkDao
from db.model import unit_of_work
from db.model.unit_of_work import UnitOfWork
from db.model.single_session import SingleSession
from system import time_helper
from system.process_context import ProcessContext
from tests.ut_process_context import PROCESS_UNIT_TEST

TOTAL_ENTRIES = 101


class TestConsumer(object):
    """ empty class that should substitute MQ Flopsy Consumer. Used for testing only """

    def acknowledge(self, delivery_tag):
        pass

    def close(self):
        pass

    def reject(self, delivery_tag):
        pass

    def cancel(self, delivery_tag):
        pass


class TestMessage(object):
    """ empty class that should substitute MQ Message. Used for testing only """

    def __init__(self):
        self.body = None
        self.delivery_tag = None


class TestSiteMembershipDictionary(dict):
    """ this dictionary is used for testing period only to stub Synergy Construction replies"""

    def __init__(self, array_of_sites):
        super(TestSiteMembershipDictionary, self).__init__()
        random.seed('RANDOM_SEED_OBJECT')
        for site in array_of_sites:
            super(TestSiteMembershipDictionary, self).__setitem__(site, ['portfolio_%d' % random.randint(0, 20)])
#            print 'key %s value %s len %s' % ( site, self[site],  self.__len__())


class TestRestClient():
    def __init__(self, logger):
{'fraction_non_alphanumeric': 0.07958148383005707, 'fraction_numerical': 0.003804692454026633, 'mean_word_length': 4.048, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '775328', 'n_tokens_mistral': 921, 'n_tokens_neox': 890, 'n_words': 276}