





import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
_lowerCamelCase :    Any  							= '''.'''


if __name__ == "__main__":
		_lowerCamelCase :    Any  							= os.path.join(REPO_PATH, '''utils/documentation_tests.txt''')
		_lowerCamelCase :    str  							= []
		_lowerCamelCase :    str  							= []
		with open(doctest_file_path) as fp:
				for line in fp:
						_lowerCamelCase :    Union[str, Any]  							= line.strip()
						_lowerCamelCase :    List[Any]  							= os.path.join(REPO_PATH, line)
						if not (os.path.isfile(path) or os.path.isdir(path)):
								non_existent_paths.append(line)
						all_paths.append(path)
		if len(non_existent_paths) > 0:
				_lowerCamelCase :    Union[str, Any]  							= '''\n'''.join(non_existent_paths)
				raise ValueError(f"`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}")
		if all_paths != sorted(all_paths):
				raise ValueError('''Files in `utils/documentation_tests.txt` are not in alphabetical order.''')













def _a (  SCREAMING_SNAKE_CASE__      :  int       )	->    str:

							'''simple docstring'''






							if isinstance(SCREAMING_SNAKE_CASE__			,				SCREAMING_SNAKE_CASE__       ):
														raise TypeError("'float' object cannot be interpreted as an integer"       )
							if isinstance(SCREAMING_SNAKE_CASE__			,				SCREAMING_SNAKE_CASE__       ):
														raise TypeError("'str' object cannot be interpreted as an integer"       )

							if num == 0:
														return "0b0"

							SCREAMING_SNAKE_CASE__       :      Union[str, Any]     =						False

							if num < 0:
														SCREAMING_SNAKE_CASE__       :      Any     =						True
														SCREAMING_SNAKE_CASE__       :      Union[str, Any]     =						-num

							SCREAMING_SNAKE_CASE__       :      list[int]     =						[]
							while num > 0:
														binary.insert(0			,				num % 2       )
														num >>= 1

							if negative:
														return "-0b" + "".join(str(SCREAMING_SNAKE_CASE__       ) for e in binary       )

							return "0b" + "".join(str(SCREAMING_SNAKE_CASE__       ) for e in binary       )


if __name__ == "__main__":
		import doctest

		doctest.testmod()






