<commit_before>$(document).ready(function() {
    var suiteName = "Arte.TextArea";

    QUnit.module(suiteName + ".commands");
    unitTestHelper.executeTestCollectionSimple(commandsWithNoSelectionTestData, function(testData) {
        $(TEST_ELEMENT_SELECTOR).Arte({
            styles: {}
        }); // use default options

        $.Arte.configuration.requireFocus = false;

        // Execute the command
        var options = testData.commandOptions;
        $(TEST_ELEMENT_SELECTOR).Arte(testData.commandName, options);

        // Verify that command is properly applied
        var commandConfig = $.Arte.configuration.commands[testData.commandName];

        var arte = $(TEST_ELEMENT_SELECTOR).data("Arte");
        var commandAttrType = commandConfig.commandAttrType || function() {
            var attrType = $.Arte.configuration.commandAttrType;
            if (!options) {
                return attrType;
            }

            if (options.commandAttrType) {
                attrType = options.commandAttrType;
            } else {
                if (options.styleName) {
                    attrType = commandAttr.styleName;
                } else if (options.className) {
                    attrType = commandAttr.className;
                } else if (options.tagName) {
                    attrType = commandAttr.tagName;
                }
            }
            return attrType;
        }();
        var isApplied = false;
        // Based on the command attribute, check if a command is applied.
        switch (commandAttrType) {
            case $.Arte.constants.commandAttrType.styleName:
                var styleName = commandConfig.styleName;
                isApplied = $.Arte.dom.getStyles(arte.$el)[styleName];
                break;
            case $.Arte.constants.commandAttrType.className:
                isApplied = $.Arte.dom.hasClassWithPattern(arte.$el, commandConfig.classNameRegex);
                break;
            case $.Arte.constants.commandAttrType.tagName:
                var tagName = $.isPlainObject(commandConfig.tagName) ? commandConfig.tagName[commandAttrType] : commandConfig.tagName;<commit_msg>Remove dead code on tests<commit_after>$(document).ready(function() {
    var suiteName = "Arte.TextArea";

    QUnit.module(suiteName + ".commands");
    unitTestHelper.executeTestCollectionSimple(commandsWithNoSelectionTestData, function(testData) {
        $(TEST_ELEMENT_SELECTOR).Arte({
            styles: {}
        }); // use default options

        $.Arte.configuration.requireFocus = false;

        // Execute the command
        var options = testData.commandOptions;
        $(TEST_ELEMENT_SELECTOR).Arte(testData.commandName, options);

        // Verify that command is properly applied
        var commandConfig = $.Arte.configuration.commands[testData.commandName];

        var arte = $(TEST_ELEMENT_SELECTOR).data("Arte");
        var commandAttrType = commandConfig.commandAttrType || function() {
            var attrType = $.Arte.configuration.commandAttrType;
            if (!options) {
                return attrType;
            }

            if (options.commandAttrType) {
                attrType = options.commandAttrType;
            }
            return attrType;
        }();
        var isApplied = false;
        // Based on the command attribute, check if a command is applied.
        switch (commandAttrType) {
            case $.Arte.constants.commandAttrType.styleName:
                var styleName = commandConfig.styleName;
                isApplied = $.Arte.dom.getStyles(arte.$el)[styleName];
                break;
            case $.Arte.constants.commandAttrType.className:
                isApplied = $.Arte.dom.hasClassWithPattern(arte.$el, commandConfig.classNameRegex);
                break;
            case $.Arte.constants.commandAttrType.tagName:
                var tagName = $.isPlainObject(commandConfig.tagName) ? commandConfig.tagName[commandAttrType] : commandConfig.tagName;
{'fraction_non_alphanumeric': 0.09945027486256872, 'fraction_numerical': 0.0, 'mean_word_length': 2.1151750972762646, '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': '342821', 'n_tokens_mistral': 1039, 'n_tokens_neox': 1006, 'n_words': 196}