<commit_before>#!/bin/bash
PROGRAM=`dirname $0`/hadoop-importer.sh
LOG_FACILITY="local1"

PATH=/bin:/usr/bin:/opt/hadoop/bin

#exec 1> >(logger -i -p "${LOG_FACILITY}.info" -t "${PROGRAM}")
#exec 2> >(logger -i -p "${LOG_FACILITY}.error" -t "${PROGRAM}")

echo Checking for existing job

hadoop job -list 2>/dev/null|grep `whoami`  

if [[ $? -ne 0 ]]; then
  echo Starting $PROGRAM
  $PROGRAM<commit_msg>Reverted accidential commenting out of cron output<commit_after>#!/bin/bash
PROGRAM=`dirname $0`/hadoop-importer.sh
LOG_FACILITY="local1"

PATH=/bin:/usr/bin:/opt/hadoop/bin

exec 1> >(logger -i -p "${LOG_FACILITY}.info" -t "${PROGRAM}")
exec 2> >(logger -i -p "${LOG_FACILITY}.error" -t "${PROGRAM}")

echo Checking for existing job

hadoop job -list 2>/dev/null|grep `whoami`  

if [[ $? -ne 0 ]]; then
  echo Starting $PROGRAM
  $PROGRAM
{'fraction_non_alphanumeric': 0.1893491124260355, 'fraction_numerical': 0.014201183431952662, 'mean_word_length': 4.388535031847134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2744202', 'n_tokens_mistral': 358, 'n_tokens_neox': 329, 'n_words': 83}