This file is indexed.

/usr/lib/python2.7/dist-packages/xapers/nci/bibview.py is in xapers 0.7.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import urwid

############################################################

class Bibview(urwid.Frame):

    def __init__(self, ui, query):
        self.ui = ui

        htxt = [urwid.Text("Bibview: " + query)]
        header = urwid.AttrMap(urwid.Columns(htxt), 'header')

        string = ''

        db = self.ui.db
        if db.count(query) == 0:
            self.ui.set_status('No documents found.')
        else:
            for doc in db.search(query, limit=20):
                bibtex = doc.get_bibtex()
                if bibtex:
                    string += '\n' + bibtex + '\n'

        content = [urwid.Text(s) for s in string.split('\n')]
        body = urwid.ListBox(urwid.SimpleListWalker(content))

        super(Bibview, self).__init__(body, header=header)

    def help(self):
        return []

    def keypress(self, size, key):
        if key == ' ':
            return self.get_body().keypress(size, 'page down')
        return super(Bibview, self).keypress(size, key)