<commit_before>var args = arguments[0] || {};

var library = Alloy.createCollection('category'); 
var category_colour_lib = Alloy.createCollection('category_colour');
var colour_lib = Alloy.createCollection('colour'); 
var details = library.getCategoryList();

var searchFlag = 0;
var filterFlag = 0;

var bottomBar = Titanium.UI.createView({
   layout: 'composite',
   bottom: 0,
  // top: Ti.Platform.displayCaps.platformHeight - 60,
   height: 60,
   width: Ti.Platform.displayCaps.platformWidth
});

var buttonWrapper = Titanium.UI.createView({
	layout: 'horizontal',
	left : (Ti.Platform.displayCaps.platformWidth - 120) / 2,
   	width: 120
});

var backgroundImg = Ti.UI.createImageView({
	height: 60,
	width: Ti.UI.FILL,
  	image:'/images/tool_bar.jpg'
});

var filterButton = Ti.UI.createImageView({
  	width: 50,
  	height: 40,
  	right: 10,
  	top: 10,
  	bottom: 10,
  	image:'/images/icon_filter.png',
  //	onClick: "popWindow"

});

var searchButton = Ti.UI.createImageView({
  	width: 50,
  	height: 40,
  	left: 10,
  	top: 10,
  	bottom: 10,
  	image:'/images/icon_search.png'
});

var searchView = Titanium.UI.createView({
   		layout: 'composite',
   		width: "100%",
   		height: 80,
   		bottom: 60,
   		backgroundColor: '#A5A5A5'
	});
	
var tableData = [];

var row1 = Ti.UI.createTableViewRow({
    title: 'All',
    width: 150,
    left: 10,
    touchEnabled: true,
    height: 60
  });

var row2 = Ti.UI.createTableViewRow({
    title: 'Interior',
    width: 150,
    left: 10,
    touchEnabled: true,
    height: 60
  });
  
var row3 = Ti.UI.createTableViewRow({
    title: 'Exterior',
    width: 150,
    left: 10,
    touchEnabled: true,
    height: 60
  });
  
var row4 = Ti.UI.createTableViewRow({
    title: 'Wood',
	width: 150,
	left: 10,
    touchEnabled: true,
    height: 60
  });

var row5 = Ti.UI.createTableViewRow({
    title: 'Metal',
	width: 150,
	left: 10,
    touchEnabled: true,
    height: 60
  });

tableData.push(row1);
tableData.push(row2);
tableData.push(row3);
tableData.push(row4);
tableData.push(row5);

var table = Titanium.UI.createTableView({
		separatorColor: 'transparent',
		backgroundImage: '/images/pop_window.png',
		height: Ti.UI.SIZE,
		width: 150,
		bottom: 60,
		zIndex: 999,
		center: filterButton.getCenter(),
		//overScrollMode: Titanium.UI.Android.OVER_SCROLL_NEVER,
		data: tableData
	});

buttonWrapper.add(filterButton);
buttonWrapper.add(searchButton);
bottomBar.add(backgroundImg);
bottomBar.add(buttonWrapper);

generateTable();

/*var TheScrollView = Titanium.UI.createScrollView({
	backgroundColor: "white", 
	width:"95%",
	layout: 'vertical',
	height: "80%",
	top: 80,
	textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,
	overScrollMode: Titanium.UI.Android.OVER_SCROLL_NEVER
});*/
$.TheScrollView.height = PixelsToDPUnits(Ti.Platform.displayCaps.platformHeight) - 140;

