This method is used only when there is a custom key_setter set.

        Do not override this method.
160585
def _default_key_setter(self, name, subject):
        
        if is_config_item(subject):
            self.add_item(name, subject)
        elif is_config_section(subject):
            self.add_section(name, subject)
        else:
            raise TypeError(
                'Section items can only be replaced with items, '
                'got {type}. To set item value use ...{name}.value = <new_value>'.format(
                    type=type(subject),
                    name=name,
                )
            )
164461
def set_key(cls, k, v):
        
        k = cls.__name__ + "__" + k
        session[k] = v
384792
public void setKeys(java.util.Collection<KeyListEntry> keys) {
        if (keys == null) {
            this.keys = null;
            return;
        }

        this.keys = new com.amazonaws.internal.SdkInternalList<KeyListEntry>(keys);
    }
1079830
public void clearTemporaryKeyField()
    {
        Record record = this.getOwner();
        KeyArea keyArea = record.getKeyArea(0);
        if (keyArea.getKeyFields(false, true) == 2)
            if (m_fakeKeyField != null) // Always
                keyArea.removeKeyField(m_fakeKeyField);
    }
944795
public void keyReleased(KeyEvent event)
    {
        lastKeyName = EMPTY_KEY_NAME;
        lastCode = NO_KEY_CODE;

        final Integer key = Integer.valueOf(event.getCode());
        keys.remove(key);
        pressed.remove(key);
    }
737365
def setSenderKeyState(self, id, iteration, chainKey, signatureKey):
        
        del self.senderKeyStates[:]
        self.senderKeyStates.append(SenderKeyState(id, iteration, chainKey, signatureKeyPair=signatureKey))
146227
public void setKeyValues(String keyName, Object obj)
    {
        if (this.keyValues == null)
        {
            this.keyValues = new HashMap<String, Object>();
        }
        this.keyValues.put(keyName, obj);
    }
1099101
def set?(key)
      check_key!(key)
      expires!(key)
      @data.keys.include?(key.to_s)
    end
1015937
@Deprecated
    public void removeValueForKey(final String key) {
        CleverTapAPI cleverTapAPI = weakReference.get();
        if (cleverTapAPI == null) {
            Logger.d("CleverTap Instance is null.");
        } else {
            cleverTapAPI.removeValueForKey(key);
        }
    }
221468
private void setOverride(final String key, final String value) {
    final boolean doSecurely = key.startsWith("_");
    final String fullKey = defaultEnvironment + "." + key;
    if (value != null) {
      final String oldValue = _getProperty("", key, null);
      if (value.equals(oldValue)) {
        // Same value, not really an override.
        if (doSecurely) {
          logger.warning("*** IGNORED  *** Ignoring redundant override " + fullKey + "=***PROTECTED***");
        } else {
          logger.warning("*** IGNORED  *** Ignoring redundant override " + fullKey + "='" + value + "'");
        }
      } else {
        logger.warning("*** OVERRIDE *** Setting override " + fullKey);
        if (doSecurely) {
          logger.warning("                 New value=***PROTECTED***");
          logger.warning("                 Old value='" + oldValue + "'");
        } else {
          logger.warning("                 New value='" + value + "'");
          logger.warning("                 Old value='" + oldValue + "'");
        }
        allProperties.setProperty(fullKey, value);
      }
    }
  }
205831
public void doesNotContainKey(@NullableDecl Object key) {
    check("keySet()").that(actual().keySet()).doesNotContain(key);
  }
502784
@Override
    public void setCustomProperty(String key, String value)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setCustomProperty", new Object[] { "Key=" + key, "Value=" + value });

        _customProperties.put(key, value);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setCustomProperty");
    }
370045
void setFirstKey(ByteArraySegment newKey) {
        Preconditions.checkState(getCount() > 0, "BTreePage is empty. Cannot set first key.");
        Preconditions.checkArgument(newKey.getLength() == this.config.getKeyLength(), "Incorrect key length.");
        Preconditions.checkArgument(KEY_COMPARATOR.compare(newKey, getKeyAt(0)) <= 0,
                "Replacement first Key must be smaller than or equal to the existing first key.");

        this.data.copyFrom(newKey, 0, newKey.getLength());
    }
1263218
public void setTicketKeys(SessionTicketKey[] keys) {
        if (keys == null) {
            throw new NullPointerException("keys");
        }
        SSLContext.setSessionTicketKeys(ctx, keys);
    }
549295
public void setKey(int keyIndex, float time, final float[] values)
    {
        int index = keyIndex * mFloatsPerKey;
        Integer valSize = mFloatsPerKey-1;

        if (values.length != valSize)
        {
            throw new IllegalArgumentException("This key needs " + valSize.toString() + " float per value");
        }
        mKeys[index] = time;
        System.arraycopy(values, 0, mKeys, index + 1, values.length);
    }
279719
def set(self, **kwargs):
        '''
        
        '''
        for lower_key, value in kwargs.items():
            if lower_key.lower() != lower_key:
                raise ValueError('Requires lowercase: %s' % lower_key)
            key = lower_key.upper()
            try:
                getattr(self, key)
            except (AttributeError, ConfigurationError):
                raise AttributeError('Cannot override %s' % key)
            self.overridden_settings[key] = value
399920
protected void setSecretKeyAbove(Tuple<SecretKey,byte[]> key) {
        up_prot.up(new Event(Event.SET_SECRET_KEY, key));
    }