query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Set up OIDC issuer profile for the ManagedCluster object. | def r65v(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
dLhw = YKHO.context.get_oidc_issuer_profile()
if dLhw is not None:
FQNo.oidc_issuer_profile = dLhw
return FQNo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g6HB(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n dLhw = YKHO.context.get_oidc_issuer_profile()\n if dLhw is not None:\n FQNo.oidc_issuer_profile = dLhw\n return FQNo",
"def WMpp(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n dmpB = None\n jEt9 = ... | [
"0.68949056",
"0.6509729",
"0.59140515",
"0.58743733",
"0.58665264",
"0.5851112",
"0.5786927",
"0.573488",
"0.56927",
"0.5686523",
"0.56630516",
"0.5605314",
"0.5597112",
"0.5546473",
"0.5518196",
"0.5349327",
"0.53285",
"0.52434665",
"0.5205877",
"0.5151916",
"0.5124305",
... | 0.77052444 | 0 |
Set up workload autoscaler profile for the ManagedCluster object. | def A0jp(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
if YKHO.context.get_enable_keda():
if FQNo.workload_auto_scaler_profile is None:
FQNo.workload_auto_scaler_profile = YKHO.models.ManagedClusterWorkloadAutoScalerProfile()
FQNo.workload_auto_scaler_profile.keda = YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZyV(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n _uvG = YKHO.context.get_cluster_autoscaler_profile()\n FQNo.auto_scaler_profile = _uvG\n return FQNo",
"def wyKP(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n if YKHO.context.get_enable_keda():\n if ... | [
"0.8076214",
"0.7491031",
"0.7352861",
"0.6414039",
"0.63400394",
"0.63381267",
"0.61320627",
"0.6118087",
"0.5994238",
"0.59813344",
"0.5911872",
"0.58884025",
"0.5853951",
"0.58003074",
"0.57358766",
"0.57021785",
"0.56957954",
"0.56529593",
"0.5541374",
"0.55400974",
"0.55... | 0.8073404 | 1 |
Set up autoscaler profile for the ManagedCluster object. | def WZyV(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
_uvG = YKHO.context.get_cluster_autoscaler_profile()
FQNo.auto_scaler_profile = _uvG
return FQNo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A0jp(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n if YKHO.context.get_enable_keda():\n if FQNo.workload_auto_scaler_profile is None:\n FQNo.workload_auto_scaler_profile = YKHO.models.ManagedClusterWorkloadAutoScalerProfile()\n FQNo.workload_auto_scaler_profile.k... | [
"0.78787524",
"0.7584544",
"0.72677207",
"0.65111727",
"0.6414405",
"0.6131129",
"0.61158025",
"0.6072033",
"0.6016049",
"0.5991844",
"0.59358615",
"0.59160423",
"0.586377",
"0.58514345",
"0.5827458",
"0.57397324",
"0.5728022",
"0.5689652",
"0.5640538",
"0.5614725",
"0.555527... | 0.8339926 | 0 |
Set up azure monitor profile for the ManagedCluster object. | def iPFL(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
xhgz = YKHO.context.raw_param.get('ksm_metric_labels_allow_list')
D7EH = YKHO.context.raw_param.get('ksm_metric_annotations_allow_list')
if xhgz is None:
xhgz = ''
if D7EH is None:
D7EH = ''
if YKHO.context.get_e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SIbU(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n xhgz = YKHO.context.raw_param.get('ksm_metric_labels_allow_list')\n D7EH = YKHO.context.raw_param.get('ksm_metric_annotations_allow_list')\n if xhgz is None:\n xhgz = ''\n if D7EH is None:\n D7EH = ''\n if YKHO.... | [
"0.72846806",
"0.71346223",
"0.64711446",
"0.6104006",
"0.60403425",
"0.59842443",
"0.5969809",
"0.59013",
"0.5852365",
"0.5829357",
"0.5784714",
"0.5775937",
"0.5744401",
"0.570182",
"0.57013726",
"0.5676068",
"0.56605566",
"0.5610358",
"0.5585451",
"0.5560262",
"0.55012053"... | 0.7944016 | 0 |
Helper function to check if postprocessing is required after sending a PUT request to create the cluster. | def uXb1(YKHO, FQNo: ManagedCluster) -> bool:
ShVf = YKHO.context.get_intermediate('monitoring_addon_enabled', default_value=False)
Eptr = YKHO.context.get_intermediate('ingress_appgw_addon_enabled', default_value=False)
Dohz = YKHO.context.get_intermediate('virtual_node_addon_enabled', default_value=False)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uXb1(YKHO, FQNo: ManagedCluster) -> bool:\n ShVf = YKHO.context.get_intermediate('monitoring_addon_enabled', default_value=False)\n Eptr = YKHO.context.get_intermediate('ingress_appgw_addon_enabled', default_value=False)\n Dohz = YKHO.context.get_intermediate('virtual_node_addon_enabled', default_valu... | [
"0.65956247",
"0.6160552",
"0.5965819",
"0.5765838",
"0.54389656",
"0.52548474",
"0.5172896",
"0.51714987",
"0.5161744",
"0.5144229",
"0.50794834",
"0.50763243",
"0.50758445",
"0.5068631",
"0.506405",
"0.50525963",
"0.5025663",
"0.50229084",
"0.50158024",
"0.49857804",
"0.498... | 0.6787382 | 0 |
Initialize an AKSAgentPoolAddDecorator object to assemble the AgentPool profile. | def jGuB(YKHO) -> None:
YKHO.agentpool_decorator = AtZg(YKHO.cmd, YKHO.client, YKHO.__raw_parameters, YKHO.resource_type, YKHO.agentpool_decorator_mode)
YKHO.agentpool_context = YKHO.agentpool_decorator.context
YKHO.context.attach_agentpool_context(YKHO.agentpool_context) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGuB(YKHO) -> None:\n YKHO.agentpool_decorator = Yt2L(YKHO.cmd, YKHO.client, YKHO.__raw_parameters, YKHO.resource_type, YKHO.agentpool_decorator_mode)\n YKHO.agentpool_context = YKHO.agentpool_decorator.context\n YKHO.context.attach_agentpool_context(YKHO.agentpool_context)",
"def CoaQ(YKHO, FQNo: M... | [
"0.82316643",
"0.61094487",
"0.58690387",
"0.58118975",
"0.5642255",
"0.5622449",
"0.5469193",
"0.5461134",
"0.5350976",
"0.5324465",
"0.5300219",
"0.52914625",
"0.5236859",
"0.5222781",
"0.51754194",
"0.51687443",
"0.51389706",
"0.51012224",
"0.5097092",
"0.50748473",
"0.505... | 0.7490148 | 1 |
Get the ManagedCluster object currently in use and attach it to internal context. Internally send request using ContainerServiceClient and parameters name (cluster) and resource group name. | def XRZs(YKHO) -> OrU5:
FQNo = YKHO.client.get(YKHO.context.get_resource_group_name(), YKHO.context.get_name())
YKHO.context.attach_mc(FQNo)
return FQNo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ky3V(YKHO) -> OrU5:\n FQNo = YKHO.models.ManagedCluster(location=YKHO.context.get_location())\n YKHO.context.attach_mc(FQNo)\n return FQNo",
"def JO8G(hKn5, gaZx=False):\n QpfX = K1Ja(user_name=hKn5.trustee_username, password=hKn5.trustee_password, trust_id=hKn5.trust_id, show_deleted=gaZx, user_... | [
"0.63290817",
"0.5981959",
"0.5886816",
"0.58823264",
"0.5875958",
"0.5780633",
"0.5742241",
"0.5623842",
"0.56223327",
"0.5598198",
"0.5598198",
"0.55960774",
"0.5590564",
"0.5503874",
"0.54916924",
"0.54552215",
"0.5428519",
"0.5419511",
"0.5408951",
"0.53970474",
"0.539554... | 0.6626831 | 0 |
Update agentpool profile for the ManagedCluster object. | def YkX4(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
if not FQNo.agent_pool_profiles:
raise DBCD('Encounter an unexpected error while getting agent pool profiles from the cluster in the process of updating agentpool profile.')
ft4t = YKHO.agentpool_decorator.update_agentpool_profile_d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CoaQ(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n ft4t = YKHO.agentpool_decorator.construct_agentpool_profile_default()\n FQNo.agent_pool_profiles = [ft4t]\n return FQNo",
"def x0_V(YKHO) -> OrU5:\n YKHO.check_raw_parameters()\n FQNo = YKHO.fetch_mc()\n FQNo = YKHO.upda... | [
"0.69000655",
"0.64854956",
"0.63575286",
"0.58744913",
"0.5846469",
"0.58256614",
"0.58208615",
"0.571694",
"0.56969243",
"0.5597279",
"0.55756265",
"0.5568938",
"0.55441463",
"0.55437326",
"0.54608375",
"0.5429033",
"0.5364649",
"0.5275306",
"0.5205076",
"0.5190666",
"0.517... | 0.8161614 | 0 |
Update autoscaler profile for the ManagedCluster object. | def _V7w(YKHO, FQNo):
YKHO._ensure_mc(FQNo)
_uvG = YKHO.context.get_cluster_autoscaler_profile()
if _uvG is not None:
FQNo.auto_scaler_profile = _uvG
return FQNo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZyV(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n _uvG = YKHO.context.get_cluster_autoscaler_profile()\n FQNo.auto_scaler_profile = _uvG\n return FQNo",
"def wyKP(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n if YKHO.context.get_enable_keda():\n if ... | [
"0.77689654",
"0.77025795",
"0.70554644",
"0.6538188",
"0.62741613",
"0.62367916",
"0.61821556",
"0.60954934",
"0.6095449",
"0.5962787",
"0.5960805",
"0.58981574",
"0.58537835",
"0.582746",
"0.5796772",
"0.57472837",
"0.5672821",
"0.5601652",
"0.5588318",
"0.5538377",
"0.5453... | 0.8491165 | 0 |
Update tags for the ManagedCluster object. | def RX9h(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
dJ1p = YKHO.context.get_tags()
if dJ1p is not None:
FQNo.tags = dJ1p
return FQNo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U68m(YKHO, dJ1p, TJ_E=False, lo9Y=None):\n xDcj = [('tag', a1PO) for a1PO in dJ1p]\n DZzz(xDcj, TJ_E)\n oYF2(xDcj, lo9Y)\n return YKHO._SendRequest(y5pJ, '/%s/tags' % xuBk, xDcj, None)",
"def URT9(YKHO, hKn5, NArs, *qIxc, **B2fa):\n raise NotImplementedError",
"def hKn5(YKHO, qC6E):\n CQw... | [
"0.5990642",
"0.59193057",
"0.5559754",
"0.55428",
"0.54464996",
"0.5432885",
"0.5410724",
"0.54037637",
"0.54037637",
"0.54037637",
"0.5357456",
"0.5332834",
"0.53129476",
"0.52917403",
"0.5266721",
"0.5208107",
"0.5159976",
"0.513104",
"0.51148003",
"0.5085101",
"0.50813633... | 0.74483514 | 0 |
Update sku (uptime sla) for the ManagedCluster object. | def KpR9(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
if YKHO.context.get_tier() == DTQ3:
FQNo.sku = YKHO.models.ManagedClusterSKU(name='Base', tier='Premium')
if YKHO.context.get_uptime_sla() or YKHO.context.get_tier() == fVY4:
FQNo.sku = YKHO.models.ManagedClusterSKU(name='Ba... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _NcP(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n if YKHO.context.get_uptime_sla() or YKHO.context.get_tier() == fVY4:\n FQNo.sku = YKHO.models.ManagedClusterSKU(name='Base', tier='Standard')\n if YKHO.context.get_tier() == DTQ3:\n FQNo.sku = YKHO.models.ManagedClusterS... | [
"0.71179074",
"0.5984935",
"0.53230107",
"0.5303793",
"0.5204448",
"0.5096391",
"0.5087994",
"0.5086891",
"0.502062",
"0.49859262",
"0.4938367",
"0.49240932",
"0.48839968",
"0.48643538",
"0.48471776",
"0.48239538",
"0.47839066",
"0.47805685",
"0.47805685",
"0.4759781",
"0.475... | 0.7960321 | 0 |
Update load balancer profile for the ManagedCluster object. | def jiPw(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
if not FQNo.network_profile:
raise DBCD('Encounter an unexpected error while getting network profile from the cluster in the process of updating its load balancer profile.')
Uzbi = YKHO.context.get_outbound_type()
if Uzbi and Uz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YkX4(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n if not FQNo.agent_pool_profiles:\n raise DBCD('Encounter an unexpected error while getting agent pool profiles from the cluster in the process of updating agentpool profile.')\n ft4t = YKHO.agentpool_decorator.update_agentpool_... | [
"0.65942985",
"0.63839215",
"0.6343197",
"0.62864435",
"0.61292905",
"0.61204284",
"0.6031443",
"0.57443124",
"0.5726644",
"0.5723703",
"0.5628799",
"0.5628109",
"0.5623104",
"0.56101996",
"0.56002855",
"0.5590744",
"0.5588446",
"0.55560887",
"0.55289423",
"0.55235827",
"0.55... | 0.75255644 | 0 |
Update nat gateway profile for the ManagedCluster object. | def ZM7_(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
if not FQNo.network_profile:
raise DBCD('Unexpectedly get an empty network profile in the process of updating nat gateway profile.')
Uzbi = YKHO.context.get_outbound_type()
if Uzbi and Uzbi != gcfZ:
FQNo.network_profile.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0_V(YKHO) -> OrU5:\n YKHO.check_raw_parameters()\n FQNo = YKHO.fetch_mc()\n FQNo = YKHO.update_agentpool_profile(FQNo)\n FQNo = YKHO.update_auto_scaler_profile(FQNo)\n FQNo = YKHO.update_tags(FQNo)\n YKHO.process_attach_detach_acr(FQNo)\n FQNo = YKHO.update_sku(FQNo)\n FQNo = YKHO.upda... | [
"0.6426489",
"0.63450545",
"0.62319547",
"0.60947186",
"0.60823864",
"0.59361637",
"0.5891273",
"0.5854507",
"0.5761657",
"0.57524437",
"0.5678059",
"0.56612414",
"0.5579701",
"0.53702694",
"0.5347543",
"0.53397816",
"0.5326909",
"0.52681994",
"0.5237096",
"0.5205934",
"0.518... | 0.7545268 | 0 |
Update api server access profile and fqdn subdomain for the ManagedCluster object. | def SUyK(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
if FQNo.api_server_access_profile is None:
dTkM = YKHO.models.ManagedClusterAPIServerAccessProfile()
else:
dTkM = FQNo.api_server_access_profile
quiT = YKHO.context.get_api_server_authorized_ip_ranges()
aV32 = YKHO.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HeJe(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n pS13 = None\n quiT = YKHO.context.get_api_server_authorized_ip_ranges()\n kPIO = YKHO.context.get_enable_private_cluster()\n aV32 = YKHO.context.get_disable_public_fqdn()\n R_3U = YKHO.context.get_private_dns_zone()\n if q... | [
"0.6785518",
"0.62549794",
"0.56788695",
"0.5587446",
"0.55768114",
"0.5548693",
"0.5440958",
"0.523388",
"0.5209735",
"0.5204637",
"0.5203941",
"0.5169459",
"0.5154716",
"0.51498365",
"0.5145779",
"0.50799966",
"0.50749654",
"0.50468695",
"0.5043714",
"0.50179535",
"0.500715... | 0.72265285 | 0 |
Update windows profile for the ManagedCluster object. | def _zTu(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
TqVZ = YKHO.context.get_enable_ahub()
A45v = YKHO.context.get_disable_ahub()
AcBN = YKHO.context.get_windows_admin_password()
Zsbz = YKHO.context.get_enable_windows_gmsa()
if any([TqVZ, A45v, AcBN, Zsbz]) and (not FQNo.windows_p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aLBh(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n mHT8, AcBN = YKHO.context.get_windows_admin_username_and_password()\n if mHT8 or AcBN:\n x3Y6 = None\n if YKHO.context.get_enable_ahub():\n x3Y6 = 'Windows_Server'\n pk6k = None\n if YKHO.context... | [
"0.6615214",
"0.6559488",
"0.6554667",
"0.6302969",
"0.62154424",
"0.6039585",
"0.60123307",
"0.5999623",
"0.5888613",
"0.58799297",
"0.5857495",
"0.57862186",
"0.575272",
"0.55814606",
"0.5574849",
"0.5490474",
"0.54602957",
"0.5456462",
"0.54487735",
"0.5445578",
"0.5434550... | 0.79302394 | 0 |
Update OIDC issuer profile for the ManagedCluster object. | def g6HB(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
dLhw = YKHO.context.get_oidc_issuer_profile()
if dLhw is not None:
FQNo.oidc_issuer_profile = dLhw
return FQNo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r65v(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n dLhw = YKHO.context.get_oidc_issuer_profile()\n if dLhw is not None:\n FQNo.oidc_issuer_profile = dLhw\n return FQNo",
"def j40u(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n jEt9 = YKHO.context.get_... | [
"0.7138633",
"0.6434838",
"0.6359209",
"0.6091803",
"0.5943593",
"0.5936524",
"0.5852094",
"0.5840535",
"0.58331877",
"0.56902266",
"0.56145376",
"0.55521697",
"0.5457869",
"0.53420657",
"0.5270344",
"0.52316934",
"0.51749843",
"0.5146125",
"0.5134343",
"0.5117193",
"0.509305... | 0.79235494 | 0 |
Update network plugin settings of network profile for the ManagedCluster object. | def yD1o(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
W6Lu = YKHO.context.get_network_plugin_mode()
if W6Lu:
FQNo.network_profile.network_plugin_mode = W6Lu
dTX0, bGrB, bGrB, bGrB, bGrB = YKHO.context.get_pod_cidr_and_service_cidr_and_dns_service_ip_and_docker_bridge_address_and_ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0_V(YKHO) -> OrU5:\n YKHO.check_raw_parameters()\n FQNo = YKHO.fetch_mc()\n FQNo = YKHO.update_agentpool_profile(FQNo)\n FQNo = YKHO.update_auto_scaler_profile(FQNo)\n FQNo = YKHO.update_tags(FQNo)\n YKHO.process_attach_detach_acr(FQNo)\n FQNo = YKHO.update_sku(FQNo)\n FQNo = YKHO.upda... | [
"0.6287261",
"0.62562764",
"0.6206155",
"0.5919854",
"0.5832747",
"0.5745208",
"0.5725939",
"0.5664839",
"0.5643876",
"0.56297773",
"0.5584582",
"0.54472065",
"0.5360767",
"0.53581583",
"0.534671",
"0.53357637",
"0.53113896",
"0.52554923",
"0.5243599",
"0.51855236",
"0.518398... | 0.8056863 | 0 |
Update storage profile for the ManagedCluster object. | def qdpS(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
FQNo.storage_profile = YKHO.context.get_storage_profile()
return FQNo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmOR(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n if hasattr(YKHO.models, 'ManagedClusterStorageProfile'):\n FQNo.storage_profile = YKHO.context.get_storage_profile()\n return FQNo",
"def x0_V(YKHO) -> OrU5:\n YKHO.check_raw_parameters()\n FQNo = YKHO.fetch_mc()\n F... | [
"0.7120557",
"0.6314157",
"0.6202867",
"0.58940035",
"0.5887002",
"0.5872036",
"0.5859722",
"0.5836123",
"0.57843363",
"0.5757808",
"0.5714045",
"0.5625429",
"0.55987877",
"0.54697853",
"0.54638046",
"0.5455607",
"0.54530305",
"0.53886455",
"0.53717756",
"0.5316751",
"0.52893... | 0.81250465 | 0 |
Update security profile imageCleaner for the ManagedCluster object. | def Ebka(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
CowE = YKHO.context.get_enable_image_cleaner()
SJ1E = YKHO.context.get_disable_image_cleaner()
Eoh9 = YKHO.context.get_image_cleaner_interval_hours()
if not CowE and (not SJ1E) and (Eoh9 is None):
return FQNo
if FQNo.sec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dv_Y(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n Eoh9 = YKHO.context.get_image_cleaner_interval_hours()\n if YKHO.context.get_enable_image_cleaner():\n if FQNo.security_profile is None:\n FQNo.security_profile = YKHO.models.ManagedClusterSecurityProfile()\n ... | [
"0.6851309",
"0.67022616",
"0.5652698",
"0.555268",
"0.54567385",
"0.5302302",
"0.52607596",
"0.50487584",
"0.50180537",
"0.5011092",
"0.5008191",
"0.5006725",
"0.49423403",
"0.48312888",
"0.47744167",
"0.47587383",
"0.47480166",
"0.47262153",
"0.47243848",
"0.47189918",
"0.4... | 0.73032594 | 0 |
Update workload autoscaler profile for the ManagedCluster object. | def wyKP(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
if YKHO.context.get_enable_keda():
if FQNo.workload_auto_scaler_profile is None:
FQNo.workload_auto_scaler_profile = YKHO.models.ManagedClusterWorkloadAutoScalerProfile()
FQNo.workload_auto_scaler_profile.keda = YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _V7w(YKHO, FQNo):\n YKHO._ensure_mc(FQNo)\n _uvG = YKHO.context.get_cluster_autoscaler_profile()\n if _uvG is not None:\n FQNo.auto_scaler_profile = _uvG\n return FQNo",
"def WZyV(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n _uvG = YKHO.context.get_cluster_autoscale... | [
"0.82561743",
"0.75433207",
"0.7293663",
"0.6517002",
"0.6411876",
"0.6182385",
"0.61311543",
"0.59943694",
"0.5993539",
"0.59688723",
"0.59505665",
"0.59278333",
"0.5866863",
"0.5812482",
"0.56214845",
"0.5597126",
"0.5546318",
"0.5526554",
"0.5516587",
"0.550821",
"0.548046... | 0.7946528 | 1 |
Update azure monitor profile for the ManagedCluster object. | def SIbU(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
xhgz = YKHO.context.raw_param.get('ksm_metric_labels_allow_list')
D7EH = YKHO.context.raw_param.get('ksm_metric_annotations_allow_list')
if xhgz is None:
xhgz = ''
if D7EH is None:
D7EH = ''
if YKHO.context.get_e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iPFL(YKHO, FQNo: ManagedCluster) -> OrU5:\n YKHO._ensure_mc(FQNo)\n xhgz = YKHO.context.raw_param.get('ksm_metric_labels_allow_list')\n D7EH = YKHO.context.raw_param.get('ksm_metric_annotations_allow_list')\n if xhgz is None:\n xhgz = ''\n if D7EH is None:\n D7EH = ''\n if YKHO.... | [
"0.7277104",
"0.63934505",
"0.61648846",
"0.614551",
"0.61402935",
"0.6066223",
"0.5994208",
"0.5984191",
"0.5957272",
"0.5943673",
"0.5894648",
"0.5878133",
"0.5850033",
"0.57665926",
"0.57402784",
"0.5631679",
"0.5623526",
"0.5593438",
"0.55433184",
"0.54727024",
"0.5458814... | 0.7853511 | 0 |
Helper function to check if postprocessing is required after sending a PUT request to create the cluster. | def uXb1(YKHO, FQNo: ManagedCluster) -> bool:
ShVf = YKHO.context.get_intermediate('monitoring_addon_enabled', default_value=False)
Eptr = YKHO.context.get_intermediate('ingress_appgw_addon_enabled', default_value=False)
Dohz = YKHO.context.get_intermediate('virtual_node_addon_enabled', default_value=False)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uXb1(YKHO, FQNo: ManagedCluster) -> bool:\n ShVf = YKHO.context.get_intermediate('monitoring_addon_enabled', default_value=False)\n Eptr = YKHO.context.get_intermediate('ingress_appgw_addon_enabled', default_value=False)\n Dohz = YKHO.context.get_intermediate('virtual_node_addon_enabled', default_valu... | [
"0.6787382",
"0.6160552",
"0.5965819",
"0.5765838",
"0.54389656",
"0.52548474",
"0.5172896",
"0.51714987",
"0.5161744",
"0.5144229",
"0.50794834",
"0.50763243",
"0.50758445",
"0.5068631",
"0.506405",
"0.50525963",
"0.5025663",
"0.50229084",
"0.50158024",
"0.49857804",
"0.4980... | 0.65956247 | 1 |
Send request to update the existing managed cluster. | def txrU(YKHO, FQNo: ManagedCluster) -> OrU5:
YKHO._ensure_mc(FQNo)
return YKHO.put_mc(FQNo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def URT9(YKHO, hKn5, NArs, *qIxc, **B2fa):\n raise NotImplementedError",
"def QdZT(id, TBsA: Body):\n hKn5 = qC6E.get_by_id(id)\n if hKn5 is None:\n raise pgG1(status_code=404, detail='Cluster not found for ID: {0}'.format(id))\n hKn5.update(TBsA.dict())\n hKn5 = qC6E.update(hKn5)\n retu... | [
"0.7191971",
"0.7066755",
"0.7005855",
"0.67756027",
"0.6429547",
"0.6165414",
"0.6147759",
"0.61359227",
"0.60395795",
"0.6039569",
"0.59164023",
"0.58718383",
"0.58608097",
"0.58484197",
"0.58156073",
"0.5783585",
"0.5762689",
"0.575575",
"0.5751597",
"0.57309073",
"0.57024... | 0.52261937 | 56 |
Replaces u'celsius' with 'fahrenheit' in the provided string. | def eHkQ(vIwR):
return vIwR.replace(u'celsius', u'fahrenheit') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B5I0(fK44):\n return fK44 * 9.0 / 5 + 32",
"def sabX(YKHO) -> None:\n if YKHO.units == 'celsius':\n YKHO.value = (YKHO.value / 5 * 9 + 32).__round__(2)\n YKHO.units = 'fahrenheit'\n else:\n tO9_ = \"Not a valid unit conversion, expected units to be in 'celsius' but instead \" + ... | [
"0.66244715",
"0.6384214",
"0.6268346",
"0.6167058",
"0.61540127",
"0.61191595",
"0.6103219",
"0.60855544",
"0.6050967",
"0.60101855",
"0.5962116",
"0.59152514",
"0.5893281",
"0.58617944",
"0.5766658",
"0.5766658",
"0.5739406",
"0.5734028",
"0.57056034",
"0.5679949",
"0.56359... | 0.8532337 | 0 |
convnet inference block by block. The block coordinates should be aligned with cloud storage. | def Aquq(iU4t, X85V, PuSx, wHr1, KhNV, wZ46, oFNd, U4F5, FTrt, XXEg, w04L, e8fK='output', NjM2=3, usLj=1, tXy2=1, MS8A=3):
for epBp in PRqg(range(U4F5[0]), desc='z loop'):
for LVAh in range(U4F5[1]):
for WKvO in range(U4F5[2]):
S0mI = tuple((KCHu + WKvO * Fg_i for KCHu, WKvO, Fg_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uAwZ(js_5, Zxma):\n KCHu = Zxma.add(viso('%s/Split' % js_5, 4))\n qQqf = b_zE(Zxma, '%s/Branch_0/Conv2d_0a_1x1' % js_5, 256, 1, src=KCHu)\n mxN0 = b_zE(Zxma, '%s/Branch_1/Conv2d_0a_1x1' % js_5, 384, 1, src=KCHu)\n mxN0 = Zxma.add(viso('%s/Branch_1/Split' % js_5, 2))\n VAN5 = b_zE(Zxma, '%s/Branc... | [
"0.66582626",
"0.6451007",
"0.64135444",
"0.63718015",
"0.63372326",
"0.62998694",
"0.62323284",
"0.6195406",
"0.6167625",
"0.6156127",
"0.61436325",
"0.61318815",
"0.6110937",
"0.6108192",
"0.61076534",
"0.6093889",
"0.60925573",
"0.6086378",
"0.60754573",
"0.60693055",
"0.6... | 0.0 | -1 |
Convert degrees to quaternions | def Omrx(rKSe=0.0, H2HG=0.0, xTkQ=0.0):
lGE9 = epAf.cos(epAf.radians(xTkQ * 0.5))
n2Q1 = epAf.sin(epAf.radians(xTkQ * 0.5))
SpII = epAf.cos(epAf.radians(rKSe * 0.5))
WotO = epAf.sin(epAf.radians(rKSe * 0.5))
RtYL = epAf.cos(epAf.radians(H2HG * 0.5))
WfMD = epAf.sin(epAf.radians(H2HG * 0.5))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b4BA(YKHO, vexM):\n YKHO._normalise()\n return YKHO * vexM * YKHO.conjugate",
"def c0Qx(YylR):\n return R5H8(*ZylS.transformations.quaternion_from_euler(0, 0, YylR))",
"def c0Qx(YylR):\n return R5H8(*ZylS.transformations.quaternion_from_euler(0, 0, YylR))",
"def tzeJ(j6Vr):\n if j6Vr.ndim ... | [
"0.7151884",
"0.70794785",
"0.69795513",
"0.6890196",
"0.6885355",
"0.68387544",
"0.6825451",
"0.6785443",
"0.6781011",
"0.6753861",
"0.6744243",
"0.67363155",
"0.67292994",
"0.6655036",
"0.66510034",
"0.66371715",
"0.66367793",
"0.66176534",
"0.66134346",
"0.6551278",
"0.655... | 0.6149848 | 51 |
Add Comment to post. | def PU3S(Emd4, PObu, a70H, D3lj, TBsA):
try:
umWR = Emd4.query.add_comment(uid=PObu, person=a70H, email=D3lj, body=TBsA)
AIu6 = Emd4.engine.query(umWR, fetch_opts='single')
except (eHJZ, ZJUI) as error:
raise Exception(P1dF.args[0])
return AIu6 if AIu6 else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PU3S(Emd4, Fi3q, uJjO, hGN5):\n Z9rn = Emd4(parent=_nPR(), post_id=Fi3q, user_id=uJjO, content=hGN5)\n Z9rn.put()",
"def m8z6(YKHO, Fi3q):\n N323 = YKHO.request.get('comment_content')\n T97t.add_comment(int(Fi3q), int(YKHO.user.get_id()), N323)\n YKHO.redirect('/blog/' + Fi3q + '/comments')",
... | [
"0.82225007",
"0.7583707",
"0.75809085",
"0.7247829",
"0.7170257",
"0.70538193",
"0.69097257",
"0.6878592",
"0.68745327",
"0.67804384",
"0.6741349",
"0.67374927",
"0.67098224",
"0.66295004",
"0.6624333",
"0.65848434",
"0.65231735",
"0.65173745",
"0.65173745",
"0.6499979",
"0.... | 0.0 | -1 |
Generate a random character string of length n | def DAbY(exwG, Sc5p=''):
if exwG == 0:
return Sc5p
Z9rn = tuKI.choice(vIwR.ascii_letters)
return DAbY(exwG - 1, Sc5p + Z9rn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hcjz(exwG):\n return ''.join((tuKI.choice(vIwR.ascii_letters) for bGrB in range(exwG)))",
"def TmxE(exwG: int=10) -> I2jr:\n if exwG < 1:\n raise Exception('Number of random chars to generate has to be > 0')\n return ''.join((Acvy(JSRc + '-_') for YRbF in range(exwG)))",
"def j9F_(exwG):\n ... | [
"0.86658543",
"0.85566527",
"0.8546031",
"0.84206235",
"0.8215926",
"0.80584174",
"0.8052071",
"0.795686",
"0.79503375",
"0.79443985",
"0.79272246",
"0.7922356",
"0.79156876",
"0.78830683",
"0.7817866",
"0.78086793",
"0.7803741",
"0.7789038",
"0.7785089",
"0.77838916",
"0.778... | 0.8413165 | 4 |
Returns the coordinates of the origin bounding box that are intersected by the intersect bounding box. >>> bounding_box = 10, 100, 30, 110 >>> other_bbox = 20, 100, 40, 105 >>> bounding_box_intersection(bounding_box, other_bbox) (10, 0, 20, 5) >>> bounding_box_intersection(other_bbox, bounding_box) (0, 0, 10, 5) >>> co... | def UXyt(hLRM: Tuple[int, int, int, int], XMlP: Tuple[int, int, int, int]) -> h8nf[AzJI[int, int, int, int]]:
nhXj, KvPx, YESL, aUyM = hLRM
a1PO, vC9B, Fg_i, Mkmy = XMlP
o4im = max(a1PO, nhXj)
cvpm = max(vC9B, KvPx)
hagK = min(Fg_i, YESL)
ZFvA = min(Mkmy, aUyM)
if o4im < hagK and cvpm < ZFvA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iQin(SCtU, knvf):\n if isinstance(SCtU, CHoo.BoundingBox):\n SCtU = R6EX(SCtU.start, SCtU.size)\n if isinstance(knvf, CHoo.BoundingBox):\n knvf = R6EX(knvf.start, knvf.size)\n if not isinstance(SCtU, R6EX):\n raise ValueError('box0 must be a BoundingBox')\n if not isinstance(SC... | [
"0.73368526",
"0.68448746",
"0.6794572",
"0.6752013",
"0.6524481",
"0.6365032",
"0.6349253",
"0.6339419",
"0.63276106",
"0.6230844",
"0.6219065",
"0.6181393",
"0.6178924",
"0.6171056",
"0.6161214",
"0.615606",
"0.61267775",
"0.61151683",
"0.60859907",
"0.607529",
"0.60643137"... | 0.7157741 | 1 |
Computes the recall, precision and fscore for the prediction Node given the truth Node. | def kHzD(w75t: Node, o3Uj: Node) -> AzJI[float, float, float]:
AOzf, rhd_, wVIh = (0, 0, 0)
ghYG = UXyt(w75t.bounding_box, o3Uj.bounding_box)
if ghYG is None:
G9jH.debug('No intersection for Nodes: t={0}, p={1}'.format(w75t.bounding_box, o3Uj.bounding_box))
return (AOzf, rhd_, wVIh)
XXFV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J9DU(w75t: List[Node], o3Uj: List[Node]) -> AzJI[XTiz.ndarray, XTiz.ndarray, XTiz.ndarray]:\n AOzf = XTiz.zeros((len(w75t), len(o3Uj)))\n rhd_ = XTiz.zeros((len(w75t), len(o3Uj)))\n wVIh = XTiz.zeros((len(w75t), len(o3Uj)))\n for YRbF, a1PO in enumerate(w75t):\n for r845, XP5J in enumerate(o... | [
"0.7300171",
"0.7163483",
"0.71341056",
"0.69883686",
"0.6961389",
"0.6687912",
"0.66681075",
"0.6655577",
"0.6635931",
"0.6634769",
"0.6633833",
"0.6585825",
"0.6574979",
"0.6558169",
"0.6523462",
"0.65003914",
"0.6488661",
"0.64875406",
"0.64809954",
"0.6479049",
"0.647664"... | 0.0 | -1 |
draws an ellipse around the center of the points | def Fcmk(e6ux, LNo8, qfpW, SnCn):
JPqE = NXpY(e6ux.coords.item(0), SnCn)
fXzF = NXpY(e6ux.coords.item(1), SnCn)
IA3S = 0
dCLF = 0
for AU8u in e6ux.points:
YAyR = NXpY(AU8u.item(0), SnCn)
QNxc = NXpY(AU8u.item(1), SnCn)
if abs(YAyR - JPqE) > IA3S:
IA3S = abs(YAyR -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VQyQ(VXjJ, hgjH, MPlV, YylR, Y0xQ=0, Suvq=360, qfpW=(0, 0, 255), LGJQ=-1):\n XC5k.ellipse(VXjJ, hgjH, MPlV, YylR, Y0xQ, Suvq, qfpW, LGJQ)",
"def PXEh(YKHO):\n eHNT = YKHO.img\n WKvO = YKHO.x\n LVAh = YKHO.y\n ajwV = YKHO.x2\n skBL = YKHO.y2\n M_DK = YKHO.xy\n YKHO.a2 = ajwV + skBL + P... | [
"0.7842527",
"0.7806552",
"0.7571398",
"0.73608714",
"0.7261851",
"0.7241438",
"0.72338784",
"0.7170632",
"0.7167897",
"0.71314347",
"0.70732373",
"0.7072711",
"0.70466924",
"0.7026025",
"0.70214534",
"0.7007903",
"0.699258",
"0.69773793",
"0.6938472",
"0.6928123",
"0.6868979... | 0.0 | -1 |
Display an image. Wrap `matplotlib.pyplot.imshow` to display a possibly intensity manipulated version of the image `X`. | def r2sP(EcVT, aNZO=None, MLlX=None, InZW=(), TB2i='frame', **B2fa):
@Xan6
def F_fq():
AAQo('X', ('boolean', 'integer', 'floating'), shape=(-1, -1))
JnOY('ax', x5MY.axes.Axes, ignore_none=True)
JnOY('intensity_func', 'function', ignore_none=True)
JnOY('intensity_args', 'explicit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1dx(EcVT):\n Xn71 = EcVT.reshape(28, 28)\n ycBG = QrM1.imshow(Xn71)\n QrM1.show()",
"def KwM3(EcVT: np.ndarray, **B2fa):\n B2fa.setdefault('origin', 'lower')\n QrM1.imshow(EcVT, **B2fa)",
"def i5J1(LNo8):\n QrM1.imshow(LNo8, cmap='gray')\n QrM1.show()",
"def p1dx(EcVT):\n if EcVT... | [
"0.8321958",
"0.7961306",
"0.75955147",
"0.753911",
"0.7533973",
"0.7476919",
"0.745646",
"0.740446",
"0.73409796",
"0.7315752",
"0.7315752",
"0.7315752",
"0.7277346",
"0.72211635",
"0.71984375",
"0.71843135",
"0.71229005",
"0.71088415",
"0.70842797",
"0.7079816",
"0.70698",
... | 0.7462702 | 6 |
Set the term in the form. | def P95S(YKHO, **B2fa):
B2fa = super(TxlE, YKHO).get_form_kwargs(**B2fa)
B2fa['candidate_term'] = YKHO.candidate.term
return B2fa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TC0Q(YKHO, OXAZ, VjCT):\n erAo = YKHO.sql_session.query(aw0m).get(OXAZ)\n if erAo:\n erAo.fulltext = VjCT",
"def Z8z4(YKHO, Z8z4):\n YKHO.logger.debug(\"In 'preg_term' setter.\")\n YKHO._preg_term = Z8z4",
"def sSpw(YKHO, sSpw):\n YKHO._term_url = sSpw",
"def NHn2(YKHO, NHn2):\n ... | [
"0.71175146",
"0.68550855",
"0.63705415",
"0.6144158",
"0.5816871",
"0.5789726",
"0.57820034",
"0.5767371",
"0.5661654",
"0.56422377",
"0.56371766",
"0.56113946",
"0.56011474",
"0.5574104",
"0.55038446",
"0.55038285",
"0.547851",
"0.5468794",
"0.5446931",
"0.54445195",
"0.544... | 0.0 | -1 |
Set the term of the requirement to the current term. | def lwXz(YKHO, L03z):
L03z.instance.term = aw0m.objects.get_current_term()
yEHD.success(YKHO.request, '{req_type} requirement created!'.format(req_type=YKHO.display_req_type))
return super(Krez, YKHO).form_valid(L03z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TC0Q(YKHO, OXAZ, VjCT):\n erAo = YKHO.sql_session.query(aw0m).get(OXAZ)\n if erAo:\n erAo.fulltext = VjCT",
"def Z8z4(YKHO, Z8z4):\n YKHO.logger.debug(\"In 'preg_term' setter.\")\n YKHO._preg_term = Z8z4",
"def NHn2(YKHO, NHn2):\n YKHO._terms = NHn2",
"def C70t(YKHO, OXAZ):\n erA... | [
"0.64847124",
"0.6334201",
"0.5986424",
"0.5544135",
"0.5509674",
"0.54983705",
"0.5456465",
"0.5348691",
"0.5333413",
"0.52703387",
"0.52224094",
"0.52158356",
"0.52030915",
"0.5188148",
"0.5169398",
"0.51674813",
"0.515454",
"0.51141346",
"0.51084954",
"0.5074955",
"0.50479... | 0.5203271 | 12 |
Sets the id of this Game. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, LZbL):\n pass",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def V_9M(YKHO, id):\n YKHO.id = id\n print('self id = ' + str(YKHO.id))",
"def... | [
"0.79247755",
"0.78860915",
"0.78824073",
"0.7723867",
"0.7681004",
"0.759572",
"0.75824404",
"0.7418058",
"0.7418058",
"0.7418058",
"0.7418058",
"0.7418058",
"0.7418058",
"0.7418058",
"0.7418058",
"0.7418058",
"0.7418058",
"0.7406203",
"0.73548305",
"0.73548305",
"0.73548305... | 0.0 | -1 |
Sets the player_b_name of this Game. | def iS1O(YKHO, iS1O):
YKHO._player_b_name = iS1O | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pJSc(YKHO, pJSc):\n YKHO._player_a_name = pJSc",
"def fxQX(YKHO, fxQX):\n YKHO._player_b_games = fxQX",
"def sMcj(YKHO, sMcj):\n YKHO._player_b_id = sMcj",
"def Cayh(YKHO, mWFP, BWXx, ZiFu, nZuS, **B2fa):\n if YKHO.player:\n YKHO.player[mWFP] = BWXx",
"def ncWZ(YKHO, CBSv, IiK0):\n ... | [
"0.7046953",
"0.68283844",
"0.6823286",
"0.60431397",
"0.602946",
"0.5915856",
"0.5797274",
"0.57551175",
"0.564356",
"0.5617421",
"0.5611178",
"0.5594154",
"0.5562194",
"0.55580914",
"0.55133885",
"0.54521626",
"0.543514",
"0.5420806",
"0.5417903",
"0.5417903",
"0.5415289",
... | 0.9181073 | 0 |
Sets the player_a_id of this Game. | def PXoC(YKHO, PXoC):
YKHO._player_a_id = PXoC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kTs2(YKHO, LZbL):\n YKHO.player_id = LZbL",
"def OSQ_(YKHO, OSQ_):\n YKHO._player_a_games = OSQ_",
"def V_9M(YKHO, LZbL):\n pass",
"def LZbL(YKHO, LZbL):\n YKHO._player_id = LZbL",
"def LZbL(YKHO, LZbL):\n YKHO._player_id = LZbL",
"def pJSc(YKHO, pJSc):\n YKHO._player_a_name = pJSc"... | [
"0.69736564",
"0.69562083",
"0.6944866",
"0.685115",
"0.685115",
"0.67752093",
"0.6499893",
"0.6387207",
"0.61095905",
"0.5931413",
"0.5756862",
"0.5719053",
"0.5642285",
"0.5627128",
"0.5627128",
"0.5627128",
"0.55055493",
"0.5500313",
"0.5443958",
"0.544141",
"0.5326835",
... | 0.8947233 | 0 |
Sets the player_b_id of this Game. | def sMcj(YKHO, sMcj):
YKHO._player_b_id = sMcj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fxQX(YKHO, fxQX):\n YKHO._player_b_games = fxQX",
"def iS1O(YKHO, iS1O):\n YKHO._player_b_name = iS1O",
"def PXoC(YKHO, PXoC):\n YKHO._player_a_id = PXoC",
"def kTs2(YKHO, LZbL):\n YKHO.player_id = LZbL",
"def V_9M(YKHO, LZbL):\n pass",
"def LZbL(YKHO, LZbL):\n YKHO._player_id = LZb... | [
"0.701637",
"0.68415976",
"0.6529189",
"0.6521133",
"0.6509748",
"0.63791966",
"0.63791966",
"0.63403463",
"0.61362946",
"0.609142",
"0.57009405",
"0.56523895",
"0.5555329",
"0.55444074",
"0.54241943",
"0.54158646",
"0.54158646",
"0.54158646",
"0.5270569",
"0.5130478",
"0.512... | 0.8964314 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, _apf):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8089139",
"0.8089139",
"0.8054507",
"0.79827213",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
The conv block is the block that has conv layer at shortcut. Arguments | def mQG_(KUnM, EtM5, XkN1, FEri=(2, 2)):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = GVKG(name=UIER + '0', **exGu)(FRUf)
WKvO = MroH('relu', name=txxm + '0')(WKvO)
WKvO = yHwh(KUnM, (1, 1), name=RKO_ + '1', **PLPF)(WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)",
"def mQG_(FRUf, Ot1W, KUnM, EtM5, yetk, FEri=(2, 2), wH3T='channels_last', HVS_=True):\n a5X0, hOiJ, M30N = KUnM\n RmTP = 'res' + str(EtM5) + yetk + '_branch'\n lPXw = 'bn' + str(EtM5) + yetk + '_branch'\n WKvO = G... | [
"0.754371",
"0.7060612",
"0.7043081",
"0.69984245",
"0.6913935",
"0.68654615",
"0.6839871",
"0.6827021",
"0.6823767",
"0.67977256",
"0.6794483",
"0.6773842",
"0.6742968",
"0.67385846",
"0.6723267",
"0.67199",
"0.6713653",
"0.67034614",
"0.66949296",
"0.6679553",
"0.6656035",
... | 0.6701542 | 18 |
The identity block is the block that has no conv layer at shortcut. Arguments | def aP6R(KUnM, EtM5, XkN1):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = GVKG(name=UIER + '0', **exGu)(FRUf)
WKvO = MroH('relu', name=txxm + '0')(WKvO)
WKvO = yHwh(KUnM // 2, (1, 1), name=RKO_ + '1', **PLPF)(WKvO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.71272004",
"0.7022438",
"0.6910338",
"0.68836653",
"0.68505627",
"0.68221945",
"0.6821999",
"0.680346",
"0.6799615",
"0.67849326",
"0.67714536",
"0.67158884",
"0.67146987",
"0.67137283",
"0.6664201",
"0.6624224",
"0.662218",
"0.662218",
"0.66078824",
"0.65984523",
"0.65485... | 0.6847176 | 5 |
The identity block is the block that has no conv layer at shortcut. Arguments | def ZucD(KUnM, EtM5, XkN1):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = GVKG(name=UIER + '1', **exGu)(FRUf)
WKvO = MroH('relu', name=txxm + '1')(WKvO)
WKvO = l2Dx(padding=(1, 1))(WKvO)
WKvO = yHwh(KUnM, (3, 3),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.7127304",
"0.70226824",
"0.69105184",
"0.68836373",
"0.6850498",
"0.68464863",
"0.6822095",
"0.6821457",
"0.6803604",
"0.67993164",
"0.6784702",
"0.6715633",
"0.6714348",
"0.6713607",
"0.6663853",
"0.66239524",
"0.6621875",
"0.6621875",
"0.6607414",
"0.6598225",
"0.6548092... | 0.6770701 | 11 |
The identity block is the block that has no conv layer at shortcut. Arguments | def cLl7(KUnM, EtM5, XkN1, FEri=(2, 2)):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = GVKG(name=UIER + '1', **exGu)(FRUf)
WKvO = MroH('relu', name=txxm + '1')(WKvO)
PWHU = WKvO
WKvO = l2Dx(padding=(1, 1))(WKvO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.71272004",
"0.7022438",
"0.6910338",
"0.68836653",
"0.68505627",
"0.6847176",
"0.68221945",
"0.6821999",
"0.680346",
"0.6799615",
"0.67849326",
"0.67714536",
"0.67158884",
"0.67146987",
"0.67137283",
"0.6664201",
"0.6624224",
"0.662218",
"0.662218",
"0.66078824",
"0.659845... | 0.0 | -1 |
The identity block is the block that has no conv layer at shortcut. Arguments | def k0T5(KUnM, EtM5, XkN1, FEri=(2, 2)):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = l2Dx(padding=(1, 1))(FRUf)
WKvO = yHwh(KUnM, (3, 3), strides=FEri, name=RKO_ + '1', **PLPF)(WKvO)
WKvO = GVKG(name=UIER + '2', **exGu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.71272004",
"0.7022438",
"0.6910338",
"0.68836653",
"0.68505627",
"0.6847176",
"0.68221945",
"0.6821999",
"0.680346",
"0.6799615",
"0.67849326",
"0.67714536",
"0.67158884",
"0.67146987",
"0.67137283",
"0.6664201",
"0.6624224",
"0.662218",
"0.662218",
"0.66078824",
"0.659845... | 0.0 | -1 |
The identity block is the block that has no conv layer at shortcut. Arguments | def u8Zx(KUnM, EtM5, XkN1, ZbWC=8):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = GVKG(name=UIER + '0', **exGu)(FRUf)
WKvO = MroH('relu', name=txxm)(WKvO)
WKvO = yHwh(KUnM // 2, (1, 1), name=RKO_ + '1', **PLPF)(WKvO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.71272004",
"0.7022438",
"0.6910338",
"0.68836653",
"0.68505627",
"0.6847176",
"0.68221945",
"0.6821999",
"0.680346",
"0.6799615",
"0.67849326",
"0.67714536",
"0.67158884",
"0.67146987",
"0.67137283",
"0.6664201",
"0.6624224",
"0.662218",
"0.662218",
"0.66078824",
"0.659845... | 0.59655523 | 40 |
The identity block is the block that has no conv layer at shortcut. Arguments | def DbMd(KUnM, EtM5, XkN1, ZbWC=8):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = GVKG(name=UIER + '0', **exGu)(FRUf)
WKvO = MroH('relu', name=txxm)(WKvO)
WKvO = yHwh(KUnM // 2, (1, 1), name=RKO_ + '1', **PLPF)(WKvO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.7127304",
"0.70226824",
"0.69105184",
"0.68836373",
"0.6850498",
"0.68464863",
"0.6822095",
"0.6821457",
"0.6803604",
"0.67993164",
"0.6784702",
"0.6770701",
"0.6715633",
"0.6714348",
"0.6713607",
"0.6663853",
"0.66239524",
"0.6621875",
"0.6621875",
"0.6607414",
"0.6598225... | 0.0 | -1 |
The identity block is the block that has no conv layer at shortcut. Arguments | def D5ve(KUnM, EtM5, XkN1, ZbWC=8):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = GVKG(name=UIER + '1', **exGu)(FRUf)
WKvO = MroH('relu', name=txxm + '1')(WKvO)
WKvO = l2Dx(padding=(1, 1))(WKvO)
WKvO = yHwh(KUnM,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.71272004",
"0.7022438",
"0.6910338",
"0.68836653",
"0.68505627",
"0.6847176",
"0.68221945",
"0.6821999",
"0.680346",
"0.6799615",
"0.67849326",
"0.67714536",
"0.67158884",
"0.67146987",
"0.67137283",
"0.6664201",
"0.6624224",
"0.662218",
"0.662218",
"0.66078824",
"0.659845... | 0.60076267 | 37 |
The identity block is the block that has no conv layer at shortcut. Arguments | def ajoF(KUnM, EtM5, XkN1, FEri=(2, 2), ZbWC=8):
def gEmA(FRUf):
PLPF = bWJn()
exGu = SdeN()
RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)
WKvO = GVKG(name=UIER + '1', **exGu)(FRUf)
WKvO = MroH('relu', name=txxm + '1')(WKvO)
PWHU = WKvO
WKvO = l2Dx(padding=(1, 1)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.71272004",
"0.7022438",
"0.6910338",
"0.68836653",
"0.68505627",
"0.6847176",
"0.68221945",
"0.6821999",
"0.680346",
"0.6799615",
"0.67849326",
"0.67714536",
"0.67158884",
"0.67146987",
"0.67137283",
"0.6664201",
"0.6624224",
"0.662218",
"0.662218",
"0.66078824",
"0.659845... | 0.0 | -1 |
Returns the default collector settings | def yDgW(YKHO):
GPtr = super(uDGd, YKHO).get_default_config()
GPtr.update({'path': '.', 'scripts_path': '/etc/diamond/user_scripts/', 'method': 'Threaded'})
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDgW(YKHO):\n GPtr = super(leyK, YKHO).get_default_config()\n GPtr.update({'enabled': 'True', 'fs': ',', 'timeout': 300})\n return GPtr",
"def qimH():\n return {}",
"def yDgW(YKHO):\n GPtr = super(iwOa, YKHO).get_default_config()\n GPtr.update({'url': lMln, 'path': 'dropwizard'})\n ret... | [
"0.7051504",
"0.70081085",
"0.6949213",
"0.67133325",
"0.65743",
"0.6530999",
"0.6521596",
"0.65153503",
"0.64666075",
"0.64476866",
"0.6413572",
"0.6397821",
"0.6380573",
"0.6368372",
"0.6357416",
"0.6351892",
"0.6331843",
"0.63120425",
"0.62354094",
"0.6231949",
"0.62074935... | 0.587527 | 49 |
Voice Play the next song in the queue. Accepts no arguments. | def IcYP(YKHO, tvqc):
YKHO.pre_check(tvqc)
if tvqc.author.id not in YKHO.cool_down['general'] or ITS7() - YKHO.cool_down['general'][tvqc.author.id] >= 2:
YKHO.get_player(tvqc.guild.id).skip()
YKHO.cool_down['general'][tvqc.author.id] = ITS7()
else:
DQFW = round(ZjSO(2 - (ITS7() - YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def play(YKHO, OaeV, *, i34x: str):\n QTBn = YKHO.get_voice_state(OaeV.message.server)\n VKhi = {'default_search': 'ytsearch', 'quiet': True}\n if QTBn.voice is None:\n nyyK = await OaeV.invoke(YKHO.summon)\n if not nyyK:\n return\n if QTBn.voice.channel != OaeV.message.a... | [
"0.71854866",
"0.7116944",
"0.69287676",
"0.6867975",
"0.677823",
"0.6712081",
"0.66847193",
"0.6683627",
"0.66687655",
"0.6661358",
"0.66608906",
"0.66580075",
"0.66245365",
"0.66217434",
"0.6613146",
"0.6613146",
"0.6595063",
"0.65922534",
"0.6574445",
"0.6485049",
"0.64724... | 0.0 | -1 |
Voice Get information about next queued song. Accepts no arguments. | def YQaX(YKHO, tvqc):
YKHO.pre_check(tvqc)
if not YKHO.get_player(tvqc.guild.id).queue:
return tvqc.channel.send_message("There aren't any songs queued.")
Fjqf = YKHO.get_ytdl_values(YKHO.get_player(tvqc.guild.id).queue[0].metadata)
tvqc.channel.send_message('Next in queue is ``{}`` by ``{}`` wi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def puku():\n try:\n uHZg = gGq6.getSong()\n ItTU()\n eWx0(uHZg)\n return qQXR.dumps(uHZg.to_dict())\n except IndexError as e:\n return qQXR.dumps({'error': 'No songs in the queue'})",
"def puku(YKHO):\n if YKHO.timestamp:\n RA_F = qcWV.datetime.now() - YKHO.tim... | [
"0.7528458",
"0.6910447",
"0.68040365",
"0.63107395",
"0.63067645",
"0.627678",
"0.6212034",
"0.6185695",
"0.6137425",
"0.61039096",
"0.6087242",
"0.60314745",
"0.6030844",
"0.60241926",
"0.600748",
"0.5967641",
"0.59300333",
"0.58726114",
"0.5847199",
"0.58364683",
"0.581738... | 0.65402305 | 3 |
Returns total amount received on your account | def s7rG(YKHO, NArs=None):
return YKHO.get(f'{YKHO.gateway_path}/totals', NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMl7(YKHO):\n NcOf = 0\n for ZfUD in YKHO.ledger:\n NcOf += ZfUD['amount']\n return NcOf",
"def qBlJ(YKHO):\n return sum(YKHO.paid)",
"def A_pa(YKHO):\n mq4h = L9Jq.objects.filter(email=YKHO.email).aggregate(zphJ('total_price')).get('total_price__sum')\n return round(mq4h, 4) if mq... | [
"0.7104757",
"0.7069385",
"0.6880987",
"0.68749225",
"0.68589234",
"0.6857937",
"0.6842639",
"0.68081063",
"0.67907584",
"0.67608845",
"0.6741547",
"0.6711796",
"0.6690905",
"0.6689272",
"0.6676667",
"0.661183",
"0.6594401",
"0.6575686",
"0.65718985",
"0.6565763",
"0.6565763"... | 0.0 | -1 |
return the index corresponding at the first occurence of value in list | def d6pt(Uj1v, BWXx):
for P2GO in range(len(Uj1v)):
if Uj1v[P2GO] == BWXx:
return P2GO
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO, BWXx):\n YKHO.__validate_value(BWXx)\n for d6pt, Ty9i in enumerate(YKHO.__list):\n if Ty9i == BWXx:\n return d6pt",
"def jZnZ(wEf2, yv6U):\n d6pt = 0\n for ZfUD in yv6U:\n if ZfUD > wEf2:\n return d6pt\n d6pt += 1\n return d6pt - 1",
"def... | [
"0.7666883",
"0.75553674",
"0.75322366",
"0.73974407",
"0.7306116",
"0.72406524",
"0.71949124",
"0.71868026",
"0.7173489",
"0.71538794",
"0.71089154",
"0.7069118",
"0.7064808",
"0.70324296",
"0.7016907",
"0.70150346",
"0.69772476",
"0.69540596",
"0.69502425",
"0.69284594",
"0... | 0.81286085 | 0 |
method to set the name of the output_database | def VCg_(YKHO, gIsw):
try:
YKHO.object_database = gIsw
YKHO.filepath_output_database = Hy7s.path.join(YKHO.filepath, YKHO.output_database)
print('set output_database filename to', gIsw)
except:
print('setting object database failed')
YKHO.output_database = 'Output_databas... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N5CR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'database_name')",
"def s0ar(YKHO):\n raise NotImplementedError",
"def zndY(YKHO):\n return Fv2L.db_name",
"def W0tD(YKHO) -> str:\n return YKHO.dbname",
"def wnys(YKHO, wnys):\n YKHO._db_name = wnys",
"def N5CR(YKHO) -> str:\n ... | [
"0.71581715",
"0.7139252",
"0.70207834",
"0.6973042",
"0.6896915",
"0.6870785",
"0.6853191",
"0.6820632",
"0.668634",
"0.6684695",
"0.6680187",
"0.66756105",
"0.66751665",
"0.66531605",
"0.6643873",
"0.66307545",
"0.6598226",
"0.65926546",
"0.6548423",
"0.65220237",
"0.640572... | 0.8193771 | 0 |
Creates a GetGroupMessage from a protobuf As a requirement of all objects which inherit from Serializable, this method transforms a protobuf object into an instance of this class. | def aFLm(mLim: GetGroupMessage_PB) -> 'GetGroupMessage':
return C46p(msg_id=vodS(blob=mLim.msg_id), address=vodS(blob=mLim.address), content=qQXR.loads(mLim.content), reply_to=vodS(blob=mLim.reply_to)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFLm(mLim: CreateGroupMessage_PB) -> 'CreateGroupMessage':\n return eO3o(msg_id=vodS(blob=mLim.msg_id), address=vodS(blob=mLim.address), content=qQXR.loads(mLim.content), reply_to=vodS(blob=mLim.reply_to))",
"def hmiq(YKHO) -> o2P0:\n return o2P0(msg_id=Napc(YKHO.id), address=Napc(YKHO.address), conten... | [
"0.8065173",
"0.8059963",
"0.80385315",
"0.7838053",
"0.78343934",
"0.7728165",
"0.772733",
"0.76612204",
"0.75730646",
"0.75216293",
"0.7501986",
"0.7421604",
"0.7359245",
"0.7337106",
"0.72288305",
"0.71763164",
"0.70391303",
"0.70110816",
"0.68666184",
"0.68378156",
"0.645... | 0.8384033 | 0 |
Sets the prev link for the node. | def aWbR(YKHO):
return YKHO.prev | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQKu(YKHO, THkp):\n YKHO.prev = THkp",
"def THkp(YKHO, THkp):\n YKHO._prev = THkp",
"def OxtZ(YKHO, XP5J) -> None:\n YKHO.prev = XP5J",
"def GQKu(YKHO, LdCb):\n YKHO.prev = LdCb",
"def v_yT(YKHO, v_yT):\n YKHO._prev_page_url = v_yT",
"def kqEM(YKHO: Self, tvqc: Event=None) -> None:\n ... | [
"0.7875985",
"0.7465448",
"0.7228299",
"0.7093982",
"0.7074755",
"0.6893062",
"0.68524987",
"0.67959595",
"0.668916",
"0.6375687",
"0.6178108",
"0.61040765",
"0.60961574",
"0.6089415",
"0.6055914",
"0.5996824",
"0.5947542",
"0.59411544",
"0.5934224",
"0.59309167",
"0.5916836"... | 0.5934818 | 18 |
Sets the prev link for the node. | def GQKu(YKHO, THkp):
YKHO.prev = THkp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def THkp(YKHO, THkp):\n YKHO._prev = THkp",
"def OxtZ(YKHO, XP5J) -> None:\n YKHO.prev = XP5J",
"def GQKu(YKHO, LdCb):\n YKHO.prev = LdCb",
"def v_yT(YKHO, v_yT):\n YKHO._prev_page_url = v_yT",
"def kqEM(YKHO: Self, tvqc: Event=None) -> None:\n Z9rn = YKHO\n Z9rn.nodeHistory.goPrev()",
... | [
"0.7465448",
"0.7228299",
"0.7093982",
"0.7074755",
"0.6893062",
"0.68524987",
"0.67959595",
"0.668916",
"0.6375687",
"0.6178108",
"0.61040765",
"0.60961574",
"0.6089415",
"0.6055914",
"0.5996824",
"0.5947542",
"0.59411544",
"0.5934818",
"0.5934224",
"0.59309167",
"0.5916836"... | 0.7875985 | 0 |
Replace the graph of the given GraphModule with one that contains the same nodes as the original, but in topologically sorted order. This is used by the merge_matmul transformation below, which disturbs the topologically sorted order of its input GraphModule, so that this order is restored before further transformation... | def JQdN(Ggxb: pippy.fx.GraphModule) -> nkEY.fx.GraphModule:
Ehtq = {Q6kx: 0 for Q6kx in Ggxb.graph.nodes}
pIsY = nkEY.fx.Graph()
for Q6kx in Ggxb.graph.nodes:
for CBIr in Q6kx.users:
Ehtq[CBIr] += 1
gGq6: g760.deque = g760.deque()
for Q6kx in Ggxb.graph.nodes:
if Ehtq[Q6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JjfT(YKHO):\n YKHO._topological_order = YKHO._input_nodes[:]\n YKHO.sorted = False",
"def SZFh(Oa1e):\n K907 = min(Oa1e.nodes)\n WGD4 = max(Oa1e.nodes)\n if K907 == 0 and WGD4 == Oa1e.number_of_nodes() - 1:\n return Oa1e\n Ziit = sorted(Oa1e.nodes)\n YHSm = {kUuO: or8S for or8S, k... | [
"0.6281253",
"0.6020051",
"0.5968213",
"0.5939152",
"0.5891148",
"0.587402",
"0.57739174",
"0.57242393",
"0.5655821",
"0.56404704",
"0.56368893",
"0.56269574",
"0.56102455",
"0.5603213",
"0.55983084",
"0.5588909",
"0.5579634",
"0.5571751",
"0.55631703",
"0.5544777",
"0.554143... | 0.62657577 | 1 |
Determine which FA environment (Dev/Uat/Prod) the script is running in. Returns the specified path contained in the FExtensionValue which differs for each environment. Also retrieves the list of trade filters separated by ';' in the FExtensionValue config file. | def v0Ab(XcGs, n6h0):
global path, filter_list_from_config
ad4u = CmGq.FDhDatabase['ADM'].ADSNameAndPort().upper()
wOGa = CmGq.GetDefaultValueFromName(CmGq.GetDefaultContext(), CmGq.FObject, XcGs)
tBJJ = CmGq.GetDefaultValueFromName(CmGq.GetDefaultContext(), CmGq.FList, n6h0).split(';')
uhNB = QToG.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAao():\n sEAN = Hy7s.getenv('CONDA_ENVNAME')\n if not sEAN:\n sEAN = Hy7s.getenv('CONDA_DEFAULT_ENV')\n M4N3 = Hy7s.getenv('PYTHONPATH')\n if M4N3:\n try:\n TeYp = Hy7s.listdir(M4N3)\n except FileNotFoundError:\n bo34.debug('No dev folder found')\n ... | [
"0.5488771",
"0.52747124",
"0.52578723",
"0.5231717",
"0.51516294",
"0.50663215",
"0.506381",
"0.5058923",
"0.505804",
"0.49744675",
"0.49618024",
"0.4936943",
"0.48768833",
"0.48471853",
"0.48470667",
"0.4840807",
"0.48290032",
"0.47938055",
"0.4790978",
"0.47902945",
"0.478... | 0.6358428 | 0 |
initialize the dictionary structure. | def w4yH():
for cAx9 in tBJJ:
try:
F56W = CmGq.FTradeSelection[cAx9]
cVmF.append(F56W)
oqBF(F56W)
except Exception:
vEqo, wp7m, Tobl = HwRy.exc_info()
RKD7(vEqo)
RKD7(wp7m)
RKD7(Tobl.tb_lineno) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.dict = {}",
"def FIMM(YKHO):\n YKHO.dict = {}",
"def FIMM(YKHO, dict):\n YKHO.dict = dict",
"def FIMM(YKHO, dict):\n YKHO.dict = dict",
"def FIMM(YKHO):\n YKHO.dictionary = None",
"def FIMM(YKHO):\n YKHO.dic = {}",
"def FIMM(YKHO):\n YKHO.dic = {}",
"def FI... | [
"0.76089376",
"0.76089376",
"0.7508111",
"0.7508111",
"0.745744",
"0.7422544",
"0.7417321",
"0.7417321",
"0.7382122",
"0.7361919",
"0.7361919",
"0.7361919",
"0.7361919",
"0.73564655",
"0.7314578",
"0.73127544",
"0.72841823",
"0.7283625",
"0.7282861",
"0.7256283",
"0.72472054"... | 0.0 | -1 |
This renders the home page. | def kZiy(QePW):
t0xh = {}
YvUd = FYrf.Teacher.objects.filter(user=QePW.user).first()
t0xh.update(n5q8.get_emp_info(YvUd))
return _1tc(QePW, 'home.html', t0xh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.8908748",
"0.8750969",
"0.87306887",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.86931294",
"0.8677446",
... | 0.0 | -1 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Y8eF, aMgO, KndY=None, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
if KndY is not None:
KndY = KndY[OrFa(Y8eF, aM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.0 | -1 |
Return the name of the Hikvision sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO) -> str:\n return f'{Y... | [
"0.8268713",
"0.8237671",
"0.78250563",
"0.76772547",
"0.75464255",
"0.7545106",
"0.74908656",
"0.7388705",
"0.7388686",
"0.73761815",
"0.72924775",
"0.71507454",
"0.704222",
"0.7000588",
"0.6804253",
"0.67127144",
"0.67098206",
"0.6688464",
"0.6660511",
"0.6660511",
"0.66605... | 0.0 | -1 |
Return true if sensor is on. | def Debg(YKHO):
return YKHO._sensor_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debg(YKHO):\n return getattr(YKHO.coordinator.data[0], YKHO._sensor) is True",
"def Debg(YKHO):\n nPrm = YKHO.sensor_data\n if nPrm and nPrm['model'] == 'SML' and nPrm['changed']:\n return nPrm['state'] == _rDc\n return False",
"def Debg(YKHO) -> bool:\n return YKHO._device.is_on",
... | [
"0.8668819",
"0.83718693",
"0.8321358",
"0.82086754",
"0.82086754",
"0.82086754",
"0.8072303",
"0.79461884",
"0.78692335",
"0.78692335",
"0.78290933",
"0.77697575",
"0.7760602",
"0.76900584",
"0.7629474",
"0.7626312",
"0.7625873",
"0.757377",
"0.7554073",
"0.75531846",
"0.752... | 0.88761306 | 0 |
Return the class of this sensor, from DEVICE_CLASSES. | def rM2U(YKHO):
try:
return JXrw[YKHO._sensor]
except KeyError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO.sensor_type['class']",
"def rM2U(YKHO):\n return MQ2o.get(YKHO.sensor_data['model'])",
"def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')",
"def rM2U(YKHO):\n if YKHO.sensor_class in MQ2o:\n return YKHO.sensor_class\n return None",
"def rM... | [
"0.9062012",
"0.8947314",
"0.8809003",
"0.87462795",
"0.87445956",
"0.87445956",
"0.873263",
"0.87101674",
"0.85638815",
"0.85638815",
"0.85526353",
"0.84336495",
"0.84305036",
"0.83888704",
"0.8281369",
"0.82692766",
"0.8168396",
"0.8107814",
"0.80006665",
"0.7911548",
"0.78... | 0.83166206 | 14 |
Return the state attributes. | def TzCU(YKHO):
hkS8 = {m31z: YKHO._sensor_last_update()}
if YKHO._delay != 0:
hkS8[eijW] = YKHO._delay
return hkS8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953056",
"0.8953056",
"0.8524094",
"0.83673775",
"0.83673775",
"0.83637255",
"0.8335954",
"0.83349335",
"0.8310754",
"0.8291855",
"0.828953",
"0.828953",
"0.82875603",
"0.82875603",
"0.82875603",
"0.82875603",
"0.82875603",
"0.82875603",
"0.82875603",
"0.82875603",
"0.828... | 0.0 | -1 |
Creating flask app and setting all modeuls and config. | def LUif():
GPtr = SfBL[Hy7s.getenv('APP_SETTINGS', 'dev')]
H6Ho = L2w0(__name__, static_folder=None, instance_relative_config=True)
H6Ho.config.from_object(GPtr)
with H6Ho.app_context():
FYSm = atqz(H6Ho)
from app.models import db, ma
db.init_app(H6Ho)
Lryc(H6Ho, db)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongodb://localhost/opc_integrity'})\n aTj0(YKHO.app)\n iAwL.init_app(YKHO.app)",
"def LUif():\n P4t4 = L2w0(__name__)\n P4t4.c... | [
"0.862719",
"0.8351689",
"0.8347321",
"0.8346519",
"0.83345604",
"0.8300351",
"0.8289072",
"0.82784265",
"0.8225128",
"0.8211296",
"0.8185404",
"0.8164446",
"0.8142924",
"0.8129862",
"0.80871683",
"0.8087077",
"0.8070512",
"0.8064273",
"0.80463356",
"0.8019652",
"0.80069155",... | 0.81871897 | 10 |
Traverse through the entire BTree to calculate the number of nodes it has. | def tIln(Kt_s):
exwG = 1
if Kt_s.isLeaf:
return exwG
for YRbF in range(len(Kt_s.child)):
exwG += tIln(Kt_s.child[YRbF])
return exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kytq(YKHO):\n if YKHO.children is None:\n return 0\n pcsc = 0\n for aUGN in YKHO.children:\n if aUGN is None:\n return 0\n KSzm = aUGN.count_nodes()\n pcsc = pcsc + KSzm\n return pcsc + 1",
"def Kytq(YKHO):\n if YKHO.is_empty():\n return 0\n eli... | [
"0.8126878",
"0.78849125",
"0.7833212",
"0.78316116",
"0.7772799",
"0.77459306",
"0.77308065",
"0.7716238",
"0.7689622",
"0.7682001",
"0.767653",
"0.76338",
"0.74925274",
"0.7490429",
"0.7453843",
"0.73934203",
"0.7377626",
"0.7375549",
"0.73751295",
"0.73481226",
"0.7330711"... | 0.8063285 | 1 |
Test case for create_response_descriptor_subscriptions_subscription_subscription_resource | def jgo2(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qnwk(YKHO):\n pass",
"def MR7O(YKHO):\n pass",
"def T2YW(YKHO):\n pass",
"def IDyM(YKHO):\n pass",
"def yzE1(YKHO):\n pass",
"def pFo4(YKHO):\n pass",
"def vXRW(YKHO, geh0: pubsub.Subscription) -> c6QV.Subscription:\n return geh0",
"def VZXE(YKHO):\n pass",
"def A5s6(YKH... | [
"0.87412554",
"0.8588088",
"0.83379585",
"0.82308966",
"0.7775794",
"0.7608592",
"0.7605677",
"0.75500727",
"0.7347543",
"0.7300998",
"0.7060672",
"0.70161843",
"0.69488347",
"0.69302607",
"0.6744745",
"0.6676874",
"0.66014934",
"0.65724623",
"0.64912724",
"0.6457783",
"0.640... | 0.94596004 | 0 |
Test case for create_response_descriptor_subscriptions_subscription_subscription_resource_spaces | def MR7O(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yzE1(YKHO):\n pass",
"def ikK6(YKHO):\n pass",
"def A5s6(YKHO):\n pass",
"def jgo2(YKHO):\n pass",
"def sxAq(YKHO):\n pass",
"def JHpr(YKHO):\n pass",
"def Qnwk(YKHO):\n pass",
"def T2YW(YKHO):\n pass",
"def PakD(YKHO):\n pass",
"def IDyM(YKHO):\n pass",
"def r... | [
"0.87898076",
"0.84957993",
"0.84469354",
"0.8135916",
"0.8024415",
"0.75330555",
"0.74872947",
"0.72072065",
"0.7170737",
"0.7123899",
"0.7024082",
"0.6879563",
"0.68744624",
"0.66875726",
"0.6547886",
"0.6496468",
"0.6405576",
"0.62375563",
"0.62205213",
"0.62015754",
"0.61... | 0.94430006 | 0 |
Test case for list_all_response_descriptor_subscriptions_subscription_subscription_resource | def pFo4(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxAq(YKHO):\n pass",
"def T2YW(YKHO):\n pass",
"def jgo2(YKHO):\n pass",
"def Qnwk(YKHO):\n pass",
"def IDyM(YKHO):\n pass",
"def A5s6(YKHO):\n pass",
"def MR7O(YKHO):\n pass",
"def ikK6(YKHO):\n pass",
"def yzE1(YKHO):\n pass",
"def dBQ1(YKHO, geh0: pubsub.ListSubs... | [
"0.8672392",
"0.80634016",
"0.7963346",
"0.79525554",
"0.7950173",
"0.762874",
"0.75751597",
"0.75354266",
"0.75185573",
"0.7085981",
"0.7015135",
"0.6927433",
"0.6609123",
"0.6608625",
"0.65717506",
"0.64721626",
"0.6449704",
"0.6410992",
"0.6408065",
"0.63710225",
"0.632791... | 0.94718015 | 0 |
Test case for modify_response_descriptor_subscriptions_subscription_subscription_resource | def Qnwk(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jgo2(YKHO):\n pass",
"def yzE1(YKHO):\n pass",
"def T2YW(YKHO):\n pass",
"def IDyM(YKHO):\n pass",
"def MR7O(YKHO):\n pass",
"def O97i(YKHO):\n pass",
"def pFo4(YKHO):\n pass",
"def ro2c(YKHO, geh0: pubsub.Subscription) -> c6QV.Subscription:\n return geh0",
"def ikK6(YKH... | [
"0.8563571",
"0.84658855",
"0.8058546",
"0.80224764",
"0.7713785",
"0.75516945",
"0.7453322",
"0.7192042",
"0.71334755",
"0.71012443",
"0.70175844",
"0.7000383",
"0.6748506",
"0.6710934",
"0.6697179",
"0.66575694",
"0.66456854",
"0.6641054",
"0.6612385",
"0.6570631",
"0.65649... | 0.9448674 | 0 |
Add a member to a group, by an existing group member. | def jMLr(YKHO, tvqc):
TBsA = tvqc['body']
TBsA = qQXR.loads(TBsA)
XkHx = ['group_id', 'new_user_id']
for eHNT in XkHx:
if eHNT not in TBsA:
return HkI3('POST body missing field {}'.format(eHNT))
hE03 = TBsA['group_id']
PQCy = TBsA['new_user_id']
CBIr = YKHO.mealShareUsers... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iWd6(YKHO, hE03, ywNk):\n mgb7 = {}\n if hE03 is not None:\n mgb7['groupId'] = YKHO._serialize.url('group_id', hE03, 'str')\n if ywNk is not None:\n mgb7['memberId'] = YKHO._serialize.url('member_id', ywNk, 'str')\n YKHO._send(http_method='PUT', location_id='45a36e53-5286-4518-aa72-2d... | [
"0.80759203",
"0.7781975",
"0.770071",
"0.7675795",
"0.759767",
"0.7432633",
"0.7386738",
"0.73069775",
"0.7115192",
"0.7030641",
"0.6992207",
"0.6979588",
"0.69104636",
"0.68972623",
"0.6890155",
"0.6796194",
"0.66509473",
"0.6607152",
"0.66037047",
"0.6538465",
"0.6519908",... | 0.6159286 | 37 |
Converting pixels from BGR (Red, Green, Blue) to YCrCb (luma, bluedifference, reddifference) | def hi_w(kHnP: np.ndarray) -> oyIN.ndarray:
return oyIN.apply_along_axis(WEdg, 2, kHnP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sID3(NE89):\n LVAh = NE89[..., 0]\n P6bq = NE89[..., 1]\n Ty9i = NE89[..., 2]\n Mkmy = LVAh + 1.14 * Ty9i\n Oa1e = LVAh - 0.396 * P6bq - 0.581 * Ty9i\n Fg_i = LVAh + 2.029 * P6bq\n KnMA = oyIN.stack((Mkmy, Oa1e, Fg_i), axis=2)\n KnMA = oyIN.clip(KnMA, 0, 1)\n return KnMA",
"def dr4... | [
"0.73401994",
"0.72443944",
"0.7191258",
"0.6968075",
"0.69310284",
"0.68717015",
"0.6746351",
"0.6573021",
"0.6481176",
"0.64723957",
"0.6445774",
"0.6442767",
"0.6418211",
"0.6372011",
"0.6353601",
"0.6352888",
"0.6323306",
"0.62929225",
"0.6268779",
"0.6262479",
"0.6217953... | 0.0 | -1 |
Return if the plugin is available for loading. If a plugin is missing dependencies or for some other reason should not be available to the current system it should override this property and return False to exclude itself from the plugin list. | def yWbd(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qPgS(YKHO, t0qN):\n return YKHO._get_name(t0qN) in YKHO.loaded_plugins",
"def BYNO(YKHO, mWFP: str) -> bool:\n return mWFP in YKHO._plugins",
"def BYNO(YKHO, LYOs):\n return LYOs in YKHO.plugins.values_list('name', flat=True)",
"def XRdS(YKHO):\n return YKHO.__plugin_enabled_by_default",
"d... | [
"0.7220657",
"0.7182119",
"0.7025559",
"0.6910154",
"0.689142",
"0.6865923",
"0.6846862",
"0.68416315",
"0.6709156",
"0.6687168",
"0.65706414",
"0.65523076",
"0.6530908",
"0.65000683",
"0.64809287",
"0.64012355",
"0.63563097",
"0.63315696",
"0.6328762",
"0.63147926",
"0.62802... | 0.6098247 | 38 |
Uses a given batch dictionary and domain kwargs to obtain a SqlAlchemy column object. | def cbIR(YKHO, nf4a: Dict, e9Yr: Union[str, MetricDomainTypes], bDt5: Optional[Iterable[str]]=None) -> AzJI[YWgH, dict, dict]:
e9Yr = Lmkh(e9Yr)
S0S4 = nf4a.get('batch_id')
if S0S4 is None:
if YKHO.active_batch_data:
pyRJ = YKHO.active_batch_data
else:
raise V7MM('No ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iVRZ(YKHO, zrIJ=None):\n if zrIJ is None:\n return YKHO.col.copy()\n else:\n return YKHO.col.convert_to(zrIJ)",
"def krEo(YEnM, hkxX):\n for Z9rn in YEnM.__table__.columns:\n if Z9rn.name in hkxX:\n setattr(YEnM, Z9rn.name, hkxX[Z9rn.name])\n return YEnM",
"def F... | [
"0.5431496",
"0.5401011",
"0.5268713",
"0.5224346",
"0.5138979",
"0.5074222",
"0.5069668",
"0.4973821",
"0.49038166",
"0.48214892",
"0.48129463",
"0.48129117",
"0.4805565",
"0.47794953",
"0.47447672",
"0.47046596",
"0.46708152",
"0.46705273",
"0.46506712",
"0.46404663",
"0.46... | 0.5133917 | 5 |
"0x58, 0x59, 0x01, 0x00, 0x00" => [0x58, 0x59, 0x01, 0x00, 0x00] | def dDNz(wdHe: str) -> x1iM[int]:
return eval(f'[{wdHe}]') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1TO(YKHO):\n return [''.join(['{:02X}'.format(Fg_i) for Fg_i in nPrm]) for nPrm in YKHO.buffers()]",
"def AFH1(LaVg):\n gLJO = LaVg.raw.decode().rstrip('\\x00')\n return gLJO.split(', ')",
"def hXJW(nPrm: str, tJs9: bool=False) -> list:\n BSLH = int(len(tzig(nPrm)) / 2)\n yfWe = 8\n if t... | [
"0.65582275",
"0.63307226",
"0.6290027",
"0.6262765",
"0.61640704",
"0.6160979",
"0.6156085",
"0.61130404",
"0.610784",
"0.60554963",
"0.6033458",
"0.5946255",
"0.5939836",
"0.58945185",
"0.5894092",
"0.5832303",
"0.5822892",
"0.58158875",
"0.58045244",
"0.580421",
"0.5776219... | 0.6725189 | 0 |
Test being able to unload an entry. | async def test_unload_entry(RUgX, XMKQ):
bTKY = await diUs(RUgX, XMKQ, dN7b)
JoW9 = RUgX.states.get(cdGJ)
assert JoW9
assert JoW9.state == PXJg
await RUgX.services.async_call(dN7b, rE7v, {TYBi: cdGJ}, blocking=True)
getattr(XMKQ.robots[0], 'start_cleaning').assert_called_once()
assert await ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_unload_entry(RUgX, IVB5):\n bTKY = await OSs1(RUgX)\n assert len(RUgX.config_entries.async_entries(Sugg)) == 1\n assert bTKY.state is gpxd.LOADED\n assert await RUgX.config_entries.async_unload(bTKY.entry_id)\n await RUgX.async_block_till_done()\n assert bTKY.state is gpxd.NOT_LOAD... | [
"0.77138734",
"0.76933795",
"0.74769473",
"0.7384423",
"0.7349679",
"0.73169553",
"0.7288968",
"0.72645843",
"0.72513765",
"0.7182948",
"0.713809",
"0.6820462",
"0.6797362",
"0.6791803",
"0.6683401",
"0.6641027",
"0.66159004",
"0.6594395",
"0.6540514",
"0.64573026",
"0.645170... | 0.720308 | 9 |
dictionary of all default parameters (key=param name). Note that defaults are generally only stored for parameters where the default is different from the configured value | def MK0Q(YKHO, WJ2U):
return YKHO._default_parameters.get(WJ2U, {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oEP7(Emd4):\n return Emd4._Parameters.__new__.__defaults__",
"def OqPV(YKHO):\n NArs = {}\n for XP5J in YKHO.DEFAULT_VALUES.keys():\n NArs[XP5J] = getattr(YKHO, XP5J)\n return NArs",
"def muwo() -> dict:\n pass",
"def c3_8(YKHO):\n _fHq = {}\n qIxc, K9vJ, peBr, muwo = tq_1.get... | [
"0.79437476",
"0.7881707",
"0.77220637",
"0.76504976",
"0.76182073",
"0.756907",
"0.7555116",
"0.7548557",
"0.7531213",
"0.7496584",
"0.7451419",
"0.7296076",
"0.72916055",
"0.72622734",
"0.72622734",
"0.72486615",
"0.7164347",
"0.71471405",
"0.7126808",
"0.7124386",
"0.71238... | 0.76477087 | 4 |
get a specific dataset. | def dD7q(YKHO, mWFP, shCG=0):
return [LihS for LihS in YKHO._data_list if LihS.name == mWFP and LihS.multi_id == shCG][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dD7q(YKHO):\n return gMbG.get_dataset(YKHO.dataset_id)",
"def dD7q(YKHO, c55i):\n return YKHO.session.query(YKHO.Dataset).get(c55i)",
"def NMoC(id: str) -> uy3w:\n pass",
"def NMoC(YKHO, mWFP):\n assert mWFP, 'Must input a valid dataset name.'\n return YKHO.manager.get_data(mWFP)",
"def ... | [
"0.7955141",
"0.7826601",
"0.7670849",
"0.760219",
"0.7440116",
"0.7433901",
"0.73345757",
"0.7322343",
"0.72858053",
"0.7252087",
"0.7180746",
"0.7176037",
"0.71597934",
"0.71402335",
"0.71210235",
"0.7117107",
"0.711563",
"0.7065056",
"0.7016815",
"0.7013039",
"0.7009789",
... | 0.6579869 | 35 |
Assert that a valid CO type amendment statement returns a 200 status. | def hUOV(cuiw, x0hE, DvJO):
wk5E.config.update(PAYMENT_SVC_URL=Zsch)
nLDc = joVT(cuiw, x0hE, DvJO)
assert nLDc.status_code == qed_.CREATED
assert nLDc.json['baseRegistrationNumber']
GPj6 = nLDc.json['baseRegistrationNumber']
zgjV = jth9.deepcopy(Yd1S)
zgjV['baseRegistrationNumber'] = GPj6
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnmA(YKHO):\n wZFD = JBvl(YKHO)\n YKHO.assertEqual(wZFD, '200')",
"def Z5ZI(YKHO):\n rX_l = Wgev('python')\n YKHO.assertEqual(rX_l, 200)",
"def aV5Y(YKHO):\n YKHO.assertNot(isinstance(YKHO._request(YKHO._make_dummy_notification([E7Qx, r3kZ])), int))",
"def Z5ZI(YKHO):\n assert YKHO.deta... | [
"0.6761491",
"0.6702015",
"0.6561934",
"0.65322626",
"0.64473075",
"0.631492",
"0.6283017",
"0.6236529",
"0.6227647",
"0.6190859",
"0.61854064",
"0.6174831",
"0.61590624",
"0.61475474",
"0.61203253",
"0.6095389",
"0.6056882",
"0.60532194",
"0.60359067",
"0.5995723",
"0.599545... | 0.5729343 | 48 |
Assert that a valid AM type amendment statement returns a 200 status. | def LOuv(cuiw, x0hE, DvJO):
wk5E.config.update(PAYMENT_SVC_URL=Zsch)
nLDc = joVT(cuiw, x0hE, DvJO)
assert nLDc.status_code == qed_.CREATED
assert nLDc.json['baseRegistrationNumber']
GPj6 = nLDc.json['baseRegistrationNumber']
zgjV = jth9.deepcopy(Yd1S)
zgjV['baseRegistrationNumber'] = GPj6
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnmA(YKHO):\n wZFD = JBvl(YKHO)\n YKHO.assertEqual(wZFD, '200')",
"def Z5ZI(YKHO):\n rX_l = Wgev('python')\n YKHO.assertEqual(rX_l, 200)",
"def mCz5(cuiw, x0hE, DvJO, QoB4, Tf5Y, jGRS, KISn, JTXy, GPj6):\n wk5E.config.update(AUTH_SVC_URL=p4iT)\n MOPg = None\n if jGRS == qed_.UNAUTHORIZ... | [
"0.6372946",
"0.63325983",
"0.63275206",
"0.62338895",
"0.62029874",
"0.61930406",
"0.6110963",
"0.60898936",
"0.6039467",
"0.59729207",
"0.5962532",
"0.59578514",
"0.5945757",
"0.59246397",
"0.5898609",
"0.5855304",
"0.5838366",
"0.58124256",
"0.58041656",
"0.57992774",
"0.5... | 0.5846508 | 16 |
Test showing the page of all offers. | def Bk5X(YKHO):
Aofo = YKHO.client.get('/offers_show_every')
YKHO.assertEqual(Aofo.status, '200 OK')
YKHO.assertIn(b'Offers', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XGNI(YKHO):\n pass",
"def Wqz1(YKHO, TZJB):\n TZJB.return_value = j7O8\n Aofo = YKHO.client.get(f'/offers/{h0Wu}')\n YKHO.assertEqual(Aofo.status, '200 OK')\n YKHO.assertIn(b'Description', Aofo.data)",
"def yWpt(YKHO):\n bD7m = gxEw('shipping.views.index')\n geh0 = YKHO.client.get(bD7m... | [
"0.72028357",
"0.63975585",
"0.6307497",
"0.6142342",
"0.6118828",
"0.6108139",
"0.6106805",
"0.61000824",
"0.60947084",
"0.6088211",
"0.6061273",
"0.6035597",
"0.6009674",
"0.5989309",
"0.59431523",
"0.59197736",
"0.5881938",
"0.5876856",
"0.5876462",
"0.58678347",
"0.582831... | 0.78508234 | 0 |
This method converts the dictionary to the list | def PTjv(dict):
xKvd = [[G1Hx, Ty9i] for G1Hx, Ty9i in dict.items()]
for YRbF in xKvd:
if YRbF[1][2] == 'x':
xKvd.remove(YRbF)
return xKvd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def huxi(YKHO, Op6c):\n return [(WKvO, Op6c[WKvO]) for WKvO in Op6c]",
"def huxi(YKHO, Op6c):\n return map(lambda WKvO: [WKvO, Op6c[WKvO]], Op6c)",
"def G87u(dict):\n JCoA = 1\n for G1Hx, Ty9i in dict.items():\n if type(Ty9i) is list:\n if len(Ty9i) > 1 and (JCoA > 1 and len(Ty9i)... | [
"0.80659676",
"0.8013816",
"0.75778276",
"0.75696623",
"0.7395945",
"0.72877353",
"0.727885",
"0.7155753",
"0.70990515",
"0.6958522",
"0.68984103",
"0.6868956",
"0.68315274",
"0.68111265",
"0.6782167",
"0.6775089",
"0.67651856",
"0.6748294",
"0.67303777",
"0.6666534",
"0.6666... | 0.6355936 | 36 |
A person template page without attached person should show an error banner explaining to the user that he/she is misusing the template. | def I8kI(YKHO):
B2Dn = WCIp(template='courses/cms/person_detail.html', title__language='en', should_publish=True)
with YKHO.assertTemplateUsed('courses/cms/fragment_error_detail_template_banner.html'):
geh0 = YKHO.client.get(B2Dn.get_absolute_url())
YKHO.assertEqual(geh0.status_code, 200)
YKHO.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iX2O(QePW):\n return _1tc(QePW, 'SmellGuessTemplate/error.html')",
"def m7kB(P1dF):\n return (TvZl('error_template.html', title='404 bud', message=\"Time to make the chimi-fuckin'-changas. \", subline='404, not there', image_location=nKyW('static', filename='images/deadpool-funny.jpg')), 404)",
"def ... | [
"0.6937663",
"0.6863008",
"0.68516415",
"0.6752877",
"0.6686156",
"0.66346717",
"0.6599722",
"0.65577775",
"0.6542976",
"0.650337",
"0.6459382",
"0.6441446",
"0.64403677",
"0.64176124",
"0.63976896",
"0.63921285",
"0.63720983",
"0.63401914",
"0.63311446",
"0.626568",
"0.62625... | 0.7322566 | 0 |
barcode_filename should accept sequences 0107 Sequences 0107 are all represented by singledigit integers, and should be properly zeropadded in the filename. The range allowed here is deliberately shorter than elsewhere in the program because barcode_filename is designed to work only with a corresponding date, and ISO w... | def Ppeg(YKHO):
kepv = qcWV(2016, 11, 13)
for WKvO in range(1, 7):
with YKHO.subTest(x=WKvO):
_c1T = kepv + fCoM(WKvO)
Aofo = IMZA.barcode_filename(_c1T, WKvO)
YKHO.assertEqual(Aofo.split('.')[0][-2:], f'{WKvO:02}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNyg(YKHO):\n _c1T = qcWV(2017, 1, 1)\n Q6uT = 27\n mWFP = IMZA.barcode_filename(_c1T, Q6uT)\n YKHO.assertEqual(mWFP, 'Barcode_2016-W52-7_27.pdf')",
"def RTFv(YKHO):\n _c1T = qcWV(2016, 11, 12)\n Q6uT = 31\n with YKHO.assertRaises(ValueError):\n IMZA.barcode_filename(_c1T, Q6uT)",... | [
"0.6251834",
"0.6211295",
"0.6178404",
"0.61356765",
"0.6012833",
"0.5837435",
"0.5756376",
"0.5724416",
"0.56670076",
"0.56564724",
"0.5565162",
"0.55428994",
"0.5510424",
"0.5450344",
"0.52778983",
"0.5277632",
"0.51578164",
"0.51521355",
"0.5145388",
"0.5137915",
"0.511371... | 0.54502195 | 14 |
Test the __init__ method when parameter 'ip' is None. Since the field is optional, it should pass. | def C4mS(YKHO):
YlQ8, h7HB, cz1N = range(3)
VqfF = RFQS(port_id=1, ip=None, mac='bb:bb:bb:bb:bb:bb', radio_mac='bb:bb:bb:bb:bb:00', udp_port=12345, wlc_ip='1.1.1.1', gateway_ip='1.1.1.2', ap_mode=nlVl.LOCAL, rsa_ca_priv_file=YlQ8, rsa_priv_file=h7HB, rsa_cert_file=cz1N)
YKHO.assertEqual(VqfF.ip, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4mS(YKHO):\n x0hE = t7fq('cc:cc:cc:cc:cc:cc', ip=None, ap_info=YKHO.ap)\n YKHO.assertEqual(x0hE.ip, None)\n YKHO.assertEqual(x0hE.ip_bytes, None)",
"def FIMM(Ro_8, *, D8Ke: Optional[pulumi.Input['IPAccessControlArgs']]=None):\n if D8Ke is not None:\n qe4Y.set(Ro_8, 'ip', D8Ke)",
"def FI... | [
"0.7619989",
"0.7324193",
"0.7324193",
"0.7323932",
"0.70612985",
"0.6996996",
"0.6709637",
"0.6705524",
"0.6618657",
"0.65942365",
"0.6415844",
"0.6387556",
"0.6366282",
"0.6358961",
"0.6319033",
"0.6228522",
"0.6208983",
"0.6139439",
"0.6108403",
"0.6083423",
"0.6066069",
... | 0.7339444 | 1 |
Test the __init__ method when mandatory parameter 'mac' is None. | def lT9A(YKHO):
with YKHO.assertRaises(ValueError):
x0hE = t7fq(None, ip='3.3.3.3', ap_info=YKHO.ap) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lT9A(YKHO):\n YlQ8, h7HB, cz1N = range(3)\n with YKHO.assertRaises(ValueError):\n VqfF = RFQS(port_id=1, ip='2.2.2.2', mac=None, radio_mac='bb:bb:bb:bb:bb:00', udp_port=12345, wlc_ip='1.1.1.1', gateway_ip='1.1.1.2', ap_mode=nlVl.LOCAL, rsa_ca_priv_file=YlQ8, rsa_priv_file=h7HB, rsa_cert_file=cz1N)... | [
"0.7700126",
"0.718434",
"0.7076505",
"0.69038445",
"0.68528235",
"0.64499795",
"0.6309808",
"0.6301054",
"0.6203087",
"0.616466",
"0.6155142",
"0.61442065",
"0.61114347",
"0.609657",
"0.607744",
"0.6011186",
"0.6001735",
"0.59643024",
"0.5931269",
"0.5910585",
"0.5905488",
... | 0.79045194 | 0 |
Test the __init__ method when parameter 'ip' is None. Since the field is optional, it should pass. | def C4mS(YKHO):
x0hE = t7fq('cc:cc:cc:cc:cc:cc', ip=None, ap_info=YKHO.ap)
YKHO.assertEqual(x0hE.ip, None)
YKHO.assertEqual(x0hE.ip_bytes, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4mS(YKHO):\n YlQ8, h7HB, cz1N = range(3)\n VqfF = RFQS(port_id=1, ip=None, mac='bb:bb:bb:bb:bb:bb', radio_mac='bb:bb:bb:bb:bb:00', udp_port=12345, wlc_ip='1.1.1.1', gateway_ip='1.1.1.2', ap_mode=nlVl.LOCAL, rsa_ca_priv_file=YlQ8, rsa_priv_file=h7HB, rsa_cert_file=cz1N)\n YKHO.assertEqual(VqfF.ip, Non... | [
"0.7339444",
"0.7324193",
"0.7324193",
"0.7323932",
"0.70612985",
"0.6996996",
"0.6709637",
"0.6705524",
"0.6618657",
"0.65942365",
"0.6415844",
"0.6387556",
"0.6366282",
"0.6358961",
"0.6319033",
"0.6228522",
"0.6208983",
"0.6139439",
"0.6108403",
"0.6083423",
"0.6066069",
... | 0.7619989 | 0 |
User not logged in returns 200 | def N85Z(YKHO):
geh0 = YKHO.c.get(gxEw(VWvz), {'lat': 34.0, 'lng': 45.3})
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VrjN():\n if not cuiw.get('user_id'):\n return ('nope', 401)\n else:\n return ('yep', 200)",
"def tpwy(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 401)",
"def tpwy(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_cod... | [
"0.803735",
"0.7406583",
"0.7406583",
"0.7406583",
"0.7374086",
"0.7358094",
"0.73388165",
"0.72660834",
"0.72058254",
"0.7197486",
"0.7057259",
"0.69839096",
"0.6981634",
"0.6981634",
"0.6972179",
"0.6965677",
"0.6945636",
"0.69440126",
"0.68950224",
"0.68555284",
"0.6853421... | 0.6876522 | 19 |
The expression pt1 == pt2 returns True when pt1 is close to pt2 | def _ggi(YKHO):
WKvO = PvyL(lat=23.4, lng=23.1, author=YKHO.u)
YKHO.assertTrue(YKHO.a == WKvO)
YKHO.assertFalse(YKHO.a != WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WlB9(EBgd, HpuQ, eRdl=0.0001):\n n2Q1 = mLGw.fabs(EBgd[0] - HpuQ[0]) < eRdl\n SpII = mLGw.fabs(EBgd[1] - HpuQ[1]) < eRdl\n if n2Q1 and SpII:\n return True",
"def QN2E():\n jzdc = qlQt(1, 'Q2.8')\n Fg_i = qlQt(1, 'Q2.8')\n assert jzdc == Fg_i",
"def tVhM():\n jzdc = qlQt(1, 'Q2.8... | [
"0.78786254",
"0.73442125",
"0.73271257",
"0.73021305",
"0.72471225",
"0.72312576",
"0.7224132",
"0.72203106",
"0.7208399",
"0.7186101",
"0.7171681",
"0.71665627",
"0.71387106",
"0.71274626",
"0.71209747",
"0.7108511",
"0.7045949",
"0.7042352",
"0.7017369",
"0.7011124",
"0.69... | 0.6642547 | 39 |
The expression pt1 == pt2 returns False when pt1 is not close to pt2 | def t33R(YKHO):
WKvO = PvyL(lat=24.4, lng=23.1, author=YKHO.u)
YKHO.assertFalse(YKHO.a == WKvO)
YKHO.assertTrue(YKHO.a != WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WlB9(EBgd, HpuQ, eRdl=0.0001):\n n2Q1 = mLGw.fabs(EBgd[0] - HpuQ[0]) < eRdl\n SpII = mLGw.fabs(EBgd[1] - HpuQ[1]) < eRdl\n if n2Q1 and SpII:\n return True",
"def Yodv(YKHO, Elif):\n import math\n YRSS, rUT8 = Elif\n Jw7X = YKHO[0] - YRSS\n eUWA = YKHO[1] - rUT8\n return Jw7X * ... | [
"0.7833791",
"0.7375096",
"0.73340034",
"0.7259631",
"0.7250514",
"0.72273964",
"0.7221379",
"0.7205826",
"0.7195672",
"0.7176461",
"0.716174",
"0.7157015",
"0.7149755",
"0.7145545",
"0.7136548",
"0.7128811",
"0.7119354",
"0.71039134",
"0.7080448",
"0.7078054",
"0.706964",
... | 0.0 | -1 |
Cast schema names which containing special characters to valid names. Here special characters means any characters in | def QBys(H5ew):
KxEl = set('{}{}'.format(pC3l, ' '))
KxEl.remove('_')
hU8D = ['_' if WKvO in KxEl else WKvO for WKvO in H5ew]
zQpw = ''.join(hU8D)
return zQpw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vWM_(YKHO, uPxI):\n return '\"{}\"'.format(uPxI)",
"def eeCI(YKHO, vIwR):\n if not vIwR.isalnum():\n raise ValueError('Table name cannot include non-alphanumerics.')\n return vIwR",
"def uD9m(GIN8):\n return GIN8.strip('0123456789!@#$%^&*_() +=\\\\/?<>,.`~;:').lower().replace(' ', '_')",... | [
"0.61856335",
"0.6037464",
"0.6004261",
"0.58687896",
"0.58262765",
"0.5808754",
"0.5807647",
"0.57684666",
"0.5738535",
"0.5723603",
"0.57223094",
"0.57125217",
"0.56966615",
"0.56726086",
"0.5666764",
"0.5645181",
"0.56419724",
"0.5639399",
"0.5602806",
"0.55878466",
"0.558... | 0.53094554 | 57 |
Get learning rate scheduler. | def y6Et(YKHO):
try:
sP1i = YKHO.configs.OPTIM.LR_SCHEDULER.SCHEDULER_NAME
except AttributeError:
sP1i = None
if sP1i is None:
hc6Z = None
elif sP1i == 'plateau':
aM8h = YKHO.configs.OPTIM.LR_SCHEDULER.FACTOR
QCuz = YKHO.configs.OPTIM.LR_SCHEDULER.PATIENCE
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RwOA(K0do, y7GR):\n NVLf = y7GR.epochs - y7GR.lr_linear\n uLqY = y7GR.lr_policy\n if uLqY == 'linear':\n\n def EAQd(qtWj):\n return 1.0 - max(0, qtWj - NVLf) / float(y7GR.lr_linear + 1)\n IesV = hc6Z.LambdaLR(K0do, lr_lambda=EAQd)\n elif uLqY == 'step':\n IesV = hc6Z... | [
"0.7635437",
"0.75883573",
"0.75060844",
"0.7453083",
"0.73677176",
"0.7187605",
"0.7152048",
"0.71470124",
"0.7139361",
"0.70922357",
"0.7084877",
"0.7058236",
"0.70532143",
"0.70265824",
"0.70135325",
"0.70125854",
"0.69860375",
"0.6956636",
"0.6950861",
"0.6934655",
"0.692... | 0.7616563 | 1 |
Return list of unique values while preserving order. Values must be hashable. | def a4ZY(Q6uT: Iterable):
PwWw, Aofo = ({}, [])
for ZfUD in Q6uT:
if ZfUD in PwWw:
continue
PwWw[ZfUD] = None
Aofo.append(ZfUD)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pkjm(BWXx):\n qbsE = set(BWXx)\n S06t = list(qbsE)\n S06t.sort()\n return S06t",
"def kcwm(WKvO):\n return list(set(WKvO))",
"def _mZN(bM03):\n hlel = []\n PwWw = set()\n for BWXx in bM03:\n if BWXx not in PwWw:\n hlel.append(BWXx)\n PwWw.add(BWXx)\n ... | [
"0.77642304",
"0.73466635",
"0.72686464",
"0.70993155",
"0.7049732",
"0.7036178",
"0.6986363",
"0.69395584",
"0.69315803",
"0.6901696",
"0.6871331",
"0.6860619",
"0.68340397",
"0.68287754",
"0.68124825",
"0.67243654",
"0.6652985",
"0.66490304",
"0.66442025",
"0.6638174",
"0.6... | 0.6244349 | 50 |
Initialize table from listlike container. | def RWw4(YKHO, nPrm: List[Any]):
YEnM = nPrm[0]
Txl5 = YKHO._column_name_getter(YEnM)
FFG1 = YKHO._column_value_getter(YEnM)
nZAg = {}
lHZ6 = not bool(YKHO._columns)
for YEnM in nPrm:
rdlD = [None] * len(YKHO._columns)
for sMd7 in Txl5(YEnM):
GOzF = nZAg.get(sMd7, sMd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def euOf(YKHO, tyNF: 'Table'):\n if not YKHO.columns:\n YKHO.columns = tyNF.columns\n YKHO._data = tyNF.data",
"def FIMM(YKHO):\n YKHO.table = {}\n YKHO.ls = []",
"def tenC(YKHO, Kt_s):\n YKHO.headings = []\n YKHO.table = {}\n YKHO.rowcount = 0\n for tTpl in Kt_s.entries:\n ... | [
"0.6741247",
"0.65784097",
"0.6445998",
"0.6421057",
"0.6410227",
"0.62771124",
"0.62656546",
"0.6222653",
"0.62108904",
"0.6183416",
"0.6157158",
"0.61253923",
"0.6124469",
"0.6088853",
"0.60814494",
"0.598742",
"0.59580296",
"0.5902306",
"0.5902306",
"0.5886963",
"0.5882113... | 0.6464922 | 2 |
Initialize table from dictlike container. | def r8Hy(YKHO, nPrm: Dict[Column, Row]):
if not YKHO._columns:
YKHO._columns = list(nPrm.keys())
ZLJ_ = (mFWN(hkxX) for iVRZ, hkxX in nPrm.items() if iVRZ in YKHO._columns)
YKHO._data = [list(rdlD) for rdlD in igF0(*ZLJ_)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def euOf(YKHO, tyNF: 'Table'):\n if not YKHO.columns:\n YKHO.columns = tyNF.columns\n YKHO._data = tyNF.data",
"def t12o(YKHO):\n WfCS = list(zip(*YKHO.dtypes))[0]\n fgcx = [dict([(WfCS[YRbF], Csk6[YRbF]) for YRbF in Ni9Y(len(Csk6))]) for Csk6 in YKHO.idata]\n aS9G = TQJD.create(':memory:',... | [
"0.7078723",
"0.69768757",
"0.6741791",
"0.6514259",
"0.6489797",
"0.6371205",
"0.63667476",
"0.6355663",
"0.63450754",
"0.6337645",
"0.63217604",
"0.63029504",
"0.6181961",
"0.61749095",
"0.61712486",
"0.61712486",
"0.61712486",
"0.61712486",
"0.61712486",
"0.61712486",
"0.6... | 0.6601733 | 3 |
Validate that given column names can be used. | def Lw1X(YKHO, ZWCE):
if not Kuz2(ZWCE):
raise ValueError('Columns should be list-like')
if len(set(ZWCE)) != len(ZWCE):
raise ValueError('Duplicate column names')
if YKHO._data and len(ZWCE) != len(YKHO._data[0]):
raise ValueError('Invalid columns length') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V0OA(jQ3Z: pd.DataFrame, ZWCE: typing.Sequence[str]) -> None:\n for aEqx in ZWCE:\n if aEqx not in jQ3Z.columns:\n raise ValueError(f\"'{aEqx}' column not found in input\")\n return",
"def Lw1X(nPrm, Vvt2, RgQt, YAnk, cnQT):\n if not Vvt2 and (not (RgQt and YAnk)):\n raise V... | [
"0.8195807",
"0.7515005",
"0.74477583",
"0.73584527",
"0.72443414",
"0.72358197",
"0.7166061",
"0.7122262",
"0.7121349",
"0.711966",
"0.7089864",
"0.708901",
"0.69831634",
"0.6980481",
"0.6958175",
"0.6949049",
"0.692618",
"0.6905489",
"0.6900764",
"0.6798847",
"0.6783542",
... | 0.8290189 | 0 |
Find location for column value. | def TxkC(YKHO, BWXx):
try:
return YKHO._columns.index(BWXx)
except ValueError:
pass
try:
BWXx = int(BWXx)
if BWXx in YKHO._columns:
Rci7 = YKHO._columns.index(BWXx)
elif BWXx < 0:
Rci7 = BWXx + len(YKHO._columns)
else:
Rci7 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M4GH(OGYo, rdlD, BWXx):\n for VmPb in OGYo[rdlD]:\n if VmPb.value == BWXx:\n return VmPb.column",
"def v1la(YKHO, Jyyj):\n for W6DZ in YKHO.schema['idx_fields']:\n if W6DZ['field_name'] == Jyyj:\n return W6DZ['column']\n return 0",
"def oYJd(YKHO):\n return Y... | [
"0.6948674",
"0.6942318",
"0.68900645",
"0.6643696",
"0.6632486",
"0.6617296",
"0.66054964",
"0.6541255",
"0.65210915",
"0.65178216",
"0.64717984",
"0.64717984",
"0.64595383",
"0.63534844",
"0.63455355",
"0.6333555",
"0.6323215",
"0.63208455",
"0.63208455",
"0.63208455",
"0.6... | 0.81713206 | 0 |