Set the related |EmbeddedXlsxPart| to *xlsx_part*. Assume one does
        not already exist.
969503
def xlsx_part(self, xlsx_part):
        
        rId = self._chart_part.relate_to(xlsx_part, RT.PACKAGE)
        externalData = self._chartSpace.get_or_add_externalData()
        externalData.rId = rId
866317
def relate_to(self, part, reltype):
        
        rel = self.rels.get_or_add(reltype, part)
        return rel.rId
1151683
protected void setLayoutToMiddleSegment(int segmentLength,
                                           int priority,
                                           boolean isPooled,
                                           boolean isExchange,
                                           int packetNumber,
                                           int conversationId,
                                           int requestNumber)
   {
      if (tc.isEntryEnabled()) SibTr.entry(this, tc, "setLayoutToMiddleSegment", new Object[]{""+segmentLength, ""+priority, ""+isPooled, ""+isExchange, ""+packetNumber, ""+conversationId, ""+requestNumber});
      setLayoutToConversation(segmentLength, priority, isPooled, isExchange, packetNumber, JFapChannelConstants.SEGMENT_SEGMENTED_FLOW_MIDDLE, conversationId, requestNumber, null, null);
      layout = JFapChannelConstants.XMIT_SEGMENT_MIDDLE;
      transmissionRemaining = segmentLength;
      if (tc.isEntryEnabled()) SibTr.exit(this, tc, "setLayoutToMiddleSegment");
   }
1144519
public function addPart(self $part = null): self
    {
        return $this->parts[] = $part === null ? new self : $part;
    }
132034
function _setElem(elem, elemName, elemParams, elemArr, bySelfClose, tmplRule, outputH) {
  var ret,
      paramsEx,
      fixedExTagName = fixExTagName(elemName, tmplRule);

  if (fixedExTagName) {
    elemName = fixedExTagName;
  }

  if (isEx(elemName, tmplRule, true)) {
    ret = elem.substring(1, elem.length - 1);

    if (fixedExTagName) {
      ret = tmplRule.extensionRule + lowerFirst(ret);
    }
  } else if (isStrPropS(elemName, tmplRule)) {
    ret = _transformToEx(true, elemName, elemParams, tmplRule);
  } else if (isPropS(elemName, tmplRule)) {
    ret = _transformToEx(false, elemName, elemParams, tmplRule);
  } else {
    var retS = _getSplitParams(elem, tmplRule, outputH);

    ret = retS.elem;
    paramsEx = retS.params;
  }

  if (bySelfClose) {
    var retC = [ret];

    if (paramsEx) {
      retC.push(paramsEx);
    }

    elemArr.push(retC);
  } else {
    elemArr.push(ret);

    if (paramsEx) {
      elemArr.push(paramsEx);
    }
  }
}
1156065
public void addSplitsForSha1() {
        Validate.notNull(tableOperations, "tableOperations must not be null");
        String hexadecimal = "123456789abcde";
        SortedSet<Text> edgeSplits = new TreeSet<>();
        SortedSet<Text> textSplits = new TreeSet<>();
        Collection<Text> existingEdgeSplits = null;
        Collection<Text> existingTextSplits = null;
        
        try {
            existingEdgeSplits = tableOperations.listSplits(getEdgeTable());
            existingTextSplits = tableOperations.listSplits(getTextTable());
        } catch (TableNotFoundException | AccumuloSecurityException | AccumuloException e) {
            throw new D4MException("Error reading splits.", e);
        }
        
        for (byte b : hexadecimal.getBytes(charset)) {
            Text splitPoint = new Text(new byte[]{b});
            if (not(existingEdgeSplits.contains(splitPoint))) {
                edgeSplits.add(splitPoint);
            }
            if (not(existingTextSplits.contains(splitPoint))) {
                textSplits.add(splitPoint);
            }
        }

        addSplits(getEdgeTable(), edgeSplits);
        addSplits(getTextTable(), textSplits);
    }
1334358
public void setSourceSubsampling(int pXSub, int pYSub) {
        // Re-fetch everything, if subsampling changed
        if (xSub != pXSub || ySub != pYSub) {
            dispose();
        }

        if (pXSub > 1) {
            xSub = pXSub;
        }
        if (pYSub > 1) {
            ySub = pYSub;
        }
    }
