<commit_before>package com.saucelabs.common;

import org.openqa.selenium.WebDriver;

public class SauceHelper {

    private WebDriver webDriver;

    public SauceHelper(WebDriver webDriver) {
        this.webDriver = webDriver;
    }

    public SauceHelper() {
    }

    //TODO duplication of 'sauce:jobresult' string and concatenation
    public String getTestResultString(boolean testResult) {
        return "sauce:job-result=" + testResult;
    }
    private String getTestResultString(String testResult) {
        return "sauce:job-result=" + testResult;
    }

    public void setTestStatus(String testResult) throws InvalidTestStatusException {
        //TODO finish implementation
        //testResult = testResult.toLowerCase();
        //isValidTestStatus(testResult);
        new JavaScriptInvoker(webDriver).executeScript(getTestResultString(testResult));
    }

    private void isValidTestStatus(String testResult) throws InvalidTestStatusException {
        if(testResult != "passed" || testResult != "failed" ||
            testResult != "true" || testResult != "false")
        {
            throw new InvalidTestStatusException();
        }
    }

    public void setTestName(String testName) {
        new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.testNamePrefix + testName);
    }

    public void setTestTags(String tags) {
        new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.tagsPrefix + tags);
    }

    public void comment(String comment) {
        new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.sauceContextPrefix + comment);
    }
<commit_msg>Commented out validateTestStatus method until I'm not lazy to implement it<commit_after>package com.saucelabs.common;

import org.openqa.selenium.WebDriver;

public class SauceHelper {

    private WebDriver webDriver;

    public SauceHelper(WebDriver webDriver) {
        this.webDriver = webDriver;
    }

    public SauceHelper() {
    }

    //TODO duplication of 'sauce:jobresult' string and concatenation
    public String getTestResultString(boolean testResult) {
        return "sauce:job-result=" + testResult;
    }
    private String getTestResultString(String testResult) {
        return "sauce:job-result=" + testResult;
    }

    public void setTestStatus(String testResult) throws InvalidTestStatusException {
        //TODO finish implementation
        //testResult = testResult.toLowerCase();
        //isValidTestStatus(testResult);
        new JavaScriptInvoker(webDriver).executeScript(getTestResultString(testResult));
    }

//    private void isValidTestStatus(String testResult) throws InvalidTestStatusException {
//        if(!testResult.equals("passed")  || !testResult.equals("failed")  ||
//            !testResult.equals("true") || !testResult.equals("false"))
//        {
//            throw new InvalidTestStatusException();
//        }
//    }

    public void setTestName(String testName) {
        new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.testNamePrefix + testName);
    }

    public void setTestTags(String tags) {
        new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.tagsPrefix + tags);
    }

    public void comment(String comment) {
        new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.sauceContextPrefix + comment);
    }

{'fraction_non_alphanumeric': 0.09224874742116121, 'fraction_numerical': 0.0, 'mean_word_length': 3.4716732542819497, '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': '3136971', 'n_tokens_mistral': 928, 'n_tokens_neox': 895, 'n_words': 186}