<commit_before>class WelcomeController < ApplicationController
  layout "main"

  def api_instructions
  end

  def index
  end

  def feedback
    RAILS_DEFAULT_LOGGER.debug "test" 
    RAILS_DEFAULT_LOGGER.debug "req: #{request.inspect}"
    if request.xhr?
      if params[:description].blank?
        RAILS_DEFAULT_LOGGER.debug "test2" 
        render :update do |page|
          page.call "displayNotice", "Please enter a description."
        end
      else
        RAILS_DEFAULT_LOGGER.debug "calling notifier!" 
        Notifier::deliver_feedback(params)
        RAILS_DEFAULT_LOGGER.debug "called notifier"
        render :update do |page|
          page.hide "feedback"
          page.show "feedback_thanks"
        end
      end
    end
  end



end
<commit_msg>remove some debugging log printouts<commit_after>class WelcomeController < ApplicationController
  layout "main"

  def api_instructions
  end

  def index
  end

  def feedback
    if request.xhr?
      if params[:description].blank?
        render :update do |page|
          page.call "displayNotice", "Please enter a description."
        end
      else
        Notifier::deliver_feedback(params)
        render :update do |page|
          page.hide "feedback"
          page.show "feedback_thanks"
        end
      end
    end
  end



end

{'fraction_non_alphanumeric': 0.07050796057619409, 'fraction_numerical': 0.000758150113722517, 'mean_word_length': 2.3759590792838874, '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': '4316160', 'n_tokens_mistral': 403, 'n_tokens_neox': 383, 'n_words': 103}