<commit_before>import org.openqa.selenium.Dimension
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver
/*
    This is the geb configuration file

    @see http://www.gebish.org/manual/current/#configuration
 */
reportsDir = "target/geb-reports"
reportOnTestFailureOnly = true

driver = {
    ChromeOptions options = new ChromeOptions()
    options.addArguments('--headless', '--disable-gpu', '--lang=en-us', '--window-size=1000x1000')
    def driverInstance = new ChromeDriver(options)
    driverInstance
}


environments {

    // ./gradlew -Dgeb.env=chrome integrationTest
    chrome {
        driver = {
            ChromeOptions options = new ChromeOptions();
            options.addArguments("--lang=en-us")
            def driverInstance = new ChromeDriver(options)
            driverInstance.manage().window().setSize(new Dimension(1000,1000))// width of bootstrap 3  viewport of col-md-* is 970px
            driverInstance
        }
    }
    // ./gradlew -Dgeb.env=firefox integrationTest
    firefox {
        driver = {
            def driverInstance = new FirefoxDriver()
            driverInstance.manage().window().setSize(new Dimension(1000,1000))// width of bootstrap 3  viewport of col-md-* is 970px
            driverInstance
        }
    }

}
<commit_msg>[IT-1682] Start chrome headless with --no-sandbox, so it works in docker<commit_after>import org.openqa.selenium.Dimension
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver
/*
    This is the geb configuration file

    @see http://www.gebish.org/manual/current/#configuration
 */
reportsDir = "target/geb-reports"
reportOnTestFailureOnly = true

driver = {
    ChromeOptions options = new ChromeOptions()
    options.addArguments('--headless', '--disable-gpu', '--no-sandbox', '--lang=en-us', '--window-size=1000x1000')
    def driverInstance = new ChromeDriver(options)
    driverInstance
}


environments {

    // ./gradlew -Dgeb.env=chrome integrationTest
    chrome {
        driver = {
            ChromeOptions options = new ChromeOptions();
            options.addArguments("--lang=en-us")
            def driverInstance = new ChromeDriver(options)
            driverInstance.manage().window().setSize(new Dimension(1000,1000))// width of bootstrap 3  viewport of col-md-* is 970px
            driverInstance
        }
    }
    // ./gradlew -Dgeb.env=firefox integrationTest
    firefox {
        driver = {
            def driverInstance = new FirefoxDriver()
            driverInstance.manage().window().setSize(new Dimension(1000,1000))// width of bootstrap 3  viewport of col-md-* is 970px
            driverInstance
        }
    }

}

{'fraction_non_alphanumeric': 0.1134020618556701, 'fraction_numerical': 0.024173480270174193, 'mean_word_length': 2.7975708502024292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5386115', 'n_tokens_mistral': 883, 'n_tokens_neox': 793, 'n_words': 175}