



"""simple docstring"""
def        A_  (      _lowercase, _lowercase     ):







						'''simple docstring'''


						snake_case_			:Any						=      sorted(_lowercase, key=lambda _lowercase     : value[2], reverse=_lowercase     )

						# Create a list of size equal to the maximum deadline
						# and initialize it with -1
						snake_case_			:List[str]						=      max(_lowercase, key=lambda _lowercase     : value[1]     )[1]
						snake_case_			:Optional[Any]						=      [-1] * max_deadline

						# Finding the maximum profit and the count of jobs
						snake_case_			:List[str]						=      0
						snake_case_			:Optional[Any]						=      0
						for job in jobs:
												# Find a free time slot for this job
												# (Note that we start from the last possible slot)
												for i in range(job[1] - 1, -1, -1     ):
																		if time_slots[i] == -1:
																								snake_case_			:Optional[Any]						=      job[0]
																								count += 1
																								max_profit += job[2]
																								break
						return [count, max_profit]


if __name__ == "__main__":
						import doctest

						doctest.testmod()





"""simple docstring"""
import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import Mock, patch

import diffusers.utils.hub_utils
class     lowerCamelCase  (      unittest.TestCase    ):






					'''simple docstring'''





					@patch("""diffusers.utils.hub_utils.get_full_repo_name"""						)
					def        lowerCAmelCase_    (	self:							int						,					snake_case:							Mock						)       ->     None:
											snake_case_			:str						=      """full_repo_name"""
											with TemporaryDirectory() as tmpdir:
																	# Dummy args values
																	snake_case_			:int						=      Mock()
																	snake_case_			:Any						=      tmpdir
																	snake_case_			:int						=      0
																	snake_case_			:Optional[int]						=      """hub_token"""
																	snake_case_			:str						=      """dataset_name"""
																	snake_case_			:List[str]						=      0.0_1
																	snake_case_			:Dict						=      100_000
																	snake_case_			:Optional[Any]						=      10_000
																	snake_case_			:Optional[Any]						=      0.0_1
																	snake_case_			:Dict						=      0.0_2
																	snake_case_			:Dict						=      0.0_3
																	snake_case_			:Union[str, Any]						=      0.0_0_0_5
																	snake_case_			:Optional[Any]						=      0.0_0_0_0_0_1
																	snake_case_			:List[Any]						=      1
																	snake_case_			:Optional[Any]						=      10
																	snake_case_			:Dict						=      0.0_0_1
																	snake_case_			:Any						=      0.1
																	snake_case_			:List[Any]						=      0.2
																	snake_case_			:Any						=      True

																	# Model card mush be rendered and saved
																	diffusers.utils.hub_utils.create_model_card(snake_case						,					model_name="""model_name"""						)
																	self.assertTrue((Path(snake_case						) / """README.md""").is_file()						)
