<commit_before>$(document).ready(function(){
    var users = (function () {
    var val = null;
    var authMethod = "localdb";
    var data = { authMethod: authMethod };
    $.ajax({
	    'async': false,
	    'global': false,
	    'data': data,
	    'url': '/ajax/parameter_field_list/',
	    'success': function (data) {
	        data = data.split("+");
	    var list = new Array();
	        $.each(data, function(i,l) {
	            var name = l.split(":")[0];
	            var type = l.split(":")[1];
	            list[i] = [name, type]});
	        val = list;
	     }
	     });
	  return val;
	})();


	$("#id_q").autocomplete(users, {
	    matchContains: true,
	    multiple: true,
	    multipleSeparator: " ",
	    selectFirst: false,
	    autoFill: false,
	    max: 10,
	    minChars: 1,
	    scroll: false,
	    formatResult: function(item, position, length) {
	        if (item[1] == 'search_field')
	        {
	            return item[0] + ":";
	        }
	        else
	        {
	            return item[0];
	        }
	    }
	});


    var myClose = function(hash) {
            hash.w.fadeOut('2000',function(){ hash.o.remove()});
            window.location.hash = "";
        };

    $("#jqmAlertStatus").jqm({modal: false, overlay: 1,onHide:myClose});

    // Add status messages for create/save
    if (window.location.hash) {
        if(window.location.hash == '#created')
        {
            $('#jqmStatusMessage').html('Experiment Created');
        }
        else if(window.location.hash == '#saved')
        {
            $('#jqmStatusMessage').html('Experiment Saved');
        }
    }

    // Show status message if there's one to show
    if ($('#jqmStatusMessage').text() != '') {
    	$('#jqmAlertStatus').jqmShow();
    }

    // Hover events
    $('.ui-state-default').live('mouseover mouseout', function(evt) {
        if (evt.type == 'mouseover') {
            $(this).addClass('ui-state-hover');
        } else {
            $(this).removeClass('ui-state-hover');
        }
    });

});



<commit_msg>Reformatting to remove tabs.<commit_after>$(document).ready(function(){
    var users = (function () {
        var val = null;
        var authMethod = "localdb";
        var data = { authMethod: authMethod };
        $.ajax({
            // Ouch! This should be rewritten to handle async.
            'async': false,
            'global': false,
            'data': data,
            'url': '/ajax/parameter_field_list/',
            'success': function (data) {
                data = data.split("+");
                var list = new Array();
                $.each(data, function(i,l) {
                    var name = l.split(":")[0];
                    var type = l.split(":")[1];
                    list[i] = [name, type];
                });
                val = list;
            }
         });
        return val;
    })();


    $("#id_q").autocomplete(users, {
        matchContains: true,
        multiple: true,
        multipleSeparator: " ",
        selectFirst: false,
        autoFill: false,
        max: 10,
        minChars: 1,
        scroll: false,
        formatResult: function(item, position, length) {
            if (item[1] == 'search_field')
            {
                return item[0] + ":";
            }
            else
            {
                return item[0];
            }
        }
    });


    var myClose = function(hash) {
            hash.w.fadeOut('2000',function(){ hash.o.remove()});
            window.location.hash = "";
        };

    $("#jqmAlertStatus").jqm({modal: false, overlay: 1,onHide:myClose});

    // Add status messages for create/save
    if (window.location.hash) {
        if(window.location.hash == '#created')
        {
            $('#jqmStatusMessage').html('Experiment Created');
        }
        else if(window.location.hash == '#saved')
        {
            $('#jqmStatusMessage').html('Experiment Saved');
        }
    }

    // Show status message if there's one to show
    if ($('#jqmStatusMessage').text() != '') {
        $('#jqmAlertStatus').jqmShow();
    }

    // Hover events
    $('.ui-state-default').live('mouseover mouseout', function(evt) {
        if (evt.type == 'mouseover') {
            $(this).addClass('ui-state-hover');
        } else {
            $(this).removeClass('ui-state-hover');
        }
    });

});




{'fraction_non_alphanumeric': 0.16942148760330578, 'fraction_numerical': 0.005968778696051423, 'mean_word_length': 1.6567073170731708, 'pattern_counts': {'":': 6, '<': 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': '4216292', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1271, 'n_words': 257}