@staticmethod
	def render_one(unread_count, max_msgs=None, **kwargs):
		if not unread_count:
			return None
		elif type(unread_count) != int or not max_msgs:
			return [{
				'contents': str(unread_count),
				'highlight_groups': ['email_alert'],
			}]
		else:
			return [{
				'contents': str(unread_count),
				'highlight_groups': ['email_alert_gradient', 'email_alert'],
				'gradient_level': min(unread_count * max_msgs / 100.0, 100),
			}]
dataset/ETHPy150Open powerline/powerline/powerline/segments/common/mail.py/EmailIMAPSegment.render_one/swapped operands of `/`