<commit_before>JupyterLab Services
===================

Javascript client for the Jupyter services REST APIs

[API Docs](http://jupyterlab.github.io/services/)

[REST API Docs](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/master/notebook/services/api/api.yaml)

Note: All functions and classes using the REST API allow an `ajaxOptions` 
parameter to configure requests.


Package Install
---------------

**Prerequisites**
- [node](http://nodejs.org/)
- [python](https://www.continuum.io/downloads)

```bash
npm install --save @jupyterlab/services
conda install notebook  # notebook 4.3+ required
```


Source Build
------------

**Prerequisites**
- [git](http://git-scm.com/)
- [node 0.12+](http://nodejs.org/)
- [python](https://www.continuum.io/downloads)

```bash
git clone https://github.com/jupyterlab/services.git
cd services
npm install
npm run build
conda install notebook  # notebook 4.3+ required
```

**Rebuild**
```bash
npm run clean
npm run build
```


Run Tests
---------

Follow the source build instructions first.

```bash<commit_msg>Update links in services readme<commit_after>JupyterLab Services
===================

Javascript client for the Jupyter services REST APIs

[API Docs](http://jupyterlab.github.io/jupyterlab/)

[REST API Docs](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/master/notebook/services/api/api.yaml)

Note: All functions and classes using the REST API allow an `ajaxOptions` 
parameter to configure requests.


Package Install
---------------

**Prerequisites**
- [node](http://nodejs.org/)
- [python](https://www.anaconda.com/download)

```bash
npm install --save @jupyterlab/services
conda install notebook  # notebook 4.3+ required
```


Source Build
------------

**Prerequisites**
- [git](http://git-scm.com/)
- [node 0.12+](http://nodejs.org/)
- [python](https://www.anaconda.com/download)

```bash
git clone https://github.com/jupyterlab/jupyterlab.git
cd packages/services
npm install
npm run build
conda install notebook  # notebook 4.3+ required
```

**Rebuild**
```bash
npm run clean
npm run build
```


Run Tests
---------

Follow the source build instructions first.

```bash
{'fraction_non_alphanumeric': 0.18515165233137165, 'fraction_numerical': 0.006337709370755998, 'mean_word_length': 3.911111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '786724', 'n_tokens_mistral': 774, 'n_tokens_neox': 707, 'n_words': 179}