<commit_before>#
# CLIFF fetch annotation worker
#

FROM dockermediacloud/cliff-base:latest

# Copy sources
COPY src/ /opt/mediacloud/src/cliff-fetch-annotation/
ENV PERL5LIB="/opt/mediacloud/src/cliff-fetch-annotation/perl:${PERL5LIB}"
ENV PYTHONPATH="/opt/mediacloud/src/cliff-fetch-annotation/python:${PYTHONPATH}"
USER mediacloud

# Copy worker script
COPY bin /opt/mediacloud/bin

USER mediacloud

CMD ["cliff_fetch_annotation_worker.py"]<commit_msg>Don't switch to "mediacloud" user before copying bin/<commit_after>#
# CLIFF fetch annotation worker
#

FROM dockermediacloud/cliff-base:latest

# Copy sources
COPY src/ /opt/mediacloud/src/cliff-fetch-annotation/
ENV PERL5LIB="/opt/mediacloud/src/cliff-fetch-annotation/perl:${PERL5LIB}"
ENV PYTHONPATH="/opt/mediacloud/src/cliff-fetch-annotation/python:${PYTHONPATH}"

# Copy worker script
COPY bin /opt/mediacloud/bin

USER mediacloud

CMD ["cliff_fetch_annotation_worker.py"]
{'fraction_non_alphanumeric': 0.12205567451820129, 'fraction_numerical': 0.004282655246252677, 'mean_word_length': 5.925925925925926, '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': '1673423', 'n_tokens_mistral': 350, 'n_tokens_neox': 334, 'n_words': 60}