<commit_before>﻿using System.IO;
using System.Collections.Generic;

namespace NugetCracker.Components.CSharp
{
	public class CSharpWebsite : CSharpProject
	{
		public readonly string SolutionPath;

		public CSharpWebsite(string solutionPath, string webApplicationName, string webApplicationPath) :
			base(Path.Combine(Path.GetDirectoryName(solutionPath), webApplicationPath))
		{
			SolutionPath = solutionPath;
			Name = webApplicationName;
			_isWeb = true;
		}

		protected override void ParseAvailableData()
		{
			if (!Directory.Exists(_projectDir))
				return;
			var app_code = Path.Combine(_projectDir, "App_Code");
			if (!Directory.Exists(app_code))
				app_code = _projectDir;
			ParseAssemblyInfo(Directory.EnumerateFiles(app_code, "*.cs", SearchOption.AllDirectories));
			ParsePackagesFile();
		}


		public override string Type { get { return "C# Web Site"; } }

		protected override void UpdatePackagesOnProject(Interfaces.INugetSpec newPackage)
		{
			// TODO
		}

		public override bool Build(Interfaces.ILogger logger)
		{
			// TODO
			return true;
		}
	}
}<commit_msg>Fixlet to get a better webApplicationName<commit_after>﻿using System.IO;
using System.Collections.Generic;
using System.Linq;
using NugetCracker.Interfaces;

namespace NugetCracker.Components.CSharp
{
	public class CSharpWebsite : CSharpProject
	{
		public readonly string SolutionPath;

		public CSharpWebsite(string solutionPath, string webApplicationName, string webApplicationPath) :
			base(Path.Combine(Path.GetDirectoryName(solutionPath), webApplicationPath))
		{
			SolutionPath = solutionPath;
			Name = webApplicationName.Split('\\').Last(s => !string.IsNullOrWhiteSpace(s));
			_isWeb = true;
		}

		protected override void ParseAvailableData()
		{
			if (!Directory.Exists(_projectDir))
				return;
			var app_code = Path.Combine(_projectDir, "App_Code");
			if (!Directory.Exists(app_code))
				app_code = _projectDir;
			ParseAssemblyInfo(Directory.EnumerateFiles(app_code, "*.cs", SearchOption.AllDirectories));
			ParsePackagesFile();
		}


		public override string Type { get { return "C# Web Site"; } }

		protected override void UpdatePackagesOnProject(INugetSpec newPackage)
		{
			// TODO
		}

		public override bool Build(Interfaces.ILogger logger)
		{
			// TODO
			return true;
		}
	}
}
{'fraction_non_alphanumeric': 0.09956521739130435, 'fraction_numerical': 0.0, 'mean_word_length': 4.61219512195122, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7241281', 'n_tokens_mistral': 800, 'n_tokens_neox': 686, 'n_words': 152}