<commit_before>class StaticController < ApplicationController
  layout 'mobile'

  def tos
    render 'tos'
  end

  def desktop_welcome
    if user_signed_in?
      redirect_to root_path
    else
      render 'desktop_welcome', :layout => false
    end
  end
end<commit_msg>redirecting welcome page https to http<commit_after>class StaticController < ApplicationController
  layout 'mobile'

  def tos
    render 'tos'
  end

  def desktop_welcome
    if user_signed_in?
      redirect_to root_path
    else
      # homepage static assets contain absolute urls containing http://...
      if request.ssl?
        redirect_to :protocol => 'http://',
                    :controller => 'static',
                    :action => 'desktop_welcome'
      else
        render 'desktop_welcome', :layout => false
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.07082833133253301, 'fraction_numerical': 0.0, 'mean_word_length': 2.4605809128630707, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '3381358', 'n_tokens_mistral': 241, 'n_tokens_neox': 230, 'n_words': 71}