<commit_before>FROM ubuntu:16.04
MAINTAINER <NAME> <<EMAIL>>

# Based on: https://github.com/jacobalberty/unifi-docker/tree/master/unifi4

# See https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu
ARG UNIFI_REPO="testing"

RUN echo "deb deb http://www.ubnt.com/downloads/unifi/debian ${UNIFI_REPO} ubiquiti" /etc/apt/sources.list.d/20ubiquiti.list &&\
    echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen" > /etc/apt/sources.list.d/21mongodb.list &&\
    apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 &&\
    apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10


# For the latest version, see:
#  http://dl-origin.ubnt.com/unifi/debian/dists/unifi5/ubiquiti/binary-amd64/Packages
ARG UNIFI_VERSION="5.6.19-10171"
#ARG UNIFI_VERSION="5.5.24-9806"

ENV UNIFI_USER unifi

RUN    apt-get -q update \
    && apt-get install --no-install-recommends -qy default-jre-headless unifi=${UNIFI_VERSION} \
    && apt-get -q clean && rm -rf /var/lib/apt/lists/* /tmp/*

RUN    useradd -d /var/lib/unifi ${UNIFI_USER} \
    && mkdir -p /var/lib/unifi/data /var/lib/unifi/logs /var/lib/unifi/run \
    && [ -f /usr/lib/unifi/data ] && cp -R /usr/lib/unifi/data /usr/lib/unifi/data_orig || true \
    && ln -s /var/lib/unifi/data /usr/lib/unifi/data \
    && ln -s /var/lib/unifi/logs /usr/lib/unifi/logs \
    && ln -s /var/lib/unifi/run /usr/lib/unifi/run \
    && chown -R ${UNIFI_USER}:${UNIFI_USER} /usr/lib/unifi /var/lib/unifi<commit_msg>Added version  from test repo<commit_after>FROM ubuntu:16.04
MAINTAINER <NAME> <<EMAIL>>

# Based on: https://github.com/jacobalberty/unifi-docker/tree/master/unifi4

# See https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu
ARG UNIFI_REPO="test"

RUN echo "deb deb http://www.ubnt.com/downloads/unifi/debian ${UNIFI_REPO} ubiquiti" /etc/apt/sources.list.d/20ubiquiti.list &&\
    echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen" > /etc/apt/sources.list.d/21mongodb.list &&\
    apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 &&\
    apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10


# For the latest version, see:
#  http://dl-origin.ubnt.com/unifi/debian/dists/unifi5/ubiquiti/binary-amd64/Packages
ARG UNIFI_VERSION=""
#ARG UNIFI_VERSION="5.5.24-9806"

ENV UNIFI_USER unifi

RUN    apt-get -q update \
    && apt-get install --no-install-recommends -qy default-jre-headless unifi=${UNIFI_VERSION} \
    && apt-get -q clean && rm -rf /var/lib/apt/lists/* /tmp/*

RUN    useradd -d /var/lib/unifi ${UNIFI_USER} \
    && mkdir -p /var/lib/unifi/data /var/lib/unifi/logs /var/lib/unifi/run \
    && [ -f /usr/lib/unifi/data ] && cp -R /usr/lib/unifi/data /usr/lib/unifi/data_orig || true \
    && ln -s /var/lib/unifi/data /usr/lib/unifi/data \
    && ln -s /var/lib/unifi/logs /usr/lib/unifi/logs \
    && ln -s /var/lib/unifi/run /usr/lib/unifi/run \
    && chown -R ${UNIFI_USER}:${UNIFI_USER} /usr/lib/unifi /var/lib/unifi
{'fraction_non_alphanumeric': 0.1774666232497558, 'fraction_numerical': 0.028980788016932595, 'mean_word_length': 3.058124174372523, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '553736', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1276, 'n_words': 207}