<commit_before>define ->

    extractCommandDetails = (command, parameters) ->
        name = undefined
        value = undefined
        switch command
            when 'addService'
                name = parameters[0]?.get('id') or parameters[0]
        return {
            name: name
            value: value
        }

    trackCommand: (command, parameters) ->
        if _paq?
            {name, value} = extractCommandDetails command, parameters
            _paq.push ['trackEvent', 'Command', command, name, value]
<commit_msg>Track more detailed service data.<commit_after>define ->

    extractCommandDetails = (command, parameters) ->
        name = undefined
        value = undefined
        switch command
            when 'addService'
                serviceModel = parameters[0]
                name = serviceModel?.get('name')?.fi or serviceModel
                value = serviceModel?.get('id') or serviceModel
        return {
            name: name
            value: value
        }

    trackCommand: (command, parameters) ->
        if _paq?
            {name, value} = extractCommandDetails command, parameters
            _paq.push ['trackEvent', 'Command', command, name, value]

{'fraction_non_alphanumeric': 0.0954356846473029, 'fraction_numerical': 0.0024896265560165973, 'mean_word_length': 1.8714285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6572044', 'n_tokens_mistral': 296, 'n_tokens_neox': 287, 'n_words': 84}