<commit_before>/**
 * @author Flash
 */
Ti.include('/ttyl/feed/views.js');
Ti.include('/ttyl/feed/feedDetail.js');
var FeedRow = function(data) {
	var options = {
		height:50,
		width:null
	};

	var viewRow = Titanium.UI.createTableViewRow();

	switch(data.viewType) {
		case _cons.I_MET_WHOM:
			view = IMetWhomView();
			break;
		case _cons.WHO_MET_ME:
			view = WhoMetMeView();
			break;
		case _cons.FRI_MET_WHOM:
			view = FriMetWhomView();
			break;
		case _cons.WHO_MET_FRI:
			view = WhoMetFriView();
			break;
		case _cons.NONE:
		default:

	}

	viewRow.addEventListener('click', function(e) {
		var feedDetail = new FeedDetail(data.id)
		tabGroup.activeTab.open(feedDetail.getWin());
	});
	this.addEventListener = function(e, fn) {
		viewRow.addEventListener(e, fn);
	};
	this.setRowHeight = function(a) {
		viewRow.height = a;
		view.height = a;
	};<commit_msg>fixed row<commit_after>/**
 * @author Flash
 */
Ti.include('/ttyl/feed/views.js');
Ti.include('/ttyl/feed/feedDetail.js');
var FeedRow = function(data) {
	var options = {
		height:50,
		width:null
	};

	var viewRow = Titanium.UI.createTableViewRow();

	switch(data.viewType) {
		case _cons.I_MET_WHOM:
			viewRow = IMetWhomView();
			break;
		case _cons.WHO_MET_ME:
			viewRow = WhoMetMeView();
			break;
		case _cons.FRI_MET_WHOM:
			viewRow = FriMetWhomView();
			break;
		case _cons.WHO_MET_FRI:
			viewRow = WhoMetFriView();
			break;
		case _cons.NONE:
		default:
			viewRow = NoneView();
	}

	viewRow.addEventListener('click', function(e) {
		var feedDetail = new FeedDetail(data.id)
		tabGroup.activeTab.open(feedDetail.getWin());
	});
	this.addEventListener = function(e, fn) {
		viewRow.addEventListener(e, fn);
	};
	this.setRowHeight = function(a) {
		viewRow.height = a;
		view.height = a;
	};
{'fraction_non_alphanumeric': 0.15090090090090091, 'fraction_numerical': 0.0022522522522522522, 'mean_word_length': 3.8953168044077136, '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': '4528477', 'n_tokens_mistral': 771, 'n_tokens_neox': 671, 'n_words': 117}