<commit_before>module RSpreedly

  class Subscriber < Base

    attr_accessor :active,
                  :active_until,
                  :billing_first_name,
                  :billing_last_name,
                  :card_expires_before_next_auto_renew,
                  :created_at,
                  :customer_id,
                  :eligible_for_free_trial,
                  :email,
                  :feature_level,
                  :grace_until,
                  :in_grace_period,
                  :lifetime_subscription,
                  :new_customer_id,
                  :on_trial,
                  :payment_method,
                  :ready_to_renew,
                  :ready_to_renew_since,
                  :recurring,
                  :screen_name,
                  :store_credit,
                  :store_credit_currency_code,
                  :subscription_plan_name,
                  :subscription_plan,
                  :subscription_plan_version,
                  :token,
                  :updated_at,
                  :invoices

    class << self

      # Get a subscriber’s details
      # GET /api/v4/[short site name]/subscribers/[subscriber id].xml
      def find(id)
        return all if id == :all

        begin
          data = api_request(:get, "/subscribers/#{id}.xml")
          sub = Subscriber.new(data["subscriber"])<commit_msg>No need to store version information.<commit_after>module RSpreedly

  class Subscriber < Base

    attr_accessor :active,
                  :active_until,
                  :billing_first_name,
                  :billing_last_name,
                  :card_expires_before_next_auto_renew,
                  :created_at,
                  :customer_id,
                  :eligible_for_free_trial,
                  :email,
                  :feature_level,
                  :grace_until,
                  :in_grace_period,
                  :lifetime_subscription,
                  :new_customer_id,
                  :on_trial,
                  :payment_method,
                  :ready_to_renew,
                  :ready_to_renew_since,
                  :recurring,
                  :screen_name,
                  :store_credit,
                  :store_credit_currency_code,
                  :subscription_plan_name,
                  :subscription_plan,
                  :token,
                  :updated_at,
                  :invoices

    class << self

      # Get a subscriber’s details
      # GET /api/v4/[short site name]/subscribers/[subscriber id].xml
      def find(id)
        return all if id == :all

        begin
          data = api_request(:get, "/subscribers/#{id}.xml")
          sub = Subscriber.new(data["subscriber"])
{'fraction_non_alphanumeric': 0.07294721407624634, 'fraction_numerical': 0.0007331378299120235, 'mean_word_length': 1.1902086677367576, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1524561', 'n_tokens_mistral': 768, 'n_tokens_neox': 687, 'n_words': 119}