@staticmethod
    def twos_comp(val, bits):
        if val > 0 and val&(1<<(bits-1)) != 0:  # not ==1
            val -= 1<<bits
        return val
List active servers.
dataset/ETHPy150Open algorhythms/LintCode/Update Bits.py/Solution.twos_comp--crossover with--dataset/ETHPy150Open jacobian-archive/openstack.compute/openstack/compute/shell.py/ComputeShell.do_list