<commit_before>module ActiveRecord
  module ConnectionHandling

    def establish_connection(spec = nil)
      # aqui já se pode definir o caso de namespace estar nil, verificar se há ENV["NAMESPACE"], devendo a variável spec ser melhor tratada

      binding.pry

      # essa linha está errada
      spec     ||= DEFAULT_ENV.call.to_sym
      resolver =   ConnectionAdapters::ConnectionSpecification::Resolver.new configurations

      binding.pry
      spec     =   resolver.spec(spec)

      unless respond_to?(spec.adapter_method)
        raise AdapterNotFound, "database configuration specifies nonexistent #{spec.config[:adapter]} adapter"
      end

      remove_connection
      connection_handler.establish_connection self, spec
    end

  end
end<commit_msg>test commit<commit_after>module ActiveRecord
  module ConnectionHandling

    def establish_connection(spec = nil)
      # aqui já se pode definir o caso de namespace estar nil, verificar se há ENV["NAMESPACE"], devendo a variável spec ser melhor tratada

      binding.pry

      spec     ||= DEFAULT_ENV.call.to_sym
      resolver =   ConnectionAdapters::ConnectionSpecification::Resolver.new configurations

      spec     =   resolver.spec(spec)

      unless respond_to?(spec.adapter_method)
        raise AdapterNotFound, "database configuration specifies nonexistent #{spec.config[:adapter]} adapter"
      end

      remove_connection
      connection_handler.establish_connection self, spec
    end

  end
end
{'fraction_non_alphanumeric': 0.06186953597848016, 'fraction_numerical': 0.0, 'mean_word_length': 3.3636363636363638, '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': '4945387', 'n_tokens_mistral': 406, 'n_tokens_neox': 384, 'n_words': 115}