<commit_before>//
//  MatchesViewController.swift
//  SwiftGoal
//
//  Created by <NAME> on 10/05/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import UIKit
import ReactiveCocoa

class MatchesViewController: UITableViewController {

    let (isActiveSignal, isActiveSink) = Signal<Bool, NoError>.pipe()

    let matchCellIdentifier = "MatchCell"
    let viewModel: MatchesViewModel

    // MARK: - Lifecycle

    init(viewModel: MatchesViewModel) {
        self.viewModel = viewModel
        super.init(nibName: nil, bundle: nil)
    }

    required init!(coder aDecoder: NSCoder!) {
        fatalError("NSCoding is not supported")
    }

    // MARK: - View Lifecycle

    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: matchCellIdentifier)

        bindViewModel()
    }

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)

        sendNext(isActiveSink, true)
    }

    override func viewWillDisappear(animated: Bool) {
        super.viewWillDisappear(animated)

        sendNext(isActiveSink, false)
    }
<commit_msg>Disable match table row selection<commit_after>//
//  MatchesViewController.swift
//  SwiftGoal
//
//  Created by <NAME> on 10/05/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import UIKit
import ReactiveCocoa

class MatchesViewController: UITableViewController {

    let (isActiveSignal, isActiveSink) = Signal<Bool, NoError>.pipe()

    let matchCellIdentifier = "MatchCell"
    let viewModel: MatchesViewModel

    // MARK: - Lifecycle

    init(viewModel: MatchesViewModel) {
        self.viewModel = viewModel
        super.init(nibName: nil, bundle: nil)
    }

    required init!(coder aDecoder: NSCoder!) {
        fatalError("NSCoding is not supported")
    }

    // MARK: - View Lifecycle

    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.allowsSelection = false
        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: matchCellIdentifier)

        bindViewModel()
    }

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)

        sendNext(isActiveSink, true)
    }

    override func viewWillDisappear(animated: Bool) {
        super.viewWillDisappear(animated)

        sendNext(isActiveSink, false)
    }

{'fraction_non_alphanumeric': 0.09623430962343096, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 2.9651741293532337, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5097020', 'n_tokens_mistral': 779, 'n_tokens_neox': 705, 'n_words': 158}