<commit_before><?php

namespace Bone;

use Bone\Filter\FilterException;
use Bone\Filter\FilterInterface;

abstract class Filter
{
    /**
     * @param string $string
     * @param string $filter_type
     * @return string
     * @throws FilterException
     */
    public static function filterString($string, $filterType)
    {
        $filter = null;
        $boneFilter = 'Bone\Filter\String\\'.$filterType;

        if (class_exists($filterType)) {
            $filter = new $filterType();
        } else if (class_exists($boneFilter)) {
            $filter = new $boneFilter();<commit_msg>Fix docblock<commit_after><?php

namespace Bone;

use Bone\Filter\FilterException;
use Bone\Filter\FilterInterface;

abstract class Filter
{
    /**
     * @param string $string
     * @param string $filterType
     * @return string
     * @throws FilterException
     */
    public static function filterString($string, $filterType)
    {
        $filter = null;
        $boneFilter = 'Bone\Filter\String\\' . $filterType;

        if (class_exists($filterType)) {
            $filter = new $filterType();
        } else if (class_exists($boneFilter)) {
            $filter = new $boneFilter();
{'fraction_non_alphanumeric': 0.1226890756302521, 'fraction_numerical': 0.0, 'mean_word_length': 2.6310975609756095, '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': '4960492', 'n_tokens_mistral': 342, 'n_tokens_neox': 336, 'n_words': 81}