<commit_before>#!/usr/bin/python2.4
# -*- mode: python -*-
#
# Copyright (c) 2005-2007 rPath, Inc.
# All rights reserved
#

import mock
import re
import os
import testsuite
testsuite.setup()

import tempfile

import rephelp, sigtest
import mint_rephelp

from conary import versions
from conary import deps
from conary.conaryclient import ConaryClient
from conary.build import signtrove
from conary.lib import openpgpfile, openpgpkey

runTest = False
debug = False
scriptPath = os.path.join(os.path.split(os.path.split(os.path.realpath(__file__))[0])[0], 'scripts')

class MintMirrorTest(mint_rephelp.MintRepositoryHelper):
    def createMirrorUser(self, repos,
                         labelStr = "localhost.other.host@rpl:devel"):
        label = versions.Label(labelStr)
        repos.addUser(label, "mirror", "mirror")
        repos.addAcl(label, "mirror", None, None, True, False, False)
        repos.setUserGroupCanMirror(label, "mirror", True)

    def createTroves(self, repos, start, count):
        for i in range(start, start + count):
            self.addComponent('test%d:runtime' % i, '1.0', filePrimer = i,
                              repos = repos)
            self.addCollection('test%d' % i, '1.0', [ "test%d:runtime" % i ],<commit_msg>Remove useless reference to sigtest.py<commit_after>#!/usr/bin/python2.4
# -*- mode: python -*-
#
# Copyright (c) 2005-2007 rPath, Inc.
# All rights reserved
#

import mock
import re
import os
import testsuite
testsuite.setup()

import tempfile

import rephelp
import mint_rephelp

from conary import versions
from conary import deps
from conary.conaryclient import ConaryClient
from conary.build import signtrove
from conary.lib import openpgpfile, openpgpkey

runTest = False
debug = False
scriptPath = os.path.join(os.path.split(os.path.split(os.path.realpath(__file__))[0])[0], 'scripts')

class MintMirrorTest(mint_rephelp.MintRepositoryHelper):
    def createMirrorUser(self, repos,
                         labelStr = "localhost.other.host@rpl:devel"):
        label = versions.Label(labelStr)
        repos.addUser(label, "mirror", "mirror")
        repos.addAcl(label, "mirror", None, None, True, False, False)
        repos.setUserGroupCanMirror(label, "mirror", True)

    def createTroves(self, repos, start, count):
        for i in range(start, start + count):
            self.addComponent('test%d:runtime' % i, '1.0', filePrimer = i,
                              repos = repos)
            self.addCollection('test%d' % i, '1.0', [ "test%d:runtime" % i ],
{'fraction_non_alphanumeric': 0.12104430379746836, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 3.383015597920277, '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': '2533115', 'n_tokens_mistral': 849, 'n_tokens_neox': 804, 'n_words': 203}