


"""simple docstring"""







import re

from filelock import FileLock


try:
 import nltk

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

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


def      lowercase			(				A_       )->      str:
  '''simple docstring'''







  re.sub("<n>"  ,   ""  ,   A_       )  # 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(A_       )       )







"""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()

