<commit_before>#! /bin/bash
## Build tests
image_name="30_deeplearning:test"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

echo "Building test image"
docker build -t ${image_name} $DIR

## Run tests
echo "Test cuda"
nvidia-docker run --rm ${image_name} nvidia-smi
echo "Test theano"
nvidia-docker run --rm ${image_name} python -c "import theano"
echo "Test keras w theano"
nvidia-docker run --rm ${image_name} bash -c "KERAS_BACKEND=theano \
    python -c 'import keras; print(keras.__version__)'"
echo "Test tensorflow"
nvidia-docker run --rm ${image_name} python -c "import tensorflow"
echo "Test mkl"
docker run --rm ${image_name} python -c "from sklearn.tests.test_kernel_ridge import test_kernel_ridge; test_kernel_ridge()"

## Clean up
docker rmi ${image_name}
<commit_msg>print tensorflow version on test<commit_after>#! /bin/bash
## Build tests
image_name="30_deeplearning:test"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

echo "Building test image"
docker build -t ${image_name} $DIR

## Run tests
echo "Test cuda"
nvidia-docker run --rm ${image_name} nvidia-smi
echo "Test theano"
nvidia-docker run --rm ${image_name} python -c "import theano"
echo "Test keras w theano"
nvidia-docker run --rm ${image_name} bash -c "KERAS_BACKEND=theano \
    python -c 'import keras; print(keras.__version__)'"
echo "Test tensorflow"
nvidia-docker run --rm ${image_name} python -c \
    "import tensorflow; print(tensorflow.__version__)"
echo "Test mkl"
docker run --rm ${image_name} python -c "from sklearn.tests.test_kernel_ridge import test_kernel_ridge; test_kernel_ridge()"

## Clean up
docker rmi ${image_name}

{'fraction_non_alphanumeric': 0.14119804400977995, 'fraction_numerical': 0.003667481662591687, 'mean_word_length': 5.040590405904059, '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': '5073783', 'n_tokens_mistral': 603, 'n_tokens_neox': 560, 'n_words': 179}