<commit_before>﻿using System.ComponentModel;
using System.Runtime.CompilerServices;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236

namespace OfflineWorkflowSample
{
    public sealed partial class CustomAppTitleBar : UserControl, INotifyPropertyChanged
    {
        private string _title = "ArcGIS Maps Offline";

        public string Title
        {
            get => _title;
            set
            {
                _title = value;
                OnPropertyChanged();
            }
        }

        private Page _containingPage;
        public CustomAppTitleBar()
        {
            this.InitializeComponent();
            Window.Current.SetTitleBar(DraggablePart);
            DataContext = this;
        }

        public void EnableBackButton(Page containingPage)
        {
            _containingPage = containingPage;
            BackButton.Visibility = Visibility.Visible;
        }

        private void BackButton_OnClick(object sender, RoutedEventArgs e)
        {
            if (_containingPage?.Frame != null && _containingPage.Frame.CanGoBack)
            {
                _containingPage.Frame.GoBack();
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
<commit_msg>Set window controls to right color<commit_after>﻿using System.ComponentModel;
using System.Runtime.CompilerServices;
using Windows.UI;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236

namespace OfflineWorkflowSample
{
    public sealed partial class CustomAppTitleBar : UserControl, INotifyPropertyChanged
    {
        private string _title = "ArcGIS Maps Offline";

        public string Title
        {
            get => _title;
            set
            {
                _title = value;
                OnPropertyChanged();
            }
        }

        private Page _containingPage;
        public CustomAppTitleBar()
        {
            this.InitializeComponent();
            Window.Current.SetTitleBar(DraggablePart);
            ApplicationView.GetForCurrentView().TitleBar.ButtonForegroundColor = Colors.Black;
            DataContext = this;
        }

        public void EnableBackButton(Page containingPage)
        {
            _containingPage = containingPage;
            BackButton.Visibility = Visibility.Visible;
        }

        private void BackButton_OnClick(object sender, RoutedEventArgs e)
        {
            if (_containingPage?.Frame != null && _containingPage.Frame.CanGoBack)
            {
                _containingPage.Frame.GoBack();
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

{'fraction_non_alphanumeric': 0.07170339279468346, 'fraction_numerical': 0.004197271773347324, 'mean_word_length': 2.0686695278969958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '143775', 'n_tokens_mistral': 724, 'n_tokens_neox': 687, 'n_words': 157}