<commit_before>#!/usr/bin/env python
import sys
import unittest
sys.path.append('xypath')
import xypath
import messytables
try:
    import hamcrest
except:
    pass
import re
import tcore


class TestFill(tcore.TCore):

    def test_fill_down_without_termination(self):
        world_cell = self.table.filter('WORLD').assert_one()
        filled_down = world_cell.fill(xypath.DOWN)
        assert world_cell not in filled_down
        self.assertEqual(264, len(filled_down))

    def test_fill_right_without_termination(self):
        world_cell = self.table.filter('WORLD').assert_one()
        filled_right = world_cell.fill(xypath.RIGHT)
        assert world_cell not in filled_right
        self.assertEqual(14, len(filled_right))

    def test_fill_down_with_termination(self):
        world_cell = self.table.filter('WORLD').assert_one()
        stop_cell = self.table.filter('Sub-Saharan Africa').assert_one()

        filled_down = world_cell.fill(
            xypath.DOWN,<commit_msg>Removed unused commits in test_fill.py<commit_after>#!/usr/bin/env python
import sys
sys.path.append('xypath')
import xypath
import tcore


class TestFill(tcore.TCore):

    def test_fill_down_without_termination(self):
        world_cell = self.table.filter('WORLD').assert_one()
        filled_down = world_cell.fill(xypath.DOWN)
        assert world_cell not in filled_down
        self.assertEqual(264, len(filled_down))

    def test_fill_right_without_termination(self):
        world_cell = self.table.filter('WORLD').assert_one()
        filled_right = world_cell.fill(xypath.RIGHT)
        assert world_cell not in filled_right
        self.assertEqual(14, len(filled_right))

    def test_fill_down_with_termination(self):
        world_cell = self.table.filter('WORLD').assert_one()
        stop_cell = self.table.filter('Sub-Saharan Africa').assert_one()

        filled_down = world_cell.fill(
            xypath.DOWN,
{'fraction_non_alphanumeric': 0.10031185031185032, 'fraction_numerical': 0.005197505197505198, 'mean_word_length': 3.5724465558194773, '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': '4394687', 'n_tokens_mistral': 632, 'n_tokens_neox': 596, 'n_words': 108}