Title is either the chart header for a cable ratings page or above
        the opening description for a broadcast ratings page.
971236
def get_title(self):
        
        if self.category == 'cable':
            strings = get_strings(self.soup, 'strong')
        else:
            strings = get_strings(self.soup, 'b')

        if len(strings) == 0:
            strings = get_strings(self.soup, 'strong')

        if len(strings) >= 1 and self.category == 'cable':
            return strings[0]
        elif len(strings) > 0 and 'Fast' in strings[-1]:
            return strings[0]

        return ''.join(strings)
57576
def title(self):
        """"""
        try:
            return self._properties['title']
        except KeyError:
            metadata = self.fetch_sheet_metadata()
            self._properties.update(metadata['properties'])
            return self._properties['title']
467810
def has_title(self):
        
        title = self._chartSpace.chart.title
        if title is None:
            return False
        return True
1312044
def get_programme_title(pid):
    """"""
    print("Extracting title and station...")
    main_page_etree = open_listing_page(pid)
    try:
        title, = main_page_etree.xpath('//title/text()')
    except ValueError:
        title = ''
    return title.strip()
487822
def by_title(cls, title, conn=None, google_user=None,
                 google_password=None):
        
        conn = Connection.connect(conn=conn, google_user=google_user,
                                  google_password=google_password)
        q = DocsQuery(categories=['spreadsheet'], title=title)
        feed = conn.docs_client.GetResources(q=q)
        for entry in feed.entry:
            if entry.title.text == title:
                id = entry.id.text.rsplit('%3A', 1)[-1]
                return cls.by_id(id, conn=conn)
9120
def h_v_td(header, key, default):
        
        if key not in header:
            key = key.title()

        return header.get(key, default)
306162
def adjustMargins(self):
        
        y = 0
        height = 0
        if self._titleLabel.text():
            height += self._titleLabel.height() + 3
            y += height

        if self._subTitleLabel.text():
            self._subTitleLabel.move(0, y)
            height += self._subTitleLabel.height() + 3

        self.setContentsMargins(0, height, 0, 0)
581201
def title(cls):
        """"""
        if cls.__title_length__ is None:
            column_type = UnicodeText()
        else:
            column_type = Unicode(cls.__title_length__)
        return Column(column_type, nullable=False)
47051
def nav_title(self, article):
        
        article_title = article.metadata.front.article_meta.title_group.article_title.node
        return str(etree.tostring(article_title, method='text', encoding='utf-8'), encoding='utf-8')
870200
protected function displayTitle()
    {
        if ($this->title !== null) {
            $header_tag = new SwatHtmlTag('h' . $this->getHeaderLevel());
            $header_tag->class = 'swat-frame-title';
            $header_tag->setContent($this->title, $this->title_content_type);

            if ($this->subtitle === null) {
                $header_tag->display();
            } else {
                $span_tag = new SwatHtmlTag('span');
                $span_tag->class = 'swat-frame-subtitle';
                $span_tag->setContent(
                    $this->subtitle,
                    $this->title_content_type
                );

                $header_tag->open();
                $header_tag->displayContent();
                echo $this->title_separator;
                $span_tag->display();
                $header_tag->close();
            }
        }
    }
462874
private void showTitle(@Nullable final CharSequence title) {
        ActionBar actionBar = getSupportActionBar();

        if (actionBar != null) {
            if (isSplitScreen()) {
                if (toolbarLarge != null) {
                    toolbarLarge.setTitle(title);
                }

                actionBar.setTitle(null);
            } else {
                actionBar.setTitle(title);
            }
        }
    }
1057435
def custom_slug_or_title
      (Refinery::Pages.use_custom_slugs && custom_slug.presence) ||
        menu_title.presence || title.presence
    end
367277
def decorateSubHeader(title, columnWidths, options):
    
    title = title.lower()
    if title != options.sortCategory:
        s = "| %*s%*s%*s%*s%*s " % (
            columnWidths.getWidth(title, "min"), "min",
            columnWidths.getWidth(title, "med"), "med",
            columnWidths.getWidth(title, "ave"), "ave",
            columnWidths.getWidth(title, "max"), "max",
            columnWidths.getWidth(title, "total"), "total")
        return s
    else:
        s = "| "
        for field, width in [("min", columnWidths.getWidth(title, "min")),
                             ("med", columnWidths.getWidth(title, "med")),
                             ("ave", columnWidths.getWidth(title, "ave")),
                             ("max", columnWidths.getWidth(title, "max")),
                             ("total", columnWidths.getWidth(title, "total"))]:
            if options.sortField == field:
                s += "%*s*" % (width - 1, field)
            else:
                s += "%*s" % (width, field)
        s += " "
        return s
385871
def _html_title(page):
    
    link = "<a href=\"%s\">%s</a>" % (page.data.get('url'),
                                      page.data.get('title'))
    desc = page.data.get('description')
    if desc:
        link += "&mdash;<i>%s</i>" % desc
    else:
        link += "&mdash;<i>description</i>"
    if link:
        return "<p>%s</p>" % link
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);
    });
  }
665139
def legend_title_header_element(feature, parent):
    """"""
    _ = feature, parent  # NOQA
    header = legend_title_header['string_format']
    return header.capitalize()
578071
def _frame_title(self, key, group_size=2, separator='\n'):
        
        if self.layout_dimensions is not None:
            dimensions, key = zip(*self.layout_dimensions.items())
        elif not self.dynamic and (not self.uniform or len(self) == 1) or self.subplot:
            return ''
        else:
            key = key if isinstance(key, tuple) else (key,)
            dimensions = self.dimensions
        dimension_labels = [dim.pprint_value_string(k) for dim, k in
                            zip(dimensions, key)]
        groups = [', '.join(dimension_labels[i*group_size:(i+1)*group_size])
                  for i in range(len(dimension_labels))]
        return util.bytes_to_unicode(separator.join(g for g in groups if g))