<commit_before>class NSDate

  def +(val)
    if val.is_a?(Hash)
      return self.delta(val)
    end
    super
  end

  def delta(_components)
    components = {}.update(_components)
    is_very_specific = components.has_key?(:seconds)
    is_very_specific ||= components.has_key?(:minutes)
    is_very_specific ||= components.has_key?(:hours)

    y = components.delete(:years) || 0
    mo = components.delete(:months) || 0
    d = components.delete(:days) || 0
    h = components.delete(:hours) || 0
    mi = components.delete(:minutes) || 0
    s = components.delete(:seconds) || 0<commit_msg>this didn't work<commit_after>class NSDate

  def delta(_components)
    components = {}.update(_components)
    is_very_specific = components.has_key?(:seconds)
    is_very_specific ||= components.has_key?(:minutes)
    is_very_specific ||= components.has_key?(:hours)

    y = components.delete(:years) || 0
    mo = components.delete(:months) || 0
    d = components.delete(:days) || 0
    h = components.delete(:hours) || 0
    mi = components.delete(:minutes) || 0
    s = components.delete(:seconds) || 0
{'fraction_non_alphanumeric': 0.14543812104787715, 'fraction_numerical': 0.01084010840108401, 'mean_word_length': 3.7148936170212767, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2859506', 'n_tokens_mistral': 376, 'n_tokens_neox': 348, 'n_words': 70}