<commit_before>// demo.ts

"use strict";
<commit_msg>Added two interfaces: SuperHero; BadGuy. Added let dazzler: SuperHero, let badGuy: BadGuy<commit_after>// demo.ts

"use strict";

interface SuperHero {
  powers: string[];
  savesTheDay: () => void;
}

let dazzler: SuperHero = {
  powers: ["transduces sonic vibrations into light"],
  savesTheDay() {
    console.log(`Dazzler ${this.powers} to save the day!!!`);
  }
};

interface BadGuy {
  badDeeds: string[];
  getRandomBadDeed: () => string;
  commitBadDeed: () => void;
}

let badGuy: BadGuy = {
  badDeeds: [
    "farts on old folks",
    "doesn't picks up his dog's poop",
    "steals from babies"
  ],
  getRandomBadDeed() {
    return this.badDeeds[Math.floor(Math.random() * this.badDeeds.length)];
  },
  commitBadDeed() {
    console.log(`BadGuy ${this.getRandomBadDeed()}`);
  }
}

{'fraction_non_alphanumeric': 0.15820543093270367, 'fraction_numerical': 0.0, 'mean_word_length': 3.901734104046243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '674480', 'n_tokens_mistral': 322, 'n_tokens_neox': 310, 'n_words': 73}