<commit_before>/*
 * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.impl.protocol.jabber.extensions.jingle;

import java.net.*;

import net.java.sip.communicator.impl.protocol.jabber.extensions.*;
import net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.ContentPacketExtension.SendersEnum;

import org.jivesoftware.smack.packet.*;

/**
 * RTP header extension.
 *
 * @author <NAME>
 */
public class RTPHdrExtPacketExtension
    extends AbstractPacketExtension
{
    /**
     * The namespace.
     */
    public static final String NAMESPACE =
        "urn:xmpp:jingle:apps:rtp:rtp-hdrext:0";

    /**
     * The name of the "candidate" element.
     */
    public static final String ELEMENT_NAME = "rtp-hdrext";

    /**
     * The name of the ID attribute.
     */
    public static final String ID_ATTR_NAME = "id";

    /**
     * The name of the senders attribute.
     */
    public static final String SENDERS_ATTR_NAME = "senders";

    /**
     * The name of the URI attribute.
     */
    public static final String URI_ATTR_NAME = "uri";

    /**
     * The name of the <tt>attributes</tt> attribute in the <tt>extmap</tt>
     * element.
     */
    public static final String ATTRIBUTES_ATTR_NAME = "attributes";

    /**
     * Constructor.
     */
    public RTPHdrExtPacketExtension()
    {
        super(NAMESPACE, ELEMENT_NAME);
    }

    public RTPHdrExtPacketExtension(RTPHdrExtPacketExtension ext)
    {
        this();
        setAttributes(ext.getAttributes());
        setID(ext.getID());
        setSenders(ext.getSenders());
        setURI(ext.getURI());
    }

    /**
     * Set the ID.<commit_msg>Does not copy an empty 'attributes' extension.<commit_after>/*
 * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.impl.protocol.jabber.extensions.jingle;

import java.net.*;

import net.java.sip.communicator.impl.protocol.jabber.extensions.*;
import net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.ContentPacketExtension.SendersEnum;

import org.jivesoftware.smack.packet.*;

/**
 * RTP header extension.
 *
 * @author <NAME>
 */
public class RTPHdrExtPacketExtension
    extends AbstractPacketExtension
{
    /**
     * The namespace.
     */
    public static final String NAMESPACE =
        "urn:xmpp:jingle:apps:rtp:rtp-hdrext:0";

    /**
     * The name of the "candidate" element.
     */
    public static final String ELEMENT_NAME = "rtp-hdrext";

    /**
     * The name of the ID attribute.
     */
    public static final String ID_ATTR_NAME = "id";

    /**
     * The name of the senders attribute.
     */
    public static final String SENDERS_ATTR_NAME = "senders";

    /**
     * The name of the URI attribute.
     */
    public static final String URI_ATTR_NAME = "uri";

    /**
     * The name of the <tt>attributes</tt> attribute in the <tt>extmap</tt>
     * element.
     */
    public static final String ATTRIBUTES_ATTR_NAME = "attributes";

    /**
     * Constructor.
     */
    public RTPHdrExtPacketExtension()
    {
        super(NAMESPACE, ELEMENT_NAME);
    }

    public RTPHdrExtPacketExtension(RTPHdrExtPacketExtension ext)
    {
        this();
        String attributes = ext.getAttributes();
        if (attributes != null)
            setAttributes(attributes);
        setID(ext.getID());
        setSenders(ext.getSenders());
        setURI(ext.getURI());
    }

    /**
     * Set the ID.
{'fraction_non_alphanumeric': 0.11585866885784717, 'fraction_numerical': 0.0005477951246233908, 'mean_word_length': 2.6302186878727634, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5941291', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1128, 'n_words': 267}