<commit_before>package com.mingyuans.smoke;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by yanxq on 16/12/7.
 */

public class Smoke {

    public static final int NONE = -1;
    public static final int VERBOSE = 2;
    public static final int DEBUG = 3;
    public static final int INFO = 4;
    public static final int WARN = 5;
    public static final int ERROR = 6;
    public static final int ASSERT = 7;

    private static SubSmoke SUB_SMOKE;

    public static void install(SubSmoke sub) {
        if (sub == null) {
            throw new IllegalArgumentException("Please do not input null !");
        }
        SUB_SMOKE = sub;
    }

    public static void install(String tag,Processes processes) {
        SUB_SMOKE = new SubSmoke(tag,processes);
        SUB_SMOKE.setExtraMethodOffset(1);
        open();
    }

    public static void open() {
        SUB_SMOKE.open();
    }

    public static void enableConsole(boolean consoleEnable) {
        SUB_SMOKE.enableConsole(consoleEnable);
    }

    public static void notification(String event, Object value) {
        SUB_SMOKE.notification(event,value);
    }

    public static SubSmoke getImpl() {
        return SUB_SMOKE;
    }

    public static void setExtraMethodOffset(int extraIndex) {<commit_msg>smoke-java 添加部分方法说明<commit_after>package com.mingyuans.smoke;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by yanxq on 16/12/7.
 */

public class Smoke {

    public static final int NONE = -1;
    public static final int VERBOSE = 2;
    public static final int DEBUG = 3;
    public static final int INFO = 4;
    public static final int WARN = 5;
    public static final int ERROR = 6;
    public static final int ASSERT = 7;

    private static SubSmoke SUB_SMOKE;

    public static void install(SubSmoke sub) {
        if (sub == null) {
            throw new IllegalArgumentException("Please do not input null !");
        }
        SUB_SMOKE = sub;
    }

    public static void install(String tag,Processes processes) {
        SUB_SMOKE = new SubSmoke(tag,processes);
        SUB_SMOKE.setExtraMethodOffset(1);
        open();
    }

    public static void open() {
        SUB_SMOKE.open();
    }

    public static void enableConsole(boolean consoleEnable) {
        SUB_SMOKE.enableConsole(consoleEnable);
    }

    /**
     * 给 Process 发送通知, {@link Process#notification(String, Object)} 将收到该事件
     * @param event 通知的事件标识
     * @param value 事件值
     */
    public static void notification(String event, Object value) {
        SUB_SMOKE.notification(event,value);
    }

    public static SubSmoke getImpl() {
        return SUB_SMOKE;
    }

    /**
     * 打印方法位移,如果有外面套封装,则这里相应要 + 1;
     * @param extraIndex: 方法偏移量
     */
    public static void setExtraMethodOffset(int extraIndex) {
{'fraction_non_alphanumeric': 0.08847736625514403, 'fraction_numerical': 0.009259259259259259, 'mean_word_length': 2.64625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5827804', 'n_tokens_mistral': 946, 'n_tokens_neox': 917, 'n_words': 263}