<commit_before><?php
namespace Minds\Core\Boost;

use Minds\Interfaces\BoostHandlerInterface;
use Minds\Core;
use Minds\Core\Data;
use Minds\Entities;
use Minds\Helpers;

/**
 * Content Boost handler
 */
class Content extends Network implements BoostHandlerInterface
{
    protected $handler = 'content';

    /**
     * @param mixed $entity
     * @return bool
     */
    public static function validateEntity($entity)
    {
        if (!$entity || !is_object($entity)) {
            return false;
        }

        return
            $entity instanceof Entities\User ||
            $entity instanceof Entities\Video ||
            $entity instanceof Entities\Image ||
            $entity instanceof Core\Blogs\Blog;
    }
}<commit_msg>(fix): Content boosts should allow groups<commit_after><?php
namespace Minds\Core\Boost;

use Minds\Interfaces\BoostHandlerInterface;
use Minds\Core;
use Minds\Core\Data;
use Minds\Entities;
use Minds\Helpers;

/**
 * Content Boost handler
 */
class Content extends Network implements BoostHandlerInterface
{
    protected $handler = 'content';

    /**
     * @param mixed $entity
     * @return bool
     */
    public static function validateEntity($entity)
    {
        if (!$entity || !is_object($entity)) {
            return false;
        }

        return
            $entity instanceof Entities\User ||
            $entity instanceof Entities\Video ||
            $entity instanceof Entities\Image ||
            $entity instanceof Core\Blogs\Blog ||
            $entity instanceof Entities\Group;
    }
}
{'fraction_non_alphanumeric': 0.10353697749196142, 'fraction_numerical': 0.0, 'mean_word_length': 2.480984340044743, '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': '3999901', 'n_tokens_mistral': 424, 'n_tokens_neox': 420, 'n_words': 112}