<commit_before>var createRssRow = function(item) {
	var tablerow = Ti.UI.createTableViewRow({
		height: '70dp',
		link: item.link,
		className: 'itemRow',
		hasChild: true
	});
	var imageview = Ti.UI.createImageView({
		image: item.image,
		height: 42, 
		width: 68, 
		left: '5dp',
		top: '3dp'
	});
	var titleview = Ti.UI.createLabel({
		text: item.title,
		color: '#000',
		font: {
			fontSize: '16dp'
		},
		left: '83dp',
		right: '5dp'
	});
	var dateview = Ti.UI.createLabel({
		text: item.pubDate,
		textAlign: 'center',
		color: '#444',
		font: {
			fontSize: '12dp'	
		},
		height: 'auto',
		width: '68dp',
		left: '5dp',
		bottom: '3dp'
	});
	tablerow.add(imageview);
	tablerow.add(dateview);
	tablerow.add(titleview);
	
	return tablerow;
};

//Master View Component Constructor
function MasterView() {
	var self = Ti.UI.createView({
		backgroundColor:'#fff'
	});
	
	var table = Ti.UI.createTableView();
	self.add(table);
	table.addEventListener('click', function(e) {
		self.fireEvent('itemSelected', { link: e.row.link });
	});
	
	self.refreshRssTable = function(data) {
		if (Object.prototype.toString.apply(data) === '[object Array]') {
			var rows = [];
			for (var i = 0; i < data.length; i++) {
				rows.push(createRssRow(data[i]));
			}
			table.setData(rows);
		}
	};

	return self;
}
module.exports = MasterView;<commit_msg>removed dp and specified a height for the titles to force graceful truncation<commit_after>var createRssRow = function(item) {
	var tablerow = Ti.UI.createTableViewRow({
		height: 70,
		link: item.link,
		className: 'itemRow',
		hasChild: true
	});
	var imageview = Ti.UI.createImageView({
		image: item.image,
		height: 42, 
		width: 68, 
		left: 5,
		top: 3
	});
	var titleview = Ti.UI.createLabel({
		text: item.title,
		color: '#000',
		height: 70,
		font: {
			fontSize: 16
		},
		left: 83,
		right: 5
	});
	var dateview = Ti.UI.createLabel({
		text: item.pubDate,
		textAlign: 'center',
		color: '#444',
		font: {
			fontSize: 12	
		},
		height: 'auto',
		width: 68,
		left: 5,
		bottom: 3
	});
	tablerow.add(imageview);
	tablerow.add(dateview);
	tablerow.add(titleview);
	
	return tablerow;
};

//Master View Component Constructor
function MasterView() {
	var self = Ti.UI.createView({
		backgroundColor:'#fff'
	});
	
	var table = Ti.UI.createTableView();
	self.add(table);
	table.addEventListener('click', function(e) {
		self.fireEvent('itemSelected', { link: e.row.link });
	});
	
	self.refreshRssTable = function(data) {
		if (Object.prototype.toString.apply(data) === '[object Array]') {
			var rows = [];
			for (var i = 0; i < data.length; i++) {
				rows.push(createRssRow(data[i]));
			}
			table.setData(rows);
		}
	};

	return self;
}
module.exports = MasterView;
{'fraction_non_alphanumeric': 0.17033773861967694, 'fraction_numerical': 0.019823788546255508, 'mean_word_length': 3.6264855687606112, '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': '4101757', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1033, 'n_words': 225}