Unverified Commit 6e9ce183 authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

Add copyright pre-commit-hook (#1742)

* first commit

* Add copyright pre-commit-hook
parent 0a8e67f7
# Copyright (c) OpenMMLab. All rights reserved.
item1 = [1, 2] item1 = [1, 2]
item2 = {'a': 0} item2 = {'a': 0}
item3 = True item3 = True
......
# Copyright (c) OpenMMLab. All rights reserved.
_base_ = './i_base.py' _base_ = './i_base.py'
item_cfg = {'b': 2} item_cfg = {'b': 2}
item6 = {'cfg': item_cfg} item6 = {'cfg': item_cfg}
# Copyright (c) OpenMMLab. All rights reserved.
_base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py'] _base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py']
item3 = False item3 = False
item4 = 'test' item4 = 'test'
# Copyright (c) OpenMMLab. All rights reserved.
item1 = [1, 2] item1 = [1, 2]
# Copyright (c) OpenMMLab. All rights reserved.
item5 = dict(a=0, b=1) item5 = dict(a=0, b=1)
item6 = [dict(a=0), dict(b=1)] item6 = [dict(a=0), dict(b=1)]
item7 = dict(a=[0, 1, 2], b=dict(c=[3.1, 4.2, 5.3])) item7 = dict(a=[0, 1, 2], b=dict(c=[3.1, 4.2, 5.3]))
# Copyright (c) OpenMMLab. All rights reserved.
_base_ = ['./l1.py', './l2.yaml', './l3.json', 'a.py'] _base_ = ['./l1.py', './l2.yaml', './l3.json', 'a.py']
item3 = False item3 = False
item4 = 'test' item4 = 'test'
# Copyright (c) OpenMMLab. All rights reserved.
test_item1 = [1, 2] test_item1 = [1, 2]
bool_item2 = True bool_item2 = True
str_item3 = 'test' str_item3 = 'test'
......
# Copyright (c) OpenMMLab. All rights reserved.
custom_imports = dict(imports=['r'], allow_failed_imports=False) custom_imports = dict(imports=['r'], allow_failed_imports=False)
# Copyright (c) OpenMMLab. All rights reserved.
import os import os
os.environ["TEST_VALUE"] = 'test' os.environ["TEST_VALUE"] = 'test'
# Copyright (c) OpenMMLab. All rights reserved.
item = [{'a': 0}, {'b': 0, 'c': 0}] item = [{'a': 0}, {'b': 0, 'c': 0}]
# Copyright (c) OpenMMLab. All rights reserved.
_base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py'] _base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py']
item3 = False item3 = False
item4 = 'test' item4 = 'test'
......
# Copyright (c) OpenMMLab. All rights reserved.
_base_ = ['./t.py'] _base_ = ['./t.py']
base = '_base_.item8' base = '_base_.item8'
item11 = {{ _base_.item8 }} item11 = {{ _base_.item8 }}
......
# Copyright (c) OpenMMLab. All rights reserved.
_base_ = ['./u.py'] _base_ = ['./u.py']
item21 = {{ _base_.item11 }} item21 = {{ _base_.item11 }}
item22 = item21 item22 = item21
......
# Copyright (c) OpenMMLab. All rights reserved.
#!/usr/bin/env python #!/usr/bin/env python
import argparse import argparse
......
# Copyright (c) OpenMMLab. All rights reserved.
import numpy as np import numpy as np
import pytest import pytest
import torch import torch
......
# Copyright (c) OpenMMLab. All rights reserved.
import pytest import pytest
import torch import torch
......
# Copyright (c) OpenMMLab. All rights reserved.
import torch import torch
from mmcv.cnn.bricks import Conv2dAdaptivePadding from mmcv.cnn.bricks import Conv2dAdaptivePadding
......
# Copyright (c) OpenMMLab. All rights reserved.
import warnings import warnings
from unittest.mock import patch from unittest.mock import patch
......
# Copyright (c) OpenMMLab. All rights reserved.
import pytest import pytest
import torch import torch
import torch.nn as nn import torch.nn as nn
......
# Copyright (c) OpenMMLab. All rights reserved.
import pytest import pytest
import torch import torch
import torch.nn as nn import torch.nn as nn
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment