original_string: public static function SetDirectory($dir) {
      if (!is_dir($dir)) {
        if (!@\mkdir($dir, 0700, TRUE)) {
          throw new \InvalidArgumentException("dir $dir does not exist and could not be created");
        }
      }
  
      self::$DIR = realpath($dir);
    }
code: public static function SetDirectory($dir) {
      if (!is_dir($dir)) {
        if (!@\mkdir($dir, 0700, TRUE)) {
          throw new \InvalidArgumentException("dir $dir does not exist and could not be created");
        }
      }
  
      self::$DIR = realpath($dir);
    }
code_tokens: public static function SetDirectory ( $ dir ) { if ( ! is_dir ( $ dir ) ) { if ( ! @ \ mkdir ( $ dir , 0700 , TRUE ) ) { throw new \ InvalidArgumentException ( "dir $dir does not exist and could not be created" ) ; } } self :: $ DIR = realpath ( $ dir ) ; }
docstring: Set directory where all persistent objects and relations will be saved.
  @param String $dir
  @throws \InvalidArgumentException
docstring_tokens: Set directory where all persistent objects and relations will be saved .