<commit_before>import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'Interface/Others/StatisticBox';
import { formatNumber, formatPercentage } from 'common/format';

//WCL: https://www.warcraftlogs.com/reports/7DNACRhnaKzBfHLM/#fight=1&source=19
class FeastOfSouls extends Analyzer {

  heal = 0;
  overHeal = 0;

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

  on_byPlayer_heal(event) {
    const spellID = event.ability.guid;
    if (spellID !== SPELLS.FEAST_OF_SOULS_HEAL.id) {
      return;
    }
    this.heal += event.amount;
    this.overHeal += event.overheal || 0;
  }

  statistic() {
    const overHealPercent = this.overHeal/(this.overHeal + this.heal);
    return (
      <StatisticBox
        icon={<SpellIcon id={SPELLS.FEAST_OF_SOULS_TALENT.id} />}
        value={`${this.owner.formatItemHealingDone(this.heal)}`}
        label="Feast of Souls"
        tooltip={`This shows the extra hps that the talent provides.<br/>
                  <b>Total extra healing:</b> ${formatNumber(this.heal)}<br/>
                  <b>Overhealing:</b> ${formatNumber(this.overHeal)} | ${formatPercentage(overHealPercent)}%`}
      />
    );
  }
  statisticOrder = STATISTIC_ORDER.CORE(7);
}

export default FeastOfSouls;<commit_msg>rewording<commit_after>import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'Interface/Others/StatisticBox';
import { formatNumber, formatPercentage } from 'common/format';

//WCL: https://www.warcraftlogs.com/reports/7DNACRhnaKzBfHLM/#fight=1&source=19
class FeastOfSouls extends Analyzer {

  heal = 0;
  overHeal = 0;

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

  on_byPlayer_heal(event) {
    const spellID = event.ability.guid;
    if (spellID !== SPELLS.FEAST_OF_SOULS_HEAL.id) {
      return;
    }
    this.heal += event.amount;
    this.overHeal += event.overheal || 0;
  }

  statistic() {
    const overHealPercent = this.overHeal/(this.overHeal + this.heal);
    return (
      <StatisticBox
        icon={<SpellIcon id={SPELLS.FEAST_OF_SOULS_TALENT.id} />}
        value={`${this.owner.formatItemHealingDone(this.heal)}`}
        label="Feast of Souls"
        tooltip={`This shows the extra hps that the talent provides.<br/>
                  <b>Effective healing:</b> ${formatNumber(this.heal)}<br/>
                  <b>Overhealing:</b> ${formatNumber(this.overHeal)} | ${formatPercentage(overHealPercent)}%`}
      />
    );
  }
  statisticOrder = STATISTIC_ORDER.CORE(7);
}

export default FeastOfSouls;
{'fraction_non_alphanumeric': 0.13847203274215553, 'fraction_numerical': 0.005457025920873124, 'mean_word_length': 3.568535825545171, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1462397', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1042, 'n_words': 172}