<commit_before>django-background-tasks-example
===============================
This example shows how to set up and use [django-background-tasks](https://github.com/artera/django-background-tasks/).

## Usage

Start the server.

```
python manage.py runserver
```

Register a task

```
curl -d message=hello http://localhost:8000/api/v1/tasks/
```

Process tasks

```
python manage.py process_tasks
``` <commit_msg>Update link to django-background-tasks project<commit_after>django-background-tasks-example
===============================
This example shows how to set up and use [django-background-tasks](https://github.com/arteria/django-background-tasks/).

## Usage

Start the server.

```
python manage.py runserver
```

Register a task

```
curl -d message=hello http://localhost:8000/api/v1/tasks/
```

Process tasks

```
python manage.py process_tasks
```
{'fraction_non_alphanumeric': 0.20162224797219003, 'fraction_numerical': 0.011587485515643106, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '159349', 'n_tokens_mistral': 273, 'n_tokens_neox': 248, 'n_words': 64}