<commit_before>#!/bin/sh
# 
# File:   launch.sh
# Author: etudiant
#
# Created on 6 mai 2014, 10:35:01
#
#./dist/Debug/GNU-Linux-x86/traveling_salesman_problem -file data/a280.tsp -maxDepth 2000 -sameStartingPoint -doubleCheckCost -r swap -r insert -r reverse -s firstFit -s bestFit -s worstFit

maxDepth=2000
relations="-r swap -r insert -r reverse"
strategies="-s firstFit -s bestFit -s worstFit"
intervals="-saveIntervalData -intervalStep 2 -intervalType joined_at_origin"
miscArgs="-sameStartingPoint -doubleCheckCost -noMaxDepth"

execPath="./dist/Debug/GNU-Linux-x86/traveling_salesman_problem"
args="-maxDepth $maxDepth $miscArgs $intervals $relations $strategies -o auto"

loopCount=1

make

if [ "$#" -ge 1 ]
then
    echo "Setting loop count to $1"
    loopCount=$1
fi

for i in `seq 1 $loopCount`
do
    echo "Loop #$i/$loopCount"
    $execPath -file data/a280.tsp $args
    $execPath -file data/att48.tsp $args
    $execPath -file data/berlin52.tsp $args
    $execPath -file data/ali535.tsp $args
    $execPath -file data/ch130.tsp $args
    $execPath -file data/ch150.tsp $args
    $execPath -file data/bier127.tsp $args
    $execPath -file data/burma14.tsp $args
done

#big
#$execPath -file data/brd14051.tsp -maxDepth 256000 $miscArgs $relations $strategies -o auto

echo "Looped $loopCount times"
echo "Merging all .csv into allResults.csv"
cat data/results/*.csv > data/allResults.csv<commit_msg>launch.sh: run through something bigger than burma14 last<commit_after>#!/bin/sh
# 
# File:   launch.sh
# Author: etudiant
#
# Created on 6 mai 2014, 10:35:01
#
#./dist/Debug/GNU-Linux-x86/traveling_salesman_problem -file data/a280.tsp -maxDepth 2000 -sameStartingPoint -doubleCheckCost -r swap -r insert -r reverse -s firstFit -s bestFit -s worstFit

maxDepth=2000
relations="-r swap -r insert -r reverse"
strategies="-s firstFit -s bestFit -s worstFit"
intervals="-saveIntervalData -intervalStep 2 -intervalType disjoint"
miscArgs="-sameStartingPoint -doubleCheckCost -noMaxDepth"

execPath="./dist/Debug/GNU-Linux-x86/traveling_salesman_problem"
args="-maxDepth $maxDepth $miscArgs $intervals $relations $strategies -o auto"

loopCount=1

make

if [ "$#" -ge 1 ]
then
    echo "Setting loop count to $1"
    loopCount=$1
fi

for i in `seq 1 $loopCount`
do
    echo "Loop #$i/$loopCount"
    $execPath -file data/a280.tsp $args
    $execPath -file data/att48.tsp $args
    $execPath -file data/berlin52.tsp $args
    $execPath -file data/ali535.tsp $args
    $execPath -file data/ch130.tsp $args
    $execPath -file data/ch150.tsp $args
    $execPath -file data/burma14.tsp $args
    $execPath -file data/bier127.tsp $args
done

#big
#$execPath -file data/brd14051.tsp -maxDepth 256000 $miscArgs $relations $strategies -o auto

echo "Looped $loopCount times"
echo "Merging all .csv into allResults.csv"
cat data/results/*.csv > data/allResults.csv
{'fraction_non_alphanumeric': 0.12019566736547868, 'fraction_numerical': 0.045422781271837874, 'mean_word_length': 3.927710843373494, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '1935011', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1026, 'n_words': 288}