<commit_before>﻿using ShoppingCart.Services;
using ShoppingCart.ViewModels;
using ShoppingCart.Views;
using Xamarin.Forms;

namespace ShoppingCart
{
    public static class App
    {
        public static MainViewModel MainViewModel;
        public static LoginViewModel LoginViewModel;

        static App()
        {
            ILoginService login = new LoginService();
            NavigationService navi = new NavigationService();

            MainViewModel = new MainViewModel(navi);
            LoginViewModel  = new LoginViewModel(login, navi);

            MainPage = new NavigationPage(new MainPage());
            LoginPage = new NavigationPage(new LoginPage());
            Page2 = new NavigationPage(new Page2());

            navi.Navi = MainPage.Navigation;
            navi.myPage = MainPage;
        }

        public static Page LoginPage { get; private set; }

        public static Page MainPage { get; private set; }

        public static Page Page2 { get; private set; }
    }

}<commit_msg>Properties work, not just fields/<commit_after>﻿using ShoppingCart.Services;
using ShoppingCart.ViewModels;
using ShoppingCart.Views;
using Xamarin.Forms;

namespace ShoppingCart
{
    public static class App
    {
        public static MainViewModel MainViewModel { get; set; }
        public static LoginViewModel LoginViewModel { get; set; }

        static App()
        {
            ILoginService login = new LoginService();
            NavigationService navi = new NavigationService();

            MainViewModel = new MainViewModel(navi);
            LoginViewModel  = new LoginViewModel(login, navi);

            MainPage = new NavigationPage(new MainPage());
            LoginPage = new NavigationPage(new LoginPage());
            Page2 = new NavigationPage(new Page2());

            navi.Navi = MainPage.Navigation;
            navi.myPage = MainPage;
        }

        public static Page LoginPage { get; private set; }

        public static Page MainPage { get; private set; }

        public static Page Page2 { get; private set; }
    }

}
{'fraction_non_alphanumeric': 0.07722007722007722, 'fraction_numerical': 0.0028957528957528956, 'mean_word_length': 2.4095394736842106, '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': '3225178', 'n_tokens_mistral': 549, 'n_tokens_neox': 511, 'n_words': 160}