<commit_before># coding: UTF-8

class Api::Json::TagsController < Api::ApplicationController
  ssl_required :index

  def index
    limit = params[:limit].nil? ? 10 : params[:limit].to_i    
    render_jsonp(Tag.load_user_tags(current_user.id, :limit => limit))
  end
end<commit_msg>Limit tags to 500 by default<commit_after># coding: UTF-8

class Api::Json::TagsController < Api::ApplicationController
  ssl_required :index

  def index
    limit = params[:limit].nil? ? 500 : params[:limit].to_i    
    render_jsonp(Tag.load_user_tags(current_user.id, :limit => limit))
  end
end
{'fraction_non_alphanumeric': 0.12371134020618557, 'fraction_numerical': 0.01718213058419244, 'mean_word_length': 4.715686274509804, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6260492', 'n_tokens_mistral': 202, 'n_tokens_neox': 191, 'n_words': 42}