<commit_before>import inspect
import json
import unittest

from bugsnag.configuration import Configuration
from bugsnag.notification import Notification
from tests import fixtures


class TestNotification(unittest.TestCase):

    def test_sanitize(self):
        """
            It should sanitize request data
        """<commit_msg>Import the many variations of the `reload` function<commit_after>import inspect
import json
import unittest

from bugsnag.configuration import Configuration
from bugsnag.notification import Notification
from tests import fixtures

try:
    reload  # Python 2.x
except NameError:
    try:
        from importlib import reload  # Python 3.4+
    except ImportError:
        from imp import reload  # Python 3.0 - 3.3


class TestNotification(unittest.TestCase):

    def test_sanitize(self):
        """
            It should sanitize request data
        """
{'fraction_non_alphanumeric': 0.05723905723905724, 'fraction_numerical': 0.007856341189674524, 'mean_word_length': 3.351219512195122, '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': '5365771', 'n_tokens_mistral': 235, 'n_tokens_neox': 221, 'n_words': 83}