<commit_before>FROM ubuntu:16.04

RUN echo 'deb http://ppa.launchpad.net/ubuntugis/ppa/ubuntu trusty main' >> /etc/apt/sources.list.d/ubuntugis-ppa-trusty.list && \
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 && \
    apt-get update && apt-get install -y tilestache

RUN mkdir -p /export/geo
COPY tilestache.json /etc/tilestache.cfg

RUN apt-get update && apt-get install -y apache2 libapache2-mod-wsgi && rm -f /var/www/html/index.html
COPY tiles.conf /etc/apache2/sites-available/tiles.conf
RUN \
	a2dismod -f autoindex && \
	a2dismod -f negotiation && \
	a2dissite 000-default && \
	a2ensite tiles

COPY tilestache.wsgi /var/www/
RUN apt-get update && apt-get install -y wget && \
	mkdir -p /var/www/html/javascript/modestmaps && \
	wget -P /var/www/html/javascript/modestmaps https://raw.github.com/modestmaps/modestmaps-js/master/modestmaps.min.js

COPY start-apache.sh /usr/bin/start-apache

VOLUME /export/tile

EXPOSE 80
CMD ["/usr/bin/start-apache"]<commit_msg>workaround for "Expires" header in TileStache<commit_after>FROM ubuntu:16.04

RUN echo 'deb http://ppa.launchpad.net/ubuntugis/ppa/ubuntu trusty main' >> /etc/apt/sources.list.d/ubuntugis-ppa-trusty.list && \
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 && \
    apt-get update && apt-get install -y tilestache

RUN mkdir -p /export/geo
COPY tilestache.json /etc/tilestache.cfg

RUN apt-get update && apt-get install -y apache2 libapache2-mod-wsgi && rm -f /var/www/html/index.html
COPY tiles.conf /etc/apache2/sites-available/tiles.conf
RUN \
	a2dismod -f autoindex && \
	a2dismod -f negotiation && \
	a2dissite 000-default && \
	a2ensite tiles

COPY tilestache.wsgi /var/www/
RUN apt-get update && apt-get install -y wget && \
	mkdir -p /var/www/html/javascript/modestmaps && \
	wget -P /var/www/html/javascript/modestmaps https://raw.github.com/modestmaps/modestmaps-js/master/modestmaps.min.js

COPY start-apache.sh /usr/bin/start-apache

RUN sed -i 's/%a/%a,/' /usr/lib/python2.7/dist-packages/TileStache/__init__.py

VOLUME /export/tile

EXPOSE 80
CMD ["/usr/bin/start-apache"]
{'fraction_non_alphanumeric': 0.1444866920152091, 'fraction_numerical': 0.021863117870722433, 'mean_word_length': 3.431578947368421, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, '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': '2437955', 'n_tokens_mistral': 861, 'n_tokens_neox': 786, 'n_words': 167}