<commit_before>function QuerySnippet($resource) {
  const resource = $resource('api/query_snippets/:id', { id: '@id' });
  resource.prototype.getSnippet = () => {
    let name = this.trigger;
    if (this.description !== '') {
      name = `${this.trigger}: ${this.description}`;
    }

    return {
      name,
      content: this.snippet,
      tabTrigger: this.trigger,
    };
  };
<commit_msg>Fix: query snippets were broken<commit_after>function QuerySnippet($resource) {
  const resource = $resource('api/query_snippets/:id', { id: '@id' });
  resource.prototype.getSnippet = function getSnippet() {
    let name = this.trigger;
    if (this.description !== '') {
      name = `${this.trigger}: ${this.description}`;
    }

    return {
      name,
      content: this.snippet,
      tabTrigger: this.trigger,
    };
  };

{'fraction_non_alphanumeric': 0.1678743961352657, 'fraction_numerical': 0.0, 'mean_word_length': 3.0439024390243903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4651959', 'n_tokens_mistral': 261, 'n_tokens_neox': 261, 'n_words': 50}