<commit_before>var URL = require('../../url');

var element = {
    form: '#openAccForm',
    openAccountButton: '#submit'
},
    errorList = [
        'enter your first name',
        'use only letters',
        'enter your email address',
        'input a valid date',
        'specify your country',
        'enter the first line of your home address',
        'enter a town or city',
        'nvalid telephone number',
        'enter a password',
        'secret answer is too short',
        'must accept the terms and conditions'
    ];

module.exports.init = function (browser) {
    browser
        .url(browser.launch_url + URL.ACCOUNT.REAL_MONEY)
        .waitForElementVisible(element.form, 5000)
        .click(element.openAccountButton)
        .pause(5000);
};

errorList.forEach(function (str) {
    module.exports["Checking for " + str] = function (browser) {
        browser.assert.containsText(element.form, str);
    };
});

module.exports.end = function (browser) {
    browser.end();
};<commit_msg>Spelling correction in test cases error message<commit_after>var URL = require('../../url');

var element = {
    form: '#openAccForm',
    openAccountButton: '#submit'
},
    errorList = [
        'enter your first name',
        'use only letters',
        'enter your email address',
        'input a valid date',
        'specify your country',
        'enter the first line of your home address',
        'enter a town or city',
        'invalid telephone number',
        'enter a password',
        'secret answer is too short',
        'must accept the terms and conditions'
    ];

module.exports.init = function (browser) {
    browser
        .url(browser.launch_url + URL.ACCOUNT.REAL_MONEY)
        .waitForElementVisible(element.form, 5000)
        .click(element.openAccountButton)
        .pause(5000);
};

errorList.forEach(function (str) {
    module.exports["Checking for " + str] = function (browser) {
        browser.assert.containsText(element.form, str);
    };
});

module.exports.end = function (browser) {
    browser.end();
};
{'fraction_non_alphanumeric': 0.12638687891944042, 'fraction_numerical': 0.007718282682103232, 'mean_word_length': 2.533219761499148, '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': '4667250', 'n_tokens_mistral': 603, 'n_tokens_neox': 588, 'n_words': 168}