



"""simple docstring"""

from itertools import product





def       __magic_name__    (   _lowerCamelCase				: int  ,       _lowerCamelCase				: int					):
							__a		:		Dict									=       sides_number
							__a		:		Optional[Any]									=       max_face_number * dice_number
							__a		:		str									=       [0] * (max_total + 1)

							__a		:		Optional[int]									=       1
							__a		:		List[Any]									=       range(_lowerCamelCase  ,       max_face_number + 1					)
							for dice_numbers in product(_lowerCamelCase  ,       repeat=_lowerCamelCase					):
														__a		:		List[Any]									=       sum(_lowerCamelCase					)
														totals_frequencies[total] += 1

							return totals_frequencies





def       __magic_name__    (   ):
							__a		:		Optional[Any]									=       total_frequency_distribution(
							    sides_number=4  ,       dice_number=9					)
							__a		:		Optional[int]									=       total_frequency_distribution(
							    sides_number=6  ,       dice_number=6					)

							__a		:		Optional[Any]									=       0
							__a		:		Any									=       9
							__a		:		Union[str, Any]									=       4 * 9
							__a		:		Optional[Any]									=       6
							for peter_total in range(_lowerCamelCase  ,       max_peter_total + 1					):
														peter_wins_count += peter_totals_frequencies[peter_total] * sum(
														    colin_totals_frequencies[min_colin_total:peter_total]					)

							__a		:		Union[str, Any]									=       (4**9) * (6**6)
							__a		:		List[str]									=       peter_wins_count / total_games_number

							__a		:		Dict									=       round(_lowerCamelCase  ,       ndigits=7					)

							return rounded_peter_win_probability


if __name__ == "__main__":
	print(f'{solution() = }')






"""simple docstring"""

from unittest import TestCase

from datasets import Dataset
from minhash_deduplication import deduplicate_dataset, make_duplicate_clusters





def       __magic_name__    (   ):
							__a		:		Dict									=       {
							    """repo_name""": ["""test_repo1""", """test_repo2""", """test_repo3"""],
							    """path""": ["""test_1.py""", """test_2.py""", """unit_test.py"""],
							    """content""": ["""a """ * 2_0, """a """ * 3_0, """b """ * 7],
							}
							__a		:		Optional[Any]									=       Dataset.from_dict(_lowerCamelCase					)
							return dataset







class SCREAMING_SNAKE_CASE__					(		__snake_case      ):



						def     lowerCAmelCase__(self							):





													'''simple docstring'''

													__a		:		Optional[int]									=       get_dataset()
													__a		:		List[Any]									=       make_duplicate_clusters(_lowercase						,     0.85							)
													self.assertEqual(len(duplicate_clusters[0]							)						,     2							)





						def     lowerCAmelCase__(self							):





													'''simple docstring'''

													__a		:		Tuple									=       get_dataset()
													__a							,     __a		:		Optional[Any]									=       deduplicate_dataset(_lowercase							)
													self.assertEqual(len(_lowercase							)						,     2							)
													print(_lowercase							)
													self.assertEqual(duplicate_clusters[0][0]["""copies"""]						,     2							)
													self.assertEqual(duplicate_clusters[0][0]["""is_extreme"""]						,     _lowercase							)

