This is called from driver
428118
public byte[] getBoosterBytes() {
        final H2ONode boosterNode = getBoosterNode();
        final byte[] boosterBytes;
        if (H2O.SELF.equals(boosterNode)) {
            boosterBytes = XGBoost.getRawArray(XGBoostUpdater.getUpdater(_modelKey).getBooster());
        } else {
            Log.debug("Booster will be retrieved from a remote node, node=" + boosterNode);
            FetchBoosterTask t = new FetchBoosterTask(_modelKey);
            boosterBytes = new RPC<>(boosterNode, t).call().get()._boosterBytes;
        }
        return boosterBytes;
    }
427959
function registerDriver(Driver, name, options) {
  if (this.drivers[name]) {
    log.error(new Error('Driver "' + name + '" is already registered.'));
    return;
  }
  if (!Driver || !Driver.prototype || typeof Driver.prototype.send !== 'function') {
    log.error(new Error('Driver "' + name + '" should implement "send" method.'));
    return;
  }
  this.drivers[name] = new Driver(options || {});
}
554186
public static void resetDriver() {

		synchronized (DRIVERS_LIST) {
			DRIVERS_LIST.clear();
		}

		if (discovery != null) {
			discovery.shutdown();
			discovery = null;
		}

		driver = null;
	}
1091803
def destroy_webdriver(driver):
    

    # This is some very flaky code in selenium. Hence the retries
    # and catch-all exceptions
    try:
        retry_call(driver.close, tries=2)
    except Exception:
        pass
    try:
        driver.quit()
    except Exception:
        pass
58262
protected PaasEntityDriver doInitDriver(CloudFoundryPaasLocation location) {
        if (driver != null) {
            if (location.equals(driver.getLocation())) {
                return driver; //just reuse
            } else {
                log.warn("driver/location change is untested for {} at {}; " +
                        "changing driver and continuing", this, location);
                return newDriver(location);
            }
        } else {
            return newDriver(location);
        }
    }
170333
function instantiateDrivers(config, defaultDriverInstance) {
    config.actionConfigs.forEach(action => {
            action.driverInstance=action.driver?action.driver():defaultDriverInstance;
    });
    return config;
}
1239451
private void init(WebDriver driver, Reporter reporter) {
        this.driver = driver;
        this.reporter = reporter;

        App app = null;
        if (reporter != null) {
            app = reporter.getApp();
        }

        is = new Is(this);
        get = new Get(app, driver, this);
        verifyState = new VerifyState(this, reporter);
        assertState = new AssertState(this, reporter);
        waitForState = new WaitForState(this, reporter);
        verifyContains = new VerifyContains(this, reporter);
        assertContains = new AssertContains(this, reporter);
        verifyExcludes = new VerifyExcludes(this, reporter);
        assertExcludes = new AssertExcludes(this, reporter);
        verifyEquals = new VerifyEquals(this, reporter);
        assertEquals = new AssertEquals(this, reporter);
        waitForEquals = new WaitForEquals(this, reporter);
        verifyMatches = new VerifyMatches(this, reporter);
        assertMatches = new AssertMatches(this, reporter);
    }
597511
public static function detectImageDriver()
    {
        $extension = mb_strtolower(Craft::$app->getConfig()->getGeneral()->imageDriver);

        if ($extension === 'gd') {
            self::$imageDriver = 'gd';
        } else if ($extension === 'imagick') {
            self::$imageDriver = 'imagick';
        } else { // autodetect
            self::$imageDriver = Craft::$app->images->getIsGd() ? 'gd' : 'imagick';
        }
    }
1341393
public void setDriverManager(CmsDriverManager driverManager) {

        m_driverManager = driverManager;
        CmsDbContext dbc = m_dbContextFactory.getDbContext();
        try {
            m_adminUserId = m_driverManager.readUser(dbc, OpenCms.getDefaultUsers().getUserAdmin()).getId();
        } catch (CmsException e) {
            dbc.rollback();
            LOG.error(e.getLocalizedMessage(), e);
        } finally {
            dbc.clear();
        }
    }
140543
@CallerSensitive
    public static synchronized void deregisterDriver(Driver driver)
        throws SQLException {
        if (driver == null) {
            return;
        }

        println("DriverManager.deregisterDriver: " + driver);

        DriverInfo aDriver = new DriverInfo(driver);
        if(registeredDrivers.contains(aDriver)) {
            if (isDriverAllowed(driver, ClassLoader.getSystemClassLoader())) {
                 registeredDrivers.remove(aDriver);
            } else {
                // If the caller does not have permission to load the driver then
                // throw a SecurityException.
                throw new SecurityException();
            }
        } else {
            println("    couldn't find driver to unload");
        }
    }
253048
private static function createDriver()
    {
        if (self::$factory === null) {
            throw new \Exception("No loop driver factory set; Either pass a driver to Loop::execute or set a factory.");
        }

        $driver = self::$factory->create();

        if (!$driver instanceof Driver) {
            $type = is_object($driver) ? "an instance of " . get_class($driver) : gettype($driver);
            throw new \Exception("Loop driver factory returned {$type}, but must return an instance of Driver.");
        }

        return $driver;
    }
68669
public static void cleanup(Driver driver) {
        try {
            DriverManager.deregisterDriver(driver);
        } catch (SQLException ex) {
            LOGGER.debug("An error occurred unloading the database driver", ex);
        } catch (Throwable unexpected) {
            LOGGER.debug("An unexpected throwable occurred unloading the database driver", unexpected);
        }
    }
357748
public static function unload($driver_id = null)
	{
		if ($driver_id === null && ! empty(static::$_instance))
		{
			unset(static::$_instances[static::$_instance->get_id()]);
			static::$_instance = null;
			return true;
		}
		elseif (array_key_exists($driver_id, static::$_instances))
		{
			return false;
		}

		unset(static::$_instances[$driver_id]);
		return true;
	}
451497
function getDriverInstance(driver, config) {
  if (!(driver in protos.drivers)) throw new Error(util.format("The '%s' driver is not loaded. Load it with app.loadDrivers('%s')", driver, driver));
  return new protos.drivers[driver](config || {});
}
547264
function(config) {
    var me = this;
    me.id = me.getId();
    var Driver = DriverFactory.get(config.profile.driver);
    me.driver = new Driver({
        session: me,
        options: config.options,
        profile: config.profile
    });
    me.featureFile = config.featureFile;
    me.profile = config.profile;
    me.testRunner = null;
    me.feature = null;
    me.options = config.options;
    me.context = {};
    me.aborted = false;
    me.state = 'stopped';
    me.init();
}
364621
public static void ping(String driver, String url, String user, String password) {
		try {
			Class.forName(driver);
			Connection connection = DriverManager.getConnection(url, user, password);
			connection.close();
		} catch (Exception e) {
			JKExceptionUtil.handle(e);
		}
	}
1200024
def startLoop(self, useDriverLoop):
        '''
        
        '''
        if useDriverLoop:
            self._driver.startLoop()
        else:
            self._iterator = self._driver.iterate()