<commit_before>module EspSdk
  class Configure
    attr_accessor :token, :email, :version, :token_expires_at

    def initialize(options)
      @email    = options[:email]
      @version  = options[:version] || 'v1'
      @token    = options[:token]

      if ENV['RAILS_ENV'].present?
        if ENV['RAILS_ENV'] == 'release'
          @uri = 'https://api.release.evident.io/api'
        elsif ENV['RAILS_ENV'] == 'development'
          @uri = 'http://0.0.0.0:3001/api'
        else
          @uri = 'https://api.evident.io/api'
        end
      else
        @uri = 'https://api.evident.io/api'
      end
    end

    def self.end_point
      if !!defined?(Rails)
        if Rails.env.release?
          @uri = 'https://api.release.evident.io/api'
        elsif Rails.env.development?
          @uri = 'http://0.0.0.0:3001/api'
        else
          @uri = 'https://api.evident.io/api'
        end
      else
        @uri = 'https://api.evident.io/api'
      end
    end

    def uri
      Configure.end_point
    end
  end
end<commit_msg>remove extra code<commit_after>module EspSdk
  class Configure
    attr_accessor :token, :email, :version, :token_expires_at

    def initialize(options)
      @email    = options[:email]
      @version  = options[:version] || 'v1'
      @token    = options[:token]
    end

    def self.end_point
      if ENV['RAILS_ENV'].present?
        if ENV['RAILS_ENV'] == 'release'
          @uri = 'https://api.release.evident.io/api'
        elsif ENV['RAILS_ENV'] == 'development'
          @uri = 'http://0.0.0.0:3001/api'
        else
          @uri = 'https://api.evident.io/api'
        end
      else
        @uri = 'https://api.evident.io/api'
      end
    end

    def uri
      Configure.end_point
    end
  end
end
{'fraction_non_alphanumeric': 0.14188422247446084, 'fraction_numerical': 0.014755959137343927, 'mean_word_length': 1.880718954248366, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '3677295', 'n_tokens_mistral': 631, 'n_tokens_neox': 613, 'n_words': 115}