<commit_before>﻿$p.openExportSettingsDialog = function ($control) {
    delete $p.data.ExportSettingsForm;
    $p.ajax(
        $control.attr('data-action'),
        $control.attr('data-method'),
        $p.getData('ExportSettingsForm'),
        $control,
        false);
    $('#ExportSettingsDialog').dialog({
        modal: true,
        width: '980px'
    });
}

$p.export = function ($control) {
    $p.send($control, 'ExportSettingsForm');
    location.href = $('.main-form').attr('action').replace('_action_', 'export');
}<commit_msg>Refactored: formIdの指定を省略。<commit_after>﻿$p.openExportSettingsDialog = function ($control) {
    delete $p.data.ExportSettingsForm;
    $p.ajax(
        $control.attr('data-action'),
        $control.attr('data-method'),
        $p.getData('ExportSettingsForm'),
        $control,
        false);
    $('#ExportSettingsDialog').dialog({
        modal: true,
        width: '980px'
    });
}

$p.export = function ($control) {
    $p.send($control);
    location.href = $('.main-form').attr('action').replace('_action_', 'export');
}
{'fraction_non_alphanumeric': 0.1912313432835821, 'fraction_numerical': 0.005597014925373134, 'mean_word_length': 3.142857142857143, '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': '7570170', 'n_tokens_mistral': 340, 'n_tokens_neox': 338, 'n_words': 48}