<commit_before>define([
	'jquery',
	'underscore',
	'backbone',
	'models/session',
	'config',
	'vent'
], function($, _, Backbone, session, config, vent) {

	return Backbone.Model.extend({

		parse: function(json) {
			// Remove the outer json attribute {data: ...} on CRUD operations
			if(this.collection == undefined || json.data) {
				return json.data;
			}

			// Being called from collection which has already parsed.
			else {
				return json;
			}
		},


		amfphp_url_root: config.aris_api_url,


		amfphp_url_patterns: {
			create: "",
			read:   "",
			update: "",
			delete: ""
		},


		// Allow editable attributes to be defined conditionally for new/existing.<commit_msg>Dialog script attributes no longer being overwritten by PATCH.<commit_after>define([
	'jquery',
	'underscore',
	'backbone',
	'models/session',
	'config',
	'vent'
], function($, _, Backbone, session, config, vent) {

	return Backbone.Model.extend({

		set: function(attributes, options) {
			// Don't listen to incoming attributes on patch.
			if(options.patch)
			{
				return this;
			}
			return Backbone.Model.prototype.set.apply(this, arguments);
		},

		parse: function(json, options) {
			// Remove the outer json attribute {data: ...} on CRUD operations
			if(this.collection == undefined || json.data) {
				return json.data;
			}

			// Being called from collection which has already parsed.
			else {
				return json;
			}
		},


		amfphp_url_root: config.aris_api_url,


		amfphp_url_patterns: {
			create: "",
			read:   "",
			update: "",
			delete: ""
		},


		// Allow editable attributes to be defined conditionally for new/existing.
{'fraction_non_alphanumeric': 0.13419117647058823, 'fraction_numerical': 0.0, 'mean_word_length': 3.1658163265306123, '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': '213386', 'n_tokens_mistral': 614, 'n_tokens_neox': 522, 'n_words': 138}