<commit_before><?php
require_once "./jssdk/jssdk.php";
$jssdk = new JSSDK("wxb425e6f4c4d92620", "<KEY>");
$signPackage = $jssdk->GetSignPackage();
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Upload</title>
    <style>
        * { margin: 0; padding: 0; }
        #container { padding: 20px; }
        #choose-btn, #upload-btn { height: 40px; line-height: 40px; text-align: center; color: #fff; background-color: #04be02; border-radius: 4px; }
        #upload-btn { display: none; }
        .img-wrapper img { display: block; }
    </style>
</head>
<body>
    <div id="container">
        <!-- <input type="file" /> -->
        <p id="choose-btn">选择图片</p>
        <div class="img-wrapper"></div>
        <p id="upload-btn">上传</p>
    </div>
</body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script src="https://cdn.bootcss.com/zepto/1.0rc1/zepto.min.js"></script>
<script>
    wx.config({
        debug: false,
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: <?php echo $signPackage["timestamp"];?>,
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: [
            // 所有要调用的 API 都要加到这个列表中
            "getLocalImgData",
            "chooseImage",<commit_msg>fix style<commit_after><?php
require_once "./jssdk/jssdk.php";
$jssdk = new JSSDK("wxb425e6f4c4d92620", "<KEY>");
$signPackage = $jssdk->GetSignPackage();
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Upload</title>
    <style>
        * { margin: 0; padding: 0; }
        #container { padding: 20px; }
        #choose-btn, #upload-btn { height: 40px; line-height: 40px; text-align: center; color: #fff; background-color: #04be02; border-radius: 4px; }
        #upload-btn { display: none; }
        .img-wrapper { margin: 10px 0; }
        .img-wrapper img { display: block; width: 100%; }
    </style>
</head>
<body>
    <div id="container">
        <!-- <input type="file" /> -->
        <p id="choose-btn">选择图片</p>
        <div class="img-wrapper"></div>
        <p id="upload-btn">上传</p>
    </div>
</body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script src="https://cdn.bootcss.com/zepto/1.0rc1/zepto.min.js"></script>
<script>
    wx.config({
        debug: false,
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: <?php echo $signPackage["timestamp"];?>,
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: [
            // 所有要调用的 API 都要加到这个列表中
            "getLocalImgData",
            "chooseImage",
{'fraction_non_alphanumeric': 0.2047428189712759, 'fraction_numerical': 0.02404809619238477, 'mean_word_length': 2.9099216710182767, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 73, 'https://': 2, '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': '2827845', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1099, 'n_words': 202}