@staticmethod
    def get_tag_count_details(tag_count):
        details = {}
        for element in tag_count:
            category = element.keyword.lower()
            if category not in details:
                details[category] = 0
            details[category] += 1

        parts = []
        if len(details) == 1:
            parts.append(list(details.keys())[0])
        else:
            for category in sorted(details.keys()):
                text = u"%s: %d" % (category, details[category])
                parts.append(text)
        return ", ".join(parts)
dataset/ETHPy150Open behave/behave/behave/formatter/tags.py/TagsFormatter.get_tag_count_details/original