<commit_before>#!/bin/bash

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

help() {
cat << EOF
Usage: $0 [OPTIONS]

OPTIONS:
   -h      Show this message
   -t      Make theme only
   -e      Make extension only
EOF
}

while getopts "hte" OPTION
do
    case $OPTION in
        t)
            BUILD_THEME_ONLY=true
            ;;
        e)
            BUILD_EXTENSION_ONLY=true
            ;;
        h)
            help
            exit
            ;;
        ?)
            help
            exit
            ;;
    esac
done

if [ ! $BUILD_EXTENSION_ONLY ]; then
    ./make-xpi.py extension
fi

if [ ! $BUILD_THEME_ONLY ]; then
    ./make-xpi.py theme
fi

if [ ! $BUILD_THEME_ONLY ] && [ ! $BUILD_EXTENSION_ONLY ]; then
    ./make-xpi.py all
fi

<commit_msg>Fix make-xpi.sh<commit_after>#!/bin/bash

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

help() {
cat << EOF
Usage: $0 [OPTIONS]

OPTIONS:
   -h      Show this message
   -t      Make theme only
   -e      Make extension only
EOF
}

while getopts "hte" OPTION
do
    case $OPTION in
        t)
            BUILD_THEME_ONLY=true
            ;;
        e)
            BUILD_EXTENSION_ONLY=true
            ;;
        h)
            help
            exit
            ;;
        ?)
            help
            exit
            ;;
    esac
done

if [ $BUILD_EXTENSION_ONLY ]; then
    ./make-xpi.py extension
    exit
fi

if [ $BUILD_THEME_ONLY ]; then
    ./make-xpi.py theme
    exit
fi

./make-xpi.py all


{'fraction_non_alphanumeric': 0.0942970073404856, 'fraction_numerical': 0.00564652738565782, 'mean_word_length': 1.553314121037464, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7074769', 'n_tokens_mistral': 613, 'n_tokens_neox': 585, 'n_words': 184}