





"""simple docstring"""





def 			UpperCAmelCase__							(  SCREAMING_SNAKE_CASE     :						str							,						SCREAMING_SNAKE_CASE     :						List[Any]							,						SCREAMING_SNAKE_CASE     :						List[Any]							,						SCREAMING_SNAKE_CASE     :						Any							,						SCREAMING_SNAKE_CASE     :						Any							,						SCREAMING_SNAKE_CASE     :						int			):







      '''simple docstring'''




      if index == r:
            for j in range(SCREAMING_SNAKE_CASE			):
                  print(data[j]							,						end=""" """			)
            print(""" """			)
            return
      #  When no more elements are there to put in data[]
      if i >= n:
            return
      # current is included, put next at next location
      lowerCAmelCase  						=       arr[i]
      combination_util(SCREAMING_SNAKE_CASE							,						SCREAMING_SNAKE_CASE							,						SCREAMING_SNAKE_CASE							,						index + 1							,						SCREAMING_SNAKE_CASE							,						i + 1			)
      # current is excluded, replace it with
      # next (Note that i+1 is passed, but
      # index is not changed)
      combination_util(SCREAMING_SNAKE_CASE							,						SCREAMING_SNAKE_CASE							,						SCREAMING_SNAKE_CASE							,						SCREAMING_SNAKE_CASE							,						SCREAMING_SNAKE_CASE							,						i + 1			)
      # The main function that prints all combinations
      # of size r in arr[] of size n. This function
      # mainly uses combinationUtil()


def 			UpperCAmelCase__							(  SCREAMING_SNAKE_CASE     :						Tuple							,						SCREAMING_SNAKE_CASE     :						List[str]							,						SCREAMING_SNAKE_CASE     :						List[Any]			):







      '''simple docstring'''




      lowerCAmelCase  						=       [0] * r
      # Print all combination using temporary array 'data[]'
      combination_util(SCREAMING_SNAKE_CASE							,						SCREAMING_SNAKE_CASE							,						SCREAMING_SNAKE_CASE							,						0							,						SCREAMING_SNAKE_CASE							,						0			)


if __name__ == "__main__":
       # Driver code to check the function above
       SCREAMING_SNAKE_CASE__					=   [10, 20, 30, 40, 50]
       print_combination(arr, len(arr), 3)
       # This code is contributed by Ambuj sahu







# Copyright 2022 The HuggingFace Team and The OpenBMB Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import TYPE_CHECKING

# rely on isort to merge the imports
from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


__a  :     Any       =  {
    """configuration_cpmant""": ["""CPMANT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """CpmAntConfig"""],
    """tokenization_cpmant""": ["""CpmAntTokenizer"""],
}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__a  :     List[Any]       =  [
		    """CPMANT_PRETRAINED_MODEL_ARCHIVE_LIST""",
		    """CpmAntForCausalLM""",
		    """CpmAntModel""",
		    """CpmAntPreTrainedModel""",
		]


if TYPE_CHECKING:
		from .configuration_cpmant import CPMANT_PRETRAINED_CONFIG_ARCHIVE_MAP, CpmAntConfig
		from .tokenization_cpmant import CpmAntTokenizer

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_cpmant import (
				    CPMANT_PRETRAINED_MODEL_ARCHIVE_LIST,
				    CpmAntForCausalLM,
				    CpmAntModel,
				    CpmAntPreTrainedModel,
				)


else:
		import sys

		__a  :     Any       =  _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)