Set first header line text
778738
def set_title(self, msg):
        
        self.s.move(0, 0)
        self.overwrite_line(msg, curses.A_REVERSE)
895142
function() {
    $('div[id] > :header:first').each(function() {
      $('<a class="headerlink">\u00B6</a>').
      attr('href', '#' + this.id).
      attr('title', _('Permalink to this headline')).
      appendTo(this);
    });
    $('dt[id]').each(function() {
      $('<a class="headerlink">\u00B6</a>').
      attr('href', '#' + this.id).
      attr('title', _('Permalink to this definition')).
      appendTo(this);
    });
  }
1081572
def set_header(self, name, value):
        
        self._headers[_hkey(name)] = [_hval(value)]
1234472
public void setHTML (int row, int column, String text, int colSpan, String... styles)
    {
        setHTML(row, column, text);
        if (colSpan > 0) {
            getFlexCellFormatter().setColSpan(row, column, colSpan);
        }
        setStyleNames(row, column, styles);
    }
174446
function headersToString(headers){
  var lines = [];
  for(var name in headers){
    lines.push(name + ': ' + headers[name]);
  }
  return lines.join('\n');
}
950065
def insert_line(self, line):
        """"""
        if self.current_block is not None:
            self.current_block.append(line)
        else:
            self.header.append(line)
571424
def header(head, text, over_char=None, under_char=None, center=True):
    
    lines = list(text.split('\n'))
    width = max(len(l) for l in lines)

    # Center or left-justify
    if center:
        head = head.center(width) + '\n'
    else:
        head = head.ljust(width) + '\n'

    # Underline head
    if under_char:
        head = head + under_char * width + '\n'

    # 'Overline' head
    if over_char:
        head = over_char * width + '\n' + head

    return head + text
1292648
def time_title_header_element(feature, parent):
    """"""
    _ = feature, parent  # NOQA
    header = time_title_header['string_format']
    return header.capitalize()
778523
@Override
    public void setText(String text) {
        if (headingToggle != null) {
            if (text == null) text = "";
            String s = headingToggle.getInnerHTML();
            int p = s.indexOf('<');
            if (p >= 0) s = text + s.substring(p);
            else s = text;
            headingToggle.setInnerHTML(s);
        } else if (!isInstance(getElement())) {
            if (headerPanel != null) {
                super.remove(headerPanel);
                headerPanel = null;
            }
            header.setText(text);
        }
    }
1227159
def version_title_header_element(feature, parent):
    """"""
    _ = feature, parent  # NOQA
    header = version_title_header['string_format']
    return header.capitalize()
1192615
def header(text, border="--"):
    
    if not text or not border:
        return text

    if border.endswith(" "):
        decorated = "%s%s" % (border, text)
        fmt = "{decorated}\n{hr}"

    else:
        decorated = "%s %s %s" % (border, text, border)
        fmt = "{hr}\n{decorated}\n{hr}"

    return fmt.format(decorated=decorated, hr=border[0] * len(decorated))
9120
def h_v_td(header, key, default):
        
        if key not in header:
            key = key.title()

        return header.get(key, default)
718940
def header_style(header)
      if header.type != :header
        raise "header_style called with non-header element"
      end
      line = element_line(header)
      if line.start_with?("#")
        if line.strip.end_with?("#")
          :atx_closed
        else
          :atx
        end
      else
        :setext
      end
    end
1168333
@Override
    public void setInline(boolean value) {
        inline = value;
        if (headingToggle != null) {
            JQMCommon.setInlineEx(headingToggle, value, JQMCommon.STYLE_UI_BTN_INLINE);
        }
    }
206620
def setText(self, sequence):
        """"""
        self.setToolTip(sequence)
        super(ShortcutLineEdit, self).setText(sequence)
323238
def print_header(text):
  """"""
  print()
  print('#'*(len(text)+4))
  print('# ' + text + ' #')
  print('#'*(len(text)+4))
  print()
1371457
def map_overview_header_element(feature, parent):
    """"""
    _ = feature, parent  # NOQA
    header = map_overview_header['string_format']
    return header.capitalize()