<commit_before>﻿using System;
using System.Device.Location;
using System.Threading;
using System.Threading.Tasks;

namespace Xamarin.Geolocation
{
	public class Geolocator
	{
		public Geolocator()
		{
			this.isEnabled = GetEnabled();
		}

		public event EventHandler<PositionErrorEventArgs> PositionError;
		public event EventHandler<PositionEventArgs> PositionChanged;

		public bool IsGeolocationAvailable
		{
			get { return true; }
		}

		public bool IsGeolocationEnabled
		{
			get
			{
				if (this.watcher != null)
					this.isEnabled = (this.watcher.Permission == GeoPositionPermission.Granted && this.watcher.Status != GeoPositionStatus.Disabled);
				else
					this.isEnabled = GetEnabled();

				return this.isEnabled;
			}
		}
<commit_msg>[WP] Do not trigger geolocation in ctor<commit_after>﻿using System;
using System.Device.Location;
using System.Threading;
using System.Threading.Tasks;

namespace Xamarin.Geolocation
{
	public class Geolocator
	{
		public event EventHandler<PositionErrorEventArgs> PositionError;
		public event EventHandler<PositionEventArgs> PositionChanged;

		public bool IsGeolocationAvailable
		{
			get { return true; }
		}

		public bool IsGeolocationEnabled
		{
			get
			{
				if (this.watcher != null)
					this.isEnabled = (this.watcher.Permission == GeoPositionPermission.Granted && this.watcher.Status != GeoPositionStatus.Disabled);
				else
					this.isEnabled = GetEnabled();

				return this.isEnabled;
			}
		}

{'fraction_non_alphanumeric': 0.089419795221843, 'fraction_numerical': 0.0, 'mean_word_length': 4.072664359861592, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6738704', 'n_tokens_mistral': 516, 'n_tokens_neox': 436, 'n_words': 98}