line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CogBase::Base; |
2
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
75
|
|
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
2159
|
use Class::Field qw'field const'; |
|
2
|
|
|
|
|
95009
|
|
|
2
|
|
|
|
|
159
|
|
5
|
2
|
|
|
2
|
|
13402
|
use XXX; |
|
2
|
|
|
|
|
2353
|
|
|
2
|
|
|
|
|
50
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub import { |
8
|
14
|
|
|
14
|
|
124
|
my ($class, $flag) = @_; |
9
|
14
|
100
|
66
|
|
|
673
|
return unless $flag && $flag eq '-base'; |
10
|
9
|
|
|
|
|
18
|
my $package = caller; |
11
|
2
|
|
|
2
|
|
292
|
no strict 'refs'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
670
|
|
12
|
54
|
|
|
|
|
276
|
*{$package . "::$_"} = \&$_ |
13
|
9
|
|
|
|
|
39
|
for qw'field const', qw'WWW XXX YYY ZZZ'; |
14
|
9
|
|
|
|
|
14
|
push @{$package . "::ISA"}, $class; |
|
9
|
|
|
|
|
115
|
|
15
|
9
|
|
|
|
|
6844
|
return; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub New { |
19
|
3
|
|
|
3
|
0
|
28
|
my $self = bless {}, shift; |
20
|
3
|
|
|
|
|
13
|
while (@_) { |
21
|
3
|
|
|
|
|
9
|
my ($key, $value) = splice(@_, 0, 2); |
22
|
3
|
|
|
|
|
78
|
$self->$key($value); |
23
|
|
|
|
|
|
|
} |
24
|
3
|
|
|
|
|
76
|
$self->_initialize; |
25
|
3
|
|
|
|
|
21
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
2
|
|
|
2
|
|
5
|
sub _initialize {} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |