<commit_before>MySQL and Django setup for this project:
you can copy paste most of it, this is already done on Balint's RPi

1) Download necessary packages:
    sudo apt-get install mysql-server mysql-client
    sudo apt-get install python-mysqldb
    sudo pip install django

2) Configure tools:
    mysql_secure_installation  //set root password!
    log in to mysql:
    mysql -u root -p
        <enter root password>
        CREATE DATABASE homestruction;
        GRANT ALL PRIVILEGES ON homestruction.* TO 'homestruction'@'localhost' IDENTIFIED BY 'homeStruction1!';
                                                                             //recomended pass ^^, since the server uses it.
        exit;

    //import mysql database
    mysql -u homestruction -p < database.sql
        <enter homestruction password>

3) running webserver:
    cd homeStruction/website
    python manage.py runserver
        //it can be can be accessed in browser at localhost:8000
        //for RPi run python manage.py runserver 0.0.0.0:8000 -> website accessible at <RPi's IP address>:8000
    check out localhost:8000/admin - username and pass given above
              localhost:8000/data/temperature - displays 10 latest records

4) how to insert data into the database:
    mysql command line tool -- mysql -u homestruction -p
    admin page on website
    insertInDBtest.py can insert a temperature record

if stuck message me!!<commit_msg>Django and mysql setup -- update<commit_after>MySQL and Django setup for this project:
you can copy paste most of it, this is already done on Balint's RPi

1) Download necessary packages:
    sudo apt-get install mysql-server mysql-client
    sudo apt-get install python-mysqldb
    sudo pip install django

2) Configure tools:
    mysql_secure_installation  //set root password!
    log in to mysql:
    mysql -u root -p
        <enter root password>
        CREATE DATABASE homestruction;
        GRANT ALL PRIVILEGES ON homestruction.* TO 'homestruction'@'localhost' IDENTIFIED BY 'homeStruction1!';
                                                                             //recomended pass ^^, since the server uses it.
        exit;

3) Import mysql database
    mysql -u homestruction -p < database.sql
        <enter homestruction password>

4) Running webserver:
    cd homeStruction/website
    python manage.py runserver
        //it can be can be accessed in browser at localhost:8000
        //for RPi run python manage.py runserver 0.0.0.0:8000 -> website accessible at <RPi's IP address>:8000
    check out localhost:8000/admin - username and pass given above
              localhost:8000/data/temperature - displays 10 latest records

5) How to insert data into the database:
    mysql command line tool -- mysql -u homestruction -p
    admin page on website
    insertInDBtest.py can insert a temperature record

6) How to export database in a file:
    mysqldump -u homestruction -p homestruction> database.sql

Useful links:
basic MySQL:
    https://www.digitalocean.com/community/tutorials/a-basic-mysql-tutorial
Django documentation:
    https://docs.djangoproject.com/en/1.10/
Google:
    google.com
    
If stuck message me!
{'fraction_non_alphanumeric': 0.0636762860727729, 'fraction_numerical': 0.021016311166875783, 'mean_word_length': 2.53156146179402, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2620761', 'n_tokens_mistral': 924, 'n_tokens_neox': 846, 'n_words': 352}