<commit_before>import React from 'react';

import SPELLS from 'common/SPELLS';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Statistic from 'interface/statistics/Statistic';
import BoringSpellValue from 'interface/statistics/components/BoringSpellValue';
import PlayerHits from 'interface/statistics/components/PlayerHits';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';

import './LightOfDawn.scss';

class LightOfDawn extends Analyzer {
  _casts = 0;
  _heals = 0;
  constructor(props) {
    super(props);
    this.addEventListener(Events.cast.by(SELECTED_PLAYER).spell(SPELLS.LIGHT_OF_DAWN_CAST), this._onCast);
    this.addEventListener(Events.heal.by(SELECTED_PLAYER).spell(SPELLS.LIGHT_OF_DAWN_HEAL), this._onHeal);
  }

  _onCast(event) {
    this._casts += 1;
  }
  _onHeal(event) {
    this._heals += 1;
  }

  statistic() {
    const playersHitPerCast = (this._heals / this._casts) || 0;
    const performance = playersHitPerCast / 5;

    return (
      <Statistic
        position={STATISTIC_ORDER.CORE(60)}
        size="small"
      >
        <BoringSpellValue
          spell={SPELLS.LIGHT_OF_DAWN_CAST}
          value={playersHitPerCast.toFixed(2)}
          label="Average targets hit per cast"<commit_msg>Commented out LoD scss as it's missing<commit_after>import React from 'react';

import SPELLS from 'common/SPELLS';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Statistic from 'interface/statistics/Statistic';
import BoringSpellValue from 'interface/statistics/components/BoringSpellValue';
import PlayerHits from 'interface/statistics/components/PlayerHits';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';

// import './LightOfDawn.scss';

class LightOfDawn extends Analyzer {
  _casts = 0;
  _heals = 0;
  constructor(props) {
    super(props);
    this.addEventListener(Events.cast.by(SELECTED_PLAYER).spell(SPELLS.LIGHT_OF_DAWN_CAST), this._onCast);
    this.addEventListener(Events.heal.by(SELECTED_PLAYER).spell(SPELLS.LIGHT_OF_DAWN_HEAL), this._onHeal);
  }

  _onCast(event) {
    this._casts += 1;
  }
  _onHeal(event) {
    this._heals += 1;
  }

  statistic() {
    const playersHitPerCast = (this._heals / this._casts) || 0;
    const performance = playersHitPerCast / 5;

    return (
      <Statistic
        position={STATISTIC_ORDER.CORE(60)}
        size="small"
      >
        <BoringSpellValue
          spell={SPELLS.LIGHT_OF_DAWN_CAST}
          value={playersHitPerCast.toFixed(2)}
          label="Average targets hit per cast"
{'fraction_non_alphanumeric': 0.11442598187311179, 'fraction_numerical': 0.006797583081570997, 'mean_word_length': 3.9981132075471697, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3651', 'n_tokens_mistral': 905, 'n_tokens_neox': 881, 'n_words': 159}