<commit_before>using System;
using System.Diagnostics;
using System.IO;
using System.Web.Compilation;
using ConDep.Dsl.Builders;
using ConDep.Dsl.Operations.WebDeploy.Model;

namespace ConDep.Dsl
{
	public class PreCompileOperation : IOperateConDep
	{
		private readonly string _webApplicationName;
		private readonly string _webApplicationPhysicalPath;
		private readonly string _preCompileOutputpath;

		public PreCompileOperation(string webApplicationName, string webApplicationPhysicalPath, string preCompileOutputpath)
		{
			_webApplicationName = webApplicationName;
			_webApplicationPhysicalPath = webApplicationPhysicalPath;
			_preCompileOutputpath = preCompileOutputpath;
		}

		public WebDeploymentStatus Execute(EventHandler<WebDeployMessageEventArgs> output, EventHandler<WebDeployMessageEventArgs> outputError, WebDeploymentStatus webDeploymentStatus)
		{
			try
			{
				if(Directory.Exists(_preCompileOutputpath))
					Directory.Delete(_preCompileOutputpath, true);

				var buildManager = new ClientBuildManager(_webApplicationName, _webApplicationPhysicalPath, _preCompileOutputpath);
				buildManager.PrecompileApplication(new PreCompileCallback(output, outputError));
			}
			catch (Exception ex)
			{
				var args = new WebDeployMessageEventArgs { Level = TraceLevel.Error, Message = ex.Message };
				outputError(this, args);
				throw;
			}
			return webDeploymentStatus;
		}

		public bool IsValid(Notification notification)
		{
			return true;
		}
	}
}<commit_msg>set precompiled output to updatable<commit_after>using System;
using System.Diagnostics;
using System.IO;
using System.Web.Compilation;
using ConDep.Dsl.Builders;
using ConDep.Dsl.Operations.WebDeploy.Model;

namespace ConDep.Dsl
{
	public class PreCompileOperation : IOperateConDep
	{
		private readonly string _webApplicationName;
		private readonly string _webApplicationPhysicalPath;
		private readonly string _preCompileOutputpath;

		public PreCompileOperation(string webApplicationName, string webApplicationPhysicalPath, string preCompileOutputpath)
		{
			_webApplicationName = webApplicationName;
			_webApplicationPhysicalPath = webApplicationPhysicalPath;
			_preCompileOutputpath = preCompileOutputpath;
		}

		public WebDeploymentStatus Execute(EventHandler<WebDeployMessageEventArgs> output, EventHandler<WebDeployMessageEventArgs> outputError, WebDeploymentStatus webDeploymentStatus)
		{
			try
			{
				if(Directory.Exists(_preCompileOutputpath))
					Directory.Delete(_preCompileOutputpath, true);

				var buildManager = new ClientBuildManager(_webApplicationName, _webApplicationPhysicalPath, _preCompileOutputpath, new ClientBuildManagerParameter{ PrecompilationFlags = PrecompilationFlags.Updatable });
				buildManager.PrecompileApplication(new PreCompileCallback(output, outputError));
			}
			catch (Exception ex)
			{
				var args = new WebDeployMessageEventArgs { Level = TraceLevel.Error, Message = ex.Message };
				outputError(this, args);
				throw;
			}
			return webDeploymentStatus;
		}

		public bool IsValid(Notification notification)
		{
			return true;
		}
	}
}
{'fraction_non_alphanumeric': 0.0656957928802589, 'fraction_numerical': 0.0, 'mean_word_length': 5.868888888888889, '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': '2365010', 'n_tokens_mistral': 973, 'n_tokens_neox': 825, 'n_words': 180}