<commit_before>#Convert any unit to Millimeter
class Unit
  METRE = Object.new
  CM = Object.new
  MM = Object.new
 def initialize type
   @type = type
 end

  def to_mm length
    case @type
      when Unit::METRE
        length*1000
      when Unit::CM
        length*10
      when Unit::MM
        length
      else
        length

    end
  end

end<commit_msg>Mapping object using object id<commit_after>#Convert any unit to Millimeter
class Metre

  def to_mm lenght
    lenght*1000
  end

end
class Centimetre

  def to_mm lenght
    lenght*10
  end

end
class Millimetre

  def to_mm lenght
    lenght
  end

end

class Unit
  METRE = Metre.new
  CM = Centimetre.new
  MM = Millimetre.new
def initialize (unit_type)

  @unit=ObjectSpace._id2ref(unit_type.object_id)
end
def to_mm length
  @unit.to_mm length
end
end




{'fraction_non_alphanumeric': 0.05199516324062878, 'fraction_numerical': 0.015719467956469165, 'mean_word_length': 2.5384615384615383, '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': '6144853', 'n_tokens_mistral': 312, 'n_tokens_neox': 286, 'n_words': 90}