<commit_before>module TaxRegistry
  def self.tax_for_good name
    tax = 0
    tax += 0.1 unless name =~ /(book|chocolate|pill)/
    tax += 0.05 if name =~ /imported/
    tax.round(2)
  end
end<commit_msg>* Refactor.<commit_after>module TaxRegistry
  SALES_TAX = 0.1
  IMPORT_TAX = 0.05

  def self.tax_for_good name
    tax = 0
    tax += SALES_TAX unless name =~ /(book|chocolate|pill)/
    tax += IMPORT_TAX if name =~ /imported/
    tax.round(2)
  end
end
{'fraction_non_alphanumeric': 0.12200435729847495, 'fraction_numerical': 0.030501089324618737, 'mean_word_length': 2.8983050847457625, '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': '7277581', 'n_tokens_mistral': 192, 'n_tokens_neox': 181, 'n_words': 44}