<commit_before>require 'grape'
Dir["#{Rails.root}/lib/api/*.rb"].each {|file| require file}

module API
  class API < Grape::API
    version 'v1'
    prefix "api"
    format :json
    content_type :txt, "text/plain"

    mount V1::Articles
    mount V1::Comments
    mount V1::Users
    mount Session

    helpers APIHelpers
 
  end
end<commit_msg>load helper before api endpoints<commit_after>require 'grape'
Dir["#{Rails.root}/lib/api/*.rb"].each {|file| require file}

module API
  class API < Grape::API
    version 'v1'
    prefix "api"
    format :json
    content_type :txt, "text/plain"

    helpers APIHelpers
 
    mount V1::Articles
    mount V1::Comments
    mount V1::Users
    mount Session

  end
end
{'fraction_non_alphanumeric': 0.11748251748251748, 'fraction_numerical': 0.011188811188811189, 'mean_word_length': 3.138728323699422, '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': '55356', 'n_tokens_mistral': 254, 'n_tokens_neox': 244, 'n_words': 67}