<commit_before>define(["sprd/data/SprdModel", "sprd/entity/ConcreteElement", "sprd/entity/Price"], function (SprdModel, ConcreteElement, Price) {
    return SprdModel.inherit("sprd.model.BasketItem", {

        schema: {
            element: ConcreteElement,
            quantity: Number,
            price: Price,
            priceItem: Price,
            origin: String,
            shippingFactor: Number
        },

        defaults: {
            quantity: 1,
            element: null,
            price: null,
            shippingFactor: 1
        },

        increaseQuantity: function (quantity) {
            quantity = quantity || 1;
            this.set('quantity', this.$.quantity + quantity);
        },

        decreaseQuantity: function (quantity) {
            quantity = quantity || 1;
            this.set('quantity', this.$.quantity - quantity);
        },

        _updatePrices: function () {<commit_msg>don't show gift wrapping if basket item doesn't support to be wrapped<commit_after>define(["sprd/data/SprdModel", "sprd/entity/ConcreteElement", "sprd/entity/Price"], function (SprdModel, ConcreteElement, Price) {
    return SprdModel.inherit("sprd.model.BasketItem", {

        schema: {
            element: ConcreteElement,
            quantity: Number,
            price: Price,
            priceItem: Price,
            origin: String,
            shippingFactor: Number,
            giftWrappingSupported: Boolean
        },

        defaults: {
            quantity: 1,
            element: null,
            price: null,
            shippingFactor: 1
        },

        increaseQuantity: function (quantity) {
            quantity = quantity || 1;
            this.set('quantity', this.$.quantity + quantity);
        },

        decreaseQuantity: function (quantity) {
            quantity = quantity || 1;
            this.set('quantity', this.$.quantity - quantity);
        },

        _updatePrices: function () {
{'fraction_non_alphanumeric': 0.1105424769703173, 'fraction_numerical': 0.0040941658137154556, 'mean_word_length': 1.8251445086705202, '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': '739012', 'n_tokens_mistral': 526, 'n_tokens_neox': 494, 'n_words': 115}