<commit_before># news

A reddit-like app.

## setup

### installation

Dependencies: Elixir 1.x, PostgreSQL 9.4+, Redis, NodeJS, libsass, a web + caching server, ImageMagick, JPEGoptim.

1. Configure: `cp config/site.exs.sample config/site.exs && $EDITOR config/site.exs`
2. Install dependencies: `mix deps.get && npm install`
3. Compile the consolidated protocols: `(MIX_ENV=prod) mix compile`
3. Migrate database: `(MIX_ENV=prod) mix ecto.migrate`
4. (production only) build assets: `./node_modules/.bin/brunch build --production`
5. (production only) build digest: `(MIX_ENV=prod) mix phoenix.digest`
6. Bootstrap default content: `(MIX_ENV=prod) mix news.bootstrap_initial_data`
7. Profit!

Notes for PostgreSQL:
<commit_msg>improved the README some more<commit_after># news

A reddit-like app.

## setup

Please read *all* the document before doing anything. You might see useful tips.

### installation

Dependencies: Elixir 1.x, PostgreSQL 9.4+, Redis, NodeJS, libsass, a web + caching server, ImageMagick, JPEGoptim.

1. Configure: `cp config/site.exs.sample config/site.exs && $EDITOR config/site.exs`
2. Install dependencies: `mix deps.get && npm install` 
3. Compile the consolidated protocols: `(MIX_ENV=prod) mix compile` (if something fails, such as a .c file compilation, launch `mix clean`, rinse, and repeat `3`.)
3. Migrate database: `(MIX_ENV=prod) mix ecto.migrate`
4. (production only) build assets: `./node_modules/.bin/brunch build --production`
5. (production only) build digest: `(MIX_ENV=prod) mix phoenix.digest`
6. Bootstrap default content: `(MIX_ENV=prod) mix news.bootstrap_initial_data`
7. Profit!

Notes for PostgreSQL:

{'fraction_non_alphanumeric': 0.12341197822141561, 'fraction_numerical': 0.013914095583787053, 'mean_word_length': 4.9496402877697845, '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': '2574571', 'n_tokens_mistral': 584, 'n_tokens_neox': 553, 'n_words': 187}