<commit_before>[![Build Status](https://travis-ci.org/Jingyu-Yao/elitetraderoutes.svg?branch=master)](https://travis-ci.org/Jingyu-Yao/elitetraderoutes)
# Project setup

The following setup is Linux / Windows

## Required packages

### System packages

- python3
- mysql 5.6+ (server only) (windows)
- python3-dev (linux)
- mysql-server (linux)
- mysql-client (linux)
- libmysqlclient-dev (linux)

### Python packages

- pip
- setuptools
- django
- django-filter
- mysqlclient
- djangorestframework
- requests

## Database settings

Create an user and a database for the user using the settings found in my.cnf file using the following command:

As root@localhost:

- CREATE DATABASE elitetraderoutes CHARACTER SET utf8;
- GRANT ALL PRIVILEGES ON *.* TO 'elitetraderoutes'@'localhost' IDENTIFIED BY 'elitetraderoutespassword';

Then run 'python3 manage.py migrate' and make sure there are no errors.

## Additional setup

Run: elitedata/fixtures/ingest_data.py

Then run: manage.py loaddata commodity system station<commit_msg>Updated travis.yml and added travis pic<commit_after>[![Build Status](https://travis-ci.org/Jingyu-Yao/elitetraderoutes.svg?branch=master)](https://travis-ci.org/Jingyu-Yao/elitetraderoutes)
# Project setup

The following setup is Linux / Windows

## Required packages

### System packages

- python3
- mysql 5.6+ (server only) (windows)
- python3-dev (linux)
- mysql-server (linux)
- mysql-client (linux)
- libmysqlclient-dev (linux)

### Python packages

- pip
- setuptools
- django
- django-filter
- mysqlclient
- djangorestframework
- requests

## Database settings

Create an user and a database for the user using the settings found in my.cnf file using the following command:

As root@localhost:

- CREATE DATABASE elitetraderoutes CHARACTER SET utf8;
- GRANT ALL PRIVILEGES ON \*.\* TO 'elitetraderoutes'@'localhost' IDENTIFIED BY 'elitetraderoutespassword';

## Additional setup

- python ./elitedata/fixtures/ingest_data.py
- python manage.py loaddata commodity system station
- python manage.py migrate
- python manage.py test
{'fraction_non_alphanumeric': 0.10416666666666667, 'fraction_numerical': 0.005329457364341085, 'mean_word_length': 4.581081081081081, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6449208', 'n_tokens_mistral': 682, 'n_tokens_neox': 667, 'n_words': 195}