<commit_before>define(["js/data/Entity"], function (Entity) {
    return Entity.inherit("sprd.entity.Font", {

        schema: {
            name: String,
            weight: String,
            style: String,
            minimalSize: Number
        },

        getFontFamily: function() {
            return this.$parent;
        },

        getUniqueFontName: function() {
            return this.$.name + "_" + this.$.style + "_" + this.$.weight;
        },

        isBold: function() {
            return this.$.weight === "bold";
        }.onChange("weight"),

        isItalic: function () {
            return this.$.style === "italic";
        }.onChange("style")

    });
});
<commit_msg>shortened unique font name for IE9+ support<commit_after>define(["js/data/Entity"], function (Entity) {
    return Entity.inherit("sprd.entity.Font", {

        schema: {
            name: String,
            weight: String,
            style: String,
            minimalSize: Number
        },

        getFontFamily: function() {
            return this.$parent;
        },

        getUniqueFontName: function() {
            return "sprdfont_" + this.$.id;
        },

        isBold: function() {
            return this.$.weight === "bold";
        }.onChange("weight"),

        isItalic: function () {
            return this.$.style === "italic";
        }.onChange("style")

    });
});

{'fraction_non_alphanumeric': 0.15197132616487455, 'fraction_numerical': 0.0007168458781362007, 'mean_word_length': 1.6489563567362429, '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': '1833189', 'n_tokens_mistral': 395, 'n_tokens_neox': 377, 'n_words': 77}