<commit_before>"use strict";

// exports
module.exports = function(client, config) {
    var me = {};

    // disable COINS navigation alerts when changing pages
    me.disableNavigationAlert = function() {
        return client.execute(function _disableNavigationAlert() {
            if (window.preventExitPopup === undefined) {
                window.alert('EXPECTED `preventExitPopup` set in pagination.js');
            }
            window.preventExitPopup = true;
        });
    };

    me.micisMenu = require('./micisMenu.js')(client, config);
    me.asmtMenu = require('./asmtMenu.js')(client, config);

    me.hoverHome = function(done) {
        return client.moveToObject('.navUl>li>font>.homeLi', done);
    };

    me.gotoAsmt = function(done) {
        return client
            .call(me.hoverHome)
            .click('=ASMT')
            .waitForPaginationComplete(done);
    };

    me.selectAsmtStudy = function(studyId, done) {
        return client
            .waitForPaginationComplete()
            .selectByValue('#asmt_study_id', studyId)
            .waitForPaginationComplete(done);
    };

    return me;
};<commit_msg>Add navigation method to get to Query Builder.<commit_after>"use strict";

// exports
module.exports = function(client, config) {
    var me = {};

    // disable COINS navigation alerts when changing pages
    me.disableNavigationAlert = function() {
        return client.execute(function _disableNavigationAlert() {
            if (window.preventExitPopup === undefined) {
                window.alert('EXPECTED `preventExitPopup` set in pagination.js');
            }
            window.preventExitPopup = true;
        });
    };

    me.micisMenu = require('./micisMenu.js')(client, config);
    me.asmtMenu = require('./asmtMenu.js')(client, config);

    me.hoverHome = function(done) {
        return client.moveToObject('.navUl>li>font>.homeLi', done);
    };

    me.gotoAsmt = function(done) {
        return client
            .call(me.hoverHome)
            .click('=ASMT')
            .waitForPaginationComplete(done);
    };

    me.goToQueryBuilder = function (done) {
        return client
            .scroll(0, 0)
            .call(me.hoverHome)
            .click('=Query Builder')
            .waitForPaginationComplete(done);
    };

    me.selectAsmtStudy = function(studyId, done) {
        return client
            .waitForPaginationComplete()
            .selectByValue('#asmt_study_id', studyId)
            .waitForPaginationComplete(done);
    };

    return me;
};
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0007861635220125787, 'mean_word_length': 2.2881136950904395, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4862475', 'n_tokens_mistral': 728, 'n_tokens_neox': 716, 'n_words': 136}