<commit_before># Compytition

Programming contest server in Python.

## Setup

#### Install dependencies (with `sudo` or inside of a `virtualenv`):

```bash
$ pip install -U -r requirements.txt
```

`pip` can usually be found in your distribution's `python-pip` package. If you want to use LDAP authentication (currently the only supported method), you will also need the `python-ldap` package.

#### Run the setup script

```bash
$ bump setup
```

#### Configure the server:

Copy `compytition/config.py.example` to `compytition/config.py` and edit it. If you have `$EDITOR` set, this will do the work for you:

```bash
$ bump config
```

#### Create a new contest:

```bash
$ bump new <name>
```

#### Add / edit questions:

Throw text files (with Markdown, if you'd like) into `contests/<name>/questions/` with **no extension**.

#### Create contest database:

```bash
$ bump init <name>
```

#### Run the server:

For debug or development:

***Do not use this for hosting contests! It allows execution of arbitrary Python code on the host.***
<commit_msg>Fix README.md<commit_after># Compytition

Programming contest server in Python.

## Setup

#### Install dependencies (with `sudo` or inside of a `virtualenv`):

```bash
$ pip install -U -r requirements.txt
```

`pip` can usually be found in your distribution's `python-pip` package. If you want to use LDAP authentication (currently the only supported method), you will also need the `python-ldap` package.

#### Run the setup script

```bash
$ bump setup
```

#### Configure the server:

Copy `compytition/config.py.example` to `compytition/config.py` and edit it. If you have `$EDITOR` set, this will do the work for you:

```bash
$ bump config
```

#### Create a new contest:

```bash
$ bump db.new <name>
```

#### Add / edit questions:

Throw text files (with Markdown, if you'd like) into `contests/<name>/questions/` with **no extension**.

#### Create contest database:

```bash
$ bump db.init <name>
```

#### Run the server:

For debug or development:

***Do not use this for hosting contests! It allows execution of arbitrary Python code on the host.***

{'fraction_non_alphanumeric': 0.1370056497175141, 'fraction_numerical': 0.0, 'mean_word_length': 4.325814536340852, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6105223', 'n_tokens_mistral': 677, 'n_tokens_neox': 624, 'n_words': 279}