<commit_before>class MessageHandlerController < ApplicationController
  skip_before_action :verify_authenticity_token
  def handle
    # We bump handling the message off to the same class than handles
    # reading the contents directly off of SQS in the first place.
    # This allows us to aggregate the logic and run the same code
    # regardless of whether we're doing a `bundle exec` call or we're
    # getting the messages fed to us by SQS via POST to this HTTP endpoint
    # as is the standard for the Worker Tier in Elastic Beanstalk.
    QueueListener.new.perform(nil, params)
  end
end<commit_msg>Sending a response for SQs.<commit_after>class MessageHandlerController < ApplicationController
  skip_before_action :verify_authenticity_token
  def handle
    # We bump handling the message off to the same class than handles
    # reading the contents directly off of SQS in the first place.
    # This allows us to aggregate the logic and run the same code
    # regardless of whether we're doing a `bundle exec` call or we're
    # getting the messages fed to us by SQS via POST to this HTTP endpoint
    # as is the standard for the Worker Tier in Elastic Beanstalk.
    QueueListener.new.perform(nil, params)
    
    # Tell SQS everything went hunky dory and we can delete the message.
    render nothing: true, status: 200
  end
end
{'fraction_non_alphanumeric': 0.037037037037037035, 'fraction_numerical': 0.0022222222222222222, 'mean_word_length': 3.6586206896551725, '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': '968434', 'n_tokens_mistral': 364, 'n_tokens_neox': 341, 'n_words': 184}