<commit_before>#!/usr/bin/env bash

BASE=`pwd`
PYTHONVER=3.2.2
UTILFOLDER=`pwd`/`dirname $0`

echo ">>> Reconfiguring PATH to /opt/jasy/bin"
export PATH="/opt/jasy/bin:$PATH"
export PYTHONHOME=/opt/jasy
export JASYHOME=/opt/jasy

echo ">>> Deleting old Jasy install..."
rm -rf $JASYHOME

cd $TMPDIR

echo ">>> Downloading Python..."
rm -f Python-$PYTHONVER.tar.bz2
curl --silent -o Python-$PYTHONVER.tar.bz2 http://python.org/ftp/python/$PYTHONVER/Python-$PYTHONVER.tar.bz2

echo ">>> Unpacking Python..."
rm -rf Python-$PYTHONVER
tar xfj Python-$PYTHONVER.tar.bz2

echo ">>> Configuring Python..."
cd Python-$PYTHONVER
patch -p0 < $UTILFOLDER/python_dbm.patch || exit 1
if [ `uname` == "Darwin" ]; then
  export MACOSX_DEPLOYMENT_TARGET=10.5
  ./configure --prefix=$JASYHOME --with-universal-archs=intel > /dev/null || exit 1
else
  ./configure --prefix=$JASYHOME > /dev/null || exit 1
fi

echo ">>> Building Python..."
make > /dev/null || exit 1

echo ">>> Installing Python..."
make install > /dev/null || exit 1
cd $JASYHOME/bin || exit 1
ln -s python3 python || exit 1
cd ~- || exit 1

echo ">>> Downloading Distribute..."<commit_msg>Minor fix<commit_after>#!/usr/bin/env bash

BASE=`pwd`
PYTHONVER=3.2.2
UTILFOLDER=`pwd`/`dirname $0`

echo ">>> Reconfiguring PATH to /opt/jasy/bin"
export PATH="/opt/jasy/bin:$PATH"
export PYTHONHOME=/opt/jasy
export JASYHOME=/opt/jasy

echo ">>> Deleting old Jasy install..."
rm -rf $JASYHOME

cd $TMPDIR || exit 1

echo ">>> Downloading Python..."
rm -f Python-$PYTHONVER.tar.bz2
curl --silent -o Python-$PYTHONVER.tar.bz2 http://python.org/ftp/python/$PYTHONVER/Python-$PYTHONVER.tar.bz2 || exit 1

echo ">>> Unpacking Python..."
rm -rf Python-$PYTHONVER
tar xfj Python-$PYTHONVER.tar.bz2 || exit 1

echo ">>> Configuring Python..."
cd Python-$PYTHONVER || exit 1
patch -p0 < $UTILFOLDER/python_dbm.patch || exit 1
if [ `uname` == "Darwin" ]; then
  export MACOSX_DEPLOYMENT_TARGET=10.5
  ./configure --prefix=$JASYHOME --with-universal-archs=intel > /dev/null || exit 1
else
  ./configure --prefix=$JASYHOME > /dev/null || exit 1
fi

echo ">>> Building Python..."
make > /dev/null || exit 1

echo ">>> Installing Python..."
make install > /dev/null || exit 1
cd $JASYHOME/bin || exit 1
ln -s python3 python || exit 1
cd ~- || exit 1

echo ">>> Downloading Distribute..."
{'fraction_non_alphanumeric': 0.1780466724286949, 'fraction_numerical': 0.019878997407087293, 'mean_word_length': 3.7244897959183674, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1410640', 'n_tokens_mistral': 943, 'n_tokens_neox': 884, 'n_words': 222}