<commit_before>using System;
using System.Threading.Tasks;
using MBProgressHUD;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using PTZRemoteController.Core;

namespace PTZRemoteControlleriOS
{
    public partial class RemoteView : UIViewController
    {
        private PTZRemote _remote;
        private double _currentZoomLevel = 0;

        public UIBarButtonItem RefreshButton{get;set;}

        public RemoteView() : base ("RemoteView", null)
        {
        }
		
       
        public override async void ViewDidLoad ()
        {
            base.ViewDidLoad();

            Title = "PTZ Remote";
            View.BackgroundColor = UIColor.LightGray;

			_remote = new PTZRemote();

			AttachHandlers();

			RefreshButton = new UIBarButtonItem(UIBarButtonSystemItem.Refresh);
            RefreshButton.Clicked += HandleRefreshButtonClicked;
			NavigationItem.RightBarButtonItem = RefreshButton;

			await ConnectToRelay();
        }

        private async Task ConnectToRelay()
        {
            bool connected = false;

            var waitIndicator = new MTMBProgressHUD (View) <commit_msg>Changed RefreshButton to be private<commit_after>using System;
using System.Threading.Tasks;
using MBProgressHUD;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using PTZRemoteController.Core;

namespace PTZRemoteControlleriOS
{
    public partial class RemoteView : UIViewController
    {
        private PTZRemote _remote;
        private double _currentZoomLevel = 0;

        private UIBarButtonItem RefreshButton{get;set;}

        public RemoteView() : base ("RemoteView", null)
        {
        }
		
       
        public override async void ViewDidLoad ()
        {
            base.ViewDidLoad();

            Title = "PTZ Remote";
            View.BackgroundColor = UIColor.LightGray;

			_remote = new PTZRemote();

			AttachHandlers();

			RefreshButton = new UIBarButtonItem(UIBarButtonSystemItem.Refresh);
            RefreshButton.Clicked += HandleRefreshButtonClicked;
			NavigationItem.RightBarButtonItem = RefreshButton;

			await ConnectToRelay();
        }

        private async Task ConnectToRelay()
        {
            bool connected = false;

            var waitIndicator = new MTMBProgressHUD (View) 
{'fraction_non_alphanumeric': 0.07126948775055679, 'fraction_numerical': 0.0008908685968819599, 'mean_word_length': 2.66394779771615, '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': '7303806', 'n_tokens_mistral': 628, 'n_tokens_neox': 589, 'n_words': 144}