<commit_before>#!/bin/bash
count=`ps x | grep -v grep | grep -c 'rake fact_graph:recalculate'`

if [ "$count" -lt "1" ]; then
  . /etc/profile
  . /home/deploy/.bash_profile

  cd /applications/core/current

  export PIDFILE=/home/deploy/recalculate.pid
  export NEWRELIC_DISPATCHER="FactGraph recalculate"

  nohup nice -n 10 bundle exec rake environment fact_graph:recalculate &>> /applications/core/current/log/fact_graph.log &
fi
exit 0
<commit_msg>updated config based on comments from new relic support<commit_after>#!/bin/bash
count=`ps x | grep -v grep | grep -c 'rake fact_graph:recalculate'`

if [ "$count" -lt "1" ]; then
  . /etc/profile
  . /home/deploy/.bash_profile

  cd /applications/core/current

  export NRCONFIG=/applications/core/current/config/newrelic.yml
  export NEW_RELIC_LOG=/applications/core/shared/log/newrelic_agent.log

  export PIDFILE=/home/deploy/recalculate.pid
  export NEWRELIC_DISPATCHER="FactGraph recalculate"

  nohup nice -n 10 bundle exec rake environment fact_graph:recalculate &>> /applications/core/current/log/fact_graph.log &
fi
exit 0

{'fraction_non_alphanumeric': 0.11786372007366483, 'fraction_numerical': 0.007366482504604052, 'mean_word_length': 4.276699029126213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6942773', 'n_tokens_mistral': 411, 'n_tokens_neox': 370, 'n_words': 86}