<commit_before>import React from 'react';

import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import SpellIcon from 'common/SpellIcon';

// Example Log: /report/CaTNxpcDP6tRgrXG/3-Heroic+MOTHER+-+Kill+(4:12)/4-Iuxury
class DarkAscension extends Analyzer {
  casts = 0;

  constructor(...args) {
    super(...args);
    this.active = this.selectedCombatant.hasTalent(SPELLS.DARK_ASCENSION_TALENT.id);
  }

  on_byPlayer_cast(event) {
    const spellId = event.ability.guid;
    if (spellId === SPELLS.DARK_ASCENSION_TALENT.id) {
      this.casts++;
    }
  }

  statistic() {
    return (

      <TalentStatisticBox
        category={STATISTIC_CATEGORY.TALENTS}
        icon={<SpellIcon id={SPELLS.DARK_ASCENSION_TALENT.id} />}
        value={`${this.casts} Total Dark Ascension Casts`}
        label="Dark Ascension"
        tooltip={``}
        position={STATISTIC_ORDER.CORE(7)}
      />

    );
  }
}

export default DarkAscension;<commit_msg>Finishing up card<commit_after>import React from 'react';

import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import SpellIcon from 'common/SpellIcon';
import CastEfficiency from 'parser/core/modules/CastEfficiency';
import { formatPercentage } from 'common/format';

// Example Log: /report/CaTNxpcDP6tRgrXG/3-Heroic+MOTHER+-+Kill+(4:12)/4-Iuxury
class DarkAscension extends Analyzer {
  static dependencies = {
    castEfficiency: CastEfficiency,
  };

  casts = 0;

  constructor(...args) {
    super(...args);
    this.active = this.selectedCombatant.hasTalent(SPELLS.DARK_ASCENSION_TALENT.id);
  }

  on_byPlayer_cast(event) {
    const spellId = event.ability.guid;
    if (spellId === SPELLS.DARK_ASCENSION_TALENT.id) {
      this.casts++;
    }
  }

  statistic() {
    console.log(this.castEfficiency.getCastEfficiencyForSpellId(SPELLS.DARK_ASCENSION_TALENT.id));
    return (

      <TalentStatisticBox
        category={STATISTIC_CATEGORY.TALENTS}
        icon={<SpellIcon id={SPELLS.DARK_ASCENSION_TALENT.id} />}
        value={`${this.castEfficiency.getCastEfficiencyForSpellId(SPELLS.DARK_ASCENSION_TALENT.id).casts}/${this.castEfficiency.getCastEfficiencyForSpellId(SPELLS.DARK_ASCENSION_TALENT.id).maxCasts} Possible Dark Ascension Casts`}
        label="Dark Ascension"
        tooltip={`${formatPercentage(this.castEfficiency.getCastEfficiencyForSpellId(SPELLS.DARK_ASCENSION_TALENT.id).efficiency)}% Efficiency`}
        position={STATISTIC_ORDER.CORE(7)}
      />

    );
  }
}

export default DarkAscension;
{'fraction_non_alphanumeric': 0.12203626220362622, 'fraction_numerical': 0.005578800557880056, 'mean_word_length': 4.303142329020333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6438659', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1015, 'n_words': 143}