<commit_before>using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;

#if !DISABLE_PLAYFABCLIENT_API
using PlayFab.ClientModels;
#endif

namespace PlayFab.UUnit
{
    public class TestTitleData
    {
        public string titleId;
#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API
        public string developerSecretKey;
        public string aliasId;
#endif
        public string userEmail;
        public Dictionary<string, string> extraHeaders;
    }
    public static class UUnitIncrementalTestRunner
    {
        public static bool SuiteFinished { get; private set; }
        public static bool AllTestsPassed { get; private set; }
        public static string Summary { get; private set; }
        private static UUnitTestSuite _suite;
        private static bool _postResultsToCloudscript;
        public static TestTitleData TestTitleData;

#if !DISABLE_PLAYFABCLIENT_API
        public static PlayFabClientInstanceAPI PfClient = new PlayFabClientInstanceAPI(new PlayFabApiSettings(), new PlayFabAuthenticationContext());
        private static Action<PlayFabResult<ExecuteCloudScriptResult>> _onComplete;
#endif

        public static TestTitleData VerifyTestTitleData()
        {
#if NET45 || NETCOREAPP2_0
            if(TestTitleData == null)
            {
                try
                {
                    var testTitleDataPath = Environment.GetEnvironmentVariable("PF_TEST_TITLE_DATA_JSON");
                    var jsonContent = File.ReadAllText(testTitleDataPath + "/testTitleData.json");
                    var serializer = PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer);
                    TestTitleData = serializer.DeserializeObject<TestTitleData>(jsonContent);
                }
                catch (Exception)
                {
                }
            }
#endif
            // Fall back on hard coded testTitleData if necessary (Put your own data here)
            if (TestTitleData == null)
                TestTitleData = new TestTitleData { titleId = "6195", userEmail = "<EMAIL>" };<commit_msg>Update UUnitIncrementalTestRunner.cs (#726)<commit_after>using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;

#if !DISABLE_PLAYFABCLIENT_API
using PlayFab.ClientModels;
#endif

namespace PlayFab.UUnit
{
    public class TestTitleData
    {
        public string titleId;
#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API
        public string developerSecretKey;
        public string aliasId;
#endif
        public string userEmail;
        public Dictionary<string, string> extraHeaders;
    }
    public static class UUnitIncrementalTestRunner
    {
        public static bool SuiteFinished { get; private set; }
        public static bool AllTestsPassed { get; private set; }
        public static string Summary { get; private set; }
        private static UUnitTestSuite _suite;
        private static bool _postResultsToCloudscript;
        public static TestTitleData TestTitleData;

#if !DISABLE_PLAYFABCLIENT_API
        public static PlayFabClientInstanceAPI PfClient = new PlayFabClientInstanceAPI(new PlayFabApiSettings(), new PlayFabAuthenticationContext());
        private static Action<PlayFabResult<ExecuteCloudScriptResult>> _onComplete;
#endif

        public static TestTitleData VerifyTestTitleData()
        {
#if NET45 || NETCOREAPP2_0 || NETSTANDARD2_0
            if(TestTitleData == null)
            {
                try
                {
                    var testTitleDataPath = Environment.GetEnvironmentVariable("PF_TEST_TITLE_DATA_JSON");
                    var jsonContent = File.ReadAllText(testTitleDataPath + "/testTitleData.json");
                    var serializer = PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer);
                    TestTitleData = serializer.DeserializeObject<TestTitleData>(jsonContent);
                }
                catch (Exception)
                {
                }
            }
#endif
            // Fall back on hard coded testTitleData if necessary (Put your own data here)
            if (TestTitleData == null)
                TestTitleData = new TestTitleData { titleId = "6195", userEmail = "<EMAIL>" };
{'fraction_non_alphanumeric': 0.06598984771573604, 'fraction_numerical': 0.004845408398707891, 'mean_word_length': 2.6799660441426147, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '535875', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1089, 'n_words': 285}