<commit_before>#!/bin/sh

set -eu

WRKDIR=$(cd "$(dirname "$0")/.." && pwd -P)
file=
lang=

usage() {
    echo >&2 "Usage: $(basename "$0") -l go|ruby|py2|py3"
}

if [ $# = 0 ]; then
    set -- go ruby py2 py3
fi

#shellcheck disable=SC2068
for l in $@; do
    file="$WRKDIR/tools/${l}tools.txt"
    packages=$(awk '/^\s*([^# ]+)/ { print $1 }' "$file" | paste -sd' ')
    echo "installing from $file"
<commit_msg>Appease OSX paste(1), which requires a file name.<commit_after>#!/bin/sh

set -eu

WRKDIR=$(cd "$(dirname "$0")/.." && pwd -P)
file=
lang=

usage() {
    echo >&2 "Usage: $(basename "$0") -l go|ruby|py2|py3"
}

if [ $# = 0 ]; then
    set -- go ruby py2 py3
fi

#shellcheck disable=SC2068
for l in $@; do
    file="$WRKDIR/tools/${l}tools.txt"
    packages=$(awk '/^\s*([^# ]+)/ { print $1 }' "$file" | paste -sd' ' -)
    echo "installing from $file"

{'fraction_non_alphanumeric': 0.2390300230946882, 'fraction_numerical': 0.03117782909930716, 'mean_word_length': 3.0704225352112675, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7210941', 'n_tokens_mistral': 381, 'n_tokens_neox': 362, 'n_words': 97}