<commit_before>require 'active_support'
require 'active_resource'

module BugshelfAPI
  class Error < StandardError; end

  class << self

    # Sets up basic authentication credentials for all the resources.
    def authenticate(subdomain, api_key)
      @subdomain = subdomain

      tld = ENV['RAILS_ENV'] == 'development' ? 'dev' : 'com'
      schema = ENV['RAILS_ENV'] == 'development' ? 'http' : 'https'

      self::Base.site = "#{schema}://#{api_key}:***@#{subdomain}.bugshelf.#{tld}/"
    end

    def resources
      @resources ||= []
    end
  end

  class Base < ActiveResource::Base<commit_msg>* BUGS_ENV is the new RAILS_ENV<commit_after>require 'active_support'
require 'active_resource'

module BugshelfAPI
  class Error < StandardError; end

  class << self

    # Sets up basic authentication credentials for all the resources.
    def authenticate(subdomain, api_key)
      @subdomain = subdomain

      development = ENV['BUGS_ENV'] == 'development'
      tld    = development ? 'dev'  : 'com'
      schema = development ? 'http' : 'https'

      self::Base.site = "#{schema}://#{api_key}:***@#{subdomain}.bugshelf.#{tld}/"
    end

    def resources
      @resources ||= []
    end
  end

  class Base < ActiveResource::Base
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 3.3719298245614033, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5910322', 'n_tokens_mistral': 409, 'n_tokens_neox': 390, 'n_words': 99}