<commit_before>class BookKeeping
  VERSION = 3
end

class LeapYear
  def initialize(year)
    @year = year
  end

  def leap?
    divisible_by_4? && (divisible_by_400? || !divisible_by_100?)
  end

  private
  def year
    @year
  end

  def divisible_by_4?
    year % 4 == 0
  end

  def divisible_by_100?
    year % 100 == 0
  end

  def divisible_by_400?
    year % 400 == 0
  end
end

class Year
  def self.leap?(year)
    LeapYear.new(year).leap?
  end
end<commit_msg>Adding rubocop on leap year<commit_after>class BookKeeping
  VERSION = 3
end

class LeapYear
  def initialize(year)
    @year = year
  end

  def leap?
    divisible_by_4? && (divisible_by_400? || !divisible_by_100?)
  end

  private

  def year
    @year
  end

  def divisible_by_4?
    (year % 4).zero?
  end

  def divisible_by_100?
    (year % 100).zero?
  end

  def divisible_by_400?
    (year % 400).zero?
  end
end

class Year
  def self.leap?(year)
    LeapYear.new(year).leap?
  end
end
{'fraction_non_alphanumeric': 0.09072164948453608, 'fraction_numerical': 0.04845360824742268, 'mean_word_length': 2.749034749034749, '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': '6465420', 'n_tokens_mistral': 430, 'n_tokens_neox': 382, 'n_words': 98}