<commit_before>FROM amazonlinux:latest

RUN curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && rm -f get-pip.py
RUN pip install virtualenv
RUN yum -y groupinstall "Development Tools" ; yum clean all
RUN yum install -y python27-devel gcc findutils ; yum clean all
RUN virtualenv /venv
RUN mkdir -p /project-source/boa-nimbus && mkdir -p /project-source/
COPY boa-nimbus/ /project-source/boa-nimbus/
COPY scripts/ /project-source/scripts/
RUN virtualenv /cache-venv && \
  cd /project-source/ && \
  ls -la && \
  find /project-source -name 'requirements.txt' | while read -r EACH_PATH ; do /cache-venv/bin/pip install -r "$EACH_PATH"; done && \
  rm -rf /cache-venv<commit_msg>Added install of boa-nimbus and Swagger preprocessor to Docker image.<commit_after>FROM amazonlinux:latest

RUN curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && rm -f get-pip.py
RUN pip install virtualenv
RUN yum -y groupinstall "Development Tools" ; yum clean all
RUN yum install -y python27-devel gcc findutils ; yum clean all
RUN virtualenv /venv
RUN mkdir -p /project-source/boa-nimbus && mkdir -p /project-source/
COPY boa-nimbus/ /project-source/boa-nimbus/
COPY scripts/ /project-source/scripts/
RUN virtualenv /cache-venv && \
  cd /project-source/ && \
  pip install git+git://github.com/moduspwnens/boa-nimbus.git && \
  pip install scripts/preprocess-swagger-input && \
  find /project-source -name 'requirements.txt' | while read -r EACH_PATH ; do /cache-venv/bin/pip install -r "$EACH_PATH"; done && \
  rm -rf /cache-venv
{'fraction_non_alphanumeric': 0.1306277742549144, 'fraction_numerical': 0.0025364616360177552, 'mean_word_length': 3.432584269662921, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2210480', 'n_tokens_mistral': 575, 'n_tokens_neox': 553, 'n_words': 164}