<commit_before># textblob-api-server
#
# VERSION        0.1
# DOCKER-VERSION 0.5.3

FROM ubuntu:precise
MAINTAINER <NAME> "<EMAIL>"

RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update

# First get needed stuff from github (do not waste too much time in case of failure)
RUN apt-get install -y curl git python-nltk
RUN cd /srv && git clone https://github.com/sguignot/textblob-api-server.git
RUN cd /tmp && git clone https://github.com/sloria/TextBlob.git
RUN cd /tmp/TextBlob && git checkout 0.5.2 && python download_corpora.py

# Install python base
RUN apt-get install -y python-pip python-dev gcc vim
# Cleanup downloaded packages
RUN apt-get clean

# Install python deps
RUN cd /srv/textblob-api-server && pip install -r requirements.txt

EXPOSE 5000
CMD    ["python", "/srv/textblob-api-server/textblob-api-server.py"]<commit_msg>Improve apt clean in Dockerfile.<commit_after># textblob-api-server
#
# VERSION        0.1
# DOCKER-VERSION 0.5.3

FROM ubuntu:precise
MAINTAINER <NAME> "<EMAIL>"

RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update

# First get needed stuff from github (do not waste too much time in case of failure)
RUN apt-get install -y curl git python-nltk && apt-get clean
RUN cd /srv && git clone https://github.com/sguignot/textblob-api-server.git
RUN cd /tmp && git clone https://github.com/sloria/TextBlob.git
RUN cd /tmp/TextBlob && git checkout 0.5.2 && python download_corpora.py

# Install python base
RUN apt-get install -y python-pip python-dev gcc vim && apt-get clean

# Install python deps
RUN cd /srv/textblob-api-server && pip install -r requirements.txt

EXPOSE 5000
CMD    ["python", "/srv/textblob-api-server/textblob-api-server.py"]
{'fraction_non_alphanumeric': 0.11617565314063369, 'fraction_numerical': 0.013340744858254585, 'mean_word_length': 3.8128342245989306, 'pattern_counts': {'":': 0, '<': 7, '<?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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2421060', 'n_tokens_mistral': 630, 'n_tokens_neox': 590, 'n_words': 195}