<commit_before>//
//  Created by <NAME> on 8/26/16.
//

import Foundation

// MARK: - Int components

public extension Int {

  public var seconds: DateComponents {
    var components = DateComponents()
    components.second = self
    return components
  }

  public var minutes: DateComponents {
    var components = DateComponents()
    components.minute = self
    return components
  }

  public var hours: DateComponents {
    var components = DateComponents()
    components.hour = self
    return components
  }

  public var days: DateComponents {
    var components = DateComponents()
    components.day = self
    return components
  }

  public var weeks: DateComponents {
    var components = DateComponents()
    components.weekOfYear = self
    return components
  }

  public var months: DateComponents {
    var components = DateComponents()
    components.month = self
    return components
  }

  public var years: DateComponents {
    var components = DateComponents()
    components.year = self
    return components
  }

}

// MARK: - Date components

public extension Date {

  public var seconds: Int {
    return Calendar.current.component(.second, from: self)
  }

  public var minutes: Int {
    return Calendar.current.component(.minute, from: self)
  }

  public var hours: Int {
    return Calendar.current.component(.hour, from: self)
  }

  public var days: Int {
    return Calendar.current.component(.day, from: self)
  }

  public var months: Int {
    return Calendar.current.component(.month, from: self)
  }

  public var years: Int {<commit_msg>Renamed Date.days -> Date.day, Date.months -> Date.month and etc.<commit_after>//
//  Created by <NAME> on 8/26/16.
//

import Foundation

// MARK: - Int components

public extension Int {

  public var seconds: DateComponents {
    var components = DateComponents()
    components.second = self
    return components
  }

  public var minutes: DateComponents {
    var components = DateComponents()
    components.minute = self
    return components
  }

  public var hours: DateComponents {
    var components = DateComponents()
    components.hour = self
    return components
  }

  public var days: DateComponents {
    var components = DateComponents()
    components.day = self
    return components
  }

  public var weeks: DateComponents {
    var components = DateComponents()
    components.weekOfYear = self
    return components
  }

  public var months: DateComponents {
    var components = DateComponents()
    components.month = self
    return components
  }

  public var years: DateComponents {
    var components = DateComponents()
    components.year = self
    return components
  }

}

// MARK: - Date components

public extension Date {

  public var second: Int {
    return Calendar.current.component(.second, from: self)
  }

  public var minute: Int {
    return Calendar.current.component(.minute, from: self)
  }

  public var hour: Int {
    return Calendar.current.component(.hour, from: self)
  }

  public var day: Int {
    return Calendar.current.component(.day, from: self)
  }

  public var month: Int {
    return Calendar.current.component(.month, from: self)
  }

  public var year: Int {
{'fraction_non_alphanumeric': 0.08587429993777225, 'fraction_numerical': 0.0031113876789047915, 'mean_word_length': 2.9496314496314495, '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': '1979521', 'n_tokens_mistral': 913, 'n_tokens_neox': 854, 'n_words': 288}