<commit_before>define(["jquery", "backbone", "ws"], function($, Backbone, WebServices) {

	var user = Backbone.Model.extend({
		urlRoot: WebServices.v1.users,
		defaults: {
		},
		initialize: function() {
			//alert("Welcome to this world");
		},
		currency: function(){
			var accounts = this.get('accounts');

			if(accounts.length === 0){
				return null;
			}

			return this.get('accounts')[0].currency;
		}
	});

	return user;
});<commit_msg>Fix bug with accounts.length with web interface<commit_after>define(["jquery", "backbone", "ws"], function($, Backbone, WebServices) {

	var user = Backbone.Model.extend({
		urlRoot: WebServices.v1.users,
		defaults: {
		},
		initialize: function() {
			//alert("Welcome to this world");
		},
		currency: function(){
			var accounts = this.get('accounts');


			return this.get('accounts')[0].currency;
		}
	});

	return user;
});
{'fraction_non_alphanumeric': 0.18223234624145787, 'fraction_numerical': 0.0056947608200455585, 'mean_word_length': 4.022857142857143, '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': '4612829', 'n_tokens_mistral': 330, 'n_tokens_neox': 286, 'n_words': 64}