Update gemini_stats.py

avoid division by zero in ts/tv

is_coding is 0 by default, or it is not being updated properly