<commit_before>FROM debian:wheezy

RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY> && echo 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/debian wheezy main' > /etc/apt/sources.list.d/mariadb.list

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq mariadb-server

RUN sed -ri 's/^(bind-address|skip-networking)/;\1/' /etc/mysql/my.cnf

RUN service mysql start && \
	mysql -v -uroot -e'UPDATE user SET host = "%" WHERE user = "root" LIMIT 1; DELETE FROM user WHERE user = "root" AND host != "%"' mysql && \
	service mysql stop

VOLUME /var/lib/mysql
EXPOSE 3306

CMD [ "mysqld_safe", "--skip-syslog" ]<commit_msg>Update "mariadb" to use the new somewhat standardized entrypoint script from infosiftr/mysql<commit_after>FROM debian:wheezy

RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY> && echo 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/debian wheezy main' > /etc/apt/sources.list.d/mariadb.list

RUN apt-get update && apt-get install -y mariadb-server

RUN sed -ri 's/^(bind-address|skip-networking)/;\1/' /etc/mysql/my.cnf

ADD https://raw.githubusercontent.com/infosiftr/docker-mysql/f1cc58a4ed/docker-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

RUN rm -rf /var/lib/mysql && mkdir /var/lib/mysql
VOLUME /var/lib/mysql

EXPOSE 3306
CMD ["mysqld", "--datadir=/var/lib/mysql", "--user=mysql"]
{'fraction_non_alphanumeric': 0.15680684248039914, 'fraction_numerical': 0.0135424091233072, 'mean_word_length': 3.978723404255319, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '4779678', 'n_tokens_mistral': 554, 'n_tokens_neox': 529, 'n_words': 124}