




from unittest.mock import patch

import datasets
from datasets import Dataset



def 							_A   (						):
     """simple docstring"""

     lowerCAmelCase__		= Dataset.from_dict({"col_1": [3, 2, 0, 1]}			)

     with patch("tqdm.auto.tqdm"			) as mock_tqdm:
          datasets.disable_progress_bar()
          dset.map(lambda lowerCAmelCase_			: {"col_2": x["col_1"] + 1}			)
          mock_tqdm.assert_not_called()

          mock_tqdm.reset_mock()

          datasets.enable_progress_bar()
          dset.map(lambda lowerCAmelCase_			: {"col_2": x["col_1"] + 1}			)
          mock_tqdm.assert_called()






def 					SCREAMING_SNAKE_CASE	(       __UpperCamelCase			:						str      )  ->							int:
    UpperCAmelCase_							 =     5381
    for x in s:
        UpperCAmelCase_							 =     ((hash_value << 5) + hash_value) + ord(__UpperCamelCase      )
    return hash_value & 0xffff_ffff





