<commit_before>//
//  RulesDetailViewController.swift
//  CriticalMaps
//
//  Created by <NAME> on 12/17/18.
//

import UIKit

class RulesDetailViewController: UIViewController {
    private var rule: Rule

    init(rule: Rule) {
        self.rule = rule
        super.init(nibName: nil, bundle: nil)
    }

    required init?(coder _: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        title = rule.title
        configureTextView()
    }

    private func configureTextView() {
        let textView = UITextView(frame: view.bounds)
        textView.text = rule.text
        textView.contentInset = UIEdgeInsets(top: 12, left: 12, bottom: 12, right: 12)
        textView.isEditable = false
        textView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        textView.font = UIFont.preferredFont(forTextStyle: .body)
        textView.textColor = .rulesDetailText<commit_msg>changed backbutton color<commit_after>//
//  RulesDetailViewController.swift
//  CriticalMaps
//
//  Created by <NAME> on 12/17/18.
//

import UIKit

class RulesDetailViewController: UIViewController {
    private var rule: Rule

    init(rule: Rule) {
        self.rule = rule
        super.init(nibName: nil, bundle: nil)
    }

    required init?(coder _: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        title = rule.title
        navigationController?.navigationBar.tintColor = .black
        configureTextView()
    }

    private func configureTextView() {
        let textView = UITextView(frame: view.bounds)
        textView.text = rule.text
        textView.contentInset = UIEdgeInsets(top: 12, left: 12, bottom: 12, right: 12)
        textView.isEditable = false
        textView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        textView.font = UIFont.preferredFont(forTextStyle: .body)
        textView.textColor = .rulesDetailText
{'fraction_non_alphanumeric': 0.10255152109911678, 'fraction_numerical': 0.013738959764474975, 'mean_word_length': 2.6738738738738737, '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': '2969189', 'n_tokens_mistral': 650, 'n_tokens_neox': 603, 'n_words': 139}