<commit_before>//
//  ViewController.swift
//  Demo
//
//  Created by <NAME> on 2014-12-10.
//  Copyright (c) 2014 HonghaoZ. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
	
	var cleanLogger = Loggerithm()
	
	func setupLocalLogger() {
		cleanLogger.showDateTime = false
		cleanLogger.showLogLevel = false
		cleanLogger.showFileName = false
		cleanLogger.showLineNumber = false
		cleanLogger.showFunctionName = false
	}
	
    override func viewDidLoad() {
        super.viewDidLoad()
		
		// Logger is setup in AppDelegate.swift
		setupLocalLogger()
		
		// Usage example
        log.verbose("Verbose message...")
		log.debug("Debug message...")
		log.info("Info message...")
		log.warning("Warning message...")
		log.error("Error message...")
		
		log.emptyLine()
        log.showDateTime = false
        log.info("date time is turned off.")
		
		log.showLineNumber = false
		log.info("Line number is turned off.")
		
		log.showFileName = false
		log.info("File name is turned off.")
		
		log.showFunctionName = false
		log.info("Function name is turned off.")
		
		log.showLogLevel = false
		log.info("Log level is turned off.")
		
		log.emptyLine()
		log.info("Restoring to full format...")
		
		log.showDateTime = true
		log.showLogLevel = true
		log.showFileName = true
		log.showLineNumber = true
		log.showFunctionName = true
		
		log.verboseWithFormat("I can use format: %d + %d = %d", args: 1, 1, 2)
		
		// Customize Color
		cleanLogger.emptyLine()
		log.useColorfulLog = false
		log.info("Color is turned off.")
		log.useColorfulLog = true
		log.info("Color is turned on.")
		
		cleanLogger.emptyLine()
		cleanLogger.info("Customizing color...")
		log.verboseColor = UIColor.grayColor()
		log.debugColor = UIColor.greenColor()
		log.infoColor = UIColor.yellowColor()
		log.warningColor = UIColor.orangeColor()
		log.errorColor = UIColor.redColor()
		
		log.verbose("Verbose message...")
		log.debug("Debug message...")
		log.info("Info message...")
		log.warning("Warning message...")
		log.error("Error message...")
    }
}
<commit_msg>Updated demo<commit_after>//
//  ViewController.swift
//  Demo
//
//  Created by <NAME> on 2014-12-10.
//  Copyright (c) 2014 HonghaoZ. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
	
	var cleanLogger = Loggerithm()
	
	func setupLocalLogger() {
		cleanLogger.showDateTime = false
		cleanLogger.showLogLevel = false
		cleanLogger.showFileName = false
		cleanLogger.showLineNumber = false
		cleanLogger.showFunctionName = false
	}
	
    override func viewDidLoad() {
        super.viewDidLoad()
		
		// Logger is setup in AppDelegate.swift
		setupLocalLogger()
		
		// TODO: If you installed XcodeColors, comment out these two lines
//		log.useColorfulLog = true
//		cleanLogger.useColorfulLog = true
		
		// Usage example
        log.verbose("Verbose message...")
		log.debug("Debug message...")
		log.info("Info message...")
		log.warning("Warning message...")
		log.error("Error message...")
		
		log.emptyLine()
        log.showDateTime = false
        log.info("date time is turned off.")
		
		log.showLineNumber = false
		log.info("Line number is turned off.")
		
		log.showFileName = false
		log.info("File name is turned off.")
		
		log.showFunctionName = false
		log.info("Function name is turned off.")
		
		log.showLogLevel = false
		log.info("Log level is turned off.")
		
		log.emptyLine()
		log.info("Restoring to full format...")
		
		log.showDateTime = true
		log.showLogLevel = true
		log.showFileName = true
		log.showLineNumber = true
		log.showFunctionName = true
		
		log.verboseWithFormat("I can use format: %d + %d = %d", args: 1, 1, 2)
		
		// Customize Color
		
		// TODO: If you installed XcodeColors, comment out these lines
//		cleanLogger.emptyLine()
//		log.useColorfulLog = false
//		log.info("Color is turned off.")
//		log.useColorfulLog = true
//		log.info("Color is turned on.")
		
		cleanLogger.emptyLine()
		cleanLogger.info("Customizing color...")
		log.verboseColor = UIColor.grayColor()
		log.debugColor = UIColor.greenColor()
		log.infoColor = UIColor.yellowColor()
		log.warningColor = UIColor.orangeColor()
		log.errorColor = UIColor.redColor()
		
		log.verbose("Verbose message...")
		log.debug("Debug message...")
		log.info("Info message...")
		log.warning("Warning message...")
		log.error("Error message...")
    }
}

{'fraction_non_alphanumeric': 0.13251085218185973, 'fraction_numerical': 0.006854009595613434, 'mean_word_length': 3.064995357474466, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4634939', 'n_tokens_mistral': 1561, 'n_tokens_neox': 1339, 'n_words': 338}