<commit_before>module ApplicationHelper
  def get_setting(name)
    setting = SiteSetting.find_by_name name
    return setting.value
  end
end
<commit_msg>500 if setting nonexistent<commit_after>module ApplicationHelper
  def get_setting(name)
    begin
      setting = SiteSetting.find_by_name name
      return setting.value
    rescue
      raise ActionController::RoutingError.new('Internal Server Error')
    end
  end
end

{'fraction_non_alphanumeric': 0.053738317757009345, 'fraction_numerical': 0.007009345794392523, 'mean_word_length': 3.988372093023256, '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': '5810397', 'n_tokens_mistral': 122, 'n_tokens_neox': 120, 'n_words': 32}