<commit_before>function Import() {
    var self = this;

    this.start = function(vars) {
        for (var slotId in vars) {
            if (vars.hasOwnProperty(slotId)) {
                splitVars = vars[slotId].split(',');
                this.updateSlot(slotId, splitVars);
            }
        }
        summary.updateAllStats();
    };

    this.updateSlot = function(slotId, values) {
        slots[slotId].ql('10.' + values[0]);
        slots[slotId].role(role_mapping.to_stat[values[1]]);
        slots[slotId].glyphQl('10.' + values[2]);
        slots[slotId].primaryGlyph(stat_mapping.to_stat[values[3]]);
        slots[slotId].secondaryGlyph(stat_mapping.to_stat[values[4]]);
        slots[slotId].el.btn.primary[values[5]].click();
        slots[slotId].el.btn.secondary[values[6]].click();
        // support signets
        if (typeof values[7] !== undefined && typeof values[8] !== undefined) {
            if (values[8] >= 80) {
                slots[slotId].el.btn.nyraid.prop('disabled', false);
                slots[slotId].el.btn.nyraid.prop('checked', true);
                slots[slotId].el.btn.nyraid.change();
            } else {
                slots[slotId].signetQuality(signet_quality_mapping.to_name[values[7]]);
                slots[slotId].signetId(values[8] != '0' ? values[8] : 'none');
                slots[slotId].el.signetId.change();
            }
        }
    };
}<commit_msg>Fixed an issue where a checkbutton for a valid role + slot combo for a NY raid item would be disabled after an URI import<commit_after>function Import() {
    var self = this;

    this.start = function(vars) {
        for (var slotId in vars) {
            if (vars.hasOwnProperty(slotId)) {
                splitVars = vars[slotId].split(',');
                this.updateSlot(slotId, splitVars);
            }
        }
        summary.updateAllStats();
    };

    this.updateSlot = function(slotId, values) {
        slots[slotId].ql('10.' + values[0]);
        slots[slotId].role(role_mapping.to_stat[values[1]]);
        slots[slotId].glyphQl('10.' + values[2]);
        slots[slotId].primaryGlyph(stat_mapping.to_stat[values[3]]);
        slots[slotId].secondaryGlyph(stat_mapping.to_stat[values[4]]);
        slots[slotId].el.btn.primary[values[5]].click();
        slots[slotId].el.btn.secondary[values[6]].click();
        // support signets
        if (typeof values[7] !== undefined && typeof values[8] !== undefined) {
            if (values[8] >= 80) {
                slots[slotId].el.btn.nyraid.prop('disabled', false);
                slots[slotId].el.btn.nyraid.prop('checked', true);
                slots[slotId].el.btn.nyraid.change();
            } else {
                if (!slots[slotId].isWeapon() && ny_raid_items[slotId][slots[slotId].role()] !== undefined) {
                    slots[slotId].el.btn.nyraid.prop('disabled', false);
                }
                slots[slotId].signetQuality(signet_quality_mapping.to_name[values[7]]);
                slots[slotId].signetId(values[8] != '0' ? values[8] : 'none');
                slots[slotId].el.signetId.change();
            }
        }
    };
}
{'fraction_non_alphanumeric': 0.1609013011742304, 'fraction_numerical': 0.012694382735639479, 'mean_word_length': 2.226202661207779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5915710', 'n_tokens_mistral': 997, 'n_tokens_neox': 993, 'n_words': 139}