<commit_before>function tv_update_row() {
	var win = Ti.UI.createWindow();
	
	var tv = Ti.UI.createTableView({
		style:Titanium.UI.iPhone.TableViewStyle.GROUPED
	});
	
	function setData()
	{
		var data = [];
		for (var i=0;i<30;i++)	
		{
			var row = Ti.UI.createTableViewRow({height:50});
			var l1 = Ti.UI.createLabel({text:'Label ' +  i, font:{fontSize:14}, color:'#888', left:5});
			row.add(l1);
			var image1 = Ti.UI.createImageView({image:'/images/chat.png', right:5,height:23, width:29});
			row.add(image1);
			data.push(row);
		}
		tv.setData(data);
	}
	tv.addEventListener('click', function(e)
	{
		var label = e.row.children[0];
		label.text = 'I was clicked';
	});
	win.add(tv);
	setData();
	
	Ti.API.info('window ' + win);
	Ti.API.info('children ' + win.children + ' length ' + win.children.length);
	return win;
};

module.exports = tv_update_row;<commit_msg>Filling labels for clicked rows: Update Row Objects demo<commit_after>function tv_update_row() {
	var win = Ti.UI.createWindow();
	
	var tv = Ti.UI.createTableView({
		style:Titanium.UI.iPhone.TableViewStyle.GROUPED
	});
	
	function setData()
	{
		var data = [];
		for (var i=0;i<30;i++)	
		{
			var row = Ti.UI.createTableViewRow({height:50});
			var l1 = Ti.UI.createLabel({text:'Label ' +  i, font:{fontSize:14}, color:'#888', left:5, width:Ti.UI.FILL});
			row.add(l1);
			var image1 = Ti.UI.createImageView({image:'/images/chat.png', right:5,height:23, width:29});
			row.add(image1);
			data.push(row);
		}
		tv.setData(data);
	}
	tv.addEventListener('click', function(e)
	{
		var label = e.row.children[0];
		label.text = 'I was clicked';
	});
	win.add(tv);
	setData();
	
	Ti.API.info('window ' + win);
	Ti.API.info('children ' + win.children + ' length ' + win.children.length);
	return win;
};

module.exports = tv_update_row;
{'fraction_non_alphanumeric': 0.19071310116086235, 'fraction_numerical': 0.02321724709784411, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6987220', 'n_tokens_mistral': 776, 'n_tokens_neox': 694, 'n_words': 120}