original_string: public function getOffset($limit = self::LIMIT, $order = 'desc') {
  		if ($limit === 0) {
  			return 0;
  		}
  		if ($order == 'asc' || $order == 'time_created::asc') {
  			$before = $this->getCommentsBefore(array('count' => true, 'offset' => 0));
  		} else {
  			$before = $this->getCommentsAfter(array('count' => true, 'offset' => 0));
  		}
  		
  		return floor($before / $limit) * $limit;
  	}
code: public function getOffset($limit = self::LIMIT, $order = 'desc') {
  		if ($limit === 0) {
  			return 0;
  		}
  		if ($order == 'asc' || $order == 'time_created::asc') {
  			$before = $this->getCommentsBefore(array('count' => true, 'offset' => 0));
  		} else {
  			$before = $this->getCommentsAfter(array('count' => true, 'offset' => 0));
  		}
  		
  		return floor($before / $limit) * $limit;
  	}
code_tokens: public function getOffset ( $ limit = self :: LIMIT , $ order = 'desc' ) { if ( $ limit === 0 ) { return 0 ; } if ( $ order == 'asc' || $ order == 'time_created::asc' ) { $ before = $ this -> getCommentsBefore ( array ( 'count' => true , 'offset' => 0 ) ) ; } else { $ before = $ this -> getCommentsAfter ( array ( 'count' => true , 'offset' => 0 ) ) ; } return floor ( $ before / $ limit ) * $ limit ; }
docstring: Calculate a page offset to the given comment
  
  @param int $limit Items per page
  @param int $order Ordering
  @return int
docstring_tokens: Calculate a page offset to the given comment