<commit_before>mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))
MYSQL_DATA_DIR = $(mkfile_dir)tests/rust-mysql-simple-test
MYSQL_SSL_CA = $(mkfile_dir)tests/ca-cert.pem
MYSQL_SSL_CERT = $(mkfile_dir)tests/server-cert.pem
MYSQL_SSL_KEY = $(mkfile_dir)tests/server-key.pem
MYSQL_PORT = 3307
BASEDIR := $(shell mysqld --verbose --help 2>/dev/null | grep -e '^basedir' | awk '{ print $$2 }')
OS := $(shell uname)

FEATURES := "rustc-serialize" "ssl"
BENCH_FEATURES := "nightly" "nightly ssl"

define run-mysql
if [ -e $(MYSQL_DATA_DIR)/mysqld.pid ];\
then \
	kill -9 `cat $(MYSQL_DATA_DIR)/mysqld.pid`; \
	rm -rf $(MYSQL_DATA_DIR) || true; \
fi

if [ -e $(MYSQL_DATA_DIR) ];\
then \
	rm -rf $(MYSQL_DATA_DIR) || true; \
fi

mkdir -p $(MYSQL_DATA_DIR)

if (mysql --version | grep 5.7 >>/dev/null);\
then \
	mysql_install_db --no-defaults \
                     --basedir=$(BASEDIR) \
                     --datadir=$(MYSQL_DATA_DIR)/data; \
else \
    mysql_install_db --no-defaults \
                     --basedir=$(BASEDIR) \
                     --datadir=$(MYSQL_DATA_DIR)/data \
                     --force; \
fi

mysqld --no-defaults \
       --basedir=$(BASEDIR) \<commit_msg>fix feature name in makefile<commit_after>mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))
MYSQL_DATA_DIR = $(mkfile_dir)tests/rust-mysql-simple-test
MYSQL_SSL_CA = $(mkfile_dir)tests/ca-cert.pem
MYSQL_SSL_CERT = $(mkfile_dir)tests/server-cert.pem
MYSQL_SSL_KEY = $(mkfile_dir)tests/server-key.pem
MYSQL_PORT = 3307
BASEDIR := $(shell mysqld --verbose --help 2>/dev/null | grep -e '^basedir' | awk '{ print $$2 }')
OS := $(shell uname)

FEATURES := "rustc_serialize" "ssl"
BENCH_FEATURES := "nightly" "nightly ssl"

define run-mysql
if [ -e $(MYSQL_DATA_DIR)/mysqld.pid ];\
then \
	kill -9 `cat $(MYSQL_DATA_DIR)/mysqld.pid`; \
	rm -rf $(MYSQL_DATA_DIR) || true; \
fi

if [ -e $(MYSQL_DATA_DIR) ];\
then \
	rm -rf $(MYSQL_DATA_DIR) || true; \
fi

mkdir -p $(MYSQL_DATA_DIR)

if (mysql --version | grep 5.7 >>/dev/null);\
then \
	mysql_install_db --no-defaults \
                     --basedir=$(BASEDIR) \
                     --datadir=$(MYSQL_DATA_DIR)/data; \
else \
    mysql_install_db --no-defaults \
                     --basedir=$(BASEDIR) \
                     --datadir=$(MYSQL_DATA_DIR)/data \
                     --force; \
fi

mysqld --no-defaults \
       --basedir=$(BASEDIR) \
{'fraction_non_alphanumeric': 0.17283448556323708, 'fraction_numerical': 0.0073200488003253355, 'mean_word_length': 2.716012084592145, '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': '2379156', 'n_tokens_mistral': 964, 'n_tokens_neox': 968, 'n_words': 178}