<commit_before>from lexos.processors.prepare.cutter import cut_by_milestone


class TestMileStone:
    def test_milestone_regular(self):
        text_content = "Today is raining."
        milestone = "is"
        assert cut_by_milestone(text_content, milestone) == ["Today ", " raining."]

    def test_milestone_no_milestone_in_text(self):
        text_content = "Today is raining."
        milestone = "am"
        assert cut_by_milestone(text_content, milestone) == ["Today is raining."]

    def test_milestone_longer_than_text(self):
        text_content = "Today is raining."
        milestone = "Today is still raining."
        assert cut_by_milestone(text_content, milestone) == ["Today is raining."]

    def test_milestone_len_zero(self):
        text_content = "Today is raining."
        milestone = ""
        assert cut_by_milestone(text_content, milestone) == ["Today is raining."]

    def test_milestone_empty_text(self):
        text_content = ""
        milestone = "is"
        assert cut_by_milestone(text_content, milestone) == []<commit_msg>revise the file test_cut_milestone.py<commit_after>from lexos.processors.prepare.cutter import cut_by_milestone


class TestMileStone:
    def test_milestone_regular(self):
        text_content = "Today is raining."
        milestone = "is"
        assert cut_by_milestone(text_content, milestone) == ["Today ",
                                                             " raining."]

    def test_milestone_no_milestone_in_text(self):
        text_content = "Today is raining."
        milestone = "am"
        assert cut_by_milestone(text_content, milestone) == ["Today is "
                                                             "raining."]

    def test_milestone_longer_than_text(self):
        text_content = "Today is raining."
        milestone = "Today is still raining."
        assert cut_by_milestone(text_content, milestone) == ["Today is "
                                                             "raining."]

    def test_milestone_len_zero(self):
        text_content = "Today is raining."
        milestone = ""
        assert cut_by_milestone(text_content, milestone) == ["Today is "
                                                             "raining."]

    def test_milestone_empty_text(self):
        text_content = ""
        milestone = "is"
        assert cut_by_milestone(text_content, milestone) == []
{'fraction_non_alphanumeric': 0.09181553801412547, 'fraction_numerical': 0.0, 'mean_word_length': 2.2192513368983957, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1542046', 'n_tokens_mistral': 700, 'n_tokens_neox': 662, 'n_words': 145}