<commit_before>#
#This class controlls life
#
class Life
  #define instance var
  #and substitute the argument, that will be DEAD or ALIVE
  def initialize(condition)
    @dead_or_alive = condition
  end
  
  #set accessor for only reading
  attr_reader :dead_or_alive
  
  public
  def die
    @dead_or_alive = DEAD
    return true
  end
  
  def born
    @dead_or_alive = ALIVE
    return true
  end
  
  def dead?
    return true if @dead_or_alive == DEAD
    false
  end
  
  def alive?
    return true if @dead_or_alive == ALIVE
    false
  end
  
  def dead_or_alive?
    return DEAD if @dead_or_alive == DEAD
    ALIVE
  end
end<commit_msg>Fix Life class for ready to adapt mutation fearture<commit_after>#
#This class controlls life
#
class Life
  #define instance var
  #and substitute the argument, that will be DEAD or ALIVE
  def initialize(condition)
    @dead_or_alive = condition
    @death_count = 0
    @birth_count = 0
  end
  
  #set accessor for only reading
  attr_reader :dead_or_alive
  
  public
  def die
    @dead_or_alive = DEAD
    @death_count += 1
    true
  end
  
  def born
    @dead_or_alive = ALIVE
    @birth_count += 1
    true
  end
  
  def dead?
    return true if @dead_or_alive == DEAD
    false
  end
  
  def alive?
    return true if @dead_or_alive == ALIVE
    false
  end
  
  def dead_or_alive?
    return DEAD if @dead_or_alive == DEAD
    ALIVE
  end
end
{'fraction_non_alphanumeric': 0.05128205128205128, 'fraction_numerical': 0.002849002849002849, 'mean_word_length': 2.6118251928020566, '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': '3443747', 'n_tokens_mistral': 526, 'n_tokens_neox': 506, 'n_words': 163}