<commit_before>Python frontend of primitiv
=================================

Dependency
---------------------------------

* C++ primitiv
* Python 3
* Cython (0.27.1 or higher)

How to install?
---------------------------------

1. Install C++ primitiv:

```
$ cmake .. [options]
$ make
$ sudo make install
```

2. Install Cython with Python 3

```
$ sudo apt install python3-numpy
$ sudo pip3 install cython
```

Currently, Cython 0.27 is not contained in Debian and Ubuntu repositories.

3. Run the following commands in python-primitiv directory:

```
$ python3 ./setup.py build
$ python3 ./setup.py test  # (optional)
$ sudo python3 ./setup.py install
```

CUDA is not available in the default settings. Please add `--enable-cuda`  option
to all commands above if you want to enable CUDA.<commit_msg>Update README.md of python-primitiv<commit_after>Python frontend of primitiv
=================================

Dependency
---------------------------------

* C++ primitiv
* Python 3 (3.5 or later)
* Cython (0.27 or later)

How to install?
---------------------------------

1. Install C++ primitiv:

```
$ cmake .. [options]
$ make
$ sudo make install
```

2. Install NumPy and Cython with Python 3

```
$ sudo apt install python3-numpy
$ sudo pip3 install cython
```

Currently, Cython 0.27 is not contained in Debian and Ubuntu repositories.

3. Run the following commands in python-primitiv directory:

```
$ python3 ./setup.py build
$ python3 ./setup.py test  # (optional)
$ sudo python3 ./setup.py install
```

You also can use `LIBRARY_PATH` and `CPLUS_INCLUDE_PATH` depending on your environment.

CUDA is not available in the default settings. Please add `--enable-cuda` option
to all commands above if you want to enable CUDA.
{'fraction_non_alphanumeric': 0.20378874856486798, 'fraction_numerical': 0.020091848450057407, 'mean_word_length': 2.814004376367615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6168839', 'n_tokens_mistral': 555, 'n_tokens_neox': 499, 'n_words': 202}