function generateTable(){
	var data=[];
<<<<<<< HEAD
	var pHeight = Ti.Platform.displayCaps.platformHeight; 
	var TheScrollView = Titanium.UI.createScrollView({
		backgroundColor: "white", 
		width:"100%",
		layout: 'vertical',
		height: PixelsToDPUnits(pHeight) - 140,//"78%", 
		top:80, 
		textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,
		overScrollMode: Titanium.UI.Android.OVER_SCROLL_NEVER
	});
=======
>>>>>>> FETCH_HEAD
	 
	for (var i=0; i< details.length; i++) {
		console.log("details: "+details[i]);
		var colours = category_colour_lib.getCategoryColourByCategory(details[i]['id']);<commit_msg>ignore<commit_after>var args = arguments[0] || {};

var library = Alloy.createCollection('category'); 
var category_colour_lib = Alloy.createCollection('category_colour');
var colour_lib = Alloy.createCollection('colour'); 
var details = library.getCategoryList();

var searchFlag = 0;
var filterFlag = 0;

var bottomBar = Titanium.UI.createView({
   layout: 'composite',
   bottom: 0,
  // top: Ti.Platform.displayCaps.platformHeight - 60,
   height: 60,
   width: Ti.Platform.displayCaps.platformWidth
});

var buttonWrapper = Titanium.UI.createView({
	layout: 'horizontal',
	left : (Ti.Platform.displayCaps.platformWidth - 120) / 2,
   	width: 120
});

var backgroundImg = Ti.UI.createImageView({
	height: 60,
	width: Ti.UI.FILL,
  	image:'/images/tool_bar.jpg'
});

var filterButton = Ti.UI.createImageView({
  	width: 50,
  	height: 40,
  	right: 10,
  	top: 10,
  	bottom: 10,
  	image:'/images/icon_filter.png',
  //	onClick: "popWindow"

});

var searchButton = Ti.UI.createImageView({
  	width: 50,
  	height: 40,
  	left: 10,
  	top: 10,
  	bottom: 10,
  	image:'/images/icon_search.png'
});

var searchView = Titanium.UI.createView({
   		layout: 'composite',
   		width: "100%",
   		height: 80,
   		bottom: 60,
   		backgroundColor: '#A5A5A5'
	});
	
var tableData = [];

var row1 = Ti.UI.createTableViewRow({
    title: 'All',
    width: 150,
    left: 10,
    touchEnabled: true,
    height: 60
  });

var row2 = Ti.UI.createTableViewRow({
    title: 'Interior',
    width: 150,
    left: 10,
    touchEnabled: true,
    height: 60
  });
  
var row3 = Ti.UI.createTableViewRow({
    title: 'Exterior',
    width: 150,
    left: 10,
    touchEnabled: true,
    height: 60
  });
  
var row4 = Ti.UI.createTableViewRow({
    title: 'Wood',
	width: 150,
	left: 10,
    touchEnabled: true,
    height: 60
  });

var row5 = Ti.UI.createTableViewRow({
    title: 'Metal',
	width: 150,
	left: 10,
    touchEnabled: true,
    height: 60
  });

tableData.push(row1);
tableData.push(row2);
tableData.push(row3);
tableData.push(row4);
tableData.push(row5);

var table = Titanium.UI.createTableView({
		separatorColor: 'transparent',
		backgroundImage: '/images/pop_window.png',
		height: Ti.UI.SIZE,
		width: 150,
		bottom: 60,
		zIndex: 999,
		center: filterButton.getCenter(),
		//overScrollMode: Titanium.UI.Android.OVER_SCROLL_NEVER,
		data: tableData
	});

buttonWrapper.add(filterButton);
buttonWrapper.add(searchButton);
bottomBar.add(backgroundImg);
bottomBar.add(buttonWrapper);

generateTable();

/*var TheScrollView = Titanium.UI.createScrollView({
	backgroundColor: "white", 
	width:"95%",
	layout: 'vertical',
	height: "80%",
	top: 80,
	textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,
	overScrollMode: Titanium.UI.Android.OVER_SCROLL_NEVER
});*/
$.TheScrollView.height = PixelsToDPUnits(Ti.Platform.displayCaps.platformHeight) - 140;

function generateTable(){
	var data=[];

	 
	for (var i=0; i< details.length; i++) {
		console.log("details: "+details[i]);
		var colours = category_colour_lib.getCategoryColourByCategory(details[i]['id']);
{'fraction_non_alphanumeric': 0.15220747144180302, 'fraction_numerical': 0.03550478542760111, 'mean_word_length': 3.9761904761904763, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 10, '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': '5810379', 'n_tokens_mistral': 2623, 'n_tokens_neox': 2350, 'n_words': 478}