<commit_before>import django.dispatch

from h1ds_core.models import H1DSSignalInstance

h1ds_signal = django.dispatch.Signal(providing_args=["h1ds_sig"])

def create_instance(sender, **kwargs):
    new_instance = H1DSSignalInstance(signal=kwargs['h1ds_sig'])
    new_instance.save()

h1ds_signal.connect(create_instance)<commit_msg>provide value arg for h1ds signals<commit_after>import django.dispatch

from h1ds_core.models import H1DSSignalInstance

h1ds_signal = django.dispatch.Signal(providing_args=["h1ds_sig", "value"])

def create_instance(sender, **kwargs):
    new_instance = H1DSSignalInstance(signal=kwargs['h1ds_sig'])
    new_instance.save()

h1ds_signal.connect(create_instance)
{'fraction_non_alphanumeric': 0.10518731988472622, 'fraction_numerical': 0.021613832853025938, 'mean_word_length': 8.266666666666667, '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': '3785995', 'n_tokens_mistral': 240, 'n_tokens_neox': 237, 'n_words': 35}