<commit_before># volunteer_planner
This repro hosts the code for volunteer-planner.org. A platform to schedule shifts of volunteers.


## Setup (Ubuntu 14.04)

1. Install all required Ubuntu packages `apt-get install libmysqlclient-dev mysql-client mysql-server python-dev python-pip git`. This will install MySQL server, Python libraries and Git. It will ask you to set a root password [ROOT_PASSWORD] for the mysql server. Remember the password.
2. Clone the repository: `git clone https://github.com/volunteer-planner/volunteer_planner.git`. An instance of the volunteer_planner will be created in the folder `volunteer_planner`
3. Navigate to that folder `cd volunteer_planner`
2. Create a virtual environment by running `virtualenv --no-site-packages volunteer_planner-venv`
4. Enable the virtual environment by running `source volunteer_planner-venv/bin/activate` (for bash) or `. volunteer_planner-venv/bin/activate.fish` (for fish)
4. Install all requirements by running `pip install -r requirements/dev.txt`
5. Enter the volunteer_planner dir.
6. Copy man.py to manlocal.py.
7. Create a mysql database with the name volunteer_planner with access for user [USERNAME] with password [PASSWORD], by entering mysql (using the password from step 1):

```
mysql -u root -p[ROOT_PASSWORD]
> create database volunteer_planner;
> grant all privileges on volunteer_planner to [USERNAME] identified by '[PASSWORD]';
> \q
```

8. Copy man.py to manlocal.py and fill in [USERNAME], [PASSWORD]  as well as an email address (has to be gmail) the corresponding gmail password in the appropriate places in that file.
9. Run the server by running `./manlocal.py runserver`
<commit_msg>ADD code for cd and cp<commit_after># volunteer_planner
This repro hosts the code for volunteer-planner.org. A platform to schedule shifts of volunteers.


## Setup (Ubuntu 14.04)

1. Install all required Ubuntu packages `apt-get install libmysqlclient-dev mysql-client mysql-server python-dev python-pip git`. This will install MySQL server, Python libraries and Git. It will ask you to set a root password [ROOT_PASSWORD] for the mysql server. Remember the password.
2. Clone the repository: `git clone https://github.com/volunteer-planner/volunteer_planner.git`. An instance of the volunteer_planner will be created in the folder `volunteer_planner`
3. Navigate to that folder `cd volunteer_planner`
2. Create a virtual environment by running `virtualenv --no-site-packages volunteer_planner-venv`
4. Enable the virtual environment by running `source volunteer_planner-venv/bin/activate` (for bash) or `. volunteer_planner-venv/bin/activate.fish` (for fish)
4. Install all requirements by running `pip install -r requirements/dev.txt`
5. Enter the volunteer_planner dir (`cd volunteer_planner`).
6. Copy man.py to manlocal.py (`cp man.py manlocal.py`).
7. Create a mysql database with the name volunteer_planner with access for user [USERNAME] with password [PASSWORD], by entering mysql (using the password from step 1):

```
mysql -u root -p[ROOT_PASSWORD]
> create database volunteer_planner;
> grant all privileges on volunteer_planner to [USERNAME] identified by '[PASSWORD]';
> \q
```

8. Copy man.py to manlocal.py and fill in [USERNAME], [PASSWORD]  as well as an email address (has to be gmail) the corresponding gmail password in the appropriate places in that file.
9. Run the server by running `./manlocal.py runserver`

{'fraction_non_alphanumeric': 0.08035190615835777, 'fraction_numerical': 0.0093841642228739, 'mean_word_length': 4.771573604060913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '3559892', 'n_tokens_mistral': 985, 'n_tokens_neox': 944, 'n_words': 436}