Return the top section. In the context of a partial refresh, this will be the section to refresh only
@return {aria.templates.Section}
507464
function () {
                var res = this._topSection;
                res.html = this._out.join("");
                this._delegate = null;
                this._out = null;
                this._topSection = null; // so that the section is not disposed in the MarkupWriter destructor
                return res;
            }
42448
def top_sections(self):
        

        top_line = self.text.split('\n')[0]
        sections = len(top_line.split('+')) - 2

        return sections
123757
function () {
            if (!this.collapsed) {
                while (!domUtils.isBody(this.startContainer) &&
                    this.startOffset == this.startContainer[this.startContainer.nodeType == 3 ? 'nodeValue' : 'childNodes'].length &&
                    this.startContainer[this.startContainer.nodeType == 3 ? 'nodeValue' : 'childNodes'].length
                    ) {

                    this.setStartAfter(this.startContainer);
                }
                while (!domUtils.isBody(this.endContainer) && !this.endOffset &&
                    this.endContainer[this.endContainer.nodeType == 3 ? 'nodeValue' : 'childNodes'].length
                    ) {
                    this.setEndBefore(this.endContainer);
                }
            }
            return this;
        }
1115878
public function appendSection()
    {
        $last = array_pop($this->sectionStack);

        if (isset($this->sections[$last]))  {
            $this->sections[$last] .= ob_get_clean();
        } else {
            $this->sections[$last] = ob_get_clean();
        }

        return $last;
    }
970285
function (section, skipInsertHTML, refreshArgs) {
            // PROFILING // var profilingId = this.$startMeasure("Inserting section in DOM from " +
            // PROFILING // this.tplClasspath);
            var differed;
            var params = this._cfg;
            var tpl = this._tpl;
            var domElt = section.id ? section.getDom() : params.tplDiv;

            if (domElt) {
                if (!skipInsertHTML) {
                    section.insertHTML(domElt, refreshArgs);
                }
                if (!section.id) {
                    // the whole template is being refreshed; let's apply the correct size
                    // to its DOM container
                    ariaTemplatesLayout.setDivSize(domElt, tpl.$width, tpl.$height, 'hidden');
                }

                // update expando of container
                ariaUtilsDelegate.addExpando(domElt, section.delegateId);

                differed = section.initWidgets();
                this.__processDifferedItems(differed);
            } else {
                // TODO: LOG ERROR
            }
            if (!skipInsertHTML) {
                // Redundant, but makes sure that insertSection doesn't dispose the template
                this.$assert(743, params.tplDiv && tpl);
                ariaUtilsDom.refreshDomElt(params.tplDiv);
            }
            // PROFILING // this.$stopMeasure(profilingId);
        }
101020
def _top_element(self):
        """"""
        top = etree.Element("testsuites")
        comment = etree.Comment("Generated for testrun {}".format(self.testrun_id))
        top.append(comment)
        return top
124312
function (args) {
            // PROFILING // var profilingId = this.$startMeasure("Generate markup for " + this.tplClasspath);
            var validatorParam = {
                json : args,
                beanName : "aria.templates.CfgBeans.GetRefreshedSectionCfg"
            };
            ariaCoreJsonValidator.normalize(validatorParam);
            args = validatorParam.json;

            var sectionId = args.section;

            var sectionToReplace = null;
            if (sectionId != null) {
                sectionToReplace = (this._mainSection ? this._mainSection.getSectionById(sectionId) : null);
                if (sectionToReplace == null) {
                    // PROFILING // this.$stopMeasure(profilingId);
                    this.$logError(this.SECTION_OUTPUT_NOT_FOUND, [this.tplClasspath, sectionId]);
                    return null;
                }

                sectionToReplace.beforeRefresh(args);
                // desactivate section to refresh, not to trigger bindings when creating the new section
                sectionToReplace.stopListeners();

            }
            var writerCallback = args.writerCallback;
            if (writerCallback == null) {
                writerCallback = {
                    fn : this._callMacro,
                    args : args.macro,
                    scope : this
                };
            }
            var section = this.createSection(writerCallback, {
                ownIdMap : (sectionToReplace == null)
            });
            if (section == null) {
                // PROFILING // this.$stopMeasure(profilingId);
                return null;
            }
            if (sectionToReplace == null) {
                // replace the whole main section
                if (this._mainSection) {
                    this._mainSection.$dispose();
                }
                this._mainSection = section;
            } else {
                sectionToReplace.removeContent();
                sectionToReplace.removeDelegateIdsAndCallbacks();
                sectionToReplace.disposeProcessingIndicator();
                section.moveContentTo(sectionToReplace);
                sectionToReplace.html = section.html;
                section.$dispose();
                section = sectionToReplace;
                section.resumeListeners();
            }
            // PROFILING // this.$stopMeasure(profilingId);
            return section;
        }
