<commit_before>module BaseApi extend ActiveSupport::Concern

  included do
    # verify the value of CSRF countermeasures for Token
    # API to skip the verify_authenticity_token
    skip_before_filter :verify_authenticity_token, if: :json_request?

    before_action :set_Model
    before_action :set_models, only: [:index]
    before_action :set_model, only: [:show, :create, :update, :destroy]
  end

  # GET /{models}.json
  # @param  Hash
  # @return String  Json(Models)
  def index
    render 'models.json.jbuilder'
  end
<commit_msg>delete skip_before_filter :verify_authenticity_token<commit_after>module BaseApi extend ActiveSupport::Concern

  included do
    before_action :set_Model
    before_action :set_models, only: [:index]
    before_action :set_model, only: [:show, :create, :update, :destroy]
  end

  # GET /{models}.json
  # @param  Hash
  # @return String  Json(Models)
  def index
    render 'models.json.jbuilder'
  end

{'fraction_non_alphanumeric': 0.0908130939809926, 'fraction_numerical': 0.0, 'mean_word_length': 4.237569060773481, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6953234', 'n_tokens_mistral': 313, 'n_tokens_neox': 301, 'n_words': 83}