<commit_before>class BamApplicationsController < ApplicationController
  def create
    respond_to do |format|
      #if params_errors.any?
        #format.json { render json: { errors: params_errors }, status: :unprocessable_entity }
      #else
        #BamApplicationMailer.email_team(bam_application_params).deliver
        format.json { render json: bam_application_params }
      #end
    end
  end

  private

  def bam_application_params
    params.permit(:first_name, :last_name, :email, :phone, :name, :description,
      :tweet, :impact, :product)
  end

  def params_errors
    errors = []
    bam_application_params.each do |param, value|
      errors << "#{param.humanize} must be present." if value.empty?
    end

    errors
  end
end<commit_msg>Uncomment bam application controller.<commit_after>class BamApplicationsController < ApplicationController
  def create
    respond_to do |format|
      if params_errors.any?
        format.json { render json: { errors: params_errors }, status: :unprocessable_entity }
      else
        BamApplicationMailer.email_team(bam_application_params).deliver
        format.json { render json: bam_application_params }
      end
    end
  end

  private

  def bam_application_params
    params.permit(:first_name, :last_name, :email, :phone, :name, :description,
      :tweet, :impact, :product)
  end

  def params_errors
    errors = []
    bam_application_params.each do |param, value|
      errors << "#{param.humanize} must be present." if value.empty?
    end

    errors
  end
end
{'fraction_non_alphanumeric': 0.08684381075826313, 'fraction_numerical': 0.0, 'mean_word_length': 3.3249299719887957, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2226865', 'n_tokens_mistral': 473, 'n_tokens_neox': 460, 'n_words': 116}