<commit_before>class RegistrationsController < Devise::RegistrationsController

  def create
    if verify_recaptcha || (!session['devise.user_attributes'].nil? && !session['devise.user_attributes']['provider'].nil?)
      flash.delete :recaptcha_error
      super
    else
      flash.delete :recaptcha_error
      build_resource
      clean_up_passwords(resource)
      flash[:alert] = "There was an error with the recaptcha code below. Please re-enter the code and click submit."<commit_msg>Added a conditional statement to allow users in the development environment to sign up without<commit_after>class RegistrationsController < Devise::RegistrationsController

  def create
    if verify_recaptcha ||
      (!session['devise.user_attributes'].nil? && !session['devise.user_attributes']['provider'].nil?) ||
      Rails.env.development?
      flash.delete :recaptcha_error
      super
    else
      flash.delete :recaptcha_error
      build_resource
      clean_up_passwords(resource)
      flash[:alert] = "There was an error with the recaptcha code below. Please re-enter the code and click submit."
{'fraction_non_alphanumeric': 0.08943089430894309, 'fraction_numerical': 0.0, 'mean_word_length': 4.105990783410138, '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': '1448719', 'n_tokens_mistral': 301, 'n_tokens_neox': 294, 'n_words': 82}