<commit_before>Ti.include('/includes/network.js');

function getSkins() {
	var rows = [];
	var db = Ti.Database.open('skins');
	var skinList = db.execute('SELECT * FROM skins');

	while(skinList.isValidRow()) {
		var row = Ti.UI.createTableViewRow({
			skinID: skinList.fieldByName('id'),
			title: skinList.fieldByName('name'),
			skinDesc: skinList.fieldByName('description'),
			skinTime: parseInt(skinList.fieldByName('timestamp')),
			editable: true,
			isExpanded: false,
			isPlaceHolder: false,
			selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.GRAY,
			height: 45,
			removePanel: function() {
				this.isExpanded = false;
			}
		});

		var b_wear = Ti.UI.createButton({
			style: Ti.UI.iPhone.SystemButton.DISCLOSURE,
			right: 10
		});

		b_wear.addEventListener('click', function(e) {
			uploadSkin(e.source.parent.skinID, e.source.parent.title);
		});

		row.add(b_wear);
		rows.push(row);
		skinList.next();
	}
	skinList.close();

	if(rows.length == 0) {
		var row = {
			title: 'No content at the moment',
			editable: false,
			isPlaceHolder: true
		};

		rows.push(row);
	}

	function sortRows(ob1, ob2) {
		if(ob1.title > ob2.title) {
			return 1;
		} else if(ob1.title < ob2.title) {<commit_msg>Fixed disappearing button<commit_after>Ti.include('/includes/network.js');

function getSkins() {
	var rows = [];
	var db = Ti.Database.open('skins');
	var skinList = db.execute('SELECT * FROM skins');

	while(skinList.isValidRow()) {
		var row = Ti.UI.createTableViewRow({
			skinID: skinList.fieldByName('id'),
			title: skinList.fieldByName('name'),
			skinDesc: skinList.fieldByName('description'),
			skinTime: parseInt(skinList.fieldByName('timestamp')),
			editable: true,
			isExpanded: false,
			isPlaceHolder: false,
			selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.GRAY,
			height: 45,
			removePanel: function() {
				this.isExpanded = false;
			}
		});

		var b_wear = Ti.UI.createButton({
			style: Ti.UI.iPhone.SystemButton.DISCLOSURE,
			right: 10,
			width: 10,
			height: 10
		});

		b_wear.addEventListener('click', function(e) {
			uploadSkin(e.source.parent.skinID, e.source.parent.title);
		});

		row.add(b_wear);
		rows.push(row);
		skinList.next();
	}
	skinList.close();

	if(rows.length == 0) {
		var row = {
			title: 'No content at the moment',
			editable: false,
			isPlaceHolder: true
		};

		rows.push(row);
	}

	function sortRows(ob1, ob2) {
		if(ob1.title > ob2.title) {
			return 1;
		} else if(ob1.title < ob2.title) {
{'fraction_non_alphanumeric': 0.15749296906388108, 'fraction_numerical': 0.01124949779027722, 'mean_word_length': 3.816247582205029, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1273219', 'n_tokens_mistral': 1034, 'n_tokens_neox': 894, 'n_words': 164}