Set the properties. Override this to set any configuration up.
346417
public boolean setProperties(Dictionary<String, String> properties)
    {
        boolean success = super.setProperties(properties);
        if (success)
        {
            baseURL = null;
            if (this.getProperty(BASE_PATH) != null) {
                try {
                    baseURL = new URL(this.getProperty(BASE_PATH));
                } catch (MalformedURLException e) {
                    // Ignore errors. Probably a relative path to be added on send
                }
            }
        }
        return success;
    }
920338
public synchronized void setUp()
	{	
			if(initialized)
				return;

			String className = null;
			
			//Load
			Map<Object,Object> properties = settings.getProperties();
			
			String key = null;
			
			Object serviceObject = null;
			
			for(Map.Entry<Object,Object> entry : properties.entrySet())
			{
				key = String.valueOf(entry.getKey());
				
				if(key.startsWith(PROP_PREFIX))
				{
					try
					{
						className = (String)entry.getValue();
						serviceObject = ClassPath.newInstance(className);
						
						factoryMap.put(key, serviceObject);
					}
					catch (Throwable e)
					{
						throw new SetupException("CLASS:"+className+" ERROR:"+e.getMessage(),e);
					}
				}
			}
			
			initialized = true;
		}
592697
def set_default_preferences(self):
        

        LOGGER.debug("> Initializing default settings!")

        for key in self.__default_settings.allKeys():
            self.__settings.setValue(key, self.__default_settings.value(key))

        self.set_default_layouts()
        return True
779913
public void setProperties(Map<String, Value> properties) {
        if (properties != null) {
            this.properties = new HashMap<>(properties);
        } else {
            this.properties = null;
        }
    }
1203222
def set(name, value)
      if respond_to?(name)
        send("#{name}=",value)
      elsif Configuration.setting_name_to_property(name)
        send("#{Configuration.setting_name_to_property(name)}=",value)
      else
        build_settings[name] = value
      end
    end
1298530
protected function configureDataProperties(){
        if (isset($this->properties[self::PROPERTY_DATA])){
            $this->data->setProperties($this->properties['data']);
        }
        return $this;
    }
1370599
public void setCustomProperties() {
		if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
			SibTr.entry(tc, "setCustomProperties", this);

		// Set the properties that belong to the bus
		/*
		 * List props =
		 * ((ConfigObject)getEObject()).getObjectList(CT_SIBus.PROPERTIES_NAME);
		 * for (Iterator iter = props.iterator(); iter.hasNext();) {
		 * ConfigObject p = (ConfigObject)iter.next(); String name =
		 * p.getString(CT_Property.NAME_NAME, CT_Property.NAME_DEFAULT); String
		 * value = p.getString(CT_Property.VALUE_NAME,
		 * CT_Property.VALUE_DEFAULT); setCustomProperty(name, value); }
		 */

		if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
			SibTr.exit(tc, "setCustomProperties");
	}
647468
def set(self, name, default=0, editable=True, description=""):
        ''''''

        var, created = ConfigurationVariable.objects.get_or_create(name=name)

        if created:
            var.value = default

        if not editable:
            var.value = default

        var.editable = editable
        var.description = description
        var.save(reload=False)

        # ATTRIBUTES is accesible by any instance of VariablesManager
        self.ATTRIBUTES[var.name] = var.value
738458
@Override
    public void configure() {
        if (getProperties().containsKey(PROPERTY_NAME_FILE_PATTERN)) {
            filePattern = Pattern.compile(getProperties().get(PROPERTY_NAME_FILE_PATTERN).toString());
        } else {
            filePattern = Pattern.compile(DEFAULT_FILE_PATTERN);
        }
    }
907694
protected function setInstanceProperties()
    {
        $this->hook = $this->getInstance('gplcart\\core\\Hook');
        $this->config = $this->getInstance('gplcart\\core\\Config');
        $this->route = $this->getInstance('gplcart\\core\\CliRoute');
        $this->cli = $this->getInstance('gplcart\\core\\helpers\Cli');
        $this->user = $this->getInstance('gplcart\\core\\models\\User');
        $this->language = $this->getInstance('gplcart\\core\\models\\Language');
        $this->validator = $this->getInstance('gplcart\\core\\models\\Validator');
        $this->translation = $this->getInstance('gplcart\\core\\models\\Translation');
    }
1047514
def _set_properties(self, api_response):
        
        self._properties.clear()
        cleaned = api_response.copy()
        if "name" in cleaned:
            self.name = config_name_from_full_name(cleaned.pop("name"))
        self._properties.update(cleaned)
1025449
protected function initProperties()
    {
        $this->errorMessage = '';
        array_walk($this->config->dataPacket, [$this, 'initDataPacket']);
        $this->errorCode = 0;
    }
846789
public void setProperties(Map<String, Object> properties)
    {
        Record recUserRegistration = this.getUserRegistration();
        ((PropertiesField)recUserRegistration.getField(UserRegistrationModel.PROPERTIES)).setProperties(properties);
    }
147294
public void setConfigurationProperties(java.util.Collection<SdkConfigurationProperty> configurationProperties) {
        if (configurationProperties == null) {
            this.configurationProperties = null;
            return;
        }

        this.configurationProperties = new java.util.ArrayList<SdkConfigurationProperty>(configurationProperties);
    }
221097
def set_property(self, **kwargs):
        
        if not isinstance(self._value, nparray.ndarray):
            raise ValueError("value is not a nparray object")

        for property, value in kwargs.items():
            setattr(self._value, property, value)
1071802
public Configuration withProperties(java.util.Map<String, String> properties) {
        setProperties(properties);
        return this;
    }
1134226
private void setConfigProperty(Properties props, String propName, Object value) {
        if (value != null) {
            props.setProperty(propName, String.valueOf(value));
        }
    }