<commit_before>define(["sprd/data/SprdModel", "sprd/model/PrintType", "sprd/entity/Font"], function (SprdModel, PrintType, Font) {
    return SprdModel.inherit("sprd.model.FontFamily", {

        schema: {
            printTypes: [PrintType],
            fonts: [Font],
            deprecated: Boolean
        },

        getFont: function (weight, style) {
            weight = weight || "normal";
            style = style || "normal";

            for (var i = 0; i < this.$.fonts.$items.length; i++) {
                var font = this.$.fonts.$items[i];
                if (font.$.weight === weight || font.$.style === style) {
                    return font;
                }
            }

            return null;

        },

        getDefaultFont: function () {

            if (!this.$.fonts) {
                return null;
            }

            return this.$.fonts.at(0);
        }
<commit_msg>renamed attributes of FontFamily<commit_after>define(["sprd/data/SprdModel", "sprd/model/PrintType", "sprd/entity/Font"], function (SprdModel, PrintType, Font) {
    return SprdModel.inherit("sprd.model.FontFamily", {

        schema: {
            printTypes: [PrintType],
            fonts: [Font],
            deprecated: Boolean
        },

        getFont: function (fontWeight, fontStyle) {
            fontWeight = fontWeight || "normal";
            fontStyle = fontStyle || "normal";

            for (var i = 0; i < this.$.fonts.$items.length; i++) {
                var font = this.$.fonts.$items[i];
                if (font.$.weight === fontWeight || font.$.style === fontStyle) {
                    return font;
                }
            }

            return null;

        },

        getDefaultFont: function () {

            if (!this.$.fonts) {
                return null;
            }

            return this.$.fonts.at(0);
        }

{'fraction_non_alphanumeric': 0.1408, 'fraction_numerical': 0.0021333333333333334, 'mean_word_length': 1.4619422572178478, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3361650', 'n_tokens_mistral': 546, 'n_tokens_neox': 503, 'n_words': 109}