<commit_before>jdleden
=======
[![Dependency Status](https://gemnasium.com/jonge-democraten/jdleden.svg)](https://gemnasium.com/jonge-democraten/jdleden)  

This tool handles both department-spreadsheets and newsletter-subscriptions of the Jonge Democraten.

## Installation
```
$ git clone https://github.com/jonge-democraten/jdleden.git
$ virtualenv -p python3 env
$ source env/bin/activate
$ pip install -r requirements.txt
```

## Configuration
All settings can be found in `local_settings.py`.

## Usage
Activate the virtual env before using any of the management commands below,
```
$ source env/bin/activate
```

Update members,
```

$ python manage.py updateleden old_list.xlsx new_list.xlsx
```

Update after change in departments,
```
$ source env/bin/activate
$ python manage.py afdelingrondschuif membesr_list.xlsx
```<commit_msg>add local_settings instructions to readme<commit_after>jdleden
=======
[![Dependency Status](https://gemnasium.com/jonge-democraten/jdleden.svg)](https://gemnasium.com/jonge-democraten/jdleden)  

This tool handles both department-spreadsheets and newsletter-subscriptions of the Jonge Democraten.

## Installation
```
$ git clone https://github.com/jonge-democraten/jdleden.git
$ virtualenv -p python3 env
$ source env/bin/activate
$ pip install -r requirements.txt
```

Copy `jdleden/local_settings_example.py`, name it `jdleden/local_settings.py` and set the settings inside.


## Configuration
All settings can be found in `local_settings.py`.

## Usage
Activate the virtual env before using any of the management commands below,
```
$ source env/bin/activate
```

Update members,
```

$ python manage.py updateleden old_list.xlsx new_list.xlsx
```

Update after change in departments,
```
$ source env/bin/activate
$ python manage.py afdelingrondschuif membesr_list.xlsx
```
{'fraction_non_alphanumeric': 0.11971444261394838, 'fraction_numerical': 0.001098297638660077, 'mean_word_length': 5.197278911564626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '1128155', 'n_tokens_mistral': 602, 'n_tokens_neox': 578, 'n_words': 152}