<commit_before>//
//  Result.swift
//  rCaltrain
//
//  Created by <NAME> on 2/17/15.
//  Copyright (c) 2015 Ranmocy. All rights reserved.
//

import Foundation

class Result {

    let departureStop: Stop
    let arrivalStop: Stop

    var departureTime: NSDate {
        return departureStop.departureTime
    }
    var arrivalTime: NSDate {
        return arrivalStop.arrivalTime
    }

    private func dateToStr(date: NSDate) -> String {
        let interval = Int(date.timeIntervalSince1970)
        let hours = String(interval / 3600).rjust(2, withStr: "0")
        let minutes = String(interval / 60 % 60).rjust(2, withStr: "0")
        return "\(hours):\(minutes)"
    }

    var departureStr: String {
        return dateToStr(departureTime)<commit_msg>change midnight hour 25:00 to 01:00<commit_after>//
//  Result.swift
//  rCaltrain
//
//  Created by <NAME> on 2/17/15.
//  Copyright (c) 2015 Ranmocy. All rights reserved.
//

import Foundation

class Result {

    let departureStop: Stop
    let arrivalStop: Stop

    var departureTime: NSDate {
        return departureStop.departureTime
    }
    var arrivalTime: NSDate {
        return arrivalStop.arrivalTime
    }

    private func dateToStr(date: NSDate) -> String {
        let interval = Int(date.timeIntervalSince1970)
        let hours = String(interval / 3600 % 24).rjust(2, withStr: "0")
        let minutes = String(interval / 60 % 60).rjust(2, withStr: "0")
        return "\(hours):\(minutes)"
    }

    var departureStr: String {
        return dateToStr(departureTime)
{'fraction_non_alphanumeric': 0.11139729555698648, 'fraction_numerical': 0.038634900193174504, 'mean_word_length': 2.547945205479452, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2102688', 'n_tokens_mistral': 536, 'n_tokens_neox': 482, 'n_words': 131}