original_string: public function dir()
      {
          $this->_name = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid($this->_prefix);
          if (!mkdir($this->_name)) {
              throw new \Exception('Cannot create temporary directory');
          }
          return $this;
      }
code: public function dir()
      {
          $this->_name = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid($this->_prefix);
          if (!mkdir($this->_name)) {
              throw new \Exception('Cannot create temporary directory');
          }
          return $this;
      }
code_tokens: public function dir ( ) { $ this -> _name = sys_get_temp_dir ( ) . DIRECTORY_SEPARATOR . uniqid ( $ this -> _prefix ) ; if ( ! mkdir ( $ this -> _name ) ) { throw new \ Exception ( 'Cannot create temporary directory' ) ; } return $ this ; }
docstring: Creates temporary directory
  
  @throws \Exception
  @return Temporary
docstring_tokens: Creates temporary directory