<commit_before>var app = Alloy.createModel('modelTab'); 

// persist all changes
app.on('change', function() { app.save(); });

// Change label when 'count' changes on model
app.on('change:count', function(model) {
	$.label.text = 'model: ' + JSON.stringify(model.attributes);
});

// fetch model from Ti.App.Properties adapter
app.fetch();

////////////////////////////////////
////////// event handlers //////////
////////////////////////////////////
function create(e) { app.save(app.defaults); }
function destroy(e) { app.destroy(); }
function increment(e) { app.set({'count':app.get('count')+1}); }<commit_msg>restructure single model properties test app for new properties adapter changes<commit_after>var ID = 'instance';
var app = Alloy.createModel('modelTab'); 

// Change label when 'count' changes on model
app.on('fetch change:count', function(model) {
	$.label.text = 'model: ' + JSON.stringify(app.attributes);
});

// fetch model from Ti.App.Properties adapter
app.set('id', ID);
app.fetch();

////////////////////////////////////
////////// event handlers //////////
////////////////////////////////////
function create(e) { 
	app.save(app.defaults); 
}

function destroy(e) { 
	app.destroy(); 
}

function increment(e) { 
	app.set({
		count: app.get('count')+1,
		id: ID
	}); 
	app.save();
}
{'fraction_non_alphanumeric': 0.29204892966360857, 'fraction_numerical': 0.0015290519877675841, 'mean_word_length': 2.4, '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': '7481994', 'n_tokens_mistral': 383, 'n_tokens_neox': 371, 'n_words': 91}