Set the chached value of the FLAGS field back into the message.
487637
private final void setFlags() {
        if (gotFlags) {
            getHdr2().setField(JsHdr2Access.FLAGS, Byte.valueOf(flags));
            gotFlags = false;
        }
    }
273474
def set_value(self, obj, value):
        """"""
        if value:
            obj.set_field_value(self.name, value)
        else:
            self.delete_value(obj)
531063
public void set(T value) {
        if (logger.isTraceEnabled()) {
            logger.trace("Name: " + display(name) + ": Value: " + display(value), new Throwable("Stack trace"));
        }
        T thisValue = offerInternal(value);
        if (thisValue != null) {
            throw new IllegalStateException("Value was already set to another value: " + name + " == [" + display(thisValue) + "], not: [" + display(value) + "]");
        }
    }
209290
def fromSet(self, values):
        
        value = 0
        for flag in values:
            value |= self(flag)
        return value
454287
def SetValue(self, row, col, value, refresh=True):
        """"""

        # Join code that has been split because of long line issue
        value = "".join(value.split("\n"))

        key = row, col, self.grid.current_table

        old_code = self.grid.code_array(key)
        if old_code is None:
            old_code = ""

        if value != old_code:
            self.grid.actions.set_code(key, value)
227730
public function reset()
    {
        $this->values[self::CODE] = null;
        $this->values[self::MSG] = null;
        $this->values[self::UKEY] = null;
    }
1207746
def value_change(self, model, name, info):
        """"""
        msg = self.model.get_message(info.new)

        self.view.set_msg(msg)
        return
659808
def set_APSR_flag_to_value(self, flag, value):
        
        if flag == 'N':
            bit = 31
        elif flag == 'Z':
            bit = 30
        elif flag == 'C':
            bit = 29
        elif flag == 'V':
            bit = 28
        else:
            raise AttributeError("Flag {} does not exist in the APSR".format(flag))

        if value:
            self.register['APSR'] |= (1 << bit)
        else:
            self.register['APSR'] -= (1 << bit) if (self.register['APSR'] & (1 << bit)) else 0
105461
def add_flag_values(self, entry, flag):
        '''  '''
        if flag in self.flags:
            self.flags[flag].append(entry)
892539
public function setFlags( $value )
	{
		if ( $value == $this->getFlags() ) { return; }

		$this->_checkFlags($value);
		$this->_values['flags'] = (int) $value;
		$this->setModified();
	}
790776
def set_flag(self, user, note=None, status=None):
        
        if not user.id:
            return None

        init_kwargs = {
            'user': user,
            'linked_object': self,
        }
        if note is not None:
            init_kwargs['note'] = note
        if status is not None:
            init_kwargs['status'] = status

        flag = get_flag_model()(**init_kwargs)
        try:
            flag.save()
        except IntegrityError:  # Record already exists.
            pass
        return flag
1102681
protected void processClearBackstack(int flags) {
        if ((flags & CLEAR_BACKSTACK) == CLEAR_BACKSTACK) {
            try {
                fm.popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
            } catch (IllegalStateException exception) {
                log.e(TAG, exception.getMessage(), exception);
            }
        }
    }
937864
def _ConvertWrapperMessage(self, value, message):
    """"""
    field = message.DESCRIPTOR.fields_by_name['value']
    setattr(message, 'value', _ConvertScalarFieldValue(value, field))
237749
def set_flagged(self, *, start_date=None, due_date=None):
        
        self.__status = Flag.Flagged
        start_date = start_date or dt.datetime.now()
        due_date = due_date or dt.datetime.now()
        if start_date.tzinfo is None:
            start_date = self.protocol.timezone.localize(start_date)
        if due_date.tzinfo is None:
            due_date = self.protocol.timezone.localize(due_date)
        self.__start = start_date
        self.__due_date = due_date
        self._track_changes()
1145680
def set_flag(self, request, val, fld):
        """"""
        if val is not None:
            val = bool(val)
            request.set(fld, val)
770259
protected function setMessage()
    {
        $this->message = sprintf($this->message, $this->providedValue, $this->currentDomain);
    }
830657
def reset(self, name):
        
        message_type = type(self)
        try:
            field = message_type.field_by_name(name)
        except KeyError:
            if name not in message_type.__by_name:
                raise AttributeError('Message %s has no field %s' % (
                    message_type.__name__, name))
        if field.repeated:
            self.__tags[field.number] = FieldList(field, [])
        else:
            self.__tags.pop(field.number, None)