<commit_before>FROM andrewosh/binder-base

MAINTAINER SymPy devlopment team <<EMAIL>>

USER root

# Add dependency
RUN apt-get update && \
    apt-get --quiet --assume-yes install wget git g++ gfortran libgmp-dev binutils-dev bzip2 make sudo && \
    apt-get clean

USER main
COPY environment.yml /tmp/environment.yml
RUN conda env create -f /tmp/environment.yml && \
    conda config --set core.default_env=codegen17<commit_msg>Adpat binder Dockerfile based on agile-geoscience/xlines<commit_after>FROM andrewosh/binder-base

MAINTAINER SymPy devlopment team <<EMAIL>>

USER root

# Add dependency
RUN apt-get update && \
    apt-get --quiet --assume-yes install wget git g++ gfortran libgmp-dev binutils-dev bzip2 make sudo && \
    apt-get clean

USER main
COPY environment.yml /tmp/environment.yml
RUN sed -i 's/codegen17/binder/' /tmp/environment.yml && \
    conda env create -f /tmp/environment.yml && \
    echo "export PATH=/home/main/anaconda2/envs/binder/bin/:/home/main/anaconda3/envs/binder/bin/:$PATH" >> ~/.binder_start && \
    /bin/bash -c "source activate binder && jupyter kernelspec install-self --user" && \
    mkdir $HOME/.jupyter && \
    echo "c.NotebookApp.token = ''" >> $HOME/.jupyter/jupyter_notebook_config.py && \
    echo "c.NotebookApp.password=''" >> $HOME/.jupyter/jupyter_notebook_config.py && \
    echo "c.NotebookApp.password_required=False" >> $HOME/.jupyter/jupyter_notebook_config.py
{'fraction_non_alphanumeric': 0.13263157894736843, 'fraction_numerical': 0.005614035087719298, 'mean_word_length': 3.585209003215434, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '4682437', 'n_tokens_mistral': 528, 'n_tokens_neox': 500, 'n_words': 116}