<commit_before>//
//  MethodInfo.swift
//  RGAppTools
//
//  Created by RAIN on 16/2/2.
//  Copyright © 2016-2017 Smartech. All rights reserved.
//

import Foundation

public struct MethodInfo {
    /// 在控制台输出方法信息
    ///
    /// - Parameters:
    ///   - message: 原样显示在控制台的信息
    ///   - file: 文件名
    ///   - method: 方法名
    ///   - line: 代码行数
    public static func methodLog<T>(_ message: T,
                                    file:   String = #file,
                                    method: String = #function,
                                    line:   Int    = #line)
    {
        #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
        #endif
    }

    public static func debugPrint(_ item: @autoclosure () -> Any, separator: String = " ", terminator: String = "\n") {
        #if DEBUG
        print(items, separator: separator, terminator: terminator)
        #endif
    }
}<commit_msg>fix (MethodInfo) : fix a typo<commit_after>//
//  MethodInfo.swift
//  RGAppTools
//
//  Created by RAIN on 16/2/2.
//  Copyright © 2016-2017 Smartech. All rights reserved.
//

import Foundation

public struct MethodInfo {
    /// 在控制台输出方法信息
    ///
    /// - Parameters:
    ///   - message: 原样显示在控制台的信息
    ///   - file: 文件名
    ///   - method: 方法名
    ///   - line: 代码行数
    public static func methodLog<T>(_ message: T,
                                    file:   String = #file,
                                    method: String = #function,
                                    line:   Int    = #line)
    {
        #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
        #endif
    }

    public static func debugPrint(_ item: @autoclosure () -> Any, separator: String = " ", terminator: String = "\n") {
        #if DEBUG
        print(item, separator: separator, terminator: terminator)
        #endif
    }
}
{'fraction_non_alphanumeric': 0.1378055122204888, 'fraction_numerical': 0.0124804992199688, 'mean_word_length': 1.4793814432989691, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1062034', 'n_tokens_mistral': 638, 'n_tokens_neox': 598, 'n_words': 150}