resolver.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:social-vuln-scanner 作者: Betawolf 项目源码 文件源码
def bestNameDiff(profileone, profiletwo):
    """ Applies Levenshtein distance between best names of two profiles."""
    n1 = profileone.bestname()
    n2 = profiletwo.bestname()
    if (not n1) or (not n2):
      return 0
    l1 = profileone.name_length
    l2 = profiletwo.name_length
    diff = editdistance.eval(n1,n2)
    return 1-(diff/(l1 if l1 > l2 else l2))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号