<commit_before>## Operating system

FreedomSponsors uses a few python libs that I could never get to work properly on Windows or Mac.
That means you need linux to get FS running on your machine.

You can get Ubuntu VMs for VirtualBox [here](http://virtualboxes.org/images/ubuntu/). 

Alternatively, you can [run FS in sandbox mode](https://github.com/freedomsponsors/www.freedomsponsors.org/blob/master/doc/windows.md) (no database, good enough to work with html/css/js only)

## Running

Instructions to run application locally:

1. Install Postgresql and some other needed libs

  ```bash
  $ sudo apt-get update --fix-missing
  $ sudo apt-get install postgresql postgresql-server-dev-all \
  python-dev python-lxml libxslt-dev libpq-dev
  ```

2. Clone the repo.

  ```bash
  $ git clone git://github.com/freedomsponsors/www.freedomsponsors.org.git
  $ cd www.freedomsponsors.org
  ```

3. Create the database/default user.<commit_msg>update setup<commit_after>## Operating system

FreedomSponsors uses a few python libs that I could never get to work properly on Windows or Mac.
That means you need linux to get FS running on your machine.

You can get Ubuntu VMs for VirtualBox [here](http://virtualboxes.org/images/ubuntu/). 

Alternatively, you can [run FS in sandbox mode](https://github.com/freedomsponsors/www.freedomsponsors.org/blob/master/doc/windows.md) (no database, good enough to work with html/css/js only)

## Running

Instructions to run application locally:

1. Install Postgresql and some other needed libs

  ```bash
  $ sudo apt-get update --fix-missing
  $ sudo apt-get install postgresql postgresql-server-dev-all \
  python-dev python-lxml libxslt-dev libpq-dev pgadmin3
  ```

2. Clone the repo.

  ```bash
  $ git clone git://github.com/freedomsponsors/www.freedomsponsors.org.git
  $ cd www.freedomsponsors.org
  ```

3. Create the database/default user.
{'fraction_non_alphanumeric': 0.09660297239915075, 'fraction_numerical': 0.0037154989384288748, 'mean_word_length': 3.94750656167979, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, 'xml': 2}, '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': '5121478', 'n_tokens_mistral': 628, 'n_tokens_neox': 577, 'n_words': 203}