Get/Set title string of this document.
348314
def title(self) -> str:
        """"""
        title_element = _find_tag(self.head, 'title')
        if title_element:
            return title_element.textContent
        return ''
1120606
public String getTitle() {
        final Map<IRI, List<String>> titles = triples.stream()
            .filter(triple -> titleCandidates.contains(triple.getPredicate()))
            .filter(triple -> triple.getObject() instanceof Literal)
            .collect(groupingBy(Triple::getPredicate, mapping(triple ->
                            ((Literal) triple.getObject()).getLexicalForm(), toList())));
        return titleCandidates.stream().filter(titles::containsKey)
            .map(titles::get).flatMap(List::stream).findFirst()
            .orElseGet(this::getSubject);
    }
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()
284076
def Title(self):
        
        titlefield = self.Schema().getField('title')
        if titlefield.widget.visible:
            return safe_unicode(self.title).encode('utf-8')
        else:
            return safe_unicode(self.id).encode('utf-8')
566109
public static String findTitle(final Document doc) {
        if (doc == null) return null;

        // loop through the child nodes until the title element is found
        final NodeList childNodes = doc.getDocumentElement().getChildNodes();
        for (int i = 0; i < childNodes.getLength(); i++) {
            Node node = childNodes.item(i);

            // check if the node is the title and if its parent is the document root element
            if (node.getNodeName().equals(TOPIC_ROOT_TITLE_NODE_NAME) && node.getParentNode().equals(doc.getDocumentElement())) {
                return XMLUtilities.convertNodeToString(node, false);
            }
        }

        return null;
    }
844350
def _format_title_string(self, title_string):
        
        return self._title_string_format_text_tag(title_string.replace(self.icy_tokkens[0], self.icy_title_prefix))
422922
def title(self, txt=None):
        '''
        if txt:
            self.SetConsoleTitleW(txt)
        else:
            buffer = create_unicode_buffer(200)
            n = self.GetConsoleTitleW(buffer, 200)
            if n > 0:
                return buffer.value[:n]
988499
def title(self):
        
        if not self._title:
            return projex.text.pretty(self.name())
        return self._title
457942
def get_instrument_title(self):
        
        instrument = self.context.getInstrument()
        if not instrument:
            return ""
        return api.get_title(instrument)
395092
def titles(self, key, value):
    """"""
    if not key.startswith('245'):
        return {
            'source': value.get('9'),
            'subtitle': value.get('b'),
            'title': value.get('a'),
        }

    self.setdefault('titles', []).insert(0, {
        'source': value.get('9'),
        'subtitle': value.get('b'),
        'title': value.get('a'),
    })
204451
def get_content_title(self, obj):
        """"""
        return Content.objects.get(id=obj.content.id).title
232183
private static String getTitle()
    {
        final StringBuilder builder = new StringBuilder(Constant.BYTE_4);
        if (Engine.isStarted())
        {
            builder.append(Engine.getProgramName()).append(Constant.SPACE).append(Engine.getProgramVersion());
        }
        else
        {
            builder.append(Constant.ENGINE_NAME).append(Constant.SPACE).append(Constant.ENGINE_VERSION);
        }
        return builder.toString();
    }
885336
def get_title(self, properly_capitalized=False):
        """"""
        if properly_capitalized:
            self.title = _extract(
                self._request(self.ws_prefix + ".getInfo", True), "name"
            )

        return self.title
1293310
def get_text(self, title):
        
        r = requests.get(self.api,
                         params={'action': 'parse', 'page': title, 'format': 'json'},
                         headers=self.header)
        jsd = r.json()
        return jsd['parse']['text']['*']
1343886
def _find_title(html_file):
    """"""
    # TODO Is it necessary to read files like this?
    with html_file.open() as f:
        for line in f:
            if '<title>' in line:
                # + 7 to skip len('<title>')
                return line[line.index('<title>') + 7:line.index('</title>')]

    return '(Unknown)'
1077663
def get_rst_title(rst_doc: Node) -> Optional[Any]:
    

    for title in rst_doc.traverse(nodes.title):
        return title.astext()

    return None
124570
def title(self):
        '''
        

        '''

        return self.title_left(on=False), self.title_center(on=False), \
               self.title_right(on=False)