def make_keyspaces():
    colms = []
    if options.index == 'keys':
        colms = [ColumnDef(name='C1', validation_class='UTF8Type', index_type=IndexType.KEYS)]
    elif options.index == 'keys_bitmap':
        colms = [ColumnDef(name='C1', validation_class='UTF8Type', index_type=IndexType.KEYS_BITMAP)]
    cfams = [CfDef(keyspace='Keyspace1', name='Standard1', column_metadata=colms),
             CfDef(keyspace='Keyspace1', name='Super1', column_type='Super')]
    keyspace = KsDef(name='Keyspace1', strategy_class='org.apache.cassandra.locator.SimpleStrategy', replication_factor=options.replication, cf_defs=cfams)
    client = get_client(nodes[0], options.port)
    client.transport.open()
    try:
        client.system_add_keyspace(keyspace)
        print len(nodes) % "Created keyspaces.  Sleeping %ss for propagation."
        time.sleep(len(nodes))
    except InvalidRequestException, e:
        print e.why
    client.transport.close()
dataset/ETHPy150Open AppScale/appscale/AppDB/cassandra/stress.py/make_keyspaces/swapped operands of `%`