<commit_before><?php

/**
 * @package data-sources
 */
/**
 * The `AuthorDatasource` extends the base `Datasource` class and allows
 * the retrieval of Author information from the current Symphony installation.
 *
 * @since Symphony 2.3
 */
class AuthorDatasource extends Datasourc
{
    public function __processAuthorFilter($field, $filter)
    { //, $filtertype=DS_FILTER_OR){

        //$bits = preg_split('/'.($filtertype == DS_FILTER_AND ? '\+' : ',').'\s*/', $filter);

        if (!is_array($filter)) {
            $bits = preg_split('/,\s*/', $filter, -1, PREG_SPLIT_NO_EMPTY);
            $bits = array_map('trim', $bits);
        } else {
            $bits = $filter;
        }

        //switch($filtertype){

            /*case DS_FILTER_AND:

                $sql = "SELECT `a`.`id`
                        FROM (

                            SELECT `tbl_authors`.id, COUNT(`tbl_authors`.id) AS `count`
                            FROM  `tbl_authors`
                            WHERE `tbl_authors`.`".$field."` IN ('".implode("', '", $bits)."')
                            GROUP BY `tbl_authors`.`id`

                        ) AS `a`<commit_msg>Correct syntax error<commit_after><?php

/**
 * @package data-sources
 */
/**
 * The `AuthorDatasource` extends the base `Datasource` class and allows
 * the retrieval of Author information from the current Symphony installation.
 *
 * @since Symphony 2.3
 */
class AuthorDatasource extends Datasource
{
    public function __processAuthorFilter($field, $filter)
    { //, $filtertype=DS_FILTER_OR){

        //$bits = preg_split('/'.($filtertype == DS_FILTER_AND ? '\+' : ',').'\s*/', $filter);

        if (!is_array($filter)) {
            $bits = preg_split('/,\s*/', $filter, -1, PREG_SPLIT_NO_EMPTY);
            $bits = array_map('trim', $bits);
        } else {
            $bits = $filter;
        }

        //switch($filtertype){

            /*case DS_FILTER_AND:

                $sql = "SELECT `a`.`id`
                        FROM (

                            SELECT `tbl_authors`.id, COUNT(`tbl_authors`.id) AS `count`
                            FROM  `tbl_authors`
                            WHERE `tbl_authors`.`".$field."` IN ('".implode("', '", $bits)."')
                            GROUP BY `tbl_authors`.`id`

                        ) AS `a`
{'fraction_non_alphanumeric': 0.15622317596566523, 'fraction_numerical': 0.002575107296137339, 'mean_word_length': 1.7391304347826086, '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': '4042862', 'n_tokens_mistral': 713, 'n_tokens_neox': 669, 'n_words': 153}