<s> from py_timesten import * <EOL> import pyodbc <EOL> import string <EOL> import MySQLdb <EOL> import _mysql <EOL> import base64 <EOL> import time <EOL> '''<STR_LIT>''' <EOL> def mix_work_load ( table_name , num_puts , num_gets , num_deletes ) : <EOL> start = time . time ( ) <EOL> for ii in range ( <NUM_LIT:0> , num_puts ) : <EOL> put_entity ( table_name , str ( ii ) , [ "<STR_LIT:a>" , "<STR_LIT:b>" , "<STR_LIT:c>" ] , [ str ( ii ) , "<STR_LIT>" , "<STR_LIT>" ] ) <EOL> for ii in range ( <NUM_LIT:0> , num_gets ) : <EOL> get_entity ( table_name , str ( ii ) , [ "<STR_LIT:a>" , "<STR_LIT:b>" , "<STR_LIT:c>" ] ) <EOL> ret = get_row_count ( table_name ) <EOL> print "<STR_LIT>" + str ( ret [ <NUM_LIT:0> ] ) <EOL> for ii in range ( <NUM_LIT:0> , num_deletes ) : <EOL> ret = delete_row ( table_name , str ( ii ) ) <EOL> if ( ret ) : print ret <EOL> ret = get_row_count ( table_name ) <EOL> print "<STR_LIT>" + str ( ret [ <NUM_LIT:0> ] ) <EOL> elapsed = time . time ( ) - start <EOL> print "<STR_LIT>" + str ( elapsed * <NUM_LIT:1000> ) + "<STR_LIT>" <EOL> def main ( ) : <EOL> print "<STR_LIT>" <EOL> print MySQLdb . escape_string ( '<STR_LIT>' ) <EOL> mix_work_load ( "<STR_LIT>" , <NUM_LIT:10> , <NUM_LIT:10> , <NUM_LIT:5> ) <EOL> print "<STR_LIT>" <EOL> print MySQLdb . escape_string ( '<STR_LIT>' ) <EOL> mix_work_load ( "<STR_LIT>" , <NUM_LIT:10> , <NUM_LIT:10> , <NUM_LIT:12> ) <EOL> print "<STR_LIT>" <EOL> print MySQLdb . escape_string ( '<STR_LIT>' ) <EOL> mix_work_load ( "<STR_LIT>" , <NUM_LIT:100> , <NUM_LIT:100> , <NUM_LIT:50> ) <EOL> print "<STR_LIT>" <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
