<commit_before>class TeamsController < ApplicationController
  before_action :authenticate_user!

  def create
    @team = current_user.teams.build(team_params)
    if @team.save
      flash[:notice] = 'Team added!'
      redirect_to dashboard_path
    else
      flash[:alert] = 'Failed to add team'
      redirect_to dashboard_path
    end
  end

  def destroy
    current_user.teams.find(params[:id]).destroy
    flash[:notice] = 'Team deleted.'
    redirect_to dashboard_path
  end

  private
    def team_params
      params.require(:team).permit(:name, :domain, :webhook)
    end
end<commit_msg>Fix indentation and whitespace warnings<commit_after>class TeamsController < ApplicationController
  before_action :authenticate_user!

  def create
    @team = current_user.teams.build(team_params)
    if @team.save
      flash[:notice] = 'Team added!'
      redirect_to dashboard_path
    else
      flash[:alert] = 'Failed to add team'
      redirect_to dashboard_path
    end
  end

  def destroy
    current_user.teams.find(params[:id]).destroy
    flash[:notice] = 'Team deleted.'
    redirect_to dashboard_path
  end

  private

  def team_params
    params.require(:team).permit(:name, :domain, :webhook)
  end
end
{'fraction_non_alphanumeric': 0.08830744071954211, 'fraction_numerical': 0.0, 'mean_word_length': 3.4671532846715327, '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': '7230246', 'n_tokens_mistral': 382, 'n_tokens_neox': 364, 'n_words': 89}