<commit_before># Latest version of ZNC from ppa:teward/znc
#
# VERSION   0.0.1
MAINTAINER <NAME> <<EMAIL>>

FROM ubuntu:12.04

# Add data volume to hold ZNC config files
VOLUME ["/var/znc"]

# Manually add ppa:teward/znc instead of using add-apt-repository,
# which pulls in too many unneeded dependencies. Keep it slim!
RUN echo "deb http://ppa.launchpad.net/teward/znc/ubuntu precise main" > /etc/apt/sources.list.d/teward-znc-precise.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E616D378
RUN apt-get update
RUN apt-get install -y znc

# Create a 'znc' user so we don't run znc as root. HOME=/var/znc
RUN adduser --system --group --home /var/znc --shell /bin/bash znc

# Create some helper scripts to be used by 'docker run'. 
# When mounting data volumes, it mounts as root:root. Helper scripts
# chown's /var/znc back to znc:znc so it can be written by znc.
RUN echo "#!/bin/bash\nchown znc:znc /var/znc && su - znc -c 'znc --makeconf'" > /usr/local/bin/znc_makeconf
RUN chmod +x /usr/local/bin/znc_makeconf
RUN echo "#!/bin/bash\nchown znc:znc /var/znc && su - znc -c 'znc --foreground'" > /usr/local/bin/znc_foreground
RUN chmod +x /usr/local/bin/znc_foreground

CMD ["znc_makeconf"]
<commit_msg>Moved FROM command to first command<commit_after># Latest version of ZNC from ppa:teward/znc
#
# VERSION   0.0.1

FROM ubuntu:12.04
MAINTAINER <NAME> <<EMAIL>>

# Add data volume to hold ZNC config files
VOLUME ["/var/znc"]

# Manually add ppa:teward/znc instead of using add-apt-repository,
# which pulls in too many unneeded dependencies. Keep it slim!
RUN echo "deb http://ppa.launchpad.net/teward/znc/ubuntu precise main" > /etc/apt/sources.list.d/teward-znc-precise.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E616D378
RUN apt-get update
RUN apt-get install -y znc

# Create a 'znc' user so we don't run znc as root. HOME=/var/znc
RUN adduser --system --group --home /var/znc --shell /bin/bash znc

# Create some helper scripts to be used by 'docker run'. 
# When mounting data volumes, it mounts as root:root. Helper scripts
# chown's /var/znc back to znc:znc so it can be written by znc.
RUN echo "#!/bin/bash\nchown znc:znc /var/znc && su - znc -c 'znc --makeconf'" > /usr/local/bin/znc_makeconf
RUN chmod +x /usr/local/bin/znc_makeconf
RUN echo "#!/bin/bash\nchown znc:znc /var/znc && su - znc -c 'znc --foreground'" > /usr/local/bin/znc_foreground
RUN chmod +x /usr/local/bin/znc_foreground

CMD ["znc_makeconf"]

{'fraction_non_alphanumeric': 0.12884927066450566, 'fraction_numerical': 0.01053484602917342, 'mean_word_length': 3.6235955056179776, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1391527', 'n_tokens_mistral': 973, 'n_tokens_neox': 914, 'n_words': 301}