



"""simple docstring"""


import unittest
import warnings
from dataclasses import dataclass

from transformers.convert_slow_tokenizer import SpmConverter
from transformers.testing_utils import get_tests_dir







@dataclass
class    A_    :



						"""simple docstring"""
						__UpperCamelCase	       =							42







class    A_    (  unittest.TestCase       ):



						"""simple docstring"""






						def 			UpperCAmelCase__  (      self				:Tuple      )       ->    Optional[Any]:
												UpperCAmelCase    =				get_tests_dir('fixtures/test_sentencepiece.model'      )
												UpperCAmelCase    =				get_tests_dir('fixtures/test_sentencepiece_with_bytefallback.model'      )

												UpperCAmelCase    =				FakeOriginalTokenizer(vocab_file=__UpperCamelCase      )

												with warnings.catch_warnings(record=__UpperCamelCase      ) as w:
																		UpperCAmelCase    =				SpmConverter(__UpperCamelCase      )
												self.assertEqual(len(__UpperCamelCase      )     ,						0      )

												UpperCAmelCase    =				FakeOriginalTokenizer(vocab_file=__UpperCamelCase      )

												with warnings.catch_warnings(record=__UpperCamelCase      ) as w:
																		UpperCAmelCase    =				SpmConverter(__UpperCamelCase      )
												self.assertEqual(len(__UpperCamelCase      )     ,						1      )

												self.assertIn(
												    'The sentencepiece tokenizer that you are converting to a fast tokenizer uses the byte fallback option'
												    ' which is not implemented in the fast tokenizers.'     ,						str(w[0].message      )     ,						)










"""simple docstring"""


from collections import Counter

def 				_lowerCAmelCase   (     lowercase_		):
						return sum(socks_by_color // 2 for socks_by_color in Counter(lowercase_		).values()		)


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				snake_case_         = [int(x) for x in input("""Enter socks by color :""").rstrip().split()]
				print(f'''sock_merchant({colors}) = {sock_merchant(colors)}''')





