





'''simple docstring'''






from ...configuration_utils import PretrainedConfig
from ...utils import logging


A__							:  List[Any]    =logging.get_logger(__name__)

A__							:  int    ={
    '''google/vivit-b-16x2-kinetics400''': (
        '''https://huggingface.co/google/vivit-b-16x2-kinetics400/resolve/main/config.json'''
    ),
    # See all Vivit models at https://huggingface.co/models?filter=vivit
}




class 					UpperCAmelCase	(     snake_case_  ):
      _lowercase:     Tuple			=  '''vivit'''




      def __init__(     self     :					Any     ,     __snake_case     :					Optional[int]=2_24     ,     __snake_case     :					Any=32     ,     __snake_case     :					List[str]=[2, 16, 16]     ,     __snake_case     :					Optional[Any]=3     ,     __snake_case     :					Dict=7_68     ,     __snake_case     :					Tuple=12     ,     __snake_case     :					Optional[int]=12     ,     __snake_case     :					List[str]=30_72     ,     __snake_case     :					Tuple="gelu_fast"     ,     __snake_case     :					Union[str, Any]=0.0     ,     __snake_case     :					str=0.0     ,     __snake_case     :					Any=0.02     ,     __snake_case     :					str=1E-0_6     ,     __snake_case     :					str=True     ,     **__snake_case     :					int     ,     )							-> str:
            _lowerCAmelCase					=				hidden_size
            _lowerCAmelCase					=				num_hidden_layers
            _lowerCAmelCase					=				num_attention_heads
            _lowerCAmelCase					=				intermediate_size
            _lowerCAmelCase					=				hidden_act
            _lowerCAmelCase					=				hidden_dropout_prob
            _lowerCAmelCase					=				attention_probs_dropout_prob
            _lowerCAmelCase					=				initializer_range
            _lowerCAmelCase					=				layer_norm_eps

            _lowerCAmelCase					=				image_size
            _lowerCAmelCase					=				num_frames
            _lowerCAmelCase					=				tubelet_size
            _lowerCAmelCase					=				num_channels
            _lowerCAmelCase					=				qkv_bias

            super().__init__(**__snake_case    )













'''simple docstring'''






from datetime import datetime as dt
import os

from github import Github


A__							:  str    =[
    '''good first issue''',
    '''good second issue''',
    '''good difficult issue''',
    '''feature request''',
    '''new model''',
    '''wip''',
]
def   UpperCamelCase__ (						):





      """simple docstring"""


      _lowerCAmelCase					=				Github(os.environ["""GITHUB_TOKEN"""]    )
      _lowerCAmelCase					=				g.get_repo("""huggingface/transformers"""    )
      _lowerCAmelCase					=				repo.get_issues(state="""open"""    )

      for issue in open_issues:
            _lowerCAmelCase					=				sorted([comment for comment in issue.get_comments()]				,      key=lambda lowerCAmelCase    : i.created_at				,      reverse=lowerCAmelCase    )
            _lowerCAmelCase					=				comments[0] if len(lowerCAmelCase    ) > 0 else None
            if (
                last_comment is not None
                and last_comment.user.login == "github-actions[bot]"
                and (dt.utcnow() - issue.updated_at).days > 7
                and (dt.utcnow() - issue.created_at).days >= 30
                and not any(label.name.lower() in LABELS_TO_EXEMPT for label in issue.get_labels()    )
            ):
                  # print(f"Would close issue {issue.number} since it has been 7 days of inactivity since bot mention.")
                  issue.edit(state="""closed"""    )
            elif (
                (dt.utcnow() - issue.updated_at).days > 23
                and (dt.utcnow() - issue.created_at).days >= 30
                and not any(label.name.lower() in LABELS_TO_EXEMPT for label in issue.get_labels()    )
            ):
                  # print(f"Would add stale comment to {issue.number}")
                  issue.create_comment(
                      """This issue has been automatically marked as stale because it has not had """
                      """recent activity. If you think this still needs to be addressed """
                      """please comment on this thread.\n\nPlease note that issues that do not follow the """
                      """[contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) """
                      """are likely to be ignored."""    )


if __name__ == "__main__":
      main()






