<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Net.Http;
using System.Threading.Tasks;
using System.Net;

namespace TestiOS
{
    class MainViewController : UIViewController
    {
        public MainViewController() : base()
        {
        }

        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            await GoogleFromPCL();
            await GoogleToPCL();

            HttpExtensionsFromPCL();
            HttpExtensionsToPCL();

			//await HttpPrimitivesFromPCL();
            await HttpPrimitivesToPCL();
        }

        async Task GoogleFromPCL()
        {
            var http = Portable.Compatibility.CreateHttpClient();

            var google = await http.GetStringAsync("http://www.google.com");
            Console.WriteLine("iOS: Google: {0}", google.Contains("I'm Feeling Lucky"));
        }

        async Task GoogleToPCL()
        {
            var http = new HttpClient();
            await Portable.Compatibility.Google(http);
        }

        void HttpExtensionsFromPCL()
        {
            var httpClientHandler = Portable.Compatibility.CreateHttpClientHandler();

            Console.WriteLine("iOS: System.Net.Http.HttpClientHandlerExtensions.SupportsAllowAutoRedirect: {0}",
                System.Net.Http.HttpClientHandlerExtensions.SupportsAllowAutoRedirect(httpClientHandler));
        }

        void HttpExtensionsToPCL()
        {
            var httpClientHandler = new HttpClientHandler();

            Portable.Compatibility.TestHttpClientHandlerExtensions(httpClientHandler);
        }

        async Task HttpPrimitivesToPCL()
        {
            var handler = new HttpClientHandler();
            if (handler.SupportsAutomaticDecompression)
            {
                handler.AutomaticDecompression = DecompressionMethods.GZip |
                                                 DecompressionMethods.Deflate;
            }

            await Portable.Compatibility.TestHttpPrimitives(handler);
        }

//        async Task HttpPrimitivesFromPCL()
//        {
//            var handler = Portable.Compatibility.CreateHttpClientHandlerWithCompression();
//            var httpClient = new HttpClient(handler);
//            var str = await httpClient.GetStringAsync("http://en.wikipedia.org/wiki/Gzip");
//
//            Console.WriteLine("iOS: Wikipedia: {0}", str.Contains("Wikipedia"));
//        }
    }
}<commit_msg>Uncommented out the Compression code from iOS app<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Net.Http;
using System.Threading.Tasks;
using System.Net;

namespace TestiOS
{
    class MainViewController : UIViewController
    {
        public MainViewController() : base()
        {
        }

        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            await GoogleFromPCL();
            await GoogleToPCL();

            HttpExtensionsFromPCL();
            HttpExtensionsToPCL();

			await HttpPrimitivesFromPCL();
            await HttpPrimitivesToPCL();
        }

        async Task GoogleFromPCL()
        {
            var http = Portable.Compatibility.CreateHttpClient();

            var google = await http.GetStringAsync("http://www.google.com");
            Console.WriteLine("iOS: Google: {0}", google.Contains("I'm Feeling Lucky"));
        }

        async Task GoogleToPCL()
        {
            var http = new HttpClient();
            await Portable.Compatibility.Google(http);
        }

        void HttpExtensionsFromPCL()
        {
            var httpClientHandler = Portable.Compatibility.CreateHttpClientHandler();

            Console.WriteLine("iOS: System.Net.Http.HttpClientHandlerExtensions.SupportsAllowAutoRedirect: {0}",
                System.Net.Http.HttpClientHandlerExtensions.SupportsAllowAutoRedirect(httpClientHandler));
        }

        void HttpExtensionsToPCL()
        {
            var httpClientHandler = new HttpClientHandler();

            Portable.Compatibility.TestHttpClientHandlerExtensions(httpClientHandler);
        }

        async Task HttpPrimitivesToPCL()
        {
            var handler = new HttpClientHandler();
            if (handler.SupportsAutomaticDecompression)
            {
                handler.AutomaticDecompression = DecompressionMethods.GZip |
                                                 DecompressionMethods.Deflate;
            }

            await Portable.Compatibility.TestHttpPrimitives(handler);
        }

        async Task HttpPrimitivesFromPCL()
        {
            var handler = Portable.Compatibility.CreateHttpClientHandlerWithCompression();
            var httpClient = new HttpClient(handler);
            var str = await httpClient.GetStringAsync("http://en.wikipedia.org/wiki/Gzip");

            Console.WriteLine("iOS: Wikipedia: {0}", str.Contains("Wikipedia"));
        }
    }
}
{'fraction_non_alphanumeric': 0.08900722708254089, 'fraction_numerical': 0.0011411182959300114, 'mean_word_length': 1.9511784511784511, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2858745', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1275, 'n_words': 237}