<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;
        margin-top:4px;
        padding:4px 4px 4px 4px;
    }
    input[type="text"]{
        margin-bottom : 0px;
    }
</style>

<div id="configs">
    <div class="config" id="configSample">
        <p class="text-success text-center">监控规则配置&nbsp;&nbsp;&nbsp;<i class="icon-question-sign" id="configTip"></i> 
            <button class="btn btn-success btn-small" id="add-config-button" type="button">
                添加监控规则<i class="icon-plus icon-white"></i>
            </button>
        </p>
        <div class="configDuration">
        监控开始时间：<input name="startMinute" class="startMinute input-small" value="00:00" type=" text" placeholder="格式如 00:00"/>
        监控结束时间：<input name="endMinute" class="endMinute input-small" value="24:00" type=" text" placeholder="格式如 24:00"/>
        </div>
        <div class="condition">
            <p class="text-center text-success">监控条件 &nbsp;&nbsp;&nbsp;<i class="icon-question-sign" id="conditionTip"></i></p>
            持续分钟：<input name="configMinute" class="configMinute input-mini" type="text"/>
            告警级别：
            <select name="level" class="level span2">
                <option value="warning">warning</option>
                <option value="error">error</option>
            </select>
            <br>

            <p class="text-success">子条件<span class="text-error">【必须全部满足才触发告警】</span></p>

            <div class="subconditions">
                <div class="subCondition">
                    &nbsp;&nbsp;&nbsp;规则类型：
                    <select name="ruleType" class="ruleType">
                        <option value="DescVal">下降值</option>
                        <option value="DescPer">下降百分比</option>
                        <option value="AscVal">上升值</option>
                        <option value="AscPer">上升百分比</option>
                        <option value="MaxVal">最大值</option>
                        <option value="MinVal">最小值</option>
                        <option value="FluAscPer">波动上升百分比</option>
                        <option value="FluDescPer">波动下降百分比</option>
                        <option value="SumMaxVal">总和最大值</option>
                        <option value="SumMinVal">总和最小值</option>
                    </select>
                    阈值：<input name="value" class="value input-mini" type="text"/>
                    <button class="btn btn-danger btn-small delete-subcondition-button" type="button">
                        删除子条件<i class="icon-trash icon-white"></i>
                    </button>
                </div>
            </div>
            <button class="btn btn-success btn-small add-subCondition-button" type="button">
                添加子条件<i class="icon-plus icon-white"></i>
            </button>
            <button class="btn btn-danger btn-small delete-condition-button" type="button">
                删除监控条件<i class="icon-trash icon-white"></i>
            </button>
            <button class="btn btn-info btn-small define-button" type="button">
                自定义监控规则<i class="icon-user icon-white"></i>
            </button>
        </div>
        <button class="btn btn-success btn-small add-condition-button" type="button">
            添加监控条件<i class="icon-plus icon-white"></i>
        </button>
        <button class="btn btn-danger btn-small delete-config-button" type="button">
            删除监控规则<i class="icon-trash icon-white"></i>
        </button>
    </div>
</div>
<div class="subCondition" style="display:none">
    <input name="ruleType" class="ruleType" type="hidden" value="UserDefine"/>
    <textarea name="value" class="value" rows=10 style="width:700px">
    </textarea>
    <pre>
    &nbsp;&nbsp;&nbsp;&nbsp;代码示例如下：
    	&nbsp;&nbsp;&nbsp;&nbsp;import org.unidal.tuple.Pair;
	    import com.dianping.cat.report.task.alert.RuleType.MonitorRule;
	    
	    public class UserDefinedRule implements MonitorRule{
	        /*
	         * 请编写checkData()方法, 除了import标准库，其余部分不能改变
	         * 该方法接受两个参数： values:当前值数组  baselineValue:基线值数组
	         * 该方法返回一个Pair对象，key是boolean类型，表明是否触发告警； value是String类型，表明告警内容
	         * 如：没有触发，返回：return new Pair<Boolean, String>(false, "");
	         * 触发报警，返回：return new Pair<Boolean, String>(true, "alert info");
	        */  
	        @Override
	         public Pair<Boolean, String> checkData(double[] values, double[] baselineValues) {
	            return null;
	        }
	    }
	    
	 <span class="text-error">编写完代码后，请将代码合并在一行，然后提交到上方的textarea内。代码中不能存在任何换行。</span>
	</pre><commit_msg>fix bracket error<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;
        margin-top:4px;
        padding:4px 4px 4px 4px;
    }
    input[type="text"]{
        margin-bottom : 0px;
    }
</style>

