<commit_before>﻿using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;

using MahApps.Metro.Controls.Dialogs;
using Microsoft.Extensions.DependencyInjection;

namespace TinyLittleMvvm.Demo.ViewModels {
    public class MainViewModel : PropertyChangedBase, IOnLoadedHandler, ICancelableOnClosingHandler {
        private readonly IServiceProvider _serviceProvider;
        private readonly IDialogManager _dialogManager;
        private string _title;

        public MainViewModel(IServiceProvider serviceProvider, IDialogManager dialogManager, IFlyoutManager flyoutManager, SampleSubViewModel subViewModel) {
            _serviceProvider = serviceProvider;
            _dialogManager = dialogManager;
            Flyouts = flyoutManager;
            ShowSampleDialogCommand = new AsyncRelayCommand(OnShowSampleDialogAsync);
            ShowSampleFlyoutCommand = new AsyncRelayCommand(OnShowSampleFlyoutAsync);
            SubViewModel = subViewModel;
        }

        public Task OnLoadedAsync() {
            Title = "Tiny Little MVVM Demo";

            SubViewModel.Text = "Hello world";

            return Task.FromResult(0);<commit_msg>binding complains about Title being null<commit_after>﻿using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;

using MahApps.Metro.Controls.Dialogs;
using Microsoft.Extensions.DependencyInjection;

namespace TinyLittleMvvm.Demo.ViewModels {
    public class MainViewModel : PropertyChangedBase, IOnLoadedHandler, ICancelableOnClosingHandler {
        private readonly IServiceProvider _serviceProvider;
        private readonly IDialogManager _dialogManager;
        private string _title = "Tiny Little MVVM Demo";

        public MainViewModel(IServiceProvider serviceProvider, IDialogManager dialogManager, IFlyoutManager flyoutManager, SampleSubViewModel subViewModel) {
            _serviceProvider = serviceProvider;
            _dialogManager = dialogManager;
            Flyouts = flyoutManager;
            ShowSampleDialogCommand = new AsyncRelayCommand(OnShowSampleDialogAsync);
            ShowSampleFlyoutCommand = new AsyncRelayCommand(OnShowSampleFlyoutAsync);
            SubViewModel = subViewModel;
        }

        public Task OnLoadedAsync() {
            SubViewModel.Text = "Hello world";

            return Task.FromResult(0);
{'fraction_non_alphanumeric': 0.05768421052631579, 'fraction_numerical': 0.0008421052631578948, 'mean_word_length': 3.640625, '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': '7654452', 'n_tokens_mistral': 596, 'n_tokens_neox': 563, 'n_words': 137}