<commit_before>module Racket
  class Application

    attr_reader :options

    @instance = nil

    def self.call(env)
      instance.instance_eval { @router.route(Request.new(env)) }
    end

    def self.instance
      return @instance if @instance
      @instance = self.new
      @instance.instance_eval { setup_routes }
      @instance
    end

    def self.options
      instance.options
    end

    private<commit_msg>Implement Application.using so that configuration can be set directly from config.ru<commit_after>module Racket
  class Application

    attr_reader :options

    @instance = nil

    def self.call(env)
      instance.instance_eval { @router.route(Request.new(env)) }
    end

    def self.instance
      return @instance if @instance
      @instance = self.new
      @instance.instance_eval { setup_routes }
      @instance
    end

    def self.options
      instance.options
    end

    def self.using(options)
      @instance = self.new(options)
      @instance.instance_eval { setup_routes }
      self
    end

    private
{'fraction_non_alphanumeric': 0.07386363636363637, 'fraction_numerical': 0.0, 'mean_word_length': 2.5, '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': '4118803', 'n_tokens_mistral': 305, 'n_tokens_neox': 295, 'n_words': 77}