<commit_before>FROM ubuntu:14.04.2

RUN \
  apt-get update && \
  apt-get install -y wget gcc make patch libpcre3-dev libssl-dev zlib1g-dev libgeoip-dev apache2-utils && \
  wget https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64 -O /usr/bin/confd && \
  chmod +x /usr/bin/confd && \
  mkdir -p /etc/confd/{conf.d,templates} && \
  wget http://nginx.org/download/nginx-1.9.5.tar.gz && \
  tar -xzf nginx-1.9.5.tar.gz && \
  cd nginx-1.9.5 && \
  wget https://github.com/yaoweibin/nginx_upstream_check_module/archive/master.tar.gz -O patch.tgz && \
  tar -xzf patch.tgz && \
  patch -p0 < nginx_upstream_check_module-master/check_1.9.2+.patch && \
  ./configure --add-module=nginx_upstream_check_module-master --prefix=/etc/nginx \
    --sbin-path=/usr/sbin/nginx \
    --conf-path=/etc/nginx/nginx.conf \
    --pid-path=/var/run/nginx.pid \
    --lock-path=/var/run/nginx.lock \
    --error-log-path=/var/log/nginx/error.log \
    --http-log-path=/var/log/nginx/access.log \
    --http-proxy-temp-path=/tmp/.proxy_temp \
    --http-client-body-temp-path=/tmp/.client_body_temp \
    --with-http_gzip_static_module \
    --with-http_stub_status_module \
    --with-http_ssl_module \
    --with-http_v2_module \
    --with-pcre \
    --with-file-aio \
    --with-http_realip_module \
    --with-http_realip_module \
    --with-http_geoip_module \
    --with-http_auth_request_module \
    --with-mail \
    --with-mail_ssl_module \
    --with-stream \
    --with-stream_ssl_module \
    --without-http_scgi_module \
    --without-http_uwsgi_module \
    --without-http_fastcgi_module && \
  make && make install && cd / && rm -rf /nginx* \
  apt-get remove -y wget gcc make patch libpcre3-dev libssl-dev zlib1g-dev libpcrecpp0 libssl-doc && \
  apt-get clean && apt-get autoclean && \
  rm -rf /var/lib/apt/lists/* && \
  ln -sf /dev/stdout /var/log/nginx/access.log && \
  ln -sf /dev/stderr /var/log/nginx/error.log && \
  rm -rf /etc/nginx/nginx.conf && \
  mkdir /etc/nginx/{conf.d,keys}

COPY confd /etc/confd
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx-lb /usr/bin/nginx-lb

EXPOSE 80 443

ENTRYPOINT ["nginx-lb"]<commit_msg>Fix missing &&<commit_after>FROM ubuntu:14.04.2

RUN \
  apt-get update && \
  apt-get install -y wget gcc make patch libpcre3-dev libssl-dev zlib1g-dev libgeoip-dev apache2-utils && \
  wget https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64 -O /usr/bin/confd && \
  chmod +x /usr/bin/confd && \
  mkdir -p /etc/confd/{conf.d,templates} && \
  wget http://nginx.org/download/nginx-1.9.5.tar.gz && \
  tar -xzf nginx-1.9.5.tar.gz && \
  cd nginx-1.9.5 && \
  wget https://github.com/yaoweibin/nginx_upstream_check_module/archive/master.tar.gz -O patch.tgz && \
  tar -xzf patch.tgz && \
  patch -p0 < nginx_upstream_check_module-master/check_1.9.2+.patch && \
  ./configure --add-module=nginx_upstream_check_module-master --prefix=/etc/nginx \
    --sbin-path=/usr/sbin/nginx \
    --conf-path=/etc/nginx/nginx.conf \
    --pid-path=/var/run/nginx.pid \
    --lock-path=/var/run/nginx.lock \
    --error-log-path=/var/log/nginx/error.log \
    --http-log-path=/var/log/nginx/access.log \
    --http-proxy-temp-path=/tmp/.proxy_temp \
    --http-client-body-temp-path=/tmp/.client_body_temp \
    --with-http_gzip_static_module \
    --with-http_stub_status_module \
    --with-http_ssl_module \
    --with-http_v2_module \
    --with-pcre \
    --with-file-aio \
    --with-http_realip_module \
    --with-http_realip_module \
    --with-http_geoip_module \
    --with-http_auth_request_module \
    --with-mail \
    --with-mail_ssl_module \
    --with-stream \
    --with-stream_ssl_module \
    --without-http_scgi_module \
    --without-http_uwsgi_module \
    --without-http_fastcgi_module && \
  make && make install && cd / && rm -rf /nginx* && \
  apt-get remove -y wget gcc make patch libpcre3-dev libssl-dev zlib1g-dev libpcrecpp0 libssl-doc && \
  apt-get clean && apt-get autoclean && \
  rm -rf /var/lib/apt/lists/* && \
  ln -sf /dev/stdout /var/log/nginx/access.log && \
  ln -sf /dev/stderr /var/log/nginx/error.log && \
  rm -rf /etc/nginx/nginx.conf && \
  mkdir /etc/nginx/{conf.d,keys}

COPY confd /etc/confd
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx-lb /usr/bin/nginx-lb

EXPOSE 80 443

ENTRYPOINT ["nginx-lb"]
{'fraction_non_alphanumeric': 0.17361429225836006, 'fraction_numerical': 0.01832340815391663, 'mean_word_length': 2.41171875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2032285', 'n_tokens_mistral': 1860, 'n_tokens_neox': 1771, 'n_words': 251}