def __calculate_main_language(self, report):
    '\n        Calculates the main language (maximum of files extensions)\n\n        :param    report:  The report\n\n        :returns: The main language.\n        '
    max_files = 0
    max_lang = None
    for language in report:
        lang_fiels = sum(report[language].values())
        if (max_files < lang_fiels):
            max_lang = language
            max_files = lang_fiels
    return max_lang
Calculates the main language (maximum of files extensions)

:param    report:  The report

:returns: The main language.
def __calculate_main_language(self, report):
    '\n        Calculates the main language (maximum of files extensions)\n\n        :param    report:  The report\n\n        :returns: The main language.\n        '
    max_files = 0
    max_lang = None
    for language in report:
        lang_fiels = sum(report[language].values())
        if (max_files < lang_fiels):
            max_lang = language
            max_files = lang_fiels
    return max_lang