<commit_before><commit_msg>statement meta data<commit_after>package org.intellij.ibatis.usages;

import com.intellij.util.xml.*;
import org.intellij.ibatis.dom.sqlMap.BaseStatement;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/**
 * statement meta data
 *
 * @author <EMAIL>
 */
public class StatementMetaData extends DomMetaData<BaseStatement> {
    /**
     * get name element
     *
     * @param element element
     * @return dom value
     */
    @Nullable
    protected GenericDomValue getNameElement(final BaseStatement element) {
        final GenericAttributeValue<String> id = element.getId();
        if (id.getXmlElement() != null) {
            return id;
        }
        return null;
    }

    /**
     * get icon for statement
     *
     * @return icon
     */
    @Override public Icon getIcon() {
        return getElement().getIcon(0);
    }

    /**
     * get display name for usage find
     *
     * @return dialog
     */
    public String getTypeName() {
        return getElement().getXmlElementName() + " Id: ";
    }
}
{'fraction_non_alphanumeric': 0.10902591599642537, 'fraction_numerical': 0.0008936550491510277, 'mean_word_length': 2.1197771587743732, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '5708597', 'n_tokens_mistral': 332, 'n_tokens_neox': 316, 'n_words': 74}