<commit_before>#!/usr/bin/env bash
#
# @ job_name            = kslrun_job
# @ job_type            = bluegene
# @ output              = ./$(job_name)_$(jobid).out
# @ error               = ./$(job_name)_$(jobid).err
# @ environment         = COPY_ALL; 
# @ wall_clock_limit    = 4:00:00,4:00:00
# @ notification        = always
# @ bg_size             = 128 
# @ account_no          = k01

# @ queue

projdir=/project/k01/pyclaw
sandbox=${projdir}/sandbox
builddir=${projdir}/opt/share
srcdir=${builddir}/sources

pythondir=${builddir}/python/2.7.2/bgp
ldpath=${pythondir}/lib
numpy_path=${builddir}/numpy/1.6.2/bgp/lib/python
nose_path=${builddir}/nose/1.1.2/bgp/lib/python
clawpack_path=${builddir}/clawpack/dev/bgp/lib/python
petsc4py_path=${builddir}/petsc4py/1.2/bgp/lib/python
mpi_python_path=${builddir}/mpi4py/1.3/bgp/lib/python

bgp_python_path=${numpy_path}:${nose_path}:${clawpack_path}:${petsc4py_path}:${mpi_python_path}

bgp_python=${pythondir}/bin/python
mpi_python=${builddir}/mpi4py/1.3/bgp/lib/python/mpi4py/bin/python-mpi

testdir=/gpfs/scratch/aron/sandbox/import/collfs

cd $testdir
logdir=${testdir}/test_runs
mkdir -p ${logdir}

for np in 2 4 
do
    mpirun -env LD_LIBRARY_PATH=${ldpath} -env PYTHONPATH=${bgp_python_path} \
        -mode VN -exp_env HOME -n $np ${bgp_python}  test_import_numpy.py &> ${logdir}/bgp_python_${np}.txt
done
<commit_msg>test file to be run on Shaheen<commit_after>#!/usr/bin/env bash
#
# @ job_name            = kslrun_job
# @ job_type            = bluegene
# @ output              = ./$(job_name)_$(jobid).out
# @ error               = ./$(job_name)_$(jobid).err
# @ environment         = COPY_ALL; 
# @ wall_clock_limit    = 12:00:00,12:00:00
# @ notification        = always
# @ bg_size             = 4096 
# @ account_no          = k01

# @ queue

projdir=/project/k01/pyclaw
sandbox=${projdir}/sandbox
builddir=${projdir}/opt/share
srcdir=${builddir}/sources

pythondir=${builddir}/python/2.7.2/bgp
ldpath=${pythondir}/lib
numpy_path=${builddir}/numpy/1.6.2/bgp/lib/python
nose_path=${builddir}/nose/1.1.2/bgp/lib/python
clawpack_path=${builddir}/clawpack/dev/bgp/lib/python
petsc4py_path=${builddir}/petsc4py/1.2/bgp/lib/python
mpi_python_path=${builddir}/mpi4py/1.3/bgp/lib/python

bgp_python_path=${numpy_path}:${nose_path}:${clawpack_path}:${petsc4py_path}:${mpi_python_path}

bgp_python=${pythondir}/bin/python
mpi_python=${builddir}/mpi4py/1.3/bgp/lib/python/mpi4py/bin/python-mpi

testdir=/home/aron/sandbox/import/collfs

cd $testdir
logdir=${testdir}/scalability_test_logs
mkdir -p ${logdir}

#for np in 1 8 64 512 4096
for run in 1 2 3 4 5 
do
    for np in 1 8 64 512 4096 16384 
    do
        mpirun -env LD_LIBRARY_PATH=${ldpath} -env PYTHONPATH=${bgp_python_path} \
            -mode VN -exp_env HOME -n $np ${bgp_python}  test_mpiimporter.py &> ${logdir}/mpiimporter_bgp_python_${np}_${run}.txt
        
        mpirun -env LD_LIBRARY_PATH=${ldpath} -env PYTHONPATH=${bgp_python_path} \
            -mode VN -exp_env HOME -n $np ${mpi_python}  test_mpiimporter.py &> ${logdir}/mpiimporter_mpi_python_${np}_${run}.txt
        
        mpirun -env LD_LIBRARY_PATH=${ldpath} -env PYTHONPATH=${bgp_python_path} \
            -mode VN -exp_env HOME -n $np ${bgp_python}  test_python_importer.py &> ${logdir}/bgp_python_${np}_${run}.txt
    done
done

{'fraction_non_alphanumeric': 0.16059053931907202, 'fraction_numerical': 0.03404639951792709, 'mean_word_length': 3.5047489823609226, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '786984', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1319, 'n_words': 182}