<commit_before>if ("silent" %in% ls() && silent) {
  dog <- function (...) {}
} else {
  dog <- cat
}

delete <- dir(pattern = "\\.pdf$", recursive = TRUE, ignore.case = TRUE)
if (length(delete) > 0) {
  cat("Pobrisane bodo sledeče datoteke:\n", delete, "\n")
  if(readline("Nadaljujem? [da/NE]") == 'da') {
    success <- file.remove(delete)
    if (any(!success)) {
      cat("Sledeče datoteke so pobrisane:\n", delete[success], "\n")
      cat("Sledeče datoteke NISO pobrisane:\n", delete[!success], "\n")
    } else {
      cat("Datoteke so pobrisane.\n")
    }
  } else {
    cat("Datoteke niso pobrisane.\n")
  }
} else {
  dog("Ne najdem nobene datoteke PDF.\n")
}
dog("Brišem delovno okolje.\n")
rm(list = ls())<commit_msg>Dodana še možnost brisanja brez vprašanja.<commit_after>if ("silent" %in% ls() && silent) {
  fish <- function (...) {}
} else {
  fish <- cat
}
if ("noask" %in% ls() && noask) {
  dog <- fish
} else {
  dog <- cat
  noask <- FALSE
}

delete <- dir(pattern = "\\.pdf$", recursive = TRUE, ignore.case = TRUE)
if (length(delete) > 0) {
  dog("Pobrisane bodo sledeče datoteke:\n", delete, "\n")
  if(noask || readline("Nadaljujem? [da/NE] ") == 'da') {
    success <- file.remove(delete)
    if (any(!success)) {
      dog("Sledeče datoteke so pobrisane:\n", delete[success], "\n")
      cat("Sledeče datoteke NISO pobrisane:\n", delete[!success], "\n")
    } else {
      dog("Datoteke so pobrisane.\n")
    }
  } else {
    dog("Datoteke niso pobrisane.\n")
  }
} else {
  fish("Ne najdem nobene datoteke PDF.\n")
}
fish("Brišem delovno okolje.\n")
rm(list = ls())
{'fraction_non_alphanumeric': 0.2051442910915935, 'fraction_numerical': 0.0012547051442910915, 'mean_word_length': 3.164490861618799, 'pattern_counts': {'":': 0, '<': 14, '<?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': '6756897', 'n_tokens_mistral': 654, 'n_tokens_neox': 641, 'n_words': 145}