def bytes_to_uint8_array(val, width=70):
    """
    Formats a byte string for use as a uint8_t* literal in C/C++
    """
    if len(val) == 0:
        return '{}'

    lines = []
    line = '{' + str(ord(val[0]))
    for x in val[1:]:
        token = str(ord(x))
        if len(line) + len(token) > width:
            lines.append(line + ',')
            line = token
        else:
            line += token % ',%s'
    lines.append(line)
    return '\n'.join(lines) + '}'
dataset/ETHPy150Open cloudera/ibis/ibis/util.py/bytes_to_uint8_array/swapped operands of `%`