<commit_before>MediaHub [![Build Status](https://travis-ci.org/Colum-SMA-Dev/MediaHub.svg?branch=master)](https://travis-ci.org/Colum-SMA-Dev/MediaHub)
========

Implementation of MediaHub API<commit_msg>add documentation for hub client constructor<commit_after>MediaHub [![Build Status](https://travis-ci.org/Colum-SMA-Dev/MediaHub.svg?branch=master)](https://travis-ci.org/Colum-SMA-Dev/MediaHub)
========

Implementation of MediaHub API

Media Hub Client
--------

The hub serves a javascript library to be used for connecting back to the hub.  It is reachable at `http://<domain>:<port>/hub-api.js`.  

##### HubClient(url, password, socketIoOpts, callback)

Creates and returns a new instance of a HubClient.  

* `url` hosted location of hub
* `password` configured password on the Hub
* `socketIoOpts` object that will be passed to [socket.io client constructor](http://socket.io/docs/client-api/)
* `callback` function that accepts a single argument.  Will be called with a boolean value of true or false for successful authentication with the hub
{'fraction_non_alphanumeric': 0.13459715639810427, 'fraction_numerical': 0.0, 'mean_word_length': 4.899441340782123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '391993', 'n_tokens_mistral': 313, 'n_tokens_neox': 313, 'n_words': 99}