<commit_before>pyhttpbl
--------
Project Honeypot Http:BL API Package

Requires a Http:BL API key from http://www.projecthoneypot.org/

Example
=======

  import httpbl

  ip_address = '127.5.20.3'
  key = 'my-key'

  # Build the HttpBL Object
  bl = httpbl.HttpBL(key)
  # Query the honeypot HttpBL
  response = bl.query(ip_address)

  print "IP Address: %s" % ip_address
  print "Threat Score: %i" % response['threat_score']
  print "Days since last activity: %i" % response['days_since_last_activity']
  print "Visitor type: %s" % ', '.join([httpbl.DESCRIPTIONS[type_] \
                                        for type_ in response['type']])

Response Format<commit_msg>Fix the indent<commit_after>pyhttpbl
--------
Project Honeypot Http:BL API Package

Requires a Http:BL API key from http://www.projecthoneypot.org/

Example
=======

    import httpbl

    ip_address = '127.5.20.3'
    key = 'my-key'

    # Build the HttpBL Object
    bl = httpbl.HttpBL(key)
    # Query the honeypot HttpBL
    response = bl.query(ip_address)

    print "IP Address: %s" % ip_address
    print "Threat Score: %i" % response['threat_score']
    print "Days since last activity: %i" % response['days_since_last_activity']
    print "Visitor type: %s" % ', '.join([httpbl.DESCRIPTIONS[type_] \
                                          for type_ in response['type']])

Response Format
{'fraction_non_alphanumeric': 0.13109978150036417, 'fraction_numerical': 0.010196649672250545, 'mean_word_length': 2.870422535211268, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3031254', 'n_tokens_mistral': 461, 'n_tokens_neox': 430, 'n_words': 121}