





'''simple docstring'''






import re

from filelock import FileLock


try:
					import nltk

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

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






def      __A						(							a_						:  str	):
		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      __A						(							a_						:  float      ,a_						:  float      ,a_						:  float      ,):
		if (stress, tangential_force, area).count(0	) != 1:
				raise ValueError("You cannot supply more or less than 2 values"	)
		elif stress < 0:
				raise ValueError("Stress cannot be negative"	)
		elif tangential_force < 0:
				raise ValueError("Tangential Force cannot be negative"	)
		elif area < 0:
				raise ValueError("Area cannot be negative"	)
		elif stress == 0:
				return (
				    "stress",
				    tangential_force / area,
				)
		elif tangential_force == 0:
				return (
				    "tangential_force",
				    stress * area,
				)
		else:
				return (
				    "area",
				    tangential_force / stress,
				)


if __name__ == "__main__":
					import doctest

					doctest.testmod()



