<commit_before>require "action_dispatch/middleware/session/abstract_store"

module ActionDispatch
  module Session
    class MongoStoreBase < AbstractStore
      SESSION_RECORD_KEY = "rack.session.record".freeze
      begin
        ENV_SESSION_OPTIONS_KEY = Rack::Session::Abstract::ENV_SESSION_OPTIONS_KEY
      rescue NameError
        # Rack 1.2.x has access to the ENV_SESSION_OPTIONS_KEY
      end

      def self.session_class
        self::Session
      end

      private

      def session_class
        self.class.session_class
      end

      def generate_sid
        BSON::ObjectId.new.to_s
      end
<commit_msg>Remove outdated catch for Rack version<commit_after>require "action_dispatch/middleware/session/abstract_store"

module ActionDispatch
  module Session
    class MongoStoreBase < AbstractStore
      SESSION_RECORD_KEY = "rack.session.record".freeze
      ENV_SESSION_OPTIONS_KEY = Rack::Session::Abstract::ENV_SESSION_OPTIONS_KEY

      def self.session_class
        self::Session
      end

      private

      def session_class
        self.class.session_class
      end

      def generate_sid
        BSON::ObjectId.new.to_s
      end

{'fraction_non_alphanumeric': 0.055698371893744644, 'fraction_numerical': 0.001713796058269066, 'mean_word_length': 2.816993464052288, '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': '4813008', 'n_tokens_mistral': 349, 'n_tokens_neox': 331, 'n_words': 68}