<commit_before><!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <script language="javascript" src="http://res.mail.qq.com/mmr/static/lib/js/jquery.js" type="text/javascript"></script>
  <script language="javascript" src="http://res.mail.qq.com/mmr/static/lib/js/lazyloadv3.js"  type="text/javascript"></script>
  <meta id="viewport" name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1; user-scalable=no;" />
  <title>Redirecting...</title>
</head>
<body>
  <br/>
  <div class="list_status">
    <h2 class="blue" >
      <span class="pay_icon"></span>
      <span style="color: #0abede">正在跳转到到微信支付...</span>
    </h2>
  </div>

  <script type="text/javascript">
      //  window.onload=function(){
        //  document.getElementById("pay_form").submit();
        //  }
      </script>
      <script language="javascript" type="text/javascript">
        function auto_remove(img){
          div=img.parentNode.parentNode;div.parentNode.removeChild(div);
          img.onerror="";
          return true;
        }

        function changefont(fontsize){
          if(fontsize < 1 || fontsize > 4)return;
          $('#content').removeClass().addClass('fontSize' + fontsize);
        }

        function onBridgeReady(){
         WeixinJSBridge.invoke(
           'getBrandWCPayRequest', {
               "debug": true,
               "appId" : "<%= @appId %>", //公众号名称，由商户传入
               "timeStamp" : "<%= @timestamp %>", //时间戳
               "nonceStr" : "<%= @nonce_str %>", //随机串
               "package" : "<%= @package %>",//扩展包
               "signType" : "MD5", //微信签名方式:1.sha1;2.md5
               "paySign" : "<%= @paySign %>" //微信签名
             },
               // 返回res.err_msg,取值
               //get_brand_wcpay_request:cancel 用户取消
               //get_brand_wcpay_request:fail 发送失败
               //get_brand_wcpay_request:ok 发送成功
               //WeixinJSBridge.log(res.err_msg);
               //alert(res.err_code+res.err_desc);
               function(res){
                var error_message="";
                if(res.err_msg != "get_brand_wcpay_request:ok") {
                  error_message = "&error_message="+res.err_desc;
                }
                else {
                  error_message = 'success';
                }

                window.location ="<%= @url %>"+error_message;
              }
              );
}<commit_msg>fix a bug in the return code when finish or cancel the payment<commit_after><!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <script language="javascript" src="http://res.mail.qq.com/mmr/static/lib/js/jquery.js" type="text/javascript"></script>
  <script language="javascript" src="http://res.mail.qq.com/mmr/static/lib/js/lazyloadv3.js"  type="text/javascript"></script>
  <meta id="viewport" name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1; user-scalable=no;" />
  <title>Redirecting...</title>
</head>
<body>
  <br/>
  <div class="list_status">
    <h2 class="blue" >
      <span class="pay_icon"></span>
      <span style="color: #0abede">正在跳转到到微信支付...</span>
    </h2>
  </div>

  <script type="text/javascript">
      //  window.onload=function(){
        //  document.getElementById("pay_form").submit();
        //  }
      </script>
      <script language="javascript" type="text/javascript">
        function auto_remove(img){
          div=img.parentNode.parentNode;div.parentNode.removeChild(div);
          img.onerror="";
          return true;
        }

        function changefont(fontsize){
          if(fontsize < 1 || fontsize > 4)return;
          $('#content').removeClass().addClass('fontSize' + fontsize);
        }

        function onBridgeReady(){
         WeixinJSBridge.invoke(
           'getBrandWCPayRequest', {
               "debug": true,
               "appId" : "<%= @appId %>", //公众号名称，由商户传入
               "timeStamp" : "<%= @timestamp %>", //时间戳
               "nonceStr" : "<%= @nonce_str %>", //随机串
               "package" : "<%= @package %>",//扩展包
               "signType" : "MD5", //微信签名方式:1.sha1;2.md5
               "paySign" : "<%= @paySign %>" //微信签名
             },
               // 返回res.err_msg,取值
               //get_brand_wcpay_request:cancel 用户取消
               //get_brand_wcpay_request:fail 发送失败
               //get_brand_wcpay_request:ok 发送成功
               //WeixinJSBridge.log(res.err_msg);
               //alert(res.err_code+res.err_desc);
               function(res){
                var error_message="";
                if(res.err_msg != "get_brand_wcpay_request:ok") {
                  error_message = "&error_message="+res.err_msg;
                }
                else {
                  error_message = '&error_message=success';
                }

                window.location ="<%= @url %>"+error_message;
              }
              );
}
{'fraction_non_alphanumeric': 0.16730652657102446, 'fraction_numerical': 0.006061830672863205, 'mean_word_length': 1.9873264936632469, 'pattern_counts': {'":': 2, '<': 67, '<?xml version=': 0, '>': 67, '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': '6601960', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1650, 'n_words': 224}