<commit_before>#!/bin/bash

. /etc/profile

RAILS_DIR=$1
RAILS_ENV=$2

if [ -z $RAILS_DIR ]; then
   RAILS_DIR=/srv/rails/kp-dev
fi

if [ -z $RAILS_ENV ]; then
   RAILS_ENV=development
fi   

RAKE=/usr/local/bin/rake
if [ ! -x $RAKE ]; then
   echo "Can not find rake"
   exit -1
fi   

if [ ! -d $RAILS_DIR/lib/tasks ]; then
   echo "No rails-dir $RAILS_DIR"
   exit -1
fi   

echo -n "Begin rake tasks KP, RAILS_ENV=$RAILS_ENV at "
date
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:notify_occasion_reminder 
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:notify_ticket_release
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:remind_answer_form 
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:send_answer_forms 
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:update_tickets 

echo -n "all tasks done at "
date<commit_msg>Fix för bugg i ActionMailer, #1227.<commit_after>#!/bin/bash

. /etc/profile

RAILS_DIR=$1
RAILS_ENV=$2

if [ -z $RAILS_DIR ]; then
   RAILS_DIR=/srv/rails/kp-dev
fi

if [ -z $RAILS_ENV ]; then
   RAILS_ENV=development
fi   

RAKE=/usr/local/bin/rake
if [ ! -x $RAKE ]; then
   echo "Can not find rake"
   exit -1
fi   

if [ ! -d $RAILS_DIR/lib/tasks ]; then
   echo "No rails-dir $RAILS_DIR"
   exit -1
fi   

cd $RAILS_DIR

echo -n "Begin rake tasks KP, RAILS_ENV=$RAILS_ENV at "
date
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:notify_occasion_reminder 
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:notify_ticket_release
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:remind_answer_form 
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:send_answer_forms 
$RAKE -f $RAILS_DIR/Rakefile RAILS_ENV=$RAILS_ENV kp:update_tickets 

echo -n "all tasks done at "
date
{'fraction_non_alphanumeric': 0.11818703384968446, 'fraction_numerical': 0.0068846815834767644, 'mean_word_length': 4.099415204678363, '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': '4513052', 'n_tokens_mistral': 841, 'n_tokens_neox': 818, 'n_words': 168}