<commit_before><?php

namespace App\View\Helper;

use App\Utility\Search;
use Cake\View\Helper;
use Search\Model\Entity\SavedSearch;

final class SearchHelper extends Helper
{
    /**
     * Search filters getter.<commit_msg>Update search helper (task #11061)<commit_after><?php

namespace App\View\Helper;

use App\Utility\Search;
use Cake\View\Helper;
use Search\Model\Entity\SavedSearch;

final class SearchHelper extends Helper
{
    /**
     * Fields getter.
     *
     * @param string $tableName Table name
     * @return mixed[]
     */
    public function getFields(string $tableName): array
    {
        return Search::getFields($tableName);
    }

    /**
     * Search filters getter.
{'fraction_non_alphanumeric': 0.11190817790530846, 'fraction_numerical': 0.007173601147776184, 'mean_word_length': 3.2048192771084336, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7567320', 'n_tokens_mistral': 217, 'n_tokens_neox': 212, 'n_words': 53}