This file is indexed.

/usr/lib/python2.7/dist-packages/sagenb/notebook/applet.py is in python-sagenb 1.0.1+ds1-2.

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
# -*- coding: utf-8 -*
from six import iteritems


class Applet:
    def __init__(self, id, code, archive, codebase="", width=400, height=400, params={}):
        self.id = id
        self.code = code
        self.archive = archive
        self.width = width
        self.height = height
        self.params = params
        self.codebase = "/java/" + codebase

    def html_tag(self):
        params_text = "\n".join(["""<param name="%s" value="%s"/>""" % x
                                 for x in iteritems(self.params)])
        tag = """
        <applet id="%s", code="%s" width="%s" height="%s" codebase="%s" archive="%s" MAYSCRIPT>
          %s
        </applet>
        """ % (self.id,
               self.code,
               self.width,
               self.height,
               self.codebase,
               ",".join(self.archive),
               params_text)
        return tag