<commit_before># To build this docker image
# docker build -t api .

# To run this container
# docker run --name api --rm api

FROM node:5.10.1

# Environment variables

## API_DIR is where the API source code lives
ENV API_DIR /usr/src/app

WORKDIR ${API_DIR}

COPY package.json ${API_DIR}
RUN npm install

COPY . ${API_DIR}

CMD [ "node", "index.js" ]<commit_msg>Run tests in build<commit_after># To build this docker image
# docker build -t api .

# To run this container
# docker run --name api --rm api

FROM node:5.10.1

# Environment variables

## API_DIR is where the API source code lives
ENV API_DIR /usr/src/app

WORKDIR ${API_DIR}

COPY package.json ${API_DIR}
RUN [ "npm", "install", "--quiet" ]

COPY . ${API_DIR}

RUN [ "npm", "test" ]

CMD [ "npm", "start" ]
{'fraction_non_alphanumeric': 0.12919896640826872, 'fraction_numerical': 0.0103359173126615, 'mean_word_length': 3.5588235294117645, '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': '4842168', 'n_tokens_mistral': 287, 'n_tokens_neox': 269, 'n_words': 103}