original_string: public function getMessagesPager(Subject $subject, $page = 1, $max = 20)
      {
          $messages = $this->messageRepo->findBySubject($subject);
  
          return $this->pagerFactory->createPagerFromArray($messages, $page, $max);
      }
code: public function getMessagesPager(Subject $subject, $page = 1, $max = 20)
      {
          $messages = $this->messageRepo->findBySubject($subject);
  
          return $this->pagerFactory->createPagerFromArray($messages, $page, $max);
      }
code_tokens: public function getMessagesPager ( Subject $ subject , $ page = 1 , $ max = 20 ) { $ messages = $ this -> messageRepo -> findBySubject ( $ subject ) ; return $ this -> pagerFactory -> createPagerFromArray ( $ messages , $ page , $ max ) ; }
docstring: Get the pager for the message list of a subject.
  
  @param \Claroline\ForumBundle\Entity\Subject $subject
  @param integer $page
  @param integer $max
  
  @return \Pagerfanta\Pagerfanta
docstring_tokens: Get the pager for the message list of a subject .