<commit_before>#!/usr/bin/env bash

set -e

REUSE_SOURCE=""
REUSE_OUTPUT=""
REUSE_MINIMAL=false
REUSE_EXECUTABLE=false
REUSE_NOSTDLIB=false

throw_error() {
    echo $(basename $0): $@ >&2
    exit 1
}

while [[ $# -gt 0 ]]
do
    arg="$1"

    case $arg in
        --minimal)
            REUSE_MINIMAL=true
            shift<commit_msg>frontend: Added usage<commit_after>#!/usr/bin/env bash

set -e

REUSE_SOURCE=""
REUSE_OUTPUT=""
REUSE_MINIMAL=false
REUSE_EXECUTABLE=false
REUSE_NOSTDLIB=false

usage() {
    echo Usage: $(basename $0) [flags] --output [OUTPUT FILE] [FILE]... >&2
    echo >&2
    echo Compiler for the Reuse programming language>&2
    echo >&2
    echo "       --minimal         Only use minimal subset language" >&2
    echo "       --executable      Compile executable file" >&2
    echo "       --nostdlib        Do not include the standard library" >&2
    echo "       --output [FILE]   File to write output to" >&2
}

throw_error() {
    echo $(basename $0): $@ >&2
    echo >&2
    usage
    exit 1
}

while [[ $# -gt 0 ]]
do
    arg="$1"

    case $arg in
        --minimal)
            REUSE_MINIMAL=true
            shift
{'fraction_non_alphanumeric': 0.13096270598438856, 'fraction_numerical': 0.017346053772766695, 'mean_word_length': 2.297142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '3159164', 'n_tokens_mistral': 427, 'n_tokens_neox': 407, 'n_words': 112}