<commit_before>﻿using FinesSE.Contracts.Infrastructure;
using FinesSE.Contracts.Invokable;
using FinesSE.Core.WebDriver;
using OpenQA.Selenium;

namespace FinesSE.Outil.Locators
{
    public class Identifier : ILocator
    {
        public IExecutionContext Context { get; set; }

        public string Id
            => "identifier";

        public string Regex
            => @"^(\(\?.+\))?((identifier|id)=)(.+)";

        public LocatedElements Locate(string value, string modifiers)<commit_msg>Identifier locator fix<commit_after>﻿using FinesSE.Contracts.Infrastructure;
using FinesSE.Contracts.Invokable;
using FinesSE.Core.WebDriver;
using OpenQA.Selenium;

namespace FinesSE.Outil.Locators
{
    public class Identifier : ILocator
    {
        public IExecutionContext Context { get; set; }

        public string Id
            => "identifier";

        public string Regex
            => @"^(\(\?.+\))?(id.*?=)(.+)";

        public LocatedElements Locate(string value, string modifiers)
{'fraction_non_alphanumeric': 0.12012012012012012, 'fraction_numerical': 0.0, 'mean_word_length': 3.065040650406504, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5926495', 'n_tokens_mistral': 305, 'n_tokens_neox': 292, 'n_words': 67}