'Checks if something similar to `smth_instng` was sent in the request.
This is used to remove false positives, e.g. if a grep plugin finds a
"strange" string and wants to be sure it was not generated by an audit
plugin.
This method should only be used by grep plugins which often have false
positives.
The following example shows that we sent d\'z"0 but d\'z"0 will
as well be recognised as sent
TODO: This function is called MANY times, and under some circumstances
it\'s performance REALLY matters. We need to review this function.
:param smth_instng: The string
:return: True if something similar was sent'

def sent(self, smth_instng):

    def make_comp(heterogen_string):
        '\n                                                This    basically    removes    characters    that    are    hard    to    compare\n                                                '
        heterogen_string = heterogen_string.encode('utf-8', errors='ignore')
        return string.translate(heterogen_string, TRANS_TABLE, deletions=DELETE_CHARS)
    data = self.get_data()
    if ((data and (smth_instng in data)) or (smth_instng in self.get_uri()) or (smth_instng in unquote(data)) or (smth_instng in unicode(self.get_uri().url_decode()))):
        return True
    if (self._sent_info_comp is None):
        data_encoding = self._post_data.encoding
        post_data = str(self.get_data())
        dec_post_data = unquote(post_data).decode(data_encoding)
        data = (u'%s%s%s' % (unicode(self.get_uri()), data, dec_post_data))
        self._sent_info_comp = make_comp((data + unquote(data)))
    min_len = 3
    smth_instng_comps = (make_comp(smth_instng), make_comp(unquote(smth_instng)))
    for smth_intstng_comp in smth_instng_comps:
        if ((smth_intstng_comp in self._sent_info_comp) and (len(smth_intstng_comp) >= min_len)):
            return True
    return False
