<commit_before>package com.vryba.selenium;

import com.vryba.selenium.pageObjects.HomePage;
import com.vryba.selenium.utilities.TestBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.testng.Assert;
import org.testng.annotations.Test;

public class Home_Page_TC extends TestBase {

    private boolean isStackBoxDisplayed = true;
    private Logger LOG = LogManager.getLogger(Home_Page_TC.class);

    @Test
    public void loginWarningMessage() {
        LOG.info("Start Test: loginWarningMessage");
        //An object is created for the home page using the HomePage class
        HomePage homePage = new HomePage();
        //The homePage object uses the askButtonClick() method to open the spage
        String warningText = homePage
                .askQButtonClick()
                .getLoginWarningText();
        Assert.assertEquals(warningText, "You must be logged in to ask a question on Stack Overflow");
    }

    public void capsMessage() {
        HomePage homePage = new HomePage();
        String capsNoteText = homePage
                .loginButtonClick()
                .enterCredentials("<EMAIL>", "CAPS")
                .getCapsLockMessageText();
        Assert.assertEquals(capsNoteText, "Caps lock is on");
    }
}
<commit_msg>Implemented Test Case which uses mouse events provided by the Actions class<commit_after>package com.vryba.selenium;

import com.vryba.selenium.pageObjects.HomePage;
import com.vryba.selenium.utilities.TestBase;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
 * Tests Home page static and dynamic content use the methods of the HomePage object class,
 * when they interact with the UI of the Home page
 */
public class Home_Page_TC extends TestBase {

    private boolean isStackBoxDisplayed = true;
    private Logger LOG = LogManager.getLogger(Home_Page_TC.class);

@Test
    public void tagTextValidation(){
        LOG.info("Start Test: tagTextValidation");
        //An object is created for the home page using the HomePage class
        HomePage homePage = new HomePage();
        Assert.assertTrue(homePage.mouseOverTag()
                .isTagDescriptionContainsText(homePage.getTagContent()));
    }

    @Test
    public void loginWarningMessage() {
        LOG.info("Start Test: loginWarningMessage");
        HomePage homePage = new HomePage();
        String warningText = homePage
                .askQButtonClick()
                .getLoginWarningText();
        Assert.assertEquals(warningText, "You must be logged in to ask a question on Stack Overflow");
    }

    @Test
    public void capsMessage() {
        LOG.info("Start Test: capsMessage");
        HomePage homePage = new HomePage();
        String capsNoteText = homePage
                .loginButtonClick()
                .enterCredentials("<EMAIL>", "CAPS")
                .getCapsLockMessageText();
        Assert.assertEquals(capsNoteText, "Caps lock is on");
    }
}

{'fraction_non_alphanumeric': 0.0873405299313052, 'fraction_numerical': 0.0013084723585214263, 'mean_word_length': 2.950904392764858, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6981198', 'n_tokens_mistral': 836, 'n_tokens_neox': 816, 'n_words': 238}