function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def __init__(self): r""" :param TaskId: 返回重新检测任务的ID。 :type TaskId: int :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.TaskId = None self.RequestId = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param CustomerPolicyItemIdSet: 要重新扫描的客户检测项的列表。 :type CustomerPolicyItemIdSet: list of int non-negative """ self.CustomerPolicyItemIdSet = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param TaskId: 返回重新检测任务的ID。 :type TaskId: int :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.TaskId = None self.RequestId = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param CustomerAssetIdSet: 要重新扫描的客户资产项ID的列表。 :type CustomerAssetIdSet: list of int non-negative """ self.CustomerAssetIdSet = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param TaskId: 返回重新检测任务的ID。 :type TaskId: int :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.TaskId = None self.RequestId = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param EventSet: 趋势列表 :type EventSet: list of RunTimeTendencyInfo :param EventType: 事件类型:
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def _deserialize(self, params): if params.get("EventSet") is not None: self.EventSet = [] for item in params.get("EventSet"): obj = RunTimeTendencyInfo() obj._deserialize(item) self.EventSet.append(obj) self.EventType = params.get("...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param ServiceID: 服务id :type ServiceID: str :param HostID: 主机id :type HostID: str :param HostIP: 主机ip :type HostIP: str :param ContainerName: 容器名 :type ContainerName: str :param Type: 服务名 例如nginx/redis :type...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param ClusterIds: 要设置的集群ID列表 :type ClusterIds: list of str :param ClusterCheckMode: 集群检查模式(正常模式"Cluster_Normal"、主动模式"Cluster_Actived"、不设置"Cluster_Unset") :type ClusterCheckMode: str :param ClusterAutoCheck: 0不设置 1打开 2关闭 :type ClusterAutoC...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param SetCheckResult: "Succ"表示设置成功,"Failed"表示设置失败 :type SetCheckResult: str :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.SetCheckResult = None self.RequestId = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param PayTime: 扣费时间 :type PayTime: str :param CoresCnt: 计费核数 :type CoresCnt: int """ self.PayTime = None self.CoresCnt = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param TaskId: 任务ID :type TaskId: str :param ContainerIds: 需要停止的容器id 为空默认停止整个任务 :type ContainerIds: list of str """ self.TaskId = None self.ContainerIds = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.RequestId = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.RequestId = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param Name: 仓库名 :type Name: str :param Username: 用户名 :type Username: str :param Password: 密码 :type Password: str :param Url: 仓库url :type Url: str :param RegistryType: 仓库类型,列表:harbor :type RegistryType: str ...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param HealthCheckErr: 连接错误信息
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def _deserialize(self, params): self.HealthCheckErr = params.get("HealthCheckErr") self.NameRepeatErr = params.get("NameRepeatErr") self.RegistryId = params.get("RegistryId") self.RequestId = params.get("RequestId")
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param ScanPeriod: 定时扫描周期 :type ScanPeriod: int :param Enable: 定时扫描开关 :type Enable: bool :param ScanTime: 定时扫描的时间 :type ScanTime: str :param ScanType: 扫描木马类型数组 :type ScanType: list of str :param Images: 扫描镜像 ...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.RequestId = None
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param FileName: 文件名称 :type FileName: str :param FilePath: 文件路径 :type FilePath: str :param VirusName: 病毒名称 :type VirusName: str :param CreateTime: 创建时间 :type CreateTime: str :param ModifyTime: 更新时间 :type Mod...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def _deserialize(self, params): self.FileName = params.get("FileName") self.FilePath = params.get("FilePath") self.VirusName = params.get("VirusName") self.CreateTime = params.get("CreateTime") self.ModifyTime = params.get("ModifyTime") self.ContainerName = params.get("Co...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param ContainerName: 容器名称 :type ContainerName: str :param ContainerId: 容器id :type ContainerId: str :param ImageName: 镜像名称 :type ImageName: str :param ImageId: 镜像Id :type ImageId: str :param HostName: 主机名称 :...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def _deserialize(self, params): self.ContainerName = params.get("ContainerName") self.ContainerId = params.get("ContainerId") self.ImageName = params.get("ImageName") self.ImageId = params.get("ImageId") self.HostName = params.get("HostName") self.HostIp = params.get("Hos...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def __init__(self): r""" :param Type: 告警事件类型:
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def _deserialize(self, params): self.Type = params.get("Type") self.Switch = params.get("Switch") self.BeginTime = params.get("BeginTime") self.EndTime = params.get("EndTime") self.ControlBits = params.get("ControlBits") memeber_set = set(params.keys()) for name, ...
tzpBingo/github-trending
[ 42, 20, 42, 1, 1504755582 ]
def query_name(name, verbose=False, print_header=False): """ Query NED by source name. """ try: q = Ned.query_object(name) objname = q["Object Name"][0] objtype = q["Type"][0].decode("utf-8") ra = q["RA(deg)"][0] dec = q["DEC(deg)"][0] velocit...
liweitianux/atoolbox
[ 6, 4, 6, 1, 1464356672 ]
def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def list_by_service( self, resource_group_name: str, service_name: str, api_id: str, filter: Optional[str] = None, top: Optional[int] = None, skip: Optional[int] = None, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def prepare_request(next_link=None): if not next_link:
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def _create_or_update_initial( self, resource_group_name, # type: str virtual_hub_name, # type: str route_table_name, # type: str virtual_hub_route_table_v2_parameters, # type: "_models.VirtualHubRouteTableV2" **kwargs # type: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def begin_create_or_update( self, resource_group_name, # type: str virtual_hub_name, # type: str route_table_name, # type: str virtual_hub_route_table_v2_parameters, # type: "_models.VirtualHubRouteTableV2" **kwargs # type: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def get_long_running_output(pipeline_response): deserialized = self._deserialize('VirtualHubRouteTableV2', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def _delete_initial( self, resource_group_name, # type: str virtual_hub_name, # type: str route_table_name, # type: str **kwargs # type: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def begin_delete( self, resource_group_name, # type: str virtual_hub_name, # type: str route_table_name, # type: str **kwargs # type: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {})
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def list( self, resource_group_name, # type: str virtual_hub_name, # type: str **kwargs # type: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list.metadat...
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=resp...
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def process_item(self, item_xml): result_item = None if "<heading>" in item_xml: item = JenItem(item_xml) result_item = { 'label': item["title"], 'icon': item.get("thumbnail", addon_icon), 'fanart': item.get("fanart", addon_fanart),...
repotvsupertuga/tvsupertuga.repository
[ 1, 8, 1, 4, 1493763534 ]
def heading_handler(): try: quit() except: pass
repotvsupertuga/tvsupertuga.repository
[ 1, 8, 1, 4, 1493763534 ]
def mysettings_handler(query): try: xbmc.executebuiltin('Dialog.Close(busydialog)') xbmc.executebuiltin('Addon.OpenSettings(%s)' % addon_id) c, f = query.split('/') xbmc.executebuiltin('SetFocus(%i)' % (int(c) + 100)) xbmc.executebuiltin('SetFocus(%i)' % (int(f) + 200)) e...
repotvsupertuga/tvsupertuga.repository
[ 1, 8, 1, 4, 1493763534 ]
def password_handler(url): adult_xml = '' try: the_setting = this_addon.getSetting('adult_stuff') if the_setting == None or the_setting == '': the_setting = 'false' xbmcaddon.Addon().setSetting('adult_stuff', str(the_setting)) if the_setting == 'false': ...
repotvsupertuga/tvsupertuga.repository
[ 1, 8, 1, 4, 1493763534 ]
def pairing_handler(url): try: site = '' if 'pairlist' in url: names = [] for item in PAIR_LIST: the_title = 'PAIR %s' % (item[0].replace('_', ' ').capitalize()) names.append(the_title) selected = xbmcgui.Dialog().select('Select Si...
repotvsupertuga/tvsupertuga.repository
[ 1, 8, 1, 4, 1493763534 ]
def is_displayed(self): return ( self.in_intel_reports and self.title.text == 'Editing EVM Group "{}"'.format(self.context["object"].group) and self.edit_report_menus.is_opened and self.edit_report_menus.tree.currently_selected == [ "All EVM Groups...
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def go_to_group(self, group_name): self.group = group_name view = navigate_to(self, "EditReportMenus") assert view.is_displayed return view
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def get_subfolders(self, group, folder): """Returns list of sub-folders for given user group and folder. Args: group: User group to check. folder: Folder to read. """ view = self.go_to_group(group) view.reports_tree.click_path("Top Level", folder) ...
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def add_subfolder(self, group, folder, subfolder): """Adds a subfolder under specified folder. Args: group: User group. folder: Name of the folder. subfolder: Name of the new subdfolder. """ with self.manage_folder(folder) as fldr: fldr.ad...
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def manage_subfolder(self, group, folder, subfolder): """Context manager to use when modifying the subfolder contents. You can use manager's :py:meth:`FolderManager.bail_out` classmethod to end and discard the changes done inside the with block. Args: group: User group. ...
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def manage_folder(self, group, folder=None): """Context manager to use when modifying the folder contents. You can use manager's :py:meth:`FolderManager.bail_out` classmethod to end and discard the changes done inside the with block. This context manager does not give the manager as a v...
RedHatQE/cfme_tests
[ 69, 165, 69, 133, 1360187957 ]
def __init__(self, cell_model): self._cell_model = cell_model
Juanlu001/CBC.Solve
[ 1, 7, 1, 1, 1427993651 ]
def mesh(self): error("Need to prescribe domain")
Juanlu001/CBC.Solve
[ 1, 7, 1, 1, 1427993651 ]
def applied_current(self): return None
Juanlu001/CBC.Solve
[ 1, 7, 1, 1, 1427993651 ]
def essential_boundaries(self): return None
Juanlu001/CBC.Solve
[ 1, 7, 1, 1, 1427993651 ]
def initial_conditions(self): return None
Juanlu001/CBC.Solve
[ 1, 7, 1, 1, 1427993651 ]
def boundary_current(self): return None
Juanlu001/CBC.Solve
[ 1, 7, 1, 1, 1427993651 ]
def is_dynamic(self): return True
Juanlu001/CBC.Solve
[ 1, 7, 1, 1, 1427993651 ]
def __init__(self): self._idx = OOBTree()
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def unindex(self, participation): """Remove an existing participation from the index """ #if the Participation is not linked to an Avatar there's no point to # unindex it a = participation.getAvatar() if not a: return #if the Avatar associated to th...
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def __init__(self, abstract, **data): self._abstract = abstract self._firstName = "" self._surName = "" self._email = "" self._affilliation = "" self._address = "" self._telephone = "" self._fax = "" self._title = "" self.setData(**data)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def setFromAbstractParticipation(self, part): data = {"title": part.getTitle(), "firstName": part.getFirstName(), "surName": part.getSurName(), "email": part.getEmail(), "affiliation": part.getAffiliation(), "address": part.getAddre...
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getData(self): data = {} data["firstName"] = self.getFirstName() data["surName"] = self.getSurName() data["email"] = self.getEmail() data["affiliation"] = self.getAffiliation() data["address"] = self.getAddress() data["telephone"] = self.getTelephone() ...
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def clone(self, abstract): ap = AbstractParticipation(abstract, self.getData()) return ap
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def _unindex(self): abs = self.getAbstract() if abs is not None: mgr = abs.getOwner() if mgr is not None: mgr.unindexAuthor(self)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def setFirstName(self, name): tmp = name.strip() if tmp == self.getFirstName(): return self._unindex() self._firstName = tmp self._index() self._notifyModification()
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getName(self): return self._firstName
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getSurName(self): return self._surName
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def setEmail(self, email): email = email.strip().lower() if email != self.getEmail(): self._unindex() self._email = email self._index() self._notifyModification()
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def setAffiliation(self, af): self._affilliation = af.strip() self._notifyModification()
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getAffiliation(self): return self._affilliation
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def affiliation(self): return self._affilliation
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getAddress(self): return self._address
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getTelephone(self): return self._telephone
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getFax(self): return self._fax
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getTitle(self): return self._title
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def full_name(self): return self.getFullName()
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getAbrName(self): res = self.getSurName() if self.getFirstName(): if res: res = "%s, " % res res = "%s%s." % (res, safe_upper(safe_slice(self.getFirstName(), 0, 1))) return res
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def setAbstract(self, abs): self._abstract = abs
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def recover(self): TrashCanManager().remove(self)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def __init__(self, abstract, **data): AbstractParticipation.__init__(self, abstract, **data) self._abstractId = ""
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def setId(self, newId): self._id = str(newId)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def isSpeaker(self): return self._abstract.isSpeaker(self)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def __init__(self, abstract, av): if av is None: raise MaKaCError(_("abstract submitter cannot be None")) AbstractParticipation.__init__(self, abstract) self._user = None self._setUser(av) self.setFromAvatar(av)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def clone(self, abstract): sub = Submitter(abstract, self.getAvatar()) sub.setData(self.getData()) return sub
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getAvatar(self): return self._user
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def __init__(self, mgr): self._mgr = mgr self._idx = OOBTree()
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def index(self, auth): if auth.getAbstract() is None: raise MaKaCError(_("cannot index an author of an abstract which is not included in a conference")) if auth.getAbstract().getOwner() != self._mgr: raise MaKaCError(_("cannot index an author of an abstract which does not belong ...
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def match(self, query): query = query.lower().strip() res = OIBTree.OISet() for k in self._idx.keys(): if k.find(query) != -1: res = OIBTree.union(res, self._idx[k]) return res
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def __init__(self, mgr): _AuthIdx.__init__(self, mgr) for abs in self._mgr.getAbstractList(): for auth in abs.getPrimaryAuthorList(): self.index(auth)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def __init__(self, mgr): _AuthIdx.__init__(self, mgr) for abs in self._mgr.getAbstractList(): for auth in abs.getPrimaryAuthorList(): self.index(auth) for auth in abs.getCoAuthorList(): self.index(auth)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def __init__(self, owner): self._owner = owner self._abstracts = OOBTree() self._participationIdx = _AbstractParticipationIndex() self.__abstractGenerator = Counter() self._activated = False self.setStartSubmissionDate(datetime.now()) self.setEndSubmissionDate(dat...
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getMultipleTracks(self): try: return self._multipleTracks except: self.setMultipleTracks(True) return self._multipleTracks
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def areTracksMandatory(self): try: return self._tracksMandatory except: self.setTracksMandatory(False) return self._tracksMandatory
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def setAllowAttachFiles(self, attachedFiles): self._attachFiles = attachedFiles
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def showSelectAsSpeaker(self): try: return self._showSelectAsSpeaker except: self._showSelectAsSpeaker = True return self._showSelectAsSpeaker
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def isSelectSpeakerMandatory(self): try: return self._selectSpeakerMandatory except: self._selectSpeakerMandatory = True return self._selectSpeakerMandatory
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def showAttachedFilesContribList(self): try: return self._showAttachedFilesContribList except: self._showAttachedFilesContribList = False return self._showAttachedFilesContribList
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getAbstractFieldsMgr(self): return AbstractFieldManagerAdapter(self._owner.as_event)
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getOwner(self): return self._owner
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]
def getTimezone(self): return self.getConference().getTimezone()
belokop/indico_bare
[ 1, 1, 1, 5, 1465204236 ]