<commit_before><div id="instruction" class="left"></div>
<div class="buttons" id="checkout-success">
  <div class="right"><input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="button" /></div>
</div>
<script type="text/javascript"><!--
$('#button-confirm').bind('click', function() {
	$.ajax({
		url: 'index.php?route=payment/begatewayerip/send',
		type: 'post',
    dataType: 'json',
		beforeSend: function() {
			$('#button-confirm').attr('disabled', true);
      $('#instruction').empty();
			$('#instruction').before('<div class="attention" id="erip-progress"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');
		},
		complete: function() {
			$('#button-confirm').attr('disabled', false);
			$('#erip-progress').remove();
		},
		success: function(json) {
      if (json['error']) {
        $('#instruction').append('<div class="attention">' + json['error'] + '</div>');
      } else {
        $('#instruction').append('<div class="success">' + json['text_thankyou'] + '</div>' +
          '<div>' + json['instruction'] + '</div>');
        $('#checkout-success .right').empty();
        $('#checkout-success .right').append('<input type="button" class="button" onclick="location.href=\'' + json['success_url'] + '\';" value="' + json['button_continue'] + '" />');
      }
		}
	});
});
//--></script><commit_msg>use jQuery instead of $<commit_after><div id="instruction" class="left"></div>
<div class="buttons" id="checkout-success">
  <div class="right"><input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="button" /></div>
</div>
<script type="text/javascript"><!--
jQuery('#button-confirm').bind('click', function() {
	jQuery.ajax({
		url: 'index.php?route=payment/begatewayerip/send',
		type: 'post',
    dataType: 'json',
		beforeSend: function() {
			jQuery('#button-confirm').attr('disabled', true);
      jQuery('#instruction').empty();
			jQuery('#instruction').before('<div class="attention" id="erip-progress"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');
		},
		complete: function() {
			jQuery('#button-confirm').attr('disabled', false);
			jQuery('#erip-progress').remove();
		},
		success: function(json) {
      if (json['error']) {
        jQuery('#instruction').append('<div class="attention">' + json['error'] + '</div>');
      } else {
        jQuery('#instruction').append('<div class="success">' + json['text_thankyou'] + '</div>' +
          '<div>' + json['instruction'] + '</div>');
        jQuery('#checkout-success .right').empty();
        jQuery('#checkout-success .right').append('<input type="button" class="button" onclick="location.href=\'' + json['success_url'] + '\';" value="' + json['button_continue'] + '" />');
      }
		}
	});
});
//--></script>
{'fraction_non_alphanumeric': 0.257073000349284, 'fraction_numerical': 0.0, 'mean_word_length': 4.561165048543689, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '4498134', 'n_tokens_mistral': 913, 'n_tokens_neox': 871, 'n_words': 149}