<commit_before>//
//  FileHelpers.swift
//  OBAKit
//
//  Created by <NAME> on 3/17/17.
//  Copyright © 2017 OneBusAway. All rights reserved.
//

import Foundation

@objc class FileHelpers: NSObject {
    /// Retrieves the file path to the specified file in the specified directory.
    /// Success of this method does not guarantee that the
    /// file actually exists!
    ///
    /// - Parameters:
    ///   - fileName: Name of file, including extenion
    ///   - inDirectory: The search path directory enum value
    /// - Returns: The full, absolute path to the specified file, whether or not it exists
    @objc public class func pathTo(fileName: String, inDirectory: FileManager.SearchPathDirectory) -> String? {
        let url = urlTo(fileName: fileName, inDirectory: inDirectory)
        return url?.path
    }

    /// Retrieves the URL to the specified file in the specified directory.
    /// Success of this method does not guarantee that the file actually exists!<commit_msg>Adds a `public` modifier to FileHelpers to let it build in Archive mode<commit_after>//
//  FileHelpers.swift
//  OBAKit
//
//  Created by <NAME> on 3/17/17.
//  Copyright © 2017 OneBusAway. All rights reserved.
//

import Foundation

@objc public class FileHelpers: NSObject {
    /// Retrieves the file path to the specified file in the specified directory.
    /// Success of this method does not guarantee that the
    /// file actually exists!
    ///
    /// - Parameters:
    ///   - fileName: Name of file, including extenion
    ///   - inDirectory: The search path directory enum value
    /// - Returns: The full, absolute path to the specified file, whether or not it exists
    @objc public class func pathTo(fileName: String, inDirectory: FileManager.SearchPathDirectory) -> String? {
        let url = urlTo(fileName: fileName, inDirectory: inDirectory)
        return url?.path
    }

    /// Retrieves the URL to the specified file in the specified directory.
    /// Success of this method does not guarantee that the file actually exists!
{'fraction_non_alphanumeric': 0.09272816007808687, 'fraction_numerical': 0.008784773060029283, 'mean_word_length': 2.6870503597122304, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5979292', 'n_tokens_mistral': 552, 'n_tokens_neox': 544, 'n_words': 238}