<commit_before><?php

namespace AppBundle\Repository;

/**
 * TaskRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class TaskRepository extends \Doctrine\ORM\EntityRepository
{
}<commit_msg>add "display parcel for specific courier"<commit_after><?php

namespace AppBundle\Repository;

/**
 * TaskRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class TaskRepository extends \Doctrine\ORM\EntityRepository
{
    public function getAllTasksByPostmanId($postmanId){
        $taskRepository = $this->getDoctrine()->getRepository('AppBundle:Task');
        $tasks = $taskRepository->findByPostman($postmanId);
        $view = $this->view($tasks, 200);
        return $this->handleView($view);
    }
}

function getThingAction() {
    $loggedInUser = $this->container->get('security.token_storage')->getToken()->getUser();
    $taskRepository = $this->getDoctrine()->getRepository('AppBundle:Task');
    $tasks = $taskRepository->findByPostman($loggedInUser->getId());
    $view = $this->view($tasks, 200);
    return $this->handleView($view);
}
{'fraction_non_alphanumeric': 0.13981244671781756, 'fraction_numerical': 0.005115089514066497, 'mean_word_length': 4.644230769230769, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '3943743', 'n_tokens_mistral': 340, 'n_tokens_neox': 334, 'n_words': 76}