<commit_before>class Api::V1::TagsController < ApplicationController
  def index
    @tags = Tag.where("name ILIKE :search", search: "#{params['q']}%").limit(5).all
    @platforms = SupportedPlatform.where("name ILIKE :search", search: "#{params['q']}%").limit(5).all
    render json: @tags.map(&:name) + @platforms.map(&:name)
  end
end<commit_msg>Always autofill default tags<commit_after>class Api::V1::TagsController < ApplicationController
  def index
    @tags = Tag.where("name ILIKE :search", search: "#{params['q']}%").limit(5).all
    @platforms = SupportedPlatform.where("name ILIKE :search", search: "#{params['q']}%").limit(5).all
    @defaults = Tag::DEFAULT_TAGS.select { |t| t =~ /^#{params[:q]}/i }
    render json: @tags.map(&:name) + @platforms.map(&:name) + @defaults
  end
end
{'fraction_non_alphanumeric': 0.20326223337515684, 'fraction_numerical': 0.0075282308657465494, 'mean_word_length': 5.540983606557377, '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': '6189396', 'n_tokens_mistral': 276, 'n_tokens_neox': 273, 'n_words': 54}