<commit_before>class BeerSong
  
  attr_accessor :beers
  
  def initialize(beers)
    beers = 0  if beers < 0
    beers = 99 if beers > 99
    self.beers = beers
  end
  
  def print_song
    beers.downto 1 do |i|
      puts stanza(i)
    end
  end
  
  def stanza(n)
    if n.zero?
      String.new
    else
      "#{translate n} #{bottle n} of beer on the wall,"       "\n"\
      "#{translate n} #{bottle n} of beer,"                   "\n"\
      "Take one down, pass it around,"                        "\n"\
      "#{translate n - 1} #{bottle n-1} of beer on the wall."<commit_msg>moved the print statement into the stanza to make it easier to read (even though this is a stupid place to put it)<commit_after>class BeerSong
  
  attr_accessor :beers
  
  def initialize(beers)
    beers = 0  if beers < 0
    beers = 99 if beers > 99
    self.beers = beers
  end
  
  def print_song
    beers.downto 1 do |i|
      print_stanza i
    end
  end
  
  def print_stanza(n)
    if n.zero?
      String.new
    else
      puts "#{translate n} #{bottle n} of beer on the wall,"        ,
           "#{translate n} #{bottle n} of beer,"                    ,
           "Take one down, pass it around,"                         ,
           "#{translate n - 1} #{bottle n-1} of beer on the wall."
{'fraction_non_alphanumeric': 0.09674922600619196, 'fraction_numerical': 0.01393188854489164, 'mean_word_length': 1.6825726141078838, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7611518', 'n_tokens_mistral': 467, 'n_tokens_neox': 436, 'n_words': 157}