<commit_before>// GroupServer module for supporting multi-file uploads.
jQuery.noConflict();
GSFileUpload = function () {
    // Private methods
    var renameFileInputs = function(event) {
        var multiFiles = jQuery('.MultiFile-applied');
        var oldId = ''
        var newId = ''
        var i = null;
        var input = null;
        for ( i=0; i < multiFiles.length; i++ ) {
            input = jQuery(multiFiles[i]);
            oldId = input.attr('id');
            newId = oldId + '.' + i;
            input.attr('id', newId).attr('name', newId);
        }
        return true;
      };
    var addMultiFile = function () {
        var remove = '<abbr class="minor" title="Remove this file from the list of files">(remove)</abbr>';
        var options = {
          list: '#fileList',
          STRING: {remove: remove}
        };
        jQuery('#form\\.uploadedFile').MultiFile(options);
    };

    // Public methods and properties
    return {
        init: function () {
            addMultiFile();
            jQuery('#add-to-topic').submit(renameFileInputs);
        }
    };
}(); // GSFileUpload
<commit_msg>s/minor/muted/ for Bootstrap<commit_after>// GroupServer module for supporting multi-file uploads.
jQuery.noConflict();
GSFileUpload = function () {
    // Private methods
    var renameFileInputs = function(event) {
        var multiFiles = jQuery('.MultiFile-applied');
        var oldId = ''
        var newId = ''
        var i = null;
        var input = null;
        for ( i=0; i < multiFiles.length; i++ ) {
            input = jQuery(multiFiles[i]);
            oldId = input.attr('id');
            newId = oldId + '.' + i;
            input.attr('id', newId).attr('name', newId);
        }
        return true;
      };
    var addMultiFile = function () {
        var remove = '<abbr class="muted" title="Remove this file from the list of files">(remove)</abbr>';
        var options = {
          list: '#fileList',
          STRING: {remove: remove}
        };
        jQuery('#form\\.uploadedFile').MultiFile(options);
    };

    // Public methods and properties
    return {
        init: function () {
            addMultiFile();
            jQuery('#add-to-topic').submit(renameFileInputs);
        }
    };
}(); // GSFileUpload

{'fraction_non_alphanumeric': 0.1451117930732135, 'fraction_numerical': 0.0008768084173608067, 'mean_word_length': 1.9483204134366925, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '4821078', 'n_tokens_mistral': 651, 'n_tokens_neox': 641, 'n_words': 158}