<commit_before>
import { Screen } from '../screen';

export class LoadScreen extends Screen {
  static enter(display) {
    this.flicker = 0;

    const dotStatus = ['.  ', '.. ', '...', ' ..', '  .'];

    this.interval = setInterval(() => {
      display.clear();
      this.render(display);

      this.drawCenterText(display, 12, `Generating ${dotStatus[this.flicker]}`);

      this.flicker = ++this.flicker % dotStatus.length;
    }, 500);
  }

  static exit() {
    window.clearInterval(this.interval);
  }

  static render(display) {
    this.drawCenterText(display,  11, '-Welcome to Roguathia-');
  }
}<commit_msg>attempt to address memory leak<commit_after>
import { Screen } from '../screen';

export class LoadScreen extends Screen {
  static enter(/* display */) {
    // this.flicker = 0;

    // const dotStatus = ['.  ', '.. ', '...', ' ..', '  .'];

    /* this.interval = setInterval(() => {
      display.clear();
      this.render(display);

      this.drawCenterText(display, 12, `Generating ${dotStatus[this.flicker]}`);

      this.flicker = ++this.flicker % dotStatus.length;
    }, 500); */
  }

  static exit() {
    // window.clearInterval(this.interval);
  }

  static render(display) {
    this.drawCenterText(display,  11, '-Welcome to Roguathia-');
    this.drawCenterText(display,  12, 'Generating...');
  }
}
{'fraction_non_alphanumeric': 0.1855439642324888, 'fraction_numerical': 0.013412816691505217, 'mean_word_length': 2.7937853107344632, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6871162', 'n_tokens_mistral': 462, 'n_tokens_neox': 432, 'n_words': 84}