<commit_before><template lang="jade">
h2 Buckets

ul
  li(v-for="bucket in buckets")
    | Name: {{ bucket.name }}
    br
    | Events: {{ bucket.length }}

</template>

<script>
export default {
  name: "Buckets",
  data() {
    return {
      buckets: [
          {name: "test", length: 1337},
          {name: "another_test", length: 2},
          {name: "or_rather_a_mock", length: 100}
      ]
    }
  }
}
</script><commit_msg>Minor progress on the Bucket page<commit_after><template lang="jade">
h2 Buckets

ul
  li(v-for="bucket in buckets")
    | Name: {{ bucket.name }}
    br
    | Events: {{ bucket.length }}

</template>

<script>
export default {
  name: "Buckets",
  data() {
    return {
      $Bucket: this.$resource('/api/0/buckets{/id}'),
      buckets: [
          {name: "test", length: 1337},
          {name: "another_test", length: 2},
          {name: "or_rather_a_mock", length: 100}
      ],
    }
  },
  methods: {
    getBuckets: function() {
      $Bucket.get().then((response) => {
          this.$set('buckets', response.json())
        });
    },

    getBucketInfo: function(bucket_id) {
      $Bucket.get({"id": "bucket_id"}).then((response) => {
        this.$add('buckets', response.json())
      });
    }
  },
  ready: function() {
    this.getBuckets();
    this.getBucketInfo("test");
  }
}
</script>
{'fraction_non_alphanumeric': 0.1865671641791045, 'fraction_numerical': 0.014179104477611941, 'mean_word_length': 2.4561855670103094, 'pattern_counts': {'":': 1, '<': 11, '<?xml version=': 0, '>': 13, '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': '570279', 'n_tokens_mistral': 494, 'n_tokens_neox': 464, 'n_words': 92}