<commit_before>using Advanced_Combat_Tracker;
using FFXIV_ACT_Plugin;
using System.Collections.Generic;

namespace ACTBossTime
{
    public class BrowserBindings
    {
        const int MaxLogLinesRetained = 2000;
        Queue<string> logLines = new Queue<string>();

        public BrowserBindings()
        {
            Advanced_Combat_Tracker.ActGlobals.oFormActMain.OnLogLineRead += OnLogLineRead;
        }

        ~BrowserBindings()
        {
            Advanced_Combat_Tracker.ActGlobals.oFormActMain.OnLogLineRead -= OnLogLineRead;
        }

        public string CurrentZone()
        {
            return FFXIV_ACT_Plugin.ACTWrapper.CurrentZone;
        }

        public bool HasLogLines()
        {
            return logLines.Count > 0;
        }<commit_msg>Add more browser bindings<commit_after>using Advanced_Combat_Tracker;
using FFXIV_ACT_Plugin;
using System.Collections.Generic;

namespace ACTBossTime
{
    public class BrowserBindings
    {
        const int MaxLogLinesRetained = 2000;
        Queue<string> logLines = new Queue<string>();

        public BrowserBindings()
        {
            Advanced_Combat_Tracker.ActGlobals.oFormActMain.OnLogLineRead += OnLogLineRead;
        }

        ~BrowserBindings()
        {
            Advanced_Combat_Tracker.ActGlobals.oFormActMain.OnLogLineRead -= OnLogLineRead;
        }

        public string CurrentZone()
        {
            return FFXIV_ACT_Plugin.ACTWrapper.CurrentZone;
        }

        public bool InCombat()
        {
            return FFXIV_ACT_Plugin.ACTWrapper.InCombat;
        }

        public void TextToSpeech(string speechText)
        {
            // FIXME: This appears to be synchronous.  Maybe kick the task to a thread?
            Advanced_Combat_Tracker.ActGlobals.oFormActMain.TTS(speechText);
        }

        public bool HasLogLines()
        {
            return logLines.Count > 0;
        }
{'fraction_non_alphanumeric': 0.06907378335949764, 'fraction_numerical': 0.0052328623757195184, 'mean_word_length': 2.1919866444073457, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2311129', 'n_tokens_mistral': 565, 'n_tokens_neox': 535, 'n_words': 100}