<commit_before>import UIKit

class ExpenseListViewController : UITableViewController, UITableViewDataSource, UITableViewDelegate {
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 10;
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        // FIXME: What I don't like about this implementation is that I'm duplicating the "desgin" of the "Basic" cell in the storyboard and here in the else branch. I want to keep the storyboard version as it lets me make a segue. Preferably I'd have the app crash if the storyboard design was not available. I could do that by explicitly unpacking the optional I get back from dequeueReusableCellWithIdentifier but that feels "wrong" -- feedback welcome.
        let cellReuseID = "Basic"
        if let cell = tableView.dequeueReusableCellWithIdentifier(cellReuseID) as? UITableViewCell {
            return self.configureCell(cell, indexPath: indexPath)
        } else {
            return UITableViewCell(style: .Default, reuseIdentifier: cellReuseID);
        }
    }
    
    func configureCell(cell: UITableViewCell, indexPath: NSIndexPath) -> UITableViewCell {
        cell.textLabel.text = "Row \(indexPath.row)"
        return cell
    }
    
}<commit_msg>Adding Mark, it's the new pragma!<commit_after>import UIKit

class ExpenseListViewController : UITableViewController, UITableViewDataSource, UITableViewDelegate {
    
    // MARK: - UITableViewDataSource
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 10;
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        // FIXME: What I don't like about this implementation is that I'm duplicating the "desgin" of the "Basic" cell in the storyboard and here in the else branch. I want to keep the storyboard version as it lets me make a segue. Preferably I'd have the app crash if the storyboard design was not available. I could do that by explicitly unpacking the optional I get back from dequeueReusableCellWithIdentifier but that feels "wrong" -- feedback welcome.
        let cellReuseID = "Basic"
        if let cell = tableView.dequeueReusableCellWithIdentifier(cellReuseID) as? UITableViewCell {
            return self.configureCell(cell, indexPath: indexPath)
        } else {
            return UITableViewCell(style: .Default, reuseIdentifier: cellReuseID);
        }
    }
    
    // MARK: - Private
    
    func configureCell(cell: UITableViewCell, indexPath: NSIndexPath) -> UITableViewCell {
        cell.textLabel.text = "Row \(indexPath.row)"
        return cell
    }
    
}
{'fraction_non_alphanumeric': 0.0663558106169297, 'fraction_numerical': 0.0014347202295552368, 'mean_word_length': 3.371473354231975, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2359605', 'n_tokens_mistral': 792, 'n_tokens_neox': 718, 'n_words': 267}