def _camel_case_to_underscores(self, text):
        result = []
        pos = 0
        while pos < len(text):
            if text[pos].isupper():
                if pos - 1 > 0 and text[pos - 1].islower() or 0 > pos - 1 and pos + 1 < len(text) and text[pos + 1].islower():
                    result.append("_%s" % text[pos].lower())
                else:
                    result.append(text[pos].lower())
            else:
                result.append(text[pos])
            pos += 1
        return "".join(result)
dataset/ETHPy150Open HubSpot/hapipy/hapi/broadcast.py/BaseSocialObject._camel_case_to_underscores/swapped operands of `>`