<commit_before># replayTweetStream
---

Given a gzipped file of tweets, replay them as though you were streaming them from Twitter's data stream.

Currently, only supports a single GZipped file and replays at the per-second level with gaps between messages as determined by their created_at timestamps. 
THe code assumes tweet files are temporally ordered.

The code was recently updated to support configurable senders. Simply implement the Sender interface, and you should be good. I've included an implementation to send to the console and to write to a server socket, and both seem to work.

I've also tested this streaming capability with Spark Streaming over a socket and achieved good results.

## Todo Items
---
- Add support for multiple files
- Add support for streaming files from HDFS<commit_msg>Fixed some formatting<commit_after># replayTweetStream

Given a gzipped file of tweets, replay them as though you were streaming them from Twitter's data stream.

Currently, only supports a single GZipped file and replays at the per-second level with gaps between messages as determined by their created_at timestamps. 
THe code assumes tweet files are temporally ordered.

The code was recently updated to support configurable senders. Simply implement the Sender interface, and you should be good. I've included an implementation to send to the console and to write to a server socket, and both seem to work.

I've also tested this streaming capability with Spark Streaming over a socket and achieved good results.

## Todo Items

- Add support for multiple files
- Add support for streaming files from HDFS
{'fraction_non_alphanumeric': 0.032158317872603585, 'fraction_numerical': 0.0, 'mean_word_length': 4.5793103448275865, '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': '390370', 'n_tokens_mistral': 397, 'n_tokens_neox': 371, 'n_words': 243}