<commit_before><?php
/**
 * Litus is a project by a group of students from the KU Leuven. The goal is to create
 * various applications to support the IT needs of student unions.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 *
 * @license http://litus.cc/LICENSE
 */

namespace ApiBundle\Controller;

use Zend\View\Model\ViewModel;

/**
 * MemberController
 * @author <NAME> <<EMAIL>>
 */
class MemberController extends \ApiBundle\Component\Controller\ActionController\ApiController
{
    public function allAction()
    {
        $this->initJson();
        if (!($academicYear = $this->getCurrentAcademicYear())) {
            return new ViewModel();
        }

        $result = array();

        $members = $this->getEntityManager()
            ->getRepository('CommonBundle\Entity\User\Person\Academic')
            ->findAllMembers($academicYear);
        foreach ($members as $member) {
            $result[] = (object) array(
                'id' => $member->getId(),
                'identification' => $member->getUniversityIdentification(),
                'firstName' => $member->getFirstName(),
                'lastName' => $member->getLastName(),
                'barcode' => $member->getBarcode() ? $member->getBarcode()->getBarcode() : '',
                'organization_status' => $member->getOrganizationStatus($academicYear) ? $member->getOrganizationStatus($academicYear)->getStatus() : "",
            );
        }

        return new ViewModel(
            array(
                'result' => $result,<commit_msg>Fix Scrutinizer (double quotes)<commit_after><?php
/**
 * Litus is a project by a group of students from the KU Leuven. The goal is to create
 * various applications to support the IT needs of student unions.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 *
 * @license http://litus.cc/LICENSE
 */

namespace ApiBundle\Controller;

use Zend\View\Model\ViewModel;

/**
 * MemberController
 * @author <NAME> <<EMAIL>>
 */
class MemberController extends \ApiBundle\Component\Controller\ActionController\ApiController
{
    public function allAction()
    {
        $this->initJson();
        if (!($academicYear = $this->getCurrentAcademicYear())) {
            return new ViewModel();
        }

        $result = array();

        $members = $this->getEntityManager()
            ->getRepository('CommonBundle\Entity\User\Person\Academic')
            ->findAllMembers($academicYear);
        foreach ($members as $member) {
            $result[] = (object) array(
                'id' => $member->getId(),
                'identification' => $member->getUniversityIdentification(),
                'firstName' => $member->getFirstName(),
                'lastName' => $member->getLastName(),
                'barcode' => $member->getBarcode() ? $member->getBarcode()->getBarcode() : '',
                'organization_status' => $member->getOrganizationStatus($academicYear) ? $member->getOrganizationStatus($academicYear)->getStatus() : '',
            );
        }

        return new ViewModel(
            array(
                'result' => $result,
{'fraction_non_alphanumeric': 0.16381278538812785, 'fraction_numerical': 0.0, 'mean_word_length': 2.68172268907563, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 107, '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': '1555088', 'n_tokens_mistral': 1024, 'n_tokens_neox': 1003, 'n_words': 228}