original_string: protected function _isMaildir($dirname)
      {
          if (file_exists($dirname . '/new') && !is_dir($dirname . '/new')) {
              return false;
          }
          if (file_exists($dirname . '/tmp') && !is_dir($dirname . '/tmp')) {
              return false;
          }
          return is_dir($dirname . '/cur');
      }
code: protected function _isMaildir($dirname)
      {
          if (file_exists($dirname . '/new') && !is_dir($dirname . '/new')) {
              return false;
          }
          if (file_exists($dirname . '/tmp') && !is_dir($dirname . '/tmp')) {
              return false;
          }
          return is_dir($dirname . '/cur');
      }
code_tokens: protected function _isMaildir ( $ dirname ) { if ( file_exists ( $ dirname . '/new' ) && ! is_dir ( $ dirname . '/new' ) ) { return false ; } if ( file_exists ( $ dirname . '/tmp' ) && ! is_dir ( $ dirname . '/tmp' ) ) { return false ; } return is_dir ( $ dirname . '/cur' ) ; }
docstring: check if a given dir is a valid maildir
  
  @param string $dirname name of dir
  @return bool dir is valid maildir
docstring_tokens: check if a given dir is a valid maildir