<commit_before>//
//  ItemsViewController.swift
//  Homepwner
//
//  Created by <NAME> on 9/3/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

class ItemsViewController: UITableViewController {
    
    override init(){
        super.init(style: UITableViewStyle.Plain)
    }
    
    override init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
    }
    
    override convenience init(style: UITableViewStyle) {
        self.init()
    }
    
    required init(coder aDecoder: NSCoder) {
        fatalError("NSCoding not supported")
    }
    
}
<commit_msg>Create items and add to table view<commit_after>//
//  ItemsViewController.swift
//  Homepwner
//
//  Created by <NAME> on 9/3/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

class ItemsViewController: UITableViewController {
    
    override init(){
        super.init(style: UITableViewStyle.Plain)
        
        for _ in 1...5 {
            ItemStore.sharedStore.createItem()
        }
    }
    
    override init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
    }
    
    override convenience init(style: UITableViewStyle) {
        self.init()
    }
    
    required init(coder aDecoder: NSCoder) {
        fatalError("NSCoding not supported")
    }
    
    override func tableView(tableView: UITableView!, numberOfRowsInSection section: Int) -> Int {
        return ItemStore.sharedStore.allItems.count
    }
    
    override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
        
        // create an instance of UITableViewCell with the default appearance
        let cell:UITableViewCell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: "UITableViewCell")
        
        //Set the text of the cell with the description of the item
        //that is at the nth index of ItemStore.sharedStore.allitems
        
        let items = ItemStore.sharedStore.allItems
        let item:Item = items[indexPath.row]
        
        cell.textLabel.text = item.description
        
        return cell
    }
}
{'fraction_non_alphanumeric': 0.09178321678321678, 'fraction_numerical': 0.007867132867132868, 'mean_word_length': 2.526964560862866, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1365508', 'n_tokens_mistral': 722, 'n_tokens_neox': 656, 'n_words': 167}