<commit_before>module OktaSaml
  module SessionHelper
    def sign_in(user)
      cookies.signed[:remember_token] = {
        :value => user.email,
        :expires => 3.hours.from_now
      }
      current_user = user
    end

    def signed_in?
      !current_user.nil?
    end

    def current_user=(user)
      @current_user = user
    end

    def current_user
      @current_user ||= user_from_remember_token
    end

    alias_method :okta_user, :current_user

    def destroy
      sign_out
    end

    def sign_out
      cookies.delete(:remember_token)
      current_user = nil
    end

    private
      def user_from_remember_token
        OktaUser.retrieve_from_cookie(remember_token)
      end

      def remember_token
        cookies.signed[:remember_token]
      end
  end
end
<commit_msg>[PS/ET] try removing expire key<commit_after>module OktaSaml
  module SessionHelper
    def sign_in(user)
      cookies.signed[:remember_token] = {
        :value => user.email
      }
      current_user = user
    end

    def signed_in?
      !current_user.nil?
    end

    def current_user=(user)
      @current_user = user
    end

    def current_user
      @current_user ||= user_from_remember_token
    end

    alias_method :okta_user, :current_user

    def destroy
      sign_out
    end

    def sign_out
      cookies.delete(:remember_token)
      current_user = nil
    end

    private
      def user_from_remember_token
        OktaUser.retrieve_from_cookie(remember_token)
      end

      def remember_token
        cookies.signed[:remember_token]
      end
  end
end

{'fraction_non_alphanumeric': 0.062185929648241205, 'fraction_numerical': 0.000628140703517588, 'mean_word_length': 2.271047227926078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5263115', 'n_tokens_mistral': 522, 'n_tokens_neox': 495, 'n_words': 106}