<commit_before>(function ($) {
    $.fn.manyrows = function(option) {
        if (option == 'refresh') {
            $(this).each(function() {
                while($(this).find('.row').length > 1)
                    $(this).find('.row:first').remove();
                addDeleteButtons($(this));
            });
        }
        else {
            $(this).each(function() {
                if ($(this).attr('data-manyrow-inited') == null) {
                    $(this).attr('data-manyrow-inited', '1');
                    $(this).off('click', '.delete-many-rows', removeRow).on('click', '.delete-many-rows', removeRow);
                    $(this).off('click', '.add-many-rows', appendRow).on('click', '.add-many-rows', appendRow);
                    addDeleteButtons($(this));
                }
            });
        }

        function removeRow(event) {
            event.preventDefault();
            var button = $(event.target);
            var container = button.closest('.many-rows');
            button.closest('.row').remove();
            addDeleteButtons(container);
            return false;
        }

        function appendRow(event) {
            event.preventDefault();
            var button = $(event.target);<commit_msg>fix rustico su widget multi-riga<commit_after>(function ($) {
    $.fn.manyrows = function(option) {
        if (option == 'refresh') {
            $(this).each(function() {
                while($(this).find('.row').length > 1)
                    $(this).find('.row:first').remove();
                addDeleteButtons($(this));
            });
        }
        else {
            $(this).each(function() {
                $(this).off('click', '.delete-many-rows', removeRow).on('click', '.delete-many-rows', removeRow);
                $(this).off('click', '.add-many-rows', appendRow).on('click', '.add-many-rows', appendRow);
                addDeleteButtons($(this));
            });
        }

        function removeRow(event) {
            event.preventDefault();
            var button = $(event.target);
            var container = button.closest('.many-rows');
            button.closest('.row').remove();
            addDeleteButtons(container);
            return false;
        }

        function appendRow(event) {
            event.preventDefault();
            var button = $(event.target);
{'fraction_non_alphanumeric': 0.1761460101867572, 'fraction_numerical': 0.0012733446519524619, 'mean_word_length': 1.6423766816143497, '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': '3931206', 'n_tokens_mistral': 620, 'n_tokens_neox': 607, 'n_words': 94}