<commit_before>class PingController  < ApplicationController
  respond_to :json

  def index
    to_ret = { :version_number => VERSION_INFO['version_number'], :build_date => VERSION_INFO['build_date'],
      :commit_id => VERSION_INFO['commit'], :build_tag => VERSION_INFO['build_tag'] }
    respond_with to_ret.to_json
  end
end<commit_msg>Stop using respond_to feature removed from Rails<commit_after>class PingController  < ApplicationController
  def index
    render json: {
      :version_number => VERSION_INFO['version_number'],
      :build_date => VERSION_INFO['build_date'],
      :commit_id => VERSION_INFO['commit'],
      :build_tag => VERSION_INFO['build_tag']
    }
  end
end
{'fraction_non_alphanumeric': 0.11287988422575977, 'fraction_numerical': 0.0, 'mean_word_length': 4.914529914529915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4534125', 'n_tokens_mistral': 215, 'n_tokens_neox': 220, 'n_words': 42}