<commit_before>var letterCollection = getLetterCollection();


function sendLetter() {
	checkLetter(getLetter());
}

function getLetter() {
	var letter = $.txtLetter.value;
	return letter.toUpperCase();
}

function checkLetter(letterToCheck) {
	letterCollection.fetch({
			query : 'SELECT letter FROM letterModel'
		});
	
	var letterJSON = letterCollection.toJSON();
	Ti.API.info(JSON.stringify(letterJSON));
	
	for (var i = 0; i < letterJSON.length; i++) {
		if (letterJSON[i].letter == letterToCheck) {
			//Save letter
			lettersArray.push(letterJSON[i].letter);
			$.lblLetters.text += letterJSON[i].letter;
			alert(letterJSON[i].letter);
		}
	}
}

function showInteractive() {
	if (!interactiveVisible) {
		$.interactiveView.show();
		interactiveVisible = true;
	} else {
		$.interactiveView.hide();
		interactiveVisible = false;
	}
}

function closeInteractive() {
	$.interactiveView.hide();
	interactiveVisible = false;
}

Alloy.Globals.showInteractive = showInteractive;
Alloy.Globals.closeInteractive = closeInteractive;<commit_msg>lkjhgfds<commit_after>var letterCollection = getLetterCollection();


function sendLetter() {
	checkLetter(getLetter());
}

function getLetter() {
	var letter = $.txtLetter.value;
	return letter.toUpperCase();
}

function checkLetter(letterToCheck) {
	letterCollection.fetch({
			query : 'SELECT letter FROM letterModel'
		});
	
	var letterJSON = letterCollection.toJSON();
	Ti.API.info(JSON.stringify(letterJSON));
	
	for (var i = 0; i < letterJSON.length; i++) {
		if (letterJSON[i].letter == letterToCheck) {
			//Save letter
			lettersArray.push(letterJSON[i].letter);
			$.lblFoundLetters.text += letterJSON[i].letter;
			alert(letterJSON[i].letter);
		}
	}
}

function showInteractive() {
	if (!interactiveVisible) {
		$.interactiveView.show();
		interactiveVisible = true;
	} else {
		$.interactiveView.hide();
		interactiveVisible = false;
	}
}

function closeInteractive() {
	$.interactiveView.hide();
	interactiveVisible = false;
}

Alloy.Globals.showInteractive = showInteractive;
Alloy.Globals.closeInteractive = closeInteractive;
{'fraction_non_alphanumeric': 0.1401151631477927, 'fraction_numerical': 0.0009596928982725527, 'mean_word_length': 5.008645533141211, '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': '5002694', 'n_tokens_mistral': 734, 'n_tokens_neox': 668, 'n_words': 121}