<commit_before>Ninth Exercise (WebSockets)
=================================================

Please complete the following steps:

1. Refactor **"sentigator"** server to use **"[sockjs](https://github.com/sockjs/sockjs-node)"**. Do it by:
 * Creating a **"realtimer.js"** file inside the **"lib"** directory
 * Initialize a **"[sockjs](https://github.com/sockjs/sockjs-node)"** server in **"realtimer.js"** and install **"[sockjs](https://github.com/sockjs/sockjs-node)"** handlers on **"/realtime"**
 * Use the **"aggregator.js"** from within the **"realtimer.js"** to query and aggregate results from the services
 * Update the client code in **"sentigatorClient.js"** to use WebSockets with **"[sockjs](https://github.com/sockjs/sockjs-client)"** instead of the current GET request (don't forget to also update the loading indicator)
 
2. Extend **"aggregator.js"** to support setting the queried services (add an argument to allow the caller to supply an array of the services which should be queried - using ["twitxy", "utube"] for example, will only query and aggregate results from twitter and utube)

3. Create a polling mechanism, which after returning the first result set, will continue polling only the **"[twitxy](https://github.com/itkoren/twitxy)"** & the **"utube"** API's, each 5 seconds, and return the results to the client (**NOTE: Do not bother filtering the already returned results for now**)

4. Update the **"aggregator.js"** to support **"asfrom"** date, for filtering previous returned results. Use this date to only return the new results to the client

#####Use the **"sentiment"** and the **"sentigator"** modules in this repository as a starting point for the exercise<commit_msg>fix readme<commit_after>Ninth Exercise (WebSockets)
=================================================

Please complete the following steps:

1. Refactor **"sentigator"** server to use **"[sockjs](https://github.com/sockjs/sockjs-node)"**. Do it by:
 * Creating a **"realtimer.js"** file inside the **"lib"** directory
 * Initialize a **"[sockjs](https://github.com/sockjs/sockjs-node)"** server in **"realtimer.js"** and install **"[sockjs](https://github.com/sockjs/sockjs-node)"** handlers on **"/realtime"**
 * Use the **"aggregator.js"** from within the **"realtimer.js"** to query and aggregate results from the services
 * Update the client code in **"sentigatorClient.js"** to use WebSockets with **"[sockjs](https://github.com/sockjs/sockjs-client)"** instead of the current GET request (don't forget to also update the loading indicator)
 
2. Extend **"aggregator.js"** to support setting the queried services (add an argument to allow the caller to supply an array of the services which should be queried - using ["twitxy", "utube"] for example, will only query and aggregate results from twitter and utube)

3. Create a polling mechanism, which after returning the first result set, will continue polling only the **"[twitxy](https://github.com/itkoren/twitxy)"** & the **"utube"** API's, each 5 seconds, and return the results to the client (**NOTE: Do not bother filtering the already returned results for now**)

4. Update the **"aggregator.js"** to support **"asfrom"** date, for filtering previous returned results. Use this date to only return the new results to the client (**HINT: for [twitxy](https://github.com/itkoren/twitxy), check "created_at" and for utube, check "updated.$t" attributes**)

#####Use the **"sentiment"** and the **"sentigator"** modules in this repository as a starting point for the exercise
{'fraction_non_alphanumeric': 0.16215454032712917, 'fraction_numerical': 0.0028200789622109417, 'mean_word_length': 5.460837887067395, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 11, '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': '6449342', 'n_tokens_mistral': 982, 'n_tokens_neox': 969, 'n_words': 419}