Sets variable list
@throws IllegalArgumentException if variables list is {@code null}
345277
public void setVariables(List<VariableInitializer> variables) {
        assertNotNull(variables);
        this.variables.clear();
        for (VariableInitializer vi : variables) {
            addVariable(vi);
        }
    }
314393
protected function set_variables() {
		if ( ! is_array( $this->variables ) ) {
			$variable        = ( is_string( $this->variables ) && ! empty( $this->variables ) ) ? $this->variables : false;
			$this->variables = [];
			if ( $variable && empty( $this->variables ) ) {
				$this->variables[0]['name'] = $variable;
			}
		}
	}
861954
public void set(String key, String value)
    {
        if(key == null)
            throw new IllegalArgumentException("Null keys not allowed.");

        if(value == null)
            throw new IllegalArgumentException("Null values not allowed.");

        ArrayList<String> vals = new ArrayList<String>();
        vals.add(value);
        map.put(key,vals);

    }
1026351
@Override
    public void setTessVariable(String key, String value) {
        prop.setProperty(key, value);
    }
1120972
private void setVarargsIfNeeded(JCTree tree, Type varargsElement) {
        if (varargsElement != null) {
            switch (tree.getTag()) {
                case APPLY: ((JCMethodInvocation)tree).varargsElement = varargsElement; break;
                case NEWCLASS: ((JCNewClass)tree).varargsElement = varargsElement; break;
                default: throw new AssertionError();
            }
        }
    }
372810
public void setData(@Nullable List<C> data) {
        Preconditions.checkState(mGroupBasicAdapter != null, "Must call bindView() first");
        MVHelper mvHelper = (MVHelper) mServices.get(MVHelper.class);
        if (mvHelper != null)
            mvHelper.reset();
        this.mGroupBasicAdapter.setData(data);
    }
498989
@Override
  public void setValue(final List<T> value) {
    if (list == null && value == null) {
      // fast exit
      return;
    }
    if (list != null && list.isSameValue(value)) {
      // setting the same value as the one being edited
      list.refresh();
      return;
    }

    if (list != null) {
      // Having entire value reset, so dump the wrapper gracefully
      list.detach();
    }
    if (value == null) {
      list = null;
    } else {
      list = new ListValidationEditorWrapper<>(value, chain, editorSource, parentDriver);
      list.attach();
    }
  }
706102
public void setCidrAllowedList(java.util.Collection<String> cidrAllowedList) {
        if (cidrAllowedList == null) {
            this.cidrAllowedList = null;
            return;
        }

        this.cidrAllowedList = new java.util.ArrayList<String>(cidrAllowedList);
    }
1189397
public Environment withVariables(java.util.Map<String, String> variables) {
        setVariables(variables);
        return this;
    }
72037
public void setTagList(java.util.Collection<Tag> tagList) {
        if (tagList == null) {
            this.tagList = null;
            return;
        }

        this.tagList = new java.util.ArrayList<Tag>(tagList);
    }
168542
@Override
	protected void putVariables(Map<String, String> variables) {
		variables.put(ScopeFormat.SCOPE_TASK_VERTEX_ID, vertexId.toString());
		variables.put(ScopeFormat.SCOPE_TASK_NAME, taskName);
		variables.put(ScopeFormat.SCOPE_TASK_ATTEMPT_ID, executionId.toString());
		variables.put(ScopeFormat.SCOPE_TASK_ATTEMPT_NUM, String.valueOf(attemptNumber));
		variables.put(ScopeFormat.SCOPE_TASK_SUBTASK_INDEX, String.valueOf(subtaskIndex));
	}
67212
@Override
	protected void putVariables(Map<String, String> variables) {
		variables.put(ScopeFormat.SCOPE_OPERATOR_ID, String.valueOf(operatorID));
		variables.put(ScopeFormat.SCOPE_OPERATOR_NAME, operatorName);
		// we don't enter the subtask_index as the task group does that already
	}
97609
public void setValues(List<ProposedValue> values)
		throws InferenceException
	{
		m_resettingRules.clear();
        m_assignedFields.clear();
        m_readOnlyFields.clear();
        m_activateFields.clear();
        m_requiredFields.clear();
		m_excludes.clear();
		@SuppressWarnings("unused")
		int count=0;
		m_indenter.clear();
		s_log.debug("{}Setting values...",m_indenter);
		m_indenter.increment();
		for (ProposedValue pv: values)
		{
			RuleProxyField rpf = null;
			count++;
			try
			{
			    rpf = pv.getRuleProxyField();
		        addToAgenda(rpf);
				rpf.reset();
				rpf.setValue(pv.getValue());
			}
			catch (InferenceException e)
			{
                clearAgenda();
				throw e;
			}
	        finally
	        {
	        	removeUnknownField(rpf.getProxyField());
	            m_resettingRules.clear();
	            clearReviewList();
	        }
		}
		try
		{
			forwardChain();
		}
        catch (InferenceException e)
        {
            s_log.error(e.getMessage(),e);
            throw e;
        }
        catch (ConstraintViolationException e)
        {
            s_log.error(e.getMessage(),e);
            throw e;
        }
        catch (ValidationException e)
        {
            s_log.error(e.getMessage(),e);
            throw e;
        }
		finally
		{
            clearAgenda();
			m_resettingRules.clear();
            clearReviewList();
		}
		m_indenter.clear();
		// This effectively commits the changes to the exposed data
		boolean enabled = m_session.isEnabled();
		m_session.setEnabled(false);
        for (ProxyField proxyField: m_assignedFields)
        {
            proxyField.updateValue();
        }
        for (ProxyField proxyField: m_unknownFields)
        {
            proxyField.getFieldMetadata().setUnknown(true);
        }
        m_unknownFields.clear();
        for (ProxyField proxyField: m_activateFields)
        {
            proxyField.setInActive(false);
        }
        for (ProxyField proxyField: m_readOnlyFields)
        {
            proxyField.setReadOnly(true);
        }
        for (ProxyField proxyField: m_requiredFields)
        {
            proxyField.setRequired(true);
        }
        for (Exclude exclude: m_excludes)
        {
            ProxyField proxyField = exclude.getProxyField();
            proxyField.exclude(exclude.getKey());
            exclude.getRuleContext().addExclude(exclude);

        }
		m_session.setEnabled(enabled);
		s_log.debug("Finished Setting values");
	}
1057473
public void setSdParams(List<SDParam> sdParams) {
        if (null == sdParams) {
            throw new IllegalArgumentException("sdParams list cannot be null");
        }
        this.sdParams.addAll(sdParams);
    }
722019
public void setDomainList(FSArray v) {
    if (OntRelationMention_Type.featOkTst && ((OntRelationMention_Type)jcasType).casFeat_domainList == null)
      jcasType.jcas.throwFeatMissing("domainList", "de.julielab.jules.types.OntRelationMention");
    jcasType.ll_cas.ll_setRefValue(addr, ((OntRelationMention_Type)jcasType).casFeatCode_domainList, jcasType.ll_cas.ll_getFSRef(v));}
145819
@Override
    public void setListProperty(String propertyName, List<String> values) {
        setProperty(propertyName, values);

    }
381815
public CallActivityMock onExecutionAddVariables(final VariableMap variables){
    return this.onExecutionDo("addVariablesServiceMock_"+ randomUUID(),
      (execution) -> variables.forEach(execution::setVariable)
    );
  }