Sets the code to manipulate.
490547
protected function setCode(array $tokens, int $line = 0): void
    {
        $this->tokens = $tokens;
        $this->line = $line;
    }
664934
def set(request):
    """"""

    def inner(func, obj, value):
        result_code = func(obj, request, value)
        if result_code is not constants.OK:
            raise OpusError(result_code)

    return inner
969036
def set_python(self, value):
        """"""
        if self.multiselect:
            value = value or []
            elements = []

            for element in value:
                self.validate_value(element)
                elements.append(element)

            value = elements
        else:
            self.validate_value(value)

        self._set(value)
647310
public function setCode( $value )
	{
		$this->_checkCode( $value );

		$this->_values['code'] = (string) $value;
		$this->setModified();
	}
1245243
public function setCode($code)
    {
        if ($code instanceof PagSeguroPaymentMethodCode) {
            $this->code = $code;
        } else {
            $this->code = new PagSeguroPaymentMethodCode($code);
        }
    }
949840
def set(self, section, option, value=''):
        '''
        
        '''
        self._string_check(value)
        super(GitConfigParser, self).set(section, option, value)
463251
def set_code(self, code):
        """"""

        # Get attributes from code

        attributes = []
        strip = lambda s: s.strip('u').strip("'").strip('"')
        for attr_dict in parse_dict_strings(unicode(code).strip()[19:-1]):
            attrs = list(strip(s) for s in parse_dict_strings(attr_dict[1:-1]))
            attributes.append(dict(zip(attrs[::2], attrs[1::2])))

        if not attributes:
            return

        # Set widgets from attributes
        # ---------------------------

        # Figure attributes
        figure_attributes = attributes[0]

        for key, widget in self.figure_attributes_panel:
            try:
                obj = figure_attributes[key]
                kwargs_key = key + "_kwargs"
                if kwargs_key in figure_attributes:
                    widget.set_kwargs(figure_attributes[kwargs_key])

            except KeyError:
                obj = ""

            widget.code = charts.object2code(key, obj)

        # Series attributes
        self.all_series_panel.update(attributes[1:])
1280571
public void setControlValue(Object objValue)
    {
        if (objValue instanceof String)
            m_control.setText(objValue.toString());
        m_bDirty = false;
    }
136880
function() {
      var t = this,
          json = t.model.toJSON({trim:false});
      t.sourceView.model = json;
      t.sourceView.setData();
      t.editor.val(JSON.stringify(json, null, 2));
    }
1101566
private function fixateCode(int $code): self
    {
        $this->setCode($code);
        $this->fixed = true;
        return $this;
    }
295808
protected void setupKeying() {
		setOnKeyPressed(event -> {
			switch (event.getCode()) {
			case LEFT:
				moveLeft(event.isShiftDown(), event.isControlDown(), false);
				event.consume();
				break;
			case RIGHT:
				moveRight(event.isShiftDown(), event.isControlDown(), false);
				event.consume();
				break;
			case UP:
				if (event.isAltDown()) {
					zoomIn();
				} else {
					moveUp(event.isShiftDown(), event.isControlDown(), false);
				}
				event.consume();
				break;
			case DOWN:
				if (event.isAltDown()) {
					zoomOut();
				} else {
					moveDown(event.isShiftDown(), event.isControlDown(), false);
				}
				event.consume();
				break;
			case PAGE_UP:
				if (event.isControlDown()) {
					moveLeft(false, false, true);
				} else {
					moveUp(false, false, true);
				}
				event.consume();
				break;
			case PAGE_DOWN:
				if (event.isControlDown()) {
					moveRight(false, false, true);
				} else {
					moveDown(false, false, true);
				}
				event.consume();
				break;
				//$CASES-OMITTED$
			default:
			}
		});
	}
161887
function (code, items) {
        var langData = data[code];

        if (!langData) {
          data[code] = langData = {};
        }

        for (var name in items) {
          langData[name] = items[name];
        }

        this.setCode(code);
      }
755412
def p_program(self, p):
        """"""
        p[0] = self.asttypes.ES5Program(p[1])
        p[0].setpos(p)
482487
public function setExitCode($exitCode)
    {
        $this->exitCode = (int) $exitCode;

        $r = new \ReflectionProperty($this->error, 'code');
        $r->setAccessible(true);
        $r->setValue($this->error, $this->exitCode);
    }
1235538
def _set_condition(self, condition):
        """"""
        assert isinstance(condition, CodeExpression.TYPES)
        self.condition = condition
425835
protected function setCurrency($code)
    {
        $this->data_currency = array();

        if (!empty($code)) {
            $this->data_currency = $this->currency->get($code);
            if (empty($this->data_currency)) {
                $this->outputHttpStatus(404);
            }
        }
    }
1165556
void setMethod(Method m) {

        String remarkKey;

        method       = m;
        clazz        = method.getDeclaringClass();
        fqn          = null;
        specificName = null;
        sig          = null;
        colsResolved = false;
        remarkKey    = clazz.getName().replace('.', '_');
        hnd_remarks  = BundleHandler.getBundleHandle(remarkKey, null);
    }