<commit_before>
function autocomplete(selector, doc_field, doc_type, mininput, include_input, allow_clear) {
    var doc_type = doc_type || "journal";
    var mininput = mininput === undefined ? 3 : mininput;
    var include_input = include_input === undefined ? true : include_input;
    var allow_clear = allow_clear === undefined ? true : allow_clear;

    var ajax = {
            url: current_scheme + "//" + current_domain + "/autocomplete/" + doc_type + "/" + doc_ffunction autocompleteield,
            dataType: 'json',
            data: function (term, page) {
                return {
                    q: term
                };
            },
            results: function (data, page) {
                return { results: data["suggestions"] };
            }
        };
    var csc = function(term) {return {"id":term, "text": term};};<commit_msg>fix the error in autocomplete.js<commit_after>
function autocomplete(selector, doc_field, doc_type, mininput, include_input, allow_clear) {
    var doc_type = doc_type || "journal";
    var mininput = mininput === undefined ? 3 : mininput;
    var include_input = include_input === undefined ? true : include_input;
    var allow_clear = allow_clear === undefined ? true : allow_clear;

    var ajax = {
            url: current_scheme + "//" + current_domain + "/autocomplete/" + doc_type + "/" + doc_field,
            dataType: 'json',
            data: function (term, page) {
                return {
                    q: term
                };
            },
            results: function (data, page) {
                return { results: data["suggestions"] };
            }
        };
    var csc = function(term) {return {"id":term, "text": term};};
{'fraction_non_alphanumeric': 0.12369337979094076, 'fraction_numerical': 0.0011614401858304297, 'mean_word_length': 2.115732368896926, 'pattern_counts': {'":': 4, '<': 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': '4023010', 'n_tokens_mistral': 488, 'n_tokens_neox': 465, 'n_words': 126}