<commit_before># Assassins

## Setting up the project

### Database setup

```
sudo apt-get install postgresql postgresql-contrib libpq-dev python3-dev
sudo su - postgres
createdb assassinsdb
createuser -P assassin
(follow prompts)
psql
GRANT ALL PRIVILEGES ON DATABASE assassinsdb TO assassin;
```

Now you have a PostgreSQL database named 'assassinsdb' and a user named 'assassin' with full privileges.

### Django project & environment setup

Make sure you have Python 3.4 and virtualenv installed.
Run the following commands from the project's root directory.

```
virtualenv -p /usr/bin/python3.4 env
source env/bin/activate
pip install -r requirements.txt
```

Now make a Django settings file for your development environment.

```
cd assassins/assassins
cp settings.default.py settings.py
```

In the new settings file, change the DATABASES password to match the one you made above.
Other settings would need to be changed for the production server (SECRET_KEY, ALLOWED_HOSTS, DEBUG), but they're fine as they are for development.

To test if it's working, run the following commands then go to 127.0.0.1:8000 in your browser.

```
cd ..
python manage.py migrate
python manage.py runserver
```

Wooooo<commit_msg>Add instructions to use local vimrc to README<commit_after># Assassins

## Setting up the project

### Database setup

```
sudo apt-get install postgresql postgresql-contrib libpq-dev python3-dev
sudo su - postgres
createdb assassinsdb
createuser -P assassin
(follow prompts)
psql
GRANT ALL PRIVILEGES ON DATABASE assassinsdb TO assassin;
```

Now you have a PostgreSQL database named 'assassinsdb' and a user named 'assassin' with full privileges.

### Django project & environment setup

Make sure you have Python 3.4 and virtualenv installed.
Run the following commands from the project's root directory.

```
virtualenv -p /usr/bin/python3.4 env
source env/bin/activate
pip install -r requirements.txt
```

Now make a Django settings file for your development environment.

```
cd assassins/assassins
cp settings.default.py settings.py
```

In the new settings file, change the DATABASES password to match the one you made above.
Other settings would need to be changed for the production server (SECRET_KEY, ALLOWED_HOSTS, DEBUG), but they're fine as they are for development.

To test if it's working, run the following commands then go to 127.0.0.1:8000 in your browser.

```
cd ..
python manage.py migrate
python manage.py runserver
```

### Editor Spacing setup

If(when) you're using Vim you can use the vimrc at the project's root to
ensure consistent spacing and tabbing within this project.

To use the local vimrc (.lvimrc) install the local vimrc plugin:
 * Go to http://www.vim.org/scripts/script.php?script_id=441
 * Download the newest localvimrc.vba vimball
 * Go to Downloads and open localvimrc.vba
 * Run :so % | q
 * Woo!

Wooooo
{'fraction_non_alphanumeric': 0.07346796657381616, 'fraction_numerical': 0.01149025069637883, 'mean_word_length': 4.451612903225806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 2, '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': '6355723', 'n_tokens_mistral': 908, 'n_tokens_neox': 834, 'n_words': 378}