<commit_before>class Array
  
  def each_collision(*klasses)
    self.each do |object1|
      object1.each_collision(*klasses) do |object1, object2|
        yield object1, object2
      end
    end
  end
  
  def each_bounding_circle_collision(*klasses)
    self.each do |object1|
      object1.each_bounding_circle_collision(*klasses) do |object1, object2|
        yield object1, object2
      end
    end    
  end

  def each_bounding_box_collision(*klasses)
    self.each do |object1|
      object1.each_bounding_box_collision(*klasses) do |object1, object2|
        yield object1, object2
      end
    end
  end

end<commit_msg>Array#each_at for great justice also fixed a variable "shadowing?" warning in each_collision() it was overwriting object1 in the second block, probably still happens for each_*_collision() methods. it was just a warning anyways. Array#each_at lets you use [Class, Klass, Crass].each_at like you can with #each_collision<commit_after>class Array
  
  def each_collision(*klasses)
    self.each do |object1|
      object1.each_collision(*klasses) do |object, object2|
        yield object, object2
      end
    end
  end
  
  def each_bounding_circle_collision(*klasses)
    self.each do |object1|
      object1.each_bounding_circle_collision(*klasses) do |object1, object2|
        yield object1, object2
      end
    end    
  end

  def each_bounding_box_collision(*klasses)
    self.each do |object1|
      object1.each_bounding_box_collision(*klasses) do |object1, object2|
        yield object1, object2
      end
    end
  end

  def each_at(x, y)
    self.each do |object|
      object.each_at(x, y) do |obj|
        yield obj
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.0713022981732469, 'fraction_numerical': 0.020624631703005304, 'mean_word_length': 3.052505966587112, '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': '6585142', 'n_tokens_mistral': 563, 'n_tokens_neox': 559, 'n_words': 153}