<commit_before><script type="text/javascript">
//<![CDATA[
var onbeforeunload_flag = false;

function set_onbeforeunload(value) {
  onbeforeunload_flag = value;
}

function show_confirmation(evt) {
  if (onbeforeunload_flag) {
    <%
    # This sets an additional message shown to the user when
    # he intends to navigate away and cancels the request if
    # 'Cancel' is pressed by the user.
    %>
    evt.returnValue = '<%= I18n.t('uncommitted_changes_warning') %>';
  }
}

// register basic handler
window.onbeforeunload = show_confirmation;
//]]>
</script><commit_msg>Fix Javascript error Strings between single quotes while it should be double quotes.<commit_after><script type="text/javascript">
//<![CDATA[
var onbeforeunload_flag = false;

function set_onbeforeunload(value) {
  onbeforeunload_flag = value;
}

function show_confirmation(evt) {
  if (onbeforeunload_flag) {
    <%
    # This sets an additional message shown to the user when
    # he intends to navigate away and cancels the request if
    # 'Cancel' is pressed by the user.
    %>
    evt.returnValue = "<%= I18n.t('uncommitted_changes_warning') %>";
  }
}

// register basic handler
window.onbeforeunload = show_confirmation;
//]]>
</script>
{'fraction_non_alphanumeric': 0.11384111384111384, 'fraction_numerical': 0.003276003276003276, 'mean_word_length': 4.177966101694915, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '927424', 'n_tokens_mistral': 395, 'n_tokens_neox': 382, 'n_words': 107}