<commit_before># Yarn parser

A tiny node.js web service for parsing dependency information from `yarn.lock` files for [Libraries.io](https://libraries.io).

## Docker

You can use Docker to run yarn-parser

First, install Docker. If you run macOS or Windows, Docker for Mac/Windows makes this really easy.

If you have Windows Home Edition, you'll need to download and run Docker Toolbox.
Then, run:

    docker pull librariesio/yarn-parser
    docker run -it -e PORT=5000 -p 5000:5000 librariesio/yarn-parser

yarn-parser will be running on http://localhost:5000.

Note: You can add PORT to a .env file instead of supplying them directly on the command-line.

## Development

Source hosted at [GitHub](http://github.com/librariesio/yarn-parser).
Report issues/feature requests on [GitHub Issues](http://github.com/librariesio/yarn-parser/issues). Follow us on Twitter [@librariesio](https://twitter.com/librariesio). We also hangout on [Slack](http://slack.libraries.io).
<commit_msg>README.md instructions/formatting.<commit_after># Yarn parser

A tiny node.js web service for parsing dependency information from `yarn.lock` files for [Libraries.io](https://libraries.io).

## Docker

You can use Docker to run yarn-parser

First, install Docker. If you run macOS or Windows, Docker for Mac/Windows makes this really easy.

If you have Windows Home Edition, you'll need to download and run Docker Toolbox.
Then, run:

``` shell
    docker pull librariesio/yarn-parser
    docker run -it -e PORT=5000 -p 5000:5000 librariesio/yarn-parser
```

yarn-parser will be running on http://localhost:5000.

Note: You can add PORT to a .env file instead of supplying them directly on the command-line.

## Development

Source hosted at [GitHub](http://github.com/librariesio/yarn-parser).
Report issues/feature requests on [GitHub Issues](http://github.com/librariesio/yarn-parser/issues). Follow us on Twitter [@librariesio](https://twitter.com/librariesio). We also hangout on [Slack](http://slack.libraries.io).

To run locally:

```
docker run -it -e PORT=5000 -p 5000:5000 $(docker build -q .)
```

{'fraction_non_alphanumeric': 0.10692124105011933, 'fraction_numerical': 0.02100238663484487, 'mean_word_length': 4.2531328320802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '6552267', 'n_tokens_mistral': 684, 'n_tokens_neox': 610, 'n_words': 239}