<commit_before>/*
 * Logger.swift
 * Part of http://github.com/gfiumara/TwentyOne by <NAME>.
 * See LICENSE for details.
 */

import Foundation

public struct Logger
{
	#if DEBUG
	public static var enabled:Bool = true
	#else
	public static var enabled:Bool = false
	#endif

	public static func log(message:String, file:String = __FILE__, function:String = __FUNCTION__, line:Int = __LINE__)
	{
		if !Logger.enabled {
			return
		}

		print("\(function)|\(line): \(message)")
	}
}
<commit_msg>Replace deprecated Swift file variables.<commit_after>/*
 * Logger.swift
 * Part of http://github.com/gfiumara/TwentyOne by <NAME>.
 * See LICENSE for details.
 */

import Foundation

public struct Logger
{
	#if DEBUG
	public static var enabled:Bool = true
	#else
	public static var enabled:Bool = false
	#endif

	public static func log(message:String, file:String = #file, function:String = #function, line:Int = #line)
	{
		if !Logger.enabled {
			return
		}

		print("\(function)|\(line): \(message)")
	}
}

{'fraction_non_alphanumeric': 0.12974051896207583, 'fraction_numerical': 0.0, 'mean_word_length': 3.9166666666666665, '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': '7365922', 'n_tokens_mistral': 341, 'n_tokens_neox': 316, 'n_words': 94}