<commit_before># Using Blackfire profiler

## Setup

1. Register with [blackfire](https://blackfire.io).

2. Add the `blackfire` service in `docker-compose.yml` and configure API keys as follows:

    **Option 1:** Use [Blackfire Docker instructions](https://blackfire.io/docs/integrations/docker) to get a snippet that you can put in a `.bash_rc`/etc. file globally. Uncomment respective lines in `docker-compose.yml`.

    **Option 2:** Grab **server** API keys from your [profile page](https://blackfire.io/account).
    Uncomment respective lines in `docker-compose.yml` and replace `Server ID` and `Server Token` with your API keys.

    ```yml
    blackfire:
      image: blackfire/blackfire
      environment:
        # Option 1: exposes host's BLACKFIRE_SERVER_ID and TOKEN environment variables.
        #- BLACKFIRE_SERVER_ID
        #- BLACKFIRE_SERVER_TOKEN
        # Option 2: use global environment credentials.
        #- BLACKFIRE_SERVER_ID=<Server ID>
        #- BLACKFIRE_SERVER_TOKEN=<Server Token>
        # Log verbosity level (4: debug, 3: info, 2: warning, 1: error).
        #- BLACKFIRE_LOG_LEVEL=4
    ```

3. For `docker-compose.yml` files using version 1:

    **Note:** If you do not see `version: 2` in the beginning of your `docker-compose.yml` file, then proceed.
    Add a link in the `cli` service definition as follows:

    ```yml
    ...
    links:
      ...
      - blackfire
    ...
    ```

4. Apply the new configuration with `fin up`.

5. Follow instructions to install and use blackfire via a [Chrome extension](https://blackfire.io/docs/integrations/chrome).

See [blackfire.io](https://blackfire.io/docs/introduction) for more docs on using blackfire; including support for other browsers.
<commit_msg>Add the word 'the' to improve clarity in sentence<commit_after># Using Blackfire profiler

## Setup

1. Register with [blackfire](https://blackfire.io).

2. Add the `blackfire` service in `docker-compose.yml` and configure API keys as follows:

    **Option 1:** Use [Blackfire Docker instructions](https://blackfire.io/docs/integrations/docker) to get a snippet that you can put in a `.bash_rc`/etc. file globally. Uncomment respective lines in `docker-compose.yml`.

    **Option 2:** Grab **server** API keys from your [profile page](https://blackfire.io/account).
    Uncomment respective lines in `docker-compose.yml` and replace `Server ID` and `Server Token` with your API keys.

    ```yml
    blackfire:
      image: blackfire/blackfire
      environment:
        # Option 1: exposes host's BLACKFIRE_SERVER_ID and TOKEN environment variables.
        #- BLACKFIRE_SERVER_ID
        #- BLACKFIRE_SERVER_TOKEN
        # Option 2: use global environment credentials.
        #- BLACKFIRE_SERVER_ID=<Server ID>
        #- BLACKFIRE_SERVER_TOKEN=<Server Token>
        # Log verbosity level (4: debug, 3: info, 2: warning, 1: error).
        #- BLACKFIRE_LOG_LEVEL=4
    ```

3. For `docker-compose.yml` files using version 1:

    **Note:** If you do not see `version: 2` in the beginning of your `docker-compose.yml` file, then proceed.
    Add a link in the `cli` service definition as follows:

    ```yml
    ...
    links:
      ...
      - blackfire
    ...
    ```

4. Apply the new configuration with `fin up`.

5. Follow the instructions to install and use blackfire via the [Chrome extension](https://blackfire.io/docs/integrations/chrome).

See [blackfire.io](https://blackfire.io/docs/introduction) for more docs on using blackfire; including support for other browsers.

{'fraction_non_alphanumeric': 0.11029411764705882, 'fraction_numerical': 0.00904977375565611, 'mean_word_length': 3.1808510638297873, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 10, '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': '574557', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1033, 'n_words': 369}