


def 			_a (      SCREAMING_SNAKE_CASE = 1_00_00_00     ):


		"""simple docstring"""




		lowercase__            =      limit + 1
		lowercase__            =      [0] * limit
		for first_term in range(1						,				SCREAMING_SNAKE_CASE     ):
				for n in range(SCREAMING_SNAKE_CASE						,				SCREAMING_SNAKE_CASE						,				SCREAMING_SNAKE_CASE     ):
						lowercase__            =      first_term + n / first_term
						if common_difference % 4:  # d must be divisble by 4
								continue
						else:
								common_difference /= 4
								if (
								    first_term > common_difference
								    and first_term < 4 * common_difference
								):  # since x,y,z are positive integers
										frequency[n] += 1  # so z>0 and a>d ,also 4d<a

		lowercase__            =      sum(1 for x in frequency[1:limit] if x == 10     )

		return count


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






import inspect
import re

from transformers.utils import direct_transformers_import


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_config_docstrings.py
lowerCAmelCase       =							'src/transformers'


# This is to make sure the transformers module imported is the one in the repo.
lowerCAmelCase       =							direct_transformers_import(PATH_TO_TRANSFORMERS)

lowerCAmelCase       =							transformers.models.auto.configuration_auto.CONFIG_MAPPING

# Regex pattern used to find the checkpoint mentioned in the docstring of `config_class`.
# For example, `[bert-base-uncased](https://huggingface.co/bert-base-uncased)`
lowerCAmelCase       =							re.compile(R'\[(.+?)\]\((https://huggingface\.co/.+?)\)')


lowerCAmelCase       =							{
    'DecisionTransformerConfig',
    'EncoderDecoderConfig',
    'MusicgenConfig',
    'RagConfig',
    'SpeechEncoderDecoderConfig',
    'TimmBackboneConfig',
    'VisionEncoderDecoderConfig',
    'VisionTextDualEncoderConfig',
    'LlamaConfig',
}
def 			_a (      SCREAMING_SNAKE_CASE     ):


		"""simple docstring"""




		lowercase__            =      None

		# source code of `config_class`
		lowercase__            =      inspect.getsource(SCREAMING_SNAKE_CASE     )
		lowercase__            =      _re_checkpoint.findall(SCREAMING_SNAKE_CASE     )

		# Each `checkpoint` is a tuple of a checkpoint name and a checkpoint link.
		# For example, `('bert-base-uncased', 'https://huggingface.co/bert-base-uncased')`
		for ckpt_name, ckpt_link in checkpoints:
				# allow the link to end with `/`
				if ckpt_link.endswith('''/'''     ):
						lowercase__            =      ckpt_link[:-1]

				# verify the checkpoint name corresponds to the checkpoint link
				lowercase__            =      f'https://huggingface.co/{ckpt_name}'
				if ckpt_link == ckpt_link_from_name:
						lowercase__            =      ckpt_name
						break

		return checkpoint
def 			_a (      ):


		"""simple docstring"""




		lowercase__            =      []

		for config_class in list(CONFIG_MAPPING.values()     ):
				# Skip deprecated models
				if "models.deprecated" in config_class.__module__:
						continue
				lowercase__            =      get_checkpoint_from_config_class(SCREAMING_SNAKE_CASE     )

				lowercase__            =      config_class.__name__
				if checkpoint is None and name not in CONFIG_CLASSES_TO_IGNORE_FOR_DOCSTRING_CHECKPOINT_CHECK:
						configs_without_checkpoint.append(SCREAMING_SNAKE_CASE     )

		if len(SCREAMING_SNAKE_CASE     ) > 0:
				lowercase__            =      '''\n'''.join(sorted(SCREAMING_SNAKE_CASE     )     )
				raise ValueError(f'The following configurations don\'t contain any valid checkpoint:\n{message}'     )


if __name__ == "__main__":
			check_config_docstrings_have_checkpoints()


