<commit_before>class Api::V1::MovieSearchDetailsController < Api::ApiController
  # caches_action :show, expires_in: 1.hour, cache_path: Proc.new {
  #   api_v1_movie_search_detail_path(params[:id])
  # }


  def show
    omdb_movie = Omdb::Api.new.find(params[:id], true)[:movie]
    return unless omdb_movie.present?
    data = omdb_movie.public_methods(false).each_with_object({}) do |method, data|
      data[method] = omdb_movie.public_send(method)
    end
    respond_to do |format|
      format.json {render json: data.to_json}
    end
  end
end<commit_msg>Shadow variables<commit_after>class Api::V1::MovieSearchDetailsController < Api::ApiController
  # caches_action :show, expires_in: 1.hour, cache_path: Proc.new {
  #   api_v1_movie_search_detail_path(params[:id])
  # }


  def show
    omdb_movie = Omdb::Api.new.find(params[:id], true)[:movie]
    return unless omdb_movie.present?
    data = omdb_movie.public_methods(false).each_with_object({}) do |method, object|
      object[method] = omdb_movie.public_send(method)
    end
    respond_to do |format|
      format.json {render json: data.to_json}
    end
  end
end
{'fraction_non_alphanumeric': 0.1198237885462555, 'fraction_numerical': 0.0052863436123348016, 'mean_word_length': 4.40952380952381, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5709664', 'n_tokens_mistral': 426, 'n_tokens_neox': 395, 'n_words': 72}