<commit_before>FROM fedora:25
MAINTAINER <EMAIL>

ENV VERSION 0.41

RUN dnf update -y && dnf install -y python3 unzip nano
ADD https://github.com/mitshel/sopds/archive/v0.41.zip /sopds.zip
RUN unzip sopds.zip && rm sopds.zip && mv sopds-* sopds
#ADD ./configs/settings.py /sopds/sopds/settings.py
WORKDIR /sopds
RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
RUN python3 manage.py migrate
RUN python3 manage.py sopds_util clear
RUN python3 manage.py sopds_util setconf SOPDS_ROOT_LIB '/library'
RUN python3 manage.py sopds_util setconf SOPDS_INPX_ENABLE 'True'
RUN python3 manage.py sopds_util setconf SOPDS_LANGUAGE ru-RU
ADD ./scripts/start.sh /start.sh
RUN chmod +x /start.sh

VOLUME /library
EXPOSE 8001

ENTRYPOINT ["/start.sh"]
<commit_msg>del nano<commit_after>FROM fedora:25
MAINTAINER <EMAIL>

ENV VERSION 0.41

RUN dnf update -y && dnf install -y python3 unzip
ADD https://github.com/mitshel/sopds/archive/v0.41.zip /sopds.zip
RUN unzip sopds.zip && rm sopds.zip && mv sopds-* sopds
#ADD ./configs/settings.py /sopds/sopds/settings.py
WORKDIR /sopds
RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
RUN python3 manage.py migrate
RUN python3 manage.py sopds_util clear
RUN python3 manage.py sopds_util setconf SOPDS_ROOT_LIB '/library'
RUN python3 manage.py sopds_util setconf SOPDS_INPX_ENABLE 'True'
RUN python3 manage.py sopds_util setconf SOPDS_LANGUAGE ru-RU
ADD ./scripts/start.sh /start.sh
RUN chmod +x /start.sh

VOLUME /library
EXPOSE 8001

ENTRYPOINT ["/start.sh"]

{'fraction_non_alphanumeric': 0.09724047306176084, 'fraction_numerical': 0.026281208935611037, 'mean_word_length': 4.381625441696113, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1612532', 'n_tokens_mistral': 591, 'n_tokens_neox': 564, 'n_words': 170}