




'''simple docstring'''







def 						snake_case_							(_a     :							list[int]					):

    # validate:
    if not isinstance(_a   ,       _a					) or not all(
        isinstance(_a   ,       _a					) and item >= 0 for item in citations					):
        raise ValueError('''The citations should be a list of non negative integers.'''					)

    citations.sort()
    UpperCAmelCase      	=		len(_a					)

    for i in range(_a					):
        if citations[len_citations - 1 - i] <= i:
            return i

    return len_citations


if __name__ == "__main__":
   import doctest

   doctest.testmod()










'''simple docstring'''







import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
   import torch


class       _a  (     unittest.TestCase							,							__a			):
       def    A				(     self						:     str    ):



           '''simple docstring'''

           UpperCAmelCase      	=		load_tool('''speech-to-text'''    )
           self.tool.setup()
       def    A				(     self						:     Dict    ):



           '''simple docstring'''

           UpperCAmelCase      	=		self.tool(torch.ones(3_000    )    )
           self.assertEqual(lowercase       ,    ''' you'''    )







       def    A				(     self						:     Dict    ):



           '''simple docstring'''

           UpperCAmelCase      	=		self.tool(audio=torch.ones(3_000    )    )
           self.assertEqual(lowercase       ,    ''' you'''    )




