<commit_before>import Entity, { printMessage, action, time, state } from "../../Entity.js";

export class AlarmClock extends Entity {
  constructor() {
    super();
  }

  name() {
    return "alarm clock";
  }

  actions() {
    return [
      action(
        "Snooze.",
        () => {
          state.currentTime.add(5, 'minutes');
          printMessage(`You sleep for another 5 minutes before the alarm clock rings again. It's now ${time()}.`);
        },
        () => state.alarmRinging
      ),
      action(
        "Turn it off.",
        () => {
          state.alarmRinging = false;
          printMessage('You turn the alarm clock off.');<commit_msg>Bump snooze to 10 minutes<commit_after>import Entity, { printMessage, action, time, state } from "../../Entity.js";

export class AlarmClock extends Entity {
  constructor() {
    super();
  }

  name() {
    return "alarm clock";
  }

  actions() {
    return [
      action(
        "Snooze.",
        () => {
          state.currentTime.add(10, 'minutes');
          printMessage(`You sleep for another 10 minutes before the alarm clock rings again. It's now ${time()}.`);
        },
        () => state.alarmRinging
      ),
      action(
        "Turn it off.",
        () => {
          state.alarmRinging = false;
          printMessage('You turn the alarm clock off.');
{'fraction_non_alphanumeric': 0.14477611940298507, 'fraction_numerical': 0.005970149253731343, 'mean_word_length': 2.0270880361173815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2877933', 'n_tokens_mistral': 395, 'n_tokens_neox': 386, 'n_words': 109}