<commit_before># tag `latest` is 3.5
FROM python:3.5
MAINTAINER <NAME> <<EMAIL>>

# Do we want to build with CUDA support?
# Pass this at build time with `docker build --build-arg USECUDA=ON`
ARG USECUDA=OFF

# libopencv-dev 
ENV PACKAGES "python3-numpy python3-dev unzip build-essential cmake git libavresample-dev libhdf5-dev libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libprotobuf-dev tesseract-ocr libtesseract-dev libleptonica-dev libmp3lame-dev libtheora-dev libvorbis-dev libxvidcore-dev x264  libopencore-amrnb-dev libopencore-amrwb-dev libgstreamer1.0-dev libgstreamer1.0-0 libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0 gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly v4l-utils libv4l-dev libtbb-dev libeigen3-dev liblapack-dev libatlas-dev liblapacke-dev"

ENV CUDAPACKAGES "nvidia-cuda-dev nvidia-cuda-toolkit"

# There IS a way to configure #retries in APT
RUN apt-get -y -qq update && apt-get -y install ${PACKAGES} || apt-get -y install ${PACKAGES} || apt-get -y install ${PACKAGES} || apt-get -y install ${PACKAGES} || apt-get -y install ${PACKAGES}

# FFMPEG isn't currently in debian jessie, though it is in sid
# We'll install the static build for now.
ENV FFMPEG_RELEASE ffmpeg-release-64bit-static.tar.xz
RUN curl -SLO "https://johnvansickle.com/ffmpeg/releases/$FFMPEG_RELEASE" \
    && tar -xf $FFMPEG_RELEASE --strip-components=1 -C /usr/local/bin<commit_msg>Revert python version to 3.4 Bump to 3.5 when python3-dev supports python3.5 in debian jessie.<commit_after># tag `latest` is 3.5, but base image's python3-dev is 3.4. Since OCV will only build for 3.4, we'll leave pythonas 3.4 until 3.5 makes it into jessie.
FROM python:3.4
MAINTAINER <NAME> <<EMAIL>>

# Do we want to build with CUDA support?
# Pass this at build time with `docker build --build-arg USECUDA=ON`
ARG USECUDA=OFF

# libopencv-dev 
ENV PACKAGES "python3-numpy python3-dev unzip build-essential cmake git libavresample-dev libhdf5-dev libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libprotobuf-dev tesseract-ocr libtesseract-dev libleptonica-dev libmp3lame-dev libtheora-dev libvorbis-dev libxvidcore-dev x264  libopencore-amrnb-dev libopencore-amrwb-dev libgstreamer1.0-dev libgstreamer1.0-0 libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0 gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly v4l-utils libv4l-dev libtbb-dev libeigen3-dev liblapack-dev libatlas-dev liblapacke-dev"

ENV CUDAPACKAGES "nvidia-cuda-dev nvidia-cuda-toolkit"

# There IS a way to configure #retries in APT, so this can be replaced
RUN apt-get -y -qq update && apt-get -y install ${PACKAGES} || apt-get -y install ${PACKAGES} || apt-get -y install ${PACKAGES} || apt-get -y install ${PACKAGES} || apt-get -y install ${PACKAGES}

# FFMPEG isn't currently in debian jessie, though it is in sid
# We'll install the static build for now.
ENV FFMPEG_RELEASE ffmpeg-release-64bit-static.tar.xz
RUN curl -SLO "https://johnvansickle.com/ffmpeg/releases/$FFMPEG_RELEASE" \
    && tar -xf $FFMPEG_RELEASE --strip-components=1 -C /usr/local/bin \
    && rm ${FFMPEG_RELEASE}
{'fraction_non_alphanumeric': 0.10824143934997098, 'fraction_numerical': 0.030760301799187463, 'mean_word_length': 4.541800643086817, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3887526', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1287, 'n_words': 335}