original_string: public function setCompileDir($dir)
  	{
  		$this->compileDir = rtrim($dir, '/\\').DIRECTORY_SEPARATOR;
  		if (is_writable($this->compileDir) === false) {
  			throw new Dwoo_Exception('The compile directory must be writable, chmod "'.$this->compileDir.'" to make it writable');
  		}
  	}
code: public function setCompileDir($dir)
  	{
  		$this->compileDir = rtrim($dir, '/\\').DIRECTORY_SEPARATOR;
  		if (is_writable($this->compileDir) === false) {
  			throw new Dwoo_Exception('The compile directory must be writable, chmod "'.$this->compileDir.'" to make it writable');
  		}
  	}
code_tokens: public function setCompileDir ( $ dir ) { $ this -> compileDir = rtrim ( $ dir , '/\\' ) . DIRECTORY_SEPARATOR ; if ( is_writable ( $ this -> compileDir ) === false ) { throw new Dwoo_Exception ( 'The compile directory must be writable, chmod "' . $ this -> compileDir . '" to make it writable' ) ; } }
docstring: sets the compile directory and automatically appends a DIRECTORY_SEPARATOR
  
  @param string $dir the compile directory
docstring_tokens: sets the compile directory and automatically appends a DIRECTORY_SEPARATOR