<commit_before>/* base.js
 * Backbone.js base model functionality.
 */
define(['backbone'], function(Backbone) {

    var Base = Backbone.Model.extend({
        defaults: {
            'model_name': 'base'
        },
        urlRoot: '/api/v1',
        url: function() {
            if (!this.identity)
                console.error("Model must be instantiated with identity option");
            var creds = {
                provider_id: this.identity.get('provider_id'),
                identity_id: this.identity.id
            };
            var url = this.urlRoot
                + '/provider/' + creds.provider_id
                + '/identity/' + creds.identity_id
                + '/' + this.defaults.model_name + '/';
            <commit_msg>Base model uses identity attribute<commit_after>/* base.js
 * Backbone.js base model functionality.
 */
define(['backbone'], function(Backbone) {

    var Base = Backbone.Model.extend({
        defaults: {
            'model_name': 'base'
        },
        urlRoot: '/api/v1',
        url: function() {
            if (!this.get('identity'))
                console.error("Model must be instantiated with identity option");
            var creds = {
                provider_id: this.get('identity').provider,
                identity_id: this.get('identity').id
            };
            var url = this.urlRoot
                + '/provider/' + creds.provider_id
                + '/identity/' + creds.identity_id
                + '/' + this.defaults.model_name + '/';
            
{'fraction_non_alphanumeric': 0.13151041666666666, 'fraction_numerical': 0.0013020833333333333, 'mean_word_length': 1.5919055649241147, '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': '1542104', 'n_tokens_mistral': 417, 'n_tokens_neox': 400, 'n_words': 86}