Updates the value of property at given index. If idx is
        None, all controlled indices will be updated. This method
        should be called directly by the user in very unusual
        conditions.
16725
def update_model(self, idx=None):
        """"""
        if idx is None:
            for w in self._widgets:
                idx = self._get_idx_from_widget(w)
                try: val = self._read_widget(idx)
                except ValueError: pass
                else: self._write_property(val, idx)
                pass
            pass
        else:
            try: val = self._read_widget(idx)
            except ValueError: pass
            else: self._write_property(val, idx)
        return
399412
def _updateColumnValues(self, index, hidden):
        
        if hidden or not self.isVisible():
            return
        
        column = self.columnOf(index)
        if not column in self._loadedColumns:
            self._loadedColumns.add(column)
            
            records = self.collectRecords()
            self.loadColumnsRequested.emit(records, column)
68204
public void setInt(int index, int value)
    {
        checkPositionIndexes(index, index + SIZE_OF_INT, this.length);
        index += offset;
        data[index] = (byte) (value);
        data[index + 1] = (byte) (value >>> 8);
        data[index + 2] = (byte) (value >>> 16);
        data[index + 3] = (byte) (value >>> 24);
    }
1103465
def set(index, value)
      node = self

      # Traverse the tree to find the right node to add or replace the value.
      while node do
        # Once we have reached a leaf node we can insert or replace the value.
        if node.is_leaf?
          if index >= node.values.size
            node.fatal "Set index (#{index}) larger than values array " +
              "(#{node.values.size})."
          end
          node.values[index] = value
          return
        else
          # Descend into the right child node to add the value to.
          cidx = node.search_child_index(index)
          index -= node.offsets[cidx]
          node = node.children[cidx]
        end
      end

      node.fatal "Could not find proper node to set the value while " +
        "looking for index #{index}"
    end
461556
public void set (int index, E e) {
		if (index >= data.length) {
			grow(index * 2);
		}
		size = index + 1;
		data[index] = e;
	}
397086
public void set(int index, float value)
    {
        if (index < offset + array.length && index >= offset)
        {
            array[index - offset] += value;
        }
        else if (index < offset)
        {  //expand from left
            int gap = offset - index;
            int newSize = gap + array.length;
            float[] newArray = new float[newSize];
            newArray[0] = value;
            for (int i = 0; i < array.length; i++)
            {
                newArray[gap + i] = array[i];
            }
            this.offset = index;
            this.array = newArray;
        }
        else
        {
            int gap = index - (array.length + offset - 1);
            int newSize = array.length + gap;
            float[] newArray = new float[newSize];
            newArray[newSize - 1] = value;
            for (int i = 0; i < array.length; i++)
            {
                newArray[i] = array[i];
            }
            this.array = newArray;
        }
    }
1209423
def setCurrentIndex(self, index):
        
        if 0 <= index and index < len(self._stack):
            self._blockStack = True
            self._index = index
            self.emitCurrentChanged()
            self._blockStack = False
            return True
        return False
120288
public void setProperty(String name, String value, int propertyIndex) {
        additionalProperties[propertyIndex].setName(name);
        additionalProperties[propertyIndex].setValue(value);
    }
395799
def update_index(self, name, value):
        
        kwargs = {}
        kwargs['index.' + name] = value if isinstance(value, basestring) else json.dumps(value)
        return self.post(**kwargs)
948722
public void setInt(int index, int value)
    {
        checkIndexLength(index, SizeOf.SIZE_OF_INT);
        unsafe.putInt(base, address + index, value);
    }
255897
public void set(long index, Block value)
    {
        Block currentValue = array.get(index);
        if (currentValue != null) {
            currentValue.retainedBytesForEachPart((object, size) -> {
                if (currentValue == object) {
                    // track instance size separately as the reference count for an instance is always 1
                    sizeOfBlocks -= size;
                    return;
                }
                if (trackedObjects.decrementAndGet(object) == 0) {
                    // decrement the size only when it is the last reference
                    sizeOfBlocks -= size;
                }
            });
        }
        if (value != null) {
            value.retainedBytesForEachPart((object, size) -> {
                if (value == object) {
                    // track instance size separately as the reference count for an instance is always 1
                    sizeOfBlocks += size;
                    return;
                }
                if (trackedObjects.incrementAndGet(object) == 1) {
                    // increment the size only when it is the first reference
                    sizeOfBlocks += size;
                }
            });
        }
        array.set(index, value);
    }
741019
def set(self, value):
        """"""
        self._elk.send(cx_encode(self._index, value))
991834
public void setRightValue(int index, Object value)
   {
      m_definedRightValues[index] = value;

      if (value instanceof FieldType)
      {
         m_symbolicValues = true;
      }
      else
      {
         if (value instanceof Duration)
         {
            if (((Duration) value).getUnits() != TimeUnit.HOURS)
            {
               value = ((Duration) value).convertUnits(TimeUnit.HOURS, m_properties);
            }
         }
      }

      m_workingRightValues[index] = value;
   }
406050
public void removeValue(int index) {

        m_content.removeValue(getPath(), getLocale(), index);

        // re-initialize the value list
        m_values = m_content.getValues(getPath(), getLocale());
    }
1294023
@Override
	public void updateArray(final int columnIndex, final Array x) throws SQLException {
		wrapped.updateArray(columnIndex, x);
	}
805109
public void set1Value(int index, String newValue) {
        try {
            value.set( index, newValue );
        }
        catch (IndexOutOfBoundsException e) {
            Log.e(TAG, "X3D MFString set1Value(int index, ...) out of bounds." + e);
        }
        catch (Exception e) {
            Log.e(TAG, "X3D MFString set1Value(int index, ...)  exception " + e);
        }
    }
942475
def _add_to_index(index, obj):
    """"""
    id_set = index.value_map.setdefault(indexed_value(index, obj), set())
    if index.unique:
        if len(id_set) > 0:
            raise UniqueConstraintError()
    id_set.add(obj.id)