<commit_before>class UsersController < ApplicationController
  before_filter :auth_user

  def auth_user
    redirect_to root_path unless user_signed_in?
  end

  def show
    @user = current_user
  end

  def edit
    @industries = ["Business", "Technology", "Startup"]
    @interests = ["Arts", "Music", "Crafting", "Home improvement / Decorating", "Being a mom", "Dogs", "Cats", "Watching Sports", "Outdoors / Hiking", "Exercise", "Biking", "Yoga", "Running", "Beer","Wine","Traveling"," Local events","Reading", "Photography", "Movies","Cooking / Eating / Being a foodie" ,"Social issues / volunteering","Video Games"]
    @user = current_user
  end

  def update
    @user = current_user
    if @user.update(first_name:params[:user][:first_name],last_name:params[:user][:last_name],mentor:params[:user][:mentor],primary_industry:params[:user][:primary_industry],stage_of_career:params[:user][:stage_of_career],mentor_industry:params[:user][:mentor_industry], peer_industry:params[:user][:peer_industry],current_goal:params[:user][:current_goal],top_3_interests:params[:user][:top_3_interests] || [],live_in_detroit:params[:user][:live_in_detroit])
      redirect_to user_path(current_user)
    else
      @industries = ["Business", "Technology", "Startup","Other"]
      @interests = ["Arts", "Music", "Crafting", "Home improvement / Decorating", "Being a mom", "Dogs", "Cats", "Watching Sports", "Outdoors / Hiking", "Exercise", "Biking", "Yoga", "Running", "Beer","Wine","Traveling"," Local events","Reading", "Photography", "Movies","Cooking / Eating / Being a foodie" ,"Social issues / volunteering","Video Games"]
      render 'edit'
    end
  end
end
<commit_msg>adjusted an array in the controller to remove other<commit_after>class UsersController < ApplicationController
  before_filter :auth_user

  def auth_user
    redirect_to root_path unless user_signed_in?
  end

  def show
    @user = current_user
  end

  def edit
    @industries = ["Business", "Technology", "Startup"]
    @interests = ["Arts", "Music", "Crafting", "Home improvement / Decorating", "Being a mom", "Dogs", "Cats", "Watching Sports", "Outdoors / Hiking", "Exercise", "Biking", "Yoga", "Running", "Beer","Wine","Traveling"," Local events","Reading", "Photography", "Movies","Cooking / Eating / Being a foodie" ,"Social issues / volunteering","Video Games"]
    @user = current_user
  end

  def update
    @user = current_user
    if @user.update(first_name:params[:user][:first_name],last_name:params[:user][:last_name],mentor:params[:user][:mentor],primary_industry:params[:user][:primary_industry],stage_of_career:params[:user][:stage_of_career],mentor_industry:params[:user][:mentor_industry], peer_industry:params[:user][:peer_industry],current_goal:params[:user][:current_goal],top_3_interests:params[:user][:top_3_interests] || [],live_in_detroit:params[:user][:live_in_detroit])
      redirect_to user_path(current_user)
    else
      @industries = ["Business", "Technology", "Startup"]
      @interests = ["Arts", "Music", "Crafting", "Home improvement / Decorating", "Being a mom", "Dogs", "Cats", "Watching Sports", "Outdoors / Hiking", "Exercise", "Biking", "Yoga", "Running", "Beer","Wine","Traveling"," Local events","Reading", "Photography", "Movies","Cooking / Eating / Being a foodie" ,"Social issues / volunteering","Video Games"]
      render 'edit'
    end
  end
end

{'fraction_non_alphanumeric': 0.16725873297809354, 'fraction_numerical': 0.0011841326228537595, 'mean_word_length': 6.393873085339169, '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': '5306191', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1082, 'n_words': 232}