<commit_before>#include <M5Stack.h>

void setup() {
  M5.begin();
  M5.Power.begin();
  M5.Lcd.setBrightness(200);

  M5.Power.setWakeupButton(BUTTON_A_PIN);
  if(!M5.Power.canControl()) {
    M5.Lcd.printf("IP5306 is not i2c version\n");
  }
}

void loop() {

  M5.update();
  bool c=M5.Power.isResetbyPowerSW();
  bool d=M5.Power.isResetbyDeepsleep();
 
  M5.Lcd.printf("<<Sleep test>>\n");
  M5.Lcd.printf("power-on triggered at:%s%s\n\n",c?"POWER-SW":"",d?"DeepSleep-end":"");
  
  M5.Lcd.printf("Go lightSleep (5s or press buttonA wake up)\n");
  delay(2500);
  // call this fun, power btn will Invalid
  // Restore power btn please call M5.Power.setPowerBoostKeepOn(false)
  M5.Power.lightSleep(SLEEP_SEC(5));
  
  M5.Lcd.printf("Go lightSleep (press buttonA wake up)\n");
  delay(2500);
  // call this fun, power btn will Invalid
  // Restore power btn please call M5.Power.setPowerBoostKeepOn(false)
  M5.Power.lightSleep(0);
  
  M5.Lcd.printf("resume.\n\nGo deepSleep (press buttonA wake up) ");
  delay(2500);
  // call this fun, power btn will Invalid
  // Restore power btn please call M5.Power.setPowerBoostKeepOn(false)
  M5.Power.deepSleep(0);
  
}<commit_msg>Grammatical edits for clarity (#180)<commit_after>#include <M5Stack.h>

void setup() {
  M5.begin();
  M5.Power.begin();
  M5.Lcd.setBrightness(200);

  M5.Power.setWakeupButton(BUTTON_A_PIN);
  if(!M5.Power.canControl()) {
    M5.Lcd.printf("IP5306 is not i2c version\n");
  }
}

void loop() {

  M5.update();
  bool c=M5.Power.isResetbyPowerSW();
  bool d=M5.Power.isResetbyDeepsleep();
 
  M5.Lcd.printf("<<Sleep test>>\n");
  M5.Lcd.printf("power-on triggered at:%s%s\n\n",c?"POWER-SW":"",d?"DeepSleep-end":"");
  
  M5.Lcd.printf("Go lightSleep (5s or press buttonA wake up)\n");
  delay(2500);
  // Calling this function will disable the power button
  // To restore power btn please call M5.Power.setPowerBoostKeepOn(false)
  M5.Power.lightSleep(SLEEP_SEC(5));
  
  M5.Lcd.printf("Go lightSleep (press buttonA wake up)\n");
  delay(2500);
  // Calling this function will disable the power button
  // To restore power btn please call M5.Power.setPowerBoostKeepOn(false)
  M5.Power.lightSleep(0);
  
  M5.Lcd.printf("resume.\n\nGo deepSleep (press buttonA wake up) ");
  delay(2500);
  // Calling this function will disable the power button
  // To restore power btn please call M5.Power.setPowerBoostKeepOn(false)
  M5.Power.deepSleep(0);
  
}
{'fraction_non_alphanumeric': 0.15910964550700743, 'fraction_numerical': 0.03833470733718054, 'mean_word_length': 3.9429735234215886, 'pattern_counts': {'":': 4, '<': 9, '<?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': '5605803', 'n_tokens_mistral': 987, 'n_tokens_neox': 935, 'n_words': 192}