<commit_before>function HomeMenuView() {
	this.mapButton;
	this.freeRideButton;
	this.socialButton;
	this.transparentLayer;
	this.backgroundMap;
	this.main;
	this.view = this.createHomeView();
};

HomeMenuView.prototype.createHomeView = function(){
	var self = this;

	this.mapButton = createButton('maps', '/images/compass-black.png', '15%');
	this.freeRideButton = createButton('free ride', '/images/traffic-cone-black.png', '35%');
	this.socialButton = createButton('social', '/images/comment-black.png', '55%');

	this.main = Ti.UI.createView({
		height: Constants.viewHeight,
		width: '100%',
		backgroundColor: '#ddd',
		bottom: 0
	});

	this.transparentLayer = Ti.UI.createView({
		height: Constants.viewHeight,
		opacity: 1.0
	});

	this.backgroundMap = MapModule.createView({
		mapType: MapModule.NORMAL_TYPE,
	    animate: false,
	    regionFit: true,
	    userLocation: false,
	    opacity: 0.5,
	    region: {latitude: gpsLocationController.getCurrentLatitude(),
	    		longitude: gpsLocationController.getCurrentLongitude(),
	    		latitudeDelta: 0.001,
	    		longitudeDelta: 0.001},
	    top: 0,
	    height: Constants.deviceHeight
	});

	this.backgroundMap.addEventListener('locUpdate', function(e) {
		self.backgroundMap.region = {latitude: gpsLocationController.getCurrentLatitude(),
									longitude: gpsLocationController.getCurrentLongitude()}
	});

	this.main.add(this.backgroundMap);
	this.main.add(this.transparentLayer);
	this.main.add(this.mapButton);
	this.main.add(this.freeRideButton);
	this.main.add(this.socialButton);

	// Events

	this.mapButton.addEventListener('click', function() {
		windowController.goToDirectionWindow();
	});

	this.freeRideButton.addEventListener('click', function() {
		windowController.goToFreeRideWindow();
	});

	this.socialButton.addEventListener('click', function() {
		windowController.goToSocialWindow();
	});

	return this.main;


	function createButton(title, img, top, callback) {
		var view = Ti.UI.createView({
			top: top,
			width: Constants.homeViewButtonWidth,
			height: 80
		});

		var imgViewBg = Ti.UI.createView({
			width: 70,<commit_msg>Buttons fit on 5s now<commit_after>function HomeMenuView() {
	this.mapButton;
	this.freeRideButton;
	this.socialButton;
	this.transparentLayer;
	this.backgroundMap;
	this.main;
	this.view = this.createHomeView();
};

HomeMenuView.prototype.createHomeView = function(){
	var self = this;

	this.mapButton = createButton('maps', '/images/compass-black.png', '15%');
	this.freeRideButton = createButton('free ride', '/images/traffic-cone-black.png', '35%');
	this.socialButton = createButton('social', '/images/comment-black.png', '55%');

	this.main = Ti.UI.createView({
		height: Constants.viewHeight,
		width: '100%',
		backgroundColor: '#ddd',
		bottom: 0
	});

	this.transparentLayer = Ti.UI.createView({
		height: Constants.viewHeight,
		opacity: 1.0
	});

	this.backgroundMap = MapModule.createView({
		mapType: MapModule.NORMAL_TYPE,
	    animate: false,
	    regionFit: true,
	    userLocation: false,
	    opacity: 0.5,
	    region: {latitude: gpsLocationController.getCurrentLatitude(),
	    		longitude: gpsLocationController.getCurrentLongitude(),
	    		latitudeDelta: 0.001,
	    		longitudeDelta: 0.001},
	    top: 0,
	    height: Constants.deviceHeight
	});

	this.backgroundMap.addEventListener('locUpdate', function(e) {
		self.backgroundMap.region = {latitude: gpsLocationController.getCurrentLatitude(),
									longitude: gpsLocationController.getCurrentLongitude()}
	});

	this.main.add(this.backgroundMap);
	this.main.add(this.transparentLayer);
	this.main.add(this.mapButton);
	this.main.add(this.freeRideButton);
	this.main.add(this.socialButton);

	// Events

	this.mapButton.addEventListener('click', function() {
		windowController.goToDirectionWindow();
	});

	this.freeRideButton.addEventListener('click', function() {
		windowController.goToFreeRideWindow();
	});

	this.socialButton.addEventListener('click', function() {
		windowController.goToSocialWindow();
	});

	return this.main;


	function createButton(title, img, top, callback) {
		var view = Ti.UI.createView({
			top: top,
			width: '90%',
			height: 80
		});

		var imgViewBg = Ti.UI.createView({
			width: 70,
{'fraction_non_alphanumeric': 0.14441287878787878, 'fraction_numerical': 0.013494318181818182, 'mean_word_length': 4.618351063829787, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5605420', 'n_tokens_mistral': 1516, 'n_tokens_neox': 1370, 'n_words': 227}