<commit_before>#!/bin/sh
cd `dirname $0`
mkdir -p "${HOME}/.config"

files="`ls | egrep -v "README|\.sh"` zprofile"
for file in $files
do
  target="`pwd`/$file"
  link=$(echo $HOME/.$file | sed s/__/\\//g)
  mkdir -p $(dirname $link)

  if [ "$file" = "tilix.conf" ]; then
    echo "Loading tilix.conf ..."
    dconf load /com/gexperts/Tilix/ < tilix.conf
    continue
  fi

  # This is a special case.
  if [ "$file" = "zprofile" ]; then
    target="$HOME/.profile"
  fi

  if [ -f $link -o -d $link ]; then
    echo "* Making backup: ${link}.bak"
    mv "$link" "${link}.bak"
  elif [ -L "$link" ]; then
    echo "* Removing $link symlink"
    rm -f "$link"
  fi

  echo "- $target -> $link"
  ln -s $target $link
done<commit_msg>Modest modernization.<commit_after>#!/bin/sh
cd `dirname $0`
mkdir -p "${HOME}/.config"

files="`ls | egrep -v "README|\.sh"` zprofile"
for file in $files
do
  target="`pwd`/$file"
  link=$(echo $HOME/.$file | sed s/__/\\//g)
  mkdir -p $(dirname $link)

  if [[ -n "${DISPLAY}" ]]; then
    if [[ "${file}" = "tilix.conf" ]]; then
      echo "Loading tilix.conf ..."
      dconf load /com/gexperts/Tilix/ < tilix.conf
      continue
    fi
  fi

  if [[ "${file}" = "zprofile" ]]; then
    target="$HOME/.profile"
  fi

  if [[ -f "${link}" && -d "${link}" ]]; then
    echo "* Making backup: ${link}.bak"
    mv "$link" "${link}.bak"
  elif [[ -L "${link}" ]]; then
    echo "* Removing $link symlink"
    rm -f "$link"
  fi

  echo "- $target -> $link"
  ln -s "${target}" "${link}"
done
{'fraction_non_alphanumeric': 0.22010512483574243, 'fraction_numerical': 0.001314060446780552, 'mean_word_length': 2.566744730679157, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4455234', 'n_tokens_mistral': 602, 'n_tokens_neox': 583, 'n_words': 167}