<commit_before>import json
from time import gmtime, strftime
import datetime
import sys

from TrendAnalyser import TrendAnalyser

TA = TrendAnalyser()
response =TA.api.request("statuses/sample")

print "Starting to download streaming sample data"

for item in response.get_iterator():
    TA.save_twitter_sample_data(item)
<commit_msg>Removed unused imports and fixed space issue<commit_after>from TrendAnalyser import TrendAnalyser

TA = TrendAnalyser()
response = TA.api.request("statuses/sample")

print "Starting to download streaming sample data"

for item in response.get_iterator():
    TA.save_twitter_sample_data(item)

{'fraction_non_alphanumeric': 0.07484076433121019, 'fraction_numerical': 0.0, 'mean_word_length': 6.313953488372093, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '871019', 'n_tokens_mistral': 190, 'n_tokens_neox': 189, 'n_words': 57}