<commit_before>App.extend({
    Components: {}
});

App.Components.Modal = (function ($, document) {
    var pub = {
        name: 'App.Components.Modal',
        depends: ['App.Components.Form'], /** Form's assignFormValue method used in populateModal */
        events: ['click'],

        submitFormButtonSelector: '[data-submit-modal-form]',
        submitForm: function (modal, form) {
            form = form || 'form';
            $(modal).find(form).submit();
        },

        /**
         * Populate the fields in the modal from the<commit_msg>Complete documentation for populate modal<commit_after>App.extend({
    Components: {}
});

App.Components.Modal = (function ($, document) {
    var pub = {
        name: 'App.Components.Modal',
        depends: ['App.Components.Form'], /** Form's assignFormValue method used in populateModal */
        events: ['click'],

        submitFormButtonSelector: '[data-submit-modal-form]',
        submitForm: function (modal, form) {
            form = form || 'form';
            $(modal).find(form).submit();
        },

        /**
         * Populate the fields in the modal from the data attributes on the modal trigger button
{'fraction_non_alphanumeric': 0.14358108108108109, 'fraction_numerical': 0.0, 'mean_word_length': 2.4447674418604652, 'pattern_counts': {'":': 0, '<': 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': '1676901', 'n_tokens_mistral': 319, 'n_tokens_neox': 309, 'n_words': 84}