<commit_before>FROM node:slim

# Create app directory
RUN mkdir -p /usr/src/vogon-nj
WORKDIR /usr/src/vogon-nj

# Allow bower to run as root
RUN echo '{ "allow_root": true }' > /root/.bowerrc

# Install app dependencies
COPY package.json /usr/src/vogon-nj/
COPY bower.json /usr/src/vogon-nj/
RUN  buildDeps='git' \
  && set -x \
  && apt-get update && apt-get install -y $buildDeps --no-install-recommends \
  && rm -rf /var/lib/apt/lists/* \
  && npm install --unsafe-perm \
  && apt-get purge -y --auto-remove $buildDeps

# Bundle app source
COPY . /usr/src/vogon-nj

# Run tests
RUN npm test

# Delete test resources
RUN rm -rf test/tmp
<commit_msg>Dockerfile now deletes tests as well as git-related and other files not needed by Docker.<commit_after>FROM node:slim

# Create app directory
RUN mkdir -p /usr/src/vogon-nj
WORKDIR /usr/src/vogon-nj

# Allow bower to run as root
RUN echo '{ "allow_root": true }' > /root/.bowerrc

# Install app dependencies
COPY package.json /usr/src/vogon-nj/
COPY bower.json /usr/src/vogon-nj/
RUN  buildDeps='git' \
  && set -x \
  && apt-get update && apt-get install -y $buildDeps --no-install-recommends \
  && rm -rf /var/lib/apt/lists/* \
  && npm install --unsafe-perm \
  && apt-get purge -y --auto-remove $buildDeps

# Bundle app source
COPY . /usr/src/vogon-nj

# Run tests
RUN npm test

# Delete test resources
RUN rm -rf \
  test \
  .git .gitignore \
  Procfile

{'fraction_non_alphanumeric': 0.1372965322009908, 'fraction_numerical': 0.0, 'mean_word_length': 2.873972602739726, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2032413', 'n_tokens_mistral': 554, 'n_tokens_neox': 515, 'n_words': 157}