<commit_before>import unittest

from testlib import testutil, PygrTestProgram
from pygr import translationDB, seqdb

class TranslationDB_Test(unittest.TestCase):
    def setUp(self):
        hbb1_mouse = testutil.datafile('hbb1_mouse.fa')
        self.dna = seqdb.SequenceFileDB(hbb1_mouse)
        self.tdb = translationDB.get_translation_db(self.dna)

    def test_basic_slice(self):
        id = 'gi|171854975|dbj|AB364477.1|'
        tseq = self.tdb[id][0:99]
        assert str(tseq)[0:10] == 'MVHLTDAEKA'
<commit_msg>Addressed PEP-8 incompatibilities detected by pep8.py (Issue 117)<commit_after>import unittest

from testlib import testutil, PygrTestProgram
from pygr import translationDB, seqdb


class TranslationDB_Test(unittest.TestCase):

    def setUp(self):
        hbb1_mouse = testutil.datafile('hbb1_mouse.fa')
        self.dna = seqdb.SequenceFileDB(hbb1_mouse)
        self.tdb = translationDB.get_translation_db(self.dna)

    def test_basic_slice(self):
        id = 'gi|171854975|dbj|AB364477.1|'
        tseq = self.tdb[id][0:99]
        assert str(tseq)[0:10] == 'MVHLTDAEKA'

{'fraction_non_alphanumeric': 0.10727272727272727, 'fraction_numerical': 0.05, 'mean_word_length': 3.9151785714285716, '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': '1525507', 'n_tokens_mistral': 434, 'n_tokens_neox': 396, 'n_words': 69}