<commit_before># Credit to: https://gist.github.com/philfreo/5543145

from __future__ import division

import collections
from texttable import Texttable
import stripe

by_status = collections.defaultdict(list)
per_page = 100
offset = 0

STRIPE_TEST_KEY = ""
STRIPE_LIVE_KEY = ""
stripe.api_key = STRIPE_LIVE_KEY

while True:
    stripe_customers = stripe.Customer.all(count=per_page, offset=offset)

    if not stripe_customers['data']:
        break

    for c in stripe_customers['data']:
        if c.subscription:<commit_msg>Print status of customer paging<commit_after># Credit to: https://gist.github.com/philfreo/5543145

from __future__ import division

import collections
from texttable import Texttable
import stripe

by_status = collections.defaultdict(list)
per_page = 100
offset = 0

STRIPE_TEST_KEY = ""
STRIPE_LIVE_KEY = ""
stripe.api_key = STRIPE_LIVE_KEY

while True:
    stripe_customers = stripe.Customer.all(count=per_page, offset=offset)
    print "Fetching users %d to %d" % (offset, offset + per_page)
    if not stripe_customers['data']:
        break

    for c in stripe_customers['data']:
        if c.subscription:
{'fraction_non_alphanumeric': 0.09011373578302712, 'fraction_numerical': 0.019247594050743656, 'mean_word_length': 4.473684210526316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1247903', 'n_tokens_mistral': 408, 'n_tokens_neox': 377, 'n_words': 94}