<commit_before>import SPELLS from 'common/SPELLS';

import CoreCooldownTracker, { BUILT_IN_SUMMARY_TYPES } from 'Parser/Core/Modules/CooldownTracker';

const debug = false;

class CooldownTracker extends CoreCooldownTracker {
  static cooldownSpells = [
    ...CooldownTracker.cooldownSpells,
    {
      spell: SPELLS.TRUESHOT,
      summary: [
        BUILT_IN_SUMMARY_TYPES.DAMAGE,
      ],
    },
  ];

  castEventSpells = [
    SPELLS.WINDBURST_MOVEMENT_SPEED.id,
  ];

  on_byPlayer_cast(event) {
    const spellID = event.ability.guid;
    if (this.castEventSpells.indexOf(spellID) !== -1)  {
      debug && console.log('Exiting');
      return;
    }
    super.on_byPlayer_cast(event);
  }
}

export default CooldownTracker;<commit_msg>Cleaned up code to better showcase what it actually does, and added two comments to further clarify if needed<commit_after>import SPELLS from 'common/SPELLS';

import CoreCooldownTracker, { BUILT_IN_SUMMARY_TYPES } from 'Parser/Core/Modules/CooldownTracker';

const debug = false;

class CooldownTracker extends CoreCooldownTracker {
  static cooldownSpells = [
    ...CooldownTracker.cooldownSpells,
    {
      spell: SPELLS.TRUESHOT,
      summary: [
        BUILT_IN_SUMMARY_TYPES.DAMAGE,
      ],
    },
  ];

 // Define the spells to be ignored in the Cooldown window
  ignoredSpells = [
    SPELLS.WINDBURST_MOVEMENT_SPEED.id,
  ];
//Remove the defined spells from the Cooldown window
  on_byPlayer_cast(event) {
    const spellID = event.ability.guid;
    if (this.ignoredSpells.includes(spellID))  {
      debug && console.log('Exiting');
      return;
    }
    super.on_byPlayer_cast(event);
  }
}

export default CooldownTracker;
{'fraction_non_alphanumeric': 0.09792284866468842, 'fraction_numerical': 0.0005934718100890207, 'mean_word_length': 3.496, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6000009', 'n_tokens_mistral': 593, 'n_tokens_neox': 589, 'n_words': 112}