def __calculate_used_languages(self, report):
    '\n        Calculates the used languages by throwing away the extension counts and\n        collapsing them to the language. Only languages that have at least one\n        file extension are kept and will appear in the report\n\n        :param    report:  The report\n\n        :returns: The used languages.\n        '
    languages = {}
    for language in report:
        total_files = sum(report[language].values())
        if (total_files > 0):
            languages[language] = total_files
    return sorted(languages, key=languages.get, reverse=True)
Calculates the used languages by throwing away the extension counts and
collapsing them to the language. Only languages that have at least one
file extension are kept and will appear in the report

:param    report:  The report

:returns: The used languages.
def __calculate_used_languages(self, report):
    '\n        Calculates the used languages by throwing away the extension counts and\n        collapsing them to the language. Only languages that have at least one\n        file extension are kept and will appear in the report\n\n        :param    report:  The report\n\n        :returns: The used languages.\n        '
    languages = {}
    for language in report:
        total_files = sum(report[language].values())
        if (total_files > 0):
            languages[language] = total_files
    return sorted(languages, key=languages.get, reverse=True)