<commit_before>package com.lousylynx.asciidots;

import com.lousylynx.asciidots.states.Dead;
import com.lousylynx.asciidots.states.IState;

public class Dot {
  private IState currentState;

  public Dot() {
      currentState = new Dead();
  }

  public void set_state(IState s) {
      currentState = s;
  }

  public void on_tick() {
      currentState.on_tick(this);
  }
}<commit_msg>add dead check to Dot.java<commit_after>package com.lousylynx.asciidots;

import com.lousylynx.asciidots.states.Dead;
import com.lousylynx.asciidots.states.IState;

public class Dot {
  private IState currentState;

  public Dot() {
      currentState = new Dead();
  }

  public void set_state(IState s) {
      currentState = s;
  }

  public void on_tick() {
      currentState.on_tick(this);
  }

  public boolean is_dead() {
    return (currentState instanceof Dead)
  }
}
{'fraction_non_alphanumeric': 0.10289017341040463, 'fraction_numerical': 0.0, 'mean_word_length': 3.5104166666666665, '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': '5705858', 'n_tokens_mistral': 316, 'n_tokens_neox': 308, 'n_words': 65}