line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
20
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
194
|
|
2
|
3
|
|
|
3
|
|
14
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
92
|
|
3
|
|
|
|
|
|
|
package Clusterize::Pattern; |
4
|
3
|
|
|
3
|
|
13
|
use Digest::MD5; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
461
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
6
|
|
|
|
|
|
|
|
7
|
0
|
|
|
0
|
0
|
|
sub new { return bless {}, shift } |
8
|
0
|
|
|
0
|
0
|
|
sub text2digest { return {} } |
9
|
0
|
|
|
0
|
1
|
|
sub pattern { return } |
10
|
0
|
|
|
0
|
1
|
|
sub accuracy { return } |
11
|
0
|
|
|
0
|
1
|
|
sub size { return } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 NAME |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Clusterize::Pattern - provides various information about clusters built by Clusterize module. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 VERSION |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Version 0.02 |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
B module is used by B module to provide the following information for the cluster: B, B, B, B. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 METHODS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 pattern |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Returns regular expression that matches all strings in given cluster. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 accuracy |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Returns the value between 0 and 1 that reflects the similarity of strings in the given cluster. |
36
|
|
|
|
|
|
|
The accuracy value tends to 1 for very accurate clusters and to 0 for fuzzy clusters. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head2 size |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Returns the number of unique keys in given cluster. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 digest |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Returns MD5 hex digest for given cluster. It could be used to identify unique clusters. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 pairs |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Returns hash of key/value pairs for given cluster. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 AUTHOR |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Slava Moiseev, |
54
|
|
|
|
|
|
|
|