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

VOLUME ["/var/lib/unifi", "/var/log/unifi", "/var/run/unifi", "/usr/lib/unifi/work"]

ENV DEBIAN_FRONTEND noninteractive

RUN echo "deb http://www.ubnt.com/downloads/unifi/debian unifi4 ubiquiti" \
  > /etc/apt/sources.list.d/20ubiquiti.list
RUN echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen" \
  > /etc/apt/sources.list.d/21mongodb.list

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

RUN apt-get -q update && \
    apt-get install -qy --force-yes unifi && \
    apt-get -q clean && \
    rm -rf /var/lib/apt/lists/*

EXPOSE 8080/tcp 8081/tcp 8443/tcp 8843/tcp 8880/tcp 3478/udp

## Uncommenting these allows unifi to run as user nobody but I don't know for sure that all features work so leaving commented out for now
#RUN chown -R nobody.nogroup /usr/lib/unifi
#RUN chown -R nobody.nogroup /var/lib/unifi
#RUN chown -R nobody.nogroup /var/log/unifi
#RUN chown -R nobody.nogroup /var/run/unifi
#USER nobody

WORKDIR /var/lib/unifi

ENTRYPOINT ["/usr/bin/java", "-Xmx1024M", "-jar", "/usr/lib/unifi/lib/ace.jar"]
CMD ["start"]<commit_msg>Added sym link for new location of data<commit_after>FROM debian:jessie
MAINTAINER <NAME> <<EMAIL>>

VOLUME ["/var/lib/unifi", "/var/log/unifi", "/var/run/unifi", "/usr/lib/unifi/work"]

ENV DEBIAN_FRONTEND noninteractive

RUN echo "deb http://www.ubnt.com/downloads/unifi/debian unifi4 ubiquiti" \
  > /etc/apt/sources.list.d/20ubiquiti.list
RUN echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen" \
  > /etc/apt/sources.list.d/21mongodb.list

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

RUN apt-get -q update && \
    apt-get install -qy --force-yes unifi && \
    apt-get -q clean && \
    rm -rf /var/lib/apt/lists/*

RUN exec -t -i ln -s /var/lib/unifi /usr/lib/unifi/data
EXPOSE 8080/tcp 8081/tcp 8443/tcp 8843/tcp 8880/tcp 3478/udp

## Uncommenting these allows unifi to run as user nobody but I don't know for sure that all features work so leaving commented out for now
#RUN chown -R nobody.nogroup /usr/lib/unifi
#RUN chown -R nobody.nogroup /var/lib/unifi
#RUN chown -R nobody.nogroup /var/log/unifi
#RUN chown -R nobody.nogroup /var/run/unifi
#USER nobody

WORKDIR /var/lib/unifi

ENTRYPOINT ["/usr/bin/java", "-Xmx1024M", "-jar", "/usr/lib/unifi/lib/ace.jar"]
CMD ["start"]
{'fraction_non_alphanumeric': 0.14614773629864972, 'fraction_numerical': 0.03494837172359015, 'mean_word_length': 3.450530035335689, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '1501351', 'n_tokens_mistral': 1047, 'n_tokens_neox': 969, 'n_words': 252}