<commit_before>#!/bin/sh

# cron doesn't seem to like doing this iself...
. /etc/profile

# Path to WWW Directory
WWWDIR="/home/dmdirc/www"
# Path to trunk
MYDIR="/home/dmdirc/google"
# Path to ant binary
ANT="/usr/bin/ant"
# Path to svn binary
SVN="/usr/bin/svn"

/bin/sh $MYDIR/oblong.sh "Nightly Build" "Build Started"
rm -Rf $MYDIR/dist
rm -Rf $MYDIR/build

cd $MYDIR/
$SVN update
$ANT -buildfile $MYDIR/build.xml -k
if [ -f $MYDIR/dist/DMDirc.jar ]; then
	FILENAME=DMDirc`date +_%Y%m%d`.jar
	cp $MYDIR/dist/DMDirc.jar /home/dmdirc/www/nightly/$FILENAME
	cp $MYDIR/dist/lib/swing-layout-1.0.jar /home/dmdirc/www/nightly/lib
	if [ -e $WWWDIR/nightly/DMDirc_latest.jar ]; then
		rm $WWWDIR/nightly/DMDirc_latest.jar
	fi
	ln -s $WWWDIR/nightly/$FILENAME $WWWDIR/nightly/DMDirc_latest.jar
	/bin/sh $MYDIR/oblong.sh "Nightly Build" "Build Successful";
	/bin/sh $MYDIR/DoReports.sh
else
	/bin/sh $MYDIR/oblong.sh "Nightly Build" "Build Failed"
fi

<commit_msg>Nightly Build script now adds svn revision to the build<commit_after>#!/bin/sh

# cron doesn't seem to like doing this iself...
. /etc/profile

# Path to WWW Directory
WWWDIR="/home/dmdirc/www"
# Path to trunk
MYDIR="/home/dmdirc/google"
# Path to ant binary
ANT="/usr/bin/ant"
# Path to svn binary
SVN="/usr/bin/svn"

/bin/sh $MYDIR/oblong.sh "Nightly Build" "Build Started"
rm -Rf $MYDIR/dist
rm -Rf $MYDIR/build

cd $MYDIR/
$SVN update
SVNREV=`$SVN info | grep Revision`
SVNREV=${SVNREV##*: }
awk '{gsub(/public static final String VERSION = "SVN";/,"public static final String VERSION = \"Nightly - SVN Rev: '$SVNREV'\";");print}' src/uk/org/ownage/dmdirc/Main.java > src/uk/org/ownage/dmdirc/Main.java
$ANT -buildfile $MYDIR/build.xml -k
if [ -f $MYDIR/dist/DMDirc.jar ]; then
	FILENAME=DMDirc`date +_%Y%m%d`.jar
	cp $MYDIR/dist/DMDirc.jar /home/dmdirc/www/nightly/$FILENAME
	if [ -e $WWWDIR/nightly/DMDirc_latest.jar ]; then
		rm $WWWDIR/nightly/DMDirc_latest.jar
	fi
	ln -s $WWWDIR/nightly/$FILENAME $WWWDIR/nightly/DMDirc_latest.jar
	/bin/sh $MYDIR/oblong.sh "Nightly Build" "Build Successful";
	/bin/sh $MYDIR/DoReports.sh
else
	/bin/sh $MYDIR/oblong.sh "Nightly Build" "Build Failed"
fi
$SVN revert src/uk/org/ownage/dmdirc/Main.java


{'fraction_non_alphanumeric': 0.1584203359055833, 'fraction_numerical': 0.0009078529278256923, 'mean_word_length': 3.986425339366516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, 'xml': 2}, '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': '4061147', 'n_tokens_mistral': 988, 'n_tokens_neox': 937, 'n_words': 207}