<commit_before>class NationalMeasurementUnit
  attr_reader :measurement_unit_code, :description, :level

  def initialize(attributes = {})
    @measurement_unit_code = attributes.fetch(:measurement_unit_code, nil)
    @description = attributes.fetch(:description, nil)
    @level = attributes.fetch(:level)
  end

  def description
    self.class.description_map.fetch(measurement_unit_code, nil)
  end

  def present?
    description.present?
  end

  def to_s
    description
  end

  def self.description_map
    {
     '048' => 'Hectokilogram Net Dry Matter (100kg/net mas)',
     '066' => 'Litre of Alcohol',
     '070' => 'Standard Litre of Hydrocarbon Oil',
     '100' => '% Lactic Matter / 100 Kg Product',
     '101' => '% Lactic Dry Matter / 100 Kg Product',
     '102' => '% Sucrose Content / 100 Kg Net',
     '104' => '% Added Sugar / 100 Kg',
     '106' => '% Actual Alcoholic Strength / Hectolitre'
    }
  end
end<commit_msg>Update national_measurement_unit.rb<commit_after>class NationalMeasurementUnit
  attr_reader :measurement_unit_code, :description, :level

  def initialize(attributes = {})
    @measurement_unit_code = attributes.fetch(:measurement_unit_code, nil)
    @description = attributes.fetch(:description, nil)
    @level = attributes.fetch(:level)
  end

  def description
    self.class.description_map.fetch(measurement_unit_code, nil)
  end

  def present?
    description.present?
  end

  def to_s
    description
  end

  def self.description_map
    {
     '048' => 'Hectokilogram Net Dry Matter (100kg/net mas)',
     '070' => 'Standard Litre of Hydrocarbon Oil',
     '100' => '% Lactic Matter / 100 Kg Product',
     '101' => '% Lactic Dry Matter / 100 Kg Product',
     '102' => '% Sucrose Content / 100 Kg Net',
     '104' => '% Added Sugar / 100 Kg',
     '106' => '% Actual Alcoholic Strength / Hectolitre'
    }
  end
end
{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.040106951871657755, 'mean_word_length': 3.3817330210772836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '6801039', 'n_tokens_mistral': 671, 'n_tokens_neox': 588, 'n_words': 156}