<commit_before>import React from 'react';

import Analyzer from 'Parser/Core/Analyzer';

import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';

import { formatPercentage } from 'common/format';

class DemEmpUptimeDreadstalkers extends Analyzer{
  demonicEmpowermentCount = 0;
  totalDreadstalkerTime = 0;
  lastDemEmpTimestamp = null;
  lastCallDreadstalkersTimestamp = null;
  demEmpCasts = 0;

  get uptime(){
    alert(this.totalDreadstalkerTime);
    return this.totalDreadstalkerTime / this.owner.fightDuration;
  }

  get suggestionThresholds(){
    return {
      actual: this.uptime,
      isLessThan: {
        minor: 0.95,
        average: 0.90,
        major: 0.80,
      },
      style: 'percentage',
    };
  }

  on_byPlayer_cast(event){
    const spellId = event.ability.guid;
    if(spellId === SPELLS.CALL_DREADSTALKERS.id){
        this.lastCallDreadstalkersTimestamp = event.timestamp;<commit_msg>Remove forgotten alert() from previous commit.<commit_after>import React from 'react';

import Analyzer from 'Parser/Core/Analyzer';

import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';

import { formatPercentage } from 'common/format';

class DemEmpUptimeDreadstalkers extends Analyzer{
  demonicEmpowermentCount = 0;
  totalDreadstalkerTime = 0;
  lastDemEmpTimestamp = null;
  lastCallDreadstalkersTimestamp = null;
  demEmpCasts = 0;

  get uptime(){
    return this.totalDreadstalkerTime / this.owner.fightDuration;
  }

  get suggestionThresholds(){
    return {
      actual: this.uptime,
      isLessThan: {
        minor: 0.95,
        average: 0.90,
        major: 0.80,
      },
      style: 'percentage',
    };
  }

  on_byPlayer_cast(event){
    const spellId = event.ability.guid;
    if(spellId === SPELLS.CALL_DREADSTALKERS.id){
        this.lastCallDreadstalkersTimestamp = event.timestamp;
{'fraction_non_alphanumeric': 0.1008537886872999, 'fraction_numerical': 0.012806830309498399, 'mean_word_length': 3.562043795620438, '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': '2499659', 'n_tokens_mistral': 651, 'n_tokens_neox': 606, 'n_words': 127}