
def    lowerCamelCase__				(				__lowerCAmelCase  :  Optional[int]    ,							__lowerCAmelCase  :  Union[str, Any]    ,							__lowerCAmelCase  :  Any=False				):




			"""simple docstring"""


			if isinstance(__lowerCAmelCase    ,							__lowerCAmelCase				) and isinstance(__lowerCAmelCase    ,							__lowerCAmelCase				):
						lowerCAmelCase_						=	len(set_a.intersection(__lowerCAmelCase				)				)

						if alternative_union:
									lowerCAmelCase_						=	len(__lowerCAmelCase				) + len(__lowerCAmelCase				)
						else:
									lowerCAmelCase_						=	len(set_a.union(__lowerCAmelCase				)				)

						return intersection / union

			if isinstance(__lowerCAmelCase    ,							(list, tuple)				) and isinstance(__lowerCAmelCase    ,							(list, tuple)				):
						lowerCAmelCase_						=	[element for element in set_a if element in set_b]

						if alternative_union:
									lowerCAmelCase_						=	len(__lowerCAmelCase				) + len(__lowerCAmelCase				)
									return len(__lowerCAmelCase				) / union
						else:
									lowerCAmelCase_						=	set_a + [element for element in set_b if element not in set_a]
									return len(__lowerCAmelCase				) / len(__lowerCAmelCase				)

						return len(__lowerCAmelCase				) / len(__lowerCAmelCase				)
			return None


if __name__ == "__main__":
			_A   =     {"a", "b", "c", "d", "e"}
			_A   =     {"c", "d", "e", "f", "h", "i"}
			print(jaccard_similarity(set_a, set_b))





import math






def    lowerCamelCase__				(				__lowerCAmelCase  :  int				):




			"""simple docstring"""


			lowerCAmelCase_						=	0
			lowerCAmelCase_						=	0
			while num > 0:
						lowerCAmelCase_						=	num % 8
						lowerCAmelCase_						=	octal + (remainder * math.floor(math.pow(10    ,							__lowerCAmelCase				)				))
						counter += 1
						lowerCAmelCase_						=	math.floor(num / 8				)  # basically /= 8 without remainder if any
						# This formatting removes trailing '.0' from `octal`.
			return F"""0o{int(__lowerCAmelCase				)}"""






def    lowerCamelCase__				(				):




			"""simple docstring"""


			print("\n2 in octal is:"				)
			print(decimal_to_octal(2				)				)  # = 2
			print("\n8 in octal is:"				)
			print(decimal_to_octal(8				)				)  # = 10
			print("\n65 in octal is:"				)
			print(decimal_to_octal(65				)				)  # = 101
			print("\n216 in octal is:"				)
			print(decimal_to_octal(216				)				)  # = 330
			print("\n512 in octal is:"				)
			print(decimal_to_octal(512				)				)  # = 1000
			print("\n"				)


if __name__ == "__main__":
			main()



