<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Github.Updater
{
    public class Version
    {
        public int Major { get; set; }

        public int Minor { get; set; }

        public int Patch { get; set; }

        public int Build { get; set; }

        public string Tag { get; set; }

        public Version(string version)
        {
            Match match = Regex.Match(version, "/^([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$/");
            
        }
    }
}<commit_msg>fixed version regex<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Github.Updater
{
    public class Version
    {
        public int Major { get; set; }

        public int Minor { get; set; }

        public int Patch { get; set; }

        public int Build { get; set; }

        public string Tag { get; set; }

        public Version(string version)
        {
            Match match = Regex.Match(version, @"^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$");
            
        }
    }
}
{'fraction_non_alphanumeric': 0.1918876755070203, 'fraction_numerical': 0.0187207488299532, 'mean_word_length': 2.1140776699029127, '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': '2817642', 'n_tokens_mistral': 457, 'n_tokens_neox': 437, 'n_words': 96}