<commit_before># Installation

On Ubuntu systems...

1. Install nginx, python, pip, git and incron
   ```
   sudo apt-get update
   sudo apt-get install nginx python python-pip git incron
   ```
2. Install necessary python modules
   ```
   sudo pip install pyyaml pystache jsonschema markdown
   ```
3. Clone this repo to the desired location
   ```
   git clone
   ```
4. Edit the nginx config to reflect your domain and the correct path to local directory
   ```
   nano nginx.config
   ```
   Edit: `server_name yourdomain.com;`
   Edit: `root /path/to/tinysite/static;`

5. Place link to nginx config in required directory
   ```
   sudo ln -s /path/to/tinysite/nginx.conf /etc/nginx/sites-enabled/tinysite.conf
   ```
6. (optionally) Add an incrontab task to trigger a rebuild every time you change a file
   ```
   incrontab -e
   ```
   _...then in the editor add..._
   ```
   /path/to/tinysite/posts IN_MODIFY cd /path/to/tinysite && python build.py
   ```<commit_msg>fixed formatting on readme<commit_after># Installation

On Ubuntu systems...

1. Install nginx, python, pip, git and incron

   ```
   sudo apt-get update
   sudo apt-get install nginx python python-pip git incron
   ```

2. Install necessary python modules

   ```
   sudo pip install pyyaml pystache jsonschema markdown
   ```

3. Clone this repo to the desired location

   ```
   git clone
   ```

4. Edit the nginx config to reflect your domain and the correct path to local directory

   ```
   nano nginx.config
   ```

   Edit: `server_name yourdomain.com;`
   Edit: `root /path/to/tinysite/static;`

5. Place link to nginx config in required directory

   ```
   sudo ln -s /path/to/tinysite/nginx.conf /etc/nginx/sites-enabled/tinysite.conf
   ```

6. (optionally) Add an incrontab task to trigger a rebuild every time you change a file

   ```
   incrontab -e
   ```

   _...then in the editor add..._

   ```
   /path/to/tinysite/posts IN_MODIFY cd /path/to/tinysite && python build.py
   ```
{'fraction_non_alphanumeric': 0.10696266397578204, 'fraction_numerical': 0.006054490413723511, 'mean_word_length': 2.8355899419729207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1287679', 'n_tokens_mistral': 689, 'n_tokens_neox': 634, 'n_words': 229}