original_string: public function createNewFile($mode = null)
      {
          if ($this->isAbsolute()) {
              if (is_null($mode)) {
                  $mode = $this->defaul_permission;
              }
  
              if ($resource = fopen($this->getPathname(), 'x')) {
                  fclose($resource);
                  $this->chmod($mode);
                  return true;
              }
              return false;
          } else {
              throw new FileException('Given file path is not a absolute path.');
          }
      }
code: public function createNewFile($mode = null)
      {
          if ($this->isAbsolute()) {
              if (is_null($mode)) {
                  $mode = $this->defaul_permission;
              }
  
              if ($resource = fopen($this->getPathname(), 'x')) {
                  fclose($resource);
                  $this->chmod($mode);
                  return true;
              }
              return false;
          } else {
              throw new FileException('Given file path is not a absolute path.');
          }
      }
code_tokens: public function createNewFile ( $ mode = null ) { if ( $ this -> isAbsolute ( ) ) { if ( is_null ( $ mode ) ) { $ mode = $ this -> defaul_permission ; } if ( $ resource = fopen ( $ this -> getPathname ( ) , 'x' ) ) { fclose ( $ resource ) ; $ this -> chmod ( $ mode ) ; return true ; } return false ; } else { throw new FileException ( 'Given file path is not a absolute path.' ) ; } }
docstring: create a empty file, named by the pathname
  
  @param       int     $mode       optional file permission
  @return      bool                returns true if the file was successfully created
  @throws      FileException
docstring_tokens: create a empty file named by the pathname