<commit_before>set -e

which stow > /dev/null || (echo "GNU stow is not installed" && exit 1)

mkdir -pv ~/.gnupg
mkdir -pv ~/.zsh

function install_in_dir() {
    stow --dir $1 --target ~ --verbose --ignore '\.swp$' `ls $1`
}

install_in_dir common
if [ ! -z $1 ] ; then
    install_in_dir $1
fi<commit_msg>fix stow shellcheck<commit_after>#!/usr/bin/env bash

set -e

command -v stow > /dev/null || (echo "GNU stow is not installed" && exit 1)

mkdir -pv ~/.gnupg
mkdir -pv ~/.zsh

function install_in_dir() {
    pushd "$1" >/dev/null
    for name in * ; do
        stow --target ~ --verbose --ignore '\.swp$' "$name"
    done
    popd >/dev/null
}

install_in_dir common
if [ ! -z "$1" ] ; then
    install_in_dir "$1"
fi
{'fraction_non_alphanumeric': 0.16827586206896553, 'fraction_numerical': 0.012413793103448275, 'mean_word_length': 2.594059405940594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6447320', 'n_tokens_mistral': 299, 'n_tokens_neox': 288, 'n_words': 89}