<commit_before>FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>

#================================
# Build arguments
#================================

ARG FIREFOX_VERSION="47.0.1"
ARG CHROME_VERSION="google-chrome-stable"
ARG VNC_PASSWD=<PASSWORD>

#================================
# Env variables
#================================

ENV BUILD_TIMESTAMP 20161209_01
ENV FIREFOX_VERSION ${FIREFOX_VERSION}
ENV CHROME_VERSION ${CHROME_VERSION}
ENV X11_RESOLUTION "1280x1024x24"
ENV DISPLAY :1
ENV VNC_PASSWD ${VNC_PASSWORD}

ADD assets/etc/apt/apt.conf.d/99norecommends /etc/apt/apt.conf.d/99norecommends
ADD assets/etc/apt/sources.list /etc/apt/sources.list

# Installing Firefox
RUN apt-get update -y --fix-missing -qq \
  && apt-get install -y software-properties-common python-software-properties \
  && add-apt-repository ppa:openjdk-r/ppa -y \
  && apt-get update -y --fix-missing -qq \
  && apt-get -y --no-install-recommends install \
  && DEBIAN_FRONTEND=noninteractive DEBCONF_PRIORITY=critical apt-get install -y wget libgtk-3-0 openjdk-8-jdk maven openssh-client git vim xvfb x11vnc \
  # Firefox installation
  && wget -q http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 -O /tmp/firefox.tar.bz2 \
  && tar -C /usr/local -xjf /tmp/firefox.tar.bz2 \
  && ln -s /usr/local/firefox/firefox /usr/bin/firefox \
  && apt-get install -y libdbus-glib-1-2

# Install Chromium.
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
  && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
  && apt-get update -qqy \
  && apt-get -qqy install ${CHROME_VERSION:-google-chrome-stable} \
  && rm /etc/apt/sources.list.d/google-chrome.list \
  && rm -rf /var/lib/apt/lists/* /var/cache/apt/*


# Adding the entrypoint
COPY ./assets/bin/entrypoint /
RUN chmod +x /entrypoint
ENTRYPOINT ["/entrypoint"]<commit_msg>Exposing the VNC port<commit_after>FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>

#================================
# Build arguments
#================================

ARG FIREFOX_VERSION="47.0.1"
ARG CHROME_VERSION="google-chrome-stable"
ARG VNC_PASSWD=<PASSWORD>

#================================
# Env variables
#================================

ENV BUILD_TIMESTAMP 20161209_01
ENV FIREFOX_VERSION ${FIREFOX_VERSION}
ENV CHROME_VERSION ${CHROME_VERSION}
ENV X11_RESOLUTION "1280x1024x24"
ENV DISPLAY :1
ENV VNC_PASSWD ${V<PASSWORD>}

ADD assets/etc/apt/apt.conf.d/99norecommends /etc/apt/apt.conf.d/99norecommends
ADD assets/etc/apt/sources.list /etc/apt/sources.list

# Installing Firefox
RUN apt-get update -y --fix-missing -qq \
  && apt-get install -y software-properties-common python-software-properties \
  && add-apt-repository ppa:openjdk-r/ppa -y \
  && apt-get update -y --fix-missing -qq \
  && apt-get -y --no-install-recommends install \
  && DEBIAN_FRONTEND=noninteractive DEBCONF_PRIORITY=critical apt-get install -y wget libgtk-3-0 openjdk-8-jdk maven openssh-client git vim xvfb x11vnc \
  # Firefox installation
  && wget -q http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 -O /tmp/firefox.tar.bz2 \
  && tar -C /usr/local -xjf /tmp/firefox.tar.bz2 \
  && ln -s /usr/local/firefox/firefox /usr/bin/firefox \
  && apt-get install -y libdbus-glib-1-2

# Install Chromium.
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
  && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
  && apt-get update -qqy \
  && apt-get -qqy install ${CHROME_VERSION:-google-chrome-stable} \
  && rm /etc/apt/sources.list.d/google-chrome.list \
  && rm -rf /var/lib/apt/lists/* /var/cache/apt/*


# Adding the entrypoint
COPY ./assets/bin/entrypoint /
RUN chmod +x /entrypoint
EXPOSE 5900
ENTRYPOINT ["/entrypoint"]
{'fraction_non_alphanumeric': 0.20368036299470632, 'fraction_numerical': 0.025712125031509957, 'mean_word_length': 3.923076923076923, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 16, 'https://': 2, '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': '439706', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1452, 'n_words': 278}