=======================================
436304
@Override
  public Regions getAvailableRegions(Integer pageNo)
      throws DigitalOceanException, RequestUnsuccessfulException {
    validatePageNo(pageNo);
    return (Regions) perform(new ApiRequest(ApiAction.AVAILABLE_REGIONS, pageNo, DEFAULT_PAGE_SIZE))
        .getData();
  }
490995
public function run()
    {
        Model::unguard();

        if(!OrderStatus::find(OrderStatus::PENDING_PAYMENT))
            OrderStatus::create([
                'id' => OrderStatus::PENDING_PAYMENT,
                'code' => 'pending_payment',
                'name' => 'Pending Payment',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PENDING_PAYMENT_APPROVAL))
            OrderStatus::create([
                'id' => OrderStatus::PENDING_PAYMENT_APPROVAL,
                'code' => 'pending_approval',
                'name' => 'Pending Payment Approval',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PENDING))
            OrderStatus::create([
                'id' => OrderStatus::PENDING,
                'code' => 'pending',
                'name' => 'Pending',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PROCESSING))
            OrderStatus::create([
                'id' => OrderStatus::PROCESSING,
                'code' => 'processing',
                'name' => 'Processing',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::SHIPPING))
            OrderStatus::create([
                'id' => OrderStatus::SHIPPING,
                'code' => 'shipping',
                'name' => 'Shipping',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::SHIPPED))
            OrderStatus::create([
                'id' => OrderStatus::SHIPPED,
                'code' => 'shipped',
                'name' => 'Shipped',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::COMPLETED))
            OrderStatus::create([
                'id' => OrderStatus::COMPLETED,
                'code' => 'completed',
                'name' => 'Completed',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::CANCELED))
            OrderStatus::create([
                'id' => OrderStatus::CANCELED,
                'code' => 'canceled',
                'name' => 'Canceled',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PARTIALLY_CANCELED))
            OrderStatus::create([
                'id' => OrderStatus::PARTIALLY_CANCELED,
                'code' => 'partially_canceled',
                'name' => 'Partially Canceled',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::REFUNDED))
            OrderStatus::create([
                'id' => OrderStatus::REFUNDED,
                'code' => 'refunded',
                'name' => 'Refunded',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PARTIALLY_REFUNDED))
            OrderStatus::create([
                'id' => OrderStatus::PARTIALLY_REFUNDED,
                'code' => 'partially_refunded',
                'name' => 'Partially Refunded',
                'is_system' => true,
            ]);

        $this->call(SentinelGroupSeedTableSeeder::class);
    }
1239169
public function init()
    {
        parent::init();
        $db = $this->getDb();
        if (!isset($this->options['user'])) {
            $this->options['user'] = $db->username;
        }
        if (!isset($this->options['password'])) {
            $this->options['password'] = $db->password;
        }
        $parsed = $this->parseConnectionString($db->connectionString);
        if (!isset($this->options['host'])) {
            $this->options['host'] = $parsed['hostName'];
        }
        if (!isset($this->options['port']) && isset($parsed['port'])) {
            $this->options['port'] = $parsed['port'];
        }
    }
252069
public void init(Database database, String host, String port) throws DevFailed {
        super.init(database, host, port);
    }
536938
public function initialize()
    {

        $this->length = null;
        $this->life = null;
        $this->autoApprove = false;
        $this->expires = null;

    }
1362420
public void init(final Connection connection, final String devname) throws DevFailed {
		 connection.url = new TangoUrl(devname);
		 connection.setDevice_is_dbase(false);
		 connection.devname = connection.url.devname;

		 // Check if connection is possible
		 if (connection.url.protocol == TANGO && connection.url.use_db) {
	    	 connection.ior = get_exported_ior(connection);
		 }
    }
832681
public function init()
    {
        if (true === $this->beforeInit()) {
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_AFTER_SAVE, [$this, 'onSave']);
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_AFTER_UPDATE, [$this, 'onUpdate']);
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_BEFORE_DELETE, [$this, 'onDelete']);
        }
    }
