

'''simple docstring'''

from transformers.models.cpm.tokenization_cpm import CpmTokenizer
from transformers.testing_utils import custom_tokenizers

from ..xlnet.test_modeling_xlnet import XLNetModelTest





@custom_tokenizers
class 							_snake_case	(    _a  ):
   def       __UpperCamelCase  (	self     : Tuple       ,SCREAMING_SNAKE_CASE__     : Any       ,SCREAMING_SNAKE_CASE__     : List[str]       ,SCREAMING_SNAKE_CASE__     : List[str]       ,SCREAMING_SNAKE_CASE__     : List[str]       ,SCREAMING_SNAKE_CASE__     : int							):
     return True







   def       __UpperCamelCase  (	self     : List[Any]							):
     SCREAMING_SNAKE_CASE:Optional[int]   =   CpmTokenizer.from_pretrained("TsinghuaAI/CPM-Generate"							)
     SCREAMING_SNAKE_CASE:str   =   "Hugging Face大法好，谁用谁知道。"
     SCREAMING_SNAKE_CASE:Any   =   "Hugging Face大法好,谁用谁知道。<unk>"
     SCREAMING_SNAKE_CASE:Tuple   =   "▁Hu gg ing ▁ ▂ ▁F ace ▁大法 ▁好 ▁ , ▁谁 ▁用 ▁谁 ▁知 道 ▁ 。".split()

     SCREAMING_SNAKE_CASE:Tuple   =   tokenizer.tokenize(lowercase__							)
     self.assertListEqual(lowercase__       ,lowercase__							)

     SCREAMING_SNAKE_CASE:Optional[int]   =   tokens + [tokenizer.unk_token]

     SCREAMING_SNAKE_CASE:Union[str, Any]   =   [13_789, 13_283, 1_421, 8, 10, 1_164, 13_608, 16_528, 63, 8, 9, 440, 108, 440, 121, 90, 8, 12, 0]
     self.assertListEqual(tokenizer.convert_tokens_to_ids(lowercase__							)       ,lowercase__							)

     SCREAMING_SNAKE_CASE:List[str]   =   tokenizer.decode(lowercase__							)
     self.assertEqual(lowercase__       ,lowercase__							)









'''simple docstring'''

from collections import Counter





def 				A_					(	snake_case	):
  return sum(socks_by_color // 2 for socks_by_color in Counter(snake_case	).values()	)


if __name__ == "__main__":
    import doctest

    doctest.testmod()

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






