<commit_before>#!/bin/bash

# Batch SdA embedding test job submission script for 3,5 layer models 

# keep track of the directory where the scripts are located.
currdir=`pwd`

# Submit 3 layer jobs

cd "$SCRATCH/gpu_tests/SdA_results/3_layers/reduced_data"     
for dim in {10..30..10}
do
    cd "$dim"
    for layertype in {"gb","relu"}
    do
        cd "$layertype"
        three_arr=(`ls *.h5`)
        basedir=`pwd`
        for model in three_arr
        do
            # send reduced base dir, reduced file, output dir with job
            pushd "$currdir"
            echo "qsub submit_sda_et.sh -v BASEDIR=$basedir,OUTPUTDIR=$basedir,REDUCEDFILE=$model" 
            popd 
            sleep 5    
        done            
        cd ..
    done
    cd ..
done

# Submit 5 layer jobs
cd "$SCRATCH/gpu_tests/SdA_results/5_layers/reduced_data" 

for dim in {10..30..10}
do
    cd "$dim"
    for layertype in {"gb","relu"}
    do
        cd "$layertype"
        five_arr=(`ls *.h5`)
        basedir=`pwd`
        for model in five_arr
        do
            # send reduced base dir, reduced file, output dir with job
            pushd "$currdir"
            echo "qsub submit_sda_et.sh -v BASEDIR=$basedir,OUTPUTDIR=$basedir,REDUCEDFILE=$model" 
            popd 
            sleep 5  
        done            
        cd ..
    done
    cd ..
done


<commit_msg>files in *_arr lists not being passed to qsub, probably since I forgot a $.  Perl all over again.<commit_after>#!/bin/bash

# Batch SdA embedding test job submission script for 3,5 layer models 

# keep track of the directory where the scripts are located.
currdir=`pwd`

# Submit 3 layer jobs

cd "$SCRATCH/gpu_tests/SdA_results/3_layers/reduced_data"     
for dim in {10..30..10}
do
    cd "$dim"
    for layertype in {"gb","relu"}
    do
        cd "$layertype"
        three_arr=(`ls *.h5`)
        basedir=`pwd`
        for model in $three_arr
        do
            # send reduced base dir, reduced file, output dir with job
            pushd "$currdir"
            echo "qsub submit_sda_et.sh -v BASEDIR=$basedir,OUTPUTDIR=$basedir,REDUCEDFILE=$model" 
            popd 
            sleep 5    
        done            
        cd ..
    done
    cd ..
done

# Submit 5 layer jobs
cd "$SCRATCH/gpu_tests/SdA_results/5_layers/reduced_data" 

for dim in {10..30..10}
do
    cd "$dim"
    for layertype in {"gb","relu"}
    do
        cd "$layertype"
        five_arr=(`ls *.h5`)
        basedir=`pwd`
        for model in $five_arr
        do
            # send reduced base dir, reduced file, output dir with job
            pushd "$currdir"
            echo "qsub submit_sda_et.sh -v BASEDIR=$basedir,OUTPUTDIR=$basedir,REDUCEDFILE=$model" 
            popd 
            sleep 5  
        done            
        cd ..
    done
    cd ..
done



{'fraction_non_alphanumeric': 0.09609929078014184, 'fraction_numerical': 0.015602836879432624, 'mean_word_length': 1.7986111111111112, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5145561', 'n_tokens_mistral': 969, 'n_tokens_neox': 906, 'n_words': 275}