line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Password::zxcvbn::AdjacencyGraph::Common; |
2
|
3
|
|
|
3
|
|
21
|
use strict; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
101
|
|
3
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
1158
|
|
4
|
|
|
|
|
|
|
# VERSION |
5
|
|
|
|
|
|
|
# ABSTRACT: adjacency graphs for common keyboards |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 DESCRIPTION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
This is a data file used by L<< |
10
|
|
|
|
|
|
|
C<Data::Password::zxcvbn::Match::Spatial> >>, and is generated by the |
11
|
|
|
|
|
|
|
L<< |
12
|
|
|
|
|
|
|
C<build-keyboard-adjacency-graphs>|https://bitbucket.org/broadbean/p5-data-password-zxcvbn/src/master/maint/build-keyboard-adjacency-graphs |
13
|
|
|
|
|
|
|
>> program when building the distribution. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our %graphs = ( |
19
|
|
|
|
|
|
|
'keypad' => { |
20
|
|
|
|
|
|
|
'average_degree' => '5.06666666666667', |
21
|
|
|
|
|
|
|
'keys' => { |
22
|
|
|
|
|
|
|
'*' => [ |
23
|
|
|
|
|
|
|
'/', |
24
|
|
|
|
|
|
|
undef, |
25
|
|
|
|
|
|
|
undef, |
26
|
|
|
|
|
|
|
undef, |
27
|
|
|
|
|
|
|
'-', |
28
|
|
|
|
|
|
|
'+', |
29
|
|
|
|
|
|
|
'9', |
30
|
|
|
|
|
|
|
'8', |
31
|
|
|
|
|
|
|
], |
32
|
|
|
|
|
|
|
'+' => [ |
33
|
|
|
|
|
|
|
'9', |
34
|
|
|
|
|
|
|
'*', |
35
|
|
|
|
|
|
|
'-', |
36
|
|
|
|
|
|
|
undef, |
37
|
|
|
|
|
|
|
undef, |
38
|
|
|
|
|
|
|
undef, |
39
|
|
|
|
|
|
|
undef, |
40
|
|
|
|
|
|
|
'6', |
41
|
|
|
|
|
|
|
], |
42
|
|
|
|
|
|
|
'-' => [ |
43
|
|
|
|
|
|
|
'*', |
44
|
|
|
|
|
|
|
undef, |
45
|
|
|
|
|
|
|
undef, |
46
|
|
|
|
|
|
|
undef, |
47
|
|
|
|
|
|
|
undef, |
48
|
|
|
|
|
|
|
undef, |
49
|
|
|
|
|
|
|
'+', |
50
|
|
|
|
|
|
|
'9', |
51
|
|
|
|
|
|
|
], |
52
|
|
|
|
|
|
|
'.' => [ |
53
|
|
|
|
|
|
|
'0', |
54
|
|
|
|
|
|
|
'2', |
55
|
|
|
|
|
|
|
'3', |
56
|
|
|
|
|
|
|
undef, |
57
|
|
|
|
|
|
|
undef, |
58
|
|
|
|
|
|
|
undef, |
59
|
|
|
|
|
|
|
undef, |
60
|
|
|
|
|
|
|
undef, |
61
|
|
|
|
|
|
|
], |
62
|
|
|
|
|
|
|
'/' => [ |
63
|
|
|
|
|
|
|
undef, |
64
|
|
|
|
|
|
|
undef, |
65
|
|
|
|
|
|
|
undef, |
66
|
|
|
|
|
|
|
undef, |
67
|
|
|
|
|
|
|
'*', |
68
|
|
|
|
|
|
|
'9', |
69
|
|
|
|
|
|
|
'8', |
70
|
|
|
|
|
|
|
'7', |
71
|
|
|
|
|
|
|
], |
72
|
|
|
|
|
|
|
'0' => [ |
73
|
|
|
|
|
|
|
undef, |
74
|
|
|
|
|
|
|
'1', |
75
|
|
|
|
|
|
|
'2', |
76
|
|
|
|
|
|
|
'3', |
77
|
|
|
|
|
|
|
'.', |
78
|
|
|
|
|
|
|
undef, |
79
|
|
|
|
|
|
|
undef, |
80
|
|
|
|
|
|
|
undef, |
81
|
|
|
|
|
|
|
], |
82
|
|
|
|
|
|
|
'1' => [ |
83
|
|
|
|
|
|
|
undef, |
84
|
|
|
|
|
|
|
undef, |
85
|
|
|
|
|
|
|
'4', |
86
|
|
|
|
|
|
|
'5', |
87
|
|
|
|
|
|
|
'2', |
88
|
|
|
|
|
|
|
'0', |
89
|
|
|
|
|
|
|
undef, |
90
|
|
|
|
|
|
|
undef, |
91
|
|
|
|
|
|
|
], |
92
|
|
|
|
|
|
|
'2' => [ |
93
|
|
|
|
|
|
|
'1', |
94
|
|
|
|
|
|
|
'4', |
95
|
|
|
|
|
|
|
'5', |
96
|
|
|
|
|
|
|
'6', |
97
|
|
|
|
|
|
|
'3', |
98
|
|
|
|
|
|
|
'.', |
99
|
|
|
|
|
|
|
'0', |
100
|
|
|
|
|
|
|
undef, |
101
|
|
|
|
|
|
|
], |
102
|
|
|
|
|
|
|
'3' => [ |
103
|
|
|
|
|
|
|
'2', |
104
|
|
|
|
|
|
|
'5', |
105
|
|
|
|
|
|
|
'6', |
106
|
|
|
|
|
|
|
undef, |
107
|
|
|
|
|
|
|
undef, |
108
|
|
|
|
|
|
|
undef, |
109
|
|
|
|
|
|
|
'.', |
110
|
|
|
|
|
|
|
'0', |
111
|
|
|
|
|
|
|
], |
112
|
|
|
|
|
|
|
'4' => [ |
113
|
|
|
|
|
|
|
undef, |
114
|
|
|
|
|
|
|
undef, |
115
|
|
|
|
|
|
|
'7', |
116
|
|
|
|
|
|
|
'8', |
117
|
|
|
|
|
|
|
'5', |
118
|
|
|
|
|
|
|
'2', |
119
|
|
|
|
|
|
|
'1', |
120
|
|
|
|
|
|
|
undef, |
121
|
|
|
|
|
|
|
], |
122
|
|
|
|
|
|
|
'5' => [ |
123
|
|
|
|
|
|
|
'4', |
124
|
|
|
|
|
|
|
'7', |
125
|
|
|
|
|
|
|
'8', |
126
|
|
|
|
|
|
|
'9', |
127
|
|
|
|
|
|
|
'6', |
128
|
|
|
|
|
|
|
'3', |
129
|
|
|
|
|
|
|
'2', |
130
|
|
|
|
|
|
|
'1', |
131
|
|
|
|
|
|
|
], |
132
|
|
|
|
|
|
|
'6' => [ |
133
|
|
|
|
|
|
|
'5', |
134
|
|
|
|
|
|
|
'8', |
135
|
|
|
|
|
|
|
'9', |
136
|
|
|
|
|
|
|
'+', |
137
|
|
|
|
|
|
|
undef, |
138
|
|
|
|
|
|
|
undef, |
139
|
|
|
|
|
|
|
'3', |
140
|
|
|
|
|
|
|
'2', |
141
|
|
|
|
|
|
|
], |
142
|
|
|
|
|
|
|
'7' => [ |
143
|
|
|
|
|
|
|
undef, |
144
|
|
|
|
|
|
|
undef, |
145
|
|
|
|
|
|
|
undef, |
146
|
|
|
|
|
|
|
'/', |
147
|
|
|
|
|
|
|
'8', |
148
|
|
|
|
|
|
|
'5', |
149
|
|
|
|
|
|
|
'4', |
150
|
|
|
|
|
|
|
undef, |
151
|
|
|
|
|
|
|
], |
152
|
|
|
|
|
|
|
'8' => [ |
153
|
|
|
|
|
|
|
'7', |
154
|
|
|
|
|
|
|
undef, |
155
|
|
|
|
|
|
|
'/', |
156
|
|
|
|
|
|
|
'*', |
157
|
|
|
|
|
|
|
'9', |
158
|
|
|
|
|
|
|
'6', |
159
|
|
|
|
|
|
|
'5', |
160
|
|
|
|
|
|
|
'4', |
161
|
|
|
|
|
|
|
], |
162
|
|
|
|
|
|
|
'9' => [ |
163
|
|
|
|
|
|
|
'8', |
164
|
|
|
|
|
|
|
'/', |
165
|
|
|
|
|
|
|
'*', |
166
|
|
|
|
|
|
|
'-', |
167
|
|
|
|
|
|
|
'+', |
168
|
|
|
|
|
|
|
undef, |
169
|
|
|
|
|
|
|
'6', |
170
|
|
|
|
|
|
|
'5', |
171
|
|
|
|
|
|
|
], |
172
|
|
|
|
|
|
|
}, |
173
|
|
|
|
|
|
|
'starting_positions' => 15, |
174
|
|
|
|
|
|
|
}, |
175
|
|
|
|
|
|
|
'mac_keypad' => { |
176
|
|
|
|
|
|
|
'average_degree' => '5.25', |
177
|
|
|
|
|
|
|
'keys' => { |
178
|
|
|
|
|
|
|
'*' => [ |
179
|
|
|
|
|
|
|
'/', |
180
|
|
|
|
|
|
|
undef, |
181
|
|
|
|
|
|
|
undef, |
182
|
|
|
|
|
|
|
undef, |
183
|
|
|
|
|
|
|
undef, |
184
|
|
|
|
|
|
|
undef, |
185
|
|
|
|
|
|
|
'-', |
186
|
|
|
|
|
|
|
'9', |
187
|
|
|
|
|
|
|
], |
188
|
|
|
|
|
|
|
'+' => [ |
189
|
|
|
|
|
|
|
'6', |
190
|
|
|
|
|
|
|
'9', |
191
|
|
|
|
|
|
|
'-', |
192
|
|
|
|
|
|
|
undef, |
193
|
|
|
|
|
|
|
undef, |
194
|
|
|
|
|
|
|
undef, |
195
|
|
|
|
|
|
|
undef, |
196
|
|
|
|
|
|
|
'3', |
197
|
|
|
|
|
|
|
], |
198
|
|
|
|
|
|
|
'-' => [ |
199
|
|
|
|
|
|
|
'9', |
200
|
|
|
|
|
|
|
'/', |
201
|
|
|
|
|
|
|
'*', |
202
|
|
|
|
|
|
|
undef, |
203
|
|
|
|
|
|
|
undef, |
204
|
|
|
|
|
|
|
undef, |
205
|
|
|
|
|
|
|
'+', |
206
|
|
|
|
|
|
|
'6', |
207
|
|
|
|
|
|
|
], |
208
|
|
|
|
|
|
|
'.' => [ |
209
|
|
|
|
|
|
|
'0', |
210
|
|
|
|
|
|
|
'2', |
211
|
|
|
|
|
|
|
'3', |
212
|
|
|
|
|
|
|
undef, |
213
|
|
|
|
|
|
|
undef, |
214
|
|
|
|
|
|
|
undef, |
215
|
|
|
|
|
|
|
undef, |
216
|
|
|
|
|
|
|
undef, |
217
|
|
|
|
|
|
|
], |
218
|
|
|
|
|
|
|
'/' => [ |
219
|
|
|
|
|
|
|
'=', |
220
|
|
|
|
|
|
|
undef, |
221
|
|
|
|
|
|
|
undef, |
222
|
|
|
|
|
|
|
undef, |
223
|
|
|
|
|
|
|
'*', |
224
|
|
|
|
|
|
|
'-', |
225
|
|
|
|
|
|
|
'9', |
226
|
|
|
|
|
|
|
'8', |
227
|
|
|
|
|
|
|
], |
228
|
|
|
|
|
|
|
'0' => [ |
229
|
|
|
|
|
|
|
undef, |
230
|
|
|
|
|
|
|
'1', |
231
|
|
|
|
|
|
|
'2', |
232
|
|
|
|
|
|
|
'3', |
233
|
|
|
|
|
|
|
'.', |
234
|
|
|
|
|
|
|
undef, |
235
|
|
|
|
|
|
|
undef, |
236
|
|
|
|
|
|
|
undef, |
237
|
|
|
|
|
|
|
], |
238
|
|
|
|
|
|
|
'1' => [ |
239
|
|
|
|
|
|
|
undef, |
240
|
|
|
|
|
|
|
undef, |
241
|
|
|
|
|
|
|
'4', |
242
|
|
|
|
|
|
|
'5', |
243
|
|
|
|
|
|
|
'2', |
244
|
|
|
|
|
|
|
'0', |
245
|
|
|
|
|
|
|
undef, |
246
|
|
|
|
|
|
|
undef, |
247
|
|
|
|
|
|
|
], |
248
|
|
|
|
|
|
|
'2' => [ |
249
|
|
|
|
|
|
|
'1', |
250
|
|
|
|
|
|
|
'4', |
251
|
|
|
|
|
|
|
'5', |
252
|
|
|
|
|
|
|
'6', |
253
|
|
|
|
|
|
|
'3', |
254
|
|
|
|
|
|
|
'.', |
255
|
|
|
|
|
|
|
'0', |
256
|
|
|
|
|
|
|
undef, |
257
|
|
|
|
|
|
|
], |
258
|
|
|
|
|
|
|
'3' => [ |
259
|
|
|
|
|
|
|
'2', |
260
|
|
|
|
|
|
|
'5', |
261
|
|
|
|
|
|
|
'6', |
262
|
|
|
|
|
|
|
'+', |
263
|
|
|
|
|
|
|
undef, |
264
|
|
|
|
|
|
|
undef, |
265
|
|
|
|
|
|
|
'.', |
266
|
|
|
|
|
|
|
'0', |
267
|
|
|
|
|
|
|
], |
268
|
|
|
|
|
|
|
'4' => [ |
269
|
|
|
|
|
|
|
undef, |
270
|
|
|
|
|
|
|
undef, |
271
|
|
|
|
|
|
|
'7', |
272
|
|
|
|
|
|
|
'8', |
273
|
|
|
|
|
|
|
'5', |
274
|
|
|
|
|
|
|
'2', |
275
|
|
|
|
|
|
|
'1', |
276
|
|
|
|
|
|
|
undef, |
277
|
|
|
|
|
|
|
], |
278
|
|
|
|
|
|
|
'5' => [ |
279
|
|
|
|
|
|
|
'4', |
280
|
|
|
|
|
|
|
'7', |
281
|
|
|
|
|
|
|
'8', |
282
|
|
|
|
|
|
|
'9', |
283
|
|
|
|
|
|
|
'6', |
284
|
|
|
|
|
|
|
'3', |
285
|
|
|
|
|
|
|
'2', |
286
|
|
|
|
|
|
|
'1', |
287
|
|
|
|
|
|
|
], |
288
|
|
|
|
|
|
|
'6' => [ |
289
|
|
|
|
|
|
|
'5', |
290
|
|
|
|
|
|
|
'8', |
291
|
|
|
|
|
|
|
'9', |
292
|
|
|
|
|
|
|
'-', |
293
|
|
|
|
|
|
|
'+', |
294
|
|
|
|
|
|
|
undef, |
295
|
|
|
|
|
|
|
'3', |
296
|
|
|
|
|
|
|
'2', |
297
|
|
|
|
|
|
|
], |
298
|
|
|
|
|
|
|
'7' => [ |
299
|
|
|
|
|
|
|
undef, |
300
|
|
|
|
|
|
|
undef, |
301
|
|
|
|
|
|
|
undef, |
302
|
|
|
|
|
|
|
'=', |
303
|
|
|
|
|
|
|
'8', |
304
|
|
|
|
|
|
|
'5', |
305
|
|
|
|
|
|
|
'4', |
306
|
|
|
|
|
|
|
undef, |
307
|
|
|
|
|
|
|
], |
308
|
|
|
|
|
|
|
'8' => [ |
309
|
|
|
|
|
|
|
'7', |
310
|
|
|
|
|
|
|
undef, |
311
|
|
|
|
|
|
|
'=', |
312
|
|
|
|
|
|
|
'/', |
313
|
|
|
|
|
|
|
'9', |
314
|
|
|
|
|
|
|
'6', |
315
|
|
|
|
|
|
|
'5', |
316
|
|
|
|
|
|
|
'4', |
317
|
|
|
|
|
|
|
], |
318
|
|
|
|
|
|
|
'9' => [ |
319
|
|
|
|
|
|
|
'8', |
320
|
|
|
|
|
|
|
'=', |
321
|
|
|
|
|
|
|
'/', |
322
|
|
|
|
|
|
|
'*', |
323
|
|
|
|
|
|
|
'-', |
324
|
|
|
|
|
|
|
'+', |
325
|
|
|
|
|
|
|
'6', |
326
|
|
|
|
|
|
|
'5', |
327
|
|
|
|
|
|
|
], |
328
|
|
|
|
|
|
|
'=' => [ |
329
|
|
|
|
|
|
|
undef, |
330
|
|
|
|
|
|
|
undef, |
331
|
|
|
|
|
|
|
undef, |
332
|
|
|
|
|
|
|
undef, |
333
|
|
|
|
|
|
|
'/', |
334
|
|
|
|
|
|
|
'9', |
335
|
|
|
|
|
|
|
'8', |
336
|
|
|
|
|
|
|
'7', |
337
|
|
|
|
|
|
|
], |
338
|
|
|
|
|
|
|
}, |
339
|
|
|
|
|
|
|
'starting_positions' => 16, |
340
|
|
|
|
|
|
|
}, |
341
|
|
|
|
|
|
|
) |
342
|
|
|
|
|
|
|
; |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
1; |