<commit_before><script type="text/x-template" id="threshold-tab-measured-event-vue">
    <div>
        <div v-if="Object.keys(thresholds.measuredEvent).length">
        <label class="measuredEventLabel">{{ thresholds.measuredEvent.name }}</label>
            <button type="button" @click="addMetric()">Add</button>
        </div>
        <div v-else>
            <select class="form-control thresholdSelects"  v-model="thresholds.measuredEvent">
                <option v-for="measuredEvent in test" :value="measuredEvent">{{measuredEvent.name}}</option>
            </select>
        </div>


        <div v-for="threshold in thresholds.thresholdList">
            <div>
                <threshold-measurand v-if="threshold.saved"
                                     :threshold="threshold"
                                     v-on:delete-threshold="deleteThreshold"
                                     v-on:update-threshold="updateThreshold"></threshold-measurand>
                <threshold-new-threshold v-else
                                         :measurands="measurands"
                                         :threshold="threshold"
                                         v-on:create-threshold="createThreshold"
                                         v-on:remove-new-threshold="removeNewThreshold"></threshold-new-threshold>
            </div>
        </div>
    </div>
</script>

<g:render template="thresholdTabMeasurandVue"/>
<g:render template="thresholdTabNewThresholdVue"/>

<asset:javascript src="job/thresholdTabMeasuredEventVue.js"/><commit_msg>[IT-1853] Added temporary selected event until a threshold is saved<commit_after><script type="text/x-template" id="threshold-tab-measured-event-vue">
<div>
    <div v-if="Object.keys(thresholds.measuredEvent).length">
        <label class="measuredEventLabel">{{ thresholds.measuredEvent.name }}</label>
        <button type="button" class="margins btn btn-default"
                @click="addMetric()">
            <i class="fa text-success fa-lg fa-plus"></i>
        </button>
    </div>

    <div v-else>
        <select class="form-control thresholdSelects" v-model="selectedEvent">
            <option v-for="measuredEvent in test" :value="measuredEvent">{{measuredEvent.name}}</option>
        </select>
    </div>


    <div v-for="threshold in thresholds.thresholdList">
        <div>
            <threshold-measurand v-if="threshold.saved"
                                 :threshold="threshold"
                                 v-on:delete-threshold="deleteThreshold"
                                 v-on:update-threshold="updateThreshold"></threshold-measurand>
            <threshold-new-threshold v-else
                                     :measurands="measurands"
                                     :threshold="threshold"
                                     v-on:create-threshold="createThreshold"
                                     v-on:remove-new-threshold="removeNewThreshold"></threshold-new-threshold>
        </div>
    </div>
</div>
</script>

<g:render template="thresholdTabMeasurandVue"/>
<g:render template="thresholdTabNewThresholdVue"/>

<asset:javascript src="job/thresholdTabMeasuredEventVue.js"/>
{'fraction_non_alphanumeric': 0.13127533520424073, 'fraction_numerical': 0.0012472715933894605, 'mean_word_length': 1.9539594843462247, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5559268', 'n_tokens_mistral': 873, 'n_tokens_neox': 797, 'n_words': 123}