776859
def setStimIndex(self, row, stimIndex):
        ""
        newcomp = self._allComponents[row][stimIndex]
        self._model.removeComponent(row, 1)
        self._model.insertComponent(newcomp, row, 1)
195203
def setCol(self, x, l):
        """"""
        for i in xrange(0, self.__size):
            self.setCell(x, i, l[i])
86508
@SuppressWarnings("unchecked")
	public T setSheet(int sheetIndex) {
		try {
			this.sheet = this.workbook.getSheetAt(sheetIndex);
		} catch (IllegalArgumentException e) {
			this.sheet = this.workbook.createSheet();
		}
		if (null == this.sheet) {
			this.sheet = this.workbook.createSheet();
		}
		return (T) this;
	}
178910
public void setSuperTypeParts(String[] parts) {
        if (parts.length == 1) {
            this.root = true;
            this.immutable = "ImmutableBean".equals(parts[0]);
            this.superTypeFull = "";
            this.superTypeRaw = "";
            this.superTypeGeneric = "";
        } else {
            this.root = "DirectBean".equals(parts[0]);
            this.immutable = false;
            this.superTypeFull = parts[0];
            this.superTypeRaw = parts[1];
            if (parts[4] != null) {
                this.superTypeGeneric = parts[2] + ", " + parts[3] + ", " + parts[4];
            } else if (parts[3] != null) {
                this.superTypeGeneric = parts[2] + ", " + parts[3];
            } else if (parts[2] != null) {
                this.superTypeGeneric = parts[2];
            } else {
                this.superTypeGeneric = "";
            }
        }
    }
76652
def wr_xlsx(self, fout_xlsx, goids, sortby=None, **kws_usr):
        """"""
        nts = GoSubDag(goids, self.go2obj).get_nts(goids, sortby)
        kws_wr = kws_usr.copy()
        if 'fld2col_widths' not in kws_wr:
            kws_wr['fld2col_widths'] = self.fld2col_widths
        wr_xlsx_tbl(fout_xlsx, nts, **kws_wr)
24572
private void addPiece(String pc, String prefix, StringBuilder sb) {
        if (!pc.isEmpty()) {
            if (sb.length() > 0) {
                sb.append(prefix);
            }
            
            sb.append(pc);
        }
    }
642004
public void put(ElementType x) {
        if (full()) {
            getIdx = (getIdx + 1) % elements.length;
        } else {
            size++;
        }

        elements[putIdx] = x;
        putIdx = (putIdx + 1) % elements.length;
    }
1105700
public void setTypeParts(String[] parts) {
        this.typeFinal = parts[0] != null;
        this.typeScope = parts[1];
        this.typeFull = parts[2];
        this.typeRaw = parts[3];
        if (parts[8] != null) {
            this.typeGenericName = new String[] {parts[4], parts[6], parts[8]};
            this.typeGenericExtends = new String[3];
            this.typeGenericExtends[0] = parts[5] != null ? parts[5] : "";
            this.typeGenericExtends[1] = parts[7] != null ? parts[7] : "";
            this.typeGenericExtends[2] = parts[9] != null ? parts[9] : "";
        } else if (parts[6] != null) {
            this.typeGenericName = new String[] {parts[4], parts[6]};
            this.typeGenericExtends = new String[2];
            this.typeGenericExtends[0] = parts[5] != null ? parts[5] : "";
            this.typeGenericExtends[1] = parts[7] != null ? parts[7] : "";
        } else if (parts[4] != null) {
            this.typeGenericName = new String[] {parts[4]};
            this.typeGenericExtends = new String[1];
            this.typeGenericExtends[0] = parts[5] != null ? parts[5] : "";
        } else {
            this.typeGenericName = new String[0];
            this.typeGenericExtends = new String[0];
        }
    }
1072101
def set_cell(self, index, value):
        
        if self._sort:
            exists, i = sorted_exists(self._index, index)
            if not exists:
                self._insert_row(i, index)
        else:
            try:
                i = self._index.index(index)
            except ValueError:
                i = len(self._index)
                self._add_row(index)
        self._data[i] = value
523911
def new(cls, xlsx_blob, package):
        
        partname = package.next_partname(cls.partname_template)
        content_type = CT.SML_SHEET
        xlsx_part = cls(partname, content_type, xlsx_blob, package)
        return xlsx_part