<commit_before>﻿using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace TrackingApp.Droid
{
    [Activity(Label = "Activity Tracker", MainLauncher = true, Icon = "@drawable/radar")]
    public class MainActivity : Activity, IActivity
    {
        public event EventHandler<ActivityResultArgs> ActivityResult;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            var mainPresenter = new MainPresenter(this);
        }

        protected override void OnActivityResult(int requestCode, [GeneratedEnum] Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);
            if(ActivityResult != null)
            {
                ActivityResult.Invoke(this, new ActivityResultArgs() { RequestCode = requestCode, ResultCode = resultCode, Data = data });
            }
        }
    }
}

<commit_msg>wired the service to the main activity<commit_after>﻿using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace TrackingApp.Droid
{
    [Activity(Label = "Activity Tracker", MainLauncher = true, Icon = "@drawable/radar")]
    public class MainActivity : Activity, IActivity
    {
        public event EventHandler<ActivityResultArgs> ActivityResult;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            var mainPresenter = new MainPresenter(this, new TextParserService());
        }

        protected override void OnActivityResult(int requestCode, [GeneratedEnum] Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);
            if(ActivityResult != null)
            {
                ActivityResult.Invoke(this, new ActivityResultArgs() { RequestCode = requestCode, ResultCode = resultCode, Data = data });
            }
        }
    }
}


{'fraction_non_alphanumeric': 0.08655536028119508, 'fraction_numerical': 0.0, 'mean_word_length': 2.7266775777414076, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6799830', 'n_tokens_mistral': 575, 'n_tokens_neox': 565, 'n_words': 158}