<commit_before>discard """
test that closing a closed file is ignored (no error raised)
output: nothing
"""
import memfiles, os
var
  mm: MemFile
  fn = "test.mmap"
# Create a new file
mm = memfiles.open(fn, mode = fmReadWrite, newFileSize = 20)
mm.close()
mm.close()
if fileExists(fn): removeFile(fn)<commit_msg>improve discard text<commit_after>discard """
  test that closing a closed file is ignored (no error raised)
  file: "tmemfiles1.nim"
"""
import memfiles, os
var
  mm: MemFile
  fn = "test.mmap"
# Create a new file
mm = memfiles.open(fn, mode = fmReadWrite, newFileSize = 20)
mm.close()
mm.close()
if fileExists(fn): removeFile(fn)
{'fraction_non_alphanumeric': 0.12267080745341614, 'fraction_numerical': 0.007763975155279503, 'mean_word_length': 4.863636363636363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7362768', 'n_tokens_mistral': 231, 'n_tokens_neox': 221, 'n_words': 75}