<commit_before>#Haskellers
Full source code for the haskellers.com website. Use as a base for your own Haskell/Yesod applications or as a sample application to help with learning Haskell/Yesod

### System Requirements
You must have Haskell, Yesod and Postgresql installed.

Instructions for installing Haskell and Yesod are available at http://www.yesodweb.com/page/quickstart

You will also need to install libicu-dev. This can be installed on debian based machines with:

```
apt-get install libicu-dev
```
    
### Installation
1. Download the source code to an appropriate folder. Just run:
    ```
    git clone https://github.com/snoyberg/haskellers.git`
    ```
Alternatively download the zip archive at https://github.com/snoyberg/haskellers/archive/master.zip and extract to a suitable folder.

2. cd to the haskellers directory created above.

3. Download and install local copies of all the libraries needed by haskellers.com. using [the Stack tool](https://github.com/commercialhaskell/stack/):
    ```
    stack install yesod-bin cabal-install --install-ghc && stack build
    ```    
4. create a new postgresql database for the haskellers data. Just run:

    ```
    sudo su - postgres
    psql template1
    CREATE USER <username> WITH PASSWORD '<<PASSWORD>>';
    CREATE DATABASE <dbname>;
    GRANT ALL PRIVILEGES ON DATABASE <dbname> TO <name>;
    \q
    ```
5. Edit `config/db/postgresql.yml` to reflect the choices you made in step 4.

6. Rename `SESCred-dummy.hs` to `SESCred.hs`. Replace the `fake-secret-key` and `fake-access-key` with random, unguessable strings. 

7. Start the haskellers application by running `stack exec -- yesod devel`.
<commit_msg>update the instructions about access and secret keys<commit_after>#Haskellers
Full source code for the haskellers.com website. Use as a base for your own Haskell/Yesod applications or as a sample application to help with learning Haskell/Yesod

### System Requirements
You must have Haskell, Yesod and Postgresql installed.

Instructions for installing Haskell and Yesod are available at http://www.yesodweb.com/page/quickstart

You will also need to install libicu-dev. This can be installed on debian based machines with:

```
apt-get install libicu-dev
```
    
### Installation
1. Download the source code to an appropriate folder. Just run:
    ```
    git clone https://github.com/snoyberg/haskellers.git`
    ```
Alternatively download the zip archive at https://github.com/snoyberg/haskellers/archive/master.zip and extract to a suitable folder.

2. cd to the haskellers directory created above.

3. Download and install local copies of all the libraries needed by haskellers.com. using [the Stack tool](https://github.com/commercialhaskell/stack/):
    ```
    stack install yesod-bin cabal-install --install-ghc && stack build
    ```    
4. create a new postgresql database for the haskellers data. Just run:

    ```
    sudo su - postgres
    psql template1
    CREATE USER <username> WITH PASSWORD '<<PASSWORD>>';
    CREATE DATABASE <dbname>;
    GRANT ALL PRIVILEGES ON DATABASE <dbname> TO <name>;
    \q
    ```
5. Edit `config/db/postgresql.yml` to reflect the choices you made in step 4.

6. Within `config/db/aws`, replace `SOME-ACCESS-KEY` and `SOME-SECRET-KEY` with random, unguessable strings. 

7. Start the haskellers application by running `stack exec -- yesod devel`.

{'fraction_non_alphanumeric': 0.08856635071090048, 'fraction_numerical': 0.00533175355450237, 'mean_word_length': 3.7099023709902372, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1284538', 'n_tokens_mistral': 1031, 'n_tokens_neox': 971, 'n_words': 400}