gawseed/algorithm/dns.py
def dnsPrefixFraction(bundle, key, subkey, thisone, args):
    """Check the fraction of prefixes vs the base domain.
       Arguments should be [']"""
    if 'psldom' in thisone: # only process ones that are domains
        prefix_unique_count = lookup(bundle, key, subkey, thisone, [key, 'unique', 'pslpre_unique'])
        if prefix_unique_count:
            return(float(prefix_unique_count) / float(thisone['psldom']))
Check the fraction of prefixes vs the base domain.
       Arguments should be [']
Check the fraction of prefixes vs the base domain.
Arguments should be [']
Check the fraction of prefixes vs the base domain . Arguments should be [ ' ]
def dnsPrefixFraction(bundle, key, subkey, thisone, args):
    if 'psldom' in thisone: 
        prefix_unique_count = lookup(bundle, key, subkey, thisone, [key, 'unique', 'pslpre_unique'])
        if prefix_unique_count:
            return(float(prefix_unique_count) / float(thisone['psldom']))
def dnsPrefixFraction ( bundle , key , subkey , thisone , args ) : if 'psldom' in thisone : prefix_unique_count = lookup ( bundle , key , subkey , thisone , [ key , 'unique' , 'pslpre_unique' ] ) if prefix_unique_count : return ( float ( prefix_unique_count ) / float ( thisone [ 'psldom' ] ) )
Check the fraction of prefixes vs the base domain.
Check the fraction of prefixes vs the base domain .
"""Check the fraction of prefixes vs the base domain.
       Arguments should be [']""" # only process ones that are domains
bundle
key
subkey
thisone
args