<commit_before>#!/usr/bin/env python
# coding=utf8

import json
import hashlib
import hmac
import time
import requests

from . import version
from .utils import build_url
from .exceptions import APIError

VERSION = version.__version__


class EmailFilterRuleException(Exception):
    """Raised when an email filter field is not a list."""
    pass


class Sift:
    def __init__(self, api_key, api_secret, env='production'):
        self._env = env
        self.api_key = api_key
        self.api_secret = api_secret

    def _request(self, method, url, params=None, data=None):<commit_msg>Future proof by inheriting from object<commit_after>#!/usr/bin/env python
# coding=utf8

import json
import hashlib
import hmac
import time
import requests

from . import version
from .utils import build_url
from .exceptions import APIError

VERSION = version.__version__


class EmailFilterRuleException(Exception):
    """Raised when an email filter field is not a list."""
    pass


class Sift(object):
    def __init__(self, api_key, api_secret, env='production'):
        self._env = env
        self.api_key = api_key
        self.api_secret = api_secret

    def _request(self, method, url, params=None, data=None):
{'fraction_non_alphanumeric': 0.08408903544929926, 'fraction_numerical': 0.0016488046166529267, 'mean_word_length': 3.856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '725266', 'n_tokens_mistral': 365, 'n_tokens_neox': 354, 'n_words': 120}