<commit_before><template>
  <div>
    <div class="number">
      <p class="title">总人流量</p>
      <p class="value">{{ total }}</p>
      <p>人次</p>
    </div>

    <div class="number">
      <p class="title">平均人流量</p>
      <p class="value">{{ avg }}</p>
      <p>人次/天</p>
    </div>

    <div class="chart">

    </div>
  </div>
</template>


<script>
import moment from 'moment'

export default {
  computed: {
    total () {
      return this.$store.getters.lines.features.length
    },

    avg () {
      const start = moment(this.$store.state.start)
      const end = moment(this.$store.state.end)
      const days = end.diff(start, 'days')

      if (days === 0) return 0

      return (this.total / days).toFixed(2)
    }
  }
}
</script>


<style scoped>
* {
  outline: red solid 1px;
}

div {
  width: 300px;
  height: 100%;
}

.number {
  width: 150px;
  height: 150px;
  float: left;
  text-align: center;
  border-right: 1px solid #d7dde4;
  border-bottom: 1px solid #d7dde4;
}

.chart {
  width: 300px;
  height: 300px;
  clear: both;
}

.title {
  font-size: 1.25em;
}

.value {
  font-size: 5em;
  color: #3399ff;
}
</style>
<commit_msg>add number panel<commit_after><template>
  <div>
    <div class="number">
      <p class="title">总人流量</p>
      <p class="value">{{ total }}</p>
      <p>人次</p>
    </div>

    <div class="number">
      <p class="title">平均人流量</p>
      <p class="value">{{ avg }}</p>
      <p>人次/天</p>
    </div>

    <div class="chart">

    </div>
  </div>
</template>


<script>
import moment from 'moment'

export default {
  computed: {
    total () {
      return this.$store.getters.lines.features.length
    },

    avg () {
      const start = moment(this.$store.state.start)
      const end = moment(this.$store.state.end)
      const days = end.diff(start, 'days')

      if (days === 0) return 0

      return (this.total / days).toFixed(2)
    }
  }
}
</script>


<style scoped>
/** {
  outline: red solid 1px;
}*/

div {
  width: 300px;
  height: 100%;
}

.number {
  width: 150px;
  height: 150px;
  float: left;
  text-align: center;
  border-right: 1px solid #d7dde4;
  border-bottom: 1px solid #d7dde4;
}

.chart {
  width: 300px;
  height: 300px;
  clear: both;
}

.title {
  font-size: 1.25em;
}

.value {
  font-size: 5em;
  color: #3399ff;
}
</style>

{'fraction_non_alphanumeric': 0.18378846987429562, 'fraction_numerical': 0.031209362808842653, 'mean_word_length': 2.419259259259259, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '5076371', 'n_tokens_mistral': 994, 'n_tokens_neox': 927, 'n_words': 206}