<commit_before># This helper contains application wide helpers
# There shouldn't be anything specific in this file.
module ApplicationHelper
  def image_url(source)
    abs_url(image_path(source))
  end

  def t_up(*args)
    string = t(*args)
    string[0] = string[0].upcase
    string
  end

  def abs_url(path)
    if path =~ /^http/
      path
    else
      "#{request.protocol}#{request.host_with_port}#{path}"
    end
  end

  def home_path
    if user_signed_in?
      feed_path
    else
      in_your_browser_path
    end
  end

end<commit_msg>Redirect to root_path instead of in_browser_path when not signed in. Otherwise the backbone router thinks it is a profile page<commit_after># This helper contains application wide helpers
# There shouldn't be anything specific in this file.
module ApplicationHelper
  def image_url(source)
    abs_url(image_path(source))
  end

  def t_up(*args)
    string = t(*args)
    string[0] = string[0].upcase
    string
  end

  def abs_url(path)
    if path =~ /^http/
      path
    else
      "#{request.protocol}#{request.host_with_port}#{path}"
    end
  end

  def home_path
    if user_signed_in?
      feed_path
    else
      root_path
    end
  end

end
{'fraction_non_alphanumeric': 0.07851239669421488, 'fraction_numerical': 0.003305785123966942, 'mean_word_length': 2.9704918032786884, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7376201', 'n_tokens_mistral': 400, 'n_tokens_neox': 396, 'n_words': 116}