<commit_before>#Class Rectangle calculates the perimeter of the given rectangle
class Rectangle
  def initialize (top_left_x, top_left_y, bottom_right_x, bottom_right_y)
    coordinate1 = Coordinate.new(top_left_x, top_left_y)
    coordinate2 = Coordinate.new(bottom_right_x, top_left_y)
    coordinate3 = Coordinate.new(bottom_right_x, bottom_right_y)
    coordinate4 = Coordinate.new(top_left_x, bottom_right_y)

    @line1 = Line.new(coordinate1, coordinate2)
    @line2 = Line.new(coordinate2, coordinate3)
  end

  def perimeter
    2 * (@line1.length + @line2.length)
  end

  def area
    @line1.length * @line2.length
  end
end<commit_msg>Added area of rectangle<commit_after>#Class Rectangle calculates the perimeter of the given rectangle
class Rectangle
  def initialize (top_left_x, top_left_y, bottom_right_x, bottom_right_y)
    coordinate1 = Coordinate.new(top_left_x, top_left_y)
    coordinate2 = Coordinate.new(bottom_right_x, top_left_y)
    coordinate3 = Coordinate.new(bottom_right_x, bottom_right_y)

    @line1 = Line.new(coordinate1, coordinate2)
    @line2 = Line.new(coordinate2, coordinate3)
  end

  def perimeter
    2 * (@line1.length + @line2.length)
  end

  def area
    @line1.length * @line2.length
  end
end
{'fraction_non_alphanumeric': 0.08286403861625101, 'fraction_numerical': 0.02333065164923572, 'mean_word_length': 4.6289592760181, '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': '5475893', 'n_tokens_mistral': 438, 'n_tokens_neox': 421, 'n_words': 95}