<commit_before>import unittest
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import NoSuchElementException 
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC

class pmlFile(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())

    def test_ui(self):
        driver = self.driver
        driver.get("http://vps138348.ovh.net/GroupProject/")

        fileUpload = driver.find_element_by_name("pmlfile")
        fileUpload.send_keys("src/test/uitest/test.pml")
        fileUpload.submit()

        pmlFile = driver.find_element_by_id("pml")
        assert pmlFile.text != ""


    def tearDown(self):
       self.driver.quit()

class isCanned(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())

    def test_ui(self):
        driver = self.driver
        driver.get("http://vps138348.ovh.net/GroupProject/")

        fileUpload = driver.find_element_by_name("pmlfile")
        fileUpload.send_keys("src/test/uitest/test.pml")

        cannedCheckBox = driver.find_element_by_name("canneda")
        cannedCheckBox.click()

        fileUpload.submit()

        isCanned = driver.find_element_by_tag_name("p")

        assert isCanned.text != ""


    def tearDown(self):
       self.driver.quit()

class promelaGenerator(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())

    def test_ui(self):
        driver = self.driver
        driver.get("http://vps138348.ovh.net/GroupProject/")

        fileUpload = driver.find_element_by_name("pmlfile")
        fileUpload.send_keys("src/test/uitest/test.pml")
        fileUpload.submit()

        promela = driver.find_element_by_id("promela")
        assert promela.text != ""

    def tearDown(self):
       self.driver.quit()

class spinOutput(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())

    def test_ui(self):
        driver = self.driver
        driver.get("http://vps138348.ovh.net/GroupProject/")

        fileUpload = driver.find_element_by_name("pmlfile")
        fileUpload.send_keys("src/test/uitest/test.pml")
        fileUpload.submit()

        spin = driver.find_element_by_id("spin")
        assert spin.text != ""

    def tearDown(self):
       self.driver.quit()

if __name__ == "__main__":<commit_msg>commented out 'spin' selenium tests<commit_after>import unittest
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import NoSuchElementException 
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC

class pmlFile(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())

    def test_ui(self):
        driver = self.driver
        driver.get("http://vps138348.ovh.net/GroupProject/")

        fileUpload = driver.find_element_by_name("pmlfile")
        fileUpload.send_keys("src/test/uitest/test.pml")
        fileUpload.submit()

        pmlFile = driver.find_element_by_id("pml")
        assert pmlFile.text != ""


    def tearDown(self):
       self.driver.quit()

class isCanned(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())

    def test_ui(self):
        driver = self.driver
        driver.get("http://vps138348.ovh.net/GroupProject/")

        fileUpload = driver.find_element_by_name("pmlfile")
        fileUpload.send_keys("src/test/uitest/test.pml")

        cannedCheckBox = driver.find_element_by_name("canneda")
        cannedCheckBox.click()

        fileUpload.submit()

        isCanned = driver.find_element_by_tag_name("p")

        assert isCanned.text != ""


    def tearDown(self):
       self.driver.quit()

class promelaGenerator(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())

    def test_ui(self):
        driver = self.driver
        driver.get("http://vps138348.ovh.net/GroupProject/")

        fileUpload = driver.find_element_by_name("pmlfile")
        fileUpload.send_keys("src/test/uitest/test.pml")
        fileUpload.submit()

        promela = driver.find_element_by_id("promela")
        assert promela.text != ""

    def tearDown(self):
       self.driver.quit()

# class spinOutput(unittest.TestCase):
#     def setUp(self):
#         self.driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())

#     def test_ui(self):
#         driver = self.driver
#         driver.get("http://vps138348.ovh.net/GroupProject/")

#         fileUpload = driver.find_element_by_name("pmlfile")
#         fileUpload.send_keys("src/test/uitest/test.pml")
#         fileUpload.submit()

#         spin = driver.find_element_by_id("spin")
#         assert spin.text != ""

#     def tearDown(self):
#        self.driver.quit()

if __name__ == "__main__":
{'fraction_non_alphanumeric': 0.12540021344717184, 'fraction_numerical': 0.014229811454998222, 'mean_word_length': 3.2278195488721804, 'pattern_counts': {'":': 2, '<': 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': '2328693', 'n_tokens_mistral': 1859, 'n_tokens_neox': 1740, 'n_words': 255}