<commit_before>class AccountTokensController < ApplicationController
  layout 'frontend'

  ssl_required :enable, :resend

  skip_before_filter :ensure_account_has_been_activated, :only => :enable

  def enable
    token = params[:id]
    render_400 and return unless token

    user = User.where(enable_account_token: token).first
    render(file: 'signup/account_already_enabled', status: 404) and return unless user

    authenticate!(:enable_account_token, scope: params[:user_domain].present? ?  params[:user_domain] : user.username)

    @user = user.reload
    @organization = @user.organization
    @destination_url = CartoDB.url(self, 'dashboard', {}, @user)
<commit_msg>Token is always present because of route matching<commit_after>class AccountTokensController < ApplicationController
  layout 'frontend'

  ssl_required :enable, :resend

  skip_before_filter :ensure_account_has_been_activated, :only => :enable

  def enable
    token = params[:id]
    user = User.where(enable_account_token: token).first
    render(file: 'signup/account_already_enabled', status: 404) and return unless user

    authenticate!(:enable_account_token, scope: params[:user_domain].present? ?  params[:user_domain] : user.username)

    @user = user.reload
    @organization = @user.organization
    @destination_url = CartoDB.url(self, 'dashboard', {}, @user)

{'fraction_non_alphanumeric': 0.10324483775811209, 'fraction_numerical': 0.00663716814159292, 'mean_word_length': 5.224770642201835, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4253869', 'n_tokens_mistral': 418, 'n_tokens_neox': 388, 'n_words': 92}