<commit_before>FROM ubuntu:14.04

# Add Build Essentials
RUN (ln -s -f /bin/true /usr/bin/chfn) && \
    (apt-get update) && \
    (apt-get install -y --no-install-recommends openjdk-7-jdk build-essential git openssh-client curl) && \
    (apt-get clean) && \
    (rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*)

# Add OpenSSH Server
RUN (apt-get update) && \
    (apt-get install -y --no-install-recommends openssh-server) && \
    (mkdir -p /var/run/sshd) && \
    (sed -i 's|session    required     pam_loginuid.so|session    optional     pam_loginuid.so|g' /etc/pam.d/sshd) && \
    (apt-get clean) && \
    (rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*)

# Add Jenkins User
RUN (adduser --disabled-password --quiet --gecos "" jenkins) && \
    (echo "jenkins:jenkins" | chpasswd) && \
    (echo 'jenkins ALL = NOPASSWD: ALL' > /etc/sudoers.d/jenkins)

# Add Jenkins user to the sudoers
RUN (apt-get update) && \
    (apt-get install -y --no-install-recommends sudo) && \
    (echo 'jenkins ALL = NOPASSWD: ALL' > /etc/sudoers.d/jenkins) && \
    (apt-get clean) && \
    (rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*)

EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]<commit_msg>Made Jenkins slave to use Swarm instead<commit_after>FROM ubuntu:14.04

# Add Build Essentials
RUN (ln -s -f /bin/true /usr/bin/chfn) && \
    (apt-get update) && \
    (apt-get install -y --no-install-recommends openjdk-7-jdk build-essential git openssh-client curl) && \
    (apt-get clean) && \
    (rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*)

# Download Swarm CLI
ADD http://maven.jenkins-ci.org/content/repositories/releases/org/jenkins-ci/plugins/swarm-client/1.16/swarm-client-1.16-jar-with-dependencies.jar /usr/local/bin/swarm-client.jar

ENTRYPOINT ["java", "-jar", "/usr/local/bin/swarm-client.jar"]
CMD []
{'fraction_non_alphanumeric': 0.18920422927100725, 'fraction_numerical': 0.01001669449081803, 'mean_word_length': 2.6768916155419222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4996571', 'n_tokens_mistral': 726, 'n_tokens_neox': 694, 'n_words': 153}