<commit_before>#!/bin/bash
#Usage ./run_ijcai18_slurm.sh 

nsims=100
alpha=0.1
reps=1
verbosity=-1
min_time=10
max_time=20480
other_flags=""

problems=( "--track=../data/tracks/known/square-4-error.track --perror=0.25 --pslip=0.50" \
           "--track=../data/tracks/known/ring-5-error.track --perror=0.25 --pslip=0.50" \
           "--sailing-size=40 --sailing-goal=39" \
           "--sailing-size=40 --sailing-goal=20")

problems_str=(square4 ring5 sailing-corner sailing-middle)
           
distfuns=(depth traj)          
labelfuns=(linear exp logistic)
for ((ip = 0; ip < ${#problems[@]}; ip++)); do
  problem=${problems[$ip]}
  problem_str=${problems_str[$ip]}
  
  # HDP(0)
    sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"hdp_0".txt \
    run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "hdp --i=0"
    
  # HDP(0,0)
    sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"hdp_00".txt \
    run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "hdp --j=0 --i=0"
    
  # FLARES(1)
  sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"flares_1".txt \
    run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "soft-flares --labelf=step --dist=depth --horizon=1 --alpha=0"
    
  # FLARES(4)
  sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"flares_4".txt \
    run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "soft-flares --labelf=step --dist=depth --horizon=4 --alpha=0"
    
  # Soft-FLARES(0)
  sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"soft-flares_0".txt \
    ./run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "soft-flares --labelf=linear --dist=depth --horizon=0 --alpha=$alpha"
  
  # Soft-FLARES(1)
  # In this case the label function is irrelevant because
  # all of them result in the same set of labeling probabilities.
  # However, the distance function can potentially matter.   
  for distf in ${distfuns[@]}; do
    sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"soft-flares_1_$distf".txt \
      run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
      "soft-flares --labelf=linear --dist=$distf --horizon=1 --alpha=$alpha"
  done
  
  # Soft-FLARES([2,4])
  labelfuns=(linear exp logistic)
  for labelf in ${labelfuns[@]}; do
    for distf in ${distfuns[@]}; do
      for horizon in `seq 2 4`; do
        sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"soft-flares_${horizon}_${distf}_${algorithm}".txt \
          run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
          "soft-flares --labelf=$labelf --dist=$distf --horizon=$horizon --alpha=$alpha"
      done
    done
  done
done
<commit_msg>fixed another bug in the IJCAI'18 experiments script<commit_after>#!/bin/bash
#Usage ./run_ijcai18_slurm.sh 

nsims=100
alpha=0.1
reps=1
verbosity=-1
min_time=10
max_time=20480
other_flags=""

problems=( "--track=../data/tracks/known/square-4-error.track --perror=0.25 --pslip=0.50" \
           "--track=../data/tracks/known/ring-5-error.track --perror=0.25 --pslip=0.50" \
           "--sailing-size=40 --sailing-goal=39" \
           "--sailing-size=40 --sailing-goal=20")

problems_str=(square4 ring5 sailing-corner sailing-middle)
           
distfuns=(depth traj)          
labelfuns=(linear exp logistic)
for ((ip = 0; ip < ${#problems[@]}; ip++)); do
  problem=${problems[$ip]}
  problem_str=${problems_str[$ip]}
  
  # HDP(0)
  sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"hdp_0".txt \
    run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "hdp --i=0"
    
  # HDP(0,0)
  sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"hdp_00".txt \
    run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "hdp --j=0 --i=0"
    
  # FLARES(1)
  sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"flares_1".txt \
    run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "soft-flares --labelf=step --dist=depth --horizon=1 --alpha=0"
    
  # FLARES(4)
  sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"flares_4".txt \
    run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "soft-flares --labelf=step --dist=depth --horizon=4 --alpha=0"
    
  # Soft-FLARES(0)
  sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"soft-flares_0".txt \
    ./run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
    "soft-flares --labelf=linear --dist=depth --horizon=0 --alpha=$alpha"
  
  # Soft-FLARES(1)
  # In this case the label function is irrelevant because
  # all of them result in the same set of labeling probabilities.
  # However, the distance function can potentially matter.   
  for distf in ${distfuns[@]}; do
    sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"soft-flares_1_$distf".txt \
      run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
      "soft-flares --labelf=linear --dist=$distf --horizon=1 --alpha=$alpha"
  done
  
  # Soft-FLARES([2,4])
  for labelf in ${labelfuns[@]}; do
    for distf in ${distfuns[@]}; do
      for horizon in `seq 2 4`; do
        sbatch --output=/home/lpineda/results_ijcai18/${problem_str}_"soft-flares_${horizon}_${distf}_${labelf}".txt \
          run_testsolver.sh "$problem" $nsims $reps $verbosity $min_time $max_time "$other_flags" \
          "soft-flares --labelf=$labelf --dist=$distf --horizon=$horizon --alpha=$alpha"
      done
    done
  done
done

{'fraction_non_alphanumeric': 0.16900444748546015, 'fraction_numerical': 0.028395484091686622, 'mean_word_length': 3.4061793519216277, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1334881', 'n_tokens_mistral': 2344, 'n_tokens_neox': 2222, 'n_words': 410}