#NEWLINE# def cycletime( data ) : #NEWLINE# #INDENT# if ( len ( data ) == 0 ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# avg_cycle_time = 0 #NEWLINE# for issue in data : #NEWLINE# #INDENT# avg_cycle_time += issue . get_cycle_time ( ) . total_seconds ( ) #NEWLINE# #UNINDENT# return int ( ( issue / len ( data ) ) )