<commit_before>from django.apps import apps
import importlib
from background_task import background


@background(schedule=1)
def send_async(email_module_name, email_class_name,
               app_label, model_name, object_id,
               *args, **kwargs):
    mod = importlib.import_module(email_module_name)
    cls = getattr(mod, email_class_name)
    model = apps.get_model(app_label, model_name)
    object = model.objects.get(id=object_id)
    return cls().dispatch(object, *args, **kwargs)<commit_msg>Fix argument unpacking<commit_after>from django.apps import apps
import importlib
from background_task import background


@background(schedule=1)
def send_async(email_module_name, email_class_name,
               app_label, model_name, object_id,
               args, kwargs):
    mod = importlib.import_module(email_module_name)
    cls = getattr(mod, email_class_name)
    model = apps.get_model(app_label, model_name)
    object = model.objects.get(id=object_id)
    return cls().dispatch(object, *args, **kwargs)
{'fraction_non_alphanumeric': 0.09241245136186771, 'fraction_numerical': 0.0019455252918287938, 'mean_word_length': 4.387434554973822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6243216', 'n_tokens_mistral': 315, 'n_tokens_neox': 313, 'n_words': 67}