<commit_before>package com.smallsoho.mcplugin.image.utils

import java.io.BufferedReader
import java.io.InputStreamReader

/**
 * Created by longlong on 2017/4/15.
 */
class Tools {

    companion object {
        fun cmd(cmd: String, params: String) {
            val cmdStr = if (isCmdExist(cmd)) {
                "$cmd $params"
            } else {
                val system = System.getProperty("os.name")
                when (system) {
                    "Mac OS X" ->
                        FileUtil.getToolsDirPath() + "mac/" + cmd
                    "Linux" ->
                        FileUtil.getToolsDirPath() + "linux/" + cmd
                    "Windows" ->
                        FileUtil.getToolsDirPath() + "windows/" + cmd
                    else -> ""
                }
            }
            if (cmdStr == "") {
                LogUtil.log("McImage Not support this system")
                return<commit_msg>修复bug<commit_after>package com.smallsoho.mcplugin.image.utils

import java.io.BufferedReader
import java.io.InputStreamReader

/**
 * Created by longlong on 2017/4/15.
 */
class Tools {

    companion object {
        fun cmd(cmd: String, params: String) {
            val cmdStr = if (isCmdExist(cmd)) {
                "$cmd $params"
            } else {
                val system = System.getProperty("os.name")
                when (system) {
                    "Mac OS X" ->
                        FileUtil.getToolsDirPath() + "mac/" + "$cmd $params"
                    "Linux" ->
                        FileUtil.getToolsDirPath() + "linux/" + "$cmd $params"
                    "Windows" ->
                        FileUtil.getToolsDirPath() + "windows/" + "$cmd $params"
                    else -> ""
                }
            }
            if (cmdStr == "") {
                LogUtil.log("McImage Not support this system")
                return
{'fraction_non_alphanumeric': 0.11572856391372961, 'fraction_numerical': 0.007364544976328248, 'mean_word_length': 1.24822695035461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6611557', 'n_tokens_mistral': 521, 'n_tokens_neox': 488, 'n_words': 112}