<commit_before>using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using CodeCamp.Core;
using CodeCamp.Core.DataAccess;
using CodeCamp.Core.Messaging;
using CodeCamp.Core.Messaging.Messages;
using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace NycCodeCamp.MonoTouchApp
{
	public class Application
	{
		static void Main(string[] args)
		{
			UIApplication.Main (args);
		}
	}
	
	public partial class AppDelegate : UIApplicationDelegate
	{
		private TabController _tabController;
		private WaitingView _waitingView;
		
		public static CodeCampService CodeCampService { get; private set; }
		
		public override bool FinishedLaunching(UIApplication app, NSDictionary options)
		{
			_waitingView = new WaitingView();
			
			subscribeToMessages();
			
			CodeCampService = new CodeCampService("http://localhost:8080/v1", "sample");
			//CodeCampService = new CodeCampService("http://codecamps.gregshackles.com/v1", "sample");
			
			_tabController = new TabController();
			_tabController.View.BackgroundColor = UIColor.Clear;
			
			var backgroundImage = new UIImageView(UIImage.FromFile("Content/Images/background.png"));
			backgroundImage.UserInteractionEnabled = true;
			backgroundImage.Frame = new System.Drawing.RectangleF(0, 0, window.Frame.Width, window.Frame.Height);
			backgroundImage.AddSubview(_tabController.View);
			
			window.AddSubview(backgroundImage);
			
			window.MakeKeyAndVisible ();
	
			return true;
		}
		
		private void subscribeToMessages()
		{
			MessageHub.Instance.Subscribe<StartedCheckingForUpdatedScheduleMessage>(msg =>
				InvokeOnMainThread(() => _waitingView.Show("Checking for updated schedule")));
			
			MessageHub.Instance.Subscribe<ErrorCheckingForUpdatedScheduleMessage>(msg =>
			{
				InvokeOnMainThread(() =>
				{
					_waitingView.Hide();
					
					new UIAlertView("Error", "Unable to check for an updated schedule, please try again later",
									null, "Ok", null).Show();
				});
			});
			
			MessageHub.Instance.Subscribe<NoUpdatedScheduleAvailableMessage>(msg =>
			{	
				InvokeOnMainThread(() => 
				{
					_waitingView.Hide();
				
					new UIAlertView("", "Your schedule is already up to date",
									null, "Ok", null).Show();
				});
			});
			
			MessageHub.Instance.Subscribe<FoundUpdatedScheduleMessage>(msg =>
				InvokeOnMainThread(() => _waitingView.Hide()));
			
			MessageHub.Instance.Subscribe<StartedDownloadingUpdatedScheduleMessage>(msg =>
				InvokeOnMainThread(() => _waitingView.Show("Downloading updated event details")));
			
			MessageHub.Instance.Subscribe<ErrorDownloadingUpdatedScheduleMessage>(msg =>
			{
				InvokeOnMainThread(() =>
				{
					_waitingView.Hide();
					
					new UIAlertView("Error", "Unable to download the event details, please try again later",
									null, "Ok", null).Show();
				});
			});
			
			MessageHub.Instance.Subscribe<FinishedUpdatingScheduleMessage>(msg =>
			{
				InvokeOnMainThread(() =>
				{
					_tabController.ReloadViews();
					
					_waitingView.Hide();
				});
			});
		}
		
		// This method is required in iPhoneOS 3.0
		public override void OnActivated(UIApplication application)
		{
		}
	}
}

<commit_msg>resetting iPhone to point to appharbor service<commit_after>using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using CodeCamp.Core;
using CodeCamp.Core.DataAccess;
using CodeCamp.Core.Messaging;
using CodeCamp.Core.Messaging.Messages;
using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace NycCodeCamp.MonoTouchApp
{
	public class Application
	{
		static void Main(string[] args)
		{
			UIApplication.Main (args);
		}
	}
	
	public partial class AppDelegate : UIApplicationDelegate
	{
		private TabController _tabController;
		private WaitingView _waitingView;
		
		public static CodeCampService CodeCampService { get; private set; }
		
		public override bool FinishedLaunching(UIApplication app, NSDictionary options)
		{
			_waitingView = new WaitingView();
			
			subscribeToMessages();
			
			//CodeCampService = new CodeCampService("http://localhost:8080/v1", "sample");
			CodeCampService = new CodeCampService("http://codecamps.gregshackles.com/v1", "sample");
			
			_tabController = new TabController();
			_tabController.View.BackgroundColor = UIColor.Clear;
			
			var backgroundImage = new UIImageView(UIImage.FromFile("Content/Images/background.png"));
			backgroundImage.UserInteractionEnabled = true;
			backgroundImage.Frame = new System.Drawing.RectangleF(0, 0, window.Frame.Width, window.Frame.Height);
			backgroundImage.AddSubview(_tabController.View);
			
			window.AddSubview(backgroundImage);
			
			window.MakeKeyAndVisible ();
	
			return true;
		}
		
		private void subscribeToMessages()
		{
			MessageHub.Instance.Subscribe<StartedCheckingForUpdatedScheduleMessage>(msg =>
				InvokeOnMainThread(() => _waitingView.Show("Checking for updated schedule")));
			
			MessageHub.Instance.Subscribe<ErrorCheckingForUpdatedScheduleMessage>(msg =>
			{
				InvokeOnMainThread(() =>
				{
					_waitingView.Hide();
					
					new UIAlertView("Error", "Unable to check for an updated schedule, please try again later",
									null, "Ok", null).Show();
				});
			});
			
			MessageHub.Instance.Subscribe<NoUpdatedScheduleAvailableMessage>(msg =>
			{	
				InvokeOnMainThread(() => 
				{
					_waitingView.Hide();
				
					new UIAlertView("", "Your schedule is already up to date",
									null, "Ok", null).Show();
				});
			});
			
			MessageHub.Instance.Subscribe<FoundUpdatedScheduleMessage>(msg =>
				InvokeOnMainThread(() => _waitingView.Hide()));
			
			MessageHub.Instance.Subscribe<StartedDownloadingUpdatedScheduleMessage>(msg =>
				InvokeOnMainThread(() => _waitingView.Show("Downloading updated event details")));
			
			MessageHub.Instance.Subscribe<ErrorDownloadingUpdatedScheduleMessage>(msg =>
			{
				InvokeOnMainThread(() =>
				{
					_waitingView.Hide();
					
					new UIAlertView("Error", "Unable to download the event details, please try again later",
									null, "Ok", null).Show();
				});
			});
			
			MessageHub.Instance.Subscribe<FinishedUpdatingScheduleMessage>(msg =>
			{
				InvokeOnMainThread(() =>
				{
					_tabController.ReloadViews();
					
					_waitingView.Hide();
				});
			});
		}
		
		// This method is required in iPhoneOS 3.0
		public override void OnActivated(UIApplication application)
		{
		}
	}
}


{'fraction_non_alphanumeric': 0.1139220859847897, 'fraction_numerical': 0.0031041440322830977, 'mean_word_length': 3.9153318077803205, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3690856', 'n_tokens_mistral': 2330, 'n_tokens_neox': 1814, 'n_words': 362}