<commit_before>var issuesList;
var issuesHTML;

$(document).ready(function() {
    var webURL = window.location.href;
    var splitFlag = "http://";
    if (webURL.substring(0, 5) == "https") {
        splitFlag = "https://";
    }
    var user = webURL.split(splitFlag)[1].split(".")[0];
    user = 'mrzhangxisheng';
    //blogListURL = 'https://api.github.com/repos/' + user + '/' + user + '.github.io/contents/blog';
    issuesList = 'https://api.github.com/repos/' + user + '/' + user + '.github.io/issues';
    issuesHTML = 'https://github.com/' + user + '/' + user + '.github.io/issues'
   // readmeURL = 'https://raw.githubusercontent.com/' + user + '/' + user + '.github.io/master/About Me.md';


    $("#header").text(user + "'s Blog");
    $("#commentsList").removeAttr('data_comments_url');
    $("#tips").html("我们不会获取您的用户名和密码,评论直接通过 HTTPS 与 Github API交互,<br>如果您开启了两步验证,请在博客的<a  target=\"_blank\" href=\"" + issuesHTML + "\">Github issues</a>下添加 Comment");

    var titleString = getTitleString();


})

function setBlogTxt(obj) {

    // 隐藏Button
    if (!$('#btnNav').is(':hidden')) {
        $('#btnNav').click();
    }

    obj = $(obj);
    var blogName = obj.attr("data_name");
    var blogURL = obj.attr("data_blogURL");
    var type = obj.attr("data_type");
    $("#title").text(blogName);
    $("#article").html("loading . . .");

    // set blog content     
    $.get(blogURL, function(result) {
        $("#title").show();
        if (type == "markdown") {

            $("#article").html("");

            testEditormdView = editormd.markdownToHTML("article", {
                markdown: result, //+ "\r\n" + $("#append-test").text(),
                // htmlDecode: true, // 开启 HTML 标签解析，为了安全性，默认不开启
                htmlDecode: "style,script,iframe", // you can filter tags decode
                //toc             : false,
                tocm: true, // Using [TOCM]
                //tocContainer    : "#custom-toc-container", // 自定义 ToC 容器层<commit_msg>Update core.js<commit_after>var issuesList;
var issuesHTML;

$(document).ready(function() {
    var webURL = window.location.href;
    var splitFlag = "http://";
    if (webURL.substring(0, 5) == "https") {
        splitFlag = "https://";
    }
    var user = webURL.split(splitFlag)[1].split(".")[0];
    user = 'mrzhangxisheng';
    //blogListURL = 'https://api.github.com/repos/' + user + '/' + user + '.github.io/contents/blog';
    issuesList = 'https://api.github.com/repos/' + user + '/' + user + '.github.io/issues';
    issuesHTML = 'https://github.com/' + user + '/' + user + '.github.io/issues'
   // readmeURL = 'https://raw.githubusercontent.com/' + user + '/' + user + '.github.io/master/About Me.md';


    $("#header").text(user + "'s Blog");
    $("#commentsList").removeAttr('data_comments_url');
    $("#tips").html("我们不会获取您的用户名和密码,评论直接通过 HTTPS 与 Github API交互,<br>如果您开启了两步验证,请在博客的<a  target=\"_blank\" href=\"" + issuesHTML + "\">Github issues</a>下添加 Comment");

    var titleString = getTitleString();
    setCommentURL(issuesList, title);

})

function setBlogTxt(obj) {

    // 隐藏Button
    if (!$('#btnNav').is(':hidden')) {
        $('#btnNav').click();
    }

    obj = $(obj);
    var blogName = obj.attr("data_name");
    var blogURL = obj.attr("data_blogURL");
    var type = obj.attr("data_type");
    $("#title").text(blogName);
    $("#article").html("loading . . .");

    // set blog content     
    $.get(blogURL, function(result) {
        $("#title").show();
        if (type == "markdown") {

            $("#article").html("");

            testEditormdView = editormd.markdownToHTML("article", {
                markdown: result, //+ "\r\n" + $("#append-test").text(),
                // htmlDecode: true, // 开启 HTML 标签解析，为了安全性，默认不开启
                htmlDecode: "style,script,iframe", // you can filter tags decode
                //toc             : false,
                tocm: true, // Using [TOCM]
                //tocContainer    : "#custom-toc-container", // 自定义 ToC 容器层
{'fraction_non_alphanumeric': 0.20695695695695696, 'fraction_numerical': 0.002002002002002002, 'mean_word_length': 2.481707317073171, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 10, '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': '2579162', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1408, 'n_words': 240}