<commit_before># Use Ubuntu Trusty LTS
FROM ubuntu:trusty-20170330

# Pre-cache neurodebian key
COPY .docker/neurodebian.gpg /etc/.neurodebian.gpg

# Prepare environment
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
                    curl \
                    bzip2 \
                    ca-certificates \
                    xvfb \
                    pkg-config && \
    curl -sSL http://neuro.debian.net/lists/trusty.us-ca.full >> /etc/apt/sources.list.d/neurodebian.sources.list && \
    apt-key add /etc/.neurodebian.gpg && \
    (apt-key adv --refresh-keys --keyserver hkp://ha.pool.sks-keyservers.net 0xA5D32F012649A5A9 || true) && \
    apt-get update

# Installing Ubuntu packages and cleaning up
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
                    libinsighttoolkit4-dev=4.7.0-1~nd14.04+1 \
                    cmake=2.8.12.2-0ubuntu3 \
                    g++ \
                    build-essential \
                    libjsoncpp-dev \
                    libvtk6-dev \
                    libvtkgdcm2-dev \
                    libboost-filesystem-dev \
                    libboost-system-dev \
                    libboost-program-options-dev \
                    libfftw3-dev && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


COPY ./Code /src/regseg

WORKDIR /usr/local/build/regseg/
RUN cmake /src/regseg/ -G"Unix Makefiles"  -DCMAKE_BUILD_TYPE=Release -DITK_DIR=/usr/local/lib/cmake/ITK-4.7/ -DVTK_DIR=/usr/lib/cmake/vtk-6.0/ && \
    make -j$( grep -c ^processor /proc/cpuinfo ) && \
    make install && \
    rm -rf /src/regseg/ /usr/local/build/regseg/
<commit_msg>update ubuntu in dockerfile<commit_after># Use Ubuntu Artful LTS
FROM ubuntu:artful-20180123

# Pre-cache neurodebian key
COPY .docker/neurodebian.gpg /etc/.neurodebian.gpg

# Prepare environment
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
                    curl \
                    bzip2 \
                    ca-certificates \
                    xvfb \
                    pkg-config && \
    curl -sSL http://neuro.debian.net/lists/trusty.us-ca.full >> /etc/apt/sources.list.d/neurodebian.sources.list && \
    apt-key add /etc/.neurodebian.gpg && \
    (apt-key adv --refresh-keys --keyserver hkp://ha.pool.sks-keyservers.net 0xA5D32F012649A5A9 || true) && \
    apt-get update

# Installing Ubuntu packages and cleaning up
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
                    libinsighttoolkit4-dev \
                    cmake \
                    g++ \
                    build-essential \
                    libjsoncpp-dev \
                    libvtk6-dev \
                    libvtkgdcm2-dev \
                    libboost-filesystem-dev \
                    libboost-system-dev \
                    libboost-program-options-dev \
                    libfftw3-dev && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


COPY ./Code /src/regseg

WORKDIR /usr/local/build/regseg/
RUN cmake /src/regseg/ -G"Unix Makefiles"  -DCMAKE_BUILD_TYPE=Release -DITK_DIR=/usr/local/lib/cmake/ITK-4.7/ -DVTK_DIR=/usr/lib/cmake/vtk-6.0/ && \
    make -j$( grep -c ^processor /proc/cpuinfo ) && \
    make install && \
    rm -rf /src/regseg/ /usr/local/build/regseg/

{'fraction_non_alphanumeric': 0.12412177985948478, 'fraction_numerical': 0.021662763466042154, 'mean_word_length': 1.5769230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7602281', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1120, 'n_words': 201}