<commit_before>FROM node:4.2.6-slim
ENV NPM_CONFIG_LOGLEVEL warn

RUN useradd -m --system app

USER app
WORKDIR /home/app

ADD package.json typings.json ./

RUN mkdir -p /home/app/shippable/codecoverage && mkdir -p /home/app/shippable/testresults

RUN npm --production=false install --no-optional

COPY . .
USER root
RUN bash -O extglob -c 'chown app:app !(node_modules)'

VOLUME /home/app/shippable
CMD ["npm", "start"]

<commit_msg>remove requirement for the app user since we may as well run everything as root for now<commit_after>FROM node:4.2.6-slim
ENV NPM_CONFIG_LOGLEVEL warn

WORKDIR / home/app

ADD package.json typings.json ./

RUN mkdir -p /home/app/shippable/codecoverage && mkdir -p /home/app/shippable/testresults

RUN npm --production=false --unsafe-perm=true install --no-optional

COPY . .

VOLUME /home/app/shippable
CMD ["npm", "start"]


{'fraction_non_alphanumeric': 0.11757857974388825, 'fraction_numerical': 0.006984866123399301, 'mean_word_length': 3.751381215469613, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5640021', 'n_tokens_mistral': 315, 'n_tokens_neox': 306, 'n_words': 90}