<commit_before>//
//  TimeTableViewCell.swift
//  microtime.tracker
//
//  Created by <NAME> on 13/11/2016.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit
import SQLite

class TimeTableViewCell: UITableViewCell {

    @IBOutlet weak var timeLabel: UILabel!
    @IBOutlet weak var subject: UILabel!
    @IBOutlet weak var date: UILabel!
    var id: Int64 = 0
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization 
        self.backgroundColor = .clear
        self.contentView.backgroundColor = UIColor(white: 1.0, alpha: 0.0)
        self.backgroundView = UIView();
        self.selectedBackgroundView = UIView();
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func populate() {
        let sql = SQLiteProxy()
        sql.initDB()
        
        let startTime = Expression<String>("start_time")
        let duration = Expression<String?>("duration")
        let description = Expression<String?>("info")
        
        let row: Row? = sql.getTimeByID(filterId: self.id);
        self.subject.text = row!.get(description)
        self.date.text = row!.get(startTime)
        self.timeLabel.text = row!.get(duration)
        
        print(row)
    }
    
}<commit_msg>Removed not needed print()<commit_after>//
//  TimeTableViewCell.swift
//  microtime.tracker
//
//  Created by <NAME> on 13/11/2016.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit
import SQLite

class TimeTableViewCell: UITableViewCell {

    @IBOutlet weak var timeLabel: UILabel!
    @IBOutlet weak var subject: UILabel!
    @IBOutlet weak var date: UILabel!
    var id: Int64 = 0
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization 
        self.backgroundColor = .clear
        self.contentView.backgroundColor = UIColor(white: 1.0, alpha: 0.0)
        self.backgroundView = UIView();
        self.selectedBackgroundView = UIView();
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func populate() {
        let sql = SQLiteProxy()
        sql.initDB()
        
        let startTime = Expression<String>("start_time")
        let duration = Expression<String?>("duration")
        let description = Expression<String?>("info")
        
        let row: Row? = sql.getTimeByID(filterId: self.id);
        self.subject.text = row!.get(description)
        self.date.text = row!.get(startTime)
        self.timeLabel.text = row!.get(duration)
    }
    
}
{'fraction_non_alphanumeric': 0.1111512089498376, 'fraction_numerical': 0.013713460844460484, 'mean_word_length': 2.347826086956522, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '667592', 'n_tokens_mistral': 868, 'n_tokens_neox': 816, 'n_words': 204}