<commit_before>FROM node:12

ENV USER_DIR /candy-red-user
ENV CANDY_RED_HOME /candy-red

RUN ( \
  mkdir -p ${CANDY_RED_HOME} \
)

COPY ./install.sh ${CANDY_RED_HOME}
COPY ./default-nodes.csv ${CANDY_RED_HOME}
COPY ./package.json ${CANDY_RED_HOME}
COPY ./dist ${CANDY_RED_HOME}/dist

RUN ( \
  cd ${CANDY_RED_HOME} && \
  npm install --production --unsafe-perm \
)

WORKDIR ${CANDY_RED_HOME}
CMD npm run start
<commit_msg>Make dockerfile simpler<commit_after>FROM node:12

ARG CANDY_RED_VERSION
ENV CANDY_RED_VERSION ${CANDY_RED_VERSION:-"latest"}
ENV CANDY_RED_HOME /candy-red-user

RUN ( \
  mkdir -p ${CANDY_RED_HOME} \
)

RUN ( \
  npm install -g --production --unsafe-perm candy-red@${CANDY_RED_VERSION} \
)

WORKDIR ${CANDY_RED_HOME}
CMD npm run --prefix $(npm -g root)/candy-red start

{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.005050505050505051, 'mean_word_length': 4.018987341772152, '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': '849778', 'n_tokens_mistral': 340, 'n_tokens_neox': 323, 'n_words': 70}