"""simple docstring"""




import requests





def 							SCREAMING_SNAKE_CASE     (			_lowerCamelCase						:       Optional[int]			,_lowerCamelCase						:       Any	)       ->      Union[str, Any]:
  _lowerCAmelCase						:       int  			=     {'''Content-Type''': '''application/json'''}
  _lowerCAmelCase						:       List[str]  			=     requests.post(snake_case__			,json={"""text""": message_body}			,headers=snake_case__	)
  if response.status_code != 200:
    _lowerCAmelCase						:       Optional[Any]  			=     (
        '''Request to slack returned an error '''
        f"{response.status_code}, the response is:\n{response.text}"
    )
    raise ValueError(snake_case__	)


if __name__ == "__main__":
     # Set the slack url to the one provided by Slack when you create the webhook at
     # https://my.slack.com/services/new/incoming-webhook/
     send_slack_message('<YOUR MESSAGE BODY>', '<SLACK CHANNEL URL>')






'''simple docstring'''




from transformers import DistilBertTokenizer, DistilBertTokenizerFast
from transformers.testing_utils import require_tokenizers, slow

from ..bert.test_tokenization_bert import BertTokenizationTest





@require_tokenizers
class  A				(							__snake_case						):
     __magic_name__						=		DistilBertTokenizer
     __magic_name__						=		DistilBertTokenizerFast
     __magic_name__						=		True





     @slow
     def 				__lowerCAmelCase							(							self	) ->				Any:






         """simple docstring"""






         A       :   List[Any]					=						DistilBertTokenizer.from_pretrained('''distilbert-base-uncased'''	)

         A       :   Dict					=						tokenizer.encode('''sequence builders'''						,			add_special_tokens=SCREAMING_SNAKE_CASE	)
         A       :   List[str]					=						tokenizer.encode('''multi-sequence build'''						,			add_special_tokens=SCREAMING_SNAKE_CASE	)

         A       :   Optional[Any]					=						tokenizer.build_inputs_with_special_tokens(SCREAMING_SNAKE_CASE	)
         A       :   Tuple					=						tokenizer.build_inputs_with_special_tokens(SCREAMING_SNAKE_CASE						,			SCREAMING_SNAKE_CASE	)

         assert encoded_sentence == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]
         assert encoded_pair == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + text_a + [
             tokenizer.sep_token_id
         ]




