<commit_before>class Geometry::LineSegment
  attr_reader :x1, :x2, :y1, :y2

  def initialize(x1,y1,x2,y2)
    @x1 = x1
    @x2 = x2
    @y1 = y1
    @y2 = y2
  end

  def length
    # http://bfy.tw/7wX1
    square_of_length = (x1 - x2)**2 + (y1 - y2)**2
    Math.sqrt(square_of_length)
  end

  def compare_and_sort(another)
    if self.length >= another.length
     true
    else #self.length < another.length
      false

    end
  end

<commit_msg>[REFACTOR] LineSegment#compare_and_sort Remove dead code<commit_after>class Geometry::LineSegment
  attr_reader :x1, :x2, :y1, :y2

  def initialize(x1,y1,x2,y2)
    @x1 = x1
    @x2 = x2
    @y1 = y1
    @y2 = y2
  end

  def length
    # http://bfy.tw/7wX1
    square_of_length = (x1 - x2)**2 + (y1 - y2)**2
    Math.sqrt(square_of_length)
  end

  def compare_and_sort(another)
    if self.length >= another.length
     true
    else 
      false

    end
  end


{'fraction_non_alphanumeric': 0.12091503267973856, 'fraction_numerical': 0.05228758169934641, 'mean_word_length': 2.4679245283018867, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6512025', 'n_tokens_mistral': 399, 'n_tokens_neox': 383, 'n_words': 82}