<commit_before>/*!
 *  AlloyLever v1.0.0 By dntzhang
 *  Github: https://github.com/AlloyTeam/AlloyLever
 *  MIT Licensed.
 */
;(function (root, factory) {
    if(typeof exports === 'object' && typeof module === 'object')
        module.exports = factory()
    else if(typeof define === 'function' && define.amd)
        define([], factory)
    else if(typeof exports === 'object')
        exports["AlloyLever"] = factory()
    else
        root["AlloyLever"] = factory()
})(this, function() {
    var AlloyLever = {}
    AlloyLever.settings = {
        cdn:'//s.url.cn/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js',
        reportUrl: null,
        reportPrefix: '',
        reportKey: 'msg',
        otherReport: null,
        entry: null
    }

    AlloyLever.store = []

    var log = window.console.log,
        info = window.console.info,
        warn = window.console.warn,
        debug = window.console.debug,
        error = window.console.error

    window.console.log = function () {
        AlloyLever.store.push({
            logType: 'log',
            logs: arguments
        })
        log.apply(console, arguments)
    }

    window.console.info = function () {
        AlloyLever.store.push({
            logType: 'info',
            logs: arguments
        })
        info.apply(console, arguments)
    }

    window.console.warn = function () {
        AlloyLever.store.push({
            logType: 'warn',
            logs: arguments
        })
        warn.apply(console, arguments)
    }

    window.console.debug = function () {
        AlloyLever.store.push({
            logType: 'debug',
            logs: arguments
        })
        debug.apply(console, arguments)
    }

    window.console.error = function () {
        AlloyLever.store.push({
            logType: 'error',
            logs: arguments
        })
        error.apply(console, arguments)
    }

    AlloyLever.logs = []
    AlloyLever.config = function(config){<commit_msg>update: 去除重复代码<commit_after>/*!
 *  AlloyLever v1.0.0 By dntzhang
 *  Github: https://github.com/AlloyTeam/AlloyLever
 *  MIT Licensed.
 */
;(function (root, factory) {
    if(typeof exports === 'object' && typeof module === 'object')
        module.exports = factory()
    else if(typeof define === 'function' && define.amd)
        define([], factory)
    else if(typeof exports === 'object')
        exports["AlloyLever"] = factory()
    else
        root["AlloyLever"] = factory()
})(this, function() {
    var AlloyLever = {}
    AlloyLever.settings = {
        cdn:'//s.url.cn/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js',
        reportUrl: null,
        reportPrefix: '',
        reportKey: 'msg',
        otherReport: null,
        entry: null
    }

    AlloyLever.store = []

    var methodList = ['log', 'info', 'warn', 'debug', 'error'];
    methodList.forEach(function(item) {
        var method = console[item];

        console[item] = function() {
            AlloyLever.store.push({
                logType: item,
                logs: arguments
            });

            method.apply(console, arguments);
        }
    });

    AlloyLever.logs = []
    AlloyLever.config = function(config){
{'fraction_non_alphanumeric': 0.14406514249921704, 'fraction_numerical': 0.0018791105543376136, 'mean_word_length': 2.007532956685499, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4351169', 'n_tokens_mistral': 995, 'n_tokens_neox': 974, 'n_words': 186}