<commit_before><template>
    <div class="social-signup-container">
        <div class="sign-btn" @click="wechatHandleClick('wechat')">
            <span class="wx-svg-container"><wscn-icon-svg icon-class="weixin" class="icon"/></span>
            微信
        </div>
        <div class="sign-btn" @click="tencentHandleClick('tencent')">
            <span class="qq-svg-container"><wscn-icon-svg icon-class="QQ" class="icon"/></span>
            QQ
        </div>
    </div>
</template>

<script>
    import openWindow from 'utils/openWindow';

    export default {
      name: 'social-signin',
      methods: {
        wechatHandleClick(thirdpart) {
          this.$store.commit('SET_AUTH_TYPE', thirdpart);
          const appid = 'xxxxx';
          const redirect_uri = encodeURIComponent('http://wallstreetcn.com/auth/redirect?redirect=' + window.location.origin + '/authredirect');
          const url = 'https://open.weixin.qq.com/connect/qrconnect?appid=' + appid + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_login#wechat_redirect';
          openWindow(url, thirdpart, 540, 540);
        },
        tencentHandleClick(thirdpart) {
          this.$store.commit('SET_AUTH_TYPE', thirdpart);
          const client_id = 'xxxxx';
          const redirect_uri = encodeURIComponent('http://wallstreetcn.com/auth/redirect?redirect=' + window.location.origin + '/authredirect');
          const url = 'https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=' + client_id + '&redirect_uri=' + redirect_uri;
          openWindow(url, thirdpart, 540, 540);
        }
      }
    }
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
    .social-signup-container {
        margin: 20px 0;
        .sign-btn {
            display: inline-block;
            cursor: pointer;
        }
        .icon {
            color: #fff;
            font-size: 30px;
            margin-top: 6px;
        }
        .wx-svg-container, .qq-svg-container {
            display: inline-block;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            padding-top: 1px;
            border-radius: 4px;
            margin-bottom: 20px;
            margin-right: 5px;
        }
        .wx-svg-container {
            background-color: #8dc349;
        }
        .qq-svg-container {
            background-color: #6BA2D6;
            margin-left: 50px;
        }
    }
</style>
<commit_msg>use mock url<commit_after><template>
    <div class="social-signup-container">
        <div class="sign-btn" @click="wechatHandleClick('wechat')">
            <span class="wx-svg-container"><wscn-icon-svg icon-class="weixin" class="icon"/></span>
            微信
        </div>
        <div class="sign-btn" @click="tencentHandleClick('tencent')">
            <span class="qq-svg-container"><wscn-icon-svg icon-class="QQ" class="icon"/></span>
            QQ
        </div>
    </div>
</template>

<script>
    import openWindow from 'utils/openWindow';

    export default {
      name: 'social-signin',
      methods: {
        wechatHandleClick(thirdpart) {
          this.$store.commit('SET_AUTH_TYPE', thirdpart);
          const appid = 'xxxxx';
          const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/authredirect');
          const url = 'https://open.weixin.qq.com/connect/qrconnect?appid=' + appid + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_login#wechat_redirect';
          openWindow(url, thirdpart, 540, 540);
        },
        tencentHandleClick(thirdpart) {
          this.$store.commit('SET_AUTH_TYPE', thirdpart);
          const client_id = 'xxxxx';
          const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/authredirect');
          const url = 'https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=' + client_id + '&redirect_uri=' + redirect_uri;
          openWindow(url, thirdpart, 540, 540);
        }
      }
    }
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
    .social-signup-container {
        margin: 20px 0;
        .sign-btn {
            display: inline-block;
            cursor: pointer;
        }
        .icon {
            color: #fff;
            font-size: 30px;
            margin-top: 6px;
        }
        .wx-svg-container, .qq-svg-container {
            display: inline-block;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            padding-top: 1px;
            border-radius: 4px;
            margin-bottom: 20px;
            margin-right: 5px;
        }
        .wx-svg-container {
            background-color: #8dc349;
        }
        .qq-svg-container {
            background-color: #6BA2D6;
            margin-left: 50px;
        }
    }
</style>

{'fraction_non_alphanumeric': 0.14119567435217303, 'fraction_numerical': 0.016323199347072027, 'mean_word_length': 2.0466128029832196, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 4, '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': '3201201', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1500, 'n_words': 254}