"""simple docstring"""







import re

from filelock import FileLock


try:
       import nltk

       __SCREAMING_SNAKE_CASE    	=True
except (ImportError, ModuleNotFoundError):
       __SCREAMING_SNAKE_CASE    	=False

if NLTK_AVAILABLE:
       with FileLock(".lock") as lock:
              nltk.download("punkt", quiet=True)



def 			lowercase__(       __SCREAMING_SNAKE_CASE							:     str      ):
     re.sub('<n>'     ,			''     ,			__SCREAMING_SNAKE_CASE      )  # remove pegasus newline char
     assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
     return "\n".join(nltk.sent_tokenize(__SCREAMING_SNAKE_CASE      )      )


"""simple docstring"""







from __future__ import annotations



def 			lowercase__(       __SCREAMING_SNAKE_CASE							:     list      ):
     if not nums:
          raise ValueError('List is empty'      )
     return sum(__SCREAMING_SNAKE_CASE      ) / len(__SCREAMING_SNAKE_CASE      )


if __name__ == "__main__":
       import doctest

       doctest.testmod()

