<commit_before>﻿// Author: <NAME>
// notes: Tutorial to show how admob works in xamarin
// email: <EMAIL>, <EMAIL>

using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Gms.Ads;
using admobDemo;
using admobDemo.AndroidPhone.ad;
namespace admobDemo.AndroidPhone
{
    [Activity(Label = "admobDemo.AndroidPhone", MainLauncher = true, Icon = "@drawable/icon")]
    public class Activity1 : Activity
    {
        int count = 1;
        AdView _bannerad;
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById<Button>(Resource.Id.MyButton);

            button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };

            //----------------------------------------------banner add stuff
            _bannerad = AdWrapper.ConstructStandardBanner(this, AdSize.SmartBanner, "your ad id here");
             var listener = new admobDemo.adlistener();
             listener.AdLoaded += () => { };
             _bannerad.AdListener = listener;
             _bannerad.CustomBuild();
            var layout = FindViewById<LinearLayout>(Resource.Id.mainlayout);
            layout.AddView(_bannerad);
            //-------------------------------------------------------------


            //-------------------------------------------------InterstitialAd stuff
            var FinalAd = AdWrapper.ConstructFullPageAdd(this, "your ad id here");
            var intlistener = new admobDemo.adlistener();
            listener.AdLoaded += () => { if (FinalAd.IsLoaded)FinalAd.Show(); };
            FinalAd.AdListener = listener;<commit_msg>minor copy past issue<commit_after>﻿// Author: <NAME>
// notes: Tutorial to show how admob works in xamarin
// email: <EMAIL>, <EMAIL>

using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Gms.Ads;
using admobDemo;
using admobDemo.AndroidPhone.ad;
namespace admobDemo.AndroidPhone
{
    [Activity(Label = "admobDemo.AndroidPhone", MainLauncher = true, Icon = "@drawable/icon")]
    public class Activity1 : Activity
    {
        int count = 1;
        AdView _bannerad;
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById<Button>(Resource.Id.MyButton);

            button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };

            //----------------------------------------------banner add stuff
            _bannerad = AdWrapper.ConstructStandardBanner(this, AdSize.SmartBanner, "your ad id here");
             var listener = new admobDemo.adlistener();
             listener.AdLoaded += () => { };
             _bannerad.AdListener = listener;
             _bannerad.CustomBuild();
            var layout = FindViewById<LinearLayout>(Resource.Id.mainlayout);
            layout.AddView(_bannerad);
            //-------------------------------------------------------------


            //-------------------------------------------------InterstitialAd stuff
            var FinalAd = AdWrapper.ConstructFullPageAdd(this, "your ad id here");
            var intlistener = new admobDemo.adlistener();
            intlistener.AdLoaded += () => { if (FinalAd.IsLoaded)FinalAd.Show(); };
            FinalAd.AdListener = intlistener;
{'fraction_non_alphanumeric': 0.17926455566905006, 'fraction_numerical': 0.0015321756894790602, 'mean_word_length': 1.8674963396778916, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '3379807', 'n_tokens_mistral': 1005, 'n_tokens_neox': 966, 'n_words': 260}