cli/streamingphish/streamingphish/features.py
def _fe_number_of_dashes(sample):
        """
        Compute the number of dashes - several could be a sign of URL padding, etc.

        Args:
            sample (dictionary): Info about the sample being analyzed i.e. subdomain, tld, fqdn

        Returns:
            result (dictionary): Keys are feature names, values are feature scores.
        """
        result = OrderedDict()
        result['num_dashes'] = 0 if "xn--" in sample['fqdn'] else sample['fqdn'].count("-")
        return result

        Compute the number of dashes - several could be a sign of URL padding, etc.

        Args:
            sample (dictionary): Info about the sample being analyzed i.e. subdomain, tld, fqdn

        Returns:
            result (dictionary): Keys are feature names, values are feature scores.
        
Compute the number of dashes - several could be a sign of URL padding, etc.
Compute the number of dashes - several could be a sign of URL padding etc .
def _fe_number_of_dashes(sample):
        result = OrderedDict()
        result['num_dashes'] = 0 if "xn--" in sample['fqdn'] else sample['fqdn'].count("-")
        return result
def _fe_number_of_dashes ( sample ) : result = OrderedDict ( ) result [ 'num_dashes' ] = 0 if "xn--" in sample [ 'fqdn' ] else sample [ 'fqdn' ] . count ( "-" ) return result
Compute the number of dashes - several could be a sign of URL padding, etc.
Compute the number of dashes - several could be a sign of URL padding etc .
"""
        Compute the number of dashes - several could be a sign of URL padding, etc.

        Args:
            sample (dictionary): Info about the sample being analyzed i.e. subdomain, tld, fqdn

        Returns:
            result (dictionary): Keys are feature names, values are feature scores.
        """
result (dictionary): Keys are feature names, values are feature scores.
result ( dictionary ) : Keys are feature names values are feature scores .
sample
Info about the sample being analyzed i.e. subdomain, tld, fqdn
Info about the sample being analyzed i . e . subdomain tld fqdn