<commit_before># Building


## Setup

    # You may need to do this on Linux
    umask 0022
    # Clone the project
    git clone <EMAIL>:benvanik/tracing-framework.git
    cd tracing-framework/
    # Run one-time setup of dependencies
    ./scripts/setup.sh

    # Source the utility script to get the nice bash aliases
    # You'll want to do this every time you start up a new prompt
    source wtfrc
    # Start a dev server on port 8080
    anvil serve -p 8080 &
    # Do a full build
    anvil build :debug :release

    # When updating goog.require/provide or soy/gss you must do:
    anvil build :fast

## Extensions/apps

### Injector

#### Debug

    # Deploy a debug build
    anvil deploy -o build-bin/injector/ extensions/chrome/injector:deploy
    # Load build-bin/injector/ as an unpacked extension in Chrome

#### Release

    # Build a full release
    anvil build :release
    # Upload build-out/extensions/chrome/wtf-chrome-extension.zip

### App

#### Debug

The best course of action is to avoid debugging the app entirely:

    # Build only required when changing requires/soy/gss
    anvil build :fast
    # Open /app/maindisplay-debug.html in your browser, edit-refresh!

To debug the app features:

    # Build a debug overlay, required with new files/requires/soy/gss
    anvil build app:debug_view
    # Load unpacked from the tracing-framework/ root<commit_msg>Fix instructions for building injector.<commit_after># Building


## Setup

    # You may need to do this on Linux
    umask 0022
    # Clone the project
    git clone <EMAIL>:benvanik/tracing-framework.git
    cd tracing-framework/
    # Run one-time setup of dependencies
    ./scripts/setup.sh

    # Source the utility script to get the nice bash aliases
    # You'll want to do this every time you start up a new prompt
    source wtfrc
    # Start a dev server on port 8080
    anvil serve -p 8080 &
    # Do a full build
    anvil build :debug :release

    # When updating goog.require/provide or soy/gss you must do:
    anvil build :fast

## Extensions/apps

### Injector

#### Debug

    # Deploy a debug build
    anvil deploy -o build-bin/injector/ extensions/chrome/injector:deploy
    # Load build-bin/injector/ as an unpacked extension in Chrome

#### Release

    # Build a full release
    anvil build :release
    # Upload build-out/extensions/chrome/injector/wtf-chrome-extension.zip

### App

#### Debug

The best course of action is to avoid debugging the app entirely:

    # Build only required when changing requires/soy/gss
    anvil build :fast
    # Open /app/maindisplay-debug.html in your browser, edit-refresh!

To debug the app features:

    # Build a debug overlay, required with new files/requires/soy/gss
    anvil build app:debug_view
    # Load unpacked from the tracing-framework/ root
{'fraction_non_alphanumeric': 0.07394241023817988, 'fraction_numerical': 0.008531816565943833, 'mean_word_length': 2.892116182572614, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6389120', 'n_tokens_mistral': 865, 'n_tokens_neox': 812, 'n_words': 329}