<commit_before># test.py
import unittest
from entertainment_center \
    import city_lights, shawshank_redemption, godfather, \
        forrest_gump, interstellar


# Test: City Lights
class MovieTestCityLights(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "City Lights", city_lights.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/f/f2/City_Lights_film.jpg",
            city_lights.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=b2NTUnujk1I",
            city_lights.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", city_lights.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", city_lights.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("7 March 1931", city_lights.release_date)

    def test_trivia(self):
        self.assertEqual(
            "<NAME>'s personal favorite of all his films.",
            city_lights.trivia[1])


# Test: The Shawshank Redemption
class MovieTestShawshankRedemption(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "The Shawshank Redemption", shawshank_redemption.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/8/81/ShawshankRedemptionMoviePoster.jpg",
            shawshank_redemption.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=6hB3S9bIaco",
            shawshank_redemption.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", shawshank_redemption.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", shawshank_redemption.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("14 October 1994", shawshank_redemption.release_date)

    def test_trivia(self):
        self.assertEqual(
            "<NAME>an's favorite film of his own.",
            shawshank_redemption.trivia[0])


# Test: The Godfather
class MovieTestGodfather(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "The Godfather",godfather.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/1/1c/Godfather_ver1.jpg",
            godfather.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=sY1S34973zA",
            godfather.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", godfather.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", godfather.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("24 March 1972", godfather.release_date)

    def test_trivia(self):
        self.assertEqual(
            "According to <NAME>, the film took 62 days to shoot.",
            godfather.trivia[-1])


# Test: Forrest Gump
class MovieTestForrestGump(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "Forrest Gump",forrest_gump.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/6/67/Forrest_Gump_poster.jpg",
            forrest_gump.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=bLvqoHBptjg",
            forrest_gump.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", forrest_gump.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", forrest_gump.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("6 July 1994", forrest_gump.release_date)

    def test_trivia(self):
        self.assertEqual(
            "<NAME>'s lower legs were wrapped in a special blue fabric that "
            "allowed them to be digitally removed later.",
            forrest_gump.trivia[3])


# Test: Interstellar
class MovieTestInterstellar(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "Interstellar", interstellar.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg",
            interstellar.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=2LqzF5WauAw",
            interstellar.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", interstellar.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", interstellar.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("7 November 2014", interstellar.release_date)

    def test_trivia(self):
        self.assertEqual(
            "On the first planet a single second would be about one and a half days in "
            "earth time.",
            interstellar.trivia[0])


if __name__ == '__main__':
    unittest.main()
<commit_msg>Run test for movie 'Batman Begins'<commit_after># test.py
import unittest
from entertainment_center \
    import city_lights, shawshank_redemption, godfather, \
        forrest_gump, interstellar, batman_begins


# Test: City Lights
class MovieTestCityLights(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "City Lights", city_lights.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/f/f2/City_Lights_film.jpg",
            city_lights.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=b2NTUnujk1I",
            city_lights.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("Charles Chaplin", city_lights.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", city_lights.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("7 March 1931", city_lights.release_date)

    def test_trivia(self):
        self.assertEqual(
            "Charles Chaplin's personal favorite of all his films.",
            city_lights.trivia[1])


# Test: The Shawshank Redemption
class MovieTestShawshankRedemption(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "The Shawshank Redemption", shawshank_redemption.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/8/81/ShawshankRedemptionMoviePoster.jpg",
            shawshank_redemption.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=6hB3S9bIaco",
            shawshank_redemption.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", shawshank_redemption.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", shawshank_redemption.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("14 October 1994", shawshank_redemption.release_date)

    def test_trivia(self):
        self.assertEqual(
            "<NAME>an's favorite film of his own.",
            shawshank_redemption.trivia[0])


# Test: The Godfather
class MovieTestGodfather(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "The Godfather",godfather.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/1/1c/Godfather_ver1.jpg",
            godfather.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=sY1S34973zA",
            godfather.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", godfather.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", godfather.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("24 March 1972", godfather.release_date)

    def test_trivia(self):
        self.assertEqual(
            "According to <NAME>, the film took 62 days to shoot.",
            godfather.trivia[-1])


# Test: Forrest Gump
class MovieTestForrestGump(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "Forrest Gump",forrest_gump.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/6/67/Forrest_Gump_poster.jpg",
            forrest_gump.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=bLvqoHBptjg",
            forrest_gump.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", forrest_gump.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", forrest_gump.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("6 July 1994", forrest_gump.release_date)

    def test_trivia(self):
        self.assertEqual(
            "<NAME>'s lower legs were wrapped in a special blue fabric that "
            "allowed them to be digitally removed later.",
            forrest_gump.trivia[3])


# Test: Interstellar
class MovieTestInterstellar(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "Interstellar", interstellar.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg",
            interstellar.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=2LqzF5WauAw",
            interstellar.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", interstellar.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", interstellar.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("7 November 2014", interstellar.release_date)

    def test_trivia(self):
        self.assertEqual(
            "On the first planet a single second would be about one and a half days in "
            "earth time.",
            interstellar.trivia[0])


# Test: Batman Begins
class MovieTestBatmanBegins(unittest.TestCase):

    def test_title(self):
        self.assertEqual(
            "Batman Begins", batman_begins.title)

    def test_poster_image_url(self):
        self.assertEqual(
            "https://upload.wikimedia.org/wikipedia/en/a/af/Batman_Begins_Poster.jpg",
            batman_begins.poster_image_url)

    def test_trailer_youtube_url(self):
        self.assertEqual(
            "https://www.youtube.com/watch?v=neY2xVmOfUM",
            batman_begins.trailer_youtube_url)

    def test_lead_actors_1(self):
        self.assertEqual("<NAME>", batman_begins.lead_actors[0])

    def test_lead_actors_2(self):
        self.assertEqual("<NAME>", batman_begins.lead_actors[-1])

    def test_release_date(self):
        self.assertEqual("15 June 2005", batman_begins.release_date)

    def test_trivia(self):
        self.assertEqual(
            "<NAME> turned down the role of Bruce Wayne/Batman.",
            batman_begins.trivia[0])


if __name__ == '__main__':
    unittest.main()

{'fraction_non_alphanumeric': 0.10616089613034624, 'fraction_numerical': 0.014086897488119483, 'mean_word_length': 2.9191885600266048, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, 'https://': 22, 'lorem ipsum': 0, 'www.': 11, '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': '4339675', 'n_tokens_mistral': 3991, 'n_tokens_neox': 3632, 'n_words': 591}