<commit_before>## SimilarFilms using Flask

### This is incomplete - only the index is in a working state

This is the initial round of porting over [SimilarFilms](https://github.com/willsonsmith/similarfilms) to the Python Based [Flask](http://flask.pocoo.org) web framework. It is an experiment and currently has a number of visual bugs and legacy code. Still worth a look for educational purposes.

Everything (at least on the front end) so far is a direct copy of the original application, with a few bugs. There is leftover commented out code that is unnecessary.

### Some additional notes

- I recommend using [pip](https://pip.pypa.io/en/stable/) for package management so you can do `pip install -r requirements`
- I also recommend using [virtualenv](https://virtualenv.pypa.io/en/latest/) to manage an isolated python environment
- If you use [fish shell](https://fishshell.com) like I do, you can use [virtualfish](https://github.com/adambrenecki/virtualfish) as an alternative to virtualenv<commit_msg>how i run the server<commit_after>## SimilarFilms using Flask

### This is incomplete - only the index is in a working state

This is the initial round of porting over [SimilarFilms](https://github.com/willsonsmith/similarfilms) to the Python Based [Flask](http://flask.pocoo.org) web framework. It is an experiment and currently has a number of visual bugs and legacy code. Still worth a look for educational purposes.

Everything (at least on the front end) so far is a direct copy of the original application, with a few bugs. There is leftover commented out code that is unnecessary.

### Some additional notes

- I recommend using [pip](https://pip.pypa.io/en/stable/) for package management so you can do `pip install -r requirements`
- I also recommend using [virtualenv](https://virtualenv.pypa.io/en/latest/) to manage an isolated python environment
- If you use [fish shell](https://fishshell.com) like I do, you can use [virtualfish](https://github.com/adambrenecki/virtualfish) as an alternative to virtualenv

#### How I start the server

Since I'm using an environemnt variable for the API key I set up a small bash script to start the server for me
```
#!/usr/bin/env bash
export APIKEY=YOUR_API_KEY_HERE
python run.py
```
{'fraction_non_alphanumeric': 0.08618391825855176, 'fraction_numerical': 0.0, 'mean_word_length': 4.519607843137255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '5573862', 'n_tokens_mistral': 635, 'n_tokens_neox': 599, 'n_words': 295}