<commit_before>const Backbone = require('backbone');

module.exports = Backbone.Model.extend({

    'initialize': function () {

        this.on('sync', function () {

            sessionStorage.setItem('profileId', this.get('_id'));

        }.bind(this));

    },

    'urlRoot': '/api/v1/profiles/auth'

});<commit_msg>Fixed issue with profileId persisting after logging out.<commit_after>const Backbone = require('backbone');

module.exports = Backbone.Model.extend({

    'initialize': function () {

        this.on('sync', function () {

            sessionStorage.setItem('profileId', this.get('_id'));

        }.bind(this));

        this.on('error', () => {

            sessionStorage.removeItem('profileId');

        });

    },

    'urlRoot': '/api/v1/profiles/auth'

});
{'fraction_non_alphanumeric': 0.18043202033036848, 'fraction_numerical': 0.0025412960609911056, 'mean_word_length': 2.7884615384615383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2984223', 'n_tokens_mistral': 246, 'n_tokens_neox': 228, 'n_words': 37}