set community none
 set community (if only additive is configured)
 set internet 11:22 22:33 local-AS no-advertise no-export additive
 and combinations of the above
976441
def set_community_set(none, noadv, noexp, add, local, inter, asn)
      str = ''
      # reset first
      set_args_keys(state: 'no', string: str)
      config_set('route_map', 'set_community', @set_args)
      return unless none || noadv || noexp || add ||
                    local || inter || !asn.empty?
      str.concat('internet ') if inter
      asn.each do |elem|
        str.concat(elem + ' ')
      end
      str.concat('no-export ') if noexp
      str.concat('no-advertise ') if noadv
      str.concat('local-AS ') if local
      str.concat('additive ') if add
      str.concat('none') if none
      set_args_keys(state: '', string: str)
      config_set('route_map', 'set_community', @set_args)
    end
471269
def set_non_blocking(io)
      flag = File::NONBLOCK
      if defined?(Fcntl::F_GETFL)
        flag |= io.fcntl(Fcntl::F_GETFL)
      end
      io.fcntl(Fcntl::F_SETFL, flag)
    end
451681
function(opts, fm) {
				if (fm.UA.ltIE8 || !opts.extraOptions || !opts.extraOptions.creativeCloudApiKey) {
					this.disabled = true;
				} else {
					this.apiKey = opts.extraOptions.creativeCloudApiKey;
				}
			}
1025375
def set_snmp(community, host=None,
             admin_username=None, admin_password=None):
    '''
    
    '''
    return __execute_cmd('config -g cfgOobSnmp -o '
                         'cfgOobSnmpAgentCommunity {0}'.format(community),
                         host=host, admin_username=admin_username,
                         admin_password=admin_password)
1314314
public void setNoLocal(boolean noLocal)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setNoLocal", Boolean.valueOf(noLocal));

        this.noLocal = noLocal;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setNoLocal");
    }
539983
def _clear_community_details(community_details):

    '''
    
    '''

    for key in ['acl', 'mode']:
        _str_elem(community_details, key)

    _mode = community_details.get['mode'] = community_details.get('mode').lower()

    if _mode in _COMMUNITY_MODE_MAP.keys():
        community_details['mode'] = _COMMUNITY_MODE_MAP.get(_mode)

    if community_details['mode'] not in ['ro', 'rw']:
        community_details['mode'] = 'ro'  # default is read-only

    return community_details
883423
def pave_community(self):
        
        settings.project_config.path.mkdir()
        settings.project_config.base.write_text(self.context.base_text)
        settings.project_config.os_packages.write_text("[]")
        settings.project_config.lang_packages.write_text("{}")
450149
def set(self, group, **kwargs):
        

        # If this is a platform without LEDs there is nothing to do
        if not self.leds:
            return

        assert group in self.led_groups, \
            "%s is an invalid LED group, valid choices are %s" % \
            (group, ', '.join(self.led_groups.keys()))

        for led in self.led_groups[group]:
            for k in kwargs:
                setattr(led, k, kwargs[k])
649885
def send_community_nexus(val)
      reg = 'send-community extended|send-community standard|send-community'
      return 'both' if val.grep(/#{reg}/).size == 2
      val = val[0].split.last
      return 'standard' if val[/send-community/] # Workaround
      val
    end
890918
def set_creative_commons(self):
        """"""
        try:
            self.creative_commons = self.soup.find(
                'creativecommons:license').string
        except AttributeError:
            self.creative_commons = None
558876
def p_LOCAL(p):
    
    p[0] = None
    for label, line in p[2]:
        __DEBUG__("Setting label '%s' as local at line %i" % (label, line))

        MEMORY.set_label(label, line, local=True)
196958
def local_subset(self, *args, **kwargs):
        '''
        
        '''
        local = salt.client.get_local_client(mopts=self.opts)
        return local.cmd_subset(*args, **kwargs)
304378
public function setAddDN($add_dn) {
		if(!empty($add_dn)) {
			$this->add_dn = $add_dn;
		}
		else
		{
			$this->add_dn = $this->dn;
		}
	}
894563
function () {
                        //noinspection JSReferencingMutableVariableFromClosure
                        res.push({
                            combine: 1,
                            path: prefix + currentComboUrls.join(comboSep) + suffix,
                            mods: currentComboMods
                        });
                    }
631784
def add_opt(self, opt, value=None):
        
        if value is None:
            self.common_options += [opt]
        else:
            self.common_options += [opt, value]
704021
def _set_persistent_module(mod):
    '''
    
    '''
    if not mod or mod in mod_list(True) or mod not in \
            available():
        return set()
    __salt__['file.append'](_LOADER_CONF, _LOAD_MODULE.format(mod))
    return set([mod])
432290
def setAttributeNS(self, namespaceURI, localName, value):
        '''
        
        ''' 
        prefix = None
        if namespaceURI:
            try:
                prefix = self.getPrefix(namespaceURI)
            except KeyError, ex:
                prefix = 'ns2'
                self.setNamespaceAttribute(prefix, namespaceURI)
        qualifiedName = localName
        if prefix:
            qualifiedName = '%s:%s' %(prefix, localName)
        self._setAttributeNS(namespaceURI, qualifiedName, value)