




"""simple docstring"""




import argparse


lowerCAmelCase							:			str     							=							"""docs/source/_static/js/custom.js"""



def     a__ (				snake_case__				)						->					List[str]:
			with open(snake_case__       , encoding="""utf-8"""       , newline="""\n"""				) as f:
						lowerCamelCase			      =					f.readlines()
			lowerCamelCase			      =					0

			# First let's put the right version
			while not lines[index].startswith("""const stableVersion ="""				):
						index += 1
			lowerCamelCase			      =					F'const stableVersion = "v{version}"\n'

			# Then update the dictionary
			while not lines[index].startswith("""const versionMapping = {"""				):
						index += 1

			# We go until the end
			while not lines[index].startswith("""}"""				):
						index += 1
			# We add the new version at the end
			lines[index - 1] += F'    "v{version}": "v{version}",\n'

			with open(snake_case__       , """w"""       , encoding="""utf-8"""       , newline="""\n"""				) as f:
						f.writelines(snake_case__				)


if __name__ == "__main__":
					lowerCAmelCase							:			Tuple     							=							argparse.ArgumentParser()
					parser.add_argument("""--version""", help="""Release version.""")
					lowerCAmelCase							:			Optional[Any]     							=							parser.parse_args()
					update_custom_js(args.version)









"""simple docstring"""




from __future__ import annotations



def     a__ (				snake_case__       , snake_case__				)						->					bool:
			if len(snake_case__				) == 0:
						return False
			lowerCamelCase			      =					len(snake_case__				) // 2
			if a_list[midpoint] == item:
						return True
			if item < a_list[midpoint]:
						return binary_search(a_list[:midpoint]       , snake_case__				)
			else:
						return binary_search(a_list[midpoint + 1 :]       , snake_case__				)


if __name__ == "__main__":
					lowerCAmelCase							:			List[Any]     							=							input("""Enter numbers separated by comma:\n""").strip()
					lowerCAmelCase							:			Optional[Any]     							=							[int(item.strip()) for item in user_input.split(""",""")]
					lowerCAmelCase							:			Optional[int]     							=							int(input("""Enter the number to be found in the list:\n""").strip())
					lowerCAmelCase							:			Union[str, Any]     							=							"""""" if binary_search(sequence, target) else """not """
					print(F"""{target} was {not_str}found in {sequence}""")



