Set a shared value in the container
552660
public function share(string $id, Closure $value, array $tags = []): void
    {
        $value = function ($container) use ($value) {
            static $sharedValue;

            if ($sharedValue === null) {
                $sharedValue = $value($container);
            }

            return $sharedValue;
        };
        $this->set($id, $value, $tags);
    }
1017350
def _set_shared_instances(self):
        """"""
        self.inqueue = self.em.get_inqueue()
        self.outqueue = self.em.get_outqueue()
        self.namespace = self.em.get_namespace()
732773
def set(self, key, val):
        
        data = self.get_data(True)
        if data is not None:
            data[key] = val
        else:
            raise RuntimeError("No task is currently running")
140229
def set(self, key, value):
        """"""
        if config.CACHE_POTENTIAL_PURVIEWS:
            self.cache[key] = value
547654
def set(self, block, name, value):
        
        self._kvs.set(self._key(block, name), value)
1162214
def put(self, key, value):
    '''
    '''

    value = self.serializedValue(value)
    self.child_datastore.put(key, value)
773179
public void setSharedStyle(org.kie.dmn.model.api.dmndi.Style value) {
        this.sharedStyle = value;
    }
196680
function set(value) {
      if (isObject(value)) {
        value.before = toInt(value.before);
        value.after = toInt(value.after);
      } else {
        value = toInt(value);
      }

      Peek._v = value;
    }
587281
def set(self, value):
        '''
        
        '''
        with self._reference.get_lock():
            self._reference.value = value
            return value
99944
public function set($name, $value): void
    {
        if ($this->isFrozen()) {
            throw new FrozenContainerException('Container is frozen');
        }

        if (is_array($value)) {
            $value = new static($value);
        }

        if ($name === null) {
            $this->data[] = $value;
        } else {
            $this->data[$name] = $value;
        }
    }
343478
function set(key, value) {
        if (global.localStorage) {
            var _value;
            try {
                _value = JSON.stringify(value);
                global.localStorage.setItem(key, _value);
                $(exports).triggerHandler("change", [key, value]);
            } catch (e) {
                console.error("[PreferenceManager] Failed to write preference value of key: " + key);
            }
        }
    }
553348
def share(self):
        
        tot = sum(self.total.values())
        return { k: v/float(tot) for k,v in self.total.items() }
109493
def setValue(self, key, value):
        
        curr = self._stack[-1]
        curr[key] = value
561831
def _setVal(self, name, val, defVal = None):
        """"""
        if val == defVal:
            return
        if not hasattr(self, "vals"):
            self.vals = {}
        self.vals[name] = val
691508
def _set(self, value):
    """"""
    if self.__is_parent_node():
      for child in self.__sub_counters.itervalues():
        child._set(value)
    else:
      self.__counter = value
1094272
def set_value(self, value):
        
        self._value = value
        setattr(self.target, self._name, value)
343742
void set(int row, int column, V value) {
        this.row = row;
        this.column = column;
        this.value = value;
    }