<commit_before>﻿using System;
using N2.Definitions;
using N2.Engine;
using N2.Security;
using N2.Web;
using N2.Web.Drawing;
using N2.Persistence.Search;
using System.Collections.Generic;
using N2.Persistence;

namespace N2.Edit.FileSystem.Items
{
	[Adapts(typeof(AbstractNode))]
	public class AbstractNodeAdapter : NodeAdapter
	{
		public override string GetPreviewUrl(ContentItem item)
		{
			return N2.Web.Url.Parse(item.FindPath("info").TemplateUrl).AppendQuery(SelectionUtility.SelectedQueryKey, item.Path).ResolveTokens();
		}
	}

    [Throwable(AllowInTrash.No)]
	[Versionable(AllowVersions.No)]
	[PermissionRemap(From = Permission.Publish, To = Permission.Write)]
	[Indexable(IsIndexable = false)]
	public abstract class AbstractNode : ContentItem, IFileSystemNode, IActiveChildren, IInjectable<IFileSystem>, IInjectable<ImageSizeCache>, IInjectable<IDependencyInjector>
    {
		public ImageSizeCache ImageSizes { get; protected set; }

		IFileSystem fileSystem;
		protected IDependencyInjector DependencyInjector { get; set; }

    	protected virtual IFileSystem FileSystem
    	{
			get { return fileSystem ?? (fileSystem = N2.Context.Current.Resolve<IFileSystem>()); }
			set { fileSystem = value; }<commit_msg>Fixed failing tests<commit_after>﻿using System;
using N2.Definitions;
using N2.Engine;
using N2.Security;
using N2.Web;
using N2.Web.Drawing;
using N2.Persistence.Search;
using System.Collections.Generic;
using N2.Persistence;

namespace N2.Edit.FileSystem.Items
{
	[Adapts(typeof(AbstractNode))]
	public class AbstractNodeAdapter : NodeAdapter
	{
		public override string GetPreviewUrl(ContentItem item)
		{
			return N2.Web.Url.Parse(item.FindPath("info").TemplateUrl).AppendQuery(SelectionUtility.SelectedQueryKey, item.Path).ResolveTokens();
		}
	}

    [Throwable(AllowInTrash.No)]
	[Versionable(AllowVersions.No)]
	[PermissionRemap(From = Permission.Publish, To = Permission.Write)]
	[Indexable(IsIndexable = false)]
	public abstract class AbstractNode : ContentItem, IFileSystemNode, IActiveChildren, IInjectable<IFileSystem>, IInjectable<ImageSizeCache>, IInjectable<IDependencyInjector>
    {
		IFileSystem fileSystem;

		protected ImageSizeCache ImageSizes { get; set; }
		protected IDependencyInjector DependencyInjector { get; set; }
    	protected virtual IFileSystem FileSystem
    	{
			get { return fileSystem ?? (fileSystem = N2.Context.Current.Resolve<IFileSystem>()); }
			set { fileSystem = value; }
{'fraction_non_alphanumeric': 0.10491803278688525, 'fraction_numerical': 0.00819672131147541, 'mean_word_length': 5.7994428969359335, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3632135', 'n_tokens_mistral': 791, 'n_tokens_neox': 769, 'n_words': 153}