Return the `c:rich` element representing the text frame for this data
        label, newly created with its ancestors if not present.
12415
def _get_or_add_rich(self):
        
        dLbl = self._get_or_add_dLbl()

        # having a c:spPr or c:txPr when a c:tx is present causes the "can't
        # save" bug on bubble charts. Remove c:spPr and c:txPr when present.
        dLbl._remove_spPr()
        dLbl._remove_txPr()

        return dLbl.get_or_add_rich()
401010
def get_label(key):
    
    if key in rel:
        if mpl.rcParams['text.usetex']:
            return rel[key]['label_latex']
        else:
            return rel[key]['label_mpl']
    else:
        return key
551412
def write_title_rich(title, horiz = nil, layout = nil, overlay = nil) # :nodoc:
      @writer.tag_elements('c:title') do
        # Write the c:tx element.
        write_tx_rich(title, horiz)
        # Write the c:layout element.
        write_layout(layout, 'text')
        # Write the c:overlay element.
        write_overlay if overlay
      end
    end
624423
private String getText(SNode node, VisualizerInput input)
  {
    SDocumentGraph sDocumentGraph = input.getSResult().getDocumentGraph();

    List<DataSourceSequence> sequences = sDocumentGraph.
      getOverlappedDataSourceSequence(node, SALT_TYPE.STEXT_OVERLAPPING_RELATION);

    if (sequences != null && sequences.size() > 0)
    {
      return ((STextualDS) sequences.get(0).getDataSource()).getText().
        substring(sequences.get(0).getStart().intValue(), sequences.get(0).getEnd().intValue());
    }

    return "";
  }
418777
def enrich_literal(label)
      node = DPLA::MAP::Controlled::Language.new()
      node.providedLabel = label

      match = match_iso(label.to_s)
      match = match_label(label.to_s) if match.node?

      # if match is still a node, we didn't find anything
      return node if match.node?

      node.exactMatch = match 
      node.prefLabel = RDF::ISO_639_3[match.rdf_subject.qname[1]].label.last
      node
    end
17127
private static String getText(Element element) {
    if (element.getFirstChild() == null) {
      return "";
    }
    return ((Text) element.getFirstChild()).getData().trim();
  }
195438
def get_label(self, prop, value):
        
        if value is None:
            return '{}: <FONT color="red">{}</FONT>'.format(prop, "not set")
        else:
            return "{}:{}".format(prop, value)
733226
def get_or_add_tx_rich(self):
        
        tx = self.get_or_add_tx()
        tx._remove_strRef()
        tx.get_or_add_rich()
        return tx
185355
def label(self, t):
        
        if self.labels is None:
            return None
        prev_label = None
        for l in self.labels:
            if l.time > t:
                break
            prev_label = l
        if prev_label is None:
            return None
        return prev_label.name
593068
def space_labels(document):
    """"""
    for label in document.xpath('.//bold'):
        # TODO: Make this more permissive to match chemical_label in parser
        if not label.text or not re.match('^\(L?\d\d?[a-z]?\):?$', label.text, re.I):
            continue
        parent = label.getparent()
        previous = label.getprevious()
        if previous is None:
            text = parent.text or ''
            if not text.endswith(' '):
                parent.text = text + ' '
        else:
            text = previous.tail or ''
            if not text.endswith(' '):
                previous.tail = text + ' '
        text = label.tail or ''
        if not text.endswith(' '):
            label.tail = text + ' '
    return document
590727
def tree_label(self):
        ''''''
        titles = []
        page = self
        while page:
            titles.append(page.title)
            page = page.parent
        return smart_text(' > '.join(reversed(titles)))
640253
def autoencoder_residual_text():
  """"""
  hparams = autoencoder_residual()
  hparams.bottleneck_bits = 32
  hparams.batch_size = 1024
  hparams.hidden_size = 64
  hparams.max_hidden_size = 512
  hparams.bottleneck_noise = 0.0
  hparams.bottom = {
      "inputs": modalities.identity_bottom,
      "targets": modalities.identity_bottom,
  }
  hparams.top = {
      "targets": modalities.identity_top,
  }
  hparams.autoregressive_mode = "none"
  hparams.sample_width = 1
  return hparams
1061012
def getTextualNode(self, subreference: CtsReference=None):
        
        if not isinstance(subreference, CtsReference):
            subreference = CtsReference(subreference)
        return self.textObject.getTextualNode(subreference)
543927
function generateDOMLabel(node) {
    var label = document.createElement('span');
    label.className = 'nodeLabel';
    label.id = node._id;
    if (node.name){
        label.innerText = node.name;
    } else {
        label.innerText = node._id;
    }
    divGraph.appendChild(label);
    return label;

}
1101435
public String getText(Object element)
	{
		String result = VdmElementLabels.getTextLabel(element, evaluateTextFlags(element));
		// if (result.length() == 0 && (element instanceof IStorage)) {
		// result= fStorageLabelProvider.getText(element);
		// }
		return decorateText(result, element);
	}
1047255
public int rtf(XPathContext support)
  {

    DTM frag = support.createDocumentFragment();

    frag.appendTextChild(str());

    return frag.getDocument();
  }
66507
def _nodeGetNonDefaultsDict(self):
        
        dct = {}
        if self.data != self.defaultData:
            dct['data'] = self.data.toString() # calls QFont.toString()
        return dct