<commit_before>#!/bin/sh

# Add a todo to an iCal file stored on a webdav server.

exec >>check.log 2>&1

source __lib.sh

# Start webdav server
perl __webdav.pl &
sleep 2
WEBDAV_PID=`ps -C "perl __webdav.pl" -o pid=`

if [ -z "$WEBDAV_PID" ]; then
  echo "PASS"
  exit 0
fi

# Start karm
TESTFILE="http://localhost:4242/testkarm.ics"
TESTFILE_LOCAL="/tmp/testkarm.ics"
TESTTODO="testtodo"
SKIP_TESTFILE_DELETE=true
# Need this or karm complains there is no file
rm -f $TESTFILE_LOCAL
touch $TESTFILE_LOCAL<commit_msg>much more reliable test<commit_after>#!/bin/sh

# Add a todo to an iCal file stored on a webdav server.

exec >>check.log 2>&1

source __lib.sh

# check for required perl stuff
perl -e "use Net::DAV::Server;" > /dev/null 2>&1
if ! [ $? = 0 ]; then
	echo "PASS"
	exit 0
fi

# Start webdav server
perl __webdav.pl &
sleep 2
WEBDAV_PID=`ps -C "perl __webdav.pl" -o pid=`

# Start karm
TESTFILE="http://localhost:4242/testkarm.ics"
TESTFILE_LOCAL="/tmp/testkarm.ics"
TESTTODO="testtodo"
SKIP_TESTFILE_DELETE=true
# Need this or karm complains there is no file
rm -f $TESTFILE_LOCAL
touch $TESTFILE_LOCAL
{'fraction_non_alphanumeric': 0.11996418979409132, 'fraction_numerical': 0.017009847806624886, 'mean_word_length': 4.400966183574879, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4781055', 'n_tokens_mistral': 467, 'n_tokens_neox': 429, 'n_words': 132}