#NEWLINE# def getQuery( self , resource , do_not_ask_list ) : #NEWLINE# #INDENT# n = resource . get ( 'n' ) #NEWLINE# cnt = resource . increment ( 'generated_queries_cnt' , 1 ) #NEWLINE# index = ( cnt % n ) #NEWLINE# return index