<div id="configs">
    <div class="config" id="configSample">
        <p class="text-success text-center">监控规则配置&nbsp;&nbsp;&nbsp;<i class="icon-question-sign" id="configTip"></i> 
            <button class="btn btn-success btn-small" id="add-config-button" type="button">
                添加监控规则<i class="icon-plus icon-white"></i>
            </button>
        </p>
        <div class="configDuration">
        监控开始时间：<input name="startMinute" class="startMinute input-small" value="00:00" type=" text" placeholder="格式如 00:00"/>
        监控结束时间：<input name="endMinute" class="endMinute input-small" value="24:00" type=" text" placeholder="格式如 24:00"/>
        </div>
        <div class="condition">
            <p class="text-center text-success">监控条件 &nbsp;&nbsp;&nbsp;<i class="icon-question-sign" id="conditionTip"></i></p>
            持续分钟：<input name="configMinute" class="configMinute input-mini" type="text"/>
            告警级别：
            <select name="level" class="level span2">
                <option value="warning">warning</option>
                <option value="error">error</option>
            </select>
            <br>

            <p class="text-success">子条件<span class="text-error">【必须全部满足才触发告警】</span></p>

            <div class="subconditions">
                <div class="subCondition">
                    &nbsp;&nbsp;&nbsp;规则类型：
                    <select name="ruleType" class="ruleType">
                        <option value="DescVal">下降值</option>
                        <option value="DescPer">下降百分比</option>
                        <option value="AscVal">上升值</option>
                        <option value="AscPer">上升百分比</option>
                        <option value="MaxVal">最大值</option>
                        <option value="MinVal">最小值</option>
                        <option value="FluAscPer">波动上升百分比</option>
                        <option value="FluDescPer">波动下降百分比</option>
                        <option value="SumMaxVal">总和最大值</option>
                        <option value="SumMinVal">总和最小值</option>
                    </select>
                    阈值：<input name="value" class="value input-mini" type="text"/>
                    <button class="btn btn-danger btn-small delete-subcondition-button" type="button">
                        删除子条件<i class="icon-trash icon-white"></i>
                    </button>
                </div>
            </div>
            <button class="btn btn-success btn-small add-subCondition-button" type="button">
                添加子条件<i class="icon-plus icon-white"></i>
            </button>
            <button class="btn btn-danger btn-small delete-condition-button" type="button">
                删除监控条件<i class="icon-trash icon-white"></i>
            </button>
            <button class="btn btn-info btn-small define-button" type="button">
                自定义监控规则<i class="icon-user icon-white"></i>
            </button>
        </div>
        <button class="btn btn-success btn-small add-condition-button" type="button">
            添加监控条件<i class="icon-plus icon-white"></i>
        </button>
        <button class="btn btn-danger btn-small delete-config-button" type="button">
            删除监控规则<i class="icon-trash icon-white"></i>
        </button>
    </div>
</div>
<div class="subCondition" style="display:none">
    <input name="ruleType" class="ruleType" type="hidden" value="UserDefine"/>
    <textarea name="value" class="value" rows=10 style="width:700px">
    </textarea>
    <pre>
    &nbsp;&nbsp;&nbsp;&nbsp;代码示例如下：
    	&nbsp;&nbsp;&nbsp;&nbsp;import org.unidal.tuple.Pair;
	    import com.dianping.cat.report.task.alert.RuleType.MonitorRule;
	    
	    public class UserDefinedRule implements MonitorRule{
	        /*
	         * 请编写checkData()方法, 除了import标准库，其余部分不能改变
	         * 该方法接受两个参数： values:当前值数组  baselineValue:基线值数组
	         * 该方法返回一个Pair对象，key是boolean类型，表明是否触发告警； value是String类型，表明告警内容
	         * 如：没有触发，返回：return new Pair&lt;Boolean, String&gt;(false, "");
	         * 触发报警，返回：return new Pair&lt;Boolean, String&gt;(true, "alert info");
	        */  
	        @Override
	         public Pair&lt;Boolean, String&gt; checkData(double[] values, double[] baselineValues) {
	            return null;
	        }
	    }
	    
	 <span class="text-error">编写完代码后，请将代码合并在一行，然后提交到上方的textarea内。代码中不能存在任何换行。</span>
	</pre>
{'fraction_non_alphanumeric': 0.15021998742928974, 'fraction_numerical': 0.010266080033521894, 'mean_word_length': 2.116878876918054, 'pattern_counts': {'":': 0, '<': 196, '<?xml version=': 0, '>': 196, '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': '4819315', 'n_tokens_mistral': 3265, 'n_tokens_neox': 3241, 'n_words': 521}