<commit_before><style>
    .metric,
    .subCondition {
        margin-bottom: 5px;
    }

    .condition,
    .config {
        margin-bottom: 10px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        margin-left: 20px;
    }
</style>

<div id="metrics">
    <strong class="text-success">匹配对象：</strong>
    <input id="metricsStr" type="hidden"></>
    <br>

    <div class="metric">
        项目及ip(冒号连接)：<textarea name="productlineText" class="productlineText input-small" type=" text" placeholder="支持正则"></textarea>
        指标：<textarea name="metricText" class="metricText input-small" type=" text" placeholder="支持正则"></textarea>
        <button class="btn btn-danger btn-small delete-metric-button" type="button">
            <i class="icon-trash icon-white"></i>
        </button>
    </div>
</div>
<button class="btn btn-success btn-small" id="add-metric-button" type="button">
    添加匹配对象<i class="icon-plus icon-white"></i>
</button>
<br><br>

<script>
    $(document).ready(function () {
        $("#add-metric-button").click(function () {
            var newMetric = $('<div class="metric"> 项目及ip(冒号连接)：<textarea name="productlineText" class="productlineText input-small" type=" text" placeholder="支持正则"></textarea> 指标：<textarea name="metricText" class="metricText input-small" type=" text" placeholder="支持正则"></textarea> <button class="btn btn-danger btn-small delete-metric-button" type="button"> <i class="icon-trash icon-white"></i> </button> </div>');
            $("#metrics").append(newMetric);
        })

        $("#metrics").delegate(".delete-metric-button", "click", function () {
            $(this).parent().remove();<commit_msg>amend heartbeat metric's ftl<commit_after><style>
    .metric,
    .subCondition {
        margin-bottom: 5px;
    }

    .condition,
    .config {
        margin-bottom: 10px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        margin-left: 20px;
    }
</style>

<div id="metrics">
    <strong class="text-success">匹配对象：</strong>
    <input id="metricsStr" type="hidden"></>
    <br>

    <div class="metric">
        项目及ip(冒号连接)：<textarea name="productlineText" class="productlineText input-small" type=" text" placeholder="支持正则"></textarea>
        指标：
        <select name="metricText" class="metricText">
        	<option value="ThreadCount">ThreadCount</option>
        	<option value="DaemonCount">DaemonCount</option>
        	<option value="TotalStartedCount">TotalStartedCount</option>
        	<option value="CatThreadCount">CatThreadCount</option>
        	<option value="PiegonThreadCount">PiegonThreadCount</option>
        	<option value="HttpThreadCount">HttpThreadCount</option>
        	<option value="NewGcCount">NewGcCount</option>
        	<option value="OldGcCount">OldGcCount</option>
        	<option value="MemoryFree">MemoryFree</option>
        	<option value="HeapUsage">HeapUsage</option>
        	<option value="NoneHeapUsage">NoneHeapUsage</option>
        	<option value="SystemLoadAverage">SystemLoadAverage</option>
        	<option value="CatMessageOverflow">CatMessageOverflow</option>
        	<option value="CatMessageSize">CatMessageSize</option>
        </select>
        <button class="btn btn-danger btn-small delete-metric-button" type="button">
            <i class="icon-trash icon-white"></i>
        </button>
    </div>
</div>
<button class="btn btn-success btn-small" id="add-metric-button" type="button">
    添加匹配对象<i class="icon-plus icon-white"></i>
</button>
<br><br>

<script>
    $(document).ready(function () {
        $("#add-metric-button").click(function () {
            var newMetric = $('<div class="metric"> 项目及ip(冒号连接)：<textarea name="productlineText" class="productlineText input-small" type=" text" placeholder="支持正则"></textarea> 指标：<select name="metricText" class="metricText"> <option value="ThreadCount">ThreadCount</option> <option value="DaemonCount">DaemonCount</option> <option value="TotalStartedCount">TotalStartedCount</option> <option value="CatThreadCount">CatThreadCount</option> <option value="PiegonThreadCount">PiegonThreadCount</option> <option value="HttpThreadCount">HttpThreadCount</option> <option value="NewGcCount">NewGcCount</option> <option value="OldGcCount">OldGcCount</option> <option value="MemoryFree">MemoryFree</option> <option value="HeapUsage">HeapUsage</option> <option value="NoneHeapUsage">NoneHeapUsage</option> <option value="SystemLoadAverage">SystemLoadAverage</option> <option value="CatMessageOverflow">CatMessageOverflow</option> <option value="CatMessageSize">CatMessageSize</option> </select> <button class="btn btn-danger btn-small delete-metric-button" type="button"> <i class="icon-trash icon-white"></i> </button> </div>');
            $("#metrics").append(newMetric);
        })

        $("#metrics").delegate(".delete-metric-button", "click", function () {
            $(this).parent().remove();
{'fraction_non_alphanumeric': 0.17250298448070037, 'fraction_numerical': 0.008356545961002786, 'mean_word_length': 3.9723046488625124, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, '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': '3400920', 'n_tokens_mistral': 1617, 'n_tokens_neox': 1576, 'n_words': 279}