<commit_before># [LASA Website](http://lasa.us)
A replacement for the current [LASA High School
website](http://www.lasahighschool.com).

## Dependencies
The project uses the flask framework for python. The comprehensive
list of dependencies is available in requirements.txt.

## Installation
### Virtual environment setup

Run everything inside a python virtual environment (venv):  `python -m
venv flask` or `python3 -m venv flask` if Python 3 is not the system default. 

### Packages
First, install your distribution's package for MySQL/MariaDB (using `apt-get`, `dnf`, `pacman`, whatever). Then install all of the necessary python dependencies: `flask/bin/pip3 install -r
requirements.txt`

### Database setup
First, install and set up the latest version of MySQL. The following are instructions for Debian linux:

1. Install the latest version of MySQL server and client: `sudo apt-get install mysql-server libmysqlclient-dev`

2. When prompted, enter "password" as the MySQL root password, or otherwise change the SQLALCHEMY\_DATABASE\_URI in config.py to match your password.

3. Start the MySQL service: `sudo systemctl start mysql`

4. Create a new database: `./db_create.py`

5. Set up database migrations: `./db_migrate.py db init`

To create a user that can log in and edit the website, run the following script:

`./create_user.py harambe <EMAIL> #neverforget123`

where the three arguments are the username, email, and password, respectively.

### Testing the application

To run an instance of the website in debug mode on localhost:5000: `./run.py`

## Licensing
All files are released under the GNU AGPL (whose full text is located
in the LICENSE file), with the following exceptions:
- lowpolybg.jpg is released into the public domain under [the CC0
license](https://creativecommons.org/publicdomain/zero/1.0/).
- All database-related files, secret keys (for cryptographic purposes or
otherwise), and passwords are not intended to be publicly available
and thus may not be used for any purpose.
- Files relating to mascots/logos of LASA High School or Austin ISD
may be covered under a seperate license. Please obtain advanced
written permission from the appropriate entity before using them for
any purpose.

## Authors<commit_msg>Remove hash symbol from example password<commit_after># [LASA Website](http://lasa.us)
A replacement for the current [LASA High School
website](http://www.lasahighschool.com).

## Dependencies
The project uses the flask framework for python. The comprehensive
list of dependencies is available in requirements.txt.

## Installation
### Virtual environment setup

Run everything inside a python virtual environment (venv):  `python -m
venv flask` or `python3 -m venv flask` if Python 3 is not the system default. 

### Packages
First, install your distribution's package for MySQL/MariaDB (using `apt-get`, `dnf`, `pacman`, whatever). Then install all of the necessary python dependencies: `flask/bin/pip3 install -r
requirements.txt`

### Database setup
First, install and set up the latest version of MySQL. The following are instructions for Debian linux:

1. Install the latest version of MySQL server and client: `sudo apt-get install mysql-server libmysqlclient-dev`

2. When prompted, enter "password" as the MySQL root password, or otherwise change the SQLALCHEMY\_DATABASE\_URI in config.py to match your password.

3. Start the MySQL service: `sudo systemctl start mysql`

4. Create a new database: `./db_create.py`

5. Set up database migrations: `./db_migrate.py db init`

To create a user that can log in and edit the website, run the following script:

`./create_user.py harambe <EMAIL> neverforget123`

where the three arguments are the username, email, and password, respectively.

### Testing the application

To run an instance of the website in debug mode on localhost:5000: `./run.py`

## Licensing
All files are released under the GNU AGPL (whose full text is located
in the LICENSE file), with the following exceptions:
- lowpolybg.jpg is released into the public domain under [the CC0
license](https://creativecommons.org/publicdomain/zero/1.0/).
- All database-related files, secret keys (for cryptographic purposes or
otherwise), and passwords are not intended to be publicly available
and thus may not be used for any purpose.
- Files relating to mascots/logos of LASA High School or Austin ISD
may be covered under a seperate license. Please obtain advanced
written permission from the appropriate entity before using them for
any purpose.

## Authors
{'fraction_non_alphanumeric': 0.07354240282685512, 'fraction_numerical': 0.007950530035335688, 'mean_word_length': 4.64713216957606, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2573215', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1178, 'n_words': 612}