<commit_before>#!/bin/sh

cd ..
sbt compile
sbt -Dconfig.file=src/test/resources/test.conf "runMain akashic.storage.app.RunServer" &
processId=$!
echo server process id: $processId
cd -

CLONEDIR=s3-tests-clone
CONFNAME=s3-tests.conf
rm -rf $CLONEDIR
git clone https://github.com/ceph/s3-tests $CLONEDIR
cp $CONFNAME $CLONEDIR

cd $CLONEDIR
./bootstrap
# FIXME should wait for the server to get ready
echo wait 30 seconds until server is up
sleep 30 # tmp
netstat -tanp
cat ~/.boto
mv boto.config ~/.boto
S3TEST_CONF=$CONFNAME ./virtualenv/bin/nosetests
cd -

echo successfully run and shut down the server
kill $processId<commit_msg>fix<commit_after>#!/bin/sh

cat ~/.boto
mv boto.config ~/.boto

cd ..
sbt compile
sbt -Dconfig.file=src/test/resources/test.conf "runMain akashic.storage.app.RunServer" &
processId=$!
echo server process id: $processId
cd -

CLONEDIR=s3-tests-clone
CONFNAME=s3-tests.conf
rm -rf $CLONEDIR
git clone https://github.com/ceph/s3-tests $CLONEDIR
cp $CONFNAME $CLONEDIR

cd $CLONEDIR
./bootstrap
# FIXME should wait for the server to get ready
echo wait 30 seconds until server is up
sleep 30 # tmp
netstat -tanp
S3TEST_CONF=$CONFNAME ./virtualenv/bin/nosetests
cd -

echo successfully run and shut down the server
kill $processId
{'fraction_non_alphanumeric': 0.10643367752184273, 'fraction_numerical': 0.012708498808578236, 'mean_word_length': 4.338983050847458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3167397', 'n_tokens_mistral': 468, 'n_tokens_neox': 459, 'n_words': 139}