<commit_before>/**
 * Add new post callback
 */
if (parent.Modularity.Editor.Thickbox.postAction == 'add' && modularity_post_action == '') {
    parent.Modularity.Editor.Thickbox.modulePostCreated(modularity_post_id);
}<commit_msg>Handle edit module<commit_after>(function($) {
    /**
     * Add new post callback
     */
    if (parent.Modularity.Editor.Thickbox.postAction == 'add' && modularity_post_action == '') {
        parent.Modularity.Editor.Thickbox.modulePostCreated(modularity_post_id);
    }

    if (parent.Modularity.Editor.Thickbox.postAction == 'edit' && modularity_post_action == '') {
        jQuery(document).on('click', '#publish', function (e) {
            parent.Modularity.Editor.Thickbox.postAction = 'add';
        });
    }

})(jQuery)
{'fraction_non_alphanumeric': 0.1568627450980392, 'fraction_numerical': 0.0, 'mean_word_length': 3.728395061728395, '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': '2469127', 'n_tokens_mistral': 251, 'n_tokens_neox': 244, 'n_words': 33}