<commit_before>FROM ubuntu:18.04

RUN apt-get update \
 && apt-get install -y python3.6 \
                       python3-pip \
                       build-essential \
 && rm -rf /var/lib/apt/lists/* \
 && pip3 install jupyter \
 && pip3 install http://download.pytorch.org/whl/cpu/torch-0.3.1-cp36-cp36m-linux_x86_64.whl \
 && pip3 install torchvision \
 && rm -r /root/.cache/pip \
 &&  mkdir PySyft \
 &&  mkdir PySyft/examples

COPY syft/ /PySyft/syft/
COPY requirements.txt /PySyft/requirements.txt
COPY setup.py /PySyft/setup.py
COPY README.md /PySyft/README.md

WORKDIR /PySyft

RUN python3 setup.py install \
 && jupyter notebook --generate-config \
 && jupyter nbextension enable --py --sys-prefix widgetsnbextension \
 && python3 -m ipykernel.kernelspec \
 && mkdir /notebooks \
 && apt-get -y purge python3-pip \
                     build-essential \
 && apt-get -y clean

WORKDIR /notebooks

ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--Notebook.open_browser=False", "--NotebookApp.token=''", "--allow-root"]<commit_msg>Using official python-alpine base image and adding needed alpine packages for building needs<commit_after>FROM python:3.6-alpine

# installing alpine packages which is needed for building python packages "especially pillow" :)
RUN apk add g++ python-dev tiff-dev zlib-dev freetype-dev

RUN pip install jupyter \
    && pip install http://download.pytorch.org/whl/cpu/torch-0.3.1-cp36-cp36m-linux_x86_64.whl \
    && pip install torchvision \
    && rm -r /root/.cache/pip \
    && mkdir PySyft \
    && mkdir PySyft/examples

COPY syft/ /PySyft/syft/
COPY requirements.txt /PySyft/requirements.txt
COPY setup.py /PySyft/setup.py
COPY README.md /PySyft/README.md

WORKDIR /PySyft

RUN python setup.py install \
    && jupyter notebook --generate-config \
    && jupyter nbextension enable --py --sys-prefix widgetsnbextension \
    && python -m ipykernel.kernelspec \
    && mkdir /notebooks \
    && rm -rf /var/cache/apk/*

WORKDIR /notebooks

ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--Notebook.open_browser=False", "--NotebookApp.token=''", "--allow-root"]
{'fraction_non_alphanumeric': 0.14612511671335202, 'fraction_numerical': 0.024743230625583566, 'mean_word_length': 2.868231046931408, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '39695', 'n_tokens_mistral': 798, 'n_tokens_neox': 761, 'n_words': 175}