"""simple docstring"""
from __future__ import annotations

from fractions import Fraction





def 				lowerCAmelCase__      (     _UpperCamelCase    :			int	,     _UpperCamelCase    :			int   )   ->			bool:





						"""simple docstring"""






						return (
						    num != den and num % 1_0 == den // 1_0 and (num // 1_0) / (den % 1_0) == num / den
						)





def 				lowerCAmelCase__      (     _UpperCamelCase    :			int   )   ->			list[str]:





						"""simple docstring"""






						snake_case        =     []
						snake_case        =     1_1
						snake_case        =     int('1' + '0' * digit_len   )
						for num in range(_UpperCamelCase	,     _UpperCamelCase   ):
												while den <= 9_9:
																		if (num != den) and (num % 1_0 == den // 1_0) and (den % 1_0 != 0):
																								if is_digit_cancelling(_UpperCamelCase	,     _UpperCamelCase   ):
																														solutions.append(f"""{num}/{den}"""   )
																		den += 1
												num += 1
												snake_case        =     1_0
						return solutions





def 				lowerCAmelCase__      (     _UpperCamelCase    :			int = 2   )   ->			int:





						"""simple docstring"""






						snake_case        =     1.0
						for fraction in fraction_list(_UpperCamelCase   ):
												snake_case        =     Fraction(_UpperCamelCase   )
												result *= frac.denominator / frac.numerator
						return int(_UpperCamelCase   )


if __name__ == "__main__":
					print(solution())



"""simple docstring"""
import argparse
import math
import traceback

import dateutil.parser as date_parser
import requests





def 				lowerCAmelCase__      (     _UpperCamelCase    :			Any   )   ->			int:





						"""simple docstring"""






						snake_case        =     {}

						snake_case        =     job['started_at']
						snake_case        =     job['completed_at']

						snake_case        =     date_parser.parse(_UpperCamelCase   )
						snake_case        =     date_parser.parse(_UpperCamelCase   )

						snake_case        =     round((end_datetime - start_datetime).total_seconds() / 60.0   )

						snake_case        =     start
						snake_case        =     end
						snake_case        =     duration_in_min

						return job_info





def 				lowerCAmelCase__      (     _UpperCamelCase    :			Dict	,     _UpperCamelCase    :			Any=None   )   ->			Union[str, Any]:





						"""simple docstring"""






						snake_case        =     None
						if token is not None:
												snake_case        =     {'Accept': 'application/vnd.github+json', 'Authorization': f"""Bearer {token}"""}

						snake_case        =     f"""https://api.github.com/repos/huggingface/transformers/actions/runs/{workflow_run_id}/jobs?per_page=100"""
						snake_case        =     requests.get(_UpperCamelCase	,     headers=_UpperCamelCase   ).json()
						snake_case        =     {}

						try:
												job_time.update({job['name']: extract_time_from_single_job(_UpperCamelCase   ) for job in result['jobs']}   )
												snake_case        =     math.ceil((result['total_count'] - 1_0_0) / 1_0_0   )

												for i in range(_UpperCamelCase   ):
																		snake_case        =     requests.get(url + f"""&page={i + 2}"""	,     headers=_UpperCamelCase   ).json()
																		job_time.update({job['name']: extract_time_from_single_job(_UpperCamelCase   ) for job in result['jobs']}   )

												return job_time
						except Exception:
												print(f"""Unknown error, could not fetch links:\n{traceback.format_exc()}"""   )

						return {}


if __name__ == "__main__":
					SCREAMING_SNAKE_CASE__   =					argparse.ArgumentParser()
					# Required parameters
					parser.add_argument("--workflow_run_id", type=str, required=True, help="A GitHub Actions workflow run id.")
					SCREAMING_SNAKE_CASE__   =					parser.parse_args()

					SCREAMING_SNAKE_CASE__   =					get_job_time(args.workflow_run_id)
					SCREAMING_SNAKE_CASE__   =					dict(sorted(job_time.items(), key=lambda item: item[1]["duration"], reverse=True))

					for k, v in job_time.items():
										print(f"""{k}: {v['duration']}""")


