<commit_before>var
    esPhinx,
    Iterable;


(function($) {
    "use strict";

    $.prototype.extend({

        autocomplete: function(elementsList, options, callback) {
            var
                searchTextBox = this,
                nonCharacterKeysPattern = new RegExp($
                    .nonCharacterKeysPattern()),
                inline = false,

                resolveArguments = function(options) {
                    if (Object.getPrototypeOf(options) !=
                        Object.getPrototypeOf({})) {
                        options = {};
                    }

                    if (!options.caseSensitive ||
                        typeof options.caseSensitive != "boolean") {
                        options.caseSensitive = false;
                    }

                    if (!options.orderlySearch ||
                        typeof options.orderlySearch != "boolean") {
                        options.orderlySearch = false;
                    }

                    if (!options.afterAmountChar ||
                        typeof options.afterAmountChar != "number") {
                        options.afterAmountChar = 1;
                    }

                },

                inlineSearch = function(elements, options) {
                    var
                        eventListenerMethod,
                        resolvedList,
                        resolvedElementsParent,
                        foundElements,
                        i = -1,
                        currentSearchText = searchTextBox.value(),
                        currentElements = elements.clone(true),
                        elements2Recovery = [];

                    if (typeof eventListenerMethod == "function") {
                        searchTextBox.off("input", eventListenerMethod);
                        searchTextBox.off("focus", eventListenerMethod);
                    }

                    eventListenerMethod = function(e) {
                        if (searchTextBox.value()) {

                            // when delete
                            if (searchTextBox.value().length <
                                currentSearchText.length) {


                                i = searchTextBox.value().length +
                                    options.afterAmountChar - 2;

                                if (i < elements2Recovery.length) {
                                    currentElements = elements2Recovery[i];
                                }
                            }

                            resolvedList = resolveList(currentElements,
                                options.order);
                            foundElements = resolvedList.elements;

                            if (foundElements.some()) {
                                elements2Recovery.push(foundElements);
                                resolvedElementsParent = foundElements
                                    .parent().first().clone();<commit_msg>adequations<commit_after>var
    esPhinx,
    Iterable;


(function($) {
    "use strict";

    $.prototype.extend({

        autocomplete: function(elementsList, options, callback) {
            var
                searchTextBox = this,
                nonCharacterKeysPattern = new RegExp($
                    .nonCharacterKeysPattern()),
                inline = false,

                resolveArguments = function(options) {
                    if (Object.getPrototypeOf(options) !=
                        Object.getPrototypeOf({})) {
                        options = {};
                    }

                    if (!options.caseSensitive ||
                        typeof options.caseSensitive != "boolean") {
                        options.caseSensitive = false;
                    }

                    if (!options.orderlySearch ||
                        typeof options.orderlySearch != "boolean") {
                        options.orderlySearch = false;
                    }

                    if (!options.afterAmountChar ||
                        typeof options.afterAmountChar != "number") {
                        options.afterAmountChar = 1;
                    }

                },

                inlineSearch = function(elements, options) {
                    var
                        eventListenerMethod,
                        resolvedList,
                        resolvedElementsParent,
                        foundElements,
                        i,
                        currentSearchText = searchTextBox.value(),
                        currentElements = elements.clone(true),
                        elements2Recovery = [];

                    if (typeof eventListenerMethod == "function") {
                        searchTextBox.off("input", eventListenerMethod);
                        searchTextBox.off("focus", eventListenerMethod);
                    }

                    eventListenerMethod = function(e) {
                        if (searchTextBox.value()) {

                            // when delete
                            if (searchTextBox.value().length <
                                currentSearchText.length) {

                                i = searchTextBox.value().length +
                                    options.afterAmountChar - 2;

                                if (i < elements2Recovery.length) {
                                    currentElements = elements2Recovery[i];
                                }
                            }

                            resolvedList = resolveList(currentElements,
                                options.order);
                            foundElements = resolvedList.elements;

                            if (foundElements.some()) {
                                elements2Recovery.push(foundElements);
                                resolvedElementsParent = foundElements
                                    .parent().first().clone();
{'fraction_non_alphanumeric': 0.07573726541554959, 'fraction_numerical': 0.00217828418230563, 'mean_word_length': 0.9186756669881068, 'pattern_counts': {'":': 0, '<': 7, '<?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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4818041', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1080, 'n_words': 196}