Sets $theirCapabilities based on the Hello Exchange
425058
public function setTheirCapabilities()
    {
        if (isset($this->getResponse()->capabilities->capability)) {

            $this->theirCapabilities = (array)$this->getResponse()->capabilities->capability;
        }

    }
1320917
def setup_exchanges(app):
    
    with app.producer_or_acquire() as P:
        # Ensure all queues are noticed and configured with their
        # appropriate exchange.
        for q in app.amqp.queues.values():
            P.maybe_declare(q)
410475
def set_settings(self, releases=None, default_release=None):
        """"""
        super(ReplicaSets, self).set_settings(releases, default_release)
        Servers().set_settings(releases, default_release)
357708
def workflow_set_properties(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/setProperties' % object_id, input_params, always_retry=always_retry, **kwargs)
255691
function setDefaults (options) {
  var context = {
    request: {
      method: findMethod,
      type: null,
      ids: null,
      options: {},
      include: [],
      meta: {},
      payload: null
    },
    response: {
      meta: {},
      payload: null
    }
  }

  assign(context.request, options)

  return context
}
291128
function SetSettings(settings) {
		try { CFG = TLS.Fill(settings, CFG); Dbg = CFG.Debug } 
		catch (error) { LG.IF(error); }
	}
401084
function configure(options) {
    if (options && isArray(options.globalMessages)) {
        globalMessages = options.globalMessages;
    }
    if (options && isObject(options.errorTypes)) {
        errorTypes = options.errorTypes;
    }
}
763675
function validateObjectLimits( $package, $http, $currentStepID, &$stepMap, &$persistentData, &$errorList )
    {
        $options =& $persistentData['object_options'];

        $options['include_classes'] = $http->hasPostVariable( 'IncludeClasses' ) ? $http->postVariable( 'IncludeClasses' ) : false;
        $options['include_templates'] = $http->hasPostVariable( 'IncludeTemplates' ) ? $http->postVariable( 'IncludeTemplates' ) : false;
        $options['site_access_array'] = $http->postVariable( 'SiteAccesses' );
        $options['versions'] = $http->postVariable( 'VersionExport' );
        $options['language_array'] = $http->postVariable( 'Languages' );
        $options['node_assignment'] = $http->postVariable( 'NodeAssignment' );
        $options['related_objects'] = $http->postVariable( 'RelatedObjects' );
        $options['minimal_template_set'] = $http->hasPostVariable( 'MinimalTemplateSet' ) ? $http->postVariable( 'MinimalTemplateSet' ) : false;

        $result = true;
        if ( count( $persistentData['object_options']['language_array'] ) == 0 )
        {
            $errorList[] = array( 'field' => ezpI18n::tr( 'kernel/package', 'Selected nodes' ),
                                  'description' => ezpI18n::tr( 'kernel/package', 'You must choose one or more languages.' ) );
            $result = false;
        }

        if ( $persistentData['object_options']['include_templates'] &&
             count( $persistentData['object_options']['site_access_array'] ) == 0 )
        {
            $errorList[] = array( 'field' => ezpI18n::tr( 'kernel/package', 'Selected nodes' ),
                                  'description' => ezpI18n::tr( 'kernel/package', 'You must choose one or more site access.' ) );
            $result = false;
        }

        return $result;
    }
273366
function mset(array $vars,$prefix='',$ttl=0) {
		foreach ($vars as $key=>$val)
			$this->set($prefix.$key,$val,$ttl);
	}
289472
private function setEntete() {
        $params = "MIME-Version: 1.0\r\n";
        $params .= "Content-type: $this->type; charset=$this->encodage\r\n";
        $from = "From: $this->expediteur_nom <$this->expediteur_email>\r\n";
        $to = "To: $this->destinataire_nom <$this->destinataire_email>\r\n";
        $replay = "Reply-To: $this->expediteur_email\r\n";
        $this->entete = $from . $to . $replay . $params;
    }
860324
public static function setupGlobalVariables(): void
	{
		$_SERVER = array_intersect_key($_SERVER, array_flip([
			'PHP_SELF',
			'SCRIPT_NAME',
			'SERVER_ADDR',
			'SERVER_SOFTWARE',
			'HTTP_HOST',
			'DOCUMENT_ROOT',
			'OS',
			'argc',
			'argv',
		]));
		$_SERVER['REQUEST_TIME'] = 1234567890;
		$_ENV = $_GET = $_POST = [];
	}
524014
private function configure()
    {
        $keyCert = SignatureUtils::generateKeyCert($this->settings);
        $dir = dirname($this->settings['sp_key_file']);
        if (!is_dir($dir)) {
            throw new \InvalidArgumentException('The directory you selected for sp_key_file does not exist. Please create ' . $dir);
        }
        $dir = dirname($this->settings['sp_cert_file']);
        if (!is_dir($dir)) {
            throw new \InvalidArgumentException('The directory you selected for sp_cert_file does not exist. Please create ' . $dir);
        }
        file_put_contents($this->settings['sp_key_file'], $keyCert['key']);
        file_put_contents($this->settings['sp_cert_file'], $keyCert['cert']);
    }
223719
protected function setInitialResetters()
    {
        $app = $this->getBaseApp();
        $resetters = $this->config->get('swoole_http.resetters', []);

        foreach ($resetters as $resetter) {
            $resetterClass = $app->make($resetter);
            if (! $resetterClass instanceof ResetterContract) {
                throw new SandboxException("{$resetter} must implement " . ResetterContract::class);
            }
            $this->resetters[$resetter] = $resetterClass;
        }
    }
249995
def set_in(self, que_in, num_senders):
        """"""
        for p in self.processes:
            p.set_in(que_in, num_senders)
273419
function SetResponseParameters() {

        if (array_key_exists("posnetResponse", $this->arrayPosnetResponseXML)) {
            if (array_key_exists("approved", $this->arrayPosnetResponseXML['posnetResponse']))
                $this->posnetResponse->approved = $this->arrayPosnetResponseXML['posnetResponse']['approved'];
            if (array_key_exists("respCode", $this->arrayPosnetResponseXML['posnetResponse']))
                $this->posnetResponse->errorcode = $this->arrayPosnetResponseXML['posnetResponse']['respCode'];
            if (array_key_exists("respText", $this->arrayPosnetResponseXML['posnetResponse']))
                $this->posnetResponse->errormessage = $this->arrayPosnetResponseXML['posnetResponse']['respText'];

            if (array_key_exists("authCode", $this->arrayPosnetResponseXML['posnetResponse']))
                $this->posnetResponse->authcode = $this->arrayPosnetResponseXML['posnetResponse']['authCode'];
            if (array_key_exists("hostlogkey", $this->arrayPosnetResponseXML['posnetResponse']))
                $this->posnetResponse->hostlogkey = $this->arrayPosnetResponseXML['posnetResponse']['hostlogkey'];

            //Point Info
            if (array_key_exists("pointInfo", $this->arrayPosnetResponseXML['posnetResponse'])) {
                if (array_key_exists("point", $this->arrayPosnetResponseXML['posnetResponse']['pointInfo']))
                    $this->posnetResponse->point = $this->arrayPosnetResponseXML['posnetResponse']['pointInfo']['point'];
                if (array_key_exists("pointAmount", $this->arrayPosnetResponseXML['posnetResponse']['pointInfo']))
                    $this->posnetResponse->pointAmount = $this->arrayPosnetResponseXML['posnetResponse']['pointInfo']['pointAmount'];
                if (array_key_exists("totalPoint", $this->arrayPosnetResponseXML['posnetResponse']['pointInfo']))
                    $this->posnetResponse->totalPoint = $this->arrayPosnetResponseXML['posnetResponse']['pointInfo']['totalPoint'];
                if (array_key_exists("totalPointAmount", $this->arrayPosnetResponseXML['posnetResponse']['pointInfo']))
                    $this->posnetResponse->totalPointAmount = $this->arrayPosnetResponseXML['posnetResponse']['pointInfo']['totalPointAmount'];
            }
            //Instalment Info
            if (array_key_exists("instInfo", $this->arrayPosnetResponseXML['posnetResponse'])) {
                $this->posnetResponse->instcount = $this->arrayPosnetResponseXML['posnetResponse']['instInfo']['inst1'];
                $this->posnetResponse->instamount = $this->arrayPosnetResponseXML['posnetResponse']['instInfo']['amnt1'];
            }
            //VFT Info
            if (array_key_exists("vftInfo", $this->arrayPosnetResponseXML['posnetResponse'])) {
                $this->posnetResponse->vft_amount = $this->arrayPosnetResponseXML['posnetResponse']['vftInfo']['vftAmount'];
                $this->posnetResponse->vft_rate = $this->arrayPosnetResponseXML['posnetResponse']['vftInfo']['vftRate'];
                $this->posnetResponse->vft_daycount = $this->arrayPosnetResponseXML['posnetResponse']['vftInfo']['vftDayCount'];
            }
            //KOI Info
            if (array_key_exists("koiInfo", $this->arrayPosnetResponseXML['posnetResponse'])) {
                foreach ($this->arrayPosnetResponseXML['posnetResponse']['koiInfo'] as $vars => $value) {
                    if(is_string($vars) && $vars == 'code') {
                        $this->posnetResponse->koiInfo[1]['code'] = $value;
                    }
                    else if(is_string($vars) && $vars == 'message') {
                        $this->posnetResponse->koiInfo[1]['message'] = $value;
                    }
                    else if(is_long($vars) && is_array($value)) {
                        if (array_key_exists("code", $value) && array_key_exists("message", $value)) {
                            $this->posnetResponse->koiInfo[$vars] = $value;
                        }
                    }
                }
            }
        }
    }
1247863
def set(name, contents = '', type = 500)
      sd = @client.sd.update(name, contents)
      if sd.is_a?(Hash) && (sd["errorCode"] == -22) # doesn't exist
        sd = @client.sd.create(name, contents)
      end
      sd
    end
1130743
public function configSMTP() : void
    {
        $this->mailer->isSMTP();
        $this->mailer->SMTPDebug = 0;
        $this->mailer->Host = $this->settings['email']['smtpHost'];
        $this->mailer->Port = $this->settings['email']['smtpPort'];
        $this->mailer->SMTPAuth = true;
        $this->mailer->SMTPSecure = 'ssl';
        $this->mailer->Username = $this->settings['email']['smtpUser'];
        $this->mailer->Password = $this->settings['email']['smtpPass'];
    }