<s> """<STR_LIT>""" <EOL> import logging <EOL> logger = logging . getLogger ( __name__ ) <EOL> def run_upgrade ( cur , database_engine , * args , ** kwargs ) : <EOL> logger . info ( "<STR_LIT>" ) <EOL> cur . execute ( """<STR_LIT>""" ) <EOL> cur . execute ( """<STR_LIT>""" ) <EOL> count = <NUM_LIT:0> <EOL> for row in cur . fetchall ( ) : <EOL> row = list ( row ) <EOL> row [ <NUM_LIT:8> ] = bytes ( row [ <NUM_LIT:8> ] ) . decode ( "<STR_LIT:utf-8>" ) <EOL> row [ <NUM_LIT:11> ] = bytes ( row [ <NUM_LIT:11> ] ) . decode ( "<STR_LIT:utf-8>" ) <EOL> cur . execute ( database_engine . convert_param_style ( """<STR_LIT>""" % ( '<STR_LIT:U+002C>' . join ( [ '<STR_LIT:?>' for _ in range ( len ( row ) ) ] ) ) ) , <EOL> row <EOL> ) <EOL> count += <NUM_LIT:1> <EOL> cur . execute ( "<STR_LIT>" ) <EOL> cur . execute ( "<STR_LIT>" ) <EOL> logger . info ( "<STR_LIT>" , count ) </s>
