<commit_before>"""
Tools to generate trade events without a backing store. Useful for testing
and zipline development
"""
import random
from itertools import chain, cycle, ifilter, izip
from datetime import datetime, timedelta

from zipline.utils.factory import create_trade
from zipline.gens.utils import hash_args, mock_done

def date_gen(start = datetime(2012, 6, 6, 0),
             delta = timedelta(minutes = 1),
             count = 100):<commit_msg>per @ehebert comment on PR<commit_after>"""
Tools to generate trade events without a backing store. Useful for testing
and zipline development
"""
import random
from itertools import chain, cycle, ifilter, izip
from datetime import datetime, timedelta

from zipline.utils.factory import create_trade
from zipline.gens.utils import hash_args, mock_done

def date_gen(start=datetime(2012, 6, 6, 0),
             delta=timedelta(minutes = 1),
             count=100):
{'fraction_non_alphanumeric': 0.07709011943539631, 'fraction_numerical': 0.023887079261672096, 'mean_word_length': 4.329479768786127, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5598781', 'n_tokens_mistral': 291, 'n_tokens_neox': 254, 'n_words': 100}