<commit_before># SmartHome
SmartHome made for the course Programming Project Databases at the University of Antwerp.

##Build instructions
###Dependencies

    sudo apt-get install nodejs nodejs-legacy npm python python-pip python-mysqldb

###Server

    sudo pip install django djangorestframework==3.2.0 markdown django-filter djangorestframework-jsonapi==2.0.0-beta.2 django-rest-auth[with_social] django-cors-headers

###Client

    None

##Run instructions
###Server

Your database should run on localhost and have the user smarthome with pass smarthome

    cd server
    ./manage.py migrate                 # create database tables
    ./manage.py loaddata initial_data   # load users and tags
    ./manage.py runserver               # run the server on http://localhost:8000

#### Load pregenerated sample data
You can simply load pregenerated data into the database:

First load the configuration:<commit_msg>Added python-dateutil to the dependencies in README.md<commit_after># SmartHome
SmartHome made for the course Programming Project Databases at the University of Antwerp.

##Build instructions
###Dependencies

    sudo apt-get install nodejs nodejs-legacy npm python python-pip python-mysqldb

###Server

    sudo pip install python-dateutil django djangorestframework==3.2.0 markdown django-filter djangorestframework-jsonapi==2.0.0-beta.2 django-rest-auth[with_social] django-cors-headers

###Client

    None

##Run instructions
###Server

Your database should run on localhost and have the user smarthome with pass <PASSWORD>thome

    cd server
    ./manage.py migrate                 # create database tables
    ./manage.py loaddata initial_data   # load users and tags
    ./manage.py runserver               # run the server on http://localhost:8000

#### Load pregenerated sample data
You can simply load pregenerated data into the database:

First load the configuration:
{'fraction_non_alphanumeric': 0.07109004739336493, 'fraction_numerical': 0.01158504476040021, 'mean_word_length': 3.691358024691358, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1709560', 'n_tokens_mistral': 532, 'n_tokens_neox': 493, 'n_words': 196}