<commit_before>FROM ubuntu:16.04
LABEL maintainer="Polymimetic"

# Install dependencies.
RUN apt-get update \
    && apt-get install -y --no-install-recommends --no-install-suggests \
       python-software-properties \
       software-properties-common \
       python-apt python-dev python-jmespath python-pip python-setuptools \
       rsyslog systemd systemd-cron sudo \
    && rm -Rf /var/lib/apt/lists/* \
    && rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
    && apt-get clean \
    && apt-get purge -y --autoremove
RUN sed -i 's/^\($ModLoad imklog\)/#\1/' /etc/rsyslog.conf
#ADD etc/rsyslog.d/50-default.conf /etc/rsyslog.d/50-default.conf

# Install Ansible
RUN add-apt-repository -y ppa:ansible/ansible \
  && apt-get update \
  && apt-get install -y --no-install-recommends \
     ansible \
  && rm -rf /var/lib/apt/lists/* \
  && rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
  && apt-get clean

# Install Ansible inventory file
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

# Add user with password-less sudo
RUN set -x \
  && useradd -m -s /bin/bash cytopia \
  && echo "cytopia ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/cytopia

# Copy files
COPY ./ /home/cytopia/ansible
RUN set -x \
  && chown -R cytopia:cytopia /home/cytopia/ansible

# Switch to user
USER cytopia

# Change working directory
WORKDIR /home/cytopia/ansible

# COPY initctl_faker .
# RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin/initctl<commit_msg>Add docker user<commit_after>FROM ubuntu:16.04
LABEL maintainer="Polymimetic"

# Install dependencies.
RUN apt-get update \
    && apt-get install -y --no-install-recommends --no-install-suggests \
       python-software-properties \
       software-properties-common \
       python-apt python-dev python-jmespath python-pip python-setuptools \
       rsyslog systemd systemd-cron sudo \
    && rm -Rf /var/lib/apt/lists/* \
    && rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
    && apt-get clean \
    && apt-get purge -y --autoremove
RUN sed -i 's/^\($ModLoad imklog\)/#\1/' /etc/rsyslog.conf
#ADD etc/rsyslog.d/50-default.conf /etc/rsyslog.d/50-default.conf

# Install Ansible
RUN add-apt-repository -y ppa:ansible/ansible \
  && apt-get update \
  && apt-get install -y --no-install-recommends \
     ansible \
  && rm -rf /var/lib/apt/lists/* \
  && rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
  && apt-get clean

# Install Ansible inventory file
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

# Add user with password-less sudo
RUN set -x \
  && useradd -m -s /bin/bash mimeticuser \
  && echo "mimeticuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/mimeticuser

# Copy files
COPY ./ /home/mimeticuser/ansible
RUN set -x \
  && chown -R mimeticuser:mimeticuser /home/mimeticuser/ansible

# Switch to user
USER mimeticuser

# Change working directory
WORKDIR /home/mimeticuser/ansible

# COPY initctl_faker .
# RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin/initctl
{'fraction_non_alphanumeric': 0.1435124508519004, 'fraction_numerical': 0.005897771952817824, 'mean_word_length': 2.792546583850932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3465259', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1123, 'n_words': 271}