<commit_before>#!/bin/bash

currentDir=`pwd`

installed=`which atom`
if [ -z "${installed}" ]
then
  sudo add-apt-repository ppa:webupd8team/atom
  sudo apt-get -y update
  sudo apt-get -y install atom
fi

plugins=(`ls plugins`)
for plugin in "${plugins[@]}"
do
  ./plugins/${plugin}
done

ln -s "${currentDir}/config.cson" $HOME/.atom/config.cson

sudo apt-get -y install inotify-tools

inotifywait -q -m -e close_write "${currentDir}/config.cson" |
while read -r filename event; do
  git add "${currentDir}/config.cson"<commit_msg>Updates to watch config file and commit it to git when it changes<commit_after>#!/bin/bash

currentDir=`pwd`

installed=`which atom`
if [ -z "${installed}" ]
then
  sudo add-apt-repository ppa:webupd8team/atom
  sudo apt-get -y update
  sudo apt-get -y install atom
fi

plugins=(`ls plugins`)
for plugin in "${plugins[@]}"
do
  ./plugins/${plugin}
done

ln -sf "${currentDir}/config.cson" $HOME/.atom/config.cson

sudo apt-get -y install inotify-tools

inotifywait -q -m -e close_write "${currentDir}/config.cson" |
while read -r filename event; do
  git add "${currentDir}/config.cson"
{'fraction_non_alphanumeric': 0.15013404825737264, 'fraction_numerical': 0.0017873100983020554, 'mean_word_length': 4.114155251141552, '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': '7263303', 'n_tokens_mistral': 414, 'n_tokens_neox': 395, 'n_words': 119}