<commit_before><?php

namespace Application\Bundle\FrontBundle\Entity;

use Doctrine\ORM\EntityRepository;

/**
 * UsersRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class UsersRepository extends EntityRepository
{
    public function getUsersWithoutCurentLoggedIn($id, $organizationId = null)
    {
        $where = ' Where u.id != '. $id;
        if($organizationId){
            $where .= ' AND u.organizations = "'.$organizationId.'"';
        }
        $query = $this->getEntityManager()->createQuery('SELECT u'
                . ' from ApplicationFrontBundle:Users u '
                . ' '. $where
                );
        $users = $query->getResult();<commit_msg>current user will not be in users list<commit_after><?php

namespace Application\Bundle\FrontBundle\Entity;

use Doctrine\ORM\EntityRepository;

/**
 * UsersRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class UsersRepository extends EntityRepository
{
    public function getUsersWithoutCurentLoggedIn($id, $organizationId = null)
    {
        $where = ' Where u.id != '. $id;
        if($organizationId){
            $where .= ' AND u.organizations = '.$organizationId;
        }
        $query = $this->getEntityManager()->createQuery('SELECT u'
                . ' from ApplicationFrontBundle:Users u '
                . ' '. $where
                );
        $users = $query->getResult();
{'fraction_non_alphanumeric': 0.11885790172642763, 'fraction_numerical': 0.0, 'mean_word_length': 2.529274004683841, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3434472', 'n_tokens_mistral': 405, 'n_tokens_neox': 395, 'n_words': 102}