def _contains_bad_data(self, event):
        """
        Check if the current event has any
        incorrect or badly formatted data.
        """

        # All events must have a me
        if not self._check_media_id(event):
            print 'XXXX Fail!'
            return True

        try:
            # TODO: truncate floating to int
            # Events should not have negative buffering_length
            if int(event.get('x_buffering_length', 0)) < 0:
                print 'Negative Buffering'
                return True
        except __HOLE__:
            # buffering_length is a float (illegal)
            print 'Buffering Length not an integer'
            return True

        return False
dataset/ETHPy150Open pbs/agora-proc/agora/stats.py/PBSVideoStats._contains_bad_data