<commit_before>﻿
using Xamarin.Forms;

namespace AppShell.Mobile.Views
{
    [ContentProperty("ShellContent")]
    public partial class ShellView : ContentView
    {
        public static readonly BindableProperty ShellContentProperty = BindableProperty.Create<ShellView, View>(d => d.ShellContent, null, propertyChanged: ShellContentPropertyChanged);
        public static readonly BindableProperty HasNavigationBarProperty = BindableProperty.Create<ShellView, bool>(x => x.HasNavigationBar, true, propertyChanged: OnHasNavigationBarChanged);

        public View ShellContent { get { return (View)GetValue(ShellContentProperty); } set { SetValue(ShellContentProperty, value); } }
        public bool HasNavigationBar { get { return (bool)GetValue(HasNavigationBarProperty); } set { SetValue(HasNavigationBarProperty, value); } }
        
        public static void ShellContentPropertyChanged(BindableObject d, View oldValue, View newValue)
        {
            ShellView shellView = d as ShellView;
            shellView.ShellContentView.Content = newValue;
        }

        private static void OnHasNavigationBarChanged(BindableObject d, bool oldValue, bool newValue)
        {
            ShellView shellView = d as ShellView;
            NavigationPage.SetHasNavigationBar(shellView, newValue);

            if (!newValue)
                shellView.Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0);
        }

        public ShellView()
        {
            InitializeComponent();

            SetBinding(HasNavigationBarProperty, new Binding("HasNavigationBar"));
        }
    }
}
<commit_msg>Fixed compile error in shell view<commit_after>﻿
using Xamarin.Forms;

namespace AppShell.Mobile.Views
{
    [ContentProperty("ShellContent")]
    public partial class ShellView : ContentView
    {
        public static readonly BindableProperty ShellContentProperty = BindableProperty.Create<ShellView, View>(d => d.ShellContent, null, propertyChanged: ShellContentPropertyChanged);
        public static readonly BindableProperty HasNavigationBarProperty = BindableProperty.Create<ShellView, bool>(x => x.HasNavigationBar, true, propertyChanged: OnHasNavigationBarChanged);

        public View ShellContent { get { return (View)GetValue(ShellContentProperty); } set { SetValue(ShellContentProperty, value); } }
        public bool HasNavigationBar { get { return (bool)GetValue(HasNavigationBarProperty); } set { SetValue(HasNavigationBarProperty, value); } }
        
        public static void ShellContentPropertyChanged(BindableObject d, View oldValue, View newValue)
        {
            ShellView shellView = d as ShellView;
            shellView.ShellContent = newValue;
        }

        private static void OnHasNavigationBarChanged(BindableObject d, bool oldValue, bool newValue)
        {
            ShellView shellView = d as ShellView;
            NavigationPage.SetHasNavigationBar(shellView, newValue);

            if (!newValue)
                shellView.Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0);
        }

        public ShellView()
        {
            InitializeComponent();

            SetBinding(HasNavigationBarProperty, new Binding("HasNavigationBar"));
        }
    }
}

{'fraction_non_alphanumeric': 0.08168927250308261, 'fraction_numerical': 0.004315659679408138, 'mean_word_length': 3.2753623188405796, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '2129562', 'n_tokens_mistral': 825, 'n_tokens_neox': 800, 'n_words': 203}