def _setupTypeNumber(self, test):
        bits = QRUtil.getBCHTypeNumber(self.typeNumber)
        for i in range(18):
            self.modules[i // 3][i % 3 + self.moduleCount - 8 - 3] = (
                not test and ( (bits >> i) & 1) == 1)
        for i in range(18):
            self.modules[i % 3 + self.moduleCount - 8 - 3][i // 3] = (
                not test and ( (bits >> i) & 1) == 1)
dataset/ETHPy150Open mozillazg/ShortURL/shorturl/libs/qrcode.py/QRCode._setupTypeNumber/original