<commit_before>#!/bin/bash -l

mkdir -p "$HOME/tmp"
PIDFILE="$HOME/tmp/dirwatch2.pid"

if [ -e "${PIDFILE}" ] && (ps -u $(whoami) -opid= |
                           grep -P "^\s*$(cat ${PIDFILE})$" &> /dev/null); then
  echo "Already running."
  exit 99
fi

LOGFILE="/global/project/projectdirs/metatlas/dirwatch2.log"
MET_PATH=/global/project/projectdirs/metatlas
"$MET_PATH/anaconda/bin/python" -m metatlas.directory_watcher "$MET_PATH/raw_data/lpsilva/20150504_LPSilva_Actino_HILIC_POS_51isolates" &> ${LOGFILE} &

echo $! > "${PIDFILE}"
chmod 644 "${PIDFILE}"<commit_msg>removed wrong path to match version on projectdir<commit_after>#!/bin/bash -l

mkdir -p "$HOME/tmp"
PIDFILE="$HOME/tmp/dirwatch2.pid"

if [ -e "${PIDFILE}" ] && (ps -u $(whoami) -opid= |
                           grep -P "^\s*$(cat ${PIDFILE})$" &> /dev/null); then
  echo "Already running."
  exit 99
fi

LOGFILE="/global/project/projectdirs/metatlas/dirwatch2.log"
MET_PATH=/global/project/projectdirs/metatlas
"$MET_PATH/anaconda/bin/python" -m metatlas.directory_watcher "$MET_PATH/raw_data/" &> ${LOGFILE} &

echo $! > "${PIDFILE}"
chmod 644 "${PIDFILE}"
{'fraction_non_alphanumeric': 0.1875, 'fraction_numerical': 0.02112676056338028, 'mean_word_length': 3.8382978723404255, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5660433', 'n_tokens_mistral': 481, 'n_tokens_neox': 444, 'n_words': 80}