<commit_before>import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { isPresent } from '@ember/utils';
import { timeout } from 'ember-concurrency';
import { restartableTask } from 'ember-concurrency-decorators';
import escapeRegExp from '../utils/escape-reg-exp';

export default class TaxonomyManager extends Component {
  @service store;
  @service intl;
  @service flashMessages;
  @tracked termFilter = '';
  @tracked vocabId = null;

  @action
  load(element, [vocabulary]) {
    console.log(vocabulary);
    if (vocabulary) {
      this.vocabId = vocabulary.id;
    }
  }

  get nonEmptyVocabularies() {
    if (!this.args.vocabularies) {
      return [];
    } else {
      return this.args.vocabularies.toArray().filter(vocab => {
        return (vocab.get('termCount') > 0);
      });
    }
  }

  get assignableVocabularies() {
    return this.nonEmptyVocabularies.filter(vocab => {
      return vocab.get('active');
    });
  }

  get listableVocabularies() {
    return this.nonEmptyVocabularies.filter(vocab => {
      if (vocab.get('active')) {<commit_msg>rm stray debugging statement.<commit_after>import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { isPresent } from '@ember/utils';
import { timeout } from 'ember-concurrency';
import { restartableTask } from 'ember-concurrency-decorators';
import escapeRegExp from '../utils/escape-reg-exp';

export default class TaxonomyManager extends Component {
  @service store;
  @service intl;
  @service flashMessages;
  @tracked termFilter = '';
  @tracked vocabId = null;

  @action
  load(element, [vocabulary]) {
    if (vocabulary) {
      this.vocabId = vocabulary.id;
    }
  }

  get nonEmptyVocabularies() {
    if (!this.args.vocabularies) {
      return [];
    } else {
      return this.args.vocabularies.toArray().filter(vocab => {
        return (vocab.get('termCount') > 0);
      });
    }
  }

  get assignableVocabularies() {
    return this.nonEmptyVocabularies.filter(vocab => {
      return vocab.get('active');
    });
  }

  get listableVocabularies() {
    return this.nonEmptyVocabularies.filter(vocab => {
      if (vocab.get('active')) {
{'fraction_non_alphanumeric': 0.1380892782644973, 'fraction_numerical': 0.0008343763037129745, 'mean_word_length': 3.5676190476190475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6942565', 'n_tokens_mistral': 794, 'n_tokens_neox': 779, 'n_words': 166}