<commit_before>#!/bin/sh
# Sync SublimeText2 settings per https://sublime.wbond.net/docs/syncing

echo "Configuring Dropbox sync for SublimeText2..."
SUBL_SETTINGS=~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
DB_SETTINGS=~/Dropbox/Documents/Application\ Files/SublimeText/User 
# Check if:
# 1) SublimeText is installed
# 2) Dropbox settings have been synced
# 3) Sublime settings exist
# 4) That these links have not been created before
CHECKS_PASS=false
if test $(open -b com.sublimetext.2); then
  echo "SublimeText2 not installed. Exiting..."
elif [ ! -d "${DB_SETTINGS}" ]; then
  echo "${DB_SETTINGS} does not exist. Exiting..."
elif [ ! -d "${SUBL_SETTINGS}" ]; then
  echo "${SUBL_SETTINGS} does not exist. Exiting..."
elif [ -L "${SUBL_SETTINGS}" ]; then
  echo "${SUBL_SETTINGS} is already a symlink. Exiting..."
else
  CHECKS_PASS=true
fi

if [ $CHECKS_PASS == true ]; then
  echo "Configuring Dropbox sync for SublimeText2. Backing up current settings to ${SUBL_SETTINGS}.orig"
  mv "${SUBL_SETTINGS}" "${SUBL_SETTINGS}.orig"
  ln -s "${DB_SETTINGS}" "${SUBL_SETTINGS}"
  exit 0
else
  exit 1
fi<commit_msg>don't exit on error<commit_after>#!/bin/sh
# Sync SublimeText2 settings per https://sublime.wbond.net/docs/syncing

echo "Configuring Dropbox sync for SublimeText2..."
SUBL_SETTINGS=~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
DB_SETTINGS=~/Dropbox/Documents/Application\ Files/SublimeText/User 
# Check if:
# 1) SublimeText is installed
# 2) Dropbox settings have been synced
# 3) Sublime settings exist
# 4) That these links have not been created before
CHECKS_PASS=false
if test $(open -b com.sublimetext.2); then
  echo "SublimeText2 not installed. Exiting..."
elif [ ! -d "${DB_SETTINGS}" ]; then
  echo "${DB_SETTINGS} does not exist. Exiting..."
elif [ ! -d "${SUBL_SETTINGS}" ]; then
  echo "${SUBL_SETTINGS} does not exist. Exiting..."
elif [ -L "${SUBL_SETTINGS}" ]; then
  echo "${SUBL_SETTINGS} is already a symlink. Exiting..."
else
  CHECKS_PASS=true
fi

if [ $CHECKS_PASS == true ]; then
  echo "Configuring Dropbox sync for SublimeText2. Backing up current settings to ${SUBL_SETTINGS}.orig"
  mv "${SUBL_SETTINGS}" "${SUBL_SETTINGS}.orig"
  ln -s "${DB_SETTINGS}" "${SUBL_SETTINGS}"
else
fi
{'fraction_non_alphanumeric': 0.13672566371681416, 'fraction_numerical': 0.009734513274336283, 'mean_word_length': 4.487864077669903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1538754', 'n_tokens_mistral': 802, 'n_tokens_neox': 804, 'n_words': 234}