<commit_before>import unittest
import os
from selenium import webdriver
from time import sleep

class TestClaimsLogin(unittest.TestCase):

    def setUp(self):
        self.driver = webdriver.PhantomJS()
        self.ip = os.environ.get('DOCKER_IP', '172.17.0.1')

    def test_verify_main_screen_loaded(self):
        self.driver.get('http://%s/eclaim/login/' % self.ip)

        self.driver.find_element_by_id('id_user_name').send_keys("implementer")
        self.driver.find_element_by_id('id_password').send_keys("<PASSWORD>")
        self.driver.find_element_by_css_selector('button.btn.btn-primary').click()
        self.driver.implicitly_wait(30)
        greeting = self.driver.find_element_by_id("user-greeting")
        self.assertTrue(greeting.is_displayed())
        self.assertIn(greeting.text, u'Hello, Implementer')
        # import ipdb; ipdb.set_trace()
        self.driver.execute_script("set_language('ms')")
        sleep(5)
        self.assertEqual(self.driver.find_element_by_id("logo").text,
                         u'Staff Claims')

    def tearDown(self):
        self.driver.get('http://%s/eclaim/logout' % self.ip)
        self.driver.quit()

if __name__ == '__main__':
    unittest.main(verbosity=2)
<commit_msg>Change self.assertIn to self.assertTrue('Hello Implementer' in greeting.txt)<commit_after>import unittest
import os
from selenium import webdriver
from time import sleep

class TestClaimsLogin(unittest.TestCase):

    def setUp(self):
        self.driver = webdriver.PhantomJS()
        self.ip = os.environ.get('DOCKER_IP', '172.17.0.1')

    def test_verify_main_screen_loaded(self):
        self.driver.get('http://%s/eclaim/login/' % self.ip)

        self.driver.find_element_by_id('id_user_name').send_keys("implementer")
        self.driver.find_element_by_id('id_password').send_keys("<PASSWORD>")
        self.driver.find_element_by_css_selector('button.btn.btn-primary').click()
        self.driver.implicitly_wait(30)
        greeting = self.driver.find_element_by_id("user-greeting")
        self.assertTrue(greeting.is_displayed())
        self.assertTrue('Hello, Implementer' in greeting.text)
        # import ipdb; ipdb.set_trace()
        self.driver.execute_script("set_language('ms')")
        sleep(5)
        self.assertEqual(self.driver.find_element_by_id("logo").text,
                         u'Staff Claims')

    def tearDown(self):
        self.driver.get('http://%s/eclaim/logout' % self.ip)
        self.driver.quit()

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

{'fraction_non_alphanumeric': 0.13511390416339356, 'fraction_numerical': 0.00864100549882168, 'mean_word_length': 3.3242784380305603, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '334180', 'n_tokens_mistral': 854, 'n_tokens_neox': 838, 'n_words': 111}