

def  UpperCAmelCase_   (_lowerCAmelCase :		str     ,			_lowerCAmelCase :		str		):
			# The longer word should come first
			if len(_lowerCAmelCase		) < len(_lowerCAmelCase		):
						return levenshtein_distance(_lowerCAmelCase     ,			_lowerCAmelCase		)

			if len(_lowerCAmelCase		) == 0:
						return len(_lowerCAmelCase		)

			__UpperCamelCase    :    str								=      list(range(len(_lowerCAmelCase		) + 1		)		)

			for i, ca in enumerate(_lowerCAmelCase		):
						__UpperCamelCase    :    List[str]								=      [i + 1]

						for j, ca in enumerate(_lowerCAmelCase		):
									# Calculate insertions, deletions and substitutions
									__UpperCamelCase    :    Dict								=      previous_row[j + 1] + 1
									__UpperCamelCase    :    int								=      current_row[j] + 1
									__UpperCamelCase    :    Optional[Any]								=      previous_row[j] + (ca != ca)

									# Get the minimum to append to the current row
									current_row.append(min(_lowerCAmelCase     ,			_lowerCAmelCase     ,			_lowerCAmelCase		)		)

						# Store the previous row
						__UpperCamelCase    :    Optional[int]								=      current_row

			# Returns the last element (distance)
			return previous_row[-1]


if __name__ == "__main__":
					lowercase     :       List[str]        =       input("Enter the first word:\n").strip()
					lowercase     :       Optional[Any]        =       input("Enter the second word:\n").strip()

					lowercase     :       Any        =       levenshtein_distance(first_word, second_word)
					print(F"""Levenshtein distance between {first_word} and {second_word} is {result}""")


import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


lowercase     :       Dict        =       "\nHugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf originally as a company that developed a chatbot app targeted at teenagers.[2] After open-sourcing the model behind the chatbot, the company pivoted to focus on being a platform for machine learning.\n\nIn March 2021, Hugging Face raised $40 million in a Series B funding round.[3]\n\nOn April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model.[4] In 2022, the workshop concluded with the announcement of BLOOM, a multilingual large language model with 176 billion parameters.[5]\n"
class 		SCREAMING_SNAKE_CASE__					(		unittest.TestCase						,	lowerCamelCase__   ):







						"""simple docstring"""




						def __lowerCamelCase					(				self    )							->	Union[str, Any]:




									'''simple docstring'''


									__UpperCamelCase    :    str								=      load_tool("summarization"    )
									self.tool.setup()
									__UpperCamelCase    :    str								=      load_tool("summarization" , remote=__UpperCamelCase    )

						def __lowerCamelCase					(				self    )							->	Optional[int]:




									'''simple docstring'''


									__UpperCamelCase    :    Union[str, Any]								=      self.tool(__UpperCamelCase    )
									self.assertEqual(
									    __UpperCamelCase , "Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM." , )

						def __lowerCamelCase					(				self    )							->	int:




									'''simple docstring'''


									__UpperCamelCase    :    Any								=      self.remote_tool(__UpperCamelCase    )
									self.assertEqual(
									    __UpperCamelCase , "Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM." , )

						def __lowerCamelCase					(				self    )							->	List[Any]:




									'''simple docstring'''


									__UpperCamelCase    :    List[Any]								=      self.tool(text=__UpperCamelCase    )
									self.assertEqual(
									    __UpperCamelCase , "Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM." , )




						def __lowerCamelCase					(				self    )							->	str:




									'''simple docstring'''


									__UpperCamelCase    :    str								=      self.remote_tool(text=__UpperCamelCase    )
									self.assertEqual(
									    __UpperCamelCase , "Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM." , )