<commit_before><#macro editor height='300px' content="">
<input type="hidden" id="commentId" value=""/>
<p class="hidden" id="replyP">回复<span id="replyAuthor"></span>: <a href="javascript:cancelReply();">取消</a></p>
<div id="editor" style="margin-bottom: 10px;">${content!}</div>
<link rel="stylesheet" href="/static/wangEditor/wangEditor.min.css">
<style>
  .w-e-text-container {height: ${height}!important;}
</style>
<script src="/static/wangEditor/wangEditor.min.js"></script>
<script type="text/javascript">
  var E = window.wangEditor;
  var editor = new E('#editor');
  editor.customConfig.uploadFileName = 'file'
  editor.customConfig.uploadImgServer = '/common/wangEditorUpload'
  editor.create();

  function cancelReply() {
    $("#replyAuthor").text("");
    $("#commentId").val("");
    $("#replyP").addClass("hidden");
  }
</script>
</#macro><commit_msg>配置编辑器菜单<commit_after><#macro editor height='300px' content="">
<input type="hidden" id="commentId" value=""/>
<p class="hidden" id="replyP">回复<span id="replyAuthor"></span>: <a href="javascript:cancelReply();">取消</a></p>
<div id="editor" style="margin-bottom: 10px;">${content!}</div>
<link rel="stylesheet" href="/static/wangEditor/wangEditor.min.css">
<style>
  .w-e-text-container {height: ${height}!important;}
</style>
<script src="/static/wangEditor/wangEditor.min.js"></script>
<script type="text/javascript">
  var E = window.wangEditor;
  var editor = new E('#editor');
  editor.customConfig.uploadFileName = 'file';
  editor.customConfig.uploadImgServer = '/common/wangEditorUpload';
  editor.customConfig.menus = [
    'head',  // 标题
    'bold',  // 粗体
    'italic',  // 斜体
    'underline',  // 下划线
    'strikeThrough',  // 删除线
    'link',  // 插入链接
    'list',  // 列表
    'quote',  // 引用
    'emoticon',  // 表情
    'image',  // 插入图片
    'table',  // 表格
    'code',  // 插入代码
    'undo',  // 撤销
    'redo'  // 重复
  ];
  editor.create();

  function cancelReply() {
    $("#replyAuthor").text("");
    $("#commentId").val("");
    $("#replyP").addClass("hidden");
  }
</script>
</#macro>
{'fraction_non_alphanumeric': 0.22755943716642407, 'fraction_numerical': 0.0048520135856380394, 'mean_word_length': 4.300771208226221, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2646614', 'n_tokens_mistral': 757, 'n_tokens_neox': 752, 'n_words': 126}