<commit_before>//
//  Date.swift
//  Cronexpr
//
//  Created by Safx Developer on 2015/11/21.
//  Copyright © 2015年 Safx Developers. All rights reserved.
//

import Foundation

public struct Date {
    let year     : Int
    let month    : Int
    let day      : Int
    let hour     : Int
    let minute   : Int
    let second   : Int
}

public extension Cron.Date {
    init(date: Foundation.Date) {
        let calendar = Calendar.current
        self.year   = calendar.component(.year, from: date)
        self.month  = calendar.component(.month, from: date)
        self.day    = calendar.component(.day, from: date)
        self.hour   = calendar.component(.hour, from: date)
        self.minute = calendar.component(.minute, from: date)
        self.second = calendar.component(.second, from: date)
    }

    init() {
        self.init(date: Foundation.Date())
    }
}

public extension Cron.Date {
    var date: Foundation.Date? {<commit_msg>Made Date variables publicly accesible<commit_after>//
//  Date.swift
//  Cronexpr
//
//  Created by Safx Developer on 2015/11/21.
//  Copyright © 2015年 Safx Developers. All rights reserved.
//

import Foundation

public struct Date {
    public let year     : Int
    public let month    : Int
    public let day      : Int
    public let hour     : Int
    public let minute   : Int
    public let second   : Int
}

public extension Cron.Date {
    init(date: Foundation.Date) {
        let calendar = Calendar.current
        self.year   = calendar.component(.year, from: date)
        self.month  = calendar.component(.month, from: date)
        self.day    = calendar.component(.day, from: date)
        self.hour   = calendar.component(.hour, from: date)
        self.minute = calendar.component(.minute, from: date)
        self.second = calendar.component(.second, from: date)
    }

    init() {
        self.init(date: Foundation.Date())
    }
}

public extension Cron.Date {
    var date: Foundation.Date? {
{'fraction_non_alphanumeric': 0.10970035551041138, 'fraction_numerical': 0.01218892839004571, 'mean_word_length': 2.2348111658456484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1257948', 'n_tokens_mistral': 620, 'n_tokens_neox': 574, 'n_words': 172}