<commit_before><template>
  <div id="home">
    <el-col :span="15" class="searchPos">
      <div class="grid-content bg-purple-light">
        <el-input placeholder="请输入你要寻找的内容..." v-model="filtersKey" @keyup.enter="searchWay">
          <el-button slot="append" class="btn" icon="search" @click="searchWay">
          </el-button>
        </el-input>
      </div>
    </el-col>
    <!--添加按钮 点击触发dialog-->
    <el-col :span="5" style="background: #e5e9f2" class="pos">
      <div class="grid-content bg-purple-light" style="float: right">
        <el-button type="primary" @click="openDialog" icon="edit">
          Add
        </el-button>
      </div>
    </el-col>
    <!--Table展示数据-->
    <el-col :span="20">
      <el-table :data="contacts" @filter-change="[{text: 'name',value: 'water'}]">
        <el-table-column type="expand">
          <template scope="props">
            <p>
              省: {{ props.row.province }}
            </p>
            <p>
              市: {{ props.row.city }}
            </p>
            <p>
              住址: {{ props.row.detailAddress }}
            </p>
            <p>
              邮编: {{ props.row.zip }}
            </p>
            <p>
              生日：{{ props.row.birthday }}
            </p>
            <p>
              分组：{{ props.row.group }}
            </p>
          </template>
        </el-table-column>
        <el-table-column label="姓名" prop="name" width="150">
        </el-table-column>
        <el-table-column label="邮箱" prop="email">
        </el-table-column>
        <el-table-column label="电话" prop="phoneNumber">
        </el-table-column>
        <el-table-column prop="group" label="分组" width="100" :filters="[{ text: '家', value: '家' }, { text: '公司', value: '公司' }]"
        :filter-method="filterTag">
          <template scope="scope">
            <el-tag :type="scope.row.group === '家' ? 'primary' : 'success'" close-transition>
              {{scope.row.group}}
            </el-tag>
          </template>
        </el-table-column>
        <el-table-column label="操作">
          <template scope="scope">
            <el-button size="small" @click="handleEdit(scope.$index, scope.row)">
              Edit
            </el-button>
            <el-button size="small" type="danger" @click="handleDelete(scope.$index, scope.row)">
              Del
            </el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-col>
    <!--dialog模拟框添加数据-->
    <el-dialog title="添加联系人" v-model="dialogVisible" size="small">
      <el-form :model="form" :rules="rules" ref="from" :label-position="labelPosition"
      label-width="120px">
        <el-form-item label="姓名" required>
          <el-input v-model="form.name" auto-complete="off">
          </el-input>
        </el-form-item>
        <el-form-item label="电子邮箱" prop="email">
          <el-input v-model="form.email" auto-complete="off">
          </el-input>
        </el-form-item>
        <el-form-item label="手机号码" prop="phoneNumber">
          <el-input v-model="form.phoneNumber" auto-complete="off">
          </el-input>
        </el-form-item>
        <el-form-item label="家庭电话" prop="homeNumber" required>
          <el-input v-model.number="form.homeNumber" auto-complete="off">
          </el-input>
        </el-form-item>
        <el-form-item label="生日" prop="birthday" required>
          <el-date-picker type="date" format="yyyy-MM-dd" placeholder="选择日期" v-model="form.birthday"
          style="width: 70%;">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="个人主页" prop="site">
          <el-input v-model="form.site" autocomplete="off">
          </el-input>
        </el-form-item>
        <el-form-item>
        </el-form-item>
        <el-form-item label="分组" prop="group" required>
          <el-select v-model="form.battery" placeholder="请选择分组" style="width: 100%">
            <el-option label="家" value="家">
            </el-option>
            <el-option label="公司" value="公司">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="地址" prop="address" required>
          <el-input type="textarea" v-model="form.address" style="width: 70%;" auto-complete="off">
          </el-input>
        </el-form-item><commit_msg>fix：更改日期输入框<commit_after><template>
  <div id="home">
    <el-col :span="15" class="searchPos">
      <div class="grid-content bg-purple-light">
        <el-input placeholder="请输入你要寻找的内容..." v-model="filtersKey" @keyup.enter="searchWay">
          <el-button slot="append" class="btn" icon="search" @click="searchWay">
          </el-button>
        </el-input>
      </div>
    </el-col>
    <!--添加按钮 点击触发dialog-->
    <el-col :span="5" style="background: #e5e9f2" class="pos">
      <div class="grid-content bg-purple-light" style="float: right">
        <el-button type="primary" @click="openDialog" icon="edit">
          Add
        </el-button>
      </div>
    </el-col>
    <!--Table展示数据-->
    <el-col :span="20">
      <el-table :data="contacts" @filter-change="[{text: 'name',value: 'water'}]">
        <el-table-column type="expand">
          <template scope="props">
            <p>
              省: {{ props.row.province }}
            </p>
            <p>
              市: {{ props.row.city }}
            </p>
            <p>
              住址: {{ props.row.detailAddress }}
            </p>
            <p>
              邮编: {{ props.row.zip }}
            </p>
            <p>
              生日：{{ props.row.birthday }}
            </p>
            <p>
              分组：{{ props.row.group }}
            </p>
          </template>
        </el-table-column>
        <el-table-column label="姓名" prop="name" width="150">
        </el-table-column>
        <el-table-column label="邮箱" prop="email">
        </el-table-column>
        <el-table-column label="电话" prop="phoneNumber">
        </el-table-column>
        <el-table-column prop="group" label="分组" width="100" :filters="[{ text: '家', value: '家' }, { text: '公司', value: '公司' }]"
        :filter-method="filterTag">
          <template scope="scope">
            <el-tag :type="scope.row.group === '家' ? 'primary' : 'success'" close-transition>
              {{scope.row.group}}
            </el-tag>
          </template>
        </el-table-column>
        <el-table-column label="操作">
          <template scope="scope">
            <el-button size="small" @click="handleEdit(scope.$index, scope.row)">
              Edit
            </el-button>
            <el-button size="small" type="danger" @click="handleDelete(scope.$index, scope.row)">
              Del
            </el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-col>
    <!--dialog模拟框添加数据-->
    <el-dialog title="添加联系人" v-model="dialogVisible" size="small">
      <el-form :model="form" :rules="rules" ref="from" :label-position="labelPosition"
      label-width="120px">
        <el-form-item label="姓名" required>
          <el-input v-model="form.name" auto-complete="off">
          </el-input>
        </el-form-item>
        <el-form-item label="电子邮箱" prop="email">
          <el-input v-model="form.email" auto-complete="off">
          </el-input>
        </el-form-item>
        <el-form-item label="手机号码" prop="phoneNumber">
          <el-input v-model="form.phoneNumber" auto-complete="off">
          </el-input>
        </el-form-item>
        <el-form-item label="家庭电话" prop="homeNumber" required>
          <el-input v-model.number="form.homeNumber" auto-complete="off">
          </el-input>
        </el-form-item>
        <el-form-item label="生日" prop="birthday" required>
          <el-input type="date" format="yyyy-MM-dd" placeholder="选择日期" v-model="form.birthday"
          style="width: 70%;">
          </el-input>
        </el-form-item>
        <el-form-item label="个人主页" prop="site">
          <el-input v-model="form.site" autocomplete="off">
          </el-input>
        </el-form-item>
        <el-form-item>
        </el-form-item>
        <el-form-item label="分组" prop="group" required>
          <el-select v-model="form.battery" placeholder="请选择分组" style="width: 100%">
            <el-option label="家" value="家">
            </el-option>
            <el-option label="公司" value="公司">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="地址" prop="address" required>
          <el-input type="textarea" v-model="form.address" style="width: 70%;" auto-complete="off">
          </el-input>
        </el-form-item>
{'fraction_non_alphanumeric': 0.19184007481879822, 'fraction_numerical': 0.005611409866729015, 'mean_word_length': 1.8602474088933467, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 0, '>': 201, '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': '3582361', 'n_tokens_mistral': 2894, 'n_tokens_neox': 2921, 'n_words': 475}