<commit_before>wn.doclistviews['Lead'] = wn.views.ListView.extend({
	init: function(d) {
		this._super(d)
		this.fields = this.fields.concat([
			'tabLead.lead_name',
			'tabLead.status',
			'tabLead.source',
			'tabLead.rating'
		]);
		this.stats = this.stats.concat(['status', 'source', 'rating', 'company']);
	},

	prepare_data: function(data) {
		this._super(data);
		if(data.status=='Interested') {
			data.label_type = 'success'
		}
		else if(['Open', 'Attempted to Contact', 'Contacted', 'Contact in Future'].indexOf(data.status)!=-1) {
			data.label_type = 'info'
		}
		data.status_html = repl('<span class="label label-%(label_type)s">%(status)s</span>', data);
		data.lead_name = repl("<a href=\"#!Form/Lead/%(name)s\">%(lead_name)s</a>",
			data);
		data.lead_status = (data.rating ? ('['+data.rating+'] ') : '') + '['+data.source+']';
	},

	columns: [
		{width: '3%', content: 'check'},
		{width: '30%', content:'lead_name'},
		{width: '12%', content:'status_html'},
		{width: '42%', content:'lead_status+tags', css: {color:'#222'}},
		{width: '13%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
	]
})<commit_msg>minor fix in lead's listview<commit_after>wn.doclistviews['Lead'] = wn.views.ListView.extend({
	init: function(d) {
		this._super(d)
		this.fields = this.fields.concat([
			'tabLead.lead_name',
			'tabLead.status',
			'tabLead.source',
			'tabLead.rating'
		]);
		this.stats = this.stats.concat(['status', 'source', 'rating', 'company']);
	},

	prepare_data: function(data) {
		this._super(data);
		if(data.status=='Interested') {
			data.label_type = 'success'
		}
		else if(['Open', 'Attempted to Contact', 'Contacted', 'Contact in Future'].indexOf(data.status)!=-1) {
			data.label_type = 'info'
		}
		data.status_html = repl('<span class="label label-%(label_type)s">%(status)s</span>', data);
		data.lead_name = repl("<a href=\"#!Form/Lead/%(name)s\">%(lead_name)s</a>",
			data);
		data.lead_status = (data.rating ? ('['+data.rating+'] ') : '') + '['+data.source+']';
	},

	columns: [
		{width: '3%', content: 'check'},
		{width: '5%', content:'avatar'},
		{width: '30%', content:'lead_name'},
		{width: '12%', content:'status_html'},
		{width: '38%', content:'lead_status+tags', css: {color:'#222'}},
		{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
	]
})
{'fraction_non_alphanumeric': 0.24850555081127243, 'fraction_numerical': 0.014090520922288642, 'mean_word_length': 4.946700507614213, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2259229', 'n_tokens_mistral': 982, 'n_tokens_neox': 874, 'n_words': 145}