<commit_before>#include<LiquidCrystal.h>
LiquidCrystal lcd(11,12,6,5,4,3);

unsigned long ultras()
{
  digitalWrite(10,HIGH);
  delayMicroseconds(10);
  digitalWrite(10,LOW);
  return pulseIn(9,HIGH);
}

void setup() {
  pinMode(10,OUTPUT);
  pinMode(9,INPUT);
  lcd.begin(16,2);
  lcd.print("Guten Tag, Boys!");
  lcd.setCursor(3,1);
  lcd.print("<Arduino>");
  delay(3000);
  lcd.clear();
}

void loop() {
  unsigned long d;
  d = ultras()/58;
  if (d > 3)
  {
    lcd.print("Door is open!   ");
  }
  else
  {
    lcd.setCursor(8,0);
    lcd.print("closed!");
  }
}<commit_msg>verbessert display time<commit_after>#include<LiquidCrystal.h>
LiquidCrystal lcd(11,12,6,5,4,3);

unsigned long ultras()
{
  digitalWrite(10,HIGH);
  delayMicroseconds(10);
  digitalWrite(10,LOW);
  return pulseIn(9,HIGH);
}

  boolean state = true;
  unsigned long d;
  int t;  

void setup() {
  pinMode(10,OUTPUT);
  pinMode(9,INPUT);
  lcd.begin(16,2);
  lcd.print("Guten Tag, Boys!");
  lcd.setCursor(3,1);
  lcd.print("<Arduino>");
  delay(3000);
  lcd.clear();
}

void loop() {
  d = ultras()/58;
  if (d > 3)
  {
    if (state)
    {
      t = millis();
    }
    lcd.print("Door is open!   ");
    lcd.setCursor(4,1);
    lcd.print("before ");
    lcd.print((millis()-t)/1000);
    lcd.print("s");
    state = false;
  }
  else
  {
    lcd.setCursor(8,0);
    lcd.print("closed!");
    lcd.setCursor(4,1);
    lcd.print("<Arduino>   ");
    state = true;
  }
}
{'fraction_non_alphanumeric': 0.19668737060041408, 'fraction_numerical': 0.049689440993788817, 'mean_word_length': 3.354354354354354, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '488088', 'n_tokens_mistral': 665, 'n_tokens_neox': 626, 'n_words': 99}