<commit_before>//
//  UITableViewReloadDataSpy.swift
//  TestableUIKit
//
//  Created by <NAME> on 2/22/17.
//  Copyright © 2017 Swagger Soft. All rights reserved.
//

import FoundationSwagger
import TestSwagger


public extension UITableView {

    private static let reloadDataCalledString = UUIDKeyString()
    private static let reloadDataCalledKey =
        ObjectAssociationKey(reloadDataCalledString)
    private static let reloadDataCalledReference =
        SpyEvidenceReference(key: reloadDataCalledKey)


    /// Spy controller for ensuring a table view has had `reloadData` called on it.
    public enum ReloadDataSpyController: SpyController {
        public static let rootSpyableClass: AnyClass = UITableView.self
        public static let vector = SpyVector.direct
        public static let coselectors = [
            SpyCoselectors(
                methodType: .instance,
                original: #selector(UITableView.reloadData),
                spy: #selector(UITableView.spy_reloadData)
            )
        ] as Set
        public static let evidence = [reloadDataCalledReference] as Set
        public static let forwardsInvocations = true
    }


    /// Spy method that replaces the true implementation of `reloadData`
    public func spy_reloadData() {
        reloadDataCalled = true
        spy_reloadData()
    }<commit_msg>Gratuitous formatting<commit_after>//
//  UITableViewReloadDataSpy.swift
//  TestableUIKit
//
//  Created by <NAME> on 2/22/17.
//  Copyright © 2017 Swagger Soft. All rights reserved.
//

import FoundationSwagger
import TestSwagger


public extension UITableView {

    private static let reloadDataCalledString = UUIDKeyString()
    private static let reloadDataCalledKey = ObjectAssociationKey(reloadDataCalledString)
    private static let reloadDataCalledReference = SpyEvidenceReference(key: reloadDataCalledKey)


    /// Spy controller for ensuring a table view has had `reloadData` called on it.
    public enum ReloadDataSpyController: SpyController {
        public static let rootSpyableClass: AnyClass = UITableView.self
        public static let vector = SpyVector.direct
        public static let coselectors = [
            SpyCoselectors(
                methodType: .instance,
                original: #selector(UITableView.reloadData),
                spy: #selector(UITableView.spy_reloadData)
            )
        ] as Set
        public static let evidence = [reloadDataCalledReference] as Set
        public static let forwardsInvocations = true
    }


    /// Spy method that replaces the true implementation of `reloadData`
    public func spy_reloadData() {
        reloadDataCalled = true
        spy_reloadData()
    }
{'fraction_non_alphanumeric': 0.06360946745562131, 'fraction_numerical': 0.006656804733727811, 'mean_word_length': 2.7991573033707864, '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': '4742732', 'n_tokens_mistral': 758, 'n_tokens_neox': 690, 'n_words': 215}