<commit_before>FROM ubuntu

RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
RUN apt-get update && apt-get install -y mysql-server && apt-get clean && rm -rf /var/lib/apt/lists/*

RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf

ADD ./mysql-setup.sh /tmp/mysql-setup.sh
ADD ./mysql-run.sh /mysql-run.sh
RUN /bin/sh /tmp/mysql-setup.sh

VOLUME /var/lib/mysql
EXPOSE 53306:3306
ENTRYPOINT ["/mysql-run.sh"]
<commit_msg>expose 3306 from mysql container, don't force external port<commit_after>FROM ubuntu

RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
RUN apt-get update && apt-get install -y mysql-server && apt-get clean && rm -rf /var/lib/apt/lists/*

RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf

ADD ./mysql-setup.sh /tmp/mysql-setup.sh
ADD ./mysql-run.sh /mysql-run.sh
RUN /bin/sh /tmp/mysql-setup.sh

VOLUME /var/lib/mysql
EXPOSE 3306
ENTRYPOINT ["/mysql-run.sh"]

{'fraction_non_alphanumeric': 0.1812015503875969, 'fraction_numerical': 0.035852713178294575, 'mean_word_length': 2.988416988416988, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5183258', 'n_tokens_mistral': 447, 'n_tokens_neox': 421, 'n_words': 100}