<commit_before>#!/usr/bin/env python

import sys

from boto.s3.connection import S3Connection

import config

if len(sys.argv) < 3:
    sys.exit('You must "staging" or "production" and a state fips code as arguments to this script.')

ENVIRONMENT = sys.argv[1]
STATE_FIPS = sys.argv[2]

c = S3Connection()
bucket = c.get_bucket(config.S3_BUCKETS[ENVIRONMENT])

for k in bucket.list('%s/' % STATE_FIPS):
    k.make_public()
<commit_msg>Added feedback to make_data_public.py.<commit_after>#!/usr/bin/env python

import sys

from boto.s3.connection import S3Connection

import config

if len(sys.argv) < 3:
    sys.exit('You must "staging" or "production" and a state fips code as arguments to this script.')

ENVIRONMENT = sys.argv[1]
STATE_FIPS = sys.argv[2]

c = S3Connection()
bucket = c.get_bucket(config.S3_BUCKETS[ENVIRONMENT])

for i, k in enumerate(bucket.list('%s/' % STATE_FIPS)):
    k.make_public()
    
    if i % 100 == 0:
        print 'Processed %i...' % i

{'fraction_non_alphanumeric': 0.12976313079299692, 'fraction_numerical': 0.018537590113285273, 'mean_word_length': 4.010309278350515, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5280482', 'n_tokens_mistral': 371, 'n_tokens_neox': 359, 'n_words': 96}