<commit_before># Pilfer Server

Look into your ruby with [rblineprof](https://github.com/tmm1/rblineprof/).

## Setup

Setup the app:

    $ bundle install [--without production]
    $ cp config/database.example.yml config/database.yml
    $ rake db:setup

Send a test post:

    $ curl -v -H 'Accept: application/json' \
              -H 'Content-Type: application/json' \
              -H 'Authorization: Token token="<KEY>"' \
              -d @test/fixtures/profile-payload-1.json \
              http://0.0.0.0:3000/api/v1/profiles

## Deploying

Configure required environment variables:

    GITHUB_CLIENT_ID=<client_id>
    GITHUB_CLIENT_SECRET=<client_secret>

and one of:

    GITHUB_AUTH_ORG=<organization_name>
    GITHUB_AUTH_TEAM=<team_id><commit_msg>Update port to use foreman default<commit_after># Pilfer Server

Look into your ruby with [rblineprof](https://github.com/tmm1/rblineprof/).

## Setup

Setup the app:

    $ bundle install [--without production]
    $ cp config/database.example.yml config/database.yml
    $ rake db:setup

Send a test post:

    $ curl -v -H 'Accept: application/json' \
              -H 'Content-Type: application/json' \
              -H 'Authorization: Token token="<KEY>"' \
              -d @test/fixtures/profile-payload-1.json \
              http://0.0.0.0:5000/api/v1/profiles

## Deploying

Configure required environment variables:

    GITHUB_CLIENT_ID=<client_id>
    GITHUB_CLIENT_SECRET=<client_secret>

and one of:

    GITHUB_AUTH_ORG=<organization_name>
    GITHUB_AUTH_TEAM=<team_id>
{'fraction_non_alphanumeric': 0.11863313990973566, 'fraction_numerical': 0.014184397163120567, 'mean_word_length': 2.8226600985221677, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5946768', 'n_tokens_mistral': 544, 'n_tokens_neox': 527, 'n_words': 110}