<commit_before>//
//  AcountsViewController.swift
//  AlecrimExperiment
//
//  Created by <NAME> on 7/20/15.
//  Copyright (c) 2015 skyylex. All rights reserved.
//

import UIKit



class AcountsViewController: UITableViewController {
    @IBOutlet var table : UITableView!
    
    let AccountCellIdentifier = "AccountCellIdentifier"
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
    }
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        let count = dataContext.people.count()
        return count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(AccountCellIdentifier) as! UITableViewCell
        
        var accountsCount = 0
        for _ in dataContext.people {
            accountsCount++
        }
        
        let accountFirst = dataContext.people.first() /// nil
        let accounts = dataContext.people.toArray()   /// 0
        let peopleAlive = dataContext.people.any()    /// true
        if accounts.count > 0 {
            cell.textLabel!.text = accounts[indexPath.row].name
        }
        <commit_msg>Comments to the code<commit_after>//
//  AcountsViewController.swift
//  AlecrimExperiment
//
//  Created by <NAME> on 7/20/15.
//  Copyright (c) 2015 skyylex. All rights reserved.
//

import UIKit



class AcountsViewController: UITableViewController {
    @IBOutlet var table : UITableView!
    
    let AccountCellIdentifier = "AccountCellIdentifier"
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
    }
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        let count = dataContext.people.count() /// (correct)
        return count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(AccountCellIdentifier) as! UITableViewCell
        
        var accountsCount = 0
        for _ in dataContext.people {
            accountsCount++
        }
        
        let accountFirst = dataContext.people.first() /// nil (incorrect)
        let accounts = dataContext.people.toArray()   /// 0 (incorrect)
        let peopleAlive = dataContext.people.any()    /// (correct)
        if accounts.count > 0 {
            cell.textLabel!.text = accounts[indexPath.row].name
        }
        
{'fraction_non_alphanumeric': 0.09080280592361652, 'fraction_numerical': 0.009353078721745909, 'mean_word_length': 2.36435124508519, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4895242', 'n_tokens_mistral': 757, 'n_tokens_neox': 699, 'n_words': 168}