original_string: public function findAll($page = 1, $max = 50)
      {
          $offset = (($page - 1) * $max);
          $products = $this->getEm()->getRepository("AmulenShopBundle:Product")->findBy(array(), array(), $max, $offset);
          return $products;
      }
code: public function findAll($page = 1, $max = 50)
      {
          $offset = (($page - 1) * $max);
          $products = $this->getEm()->getRepository("AmulenShopBundle:Product")->findBy(array(), array(), $max, $offset);
          return $products;
      }
code_tokens: public function findAll ( $ page = 1 , $ max = 50 ) { $ offset = ( ( $ page - 1 ) * $ max ) ; $ products = $ this -> getEm ( ) -> getRepository ( "AmulenShopBundle:Product" ) -> findBy ( array ( ) , array ( ) , $ max , $ offset ) ; return $ products ; }
docstring: Find al Products with pagination options.
  @param  integer $page [description]
  @param  integer $max [description]
  @return ArrayCollection        Products.
docstring_tokens: Find al Products with pagination options .