<commit_before>require 'calais'

module OpencalaisHelper
  def enhance(content)
    Calais.enlighten(
        :content => content,
        :content_type => :raw,
        :license_id => ENV['OPEN_CALAIS_LICENSE_ID']
    )
  end
  module_function :enhance
end<commit_msg>Move the Open Calais license into a constant.<commit_after>require 'calais'

module OpencalaisHelper
  LICENSE_ID = ENV['OPEN_CALAIS_LICENSE_ID']

  def enhance(content)
    Calais.enlighten(
        :content => content,
        :content_type => :raw,
        :license_id => LICENSE_ID
    )
  end
  module_function :enhance
end
{'fraction_non_alphanumeric': 0.09380234505862646, 'fraction_numerical': 0.0, 'mean_word_length': 3.4296296296296296, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7226355', 'n_tokens_mistral': 199, 'n_tokens_neox': 195, 'n_words': 42}