Set the variable name with the values of var
337871
def set_var_slice(self, name, start, count, var):
        

        method = "set_var_slice"

        A = var
        metadata = {
            method: name,
            "start": start,
            "count": count
        }
        send_array(self.socket, A, metadata)
        A, metadata = recv_array(
            self.socket, poll=self.poll, poll_timeout=self.poll_timeout,
            flags=self.zmq_flags)
43721
def set_variable(name, value)
      current_path = '/api/v1/variables'
      payload = { 'name' => name, 'value' => value }.to_json
      @conn.put(current_path, payload)
    end
1295861
def set_variable(var, val, override=false)

      fexp, v = locate_set_var(var, override) || locate_var(var)

      fexp.un_set_variable(:set, v, val, (fexp.h.fei != h.fei)) if fexp
    end
1012284
def __set_name(self, value):
        '''
        
        '''
        if not value or not len(value):
            raise ValueError("Invalid name.")

        self.__name = value
177414
public void setVariable(String name, Iterable<? extends WindupVertexFrame> frames)
    {
        Map<String, Iterable<? extends WindupVertexFrame>> frame = peek();
        if (!Iteration.DEFAULT_VARIABLE_LIST_STRING.equals(name) && findVariable(name) != null)
        {
            throw new IllegalArgumentException("Variable \"" + name
                        + "\" has already been assigned and cannot be reassigned");
        }

        frame.put(name, frames);
    }
1034746
def variables(self):
    """"""
    result = []
    for _, value in sorted(self.variable_map.items()):
      if isinstance(value, list):
        result.extend(value)
      else:
        result.append(value)
    return result
299735
function createVariable() {
    var id = nextVariableId++;
    var name = '$V';

    do {
        name += variableTokens[id % variableTokensLength];
        id = ~~(id / variableTokensLength);
    } while (id !== 0);

    return name;
}
721150
public static Object setVariable(PageContext pc, String var, Object value) throws PageException {
	StringList list = parse(pc, new ParserString(var), false);
	if (list == null) throw new InterpreterException("invalid variable name declaration [" + var + "]");

	if (list.size() == 1) {
	    return pc.undefinedScope().set(list.next(), value);
	}

	// min 2 elements
	int scope = scopeString2Int(pc.ignoreScopes(), list.next());
	Object coll;
	if (scope == Scope.SCOPE_UNDEFINED) {
	    coll = pc.touch(pc.undefinedScope(), KeyImpl.init(list.current()));
	}
	else {
	    coll = VariableInterpreter.scope(pc, scope, true);
	    // coll=pc.scope(scope);
	}

	while (list.hasNextNext()) {
	    coll = pc.touch(coll, KeyImpl.init(list.next()));
	}
	return pc.set(coll, KeyImpl.init(list.next()), value);
    }
706427
public void setVariables(Map<String, String> variables)
    {
        if (this.variables != null)
        {
            this.variables.putAll(variables);
        }
        else
        {
            this.variables = variables;
        }
    }
316044
protected function setVars()
    {
        $this->getModel()->setFaIcon('fa-html5');
        $this->getModel()->setHasId(false);
        $this->getModel()->setTemplate('html.html.twig');
    }
1170975
function set(appName, tagValues, callback) {
    if (!isObject(tagValues)) {
      return callback(new Error('To set a variable pass an object'));
    }

    commons.post(format('/%s/apps/%s/config/', deis.version, appName), {
      tags: tagValues
    },function onSetResponse(err, result) {
      callback(err, result ? result.tags : null);
    });
  }
56955
def set(self, name, value):
        """"""
        if not hasattr(self, 'funcs'):
            raise StartupError('startup cannot be called again')
        self.variable_values[name] = value
692022
def assign_variable_names(self):
        

        for var in self._variables:
            if isinstance(var, SimStackVariable):
                if var.name is not None:
                    continue
                if var.ident.startswith('iarg'):
                    var.name = 'arg_%x' % var.offset
                else:
                    var.name = 's_%x' % (-var.offset)
                    # var.name = var.ident
            elif isinstance(var, SimRegisterVariable):
                if var.name is not None:
                    continue
                var.name = var.ident
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));
	}
1119404
def var(self):
        """"""
        if self._var is None:
            self._var = symbol.var(self.name, shape=self.shape, dtype=self.dtype,
                                   lr_mult=self.lr_mult, wd_mult=self.wd_mult,
                                   init=self.init, stype=self._stype)
        return self._var
1037907
function replaceValuesWithVariableNames (variables, prefix) {
  const map = {}

  Object.keys(variables || {}).forEach((variableName) => {
    map[variableName] = `var(${formatVariableName(variableName, prefix)})`
  })

  return map
}
1234517
def p_variable_statement(self, p):
        
        p[0] = self.asttypes.VarStatement(p[2])
        p[0].setpos(p)