<commit_before>from unittest import TestCase

from redux.site.mangareader import MangaReader


class MangaReader(TestCase):
    SERIES = MangaReader.series('gantz')
    CHAPTERS = SERIES.chapters

    def test_chapter_count(self):
        self.assertEqual(len(MangaReader.SERIES.chapters), 383)

    def test_chapter_title(self):
        self.assertEqual(MangaReader.CHAPTERS[-2].title, 'Lightning Counterstrike')

    def test_chapter_pages(self):
        self.assertEqual(len(MangaReader.CHAPTERS[0].pages), 43)

    def test_for_image_url(self):
        url = MangaReader.CHAPTERS[0].pages[0].image.url
        self.assertGreater(len(url), 0)
        self.assertEqual(url[:7], 'http://')
<commit_msg>Fix MangaReader test...again.<commit_after>from unittest import TestCase

from redux.site.mangareader import MangaReader


class TestMangaReader(TestCase):
    SERIES = MangaReader.series('gantz')
    CHAPTERS = SERIES.chapters

    def test_chapter_count(self):
        self.assertEqual(len(TestMangaReader.SERIES.chapters), 383)

    def test_chapter_title(self):
        self.assertEqual(TestMangaReader.CHAPTERS[-2].title, 'Lightning Counterstrike')

    def test_chapter_pages(self):
        self.assertEqual(len(TestMangaReader.CHAPTERS[0].pages), 43)

    def test_for_image_url(self):
        url = TestMangaReader.CHAPTERS[0].pages[0].image.url
        self.assertGreater(len(url), 0)
        self.assertEqual(url[:7], 'http://')

{'fraction_non_alphanumeric': 0.11927877947295423, 'fraction_numerical': 0.015256588072122053, 'mean_word_length': 4.063157894736842, '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': '4250443', 'n_tokens_mistral': 496, 'n_tokens_neox': 463, 'n_words': 72}