<commit_before>FROM ubuntu:17.10
LABEL maintainer="<NAME> <<EMAIL>>"

ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL          C.UTF-8

RUN apt-get update && apt-get install -y \
      build-essential \
      curl \
      g++ \
      git \
      iputils-ping \
      libcairo2-dev \
      libjpeg8-dev \
      libpango1.0-dev \
      libgif-dev \
      python2.7 \
      python3.6 \
      python3-venv \
      sudo \
      vim \
  && rm -rf /var/lib/apt/lists/*

RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
  && apt-get update && apt-get install -y nodejs \
  && rm -rf /var/lib/apt/lists/*

RUN mkdir /facenet /workdir

# Add facenet user.
RUN groupadd facenet && useradd -g facenet -d /facenet -m -G audio,video,sudo facenet \
  && chown -R facenet:facenet /facenet /workdir \
  && echo "facenet   ALL=NOPASSWD:ALL" >> /etc/sudoers
USER facenet

WORKDIR /facenet
COPY . .
RUN sudo chown -R facenet /facenet \
  && npm install \
  && npm run dist \
  && sudo ln -s /usr/lib/node_modules /node_modules \
  && sudo ln -s . /node_modules/facenet \
  && sudo ln -s ./node_modules/* /node_modules/ \
  && rm -fr /tmp/* ~/.npm

# EXPOSE 80

VOLUME [ "/workdir" ]
CMD [ "npm", "start" ]<commit_msg>fix facenet global soft link<commit_after>FROM ubuntu:17.10
LABEL maintainer="<NAME> <<EMAIL>>"

ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL          C.UTF-8

RUN apt-get update && apt-get install -y \
      build-essential \
      curl \
      g++ \
      git \
      iputils-ping \
      libcairo2-dev \
      libjpeg8-dev \
      libpango1.0-dev \
      libgif-dev \
      python2.7 \
      python3.6 \
      python3-venv \
      sudo \
      vim \
  && rm -rf /var/lib/apt/lists/*

RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
  && apt-get update && apt-get install -y nodejs \
  && rm -rf /var/lib/apt/lists/*

RUN mkdir /facenet /workdir

# Add facenet user.
RUN groupadd facenet && useradd -g facenet -d /facenet -m -G audio,video,sudo facenet \
  && chown -R facenet:facenet /facenet /workdir \
  && echo "facenet   ALL=NOPASSWD:ALL" >> /etc/sudoers
USER facenet

WORKDIR /facenet
COPY . .
RUN sudo chown -R facenet /facenet \
  && npm install \
  && npm run dist \
  && sudo ln -s /usr/lib/node_modules /node_modules \
  && sudo ln -s /facenet/node_modules/* /node_modules/ \
  && sudo ln -s /facenet /node_modules/facenet \
  && rm -fr /tmp/* ~/.npm

# EXPOSE 80

VOLUME [ "/workdir" ]
CMD [ "npm", "start" ]
{'fraction_non_alphanumeric': 0.14326647564469913, 'fraction_numerical': 0.01391731477691363, 'mean_word_length': 2.0742138364779876, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '2694264', 'n_tokens_mistral': 1004, 'n_tokens_neox': 951, 'n_words': 239}