<commit_before>class Api::V1::TagsController < Api::V1::BaseController
  skip_before_action :authenticate_from_token!, only: [:index]
  def index
    render json: CropsTagIndex.where(id: /#{Regexp.escape(params[:query].to_s)}/i).pluck(:id)
  end
end
<commit_msg>Changed tags_controller return type from JSON array to JSON object<commit_after>class Api::V1::TagsController < Api::V1::BaseController
  skip_before_action :authenticate_from_token!, only: [:index]
  def index
    render json: {tags: CropsTagIndex.where(id: /#{Regexp.escape(params[:query].to_s)}/i).pluck(:id)}
  end
end

{'fraction_non_alphanumeric': 0.14188034188034188, 'fraction_numerical': 0.006837606837606838, 'mean_word_length': 6.8133333333333335, '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': '2637330', 'n_tokens_mistral': 203, 'n_tokens_neox': 204, 'n_words': 40}