<commit_before>#!/bin/sh
XSUBLIME_EXECUTABLE=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
XSUBLIME_CONFIG_DIR=$HOME/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
XSUBLIME_CONFIG_SOURCE="<EMAIL>:duksis/sublime-settings.git"
XSUBLIME_CONFIG_TARGET=$HOME/.config/sublime-text-2

function mark_for_uninstall {
	mkdir -p $HOME/.sublime
  echo "rm $1" >> $HOME/.sublime/uninstall_config.sh
}

# Add subl executable into a PATH directory
if [ -f "${XSUBLIME_EXECUTABLE}" ] && [ -n "$(which subl)" ]; then
  mkdir -p $HOME/bin
  ln -sv "${XSUBLIME_EXECUTABLE}" $HOME/bin/subl

  mark_for_uninstall "$HOME/bin/subl"
fi

# Sublime user setting
if [ -d "${XSUBLIME_CONFIG_DIR}" ]; then
  mv "${XSUBLIME_CONFIG_DIR}" "${XSUBLIME_CONFIG_DIR}.default"
fi

if [ -d "${XSUBLIME_CONFIG_TARGET}" ]; then
  echo "Sublime configuration already pressent at '${XSUBLIME_CONFIG_TARGET}'"
else
  mkdir -p "${XSUBLIME_CONFIG_TARGET}"
  mark_for_uninstall "-fr ${XSUBLIME_CONFIG_TARGET}"
  git clone "${XSUBLIME_CONFIG_SOURCE}" "${XSUBLIME_CONFIG_TARGET}"
fi
mkdir -p "$XSUBLIME_CONFIG_DIR"
rm -r "$XSUBLIME_CONFIG_DIR"
ln -shvf "${XSUBLIME_CONFIG_TARGET}" "${XSUBLIME_CONFIG_DIR}"<commit_msg>uncommenting subl executable check as it isn't  working as supposed<commit_after>#!/bin/sh
XSUBLIME_EXECUTABLE=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
XSUBLIME_CONFIG_DIR=$HOME/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
XSUBLIME_CONFIG_SOURCE="<EMAIL>:duksis/sublime-settings.git"
XSUBLIME_CONFIG_TARGET=$HOME/.config/sublime-text-2

function mark_for_uninstall {
	mkdir -p $HOME/.sublime
  echo "rm $1" >> $HOME/.sublime/uninstall_config.sh
}

# Add subl executable into a PATH directory
if [ -f "${XSUBLIME_EXECUTABLE}" ]; then  #&& [ -n "$(which subl)" ]; then
  mkdir -p $HOME/bin
  ln -sv "${XSUBLIME_EXECUTABLE}" $HOME/bin/subl

  mark_for_uninstall "$HOME/bin/subl"
fi

# Sublime user setting
if [ -d "${XSUBLIME_CONFIG_DIR}" ]; then
  mv "${XSUBLIME_CONFIG_DIR}" "${XSUBLIME_CONFIG_DIR}.default"
fi

if [ -d "${XSUBLIME_CONFIG_TARGET}" ]; then
  echo "Sublime configuration already pressent at '${XSUBLIME_CONFIG_TARGET}'"
else
  mkdir -p "${XSUBLIME_CONFIG_TARGET}"
  mark_for_uninstall "-fr ${XSUBLIME_CONFIG_TARGET}"
  git clone "${XSUBLIME_CONFIG_SOURCE}" "${XSUBLIME_CONFIG_TARGET}"
fi
mkdir -p "$XSUBLIME_CONFIG_DIR"
rm -r "$XSUBLIME_CONFIG_DIR"
ln -shvf "${XSUBLIME_CONFIG_TARGET}" "${XSUBLIME_CONFIG_DIR}"
{'fraction_non_alphanumeric': 0.14222042139384117, 'fraction_numerical': 0.0032414910858995136, 'mean_word_length': 5.801652892561983, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2174199', 'n_tokens_mistral': 976, 'n_tokens_neox': 938, 'n_words': 183}