This file is indexed.

/usr/share/pyshared/PyMetrics/metricbase.py is in pymetrics 0.8.1-6.

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
""" Metric base class for new user-defined metrics.

    $Id: metricbase.py,v 1.2 2005/09/17 04:28:12 rcharney Exp $
"""
__version__ = "$Revision: 1.2 $"[11:-2]
__author__ = 'Reg. Charney <pymetrics@charneyday.com>'

class MetricBase( object ):
    """ Metric template class."""
    def __init__( self, *args, **kwds ):
        pass
        
    def processSrcLines( self, srcLines, *args, **kwds ):
        """ Handle physical line after tab expansion."""
        pass
        
    def processToken( self, fcnName, className, tok, *args, **kwds ):
        """ Handle processing after each token processed."""
        pass
        
    def processStmt( self, fcnName, className, stmt, *args, **kwds ):
        """ Handle processing at end of statement."""
        pass
        
    def processBlock( self, fcnName, className, block, *args, **kwds ):
        """ Handle processing at end of block."""
        pass
        
    def processFunction( self, fcnName, className, fcn, *args, **kwds ):
        """ Handle processing at end of function. """
        pass
        
    def processClass( self, fcnName, className, cls, *args, **kwds ):
        """ Handle processing at end of class. """
        pass
        
    def processModule( self, moduleName, module, *args, **kwds ):
        """ Handle processing at end of module. """
        pass
        
    def processRun( self, run, *args, **kwds ):
        """ Handle processing at end of run. """
        pass

    def compute( self, *args, **kwds ):
        """ Compute the metric given all needed info known."""
        pass