<commit_before># -*- coding: utf-8 -*-

import fedmsg
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)


def publish_to_fedmsg(topic, compose_url, compose_id, status, job_id, release):
    """ Publish the message to fedmsg with image_url, image_name, status and
    build_id
    """
    try:
        fedmsg.publish(topic=topic, modname="autocloud", msg={
            'compose_url': compose_url,
            'compos_id': compose_id,
            'status': status,
            'job_id': job_id,
            'release': release,
        })
    except Exception as err:
        log.error(err)<commit_msg>Update the producer to accept any number of arguments<commit_after># -*- coding: utf-8 -*-

import fedmsg
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)


def publish_to_fedmsg(topic, *args, **params):
    """ Publish the message to fedmsg with image_url, image_name, status and
    build_id
    """
    try:
        fedmsg.publish(topic=topic, modname="autocloud", msg=params)
    except Exception as err:
        log.error(err)
{'fraction_non_alphanumeric': 0.11341134113411341, 'fraction_numerical': 0.0018001800180018, 'mean_word_length': 3.1962264150943396, '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': '4400569', 'n_tokens_mistral': 343, 'n_tokens_neox': 336, 'n_words': 88}