1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3# Copyright (c) 2024 Huawei Device Co., Ltd.
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
17mutex_label_dist = {
18    'isAtomicService': ['deprecatedVersion', 'isSystemApi']
19}
20
21
22one_to_many_function = ['off', 'on', 'emit', 'once']
23
24
25label_name_dist = {
26    'isAtomicService': '@atomicservice',
27    'deprecatedVersion': '@deprecated',
28    'isSystemApi': '@systemapi',
29    'isForm': '@form',
30    'isCrossPlatForm': '@crossplatform'
31}
32
33
34label_comparison_dist = {
35    'atomicservice': 'isAtomicService',
36    'form': 'isForm',
37    'crossplatform': 'isCrossPlatForm'
38}
39
40
41contrast_function = {
42    'add': 'remove',
43    'increase': 'decrease',
44    'open': 'close',
45    'begin': 'end',
46    'insert': 'delete',
47    'show': 'hide',
48    'create': 'destroy',
49    'lock': 'unlock',
50    'source': 'target',
51    'first': 'last',
52    'min': 'max',
53    'start': 'stop',
54    'get': 'set',
55    'next': 'previous',
56    'up': 'down',
57    'new': 'old',
58    'on': 'off',
59    'once': 'emit',
60
61    "remove": "add",
62    "decrease": "increase",
63    "close": "open",
64    "end": "begin",
65    "delete": "insert",
66    "hide": "show",
67    "destroy": "create",
68    "unlock": "lock",
69    "target": "source",
70    "last": "first",
71    "max": "min",
72    "stop": "start",
73    "set": "get",
74    "previous": "next",
75    "down": "up",
76    "old": "new",
77    "off": "on",
78    "emit": "once"
79}
80