def get_format_modules(lang=None, reverse=False):
    if lang is None:
        lang = get_language()
    modules = _format_modules_cache.setdefault(lang, list(
        iter_format_modules(lang)))
    if reverse:
        return list(reversed(modules))
    return modules
Computes the mean average precision at k for Track 1 of the 2012 KDD Cup.
dataset/ETHPy150Open bitmazk/django-libs/django_libs/format_utils.py/get_format_modules--crossover with--dataset/ETHPy150Open benhamner/Metrics/Python/ml_metrics/custom/kdd_average_precision.py/kdd_mapk