<commit_before>//
//  LoggieManager.swift
//  Pods
//
//  Created by <NAME> on 12/03/2017.
//
//

import UIKit

extension Notification.Name {
    static let LoggieDidUpdateLogs = Notification.Name("co.infinum.loggie-did-update-logs")
}

public class LoggieManager: NSObject {

    @objc(sharedManager)
    public static let shared = LoggieManager()

    public private(set) var logs = [Log]() {
        didSet {
            DispatchQueue.main.async {
                NotificationCenter.default.post(name: .LoggieDidUpdateLogs, object: self.logs)
            }
        }
    }

    public func showLogs(from viewController: UIViewController) {
        let vc = LogListTableViewController()
        vc.logs = logs

        let navigationController = UINavigationController(rootViewController: vc)
        navigationController.navigationBar.isTranslucent = false
        viewController.present(navigationController, animated: true, completion: nil)
    }

    func add(_ log: Log) {
        logs.insert(log, at: 0)
    }

}<commit_msg>Makes loggie manager init method unavailable<commit_after>//
//  LoggieManager.swift
//  Pods
//
//  Created by <NAME> on 12/03/2017.
//
//

import UIKit

extension Notification.Name {
    static let LoggieDidUpdateLogs = Notification.Name("co.infinum.loggie-did-update-logs")
}

public class LoggieManager: NSObject {

    @objc(sharedManager)
    public static let shared = LoggieManager()

    public private(set) var logs = [Log]() {
        didSet {
            DispatchQueue.main.async {
                NotificationCenter.default.post(name: .LoggieDidUpdateLogs, object: self.logs)
            }
        }
    }

    private override init() {}

    public func showLogs(from viewController: UIViewController) {
        let vc = LogListTableViewController()
        vc.logs = logs

        let navigationController = UINavigationController(rootViewController: vc)
        navigationController.navigationBar.isTranslucent = false
        viewController.present(navigationController, animated: true, completion: nil)
    }

    func add(_ log: Log) {
        logs.insert(log, at: 0)
    }

}
{'fraction_non_alphanumeric': 0.0996708979783733, 'fraction_numerical': 0.00846262341325811, 'mean_word_length': 2.7137870855148343, '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': '6593126', 'n_tokens_mistral': 653, 'n_tokens_neox': 604, 'n_words': 138}