<commit_before>#!/bin/bash

# install Docker & NVIDIA-Docker
# pre-install
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
# obtain and install Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update && apt-get upgrade -y
apt-get install -y docker-ce

# get and install Nvidia-Docker
wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb

# test if nvidia-smi works from a docker container
nvidia-docker run --rm nvidia/cuda nvidia-smi

# obtain some popular images
nvidia-docker pull nvidia/cuda
nvidia-docker pull nvidia/caffe
nvidia-docker pull nvidia/digits
nvidia-docker pull microsoft/cntk
nvidia-docker pull tensorflow/tensorflow:latest-gpu-py3

# obtain images built and maintained by Honghu-Tech
nvidia-docker pull honghu/keras:latest-gpu-py3<commit_msg>Update dockerInstall.sh<commit_after>#!/bin/bash

# install Docker & NVIDIA-Docker
# pre-install
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
# obtain and install Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update && apt-get upgrade -y
apt-get install -y docker-ce

# get and install Nvidia-Docker
wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb

# test if nvidia-smi works from a docker container
nvidia-docker run --rm nvidia/cuda nvidia-smi

# obtain some popular images
nvidia-docker pull nvidia/cuda
nvidia-docker pull nvidia/caffe
nvidia-docker pull nvidia/digits
nvidia-docker pull microsoft/cntk
nvidia-docker pull tensorflow/tensorflow:latest-gpu-py3

# obtain images built and maintained by Honghu-Tech
nvidia-docker pull honghu/keras:tf-cu9-dnn7-py3
{'fraction_non_alphanumeric': 0.11354118194509075, 'fraction_numerical': 0.013029315960912053, 'mean_word_length': 4.375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4487407', 'n_tokens_mistral': 839, 'n_tokens_neox': 721, 'n_words': 186}