<commit_before>class ConsultantsController < ApplicationController
  def initial_setup
    @consultant = current_user.consultant
    render layout: 'dedicated'
  end

  def update
    @consultant = current_user.consultant

    if @consultant.update_attributes(consultant_params)
      flash[:success] = 'Dados atualizados com sucesso!'
      redirect_to :root
    else
      flash[:alert] = 'Deu ruim :('
      render nothing: true
    end
  end

  private

  def consultant_params
    params.require(:consultant).permit!
  end
end<commit_msg>Resolve params.permit! on consultants controller<commit_after>class ConsultantsController < ApplicationController
  def initial_setup
    @consultant = current_user.consultant
    render layout: 'dedicated'
  end

  def update
    @consultant = current_user.consultant

    if @consultant.update_attributes(consultant_params)
      flash[:success] = 'Dados atualizados com sucesso!'
      redirect_to :root
    else
      flash[:alert] = 'Deu ruim :('
      render nothing: true
    end
  end

  private

  def consultant_params
    params.require(:consultant).permit(:name, :nickname, :email, :outcome, :income)
  end
end
{'fraction_non_alphanumeric': 0.07896995708154507, 'fraction_numerical': 0.0, 'mean_word_length': 3.7016129032258065, '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': '5204447', 'n_tokens_mistral': 365, 'n_tokens_neox': 355, 'n_words': 85}