<commit_before>FROM debian:jessie
MAINTAINER qqbuby <<EMAIL>>

ENV RTD_REPO_DIR=/var/readthedocs \
    RTD_COMMIT=ed4f90e4

RUN apt-get update && apt-get install -y --no-install-recommends \
        build-essential \
        curl \
        git \
        libxml2-dev \
        libxslt1-dev \
        libz-dev \
        python-dev \
        python-pip \
        python-setuptools \
    && rm -rf /var/lib/apt/lists/*
    
# Read the docs
# Creat a folder here, and clone the repository
RUN curl -ksSL https://github.com/rtfd/readthedocs.org/archive/$RTD_COMMIT.tar.gz | tar xz -C /tmp/ \
    && mkdir -p ${RTD_REPO_DIR} \
    && mv /tmp/readthedocs.org-${RTD_COMMIT}*/* ${RTD_REPO_DIR}

# Install the depedencies using pip (included inside of virtualenv),
# then please create a super account for Django,
# and create an account for API use and set SLUMBER_USERNAME and SLUMBER_PASSWORD in order for everything to work properly,
# then let's properly generate the static assets.
WORKDIR ${RTD_REPO_DIR}
RUN pip install -r requirements.txt \
    && rm -rf ~/.cache /tmp/pip_build_root \
    && python ./manage.py migrate \
    && python -c "import os;import sys;os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'readthedocs.settings.dev');sys.path.append(os.getcwd());from django.contrib.auth.models import User;admin = User.objects.create_user('admin','','admin');admin.is_superuser=True;admin.is_staff=True;admin.save();test = User.objects.create_user('test','','test');test.is_staff=True;test.save();" \
    && python ./manage.py collectstatic --noinput

# Finally, you're ready to start the webserver: python manage.py runserver
EXPOSE 8000<commit_msg>Update RTD's commit to 2<PASSWORD>487412f58a0a4473c0a52250b15ff18<commit_after>FROM debian:jessie
MAINTAINER qqbuby <<EMAIL>>

ENV RTD_REPO_DIR=/var/readthedocs \
    RTD_COMMIT=2a54e3adf487412f58a0a4473c0a52250b15ff18

RUN apt-get update && apt-get install -y --no-install-recommends \
        build-essential \
        curl \
        git \
        libxml2-dev \
        libxslt1-dev \
        libz-dev \
        python-dev \
        python-pip \
        python-setuptools \
    && rm -rf /var/lib/apt/lists/*
    
# Read the docs
# Creat a folder here, and clone the repository
RUN curl -ksSL https://github.com/rtfd/readthedocs.org/archive/$RTD_COMMIT.tar.gz | tar xz -C /tmp/ \
    && mkdir -p ${RTD_REPO_DIR} \
    && mv /tmp/readthedocs.org-${RTD_COMMIT}*/* /tmp/readthedocs.org-${RTD_COMMIT}*/.??* ${RTD_REPO_DIR}

# Install the depedencies using pip (included inside of virtualenv),
# then please create a super account for Django,
# and create an account for API use and set SLUMBER_USERNAME and SLUMBER_PASSWORD in order for everything to work properly,
# then let's properly generate the static assets.
WORKDIR ${RTD_REPO_DIR}
RUN pip install -r requirements.txt \
    && rm -rf ~/.cache /tmp/pip_build_root \
    && python ./manage.py migrate \
    && python -c "import os;import sys;os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'readthedocs.settings.dev');sys.path.append(os.getcwd());from django.contrib.auth.models import User;admin = User.objects.create_user('admin','','admin');admin.is_superuser=True;admin.is_staff=True;admin.save();test = User.objects.create_user('test','','test');test.is_staff=True;test.save();" \
    && python ./manage.py collectstatic --noinput

# Finally, you're ready to start the webserver: python manage.py runserver
EXPOSE 8000
{'fraction_non_alphanumeric': 0.1283172936716244, 'fraction_numerical': 0.019539224263633713, 'mean_word_length': 3.4545454545454546, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1612564', 'n_tokens_mistral': 1248, 'n_tokens_neox': 1174, 'n_words': 276}