<commit_before><template>
  <div v-if="loading" class="loading-wrapper">
    <div class="loading" />
    Loading stats
  </div>
  <div v-else class="stats">
    <div class="stats-total">Total releases : {{ stats.total }}</div>
    <div class="stats-gentime">
      Average search duration : {{ Math.round(stats.time * 1000) }}ms
    </div>
    <div class="stats-upddate">
      Last update : {{ new Date(stats.date).toLocaleString() }}
    </div>
  </div>
</template>

<script>
import api from "@/assets/js/api";
import utils from "@/assets/js/utils";

export default {
  name: "Stats",
  data() {
    return {
      loading: false,
      stats: {},
    };
  },
  created() {
    this.run();
  },
  methods: {
    run() {
      utils.setPageTitle("Stats");<commit_msg>Added sql dump download link<commit_after><template>
  <div v-if="loading" class="stats loading-wrapper">
    <div class="loading" />
    Loading stats
  </div>
  <div v-else class="stats">
    <div class="stats-total">Total releases : {{ stats.total }}</div>
    <div class="stats-gentime">
      Average search duration : {{ Math.round(stats.time * 1000) }}ms
    </div>
    <div class="stats-upddate">
      Last update : {{ new Date(stats.date).toLocaleString() }}
    </div>

    <p>
      <a href="/download">Monthly SQL dumps</a>
    </p>
  </div>
</template>

<script>
import api from "@/assets/js/api";
import utils from "@/assets/js/utils";

export default {
  name: "Stats",
  data() {
    return {
      loading: false,
      stats: {},
    };
  },
  created() {
    this.run();
  },
  methods: {
    run() {
      utils.setPageTitle("Stats");
{'fraction_non_alphanumeric': 0.18730745532963647, 'fraction_numerical': 0.004929143561306223, 'mean_word_length': 2.812206572769953, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3351301', 'n_tokens_mistral': 555, 'n_tokens_neox': 545, 'n_words': 126}