<commit_before><commit_msg>added Dockerfile<commit_after># use Anaconda 3
FROM continuumio/miniconda3:4.7.12

# build some folders 
RUN mkdir /wd
RUN mkdir /wd/skgstat
WORKDIR /wd

# make a data directory
RUN mkdir data
VOLUME ["/wd/data"]

# install some basic packages
# RUN pip install --no-cache-dir ipython jupyter numpy pandas scipy
RUN conda install ipython numpy pandas scipy jupyter numba scikit-learn

# copy the requirements.txt from the scikit-gstat source
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN rm -f requirements.txt

# copy the package itself
ADD skgstat /wd/skgstat

# expose 8888 for jupyter notebooks
EXPOSE 8888

# as soon as we have a demo folder, use this as a starting point
# then the data folder needs to be ln -s
CMD ["sleep 1 && python -m webbrowser http://localhost:8888 &", "jupyter notebook"]

{'fraction_non_alphanumeric': 0.0776361529548088, 'fraction_numerical': 0.0220162224797219, 'mean_word_length': 4.112426035502959, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7091988', 'n_tokens_mistral': 302, 'n_tokens_neox': 281, 'n_words': 115}