901975
public static HtmlTree SECTION() {
        HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION);
        htmltree.setRole(Role.REGION);
        return htmltree;
    }
836758
public Node getLastChild()
  {

    ElemTemplateElement lastChild = null;

    for (ElemTemplateElement node = m_firstChild; node != null;
            node = node.m_nextSibling)
    {
      lastChild = node;
    }

    return lastChild;
  }
1264513
def get_top(self):
        '''
        
        '''
        try:
            tops = self.get_tops()
        except SaltRenderError as err:
            log.error('Unable to render top file: %s', err.error)
            return {}
        return self.merge_tops(tops)
653913
public Content getContentHeader() {
        HtmlTree div = new HtmlTree(HtmlTag.DIV);
        div.addStyle(HtmlStyle.contentContainer);
        return div;
    }
233535
function(topSection, subsection) {
			var data = this.getSection(topSection);
			while (data) {
				if (subsection in data)
					return data[subsection];

				data = this.getSection(data['extends']);
			}
		}
352401
protected function getLastSection()
    {
        if (0 === count($this->sections)) {
            throw new RenderException('Cannot end a section. You must start a section first.');
        }

        $keys = array_keys($this->sections);
        $key = array_pop($keys);

        return $this->sections[$key];
    }
1172448
function () {
            var suggestionContainer = this._textInputField.parentNode;
            var highlightedArray = [];
            for (var i = 0; i < suggestionContainer.children.length - 1; i++) {
                var suggestionNode = suggestionContainer.children[i];
                var suggestionNodeClassList = new aria.utils.ClassList(suggestionNode);
                if (suggestionNodeClassList.contains("highlight")) {
                    highlightedArray.push(i + 1);
                }
                suggestionNodeClassList.$dispose();
            }
            return highlightedArray;
        }
1372196
function () {
      if (this.edirty) {
          var en=this.attEltNodes;
          if (en) {
              for (var i=0,sz=en.length; sz>i; i++) {
                  en[i].refresh();
              }
              // if content changed we have to rebuild childElements
              this.retrieveAttElements();
              this.initChildComponents();
          }
          // Change content of the controller
          json.set(this.controller,"$content",this.getControllerContent());

          this.edirty=false;
      }
      // warning: the following refresh may change the component type and
      // as such ctlWrapper could become null if new component is a template
      $CptNode.refresh.call(this);
      if (this.ctlWrapper) {
        // refresh cpt through $refresh if need be
        this.ctlWrapper.refresh();
      }
  }
1221508
public TOP getRef() {
    if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_ref == null)
      jcasType.jcas.throwFeatMissing("ref", "de.julielab.jules.types.ConceptMention");
    return (TOP)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_ref)));}
1014786
function () {
        var self = this, elm = self.getEl(), rect = self.layoutRect(), mainButtonElm, menuButtonElm;

        self._super();

        mainButtonElm = elm.firstChild;
        menuButtonElm = elm.lastChild;

        $(mainButtonElm).css({
          width: rect.w - DomUtils.getSize(menuButtonElm).width,
          height: rect.h - 2
        });

        $(menuButtonElm).css({
          height: rect.h - 2
        });

        return self;
      }