<commit_before>function openRuleDetailsDialog(rule_result_id)
{
    $("#result-detail-modal").remove();

    var closebutton = $('<button type="button" class="close" data-dismiss="modal" aria-hidden="true" title="Close">×</button>');
    var modal = $('<div id="result-detail-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"><div id="result-detail-modal-body" class="modal-body"></div></div>');

    $("body").prepend(modal);

    var resultclone = $("#result-detail-" + rule_result_id).clone();
    resultclone.attr("id", "");
    resultclone.children(".panel-heading").append(closebutton);
    closebutton.css( { marginTop: '-=17px' } );
    $("#result-detail-modal-body").append(resultclone);

    $("#result-detail-modal").modal();

    return false;<commit_msg>Close button in rule modal should appear top right<commit_after>function openRuleDetailsDialog(rule_result_id)
{
    $("#result-detail-modal").remove();

    var closebutton = $('<button type="button" class="close" data-dismiss="modal" aria-hidden="true" title="Close">×</button>');
    var modal = $('<div id="result-detail-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"><div id="result-detail-modal-body" class="modal-body"></div></div>');

    $("body").prepend(modal);

    var resultclone = $("#result-detail-" + rule_result_id).clone();
    resultclone.attr("id", "");
    resultclone.children(".panel-heading").append(closebutton);
    closebutton.css( { "float" : "right" } );
    closebutton.css( { "margin-top" : "-=20px" } );
    $("#result-detail-modal-body").append(resultclone);

    $("#result-detail-modal").modal();

    return false;
{'fraction_non_alphanumeric': 0.21715656868626274, 'fraction_numerical': 0.003599280143971206, 'mean_word_length': 5.021660649819495, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '340940', 'n_tokens_mistral': 517, 'n_tokens_neox': 507, 'n_words': 82}