<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;

namespace PCLAppConfig.FileSystemStream
{
	public class UWPAppConfigPathExtractor : IAppConfigPathExtractor
	{
		public string Path
		{
			get
			{
				string rootPath = Package.Current.InstalledLocation.Path;
				string exeConfig = System.IO.Path.Combine(rootPath, Package.Current.DisplayName + ".exe.config");
				if (!File.Exists(exeConfig))
				{
					return System.IO.Path.Combine(rootPath, "App.config");
				}
				else
				{
					return exeConfig;
				}
			}
		}
	}
}
<commit_msg>Correct searching config base on exe file name.<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;

namespace PCLAppConfig.FileSystemStream
{
	public class UWPAppConfigPathExtractor : IAppConfigPathExtractor
	{
		public string Path
		{
			get
			{
				string rootPath = Package.Current.InstalledLocation.Path;
				string packageConfig = System.IO.Path.Combine(rootPath, Package.Current.DisplayName + ".exe.config");
				string exeConfig = System.IO.Path.Combine(rootPath, System.AppDomain.CurrentDomain.FriendlyName + ".exe.config");
				if (File.Exists(packageConfig))
				{
					return packageConfig;
				}
				else if (File.Exists(exeConfig))
				{
					return exeConfig;
				}
				else
				{
					return System.IO.Path.Combine(rootPath, "App.config");
				}
			}
		}
	}
}

{'fraction_non_alphanumeric': 0.10425937698664971, 'fraction_numerical': 0.0, 'mean_word_length': 3.698507462686567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2371484', 'n_tokens_mistral': 598, 'n_tokens_neox': 497, 'n_words': 97}