<commit_before>Public Prize
============

###### Setting up a dev environment.

First [install Python3 with pyenv](//github.com/biviosoftware/utilities/blob/master/Environment.md), then:

```
pip install `cat requirements.txt`
pip install -e .
```

This will create an "editable version" of this repository with pip so
that pytest can find the files.

###### Postgresql database

A postgresql server must be running with the utf8 character
encoding. The tail of the pg_hba.conf must be:

```
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32          password
# IPv6 local connections:
host    all         all         ::1/128               password
```

###### Create test db

Run this to create a test db:

```
python manage.py create_test_db
```

Subsequent runs of this command will produce
`role "ppuser" already exists`, which you can ignore.

Postgresql should already be running.

###### Environment Variables
<commit_msg>moved postgresql config to utilities/Environment.md<commit_after>Public Prize
============

###### Setting up a dev environment.

First [install Python3 with pyenv](//github.com/biviosoftware/utilities/blob/master/Environment.md), then:

```
pip install `cat requirements.txt`
pip install -e .
```

This will create an "editable version" of this repository with pip so
that pytest can find the files.

###### Create test db

Run this to create a test db:

```
python manage.py create_test_db
```

Subsequent runs of this command will produce
`role "ppuser" already exists`, which you can ignore.

Postgresql should already be running.

###### Environment Variables

{'fraction_non_alphanumeric': 0.10558659217877095, 'fraction_numerical': 0.009497206703910615, 'mean_word_length': 3.284688995215311, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1902200', 'n_tokens_mistral': 524, 'n_tokens_neox': 488, 'n_words': 203}