<commit_before># Get the base
FROM ubuntu:16.04
MAINTAINER <NAME> <<EMAIL>>

# Install build prerequisites
RUN apt-get update && apt-get install -y \
    apt-transport-https \
    curl \
    git \
    build-essential \
    pkg-config \
    libxslt1-dev \
    libxml2-dev \
    cmake \
    qt4-qmake \
    libqt4-dev \
    gettext \
    python-pip \
    python-pyside libpyside-dev \
    libqjson-dev libraw-dev \
    shiboken libshiboken-dev \
    libjpeg62 libjpeg62-dev \
    libfreetype6 libfreetype6-dev \
    zlib1g-dev \
    ruby ruby-dev

# Install yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
    && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
    && apt-get update \
    && apt-get install -y \
        yarn \
    && apt-get clean && rm -rf /etc/lib/apt/lists/*


# System hacks
RUN ln -s /usr/lib/x86_64-linux-gnu/libraw.so /usr/lib/x86_64-linux-gnu/libraw.so.10 \
    && ln -s /usr/bin/nodejs /usr/bin/node

# Install abc
COPY submodules/abc /code/submodules/abc
WORKDIR /code/submodules/abc/cfitsio
RUN sed -i -e 's/\r$//' configure && sh configure && make -j4
WORKDIR /code/submodules/abc
RUN qmake . && make -j4 && make install

# Install pip dependencies
COPY requirements.txt /code
WORKDIR /code
RUN pip install -U setuptools && \
    pip install -U pip && \
    pip install --no-deps -r requirements.txt --src /src

# Install global node dependencies
RUN yarn global add \
    yuglify

# Install compass
RUN gem install compass<commit_msg>Fix issue with pip 10 upgrade<commit_after># Get the base
FROM ubuntu:16.04
MAINTAINER <NAME> <<EMAIL>>

# Install build prerequisites
RUN apt-get update && apt-get install -y \
    apt-transport-https \
    curl \
    git \
    build-essential \
    pkg-config \
    libxslt1-dev \
    libxml2-dev \
    cmake \
    qt4-qmake \
    libqt4-dev \
    gettext \
    python-pip \
    python-pyside libpyside-dev \
    libqjson-dev libraw-dev \
    shiboken libshiboken-dev \
    libjpeg62 libjpeg62-dev \
    libfreetype6 libfreetype6-dev \
    zlib1g-dev \
    ruby ruby-dev

# Install yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
    && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
    && apt-get update \
    && apt-get install -y \
        yarn \
    && apt-get clean && rm -rf /etc/lib/apt/lists/*


# System hacks
RUN ln -s /usr/lib/x86_64-linux-gnu/libraw.so /usr/lib/x86_64-linux-gnu/libraw.so.10 \
    && ln -s /usr/bin/nodejs /usr/bin/node

# Install abc
COPY submodules/abc /code/submodules/abc
WORKDIR /code/submodules/abc/cfitsio
RUN sed -i -e 's/\r$//' configure && sh configure && make -j4
WORKDIR /code/submodules/abc
RUN qmake . && make -j4 && make install

# Install pip dependencies
COPY requirements.txt /code
WORKDIR /code
RUN python -m pip install --upgrade setuptools && \
    python -m pip install --upgrade pip && \
    pip install --no-deps -r requirements.txt --src /src

# Install global node dependencies
RUN yarn global add \
    yuglify

# Install compass
RUN gem install compass
{'fraction_non_alphanumeric': 0.12460063897763578, 'fraction_numerical': 0.017891373801916934, 'mean_word_length': 2.3666666666666667, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2197176', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1125, 'n_words': 296}