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

RUN apt-get update -qq && apt-get install -y \
    apt-transport-https \
    ca-certificates \
    lxc \
    iptables \
    openssh-server

RUN apt-get install -y --no-install-recommends openjdk-7-jdk

RUN mkdir -p /var/run/sshd

RUN adduser --quiet jenkins
RUN echo "jenkins:jenkins" | chpasswd
RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins

# Install Docker from Docker Inc. repositories.
RUN echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list \
  && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 \
  && apt-get update -qq \
  && apt-get install -qqy lxc-docker

RUN gpasswd -a jenkins docker

ADD build-essentials.sh  /opt/install/build-essentials.sh
RUN chmod +x  /opt/install/build-essentials.sh
RUN . /opt/install/build-essentials.sh

# Install the magic docker wrapper and sshd startup script
ADD ./entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

# Define additional metadata for our image.
VOLUME /var/lib/docker
EXPOSE 22 2375

CMD ["/usr/local/bin/entrypoint.sh"]<commit_msg>MOB-81 android support<commit_after>FROM ubuntu:latest
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update -qq && apt-get install -y \
    apt-transport-https \
    ca-certificates \
    lxc \
    iptables \
    openssh-server

RUN apt-get install -y --no-install-recommends openjdk-7-jdk

RUN mkdir -p /var/run/sshd

RUN adduser --quiet jenkins
RUN echo "jenkins:jenkins" | chpasswd
RUN echo "jenkins ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jenkins

# Install Docker from Docker Inc. repositories.
RUN echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list \
  && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 \
  && apt-get update -qq \
  && apt-get install -qqy lxc-docker

RUN gpasswd -a jenkins docker

ADD build-essentials.sh  /opt/install/build-essentials.sh
RUN chmod +x  /opt/install/build-essentials.sh
RUN . /opt/install/build-essentials.sh

# Install the magic docker wrapper and sshd startup script
ADD ./entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

# Downloading android-sdk
RUN wget http://dl.google.com/android/android-sdk_r24.3.2-linux.tgz; \
    tar zxvf android-sdk_r24.3.2-linux.tgz; \
    mv android-sdk-linux /usr/local/bin/android-sdk ; \
    rm android-sdk_r24.3.2-linux.tgz

#Add env-variables
ENV ANDROID_HOME /usr/local/bin/android-sdk
ENV PATH $PATH:$ANDROID_HOME/tools
ENV PATH $PATH:$ANDROID_HOME/platform-tools
# 1- Android SDK Tools, revision 24.3.3
# 2- Android SDK Platform-tools, revision 22
# 3
# 1,2,3,4,5,6,7,24,26,100,101
#Update android-libs
#RUN expect -c 'set timeout -1;spawn android - update sdk -u -a -t  1, 2, 3, 5, 6, 7, 24, 26, 100, 101;expect {"Do you accept the #license" { exp_send "y\r" ; exp_continue }    eof}'

#RUN ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk -u --filter 4

RUN ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --filter 139; \
	( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --filter 140; \
	( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --filter build-tools-21.1.2; \
	( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk -u --filter platform-tools,android-21; \
	( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk -u --filter extra-google-m2repository
RUN apt-get install -y --no-install-recommends g++-multilib lib32z1



# Define additional metadata for our image.
VOLUME /var/lib/docker
EXPOSE 22 2375

CMD ["/usr/local/bin/entrypoint.sh"]


{'fraction_non_alphanumeric': 0.13418115753957954, 'fraction_numerical': 0.04360238774980535, 'mean_word_length': 3.23982398239824, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '4058785', 'n_tokens_mistral': 1562, 'n_tokens_neox': 1398, 'n_words': 402}