def admin_translationinline(model, inline_class=admin.StackedInline, **kwargs):

    kwargs['extra'] = 1
    kwargs['max_num'] = len(settings.LANGUAGES)
    kwargs['model'] = model
    return type(
        str(model.__class__.__name__ + 'Inline'), (inline_class,), kwargs)
Returns the type with the highest probability for the given document.
dataset/ETHPy150Open feincms/feincms/feincms/translations.py/admin_translationinline--crossover with--dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/NB.classify