def write_data(client, table, n):
    """writes n rows."""
    rowkey_base = "artist-100-track-"
    ymd = '20090618'
    for trackid in range(0, n+1):
        trackid_padded = "%08d" % trackid
        rowkey = rowkey_base + trackid_padded + '-' + ymd
        mutations = []
        m = {}
        m['column'] = 'unit:' + 'scrobbles'
        m['value']  = str(int(random() * 120))
        mutations.append(Mutation(m))
        if (1000 % trackid == 0):
            print '=> ' + rowkey
        client.mutateRow(table, rowkey, mutations)
dataset/ETHPy150Open zohmg/zohmg/tests/fixture-generators/testdata-500k.py/write_data/swapped operands of `%`