<commit_before>import Component from '@ember/component'
import layout from '../templates/components/animated-status-label'
import { get, set } from '@ember/object'
import { task, timeout, waitForProperty } from 'ember-concurrency'

export const SETTLED = 'settled'
export const PENDING = 'pending'
export const CONFIRMING = 'confirming'

export default Component.extend({
  layout,

  classNames: [ 'animated-status-label' ],
  classNameBindings: [ '_isFadingIn:fade-in', '_isFadingOut:fade-out' ],

  confirmationDuration: 1500,

  promise: undefined,

  labelState: SETTLED,

  _activePromise: undefined,
  _isFadingIn: false,
  _isFadingOut: false,

  didReceiveAttrs() {
    this._super(...arguments)
    if (get(this, 'promise') !== get(this, '_activePromise')) {
      this._animateTask.cancelAll()
      this._animateTask.perform(get(this, 'promise'))
    }
  },

  didInsertElement() {
    this._super(...arguments)
    this.element.addEventListener('animationend', event => {
      if (event.animationName === 'animated-status-label-fade-in') {<commit_msg>remove uncesessary call<commit_after>import Component from '@ember/component'
import layout from '../templates/components/animated-status-label'
import { get, set } from '@ember/object'
import { task, timeout, waitForProperty } from 'ember-concurrency'

export const SETTLED = 'settled'
export const PENDING = 'pending'
export const CONFIRMING = 'confirming'

export default Component.extend({
  layout,

  classNames: [ 'animated-status-label' ],
  classNameBindings: [ '_isFadingIn:fade-in', '_isFadingOut:fade-out' ],

  confirmationDuration: 1500,

  promise: undefined,

  labelState: SETTLED,

  _activePromise: undefined,
  _isFadingIn: false,
  _isFadingOut: false,

  didReceiveAttrs() {
    this._super(...arguments)
    if (get(this, 'promise') !== get(this, '_activePromise')) {
      this._animateTask.perform(get(this, 'promise'))
    }
  },

  didInsertElement() {
    this._super(...arguments)
    this.element.addEventListener('animationend', event => {
      if (event.animationName === 'animated-status-label-fade-in') {
{'fraction_non_alphanumeric': 0.13878326996197718, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 4.510471204188482, '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': '2388443', 'n_tokens_mistral': 683, 'n_tokens_neox': 653, 'n_words': 139}