<commit_before>@(details: scala.collection.mutable.LinkedHashMap[String, String])(implicit lang: Lang, config: utils.helpers.Config)

    @if(config.liveAgentEnvironmentId.isDefined){
        <!-- live agent deployment -->
        <script type='text/javascript'
                src='@config.liveAgentjsUrl'></script>
        <script type='text/javascript'>liveagent.init('@config.liveAgentUrl', '@config.liveAgentEnvironmentId', '@config.liveAgentOrgId'); </script>

        <img id="liveagent_button_online_@config.liveAgentButtonId" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('@config.liveAgentButtonId')" src="@controllers.StaticAssets.versioned(config.assetsUrl)("images/ChatIcon02Nov15.png")" />
        <script type="text/javascript">
            if (!window._laq) { window._laq = []; }
            window._laq.push(function(){liveagent.showWhenOnline('@config.liveAgentButtonId', document.getElementById('liveagent_button_online_@config.liveAgentButtonId'));
            });
            @for((label,value) <- details) {
                liveagent.addCustomDetail("@label","@value")
            }
        </script>
    }
<commit_msg>US4273 WEBCHAT - add custom detail; update addCustomDetail call (confirmed with SF)<commit_after>@(details: scala.collection.mutable.LinkedHashMap[String, String])(implicit lang: Lang, config: utils.helpers.Config)

    @if(config.liveAgentEnvironmentId.isDefined){
        <!-- live agent deployment -->
        <script type='text/javascript'
                src='@config.liveAgentjsUrl'></script>
        <script type='text/javascript'>liveagent.init('@config.liveAgentUrl', '@config.liveAgentEnvironmentId', '@config.liveAgentOrgId'); </script>

        <img id="liveagent_button_online_@config.liveAgentButtonId" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('@config.liveAgentButtonId')" src="@controllers.StaticAssets.versioned(config.assetsUrl)("images/ChatIcon02Nov15.png")" />
        <script type="text/javascript">
            if (!window._laq) { window._laq = []; }
            window._laq.push(function(){liveagent.showWhenOnline('@config.liveAgentButtonId', document.getElementById('liveagent_button_online_@config.liveAgentButtonId'));
            });
            @for((label,value) <- details) {
                liveagent.addCustomDetail("@label","@value", false)
            }
        </script>
    }

{'fraction_non_alphanumeric': 0.15047150471504714, 'fraction_numerical': 0.005740057400574006, 'mean_word_length': 3.860557768924303, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6629968', 'n_tokens_mistral': 707, 'n_tokens_neox': 688, 'n_words': 93}