original_docstring: returns True if the box around this word overlaps with the box of the other word.
docstring: returns True if the box around this word overlaps with the box of the other word.
docstring_tokens: returns True if the box around this word overlaps with the box of the other word .
code: def collides(self, other_word):
          """returns True if the box around this word overlaps with the box of the other word."""
          (width_box_a, height_box_a), (
              width_box_b, height_box_b) = self.get_box_dimensions(), other_word.get_box_dimensions()
          # distance between the center points of both boxes
          length = abs(self.get_center_point()[0] - other_word.get_center_point()[0])
          height = abs(self.get_center_point()[1] - other_word.get_center_point()[1])
          gap_x = length - width_box_a * 0.5 - width_box_b * 0.5
          gap_y = height - height_box_a * 0.5 - height_box_b * 0.5
  
          # a negative gap in both axis indicates that the boxes are overlapping
          # not considering when the edges are just touching
          return gap_x < 0 and gap_y < 0
code_tokens: def collides ( self , other_word ) : ( width_box_a , height_box_a ) , ( width_box_b , height_box_b ) = self . get_box_dimensions ( ) , other_word . get_box_dimensions ( ) length = abs ( self . get_center_point ( ) [ 0 ] - other_word . get_center_point ( ) [ 0 ] ) height = abs ( self . get_center_point ( ) [ 1 ] - other_word . get_center_point ( ) [ 1 ] ) gap_x = length - width_box_a * 0.5 - width_box_b * 0.5 gap_y = height - height_box_a * 0.5 - height_box_b * 0.5 return gap_x < 0 and gap_y < 0
short_docstring: returns True if the box around this word overlaps with the box of the other word.
short_docstring_tokens: returns True if the box around this word overlaps with the box of the other word .
comment: """returns True if the box around this word overlaps with the box of the other word."""$SEP$# distance between the center points of both boxes$SEP$# a negative gap in both axis indicates that the boxes are overlapping$SEP$# not considering when the edges are just touching