<commit_before><template lang="pug">
svg
</template>

<style scoped lang="scss">
svg {
  width: 100%;
  height: 40pt;
  border: 1px solid #999;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  border-radius: 0.5em;
}
</style>

<script>
// NOTE: This is just a Vue.js component wrapper for summary.js
//       Code should generally go in the framework-independent file.

import periodusage from './periodusage.js';

export default {
  name: 'aw-periodusage',
  props: {
    periodusage_arr: {
      type: Array,
    },
  },
  watch: {
    periodusage_arr: function () {
      periodusage.update(this.$el, this.periodusage_arr, this.onPeriodClicked);
    },
  },
  mounted: function () {
    periodusage.create(this.$el);
    periodusage.set_status(this.$el, 'Loading...');
  },
  methods: {
    onPeriodClicked: function (period) {
      this.$emit('update', period);
    },
  },
};
</script><commit_msg>docs: fixed comment in PeriodUsage.vue (#230)<commit_after><template lang="pug">
svg
</template>

<style scoped lang="scss">
svg {
  width: 100%;
  height: 40pt;
  border: 1px solid #999;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  border-radius: 0.5em;
}
</style>

<script>
// NOTE: This is just a Vue.js component wrapper for periodusage.js
//       Code should generally go in the framework-independent file.

import periodusage from './periodusage.js';

export default {
  name: 'aw-periodusage',
  props: {
    periodusage_arr: {
      type: Array,
    },
  },
  watch: {
    periodusage_arr: function () {
      periodusage.update(this.$el, this.periodusage_arr, this.onPeriodClicked);
    },
  },
  mounted: function () {
    periodusage.create(this.$el);
    periodusage.set_status(this.$el, 'Loading...');
  },
  methods: {
    onPeriodClicked: function (period) {
      this.$emit('update', period);
    },
  },
};
</script>
{'fraction_non_alphanumeric': 0.15614798694232862, 'fraction_numerical': 0.017954298150163223, 'mean_word_length': 3.1890660592255125, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4873017', 'n_tokens_mistral': 655, 'n_tokens_neox': 626, 'n_words': 148}