Commit b0c2f490 authored by Erwan Bousse's avatar Erwan Bousse
Browse files

Correcting wrong end lines of evaluation scripts and correcting the R script...

Correcting wrong end lines of evaluation scripts and correcting the R script that couldn't parse correctly recently generated csv files
parent 267ac0fd
#!/bin/bash #!/bin/bash
RARGS="" RARGS=""
for i in "$@" for i in "$@"
do do
RARGS="$RARGS $i" RARGS="$RARGS $i"
done done
R --no-save --args $RARGS < ./process-data.R R --no-save --args $RARGS < ./process-data.R
ls *.pdf | xargs -I '{}' pdfcrop '{}' '{}' ls *.pdf | xargs -I '{}' pdfcrop '{}' '{}'
mv *.pdf benchmarktool-workingdir mv *.pdf benchmarktool-workingdir
#!/bin/bash #!/bin/bash
DIR=`dirname $0` DIR=`dirname $0`
############### Must point to the folder of the evaluation tool ############### Must point to the folder of the evaluation tool
BENCHTOOLDIR="$DIR/.." BENCHTOOLDIR="$DIR/.."
############### ###############
BENCHTOOL="$BENCHTOOLDIR/cloning-benchmark" BENCHTOOL="$BENCHTOOLDIR/cloning-benchmark"
TOOL="$BENCHTOOL run nopause" TOOL="$BENCHTOOL run nopause"
OUTPUTFOLDER=./benchmarktool-workingdir OUTPUTFOLDER=./benchmarktool-workingdir
# Parsing arguments (osgi bundles) in order to generate an argument for the evaluation tool # Parsing arguments (osgi bundles) in order to generate an argument for the evaluation tool
BUNDLES="" BUNDLES=""
for arg in "$@" for arg in "$@"
do do
BUNDLES="$BUNDLES$arg," BUNDLES="$BUNDLES$arg,"
done done
# To reset registered OSGi bundles # To reset registered OSGi bundles
rm -rf "$BENCHTOOLDIR/configuration/org.eclipse.osgi" rm -rf "$BENCHTOOLDIR/configuration/org.eclipse.osgi"
$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 1 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal1.csv --dumpsFolder=/tmp2/cloningDumpsAll #$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 1 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal1.csv --dumpsFolder=/tmp2/cloningDumpsAll
#$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 10 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal10.csv --dumpsFolder=/tmp2/cloningDumpsAll #$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 10 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal10.csv --dumpsFolder=/tmp2/cloningDumpsAll
#$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 100 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal100.csv --dumpsFolder=/tmp2/cloningDumpsAll #$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 100 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal100.csv --dumpsFolder=/tmp2/cloningDumpsAll
$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 1000 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal1000.csv --dumpsFolder=/tmp2/cloningDumpsAll $TOOL --benchmarkMetamodels=$BUNDLES --nbClones 1000 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal1000.csv --dumpsFolder=/tmp2/cloningDumpsAll
#$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 10000 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal10000.csv --dumpsFolder=/tmp2/cloningDumpsAll #$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 10000 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal10000.csv --dumpsFolder=/tmp2/cloningDumpsAll
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment