<commit_before>//
//  DestinationInfoListRowDelegate.swift
//  CascadingTableDelegate
//
//  Created by <NAME> on 11/2/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation
import CascadingTableDelegate

class DestinationInfoListRowDelegate: CascadingBareTableDelegate {
	
	/// Cell identifier that will be used by this class. Kindly register this to the section delegate.
	static let cellIdentifier = DestinationInfoCell.nibIdentifier()

	fileprivate var info: DestinationInfo?
	
	convenience init(info: DestinationInfo) {
		self.init(index: 0, childDelegates: [])
		self.info = info
	}
	
	override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
		
		let identifier = DestinationInfoListRowDelegate.cellIdentifier
		return tableView.dequeueReusableCell(withIdentifier: identifier, for: indexPath)
	}
	
	@objc func tableView(_ tableView: UITableView, heightForRowAtIndexPath indexPath: IndexPath) -> CGFloat {
		return DestinationInfoCell.preferredHeight(infoType: info?.type, infoText: info?.text)
	}		
	
	@objc func tableView(_ tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: IndexPath) {
		
		guard let cell = cell as? DestinationInfoCell else {
			return
		}
		
		cell.configure(infoType: info?.type, infoText: info?.text)
	}
}<commit_msg>Update DestinationInfoListRowDelegate's tableView(_:cellForRowAt:) with @objc declaration<commit_after>//
//  DestinationInfoListRowDelegate.swift
//  CascadingTableDelegate
//
//  Created by <NAME> on 11/2/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation
import CascadingTableDelegate

class DestinationInfoListRowDelegate: CascadingBareTableDelegate {
	
	/// Cell identifier that will be used by this class. Kindly register this to the section delegate.
	static let cellIdentifier = DestinationInfoCell.nibIdentifier()

	fileprivate var info: DestinationInfo?
	
	convenience init(info: DestinationInfo) {
		self.init(index: 0, childDelegates: [])
		self.info = info
	}
	
	@objc override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
		
		let identifier = DestinationInfoListRowDelegate.cellIdentifier
		return tableView.dequeueReusableCell(withIdentifier: identifier, for: indexPath)
	}
	
	@objc func tableView(_ tableView: UITableView, heightForRowAtIndexPath indexPath: IndexPath) -> CGFloat {
		return DestinationInfoCell.preferredHeight(infoType: info?.type, infoText: info?.text)
	}		
	
	@objc func tableView(_ tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: IndexPath) {
		
		guard let cell = cell as? DestinationInfoCell else {
			return
		}
		
		cell.configure(infoType: info?.type, infoText: info?.text)
	}
}
{'fraction_non_alphanumeric': 0.08678571428571429, 'fraction_numerical': 0.007142857142857143, 'mean_word_length': 5.023655913978494, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '6082020', 'n_tokens_mistral': 909, 'n_tokens_neox': 799, 'n_words': 222}