<commit_before><?php
require_once('limb/dbal/common.inc.php');

if(!lmbToolkit::instance()->isDefaultDbDSNAvailable())
{
  echo "\nThere is no default database connection DSN available, SEARCH package tests skipped\n\n";
  return true;
}

if(lmbToolkit :: instance()->getDefaultDbConnection()->getType() != 'mysql')
{
  echo "\nSEARCH package tests are skipped! Only MySQL database is supported\n\n";
  return true;
}

return false;
<commit_msg>-- search package tests now can be run under mysqli driver too<commit_after><?php
require_once('limb/dbal/common.inc.php');

if(!lmbToolkit::instance()->isDefaultDbDSNAvailable())
{
  echo "\nThere is no default database connection DSN available, SEARCH package tests skipped\n\n";
  return true;
}

if(strpos(lmbToolkit :: instance()->getDefaultDbConnection()->getType(), 'mysql') === false)
{
  echo "\nSEARCH package tests are skipped! Only MySQL database is supported\n\n";
  return true;
}

return false;

{'fraction_non_alphanumeric': 0.14031413612565444, 'fraction_numerical': 0.0, 'mean_word_length': 5.503401360544218, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1982524', 'n_tokens_mistral': 299, 'n_tokens_neox': 297, 'n_words': 84}