MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / offset_char

Function offset_char

keepercommander/utils.py:308–314  ·  view source on GitHub ↗
(text, func)

Source from the content-addressed store, hash-verified

306
307
308def offset_char(text, func): # type (str, Callable[[str, str], int]) -> Iterable[int]
309 if not text:
310 return
311 prev = text[0]
312 for ch in text[1:]:
313 yield func(prev, ch)
314 prev = ch
315
316
317def password_score(password): # type: (str) -> int

Callers 1

password_scoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected