<commit_before><?php

namespace ForkCMS\Modules\Backend\Backend\Actions;

use Doctrine\ORM\Query\Expr\Join;
use Doctrine\ORM\QueryBuilder;
use ForkCMS\Modules\Backend\Domain\Action\AbstractActionController;
use ForkCMS\Modules\Backend\Domain\UserGroup\UserGroup;
use Symfony\Component\HttpFoundation\Request;

/**
 *Overview of the available groups in the backend
 */
final class UserGroupIndex extends AbstractActionController
{
    protected function execute(Request $request): void
    {
        $this->assign(
            'groupDataGrid',
            $this->dataGridFactory->forEntity(UserGroup::class, static function (QueryBuilder $queryBuilder): void {
                $queryBuilder
                    ->leftJoin('UserGroup.users', 'Users', Join::WITH, 'Users.deleted = 0')
                    ->addSelect('Users');
            })
        );
    }<commit_msg>Fix filtering for deleted users<commit_after><?php

namespace ForkCMS\Modules\Backend\Backend\Actions;

use Doctrine\ORM\Query\Expr\Join;
use Doctrine\ORM\QueryBuilder;
use ForkCMS\Modules\Backend\Domain\Action\AbstractActionController;
use ForkCMS\Modules\Backend\Domain\UserGroup\UserGroup;
use Symfony\Component\HttpFoundation\Request;

/**
 *Overview of the available groups in the backend
 */
final class UserGroupIndex extends AbstractActionController
{
    protected function execute(Request $request): void
    {
        $this->assign(
            'groupDataGrid',
            $this->dataGridFactory->forEntity(UserGroup::class, static function (QueryBuilder $queryBuilder): void {
                $queryBuilder
                    ->leftJoin('UserGroup.users', 'Users', Join::WITH, 'Users.deletedAt IS NULL')
                    ->addSelect('Users');
            })
        );
    }
{'fraction_non_alphanumeric': 0.11092150170648464, 'fraction_numerical': 0.0005688282138794084, 'mean_word_length': 3.11943793911007, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '9906', 'n_tokens_mistral': 474, 'n_tokens_neox': 474, 'n_words': 97}