<commit_before>#!/bin/bash

# Get the current directory
DIR="$( cd "$(dirname "$0" )" && pwd )"

# Link executable dot files to $HOME
for dotfile in $(find $DIR -type f -maxdepth 1 -name ".*"); do
    [ -x $dotfile ] || continue
    ln -fs $dotfile "${HOME}/$(basename $dotfile)"
done

# Link rc files in .bashrc.d
[ -d "${HOME}/.bashrc.d" ] || mkdir "${HOME}/.bashrc.d"
for dotfile in $DIR/.bashrc.d/*; do
    ln -fs $dotfile "${HOME}/.bashrc.d/$(basename $dotfile)"
done

# Link programs files in bin
[ -d "${HOME}/bin" ] || mkdir "${HOME}/bin"
for program in $DIR/bin/*; do
    [ -x $program ] || continue
    ln -fs $program "${HOME}/bin/$(basename $program)"
done
<commit_msg>Link all dotfiles in root folder<commit_after>#!/bin/bash

# Get the current directory
DIR="$( cd "$(dirname "$0" )" && pwd )"

# Link dot files to $HOME
for dotfile in $(find $DIR -type f -maxdepth 1 -name ".*"); do
    ln -fs $dotfile "${HOME}/$(basename $dotfile)"
done

# Link rc files in .bashrc.d
[ -d "${HOME}/.bashrc.d" ] || mkdir "${HOME}/.bashrc.d"
for dotfile in $DIR/.bashrc.d/*; do
    ln -fs $dotfile "${HOME}/.bashrc.d/$(basename $dotfile)"
done

# Link programs files in bin
[ -d "${HOME}/bin" ] || mkdir "${HOME}/bin"
for program in $DIR/bin/*; do
    [ -x $program ] || continue
    ln -fs $program "${HOME}/bin/$(basename $program)"
done

{'fraction_non_alphanumeric': 0.21076233183856502, 'fraction_numerical': 0.0029895366218236174, 'mean_word_length': 3.2916666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6554828', 'n_tokens_mistral': 514, 'n_tokens_neox': 482, 'n_words': 159}