




"""simple docstring"""







import requests

def 						snake_case__       (					_lowerCamelCase,  _lowerCamelCase				)			->None:






		"""simple docstring"""


		__lowercase				:		Tuple												=				{"Content-Type": "application/json"}
		__lowercase				:		Dict												=				requests.post(_lowerCamelCase,  json={"text": message_body},  headers=_lowerCamelCase				)
		if response.status_code != 2_00:
				__lowercase				:		str												=				(
				    "Request to slack returned an error "
				    F'{response.status_code}, the response is:\n{response.text}'
				)
				raise ValueError(_lowerCamelCase				)


if __name__ == "__main__":
						# Set the slack url to the one provided by Slack when you create the webhook at
						# https://my.slack.com/services/new/incoming-webhook/
						send_slack_message('<YOUR MESSAGE BODY>', '<SLACK CHANNEL URL>')






"""simple docstring"""







def 						snake_case__       (					_lowerCamelCase				)			->list:






		"""simple docstring"""


		__lowercase				:		Optional[int]												=				[0] * len(_lowerCamelCase				)

		for i in range(1,  len(_lowerCamelCase				)				):
				# use last results for better performance - dynamic programming
				__lowercase				:		Optional[Any]												=				prefix_result[i - 1]
				while j > 0 and input_string[i] != input_string[j]:
						__lowercase				:		List[str]												=				prefix_result[j - 1]

				if input_string[i] == input_string[j]:
						j += 1
				__lowercase				:		Any												=				j

		return prefix_result

def 						snake_case__       (					_lowerCamelCase				)			->int:






		"""simple docstring"""


		return max(prefix_function(_lowerCamelCase				)				)


if __name__ == "__main__":
						import doctest

						doctest.testmod()
