<commit_before>/**
 * SJ Ezine JavaScript Library v 0.0.1
 * jQuery v 2.1.1
 * jQuery UI v 1.11.0
 * jQuery mousewheel v 3.1.12
 * Metro UI v 2.0.31
 * Animate.css
 *
 * Copyright 2014 <NAME>
 * Released under the MIT license
 *
 * Date: 2014-07-18 18:03 pm
 */

if ( window.SJ === undefined ) {
    window.SJ = {}
}

SJ.ezine = {
    /**
     * 初始化
     */
    init: function() {
        // this.freshDisabled();
        this.scrollHoriz();
        // this.ajaxLoad( '#sjTileArea' );
    },
    /**
     * ajax loading tips
     */
    ajaxLoadingTips: function( tSwitch ) {
        if ( tSwitch === 'show' ) {
            $( '#sjLoading' ).remove(); // Make sure there is no #sjLoading existed in the DOM at the beginning
            var sjLoading = $( '<div id="sjLoading"><span>数据加载中，请稍后 ...</span></div>' );
            $( 'body' ).append( sjLoading );
            var txtHeight = $( '#sjLoading > span' ).outerHeight();
            var top = $( window ).height() / 2 - txtHeight / 2;
            $( '#sjLoading > span' ).css( 'margin-top', top );
            $( '#sjLoading' ).show();<commit_msg>update sj.ezine.js comments.<commit_after>/**
 * SJ Ezine JavaScript Library v 0.0.1
 * jQuery v 2.1.1
 * jQuery UI v 1.11.0
 * jQuery mousewheel v 3.1.12
 * Metro UI v 2.0.31
 * AngularJS 1.3.0-beta.17
 * Animate.css
 *
 * Copyright 2014 <NAME>
 * Released under the MIT license
 *
 * Update Date: 2014-08-29 17:30 pm
 */

if ( window.SJ === undefined ) {
    window.SJ = {}
}

SJ.ezine = {
    /**
     * 初始化
     */
    init: function() {
        // this.freshDisabled();
        this.scrollHoriz();
        // this.ajaxLoad( '#sjTileArea' );
    },
    /**
     * ajax loading tips
     */
    ajaxLoadingTips: function( tSwitch ) {
        if ( tSwitch === 'show' ) {
            $( '#sjLoading' ).remove(); // Make sure there is no #sjLoading existed in the DOM at the beginning
            var sjLoading = $( '<div id="sjLoading"><span>数据加载中，请稍后 ...</span></div>' );
            $( 'body' ).append( sjLoading );
            var txtHeight = $( '#sjLoading > span' ).outerHeight();
            var top = $( window ).height() / 2 - txtHeight / 2;
            $( '#sjLoading > span' ).css( 'margin-top', top );
            $( '#sjLoading' ).show();
{'fraction_non_alphanumeric': 0.17576564580559254, 'fraction_numerical': 0.03417665335108744, 'mean_word_length': 1.9541284403669725, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '1967144', 'n_tokens_mistral': 805, 'n_tokens_neox': 753, 'n_words': 200}