<commit_before># contained-science
Various container examples for scientific computing benchmarks

## Using the python container
On a RHEL 7 host with docker installed:

docker build -t pybench .

docker run pybench /tmp/[test script]

### To see the numpy configuration in the container
docker run pybench -c 'import numpy; numpy.show_config()'

## To add a test
Create the new test in the python/ directory
Add a new COPY line to the Dockerfile
Rebuild the container

## Using the R container
On a RHEL 7 host with docker installed:

subscription-manager repos --enable rhel-7-server-optional-rpms

docker build -t rbench .

docker run -e RTEST=[test name] rbench 

## To add a test
Create the new test in the R/ directory
Add a new COPY line to the Dockerfile
Rebuild the container
<commit_msg>Update rebuild instructions for tarball delivery<commit_after># contained-science
Various container examples for scientific computing benchmarks

## Using the python container
On a RHEL 7 host with docker installed:

docker build -t pybench .

docker run pybench /tmp/[test script]

### To see the numpy configuration in the container
docker run pybench -c 'import numpy; numpy.show_config()'

## To add a test
Create the new test in the python/ directory
Rebuild experiments.tar:
`tar cf experiments.tar *.py`
Rebuild the container

## Using the R container
On a RHEL 7 host with docker installed:

subscription-manager repos --enable rhel-7-server-optional-rpms

docker build -t rbench .

docker run -e RTEST=[test name] rbench 

## To add a test
Create the new test in the R/ directory
Rebuild experiments.tar:
`tar cf experiments.tar *.R`
Rebuild the container

{'fraction_non_alphanumeric': 0.06377858002406739, 'fraction_numerical': 0.0036101083032490976, 'mean_word_length': 4.262658227848101, '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': '32415', 'n_tokens_mistral': 484, 'n_tokens_neox': 450, 'n_words': 235}