<commit_before># Installing dependencies

Ensure you have bundler installed, as it is used to load dependencies:

    gem install bundler

The first time you run each of the apps you can install the dependencies from their folder using:

    bundle install

# Running the apps

Start the OAuth server:

    cd auth_server/
    bundle install
    rackup --port=9393

Start the resource server from another prompt:

    cd resource_server/
    bundle install
    rackup --port=9394

Run the native app emulator from a third prompt - this gets a token from the OAuth server and uses it in a request to the resource server.

    cd device/
    bundle install
    ruby App.rb<commit_msg>Fix readme@<commit_after># Installing dependencies

Ensure you have bundler installed, as it is used to load dependencies:

    gem install bundler

The first time you run each of the apps you can install the dependencies from their folder using:

    bundle install

# Running the apps

Start the OAuth server:

    cd auth_server/
    rackup --port=9393

Start the resource server from another prompt:

    cd resource_server/
    rackup --port=9394

Run the native app emulator from a third prompt - this gets a token from the OAuth server and uses it in a request to the resource server.

    cd device/
    ruby App.rb
{'fraction_non_alphanumeric': 0.034482758620689655, 'fraction_numerical': 0.012260536398467433, 'mean_word_length': 3.2129032258064516, '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': '431134', 'n_tokens_mistral': 358, 'n_tokens_neox': 339, 'n_words': 188}