<commit_before>from nose.tools import assert_true, assert_false


class IsTextPresentTest(object):

    def test_is_text_present(self):
        "should verify if text is present"
        assert_true(self.browser.is_text_present('Example Header'))

    def test_is_text_present_and_should_return_false(self):
        "should verify if text is present and return false"
        assert_false(self.browser.is_text_present('Teste de texto do teste'))

    def test_is_text_present_and_should_wait_time(self):
        "should verify if text is present and wait for five seconds"
        self.browser.find_link_by_text('FOO').first.click()
        assert_true(self.browser.is_text_present('BAR!', wait_time=5))

    def test_is_text_not_present(self):
        "should verify if text is not present"
        assert_true(self.browser.is_text_not_present('Teste de texto do teste'))

    def test_is_text_not_present_and_should_return_false(self):
        "should verify if text is not prasent and return false"
        assert_false(self.browser.is_text_not_present('Example Header'))

    def test_is_text_not_present_and_should_wait_time(self):
        "should verify if text is not present and wait for five seconds"
        self.browser.find_link_by_text('FOO').first.click()
        assert_true(self.browser.is_text_not_present('outro texto', wait_time=5))<commit_msg>changed tests to use english<commit_after>from nose.tools import assert_true, assert_false


class IsTextPresentTest(object):

    def test_is_text_present(self):
        "should verify if text is present"
        assert_true(self.browser.is_text_present('Example Header'))

    def test_is_text_present_and_should_return_false(self):
        "should verify if text is present and return false"
        assert_false(self.browser.is_text_present('Text that not exist'))

    def test_is_text_present_and_should_wait_time(self):
        "should verify if text is present and wait for five seconds"
        self.browser.find_link_by_text('FOO').first.click()
        assert_true(self.browser.is_text_present('BAR!', wait_time=5))

    def test_is_text_not_present(self):
        "should verify if text is not present"
        assert_true(self.browser.is_text_not_present('Text that not exist'))

    def test_is_text_not_present_and_should_return_false(self):
        "should verify if text is not prasent and return false"
        assert_false(self.browser.is_text_not_present('Example Header'))

    def test_is_text_not_present_and_should_wait_time(self):
        "should verify if text is not present and wait for five seconds"
        self.browser.find_link_by_text('FOO').first.click()
        assert_true(self.browser.is_text_not_present('another text', wait_time=5))
{'fraction_non_alphanumeric': 0.08119970738844184, 'fraction_numerical': 0.001463057790782736, 'mean_word_length': 4.249520153550864, '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': '1275295', 'n_tokens_mistral': 843, 'n_tokens_neox': 824, 'n_words': 191}