<commit_before>﻿#if RIDER
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
using JetBrains.ProjectModel;
using JetBrains.Util;

namespace JetBrains.ReSharper.Plugins.Unity.Rider
{
    [SolutionComponent]
    public class UnityPluginDetector
    {
        public static readonly Version ZeroVersion = new Version();
        
        private readonly ISolution mySolution;
        private readonly ILogger myLogger;
        private static readonly string[] ourPluginFilesV180 = {"RiderAssetPostprocessor.cs", "RiderPlugin.cs"};

        public static readonly string MergedPluginFile = "Unity3DRider.cs";

        private static readonly Regex ourVersionRegex = new Regex(@"//\s+(?:Version:)?\s*((?:[0-9]\.)+[0-9])", RegexOptions.Compiled);

        public static readonly InstallationInfo ShouldNotInstall = new InstallationInfo(false, FileSystemPath.Empty,
            EmptyArray<FileSystemPath>.Instance, ZeroVersion);

        public UnityPluginDetector(ISolution solution, ILogger logger)
        {
            mySolution = solution;
            myLogger = logger;
        }
<commit_msg>Fixed regex not supporting multi-digit versions (e.g. 2.0.0.18)<commit_after>﻿#if RIDER
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
using JetBrains.ProjectModel;
using JetBrains.Util;

namespace JetBrains.ReSharper.Plugins.Unity.Rider
{
    [SolutionComponent]
    public class UnityPluginDetector
    {
        public static readonly Version ZeroVersion = new Version();
        
        private readonly ISolution mySolution;
        private readonly ILogger myLogger;
        private static readonly string[] ourPluginFilesV180 = {"RiderAssetPostprocessor.cs", "RiderPlugin.cs"};

        public static readonly string MergedPluginFile = "Unity3DRider.cs";

        private static readonly Regex ourVersionRegex = new Regex(@"//\s+(?:Version:)?\s*((?:[0-9]+\.)+[0-9]+)", RegexOptions.Compiled);

        public static readonly InstallationInfo ShouldNotInstall = new InstallationInfo(false, FileSystemPath.Empty,
            EmptyArray<FileSystemPath>.Instance, ZeroVersion);

        public UnityPluginDetector(ISolution solution, ILogger logger)
        {
            mySolution = solution;
            myLogger = logger;
        }

{'fraction_non_alphanumeric': 0.09458367016976556, 'fraction_numerical': 0.008488278092158448, 'mean_word_length': 3.600371747211896, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3630344', 'n_tokens_mistral': 703, 'n_tokens_neox': 671, 'n_words': 169}