<commit_before>'use strict';

var webdriverio = require('webdriverio');

var e = require('./setup/test-environment');
var C = require('./setup/test-constants');

// Global before and after

before(function(done) {
    this.timeout(30000);

    if (C.CONFIG.login.enabled) {
        throw new Error('Login security is enabled! Please disable login security in cfg/nodecg.json before running tests');
    }

    if (C.CONFIG.ssl.enabled) {
        throw new Error('SSL is enabled! Please disable SSL in cfg/nodecg.json before running tests');
    }

    e.server.once('started', function() {
        /** Extension API setup **/
        e.apis.extension = e.server.getExtensions()[C.BUNDLE_NAME];

        e.browser.client = webdriverio.remote({
            desiredCapabilities: {
                name: "Travis job " + process.env.TRAVIS_JOB_NUMBER,
                build: process.env.TRAVIS_BUILD_NUMBER,
                tags: [process.env.TRAVIS_BRANCH, process.env.TRAVIS_COMMIT, process.env.TRAVIS_COMMIT_RANGE, process.env.TRAVIS_PULL_REQUEST, process.env.TRAVIS_TAG],
                browserName: 'chrome',
                version: 'beta',
                tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
            },
            host: 'ondemand.saucelabs.com',
            port: 80,
            user: process.env.SAUCE_USERNAME,
            key: process.env.SAUCE_ACCESS_KEY
        })
            .init()
            .timeoutsAsyncScript(10000)
            .newWindow(C.DASHBOARD_URL, 'NodeCG dashboard', '')
            .getCurrentTabId(function(err, tabId) {
                if (err) {<commit_msg>Update desired capabilities a bit more.<commit_after>'use strict';

var webdriverio = require('webdriverio');

var e = require('./setup/test-environment');
var C = require('./setup/test-constants');

// Global before and after

before(function(done) {
    this.timeout(30000);

    if (C.CONFIG.login.enabled) {
        throw new Error('Login security is enabled! Please disable login security in cfg/nodecg.json before running tests');
    }

    if (C.CONFIG.ssl.enabled) {
        throw new Error('SSL is enabled! Please disable SSL in cfg/nodecg.json before running tests');
    }

    e.server.once('started', function() {
        /** Extension API setup **/
        e.apis.extension = e.server.getExtensions()[C.BUNDLE_NAME];

        var desiredCapabilities = {
            name: "Travis job " + process.env.TRAVIS_JOB_NUMBER,
            build: process.env.TRAVIS_BUILD_NUMBER,
            tags: [process.env.TRAVIS_BRANCH, process.env.TRAVIS_COMMIT, process.env.TRAVIS_COMMIT_RANGE],
            browserName: 'chrome',
            version: 'beta',
            tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
        };

        if (process.env.TRAVIS_PULL_REQUEST !== 'false') {
            desiredCapabilities.tags.push(process.env.TRAVIS_PULL_REQUEST);
        }

        if (process.env.TRAVIS_TAG) {
            desiredCapabilities.tags.push(process.env.TRAVIS_TAG);
        }

        if (process.env.TRAVIS_OS_NAME === 'linux') {
            desiredCapabilities.platform = 'Linux';
        }
        else if (process.env.TRAVIS_OS_NAME === 'osx') {
            desiredCapabilities.platform = 'OS X 10.10';
        }

        e.browser.client = webdriverio.remote({
            desiredCapabilities: desiredCapabilities,
            host: 'ondemand.saucelabs.com',
            port: 80,
            user: process.env.SAUCE_USERNAME,
            key: process.env.SAUCE_ACCESS_KEY
        })
            .init()
            .timeoutsAsyncScript(10000)
            .newWindow(C.DASHBOARD_URL, 'NodeCG dashboard', '')
            .getCurrentTabId(function(err, tabId) {
                if (err) {
{'fraction_non_alphanumeric': 0.11886792452830189, 'fraction_numerical': 0.007547169811320755, 'mean_word_length': 2.292812777284827, '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': '4841701', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1114, 'n_words': 214}