This file is indexed.

/usr/share/avant-window-navigator/applets/calendar/sevensegled.py is in awn-applet-calendar 0.4.1~bzr1507-0ubuntu7.

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
#
# Copyright (c) 2007 Mike (mosburger) Desjardins <desjardinsmike@gmail.com>
#     Please do not email the above person for support. The 
#     email address is only there for license/copyright purposes.
#
# This is a class to handle drawing a simulated seven-segment LED.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#


class SevenSegLed:

   #
   #   ---0---
   #  |       |
   #  5       1
   #  |       |
   #   ---6---
   #  |       |
   #  4       2
   #  |       |
   #   ---3---
   #
    digit_map = {
        0: [True, True, True, True, True, True, False],
        1: [False, True, True, False, False, False, False],
        2: [True, True, False, True, True, False, True],
        3: [True, True, True, True, False, False, True],
        4: [False, True, True, False, False, True, True],
        5: [True, False, True, True, False, True, True],
        6: [True, False, True, True, True, True, True],
        7: [True, True, True, False, False, False, False],
        8: [True, True, True, True, True, True, True],
        9: [True, True, True, True, False, True, True]}

    def __init__(self, ct):
        self.ct = ct

    def next_dest(self, digit, segment, x, y):
        if (self.digit_map[digit][segment] == True):
            self.ct.line_to(x, y)
        else:
            self.ct.move_to(x, y)

    def draw(self, digit, ct, x0, y0, x1, y1):
        ct.set_line_width(5.0)
        ct.move_to(x0, y0)
        mid_y = (y0 + y1)/2
        self.next_dest(digit, 0, x1, y0)
        self.next_dest(digit, 1, x1, mid_y)
        self.next_dest(digit, 6, x0, mid_y)
        self.next_dest(digit, 4, x0, y1)
        self.next_dest(digit, 3, x1, y1)
        self.next_dest(digit, 2, x1, mid_y)
        self.next_dest(digit, 6, x0, mid_y)
        self.next_dest(digit, 5, x0, y0)
        ct.stroke()