This file is indexed.

/usr/share/perl5/GO/Handlers/summary.pm is in libgo-perl 0.15-5.

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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# $Id: summary.pm,v 1.3 2004/11/24 02:28:00 cmungall Exp $
#
# This GO module is maintained by Chris Mungall <cjm@fruitfly.org>
#
# see also - http://www.geneontology.org
#          - http://www.godatabase.org/dev
#
# You may distribute this module under the same terms as perl itself

=head1 NAME

  GO::Handlers::summary - summary about handlers 

=head1 SYNOPSIS

=cut

=head1 DESCRIPTION

=head1 PUBLIC METHODS - 

=cut

package GO::Handlers::summary;
use base qw(GO::Handlers::base);

sub init {
    my $self = shift;
    $self->{i} = 0;
    $self->{counts} = {};
}

sub count {
    my $self = shift;
    my $type = shift;
    if (!$self->{counts}->{$type}) {
	$self->{counts}->{$type} = 0;
    }
    $self->{counts}->{$type}++;
}

sub start_event {
    my $self = shift;
    my $ev = shift;
    return;
}

sub end_event {
    my $self = shift;
    my $ev = shift;
    $self->count($ev);
    if ($ev eq "assocs") {
	print "TOTAL ASSOCS  : $self->{counts}->{assoc}\n";
	print "TOTAL PRODUCTS: $self->{counts}->{prod}\n";
	print "TOTAL DBSETS  : $self->{counts}->{dbset}\n";
    }
    if ($ev eq "obo") {
	print "TOTAL TERMS   : $self->{counts}->{term}\n";
	print "TOTAL DEFS    : $self->{counts}->{def}\n" if $self->{counts}->{def};
	print "TOTAL SYNS    : $self->{counts}->{synonym}\n";
	print "TOTAL RELS    : $self->{counts}->{relationship}\n" if $self->{counts}->{relationship};
	print "TOTAL XREFS   : $self->{counts}->{xref_analog}\n";
    }
    if ($ev eq "defs") {
	print "TOTAL DEFS    : $self->{counts}->{def}\n";
    }
    if ($ev eq "dbxrefs") {
	print "TOTAL TERMXREFS : $self->{counts}->{termdbxref}\n";
    }
    #return $self->SUPER::end_event($ev);
    return;
}

#sub e_term {
#    my $self = shift;
#    my $term = shift;
#    my $ns = shift;
#    return;
#}

sub event {
    my $self = shift;
    my $ev = shift;
    my @args = @_;
    my $arg = $args[0];
    if (!ref($arg)) {
    }
    else {
        $self->start_event($ev);
        $self->evbody(@args);
        $self->end_event($ev);
    }
}

1;