<commit_before>﻿using System;
using System.Diagnostics;
using System.Threading.Tasks;
using MicrosoftHouse.Abstractions;
using MicrosoftHouse.Helpers;
using Xamarin.Forms;

namespace MicrosoftHouse.ViewModels
{
	public class EntryPageViewModel : BaseViewModel
	{
		public EntryPageViewModel()
		{
			AppService = Locations.AppServiceUrl;
			LoginCommand = new Command(async () => await ExecuteLoginCommand());
			// Custom auth
			//User = new User { Username = "", Password = "" };
		}

		public string AppService { get; set; }
		public Command LoginCommand { get; } 
		// Custom auth
		//public User User { get; set; }

		async Task ExecuteLoginCommand()
		{
			if (IsBusy)
				return;
			IsBusy = true;

			try
			{
				//var cloudService = App.CloudService;
				var cloudService = ServiceLocator.Instance.Resolve<ICloudService>();
				//await cloudService.LoginAsync(User);
				//await cloudService.LoginAsync();
				// Creando una nuova navigation page, non cè più la possibilità di tornare indietro.
				Application.Current.MainPage = new MasterPage();

			}
			catch (Exception ex)
			{
				Debug.WriteLine($"[Login] Error = {ex.Message}");
			}
			finally
			{
				IsBusy = false;
			}
		}
	}
}<commit_msg>PUT<NAME>'HO FATTA!<commit_after>﻿using System;
using System.Diagnostics;
using System.Threading.Tasks;
using MicrosoftHouse.Abstractions;
using MicrosoftHouse.Helpers;
using Xamarin.Forms;

namespace MicrosoftHouse.ViewModels
{
	public class EntryPageViewModel : BaseViewModel
	{
		public EntryPageViewModel()
		{
			AppService = Locations.AppServiceUrl;
			LoginCommand = new Command(async () => await ExecuteLoginCommand());
			// Custom auth
			//User = new User { Username = "", Password = "" };
		}

		public string AppService { get; set; }
		public Command LoginCommand { get; } 
		// Custom auth
		//public User User { get; set; }

		async Task ExecuteLoginCommand()
		{
			if (IsBusy)
				return;
			IsBusy = true;

			try
			{
				//var cloudService = App.CloudService;
				var cloudService = ServiceLocator.Instance.Resolve<ICloudService>();
				//await cloudService.LoginAsync(User);
				await cloudService.LoginAsync();
				// Creando una nuova navigation page, non cè più la possibilità di tornare indietro.
				Application.Current.MainPage = new MasterPage();

			}
			catch (Exception ex)
			{
				Debug.WriteLine($"[Login] Error = {ex.Message}");
			}
			finally
			{
				IsBusy = false;
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.11266447368421052, 'fraction_numerical': 0.0, 'mean_word_length': 3.3758992805755397, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '1088289', 'n_tokens_mistral': 892, 'n_tokens_neox': 745, 'n_words': 189}