<commit_before>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text.RegularExpressions;
using Microsoft.Xtc.Common.Cli.Commands;
using Microsoft.Xtc.TestCloud.Commands;
using Microsoft.Xtc.TestCloud.Utilities;

namespace Microsoft.Xtc.TestCloud.ObjectModel
{
    /// <summary>
    /// Represents an XCUITest workspace directory.
    /// </summary>
    public class XCUITestWorkspace : IWorkspace
    {
        private readonly string _workspacePath;

        public static string FindAUT(string workspacePath)
        {
            var regex = new Regex("^*[^-Runner].app$");
            var apps =  Directory.GetDirectories(workspacePath)
                        .Where(path => regex.IsMatch(path))
                        .ToArray();
            return apps.Length > 0 ? apps[0] : null;
        }

        /// <summary>
        /// Constructor. Creates new instance of the XCUITest Workspace.
        /// </summary>
        /// <param name="workspacePath">Path to the workspace directory.</param>
        public XCUITestWorkspace(string workspacePath)
        {
            if (workspacePath == null)<commit_msg>fix regexp<commit_after>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text.RegularExpressions;
using Microsoft.Xtc.Common.Cli.Commands;
using Microsoft.Xtc.TestCloud.Commands;
using Microsoft.Xtc.TestCloud.Utilities;

namespace Microsoft.Xtc.TestCloud.ObjectModel
{
    /// <summary>
    /// Represents an XCUITest workspace directory.
    /// </summary>
    public class XCUITestWorkspace : IWorkspace
    {
        private readonly string _workspacePath;

        public static string FindAUT(string workspacePath)
        {
            var regex = new Regex("^(?:.(?!-Runner.app))+.app$");
            var apps =  Directory.GetDirectories(workspacePath)
                        .Where(path => regex.IsMatch(path))
                        .ToArray();
            return apps.Length > 0 ? apps[0] : null;
        }

        /// <summary>
        /// Constructor. Creates new instance of the XCUITest Workspace.
        /// </summary>
        /// <param name="workspacePath">Path to the workspace directory.</param>
        public XCUITestWorkspace(string workspacePath)
        {
            if (workspacePath == null)
{'fraction_non_alphanumeric': 0.10935550935550936, 'fraction_numerical': 0.0016632016632016633, 'mean_word_length': 2.3983050847457625, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '5827045', 'n_tokens_mistral': 655, 'n_tokens_neox': 640, 'n_words': 154}