<commit_before>using System;
using System.IO;
using System.Linq;
using Microsoft.VisualStudio.ProjectSystem.FileSystemMirroring.IO;

namespace Microsoft.VisualStudio.R.Package.ProjectSystem
{
	internal sealed class RMsBuildFileSystemFilter : IMsBuildFileSystemFilter
	{
		public bool IsFileAllowed(string relativePath, FileAttributes attributes)
		{
			return !attributes.HasFlag(FileAttributes.Hidden)
				&& !HasExtension(relativePath, ".user", ".rxproj");
		}

		public bool IsDirectoryAllowed(string relativePath, FileAttributes attributes)
		{
			return !attributes.HasFlag(FileAttributes.Hidden);
		}

		public void Seal()
		{
		}

		private static bool HasExtension(string filePath, params string[] possibleExtensions)<commit_msg>Hide .sln file from project tree<commit_after>using System;
using System.IO;
using System.Linq;
using Microsoft.VisualStudio.ProjectSystem.FileSystemMirroring.IO;

namespace Microsoft.VisualStudio.R.Package.ProjectSystem
{
	internal sealed class RMsBuildFileSystemFilter : IMsBuildFileSystemFilter
	{
		public bool IsFileAllowed(string relativePath, FileAttributes attributes)
		{
			return !attributes.HasFlag(FileAttributes.Hidden)
				&& !HasExtension(relativePath, ".user", ".rxproj", ".sln");
		}

		public bool IsDirectoryAllowed(string relativePath, FileAttributes attributes)
		{
			return !attributes.HasFlag(FileAttributes.Hidden);
		}

		public void Seal()
		{
		}

		private static bool HasExtension(string filePath, params string[] possibleExtensions)
{'fraction_non_alphanumeric': 0.08860759493670886, 'fraction_numerical': 0.0, 'mean_word_length': 5.796380090497737, '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': '934508', 'n_tokens_mistral': 454, 'n_tokens_neox': 412, 'n_words': 95}