<commit_before># Copyright (c) 2011 gocept gmbh & co. kg
# See also LICENSE.txt

import mock
import zeit.cms.tagging.tag


class TaggingHelper(object):
    """Mixin for tests which need some tagging infrastrucutre."""

    def get_tag(self, code):
        tag = zeit.cms.tagging.tag.Tag(code, code)
        tag.disabled = False
        return tag

    def setup_tags(self, *codes):
        import stabledict

        class Tags(stabledict.StableDict):<commit_msg>Remove superfluous variable ('disabled' is a concept of zeit.intrafind and doesn't belong here)<commit_after># Copyright (c) 2011 gocept gmbh & co. kg
# See also LICENSE.txt

import mock
import zeit.cms.tagging.tag


class TaggingHelper(object):
    """Mixin for tests which need some tagging infrastrucutre."""

    def get_tag(self, code):
        tag = zeit.cms.tagging.tag.Tag(code, code)
        return tag

    def setup_tags(self, *codes):
        import stabledict

        class Tags(stabledict.StableDict):
{'fraction_non_alphanumeric': 0.09805924412665985, 'fraction_numerical': 0.008171603677221655, 'mean_word_length': 3.2241379310344827, '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': '4128965', 'n_tokens_mistral': 330, 'n_tokens_neox': 305, 'n_words': 93}