214308
public function process()
    {
        if (!$this->getForm()->isSubmitted()) {
            return;
        }

        parent::process();

        $this->processValues();

        if (
            $this->required &&
            count($this->values) == 0 &&
            $this->isSensitive()
        ) {
            $this->addMessage($this->getValidationMessage('required'));
        }
    }
734008
public function execute()
    {
        $this->insertID = $this->table->insertOne($this->context + $this->data);
        parent::execute();
    }
1079014
public void addTangoDataReadyListener(ITangoDataReadyListener listener, String attrName, String[] filters, boolean stateless)
            throws DevFailed {
        TangoDataReady tangoDataReady;
        String key = deviceName+"/"+attrName;
        if ((tangoDataReady = tango_data_ready_source.get(key)) == null) {
            tangoDataReady = new TangoDataReady(deviceProxy, attrName, filters);
            tango_data_ready_source.put(key, tangoDataReady);
        }

        synchronized (moni) {
            tangoDataReady.addTangoDataReadyListener(listener, stateless);
        }
    }
755843
public function handle(): void
    {
        $this->dbMigrate();
        $this->populateReactionTypes();
        $this->populateReacters();
        $this->populateReactants();
        $this->populateReactions();
        $this->dbCleanup();
        $this->filesystemCleanup();
    }
467198
public static void initialize() {
		if (isInitialized) {
			return;
		}
		isInitialized = true;
		printLogo();
		try {
			logger.info("--- Para.initialize() [{}] ---", Config.ENVIRONMENT);

			for (InitializeListener initListener : INIT_LISTENERS) {
				if (initListener != null) {
					initListener.onInitialize();
					logger.debug("Executed {}.onInitialize().", initListener.getClass().getName());
				}
			}
			logger.info("Instance #{} initialized.", Config.WORKER_ID);
		} catch (Exception e) {
			logger.error("Failed to initialize Para.", e);
		}
	}
245242
private function init()
    {
        /** @var $genericDevice \Wurfl\Device\ModelDeviceInterface */
        $genericDevice = $this->getDevice(WurflConstants::GENERIC);

        if (!is_null($genericDevice)) {
            $this->capabilitiesName       = array_keys($genericDevice->getCapabilities());
            $this->groupIDCapabilitiesMap = $genericDevice->getGroupIdCapabilitiesNameMap();
        }
    }
1183651
public function Bind()
	{
		$this->getAbstractNode(0)->Bind();
		/**
		 * @var QName $qname
		 */
		$qname = $this->getQNVarName();
		$this->_varRef = $this->getContext()->RunningContext->NameBinder->PushVar( $qname );
		$this->getAbstractNode(1)->Bind();
		$this->getContext()->RunningContext->NameBinder->PopVar();
	}
214326
public function run()
    {
        if (!is_array($rules = $this->getRules())) {
            $rules = $this->convertToArray($rules);
        }

        if (!is_array($datas = $this->getDatas())) {
            $datas = $this->convertToArray($datas);
        }

        foreach ($rules as $key => $rule) {
            $parsedRules = explode("|", $rule);

            foreach ($parsedRules as $parsedRule) {
                $required = $this->handleRule($parsedRule, $key, $datas);

                if ($required !== null && $required === false) {
                    break;
                }
            }
        }
    }
419248
public function run()
    {
        // truncate any tables which are about to be updated
        $this->emptyTables();

        // loop through types and execute
        foreach ($this->dataMigrationTypeProvider->getTypes() as $dataMigration) {
            /** @var AbstractDataMigration $dataMigration */
            $dataMigration->execute();
            $this->logActions($dataMigration);
        }

        /**
         * Save config value
         */
        $this->saveAllOrderStatusesAsString();
        $this->saveAllProductTypesAsString();
        $this->saveAllProductVisibilitiesAsString();
        $this->generateAndSaveCode();
    }
196097
public function process()
    {
        $this->getVisitor();
        $this->saveVisitor();

        if (!$this->visitor->hasUserId() && !Yii::$app->user->isGuest) {
            $this->visitor->setUserId(Yii::$app->user->identity->getId());
        }

        if ($this->detectFirstVisitSource) {

        }

        if ($this->detectAllVisitsSources) {

        }

        if ($this->storeLastActivity) {
            $this->visitor->save();
        }

        if ($this->storeVisitedPages) {

        }
    }