<commit_before># streamlayer_ws
A websocket server (created using Autobahn|Python) that emits Esri json.   
The sample map was adapted from [this blog post] (https://geonet.esri.com/blogs/nicogis/2014/08/05/websocket-with-streamlayer).

### Install and run   
#### On Linux with conda:
Run the following commands after cloning the repository:
```shell
$ conda env create
$ source activate websocket
$ python server.py
```
#### On all other systems:
(You'll still need pip and Python 3.4+, though)
```shell
$ pip install -r requirements.txt
$ python server.py
```

### Other resources
[WebSocket specification] (https://html.spec.whatwg.org/multipage/comms.html#network)  
[Autobahn|Python WebSocket programming tutorial] (http://autobahn.ws/python/websocket/programming.html)  
[WAMP] (http://wamp-proto.org/)  
[SA - Heart of Innovation] (http://saheartofinnovation.com/)  
<commit_msg>Add more attribution<commit_after># streamlayer_ws
A websocket server (created using Autobahn|Python) that emits Esri json.   
The client and server were adapted from the [Autobahn|Python example code] (https://github.com/crossbario/autobahn-python/tree/master/examples/asyncio/websocket/slowsquare).
The sample map was adapted from [this blog post] (https://geonet.esri.com/blogs/nicogis/2014/08/05/websocket-with-streamlayer).

### Install and run   
#### On Linux with conda:
Run the following commands after cloning the repository:
```shell
$ conda env create
$ source activate websocket
$ python server.py
```
#### On all other systems:
(You'll still need pip and Python 3.4+, though)
```shell
$ pip install -r requirements.txt
$ python server.py
```

### Other resources
[WebSocket specification] (https://html.spec.whatwg.org/multipage/comms.html#network)  
[Autobahn|Python WebSocket programming tutorial] (http://autobahn.ws/python/websocket/programming.html)  
[WAMP] (http://wamp-proto.org/)  

{'fraction_non_alphanumeric': 0.1284355179704017, 'fraction_numerical': 0.010570824524312896, 'mean_word_length': 4.860681114551084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '276442', 'n_tokens_mistral': 622, 'n_tokens_neox': 575, 'n_words': 173}