<commit_before># OSF 

## Help

Solutions to many common issues may be found at the [OSF Wiki](https://osf.io/a92ji/wiki/home/).

## Quickstart

These instructions should work on Mac OSX >= 10.7

- Create your virtualenv.
- Install MongoDB. On MacOSX with [homebrew](http://brew.sh/) (click link for homebrew installation instructions), run:

```bash
$ brew update 
$ brew install mongodb
```

- Install libxml2 and libxslt (required for installing lxml).

```bash
$ brew install libxml2
$ brew install libxslt
```

- Install requirements.

```bash
$ pip install invoke
$ invoke requirements --all
```

- Create your local settings file.

```bash
$ cp website/settings/local-dist.py website/settings/local.py
```

`local.py` will override settings in `base.py`. It will not be added to source control, so change it as you wish.

## Starting Up

- Run your mongodb process.

```bash
$ invoke mongo
```

- Run your local development server.

```bash
$ invoke server<commit_msg>Settings must be copied before running invoke requirements<commit_after># OSF 

## Help

Solutions to many common issues may be found at the [OSF Wiki](https://osf.io/a92ji/wiki/home/).

## Quickstart

These instructions should work on Mac OSX >= 10.7

- Create your virtualenv.
- Copy `website/settings/local-dist.py` to `website/settings/local.py`. NOTE: This is your local settings file, which overrides the settings in `website/settings/defaults.py`. It will not be added to source control, so change it as you wish.

```sh
$ cp website/settings/local-dist.py website/settings/local.py
```

- Install MongoDB. On MacOSX with [homebrew](http://brew.sh/) (click link for homebrew installation instructions), run:

```bash
$ brew update 
$ brew install mongodb
```

- Install libxml2 and libxslt (required for installing lxml).

```bash
$ brew install libxml2
$ brew install libxslt
```

- Install requirements.

```bash
$ pip install invoke
$ invoke requirements --all
```

## Starting Up

- Run your mongodb process.

```bash
$ invoke mongo
```

- Run your local development server.

```bash
$ invoke server
{'fraction_non_alphanumeric': 0.11606714628297363, 'fraction_numerical': 0.00671462829736211, 'mean_word_length': 3.954869358669834, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3415055', 'n_tokens_mistral': 678, 'n_tokens_neox': 619, 'n_words': 244}