




from ...configuration_utils import PretrainedConfig


UpperCAmelCase_									=	{
    'google/tapas-base-finetuned-sqa': (
        'https://huggingface.co/google/tapas-base-finetuned-sqa/resolve/main/config.json'
    ),
    'google/tapas-base-finetuned-wtq': (
        'https://huggingface.co/google/tapas-base-finetuned-wtq/resolve/main/config.json'
    ),
    'google/tapas-base-finetuned-wikisql-supervised': (
        'https://huggingface.co/google/tapas-base-finetuned-wikisql-supervised/resolve/main/config.json'
    ),
    'google/tapas-base-finetuned-tabfact': (
        'https://huggingface.co/google/tapas-base-finetuned-tabfact/resolve/main/config.json'
    ),
}





class     lowerCamelCase__(					__lowerCamelCase):
      UpperCAmelCase__      :	str    		=   'tapas'
      def __init__(				self: Tuple    ,       UpperCamelCase_: List[Any]=3_05_22    ,       UpperCamelCase_: Tuple=7_68    ,       UpperCamelCase_: Union[str, Any]=12    ,       UpperCamelCase_: str=12    ,       UpperCamelCase_: List[Any]=30_72    ,       UpperCamelCase_: Union[str, Any]="gelu"    ,       UpperCamelCase_: Union[str, Any]=0.1    ,       UpperCamelCase_: List[str]=0.1    ,       UpperCamelCase_: Dict=10_24    ,       UpperCamelCase_: int=[3, 2_56, 2_56, 2, 2_56, 2_56, 10]    ,       UpperCamelCase_: Optional[int]=0.02    ,       UpperCamelCase_: Optional[Any]=1E-12    ,       UpperCamelCase_: int=0    ,       UpperCamelCase_: Optional[Any]=10.0    ,       UpperCamelCase_: int=0    ,       UpperCamelCase_: Any=1.0    ,       UpperCamelCase_: Tuple=None    ,       UpperCamelCase_: Dict=1.0    ,       UpperCamelCase_: Optional[Any]=False    ,       UpperCamelCase_: Optional[Any]=None    ,       UpperCamelCase_: Dict=1.0    ,       UpperCamelCase_: Optional[int]=1.0    ,       UpperCamelCase_: List[Any]=False    ,       UpperCamelCase_: List[Any]=False    ,       UpperCamelCase_: Any="ratio"    ,       UpperCamelCase_: List[Any]=None    ,       UpperCamelCase_: Optional[Any]=None    ,       UpperCamelCase_: Optional[int]=64    ,       UpperCamelCase_: Optional[Any]=32    ,       UpperCamelCase_: List[str]=False    ,       UpperCamelCase_: str=True    ,       UpperCamelCase_: Optional[Any]=False    ,       UpperCamelCase_: Optional[int]=False    ,       UpperCamelCase_: Optional[Any]=True    ,       UpperCamelCase_: Optional[int]=False    ,       UpperCamelCase_: Dict=None    ,       UpperCamelCase_: Tuple=None    ,       **UpperCamelCase_: Union[str, Any]    ,       ):
             super().__init__(pad_token_id=UpperCamelCase_    ,       **UpperCamelCase_   )

             # BERT hyperparameters (with updated max_position_embeddings and type_vocab_sizes)
             __lowerCamelCase   =						vocab_size
             __lowerCamelCase   =						hidden_size
             __lowerCamelCase   =						num_hidden_layers
             __lowerCamelCase   =						num_attention_heads
             __lowerCamelCase   =						hidden_act
             __lowerCamelCase   =						intermediate_size
             __lowerCamelCase   =						hidden_dropout_prob
             __lowerCamelCase   =						attention_probs_dropout_prob
             __lowerCamelCase   =						max_position_embeddings
             __lowerCamelCase   =						type_vocab_sizes
             __lowerCamelCase   =						initializer_range
             __lowerCamelCase   =						layer_norm_eps

             # Fine-tuning task hyperparameters
             __lowerCamelCase   =						positive_label_weight
             __lowerCamelCase   =						num_aggregation_labels
             __lowerCamelCase   =						aggregation_loss_weight
             __lowerCamelCase   =						use_answer_as_supervision
             __lowerCamelCase   =						answer_loss_importance
             __lowerCamelCase   =						use_normalized_answer_loss
             __lowerCamelCase   =						huber_loss_delta
             __lowerCamelCase   =						temperature
             __lowerCamelCase   =						aggregation_temperature
             __lowerCamelCase   =						use_gumbel_for_cells
             __lowerCamelCase   =						use_gumbel_for_aggregation
             __lowerCamelCase   =						average_approximation_function
             __lowerCamelCase   =						cell_selection_preference
             __lowerCamelCase   =						answer_loss_cutoff
             __lowerCamelCase   =						max_num_rows
             __lowerCamelCase   =						max_num_columns
             __lowerCamelCase   =						average_logits_per_cell
             __lowerCamelCase   =						select_one_column
             __lowerCamelCase   =						allow_empty_column_selection
             __lowerCamelCase   =						init_cell_selection_weights_to_zero
             __lowerCamelCase   =						reset_position_index_per_cell
             __lowerCamelCase   =						disable_per_token_loss

             # Aggregation hyperparameters
             __lowerCamelCase   =						aggregation_labels
             __lowerCamelCase   =						no_aggregation_label_index

             if isinstance(self.aggregation_labels    ,       UpperCamelCase_   ):
                    __lowerCamelCase   =						{int(UpperCamelCase_   ): v for k, v in aggregation_labels.items()}







def 					lowerCamelCase__       (						A__       :					list	):





       '''simple docstring'''



       __lowerCamelCase   =						len(A__	)
       for _ in range(A__	):
              for i in range(_ % 2  ,			arr_size - 1  ,			2	):
                     if arr[i + 1] < arr[i]:
                            __lowerCamelCase,   __lowerCamelCase   =						arr[i + 1], arr[i]

       return arr


if __name__ == "__main__":
       UpperCAmelCase_									=	list(range(10, 0, -1))
       print(f"""Original: {arr}. Sorted: {odd_even_transposition(arr)}""")

