<commit_before>class ExtendedProfilesController < ApplicationController
  before_action :require_login
  before_action :scope_languages, only: [:new, :create, :update, :edit]
  before_action :set_s3_direct_post

  def index
    @extended_profile = current_user.extended_profile
    if current_user.extended_profile
      @extended_profiles = ExtendedProfile.all.excludes(id: current_user.extended_profile.id)
    else
      @extended_profiles = ExtendedProfile.all
    end
  end

  def create
    @extended_profile = ExtendedProfile.new({user: current_user}.merge(profile_params))
    if @extended_profile.save<commit_msg>More vestigial code<commit_after>class ExtendedProfilesController < ApplicationController
  before_action :require_login
  before_action :scope_languages, only: [:new, :create, :update, :edit]

  def index
    @extended_profile = current_user.extended_profile
    if current_user.extended_profile
      @extended_profiles = ExtendedProfile.all.excludes(id: current_user.extended_profile.id)
    else
      @extended_profiles = ExtendedProfile.all
    end
  end

  def create
    @extended_profile = ExtendedProfile.new({user: current_user}.merge(profile_params))
    if @extended_profile.save
{'fraction_non_alphanumeric': 0.07660626029654036, 'fraction_numerical': 0.0008237232289950577, 'mean_word_length': 5.16751269035533, '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': '1553875', 'n_tokens_mistral': 379, 'n_tokens_neox': 348, 'n_words': 69}