<commit_before># Version 2.1.0
# cyan.svc.Nginx

#========== Basic Image ==========
From nginx:1.13.7
MAINTAINER "DreamInSun"

#========== Override Nginx File ==========
ENV NGINX_HOME /etc/nginx
ADD nginx $NGINX_HOME 

#========== Install NGINX Amplify Agent ==========
RUN apt-get update \
    && apt-get install -qqy curl python apt-transport-https apt-utils gnupg1 procps \
    && echo 'deb https://packages.amplify.nginx.com/debian/ stretch amplify-agent' > /etc/apt/sources.list.d/nginx-amplify.list \
    && curl -fs https://nginx.org/keys/nginx_signing.key | apt-key add - > /dev/null 2>&1 \
    && apt-get update \
    && apt-get install -qqy nginx-amplify-agent \
    && apt-get purge -qqy curl apt-transport-https apt-utils gnupg1 \
    && rm -rf /var/lib/apt/lists/*

RUN apt-get install -qqy telnet net-tools   

# Keep the nginx logs inside the container
RUN unlink /var/log/nginx/access.log \
    && unlink /var/log/nginx/error.log \
    && touch /var/log/nginx/access.log \
    && touch /var/log/nginx/error.log \
    && chown nginx /var/log/nginx/*log \
    && chmod 644 /var/log/nginx/*log

	
#===== amplify ======
# Copy nginx stub_status config
# COPY ./amplify/conf.d/stub_status.conf /etc/nginx/conf.d 
<commit_msg>### 2.2.2<commit_after># Version 2.2.2
# cyan.svc.Nginx

#========== Basic Image ==========
From nginx:1.13.7
MAINTAINER "DreamInSun"

#========== Override Nginx File ==========
ENV NGINX_HOME /etc/nginx
ADD nginx $NGINX_HOME 

#========== Install Telnet ==========
RUN apt-get install -qqy telnet 

#========== Install NGINX Amplify Agent ==========
RUN apt-get update \
    && apt-get install -qqy curl python apt-transport-https apt-utils gnupg1 procps \
    && echo 'deb https://packages.amplify.nginx.com/debian/ stretch amplify-agent' > /etc/apt/sources.list.d/nginx-amplify.list \
    && curl -fs https://nginx.org/keys/nginx_signing.key | apt-key add - > /dev/null 2>&1 \
    && apt-get update \
    && apt-get install -qqy nginx-amplify-agent \
    && apt-get purge -qqy curl apt-transport-https apt-utils gnupg1 \
    && rm -rf /var/lib/apt/lists/*


# Keep the nginx logs inside the container
RUN unlink /var/log/nginx/access.log \
    && unlink /var/log/nginx/error.log \
    && touch /var/log/nginx/access.log \
    && touch /var/log/nginx/error.log \
    && chown nginx /var/log/nginx/*log \
    && chmod 644 /var/log/nginx/*log

	
#===== amplify ======
# Copy nginx stub_status config
# COPY ./amplify/conf.d/stub_status.conf /etc/nginx/conf.d 

{'fraction_non_alphanumeric': 0.19663596315578694, 'fraction_numerical': 0.012414897877452943, 'mean_word_length': 2.9840510366826156, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '1134683', 'n_tokens_mistral': 985, 'n_tokens_neox': 906, 'n_words': 202}