<commit_before>#!/bin/sh
# $Id$
# This software is subject to the terms of the Common Public License
# Agreement, available at the following URL:
# http://www.opensource.org/licenses/cpl.html.
# Copyright (C) 2005-2005 <NAME>
# All Rights Reserved.
# You must accept the terms of that agreement to use this software.
#
# This is a script to deploy Mondrian's website.
# Only the release manager (jhyde) should run this script.

set -e
set -v

cd $(dirname $0)/..
ant doczip

scp dist/doc.tar.gz <EMAIL>:

GROUP_DIR=/home/groups/m/mo/mondrian

ssh -T <EMAIL> <<EOF
set -e
set -v
rm -f $GROUP_DIR/doc.tar.gz
mv doc.tar.gz $GROUP_DIR
cd $GROUP_DIR
tar xzf doc.tar.gz
rm -rf old
mv htdocs old
mv doc htdocs
rm -rf old
EOF

# End deployDoc.sh<commit_msg>MONDRIAN: Update script.<commit_after>#!/bin/sh
# $Id$
# This software is subject to the terms of the Common Public License
# Agreement, available at the following URL:
# http://www.opensource.org/licenses/cpl.html.
# Copyright (C) 2005-2005 <NAME>
# All Rights Reserved.
# You must accept the terms of that agreement to use this software.
#
# This is a script to deploy Mondrian's website.
# Only the release manager (jhyde) should run this script.

set -e
set -v

generate=true
if [ "$1" == --nogen ]; then
  shift
  generate=
fi

# Prefix is usually "release" or "head"
prefix="$1"
# Directory at sf.net
docdir=
case "$prefix" in
2.1.1) export docdir=htdocs;;
head) export docdir=head;;
*) echo "Bad prefix '$prefix'"; exit 1;;
esac

cd $(dirname $0)/..
if [ "$generate" ]; then
  ant doczip
else
  echo Skipping generation...
fi

scp dist/doc.tar.gz <EMAIL>:

GROUP_DIR=/home/groups/m/mo/mondrian

ssh -T <EMAIL> <<EOF
set -e
set -v
rm -f $GROUP_DIR/doc.tar.gz
mv doc.tar.gz $GROUP_DIR
cd $GROUP_DIR
tar xzf doc.tar.gz
rm -rf old
if [ -d $docdir ]; then mv $docdir old; fi
mv doc $docdir
rm -rf old
rm -f doc.tar.gz
./makeLinks
EOF

# End deployDoc.sh
{'fraction_non_alphanumeric': 0.12657563025210083, 'fraction_numerical': 0.012605042016806723, 'mean_word_length': 3.601449275362319, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4577739', 'n_tokens_mistral': 717, 'n_tokens_neox': 690, 'n_words': 261}