<commit_before>module MultimodelDevise::Concerns
  module Authentication
    extend ActiveSupport::Concern
    included do
      before_action :authenticate_with_token!
    end

    # This is our new function that we gonna hack into the Devise's own function
    def authenticate_with_token!<commit_msg> include ActionController::HttpAuthentication::Token::ControllerMethods in authentication.rb to Allows authenticate_or_request_with_http_token method in Rails api-only app<commit_after>module MultimodelDevise::Concerns
  module Authentication
    extend ActiveSupport::Concern
    #Allows authenticate_or_request_with_http_token method in Rails api-only app
    # include ActionController::HttpAuthentication::Basic::ControllerMethods
    include ActionController::HttpAuthentication::Token::ControllerMethods
    
    included do
      before_action :authenticate_with_token!
    end

    # This is our new function that we gonna hack into the Devise's own function
    def authenticate_with_token!
{'fraction_non_alphanumeric': 0.046906187624750496, 'fraction_numerical': 0.0, 'mean_word_length': 5.388535031847134, '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': '5394070', 'n_tokens_mistral': 268, 'n_tokens_neox': 249, 'n_words': 78}