<commit_before>import Component from '@ember/component';
import { computed } from '@ember/object';
import { setDiff } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import { isNone } from '@ember/utils';

export default class TrackingTables extends Component {
  tagName = '';

  @service account;

  tracks = null;
  friends = null;

  @computed('tracks.[]', 'friends.[]', 'account.user.id')
  get friendsTracks() {
    let self = this.get('account.user.id');
    if (isNone(self)) {
      return [];
    }

    let friends = this.friends;

    return this.tracks.filter(track => track.pilot.id === self || friends.includes(track.pilot.id));
  }

  @setDiff('tracks', 'friendsTracks') othersTracks;
}
<commit_msg>TrackingTables: Convert to Glimmer component<commit_after>import { computed } from '@ember/object';
import { setDiff } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import { isNone } from '@ember/utils';
import Component from '@glimmer/component';

export default class TrackingTables extends Component {
  @service account;

  tracks = null;
  friends = null;

  @computed('args.{tracks.[],friends.[]}', 'account.user.id')
  get friendsTracks() {
    let self = this.account.user?.id;
    if (isNone(self)) {
      return [];
    }

    let friends = this.args.friends;

    return this.args.tracks.filter(track => track.pilot.id === self || friends.includes(track.pilot.id));
  }

  @setDiff('args.tracks', 'friendsTracks') othersTracks;
}

{'fraction_non_alphanumeric': 0.15696533682145192, 'fraction_numerical': 0.0, 'mean_word_length': 4.032894736842105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5511919', 'n_tokens_mistral': 491, 'n_tokens_neox': 464, 'n_words': 116}