<commit_before>exports.list = function(model){
	var model = require('models/'+model);
	
	var animate = require('modules/animation');
	
	var table = Ti.UI.createTableView({
        backgroundColor: '#000',
        top: 0, bottom: 0,
        data: [
            { title: 'Loading, please wait...' }
        ]
    });
	
	model.query(function(e){
		var data = [];
		for (var i = 0, l = e.length; i < l; i++) {
                        data.push(Ti.UI.createTableViewRow({
                            title: e[i].title,
                            id: e[i].id,
                            backgroundColor:'#000',
                            color:'#fff'
                        }));
                 
                    }
       table.setData(data);
	});

	return table;
}
 
exports.refresh = function(model, callback){
 	var model = require('models/'+model);
 	
 	model.query(function(e){
 		callback(e)
 	});
}
<commit_msg>Removed data manipulation from listView<commit_after>var style = require('ui/common/style');

var animate = require('modules/animation');

exports.rows = function(e){
	var data = [];
	for (var i = 0, l = e.length; i < l; i++) {
		data.push(
			Ti.UI.createTableViewRow({
				backgroundColor:style.color2,
		        color:style.color3,
		        title:e[i].title,
		        id:e[i].id || null
   		 	})
   		 	
   		);

  	 }
  	 return data;
    
}

exports.list = function(data, view){
	//var model = require('models/'+model);
    
    var table = Ti.UI.createTableView({
        backgroundColor: style.color2,
        top: 0, bottom: 0,
        data:data
    });
    
	// model.query(function(e){
// 		
       // table.setData(rows(e));
	// });

	return table;
}
 
// exports.refresh = function(model, callback){
 	// var model = require('models/'+model);
//  	
 	// model.query(function(e){
//  		
 		// callback(e);
 	// });
// }

{'fraction_non_alphanumeric': 0.16396979503775622, 'fraction_numerical': 0.008090614886731391, 'mean_word_length': 1.7440828402366864, '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': '2951771', 'n_tokens_mistral': 649, 'n_tokens_neox': 591, 'n_words': 112}