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 |
|---|---|---|---|---|---|---|
The URL for the Management API associated with this API Management service. | def aae2(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'management_api_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aae2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'management_api_url')",
"def Ms2Z(YKHO):\n return YKHO.get_api_url()",
"def Ms2Z(YKHO):\n return YKHO._api_url",
"def NrzF(YKHO):\n return YKHO._apiurl",
"def NrzF(YKHO):\n return gW9A.createAPIURL('/boards.json')",
"def jPi7(YKHO... | [
"0.85889703",
"0.764987",
"0.74431026",
"0.73483723",
"0.7221183",
"0.7220506",
"0.7213687",
"0.7191533",
"0.70443726",
"0.7034329",
"0.69759965",
"0.6912301",
"0.69109505",
"0.6901003",
"0.68666995",
"0.68319327",
"0.678284",
"0.6764317",
"0.6675863",
"0.6594262",
"0.6593361... | 0.83097833 | 1 |
Email address from which the notification will be sent. | def ofQZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'notification_sender_email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hxmi() -> str:\n return Hy7s.environ.get('EMAIL_NOTIFICATION', '')",
"def ofQZ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'notification_sender_email')",
"def POt2(YKHO):\n return '%s.%s@%s' % (qxeD.uuid4(), YKHO.mailbox, 'mailosaur.io')",
"def D3lj(YKHO) -> qe4Y.Output[str]:\n return ... | [
"0.8191204",
"0.80174744",
"0.7613062",
"0.74585193",
"0.74514425",
"0.74514425",
"0.74514425",
"0.7412389",
"0.72602934",
"0.7259813",
"0.72285235",
"0.72228503",
"0.7219816",
"0.7219816",
"0.7219816",
"0.7219816",
"0.7191841",
"0.7142307",
"0.70599717",
"0.7038014",
"0.7005... | 0.76546335 | 3 |
The URL for the Publisher Portal associated with this API Management service. | def MFNE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'portal_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def we5a(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'developer_portal_url')",
"def aae2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'management_api_url')",
"def Ms2Z(YKHO):\n return YKHO.get_api_url()",
"def PKrO(YKHO):\n return YKHO.portal_url + '/' + '++resource++plonecommunity.a... | [
"0.6860555",
"0.67442745",
"0.6679423",
"0.66233873",
"0.6613646",
"0.66019756",
"0.65981716",
"0.6567077",
"0.6476128",
"0.6415434",
"0.6399984",
"0.6344932",
"0.62774104",
"0.6223587",
"0.61649317",
"0.61649317",
"0.6132838",
"0.612867",
"0.60603267",
"0.6029677",
"0.602967... | 0.6264982 | 13 |
The email of publisher/company. | def tF2v(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'publisher_email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tF2v(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'publisher_email')",
"def tF2v(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'publisher_email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO)... | [
"0.8418234",
"0.823683",
"0.8145944",
"0.8145944",
"0.8145944",
"0.8093843",
"0.8018317",
"0.80142",
"0.80142",
"0.80142",
"0.80142",
"0.7830933",
"0.7830933",
"0.7830933",
"0.7830933",
"0.78219426",
"0.7783638",
"0.77834326",
"0.7782989",
"0.7751573",
"0.7746207",
"0.77438... | 0.81170917 | 5 |
The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. | def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(Y... | [
"0.7519007",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",... | 0.7252912 | 52 |
A mapping of tags assigned to the resource. | def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> G... | [
"0.8047764",
"0.8047764",
"0.8047764",
"0.8047764",
"0.7979305",
"0.7979305",
"0.7540683",
"0.7516949",
"0.73094535",
"0.7300278",
"0.7238649",
"0.7197904",
"0.71846336",
"0.71488696",
"0.71181715",
"0.70630586",
"0.7004693",
"0.69596815",
"0.69234526",
"0.69234526",
"0.69234... | 0.0 | -1 |
The URL for the Developer Portal associated with this API Management service. | def we5a(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'developer_portal_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def we5a(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'developer_portal_url')",
"def Ms2Z(YKHO):\n return YKHO.get_api_url()",
"def Ms2Z(YKHO):\n return YKHO._api_url",
"def NrzF(YKHO):\n return YKHO._apiurl",
"def aae2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'managemen... | [
"0.78904295",
"0.7377523",
"0.71191704",
"0.6955641",
"0.69545794",
"0.689547",
"0.68257946",
"0.6691102",
"0.6682509",
"0.6652316",
"0.66401094",
"0.66367257",
"0.6621785",
"0.65991664",
"0.65986437",
"0.657356",
"0.65540826",
"0.654707",
"0.6482262",
"0.64011085",
"0.636301... | 0.8189453 | 0 |
The URL of the Regional Gateway for the API Management Service in the specified region. | def Eh0g(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'gateway_regional_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eh0g(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'gateway_regional_url')",
"def qlPS(ekCf, zn0c):\n assert R_eu(ekCf), ekCf\n assert E72O(zn0c), zn0c\n return 'https://www.googleapis.com/compute/v1/projects/%s/regions/%s' % (ekCf, zn0c)",
"def T54d(YKHO) -> qe4Y.Output[str]:\n re... | [
"0.77111506",
"0.7067141",
"0.65278375",
"0.6152768",
"0.61329734",
"0.59425765",
"0.5825457",
"0.5775363",
"0.5770281",
"0.5768285",
"0.5718867",
"0.5696058",
"0.5667354",
"0.56317335",
"0.56317335",
"0.56299305",
"0.56102616",
"0.56065416",
"0.56065416",
"0.55747086",
"0.55... | 0.8032841 | 0 |
The URL for the Management API associated with this API Management service. | def aae2(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'management_api_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aae2(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'management_api_url')",
"def Ms2Z(YKHO):\n return YKHO.get_api_url()",
"def Ms2Z(YKHO):\n return YKHO._api_url",
"def NrzF(YKHO):\n return YKHO._apiurl",
"def NrzF(YKHO):\n return gW9A.createAPIURL('/boards.json')",
"def jPi7... | [
"0.83097833",
"0.764987",
"0.74431026",
"0.73483723",
"0.7221183",
"0.7220506",
"0.7213687",
"0.7191533",
"0.70443726",
"0.7034329",
"0.69759965",
"0.6912301",
"0.69109505",
"0.6901003",
"0.68666995",
"0.68319327",
"0.678284",
"0.6764317",
"0.6675863",
"0.6594262",
"0.6593361... | 0.85889703 | 0 |
Email address from which the notification will be sent. | def ofQZ(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'notification_sender_email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hxmi() -> str:\n return Hy7s.environ.get('EMAIL_NOTIFICATION', '')",
"def ofQZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'notification_sender_email')",
"def ofQZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'notification_sender_email')",
"def POt2(YKHO):\n return '%s.... | [
"0.8191204",
"0.76546335",
"0.76546335",
"0.7613062",
"0.74585193",
"0.74514425",
"0.74514425",
"0.74514425",
"0.7412389",
"0.72602934",
"0.7259813",
"0.72285235",
"0.72228503",
"0.7219816",
"0.7219816",
"0.7219816",
"0.7219816",
"0.7191841",
"0.7142307",
"0.70599717",
"0.703... | 0.80174744 | 1 |
The URL for the Publisher Portal associated with this API Management service. | def MFNE(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'portal_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def we5a(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'developer_portal_url')",
"def aae2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'management_api_url')",
"def Ms2Z(YKHO):\n return YKHO.get_api_url()",
"def PKrO(YKHO):\n return YKHO.portal_url + '/' + '++resource++plonecommunity.a... | [
"0.6860555",
"0.67442745",
"0.6679423",
"0.66233873",
"0.66019756",
"0.65981716",
"0.6567077",
"0.6476128",
"0.6415434",
"0.6399984",
"0.6344932",
"0.62774104",
"0.6264982",
"0.6223587",
"0.61649317",
"0.61649317",
"0.6132838",
"0.612867",
"0.60603267",
"0.6029677",
"0.602967... | 0.6613646 | 4 |
The email of publisher/company. | def tF2v(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'publisher_email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tF2v(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'publisher_email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def tF2v(YKHO) -> h8nf[qe4Y.Input[str... | [
"0.823683",
"0.8145944",
"0.8145944",
"0.8145944",
"0.81170917",
"0.8093843",
"0.8018317",
"0.80142",
"0.80142",
"0.80142",
"0.80142",
"0.7830933",
"0.7830933",
"0.7830933",
"0.7830933",
"0.78219426",
"0.7783638",
"0.77834326",
"0.7782989",
"0.7751573",
"0.7746207",
"0.7743... | 0.8418234 | 0 |
The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. | def TRLE(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(Y... | [
"0.7519007",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",
"0.73299044",... | 0.7011773 | 67 |
A mapping of tags assigned to the resource. | def dJ1p(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> G... | [
"0.8047764",
"0.8047764",
"0.8047764",
"0.8047764",
"0.7979305",
"0.7979305",
"0.7540683",
"0.7516949",
"0.73094535",
"0.7300278",
"0.7238649",
"0.7197904",
"0.71846336",
"0.71488696",
"0.71181715",
"0.70630586",
"0.7004693",
"0.69596815",
"0.6905929",
"0.68955946",
"0.687554... | 0.69234526 | 37 |
Activate all four game buttons. | def myyW(YKHO):
for Fg_i in YKHO.gamebuttons:
Fg_i.activate() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r9hF():\n LlJu = zLwE.button_a.is_pressed()\n SAZk = zLwE.button_b.is_pressed()\n p0dJ = ZUjk(1)\n wUrt = ZUjk(2)\n if LlJu:\n T2uA(2)\n TbSY(right=1)\n if SAZk:\n T2uA(3)\n TbSY(left=3)\n if p0dJ:\n q8z6(1)\n TbSY(bottom=1)\n if wUrt:\n ... | [
"0.68962854",
"0.6650524",
"0.6515614",
"0.6421187",
"0.64034784",
"0.6363755",
"0.63476175",
"0.6325821",
"0.6308852",
"0.63069874",
"0.6226606",
"0.614768",
"0.61271274",
"0.61151385",
"0.609403",
"0.6073121",
"0.6051676",
"0.60386074",
"0.6023776",
"0.6001559",
"0.59936243... | 0.8661612 | 0 |
Turn off all the buttons, stopping light and sound. | def SCq0(YKHO):
for Fg_i in YKHO.gamebuttons:
Fg_i.but_off() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AEKd():\n NQLR.stop_all_motors()\n NG7L.set_colour_solid(0)\n W8mS.clear()",
"def l4XF(YKHO):\n for agxD in YKHO.all:\n xi8C.output(agxD, 0)",
"def mNqQ(YKHO):\n YKHO.cam_led.off\n YKHO.analysis_led[0].off\n YKHO.analysis_led[1].off\n YKHO.error.off\n YKHO.motor.stop()\n ... | [
"0.7689176",
"0.7556003",
"0.74953777",
"0.7459995",
"0.74347675",
"0.7406658",
"0.73330504",
"0.72575563",
"0.7213743",
"0.70674264",
"0.70298404",
"0.698902",
"0.6989017",
"0.692952",
"0.6923035",
"0.6922025",
"0.68977445",
"0.6888867",
"0.6882904",
"0.6881302",
"0.68723327... | 0.8083057 | 0 |
Creates the Settings window. | def FIMM(YKHO, _AKB, QTBn, dQgj=lnPd.DefaultPosition):
YKHO.state = QTBn
p2gJ = yR5Q[YKHO.state.GetSurface('Mode')]
lnPd.Dialog.__init__(YKHO, _AKB, -1, '%s Mode Settings' % p2gJ, pos=dQgj, style=lnPd.DEFAULT_FRAME_STYLE ^ (lnPd.RESIZE_BORDER | lnPd.MINIMIZE_BOX | lnPd.MAXIMIZE_BOX) | lnPd.TAB_TRAVERSAL)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QqOO():\n u8cp = g3GR(size_hint=(0.5, 0.5), auto_dismiss=False)\n u8cp.add_widget(lMAD(u8cp))\n u8cp.open()",
"def fOl6(YKHO) -> None:\n if not YKHO._settings_dialog:\n YKHO._settings_dialog = YKHO._createDialog('ThingiSettings.qml')\n YKHO._settings_dialog.show()",
"def QqOO(YKHO):\n... | [
"0.7467314",
"0.7451298",
"0.7006844",
"0.7003392",
"0.67454296",
"0.673275",
"0.6638617",
"0.65985674",
"0.6523002",
"0.65181446",
"0.6467749",
"0.6362588",
"0.63616174",
"0.63009757",
"0.629968",
"0.629185",
"0.6289978",
"0.6288987",
"0.6288847",
"0.6254795",
"0.6234435",
... | 0.5717621 | 53 |
Sets the id of this UploadSnap. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def id(YKHO, id):\n YKHO._id = id",
"def id(YKHO, id):\n YKHO._id = id",
"def id(YKHO, id):\n YKHO._id = id",
... | [
"0.7511363",
"0.747934",
"0.73070776",
"0.7269727",
"0.71869624",
"0.71869624",
"0.71869624",
"0.71869624",
"0.71869624"
] | 0.7175189 | 64 |
Sets the snap of this UploadSnap. | def vZa6(YKHO, vZa6):
YKHO._snap = vZa6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pn3r(YKHO, Pn3r):\n YKHO._snap_id = Pn3r",
"def Rwel(YKHO, Rwel):\n YKHO._context['snapshot'] = Rwel",
"def l0Pm(YKHO):\n WmM4 = Hy7s.getcwd()\n if YKHO.target_path.get():\n WmM4 = YKHO.target_path.get()\n lQDD = XqpT.askdirectory(initialdir=WmM4, title='Select Snapshot Root...')\n ... | [
"0.6859907",
"0.58296126",
"0.54144615",
"0.53195244",
"0.5285036",
"0.52040625",
"0.5174207",
"0.5168553",
"0.51326436",
"0.5042593",
"0.50418967",
"0.5016102",
"0.5016102",
"0.49909735",
"0.4961858",
"0.49042475",
"0.49042475",
"0.48944172",
"0.48880136",
"0.4885204",
"0.48... | 0.80703914 | 0 |
Sets the snap_id of this UploadSnap. | def Pn3r(YKHO, Pn3r):
YKHO._snap_id = Pn3r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vZa6(YKHO, vZa6):\n YKHO._snap = vZa6",
"def Wswm(YKHO, Wswm):\n YKHO._sid = Wswm",
"def Y7rP(YKHO, DCKO):\n YKHO._student_id = DCKO",
"def n2Ql(YKHO, DCKO):\n YKHO._student = DCKO",
"def EOt5(YKHO, YLAH):\n RKD7.debug('setting jid to %s' % YLAH)\n YKHO.boundjid.full = YLAH",
"def P... | [
"0.7044211",
"0.56522083",
"0.5568157",
"0.5480164",
"0.54171205",
"0.5370708",
"0.5370708",
"0.5370708",
"0.5370708",
"0.5364746",
"0.5331126",
"0.53068906",
"0.52556294",
"0.5254014",
"0.5254014",
"0.5225276",
"0.52236104",
"0.52236104",
"0.52236104",
"0.5212722",
"0.521272... | 0.841878 | 0 |
Sets the confidence of this UploadSnap. | def la9G(YKHO, la9G):
YKHO._confidence = la9G | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la9G(YKHO, la9G):\n YKHO._confidence = la9G",
"def la9G(YKHO, la9G):\n YKHO._confidence = la9G",
"def la9G(YKHO, la9G: float):\n YKHO._confidence = la9G",
"def OlT9(YKHO, LWLc):\n YKHO.__min_confidence = LWLc",
"def NFjk(YKHO, BWXx):\n return YKHO._set(includeConfidence=BWXx)",
"def NF... | [
"0.7810027",
"0.7810027",
"0.7770509",
"0.69977",
"0.6715225",
"0.6715225",
"0.648673",
"0.6480841",
"0.6434077",
"0.6434077",
"0.609914",
"0.60986197",
"0.60986197",
"0.58938813",
"0.5673728",
"0.5480926",
"0.5415105",
"0.53337854",
"0.52382064",
"0.52266896",
"0.52266896",
... | 0.77648205 | 4 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, Ht63):
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.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 |
Initializes a PCFG instance with the specified set of rules and start variable. | def FIMM(YKHO, hIWW='S', c_NS=None):
YKHO.start_variable = hIWW
if c_NS is None:
c_NS = []
YKHO.rules = c_NS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, yKcO, NhoX):\n assert hcmK(1, yKcO, zaIj)\n assert hcmK(2, NhoX, (F1gw,), [F1gw])\n U3yL.__init__(YKHO, yKcO, NhoX)\n BFeB = {}\n for Fomj in NhoX:\n BFeB[Fomj.lhs()] = BFeB.get(Fomj.lhs(), 0) + Fomj.prob()\n for yLHq, XP5J in BFeB.items():\n if not 1 - lpAp.EPSILON <... | [
"0.6918424",
"0.6818147",
"0.6676437",
"0.6351444",
"0.62154675",
"0.6086306",
"0.59200406",
"0.5890092",
"0.571267",
"0.56986314",
"0.5580757",
"0.5498402",
"0.5498402",
"0.5488067",
"0.5471447",
"0.54557765",
"0.5376397",
"0.53593946",
"0.5346746",
"0.53368783",
"0.5324618"... | 0.7149478 | 0 |
Returns a copy of this rule, with the copied rule kept in an attribute. | def jth9(YKHO):
z2S1 = jth9.deepcopy(YKHO)
if not z2S1.original_rule:
z2S1.original_rule = {'rule': YKHO}
return z2S1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3ak(YKHO):\n return _VfD.Rule_clone(YKHO)",
"def i3ak(YKHO):\n return _VfD.AssignmentRule_clone(YKHO)",
"def i3ak(YKHO):\n return _VfD.AlgebraicRule_clone(YKHO)",
"def i3ak(YKHO):\n return hkS8.evolve(YKHO)",
"def jth9(YKHO):\n BdN0 = YKHO.__class__(integration=None, data=None)\n for... | [
"0.74728733",
"0.74569803",
"0.726095",
"0.67953587",
"0.66212475",
"0.66168374",
"0.6607509",
"0.65343225",
"0.6495351",
"0.6490554",
"0.6482419",
"0.6272752",
"0.62726027",
"0.62146693",
"0.6181747",
"0.6162925",
"0.6133127",
"0.6127104",
"0.61227363",
"0.61089456",
"0.6108... | 0.8282818 | 0 |
Returns a string representation of the PCFG rule. | def wHJl(YKHO):
return 'PCFGRule(%s, %s, %s)' % (YKHO.variable, YKHO.derivation, YKHO.probability) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n SlvR = ''\n for H5ew, c_NS in YKHO.production_rules.items():\n SlvR += '\\nRULE ' + H5ew + ' = [\\n\\t'\n xkpB = []\n for eD8c in c_NS:\n xkpB.append(' + '.join([Mkmy.__str__() for Mkmy in eD8c]))\n SlvR += '\\n\\t'.join(xkpB) + '\\n]'\n SlvR += '\\... | [
"0.72731006",
"0.6914612",
"0.6863054",
"0.67765236",
"0.667142",
"0.6472702",
"0.6460267",
"0.6454881",
"0.6311176",
"0.6138851",
"0.6082467",
"0.5995145",
"0.5926686",
"0.5917817",
"0.5899881",
"0.58760774",
"0.58568007",
"0.58386093",
"0.57995796",
"0.579322",
"0.5772385",... | 0.54174656 | 65 |
Read a utf8 encoded text file and return its contents. | def Nwr9(Ux0P):
with T_Uj.open(Ux0P, 'r', 'utf8') as eHNT:
return eHNT.read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Np1T(Sd0C, tZ2K, LxeQ=-1, ZGBY=True):\n with T_Uj.open(Sd0C, encoding=tZ2K) as eHNT:\n kGys = eHNT.read(LxeQ)\n if LxeQ > 0:\n kGys = kGys[:LxeQ]\n if ZGBY:\n kGys = xlis(kGys)\n return kGys",
"def Nwr9(qaEx, Tuqy='r', tZ2K='utf-8'):\n with T_Uj.open(qa... | [
"0.77134204",
"0.7614767",
"0.76061934",
"0.75781465",
"0.7553593",
"0.75099313",
"0.74945265",
"0.7488157",
"0.7465261",
"0.7410554",
"0.7405463",
"0.73217803",
"0.731961",
"0.731961",
"0.7297014",
"0.7265897",
"0.71820676",
"0.7177159",
"0.7168671",
"0.7157522",
"0.7140818"... | 0.769733 | 2 |
Specifies whether or not to save the model at the current epoch. | def fFPS(YKHO):
if YKHO._best_epoch:
return True
return YKHO.epoch % YKHO._save_iter == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GpFb(YKHO, qtWj):\n pass",
"def vauY(YKHO, qtWj: int):\n if YKHO.exp.scheduler_stepper is not None:\n ht2j.save({'model_state_dict': YKHO.exp.model.state_dict(), 'optimizer_state_dict': YKHO.exp.optimizer.state_dict(), 'scheduler_state_dict': YKHO.exp.scheduler_stepper.scheduler.state_dict(), 'E... | [
"0.68670803",
"0.67023814",
"0.66755927",
"0.65416074",
"0.6525766",
"0.6504314",
"0.6486852",
"0.64241904",
"0.6312553",
"0.6273056",
"0.62646484",
"0.62508523",
"0.62448466",
"0.62189704",
"0.62047935",
"0.6189693",
"0.6189133",
"0.6182387",
"0.6174063",
"0.6083707",
"0.607... | 0.7414132 | 0 |
Load the model and optimizers from the most recent epoch. | def Nh79(YKHO, C3ST, KES0):
YKHO.epoch = c2vR(YKHO.log_path)
h00i = ht2j.load(Hy7s.path.join(YKHO.log_path, 'checkpoints', str(YKHO.epoch), 'model.ckpt'))
C3ST.load_state_dict(h00i)
y58L = ht2j.load(Hy7s.path.join(YKHO.log_path, 'checkpoints', str(YKHO.epoch), 'opt.ckpt'))
for xtvD in range(len(KES0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(YKHO):\n YKHO._load_scaler('scaler.save')\n YKHO._load_encoder('encoder0.save', 0)\n YKHO._load_encoder('encoder1.save', 1)\n YKHO._load_neural_network('model.json', 'model.h5')\n return",
"def aBCE(YKHO, qtWj):\n for YRbF, K0do in enumerate(YKHO.optimizers):\n i3_f = '{0}_optim... | [
"0.74786997",
"0.7371077",
"0.70991945",
"0.7054186",
"0.69073784",
"0.68957776",
"0.68957776",
"0.6891431",
"0.68743557",
"0.6789913",
"0.67792255",
"0.6772974",
"0.67342657",
"0.6685493",
"0.665662",
"0.6620736",
"0.65854925",
"0.6581128",
"0.654461",
"0.65372485",
"0.65317... | 0.74433905 | 1 |
Initialize this dataset class. | def FIMM(YKHO, y7GR):
x_b5.__init__(YKHO, y7GR)
hSHI = [Ymkf.ToTensor()]
YKHO.transform = Ymkf.Compose(hSHI)
d8yr = './datasets/self_2020/wOBJ_processed/' + str(y7GR.phase)
YKHO.files_self_A_rgbd = sorted(SC2F.glob(d8yr + '/A_rgbd' + '/*.*'))
YKHO.files_self_B_depth = sorted(SC2F.glob(d8yr + '/B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__dataset = None",
"def FIMM(YKHO, __n6):\n YKHO._dataset = __n6",
"def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6",
"def FIMM(YKHO, GPtr):\n bo34.info(f'{YKHO.__class__.__name__}: Dataset initializing ...')\n super().__init__(GPtr)",
"def FIMM(YKHO, **B2fa):\n ... | [
"0.816631",
"0.81641185",
"0.8013762",
"0.76137954",
"0.7422038",
"0.7393049",
"0.7352237",
"0.73437655",
"0.7111143",
"0.71019876",
"0.7099074",
"0.7096382",
"0.70223516",
"0.696418",
"0.6961817",
"0.6889772",
"0.6879775",
"0.68740934",
"0.68599087",
"0.68520594",
"0.6842619... | 0.0 | -1 |
Attach a lot of summaries to a Tensor | def g4Yp(Es0b, mWFP):
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(Es0b)
ZylS.scalar_summary('mean/' + mWFP, JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_sum(ZylS.square(Es0b - JBMS)))
ZylS.scalar_summary('sttdev/' + mWFP, z2bo)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1pK(YKHO):\n for G1Hx, Ty9i in YKHO.metrics.items():\n ZylS.summary.scalar(G1Hx, Ty9i)\n YKHO.summary_op = ZylS.summary.merge_all()",
"def RlbR(YKHO):\n ZylS.summary.scalar('loss', YKHO.loss)\n XIcQ = ZylS.summary.merge_all()\n YKHO.summary_op = XIcQ\n ZylS.logging.info('summary op ... | [
"0.72127706",
"0.7122828",
"0.7122828",
"0.69307214",
"0.68027735",
"0.67884105",
"0.6778805",
"0.67116094",
"0.664624",
"0.651495",
"0.65025246",
"0.64518976",
"0.6418636",
"0.64070934",
"0.6395541",
"0.6350012",
"0.6331073",
"0.6235902",
"0.6221092",
"0.6217595",
"0.6208109... | 0.0 | -1 |
Takes a set of character folders and labels and returns paths to image files paired with labels. | def bN20(ckRy, Crrw, ZQtr=None, hXNa=True):
if ZQtr is not None:
RFg8 = lambda WKvO: tuKI.sample(WKvO, ZQtr)
else:
RFg8 = lambda WKvO: WKvO
SaxC = [(YRbF, Hy7s.path.join(pmON, LNo8)) for YRbF, pmON in zip(Crrw, ckRy) for LNo8 in RFg8(Hy7s.listdir(pmON))]
if hXNa:
tuKI.shuffle(Sax... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeGn(iYAx):\n B9XV = tuKI.sample(range(0, len(iYAx)), wRi3)\n g95b = [[(SC2F.glob(iYAx[exwG] + '\\\\*')[G1Hx], exwG) for exwG in B9XV for G1Hx in tuKI.sample(range(0, len(SC2F.glob(iYAx[exwG] + '\\\\*'))), zNAG + 1)] for Fg_i in range(Ep8u)]\n return g95b",
"def x7Ak(YKHO):\n iXTm, g95b = ([], []... | [
"0.7875825",
"0.739325",
"0.71017206",
"0.6980468",
"0.68674016",
"0.68117267",
"0.6808696",
"0.67802685",
"0.6759404",
"0.67360824",
"0.67039096",
"0.66744095",
"0.665738",
"0.66389525",
"0.6623084",
"0.65938514",
"0.6568905",
"0.64979",
"0.6495697",
"0.6481333",
"0.64552546... | 0.73174477 | 2 |
This is ran automatically at the end of the test cases defined below It is good to factor out any tear downcode for subsequent tests It is NOT required to define tearDown, it is just helpful in many cases | def tBIc(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n pass",
"def tBIc(YKHO) -> None:\n pass",
"def tBIc(YKHO) -> None:\n pass",
"def tBIc(YKHO) -> None:\n pass",
"def tBIc(YKHO):\n pass",
"def tBIc(YKHO):\n print(\"Calling 'tearDown'\")",
"def tBIc(YKHO):\n pass",
"def tBIc(YKHO):\n pass",
"def tBIc(YKHO):\n ... | [
"0.86746573",
"0.86285985",
"0.86285985",
"0.86285985",
"0.86088014",
"0.86062396",
"0.8582784",
"0.8582784",
"0.8582784",
"0.8578176",
"0.8559175",
"0.855182",
"0.855182",
"0.85510796",
"0.85510796",
"0.85510796",
"0.85510796",
"0.85510796",
"0.85510796",
"0.85510796",
"0.85... | 0.0 | -1 |
Creates edge from node with val1 and node with val2 with given weight. | def rz7z(YKHO, wNuL, Mlb1, upAO, L5w8=False):
i4Va = YKHO.get_node(wNuL)
rUTj = YKHO.get_node(Mlb1)
i4Va.add_edge(rUTj, upAO)
if not L5w8:
rUTj.add_edge(i4Va, upAO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, wNuL, Mlb1, upAO=0):\n YKHO.setdefault(wNuL, {})\n YKHO.setdefault(Mlb1, {})\n if Mlb1 not in YKHO[wNuL]:\n YKHO[wNuL][Mlb1] = upAO",
"def rz7z(YKHO, MxXY, cWFu, upAO=0):\n YKHO.add_node(MxXY)\n YKHO.add_node(cWFu)\n YKHO.dict[MxXY][cWFu] = upAO",
"def rz7z(YKHO, MxXY, c... | [
"0.7941413",
"0.747169",
"0.7332521",
"0.7312926",
"0.71932644",
"0.6794435",
"0.67684793",
"0.6721157",
"0.6694576",
"0.66431695",
"0.6617579",
"0.6593082",
"0.6581354",
"0.6543639",
"0.6525958",
"0.64871365",
"0.64767396",
"0.64696485",
"0.64517295",
"0.6409681",
"0.6395417... | 0.7654623 | 1 |
Check if row, col and box are valid | def deVW(Cs6h, mLGw, oeNL):
for YRbF in range(OLIY):
if Cs6h[oeNL[0]][YRbF] == mLGw and oeNL[1] != YRbF:
return False
for YRbF in range(OLIY):
if Cs6h[oeNL[0]][YRbF] == mLGw and oeNL[1] != YRbF:
return False
for YRbF in range(OLIY):
if Cs6h[YRbF][oeNL[1]] == m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mK8w(YKHO, IxS8, LKdJ):\n j2KK = 0 <= IxS8 <= YKHO.size - 1\n i__6 = 0 <= LKdJ <= YKHO.size - 1\n return j2KK and i__6",
"def SGVO(FlUN, VXjJ):\n H6UU = FlUN['top_left_x'] > 0 and FlUN['bottom_right_x'] < VXjJ.shape[1]\n y_hw = FlUN['top_left_y'] > 0 and FlUN['bottom_right_y'] < VXjJ.shape[0]\... | [
"0.75742817",
"0.7467699",
"0.74090254",
"0.7370982",
"0.73057574",
"0.72271466",
"0.72207695",
"0.7201106",
"0.71821445",
"0.7094689",
"0.7062221",
"0.7046373",
"0.70319146",
"0.7023907",
"0.6947145",
"0.6924911",
"0.69007754",
"0.69004005",
"0.68888354",
"0.6866636",
"0.686... | 0.71280473 | 9 |
r"""Converts a quaternions to coeffs in [x, y, z, w] format | def rdPr(_Jov: np.quaternion) -> oyIN.array:
GUUu = oyIN.zeros((4,))
GUUu[3] = _Jov.real
GUUu[0:3] = _Jov.imag
return GUUu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def At55(rQ8K, OaeL):\n TTm1 = R5H8()\n TTm1.w = rQ8K.w * OaeL.w - rQ8K.x * OaeL.x - rQ8K.y * OaeL.y - rQ8K.z * OaeL.z\n TTm1.x = rQ8K.x * OaeL.w + rQ8K.w * OaeL.x + rQ8K.y * OaeL.z - rQ8K.z * OaeL.y\n TTm1.y = rQ8K.w * OaeL.y - rQ8K.x * OaeL.z + rQ8K.y * OaeL.w + rQ8K.z * OaeL.x\n TTm1.z = rQ8K.w *... | [
"0.6838738",
"0.67883563",
"0.6519596",
"0.6356952",
"0.6322742",
"0.6189939",
"0.6142145",
"0.61412567",
"0.6109183",
"0.60983413",
"0.60717314",
"0.5999544",
"0.5981303",
"0.59151673",
"0.58967614",
"0.5895758",
"0.5845222",
"0.584088",
"0.58313555",
"0.5814837",
"0.581009"... | 0.72975194 | 0 |
Compose preprocessing transforms for model The imported models use a range of different preprocessing options, depending on how they were originally trained. Models trained in MatConvNet typically require input images that have been scaled to [0,255], rather than the [0,1] range favoured by PyTorch. | def kZey(e5kH, HK1Q=True, RxiT=None, UxWg=False):
NkkI = Ymkf.Normalize(mean=e5kH['mean'], std=e5kH['std'])
ttJE = e5kH['imageSize']
if UxWg:
ttJE = RxiT
assert ttJE[0] == ttJE[1], 'expected square image size'
if HK1Q:
hSHI = [Ymkf.Resize(int(ttJE[0] * 1.2)), Ymkf.CenterCrop(size=(tt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SOMt():\n TLhW = dict(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])\n lXoe = Ymkf.Compose([Ymkf.ToPILImage(), Ymkf.Resize(256), Ymkf.CenterCrop(224), Ymkf.ColorJitter(brightness=0.4, contrast=0.4, saturation=0.4, hue=0.1), Ymkf.ToTensor(), Ymkf.Normalize(**TLhW)])\n ayw7 = Ymkf.Compose([Ymkf.... | [
"0.68218637",
"0.64674497",
"0.64609164",
"0.6405251",
"0.6403162",
"0.63758117",
"0.63758117",
"0.63758117",
"0.6292603",
"0.6265891",
"0.6226832",
"0.6203441",
"0.6173793",
"0.61263686",
"0.60846186",
"0.60638595",
"0.60289633",
"0.60140985",
"0.599824",
"0.5993941",
"0.599... | 0.6342984 | 8 |
Return whether this input is optional or mandatory. | def TAwy(YKHO):
return YKHO.default is not NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CYSX(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'optional')",
"def CYSX(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'optional')",
"def CYSX(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'optional')",
"def CYSX(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4... | [
"0.7898654",
"0.7898654",
"0.7898654",
"0.7898654",
"0.7898654",
"0.7898654",
"0.78647995",
"0.7767956",
"0.7514606",
"0.7514606",
"0.73671466",
"0.73312396",
"0.71767914",
"0.7173764",
"0.7173764",
"0.7173764",
"0.7173764",
"0.7173764",
"0.7173764",
"0.7173764",
"0.7173764",... | 0.6797933 | 63 |
Decorate setUp method to handle skips, and resources requests. | def k45g(YKHO, Sv8W):
@zaGL(Sv8W)
def Mq35(*qIxc, **B2fa):
"""setup method wrapper.
* Locks the required resources for the test.
* Executes the original setUp method.
* Upon exception, finalizes the resources.
"""
if YKHO.is_main:
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znbi(YKHO):\n pass",
"def FCbF(YKHO):\n raise NotImplementedError",
"def FCbF(YKHO):\n return",
"def FCbF(YKHO) -> None:\n pass",
"def FCbF(YKHO) -> None:\n pass",
"def FCbF(YKHO):\n super(vqQ1, YKHO).setUp()\n YKHO._reset_urls()\n YKHO.addCleanup(YKHO._reset_urls)",
"def FC... | [
"0.75365853",
"0.73845303",
"0.73749065",
"0.7358126",
"0.7358126",
"0.73399687",
"0.72974414",
"0.72799265",
"0.72395635",
"0.72289056",
"0.72238266",
"0.7222834",
"0.72011095",
"0.71940535",
"0.71940535",
"0.71866536",
"0.71866536",
"0.71866536",
"0.71866536",
"0.71866536",
... | 0.68334067 | 70 |
Check if the given parameter is a valid inputs for the component. | def wthf(YKHO, SK6d):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TNlS(YKHO, input):\n pass",
"def F_fq(YKHO, *qIxc):\n return",
"def Si72(YKHO, JfyU, qIxc, B2fa):\n KpJC = tq_1.getfullargspec(JfyU)\n KHJL = ''\n if KpJC.varkw is None:\n for H5ew in B2fa:\n if not H5ew in KpJC.kwonlyargs:\n KHJL += f'[Error]: not support pa... | [
"0.78938955",
"0.73111725",
"0.6981186",
"0.69493735",
"0.6863495",
"0.6850296",
"0.6775349",
"0.6705345",
"0.6688547",
"0.66801023",
"0.6678583",
"0.6675324",
"0.66537243",
"0.6611432",
"0.6578093",
"0.6573",
"0.6572051",
"0.6512315",
"0.650166",
"0.64947397",
"0.6481649",
... | 0.8006903 | 0 |
Gets the user's first and last name concatenated. This way, if the format for names changes, the update only needs to be reflected in this method. | def eHMM(YKHO):
return f'{YKHO.first_name} {YKHO.last_name}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpqj(YKHO):\n eHMM = f'{YKHO.first_name} {YKHO.last_name}' if YKHO.first_name and YKHO.last_name else YKHO.username\n return eHMM.strip()",
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def xpqj(YKHO):\n ... | [
"0.81967413",
"0.81664395",
"0.81311864",
"0.8124859",
"0.81120116",
"0.8061995",
"0.80291814",
"0.80235213",
"0.80203897",
"0.7974807",
"0.7930989",
"0.7911468",
"0.78983486",
"0.7897529",
"0.78960305",
"0.7879909",
"0.7879909",
"0.7866213",
"0.78658",
"0.78658",
"0.7862544"... | 0.7611471 | 67 |
Gets the date and time the post was created in a more casaul form. | def kMLX(YKHO):
return YKHO.created_at.strftime('%a %b %#d %Y, %#I:%M %p') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsgh(YKHO):\n return YKHO.get_attr('date_created')",
"def qL1h(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date_time')",
"def QT9s(YKHO):\n return YKHO._time_created",
"def QT9s(YKHO):\n return YKHO._time_created",
"def QT9s(YKHO):\n return YKHO._time_created",
"def QT9s(YKHO):\n ... | [
"0.7693784",
"0.7575657",
"0.75704277",
"0.75704277",
"0.75704277",
"0.75704277",
"0.75545096",
"0.75545096",
"0.75545096",
"0.73823285",
"0.73795587",
"0.7375237",
"0.7375237",
"0.7362152",
"0.735284",
"0.735284",
"0.735284",
"0.7325676",
"0.7325676",
"0.7325676",
"0.7307122... | 0.6515888 | 100 |
Calculates the quantiles for an array | def aM62(waEm, G1Hx=4, mWFP='quantile'):
yzQ0 = 100.0 / G1Hx
XP5J = oyIN.arange(yzQ0, 100 + yzQ0, yzQ0)
if XP5J[-1] > 100.0:
XP5J[-1] = 100.0
vexM = oyIN.array([eQSh.scoreatpercentile(waEm.data, His1) for His1 in XP5J])
vexM = oyIN.unique(vexM)
Wey5 = len(vexM)
if Wey5 < G1Hx:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PLwG(WKvO, tpio):\n WKvO = oyIN.asarray(WKvO, dtype=float)\n if WKvO.ndim == 0:\n WKvO = WKvO[oyIN.newaxis]\n elif WKvO.ndim == 1:\n if tpio == 1:\n WKvO = WKvO[:, oyIN.newaxis]\n else:\n WKvO = WKvO[oyIN.newaxis, :]\n return WKvO",
"def oX78(ezWE, o7bE)... | [
"0.7251345",
"0.7216592",
"0.7133247",
"0.7106315",
"0.69545215",
"0.6900969",
"0.687984",
"0.68746287",
"0.68466365",
"0.684101",
"0.68230665",
"0.6768543",
"0.67042035",
"0.6685787",
"0.6683506",
"0.6683348",
"0.6683348",
"0.6683348",
"0.6658784",
"0.66571367",
"0.6656848",... | 0.6210803 | 37 |
Return a description of this value, or None. GraphQL favors the Markdown format. return basestring The description. | def QntV(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n if 'description' in YKHO.data:\n return YKHO.data['description']\n return None",
"def JBZA(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n ret... | [
"0.7901277",
"0.7868353",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
"0.78654087",
... | 0.0 | -1 |
Return the string representation of the default value of this field. Return the GraphQL document string representation of the default value of this field, if any, or None. | def xjAB(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WmM4(YKHO):\n return YKHO._get_field('value')",
"def w7nN(BWXx: Any, HyJ9: str) -> str:\n Aofo = esvI.to_nullable_string(BWXx)\n return Aofo if not Aofo is None else HyJ9",
"def HyJ9(YKHO):\n return YKHO._default_value",
"def HyJ9(YKHO):\n return YKHO._default_value",
"def HyJ9(YKHO):\n ... | [
"0.7642904",
"0.71370226",
"0.71030396",
"0.71030396",
"0.7059839",
"0.7016615",
"0.6918234",
"0.68382716",
"0.67369616",
"0.6683766",
"0.6683766",
"0.6657304",
"0.6651199",
"0.66467327",
"0.6610293",
"0.6589807",
"0.6563949",
"0.64945656",
"0.64832085",
"0.647353",
"0.646032... | 0.673497 | 9 |
Convert a list of namedtuples to a list of dicts. | def Ij3z(Jo1h):
return [dict(K4sN._asdict()) for K4sN in Jo1h] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eMph(WPEk):\n return {G1Hx: dict(Ty9i._asdict()) for G1Hx, Ty9i in WPEk.items()}",
"def sRhS(YKHO, n6hJ):\n d6Zf = {}\n if n6hJ is not None:\n for Q6iO in n6hJ:\n H5ew, BWXx = (Q6iO[0], Q6iO[1])\n if H5ew in d6Zf:\n d6Zf[H5ew] = '{}, {}'.format(d6Zf[H5ew],... | [
"0.7817066",
"0.6758727",
"0.66412526",
"0.64723957",
"0.64278114",
"0.6394096",
"0.63894594",
"0.6282187",
"0.6216985",
"0.6095934",
"0.6095079",
"0.6058382",
"0.6039374",
"0.60156596",
"0.59870535",
"0.59787893",
"0.5960707",
"0.5944669",
"0.59195745",
"0.5884043",
"0.58442... | 0.79805464 | 0 |
Get RAID configuration for this DRAC. | def r5Ca(nYR9):
uuUY = nYR9.list_raid_controllers()
GasJ = nYR9.list_physical_disks()
_J2Y = nYR9.list_virtual_disks()
uuUY = Ij3z(uuUY)
GasJ = Ij3z(GasJ)
_J2Y = Ij3z(_J2Y)
return (uuUY, GasJ, _J2Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SfqS(YKHO) -> 'outputs.ReplicaConfigurationResponse':\n return qe4Y.get(YKHO, 'replica_configuration')",
"def SfqS(YKHO) -> qe4Y.Output['outputs.ReplicaConfigurationResponse']:\n return qe4Y.get(YKHO, 'replica_configuration')",
"def Mzae(YKHO):\n cuiw = None\n XObx = None\n xAaB = None\n ... | [
"0.6074116",
"0.5990398",
"0.59449524",
"0.58756995",
"0.56307507",
"0.56167793",
"0.5540216",
"0.5513968",
"0.5363289",
"0.53597236",
"0.53197277",
"0.5315866",
"0.52662474",
"0.52431804",
"0.5229185",
"0.51930565",
"0.5190713",
"0.5171382",
"0.5161307",
"0.5161307",
"0.5161... | 0.6847694 | 0 |
Initialize our weight using the given `prob` dict. | def FIMM(YKHO, JxU2, Xf84=None):
YKHO.pt = Xf84
if JxU2['BaseValueAttribute'] != 'None':
raise Exception('Cannot handle BVA at the moment')
if JxU2['InitializationDefinition'] == 'None':
YKHO.bvc = round(float(JxU2['BaseValueConstant']), 6)
elif JxU2['InitializationDefinition'] in YKHO.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rKam):\n YKHO.weightsDictionary = rKam",
"def i7WW(YKHO):\n uHk4(YKHO.norm0)",
"def FIMM(YKHO, _mSQ):\n YKHO._weights = _mSQ",
"def FIMM(YKHO, _mSQ, sjXb=None):\n exwG = YKHO.n = len(_mSQ)\n if sjXb is None:\n YKHO.keys = sjXb\n else:\n YKHO.keys = qw7D(sjXb)\n ... | [
"0.6657062",
"0.6617697",
"0.6477255",
"0.64551485",
"0.643897",
"0.6419869",
"0.6368359",
"0.6329848",
"0.628035",
"0.6222019",
"0.61786747",
"0.61668336",
"0.61280805",
"0.61208236",
"0.6113796",
"0.6086853",
"0.60847235",
"0.60838646",
"0.60830677",
"0.6041032",
"0.6036923... | 0.58597076 | 41 |
Returns a list of children of ourselves which match the given prefix to the child name. | def meSZ(YKHO, y0cW):
y0cW = y0cW.lower()
for th09, aUGN in YKHO.children.items():
if th09.lower().startswith(y0cW):
yield aUGN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDSz(YKHO, y0cW):\n Q6kx = YKHO.get_node(YKHO.root, 0, y0cW)\n return YKHO.collect(Q6kx.middle, y0cW)",
"def R8tW(YKHO, y0cW):\n jvSB = YKHO.root\n for sZqf in y0cW:\n jvSB = jvSB.get_child(sZqf)\n if not jvSB:\n return\n return jvSB",
"def l59w(YKHO, y0cW, **YSA3):\... | [
"0.6770849",
"0.6600128",
"0.6495988",
"0.64550245",
"0.6418861",
"0.6245262",
"0.6121086",
"0.61016935",
"0.6089816",
"0.60410255",
"0.5967848",
"0.59350145",
"0.5895098",
"0.58767796",
"0.58699125",
"0.58631915",
"0.58324337",
"0.5819725",
"0.58158004",
"0.5761066",
"0.5760... | 0.85868233 | 0 |
Generate the workstation query string. Supports setting the image with overlay or a reader_study. | def N1_k(LNo8=None, Pm8b=None, jTdb=None, hra1=None, GPtr=None, CBIr=None, ptGP=None):
if LNo8:
pmON = f'{gCuF.WORKSTATIONS_BASE_IMAGE_PATH_PARAM}/{getattr(LNo8, 'pk', LNo8)}'
elif ptGP:
pmON = f'{gCuF.WORKSTATIONS_DISPLAY_SET_PATH_PARAM}/{ptGP.pk}'
elif Pm8b:
pmON = f'{gCuF.WORKSTAT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xtra(KW4A, oQ6W, ecqT, JZXy):\n bD7m = f'https://www.wowhead.com/{KW4A}'\n if KW4A == 'armor' or KW4A == 'weapons':\n bD7m += f'/slot:{oQ6W}'\n if JZXy == 4:\n bD7m += f'/live-only:on?filter=166:3:161:162:128;{ecqT}:1:1:2:{JZXy};0:0:0:0:0'\n else:\n bD7m = ''\n if dsE5:\n ... | [
"0.5476684",
"0.53578734",
"0.53553236",
"0.5349658",
"0.5326908",
"0.5296239",
"0.52699965",
"0.5252346",
"0.5246",
"0.5227675",
"0.52073395",
"0.52018476",
"0.5200634",
"0.51603264",
"0.51580846",
"0.51478916",
"0.51153433",
"0.50952214",
"0.50773436",
"0.5053784",
"0.50298... | 0.7278978 | 0 |
Sets the intermission_time_remaining of this GameLinescoreIntermissionInfo. | def MB6F(YKHO, MB6F):
YKHO._intermission_time_remaining = MB6F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QsNF(YKHO, QsNF):\n YKHO._intermission_time_elapsed = QsNF",
"def Elxo(YKHO, Elxo):\n YKHO._time_remaining_minutes = Elxo",
"def psBk(YKHO, psBk):\n YKHO._time_remaining_seconds = psBk",
"def FIMM(YKHO, MB6F=None, QsNF=None, QdSk=None):\n YKHO._intermission_time_remaining = None\n YKHO._in... | [
"0.69672805",
"0.6751469",
"0.6676688",
"0.60492975",
"0.5371108",
"0.51417714",
"0.5016502",
"0.49284938",
"0.49267244",
"0.4819703",
"0.47928286",
"0.4695228",
"0.46379936",
"0.4570687",
"0.45588508",
"0.45588508",
"0.45285955",
"0.45177945",
"0.45129186",
"0.44630712",
"0.... | 0.857617 | 0 |
Sets the intermission_time_elapsed of this GameLinescoreIntermissionInfo. | def QsNF(YKHO, QsNF):
YKHO._intermission_time_elapsed = QsNF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MB6F(YKHO, MB6F):\n YKHO._intermission_time_remaining = MB6F",
"def FIMM(YKHO, MB6F=None, QsNF=None, QdSk=None):\n YKHO._intermission_time_remaining = None\n YKHO._intermission_time_elapsed = None\n YKHO._in_intermission = None\n YKHO.discriminator = None\n if MB6F is not None:\n YKH... | [
"0.6697917",
"0.55704236",
"0.49364233",
"0.48595253",
"0.48530403",
"0.46908185",
"0.4585138",
"0.45659852",
"0.45494285",
"0.45441353",
"0.45352384",
"0.45206323",
"0.44234252",
"0.43833986",
"0.43749312",
"0.4370119",
"0.43544975",
"0.43544975",
"0.4321036",
"0.43180215",
... | 0.8470693 | 0 |
Sets the in_intermission of this GameLinescoreIntermissionInfo. | def QdSk(YKHO, QdSk):
YKHO._in_intermission = QdSk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, MB6F=None, QsNF=None, QdSk=None):\n YKHO._intermission_time_remaining = None\n YKHO._intermission_time_elapsed = None\n YKHO._in_intermission = None\n YKHO.discriminator = None\n if MB6F is not None:\n YKHO.intermission_time_remaining = MB6F\n if QsNF is not None:\n Y... | [
"0.6098776",
"0.5795174",
"0.57515126",
"0.5584758",
"0.55753607",
"0.5436638",
"0.5436638",
"0.5436638",
"0.5436638",
"0.5436638",
"0.5342003",
"0.5293667",
"0.5213031",
"0.509661",
"0.50306225",
"0.48586065",
"0.48515713",
"0.48505744",
"0.47776714",
"0.4758859",
"0.4739976... | 0.81938934 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, imPv):
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.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 |
Defines `C(n, k)` as the number of ways to pick `k` items among `n` | def ap9_(exwG: int, G1Hx: int) -> int:
if G1Hx > exwG:
raise ValueError
Aofo = 1
for YRbF in range(exwG - G1Hx + 1, exwG + 1):
Aofo *= YRbF
for YRbF in range(2, G1Hx + 1):
Aofo /= YRbF
return int(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clUQ(r8He):\n hkxX = oyIN.zeros((1, r8He + 1))\n ZT17 = oyIN.arange(r8He + 1)\n for YRbF in range(r8He + 1):\n hkxX[YRbF] = Zxt2.misc.comb(r8He, ZT17[YRbF])\n return hkxX",
"def E6VQ(exwG, G1Hx):\n return TFEx(exwG) / (TFEx(G1Hx) * TFEx(exwG - G1Hx))",
"def WRiD(ywwl, nMvt):\n retu... | [
"0.73505104",
"0.715888",
"0.7128304",
"0.7010093",
"0.7006238",
"0.6969344",
"0.6916041",
"0.6911911",
"0.68487436",
"0.6757279",
"0.67442524",
"0.6695749",
"0.6663959",
"0.663854",
"0.6634696",
"0.6613549",
"0.6603175",
"0.65733325",
"0.65733325",
"0.653248",
"0.6518686",
... | 0.63701993 | 29 |
Return `True` if `n` passes `k` rounds of the MillerRabin primality test (and is probably prime). Return `False` if `n` is proved to be composite. | def Ly1H(exwG: int, G1Hx: int=3) -> bool:
if exwG < 2:
return False
for XP5J in kdK0:
if exwG < XP5J * XP5J:
return True
if exwG % XP5J == 0:
return False
Mkmy, KCHu = (0, exwG - 1)
while KCHu % 2 == 0:
Mkmy += 1
KCHu //= 2
for bGrB in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xam_(exwG):\n if exwG <= 1:\n return False\n elif exwG == 2:\n return True\n elif exwG % 2 == 0:\n return False\n ZGED = tHJl(exwG)\n if ZGED is None:\n tO9_ = 'No definite Miller-Rabin test is available for %d' % exwG\n raise ValueError(tO9_)\n Csk6, KCHu =... | [
"0.8286414",
"0.8286414",
"0.7837594",
"0.75324184",
"0.75093573",
"0.7506464",
"0.74567384",
"0.7455075",
"0.7400499",
"0.73274815",
"0.72831213",
"0.7273223",
"0.7258809",
"0.7233196",
"0.7232985",
"0.72253776",
"0.722515",
"0.7212825",
"0.71969444",
"0.7193044",
"0.7190779... | 0.74399346 | 8 |
Computes the GCD of all items from an `Iterator` | def fU4g(WhY1: Iterator):
return Pusg(ML2l, WhY1, next(WhY1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zq2L(eHNT, Oa1e, **JbyC):\n\n def _anc(MKlR, WKvO):\n eHNT = []\n while MKlR:\n Oa1e = MKlR % WKvO\n if Oa1e > WKvO // 2:\n Oa1e -= WKvO\n eHNT.insert(0, Oa1e)\n MKlR = (MKlR - Oa1e) // WKvO\n return eHNT\n\n def vNXD(MKlR, b... | [
"0.5868378",
"0.58008903",
"0.5747364",
"0.5737022",
"0.56543446",
"0.5648989",
"0.5632083",
"0.5632083",
"0.5590387",
"0.553907",
"0.55175877",
"0.54886276",
"0.5457125",
"0.5435342",
"0.54321516",
"0.54260874",
"0.54194427",
"0.5408416",
"0.54013544",
"0.53867835",
"0.53809... | 0.8005254 | 0 |
Returns the rows in the table as a tuple of dicts | def usx6(YKHO, GTA_):
N1p7 = YKHO.connection.cursor()
N1p7.execute('SELECT * FROM %s' % GTA_)
usx6 = [rdlD for rdlD in N1p7]
N1p7.close()
return usx6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debq(YKHO):\n return [dict(zip([fvDH[0] for fvDH in YKHO.cursor.description], rdlD)) for rdlD in YKHO.cursor.fetchall()]",
"def nQ3j(rdlD, uPxI):\n return dict(zip(uPxI.fields(), rdlD))",
"def B5sP(YKHO, N1p7):\n yv6U = []\n for rdlD in N1p7.fetchall():\n cn7V = {}\n for or8S, fvD... | [
"0.71447",
"0.7045556",
"0.68054247",
"0.67171305",
"0.67171305",
"0.66233313",
"0.66233313",
"0.6595286",
"0.6585456",
"0.6505285",
"0.64341414",
"0.6403422",
"0.63620377",
"0.63620377",
"0.6337688",
"0.6286496",
"0.6264586",
"0.62470895",
"0.6242803",
"0.6213794",
"0.619985... | 0.0 | -1 |
Sets the value of this var. This is only allowed to be done once | def set(YKHO, nPrm):
with YKHO.__cond:
if YKHO.__isset:
raise _sRr('A thread attempted to set a filled' + 'write once variable a second time')
YKHO.__isset = True
YKHO.__data = nPrm
for eHNT in YKHO.__merged:
eHNT.set(nPrm)
YKHO.__cond.notifyAll() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jq5k(YKHO, wEf2):\n YKHO.value = wEf2",
"def ahdu(YKHO):\n YKHO.value = YKHO.var.get()",
"def j6Nn(YKHO, wEf2):\n YKHO.value = wEf2",
"def bD1G(YKHO, BWXx):\n YKHO.value = BWXx",
"def j6Nn(YKHO, wEf2):\n YKHO._value = wEf2",
"def j6Nn(YKHO, wEf2):\n YKHO._value = wEf2",
"def j6Nn(... | [
"0.80588543",
"0.7984344",
"0.79813695",
"0.796231",
"0.7930305",
"0.7930305",
"0.789141",
"0.78878146",
"0.7869965",
"0.78689474",
"0.78689474",
"0.7780524",
"0.7780524",
"0.7780524",
"0.76622313",
"0.7658537",
"0.7658537",
"0.7658537",
"0.7658537",
"0.7658537",
"0.7658537",... | 0.0 | -1 |
We create a multihead neural network which jointly learns an approximation of the statevalue function and the stateaction value function. Its convolutional layers are fully shared whereas once the feature maps get flattened we add a specific hidden layer before the outputs which estimate V(s) and Q(s,a). For the differ... | def XaXp(YKHO):
VjJf = X6a0(shape=(84, 84, 4), name='game_state')
Y0N9 = yHwh(32, (8, 8), strides=(4, 4), activation='relu')(VjJf)
Uifs = yHwh(64, (4, 4), strides=(2, 2), activation='relu')(Y0N9)
BpTk = yHwh(64, (3, 3), strides=(1, 1), activation='relu')(Uifs)
qnkS = D2Bo()(BpTk)
_4Hk = l6ZH(512... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8cN(YKHO):\n wspz = fhcK.Input(shape=(YKHO.state_size,), name='states')\n xASv = fhcK.Input(shape=(YKHO.action_size,), name='actions')\n z3I0 = fhcK.Dense(units=320, kernel_regularizer=yjPc.l2(0.01), activation='relu')(wspz)\n z3I0 = fhcK.BatchNormalization()(z3I0)\n z3I0 = fhcK.Dropout(0.25)(z... | [
"0.6835366",
"0.6787757",
"0.6639846",
"0.6495322",
"0.6435148",
"0.63943493",
"0.63321877",
"0.6330303",
"0.6293193",
"0.62709874",
"0.6247748",
"0.6238156",
"0.62016296",
"0.61803854",
"0.61752415",
"0.61737376",
"0.6155191",
"0.61312187",
"0.61289",
"0.6106562",
"0.609554"... | 0.0 | -1 |
render the shop page | def H__F(QePW):
return _1tc(QePW, 'shop/shop.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(QePW):\n return _1tc(QePW, 'shop/index.html')",
"def Ldyl():\n return TvZl('products.html')",
"def XfwO(QePW):\n return _1tc(QePW, 'shoppingbag/shoppingbag.html')",
"def Qpy0(QePW):\n return _1tc(QePW, 'basket/basket.html')",
"def lxkz(QePW):\n xryH = lYpP(QePW)\n woFC = xryH['ca... | [
"0.744742",
"0.70073193",
"0.6869518",
"0.6811567",
"0.67606133",
"0.6760605",
"0.674106",
"0.6724063",
"0.6724063",
"0.6724063",
"0.6635341",
"0.65971035",
"0.65971035",
"0.6513482",
"0.649033",
"0.6481877",
"0.64639807",
"0.6438102",
"0.64173865",
"0.64070916",
"0.637622",
... | 0.8127534 | 0 |
helper function to filter a dict by a dict key | def qdyC(BtEp, GnFh, D8IQ):
return {G1Hx: Ty9i for G1Hx, Ty9i in BtEp.items() if Ty9i[GnFh] == D8IQ} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XbYF(cmPJ, nvEb):\n return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in cmPJ.items() if nvEb(G1Hx, Ty9i)))",
"def KnIY(JfyU, uxij):\n return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in uxij.items() if JfyU(G1Hx)))",
"def XbYF(VIkw, ZHfW):\n if VIkw is None:\n VIkw = dict()\n if ZHfW is None:\n Z... | [
"0.773288",
"0.76445735",
"0.72936165",
"0.724765",
"0.72248065",
"0.71677727",
"0.71633196",
"0.7130337",
"0.7092645",
"0.7021775",
"0.7012441",
"0.6812451",
"0.67870086",
"0.677302",
"0.67513335",
"0.66598976",
"0.6646052",
"0.6594211",
"0.65440637",
"0.6518743",
"0.6491298... | 0.0 | -1 |
This function returns (min_birth, max_death) from the persistence. | def vHzy(trd0, Ebru=0.0):
EwVT = 0
yDiM = trd0[0][1][0]
for VOlW in reversed(trd0):
if float(VOlW[1][1]) != float('inf'):
if float(VOlW[1][1]) > EwVT:
EwVT = float(VOlW[1][1])
if float(VOlW[1][0]) > EwVT:
EwVT = float(VOlW[1][0])
if float(VOlW[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EXmg(YKHO):\n jyUS = YKHO.dismod_file.age\n return (jyUS.age.min(), jyUS.age.max())",
"def RUhx(YKHO, trd0, eyry=0.1, Ebru=0.0):\n yDiM, EwVT = YKHO.__min_birth_max_death(trd0, Ebru)\n RA_F = (EwVT - yDiM) * eyry\n re6M = EwVT + RA_F\n return re6M",
"def FPj6(jQ3Z):\n TUji = jQ3Z['Birt... | [
"0.5899358",
"0.5881325",
"0.5661318",
"0.55898505",
"0.55795324",
"0.54763824",
"0.53813905",
"0.5352748",
"0.5336196",
"0.53039163",
"0.5296036",
"0.5290725",
"0.5286891",
"0.5260927",
"0.5239374",
"0.52169144",
"0.5185975",
"0.51684934",
"0.51615936",
"0.5150936",
"0.51388... | 0.79057974 | 0 |
If user submits bad (blank) form, form errors displayed | def Wkwd(YKHO):
qpDA = HAC5.test_objects.create_site('site name')
geh0 = YKHO.client.post(gxEw('streamwebs:camera_point_add', kwargs={'site_slug': qpDA.site_slug}), {'camera_point-TOTAL_FORMS': '3', 'camera_point-INITIAL_FORMS': '0', 'camera_point-MAX_NUM_FORMS': '3', 'camera_point-MIN_NUM_FORMS': '3', 'form-TO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ee9W(YKHO, L03z, QePW):\n return",
"def ee9W(YKHO, L03z, QePW):\n return",
"def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data(result=L03z.errors.as_text()))",
"def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data(form=L03z))",
"def ee9W(YKH... | [
"0.75501215",
"0.75501215",
"0.73720896",
"0.71829796",
"0.71829796",
"0.71118057",
"0.6979715",
"0.69683945",
"0.6857075",
"0.6857075",
"0.6826126",
"0.6826126",
"0.68255764",
"0.6819498",
"0.68168914",
"0.6816588",
"0.6801578",
"0.6801578",
"0.67434096",
"0.67434096",
"0.67... | 0.0 | -1 |
Initialise a Quartus Synthesiser instance | def FIMM(YKHO, bNKA, qOcs):
super(JJjh, YKHO).__init__(bNKA, YKHO.executables, qOcs)
YKHO.quartus_sh = Hy7s.path.join(YKHO.path, 'quartus_sh') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN(vexM: qreg) -> z5su:\n return",
"def FIMM(YKHO, *qIxc):\n PZpo.TFltQu_swiginit(YKHO, PZpo.new_TFltQu(*qIxc))",
"def FIMM(YKHO, slpS=None, UqYS=None, QbrG=None):\n if slpS is not None:\n YKHO.quaternion = slpS\n if UqYS is not None:\n YKHO.beta = UqYS\n if QbrG is not None:... | [
"0.6310578",
"0.6217103",
"0.6069628",
"0.6059048",
"0.6058794",
"0.60394454",
"0.6035063",
"0.6000956",
"0.59919447",
"0.59582096",
"0.5884167",
"0.5869243",
"0.58563316",
"0.58337396",
"0.58119035",
"0.58060163",
"0.57565385",
"0.5727302",
"0.57029814",
"0.56907",
"0.565626... | 0.0 | -1 |
Get He's constant for the given layer | def nY2p(WKvO, mb4J):
zNig = WKvO.weight.size()
IddF = QRFO(zNig[1:])
return mb4J * epAf.sqrt(1.0 / IddF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWG7() -> float:\n return 1006.0",
"def nUfw() -> float:\n return 0.49",
"def OfcS(WhQ6, gEmA):\n global r, c, h\n B_CH = Mkmy * (WhQ6 ** 2 / gEmA ** 2)\n return float('%.2E' % ZjSO(str(B_CH)))",
"def C7Ls(YKHO, epBp):\n return YKHO.H0 * YKHO.E(epBp)",
"def k590(YKHO) -> float:\n r... | [
"0.68291503",
"0.6137144",
"0.60796916",
"0.6004062",
"0.5886632",
"0.58120126",
"0.57895094",
"0.5788709",
"0.5787688",
"0.5747631",
"0.5741245",
"0.5724301",
"0.5699232",
"0.56729484",
"0.55906075",
"0.55719507",
"0.5552763",
"0.5552763",
"0.55492437",
"0.5530428",
"0.55231... | 0.5349069 | 43 |
Tests standard roi head loss when truth is empty and nonempty. | def pziO(YKHO, PDxv):
if not ht2j.cuda.is_available():
return DuvM.skip('test requires GPU and torch+cuda')
KCHu = 256
NFnm = hd_c(with_shared_head=PDxv)
nxqI = _vtG.build(NFnm)
nxqI = nxqI.cuda()
LyKa = []
for YRbF in range(len(nxqI.bbox_roi_extractor.featmap_strides)):
if n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BeFQ():\n assert U8lI[-1] == njt6[-1]",
"def AxOp(YKHO, N77f):\n assert not oyIN.isnan(N77f), 'Model diverged with loss = NaN'",
"def Y5Ft(YKHO):\n YKHO.model.load_state_dict(YKHO.initial_model_dict)\n YKHO.actor_model.load_state_dict(YKHO.initial_actor_model_dict)\n QRn9.learn(*YKHO.learn_a... | [
"0.6630715",
"0.5900274",
"0.5891999",
"0.58664995",
"0.5649074",
"0.56405854",
"0.55586785",
"0.554255",
"0.5507735",
"0.5480439",
"0.5434002",
"0.53969556",
"0.53587246",
"0.5340794",
"0.53252834",
"0.53201187",
"0.5317818",
"0.52895206",
"0.52850646",
"0.52742416",
"0.5253... | 0.75855255 | 0 |
Draw bounding boxes on image. | def edPp(LNo8: np.ndarray, oUSw: np.ndarray, grDl: List[int], tGDF: List[str], cCrA: List[float]=None):
LNo8 = hnIv.fromarray(oyIN.floor(LNo8 * 255 + 0.5).astype('uint8'))
o9av = eENq.truetype(font='RictyDiminished-Regular.ttf', size=oyIN.floor(0.03 * LNo8.size[1] + 0.5).astype('int32'))
dGrG = (LNo8.size[0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sGG5(YKHO, QMAG):\n VXjJ = jbYn.imread(QMAG, jbYn.IMREAD_ANYDEPTH)\n c8oy = oyIN.zeros((VXjJ.shape[0], VXjJ.shape[1], 3), dtype=oyIN.uint8)\n kcwm, BWz1 = oyIN.unique(VXjJ, return_counts=True)\n for Zmen in kcwm:\n if Zmen == 0:\n continue\n YKHO.get_instance_bounding_box(V... | [
"0.80702066",
"0.7804719",
"0.76538426",
"0.75976384",
"0.75510824",
"0.75370336",
"0.7513122",
"0.74529815",
"0.74439275",
"0.74271363",
"0.7421404",
"0.7405068",
"0.7302394",
"0.7282591",
"0.72423345",
"0.72420937",
"0.72209686",
"0.72165626",
"0.7193688",
"0.71887493",
"0.... | 0.6531832 | 60 |
Return list of random colors for number of classes given. | def cVkB(jTqs):
if hasattr(cVkB, 'colors') and len(cVkB.colors) == jTqs:
return cVkB.colors
Fyob = [(WKvO / jTqs, 1.0, 1.0) for WKvO in range(jTqs)]
Jw9H = list(map(lambda WKvO: h478.hsv_to_rgb(*WKvO), Fyob))
Jw9H = list(map(lambda WKvO: (int(WKvO[0] * 255), int(WKvO[1] * 255), int(WKvO[2] * 255... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GBRA(jTqs):\n if hasattr(GBRA, 'colors') and len(GBRA.colors) == jTqs:\n return GBRA.colors\n Fyob = [(float(WKvO) / jTqs, 1.0, 1.0) for WKvO in range(jTqs)]\n Jw9H = list(map(lambda WKvO: h478.hsv_to_rgb(*WKvO), Fyob))\n Jw9H = list(map(lambda WKvO: (int(WKvO[0] * 255), int(WKvO[1] * 255), ... | [
"0.7893131",
"0.77728426",
"0.74452984",
"0.7418036",
"0.7350331",
"0.73058707",
"0.7200909",
"0.7189055",
"0.7189055",
"0.7189055",
"0.7157736",
"0.71494246",
"0.7112276",
"0.710539",
"0.7090242",
"0.7040318",
"0.70354927",
"0.70328844",
"0.7028532",
"0.69534725",
"0.6714349... | 0.79241276 | 0 |
Divides given dataframe into list of test and train sets, within the time period of interest. | def pJ_c(jQ3Z, GPtr, H01N=None):
fC3A = GPtr.variables['tvar']
EgE8 = GPtr.variables['xvar'] + GPtr.variables['xvar_derived']
bWOo = GPtr.timestamps['begin_date']
KhBf = GPtr.timestamps['end_date']
pLBp = GPtr.timestamps['deltat']
bWOo = qcWV.datetime.strptime(bWOo, '%Y-%m-%d %H:%M:%S')
KhBf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_Vt(jQ3Z, hV4N, OXZX, HSQf, WJFk):\n XxFT = jQ3Z.copy()[(jQ3Z[WJFk] >= hV4N) & (jQ3Z[WJFk] <= OXZX)]\n t4zr = jQ3Z.copy()[(jQ3Z[WJFk] > OXZX) & (jQ3Z[WJFk] <= HSQf)]\n return (XxFT, t4zr)",
"def gwEi(jQ3Z, O0yi=1):\n XxFT = jQ3Z.iloc[0:len(jQ3Z) - O0yi]\n t4zr = jQ3Z.iloc[len(jQ3Z) - O0yi:len... | [
"0.74436104",
"0.73339665",
"0.72733957",
"0.694838",
"0.6944863",
"0.6889575",
"0.68596375",
"0.6849533",
"0.68419445",
"0.6733868",
"0.6711337",
"0.6573086",
"0.6539149",
"0.65350944",
"0.64913404",
"0.6469819",
"0.6439456",
"0.6430458",
"0.64299405",
"0.6413641",
"0.641048... | 0.72377473 | 3 |
Returns object type. Archival objects that have children are mapped differently from those without. | def LGkp(YKHO, nPrm):
if nPrm.get('jsonmodel_type') == 'archival_object':
if YKHO.aspace_helper.has_children(nPrm['uri']):
return 'archival_object_collection'
return nPrm.get('jsonmodel_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_ty... | [
"0.68849576",
"0.68849576",
"0.68849576",
"0.68849576",
"0.68849576",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916",
"0.68797916"... | 0.73462844 | 0 |
r"""Initialize Runner. __init__(self, D, NP, nFES, nRuns, useAlgorithms, useBenchmarks, ...) | def FIMM(YKHO, lWPh, NKNl, nPMm, _Jz5, ev62, SL2f, **B2fa):
YKHO.D = lWPh
YKHO.NP = NKNl
YKHO.nFES = nPMm
YKHO.nRuns = _Jz5
YKHO.useAlgorithms = ev62
YKHO.useBenchmarks = SL2f
YKHO.A = B2fa.get('A', 0.5)
YKHO.r = B2fa.get('r', 0.5)
YKHO.Qmin = B2fa.get('Qmin', 0.0)
YKHO.Qmax = B2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, lWPh, nPMm=FfMS, Ek2k=FfMS, T1WL=None, z1Rg=None, zu3G=None, E3D9=None, ofc1=None, LPT1=None, DSz6=AOzs.MINIMIZATION, **B2fa):\n BZVr.__init__(YKHO)\n YKHO.D = lWPh\n YKHO.nGEN, YKHO.nFES = (Ek2k, nPMm)\n YKHO.benchmark = YKHO.get_benchmark(T1WL) if T1WL is not None else None\n if YKH... | [
"0.715041",
"0.70560753",
"0.6858815",
"0.6852311",
"0.676944",
"0.67538583",
"0.66964144",
"0.66648585",
"0.66288215",
"0.6588328",
"0.6575916",
"0.65599287",
"0.65202016",
"0.6518476",
"0.650799",
"0.6485779",
"0.64814353",
"0.6454969",
"0.6454721",
"0.645414",
"0.6441317",... | 0.74177665 | 0 |
Replaces characters in a string value based on specified Regex pattern | def RWzx(wEf2, mXDZ, gYLb='', gOUQ=oyIN.nan, x4vX=oyIN.nan):
try:
EESs = ZbWC.sub(mXDZ, gYLb, wEf2)
Z6gX = x4vX if EESs == '' else EESs
return Z6gX
except:
return gOUQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gB7F(wEf2: AnyStr, mXDZ: str, RqeO: str) -> str:\n return ZbWC.sub(mXDZ, RqeO, str(wEf2))",
"def OWjP(vIwR, njyT, qx_G):\n return ZbWC.sub(njyT, qx_G, vIwR)",
"def u45t(lvR3, sWfS, U4ZT):\n return U4ZT.replace(lvR3, sWfS)",
"def hSkK(mXDZ, finE, vIwR):\n return ZbWC.sub('^%s' % mXDZ, finE, vI... | [
"0.74421453",
"0.6847357",
"0.6694614",
"0.66883945",
"0.66564864",
"0.6552084",
"0.6541106",
"0.6453723",
"0.6437678",
"0.6134753",
"0.6109662",
"0.60975724",
"0.6072224",
"0.5917033",
"0.5891155",
"0.58741814",
"0.58679634",
"0.58628213",
"0.586113",
"0.5830483",
"0.5823310... | 0.56642365 | 37 |
Saves current version of self.df to file in csv format | def W1Sa(YKHO, Rauy, **XlLO):
YKHO.df.to_csv(Rauy, index=False, **XlLO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RZtn(YKHO):\n YKHO.tableView.df.to_csv('Data export.csv', index=False)\n print('CSV file exported')",
"def xkzz(YKHO):\n kDeE = YKHO._getSavePath()\n print('saving:', kDeE)\n YKHO.dfAnalysis.to_csv(kDeE)",
"def aVpL(YKHO, Ux0P):\n YKHO.data.to_csv(Ux0P)",
"def xkzz(YKHO):\n YKHO.df_a... | [
"0.80089116",
"0.79884464",
"0.79748064",
"0.775471",
"0.77102184",
"0.76648504",
"0.7616287",
"0.7555002",
"0.74944687",
"0.7473863",
"0.74496186",
"0.74067503",
"0.73827493",
"0.7333779",
"0.72661597",
"0.72044915",
"0.71645325",
"0.7160156",
"0.7109729",
"0.704585",
"0.703... | 0.67652 | 49 |
Get the date 1 month ago. | def JtWs():
return qcWV.now() + enlf(months=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fguW():\n Csk6 = str(qcWV.date.today() - qcWV.timedelta(days=31)).split('-')\n LVAh = Csk6[0]\n r8hN = Csk6[1]\n Csk6 = Csk6[2]\n ysmP = ItX3(int(LVAh), int(r8hN), int(Csk6))\n return ysmP",
"def vKLp():\n return (qcWV.now().replace(day=1) + enlf(months=1) + fCoM(days=-1)).strftime('%d-%... | [
"0.67350656",
"0.6614442",
"0.6595124",
"0.6511224",
"0.6149043",
"0.6101112",
"0.60151637",
"0.5930122",
"0.5921141",
"0.5875613",
"0.5861944",
"0.581373",
"0.58128756",
"0.57573056",
"0.5754512",
"0.57052547",
"0.5700669",
"0.569793",
"0.55903983",
"0.5571026",
"0.5566859",... | 0.7280777 | 0 |
Given a parent post id, retrieve all child ids. | async def get_child_ids(NCls, Fi3q):
Pe9W = "SELECT id FROM hive_posts WHERE parent_id = :id AND is_deleted = '0'"
return await NCls.query_col(Pe9W, id=Fi3q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ym5H(YKHO):\n return YKHO._parent_ids",
"def afYC(_AKB, nPrm):\n W0_Q = []\n for Ii1o in nPrm:\n if nPrm[Ii1o]['parentId1'] == _AKB or nPrm[Ii1o]['parentId2'] == _AKB:\n W0_Q.append(Ii1o)\n return W0_Q",
"def Q39W(YKHO):\n return YKHO._children_ids",
"def zWv3(Ii1o):\n ... | [
"0.66563797",
"0.6616185",
"0.64384764",
"0.6375195",
"0.6267642",
"0.62036073",
"0.60970503",
"0.60939294",
"0.6078386",
"0.6071468",
"0.5984083",
"0.5983352",
"0.594516",
"0.59440553",
"0.59118915",
"0.5890208",
"0.5885428",
"0.58638424",
"0.5843883",
"0.58213043",
"0.57484... | 0.8081592 | 0 |
Get a list of post_ids representing comments by an author. | async def pids_by_account_comments(NCls, ZrNc: str, Bo_G: str='', qoqK: int=20):
lhwp = ''
ACAh = None
if Bo_G:
ACAh = await IcPw(NCls, ZrNc, Bo_G)
if not ACAh:
return []
lhwp = 'AND id <= :start_id'
Pe9W = "\n SELECT id FROM hive_posts\n WHERE author =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pEZN(YKHO, taDc: str) -> x1iM[LX6y]:\n NArs = (f'%{taDc}%',)\n xDcj = '\\n SELECT *\\n FROM quotes\\n WHERE author LIKE ?\\n ORDER BY created_at DESC\\n '\n U5bT = YKHO.__execute_query(xDcj, NArs)\n return YKHO.__build_quotes_from_query_result(U5bT... | [
"0.6329552",
"0.6130291",
"0.60110927",
"0.582621",
"0.58215576",
"0.5753566",
"0.562087",
"0.56208557",
"0.5594092",
"0.55755395",
"0.55081016",
"0.5498637",
"0.5479328",
"0.5465211",
"0.5447182",
"0.54296464",
"0.5415945",
"0.53362143",
"0.5323411",
"0.531617",
"0.5306798",... | 0.5281778 | 21 |
Build a geocodable location string from the Contact address related fields. | def XWU0(YKHO):
UGle = ' '.join(YKHO.context.getAddress().strip().split())
UGle = UGle.replace('Postfach', '').replace('\r', '').strip()
jLqg = YKHO.context.getZip()
j5sA = YKHO.context.getCity()
vxW9 = YKHO.context.getCountry()
if not (UGle or jLqg or j5sA):
return ''
Rci7 = vxW9
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ombM(YKHO):\n return YKHO._plrevgeoloc.addressString",
"def YxCI(YKHO, Rci7: Location) -> str:\n if not Rci7:\n return '{}'\n if not Rci7.external_id and Rci7.lat:\n try:\n Rci7 = YKHO.location_search(Rci7.lat, Rci7.lng)[0]\n except IndexError:\n pass\n ... | [
"0.6900671",
"0.66811323",
"0.66786385",
"0.6627425",
"0.659564",
"0.6512036",
"0.649883",
"0.64451563",
"0.6436682",
"0.6406653",
"0.6307216",
"0.62407905",
"0.623429",
"0.61475194",
"0.612165",
"0.601474",
"0.5997596",
"0.5937755",
"0.5920146",
"0.5917177",
"0.58359456",
... | 0.7336709 | 0 |
Loads a file into a json object | def DMrX(qaEx, CLgr=False):
try:
with open(qaEx) as KAfx:
TLbt = qQXR.load(KAfx)
G9jH.debug("Loaded JSON file from '{0}'".format(qaEx))
except IOError:
if CLgr:
TLbt = []
else:
G9jH.error("¯\\_(ツ)_/¯ There is no such file: '{0}'".format(qaEx))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H(gIsw):\n return qQXR.load(open(gIsw))",
"def y4Mn(VqRE):\n with open(VqRE, 'r') as eHNT:\n return qQXR.load(eHNT)",
"def WEhu(qaEx):\n with open(qaEx) as eHNT:\n return tU6l(eHNT.read())",
"def lc9H(VqRE: str):\n with open(VqRE, encoding='utf-8') as eHNT:\n return qQ... | [
"0.8160014",
"0.80558413",
"0.80401045",
"0.80277985",
"0.8020446",
"0.79793316",
"0.7925492",
"0.79125565",
"0.78715533",
"0.78351843",
"0.78052545",
"0.77917355",
"0.77337104",
"0.7725889",
"0.77238894",
"0.7710487",
"0.77079916",
"0.77047944",
"0.7676533",
"0.7669659",
"0.... | 0.72388184 | 98 |
Saves json object into a file | def QN9E(qaEx, TLbt):
try:
with open(qaEx, 'w') as _RR0:
qQXR.dump(TLbt, _RR0)
G9jH.debug("Saved JSON to file '{0}'".format(qaEx))
except IOError:
G9jH.error("¯\\_(ツ)_/¯ Can't even open the file for writing: {0}'".format(qaEx))
HwRy.exit(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PF_N(UxL2, Ux0P):\n with open(Ux0P, 'w') as DfdU:\n return DfdU.write(qQXR.dumps(UxL2))",
"def PF_N(UxL2, Ux0P):\n with open(Ux0P, 'w') as eHNT:\n r845 = qQXR.dumps(UxL2)\n eHNT.write(r845)\n eHNT.close()",
"def PF_N(UxL2, Ux0P):\n with open(Ux0P, mode='w') as nUeQ:\n ... | [
"0.8210631",
"0.8190138",
"0.8153875",
"0.8134198",
"0.81234175",
"0.81187624",
"0.81182235",
"0.8117645",
"0.81106603",
"0.808504",
"0.80817527",
"0.807828",
"0.8061442",
"0.804218",
"0.80137026",
"0.79933846",
"0.7954396",
"0.7920673",
"0.79199034",
"0.78771186",
"0.7874284... | 0.85248685 | 0 |
Builds a route and prints the results | def i1Ej(PsCT, l5Ny):
iYc4 = tNpi(viqz['route'][PsCT].format(text=l5Ny))
return iYc4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Igvn(YKHO, zFiD=''):\n YKHO.fibbing.print_routes()",
"def q1cH(YKHO):\n for PsCT in YKHO.app.router.routes():\n wh5B = PsCT.get_info()\n if 'formatter' in wh5B:\n bD7m = wh5B['formatter']\n elif 'path' in wh5B:\n bD7m = wh5B['path']\n elif 'prefix' in w... | [
"0.6684212",
"0.6482325",
"0.64281625",
"0.6268979",
"0.62687176",
"0.6168973",
"0.6162189",
"0.61178166",
"0.60517156",
"0.59484076",
"0.5940868",
"0.5880119",
"0.58738565",
"0.5846851",
"0.58458465",
"0.584034",
"0.5822171",
"0.58123714",
"0.58007604",
"0.5763432",
"0.57575... | 0.0 | -1 |
Assert that events can be retrieved and decoded from the Queue. | async def test_account_mailer_queue(P4t4, cuiw, ztCB, KyT5, zb3C, k1sg, KS9L):
from account_mailer.worker import cb_subscription_handler
g9KT = '1'
Tq_s = 'test_subject'
tfWP = 'test_queue'
d3Oj = 'test_durable'
await Sg2g(k1sg, Tq_s, tfWP, d3Oj, cb_subscription_handler)
UTV6 = {'type': 'pay... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V4uu(YKHO):\n YTVa = YKHO.run_and_get_events('fixtures/queue/queue_simple.json')\n gdJL = YKHO.events_from_tuples((('on_b_dial', {'call_id': 'e83df36bebbe-1507019160.61', 'caller': XrCR(code=15001, number='+31150010002', is_public=True), 'to_number': '+31150010004', 'targets': [XrCR(code=150010001, numbe... | [
"0.66706574",
"0.6602465",
"0.65494907",
"0.64545363",
"0.64254266",
"0.63869125",
"0.6384696",
"0.6306324",
"0.62395716",
"0.61526036",
"0.6133326",
"0.6132558",
"0.60419923",
"0.6025255",
"0.602304",
"0.6010839",
"0.60008454",
"0.5985004",
"0.5969868",
"0.5965943",
"0.59467... | 0.0 | -1 |
Close and destroy the connection. | def mzWe(YKHO):
if YKHO.connection:
YKHO.connection.destroy()
YKHO.connection = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.conn.close()\n YKHO.destroy()",
"def DDI8(YKHO):\n try:\n YKHO.connection.Close()\n del YKHO.connection\n except:\n pass",
"def ngVb(YKHO):\n YKHO.conn.close()",
"def DDI8(YKHO):\n YKHO.connection.close()",
"def DDI8(YKHO):\n YKHO.connection ... | [
"0.8492485",
"0.838679",
"0.8188217",
"0.8156528",
"0.8150865",
"0.811717",
"0.811717",
"0.8095707",
"0.8089314",
"0.80809814",
"0.80809814",
"0.80809814",
"0.80809814",
"0.80809814",
"0.80809814",
"0.80809814",
"0.80729043",
"0.80647624",
"0.8056233",
"0.8056233",
"0.8056233... | 0.84066886 | 1 |
The current size of the unprocessed message queue. | def aWCD(YKHO):
if YKHO._handler._received_messages:
return YKHO._handler._received_messages.qsize()
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aWCD(YKHO):\n return YKHO._queue_size",
"def Zr7H(YKHO):\n with YKHO.lock:\n return len(YKHO.message_queue)",
"def PTyH(YKHO):\n return YKHO._queuesize",
"def aWCD(YKHO) -> int:\n return YKHO._queue.qsize()",
"def zNig(YKHO):\n return len(YKHO.queue)",
"def zNig(YKHO):\n retu... | [
"0.8814214",
"0.881014",
"0.8804012",
"0.8578221",
"0.84403694",
"0.84403694",
"0.84403694",
"0.84403694",
"0.8436363",
"0.8386133",
"0.8365248",
"0.8365248",
"0.82419676",
"0.8035233",
"0.80280215",
"0.7996625",
"0.78940266",
"0.78412265",
"0.78359604",
"0.7755767",
"0.77216... | 0.88520896 | 0 |
The sequence number of the event data object. | def jTbc(YKHO):
return YKHO._annotations.get(zcMy.PROP_SEQ_NUMBER, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTbc(YKHO):\n return YKHO._sequence_number",
"def jTbc(YKHO):\n return YKHO._sequence_number",
"def Gvq8(YKHO):\n YKHO.__sequence = YKHO.__sequence + 1\n return YKHO.__sequence - 1",
"def fJjt(YKHO):\n raise NotImplementedError",
"def aWuw(YKHO):\n NBQJ = '%s:__seq__' % YKHO.classkey\... | [
"0.81413203",
"0.80038565",
"0.74812114",
"0.71769285",
"0.7103246",
"0.6986202",
"0.69479114",
"0.69479114",
"0.6861508",
"0.6823983",
"0.67224044",
"0.67224044",
"0.67224044",
"0.67224044",
"0.67224044",
"0.67224044",
"0.67224044",
"0.67224044",
"0.67224044",
"0.67224044",
... | 0.8483477 | 0 |
The enqueued timestamp of the event data object. | def ksgX(YKHO):
E3oo = YKHO._annotations.get(zcMy.PROP_TIMESTAMP, None)
if E3oo:
return qcWV.datetime.fromtimestamp(float(E3oo) / 1000)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E3oo(YKHO):\n return YKHO.__timestamp",
"def E3oo(YKHO) -> str:\n return YKHO._event.get('timestamp')",
"def E3oo(YKHO):\n return YKHO._data.get('timestamp')",
"def E3oo(YKHO):\n return YKHO._timestamp",
"def E3oo(YKHO):\n return YKHO._timestamp",
"def E3oo(YKHO):\n return YKHO._tim... | [
"0.7150643",
"0.7143084",
"0.7118233",
"0.7058567",
"0.7058567",
"0.7058567",
"0.7058567",
"0.7058567",
"0.7058567",
"0.7058567",
"0.70223176",
"0.69215727",
"0.6892342",
"0.68881404",
"0.6852454",
"0.66900676",
"0.66288716",
"0.6625173",
"0.662145",
"0.66146773",
"0.6598347"... | 0.8351335 | 0 |
The partition key of the event data object. | def fp11(YKHO):
try:
return YKHO._annotations[YKHO._partition_key]
except KeyError:
return YKHO._annotations.get(zcMy.PROP_PARTITION_KEY, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fp11(YKHO) -> str:\n return qe4Y.get(YKHO, 'partition_key')",
"def DkZ8(YKHO) -> 'outputs.PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId':\n return qe4Y.get(YKHO, 'partition_id')",
"def jR9F(YKHO, gMyI):\n return 'xblock.partition_service.partition_{0}'.format(gMyI.id)",
... | [
"0.82765335",
"0.75514567",
"0.73077136",
"0.70803934",
"0.69453585",
"0.69014627",
"0.6878324",
"0.6632337",
"0.6621219",
"0.6588396",
"0.65506613",
"0.6531013",
"0.6531013",
"0.6531013",
"0.6531013",
"0.6516916",
"0.6504027",
"0.64949614",
"0.6466879",
"0.64633155",
"0.6453... | 0.84334105 | 0 |
Take a string and return a valid filename constructed from the string. | def LWVQ(KCHu):
jUwZ = '-_.() %s%s' % (vIwR.ascii_letters, vIwR.digits)
Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ))
Ux0P = Ux0P.replace(' ', '_')
return Ux0P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LWVQ(KCHu: str):\n jUwZ = '-_.() %s%s' % (vIwR.ascii_letters, vIwR.digits)\n Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ))\n Ux0P = Ux0P.replace(' ', '_')\n return Ux0P",
"def XZ66(KCHu):\n assert KCHu is not '' or KCHu is not None\n KCHu = str(KCHu).strip().replace(' ', '_')\n ... | [
"0.80485183",
"0.798944",
"0.7949801",
"0.787847",
"0.7862182",
"0.7727231",
"0.77141064",
"0.76735306",
"0.75296444",
"0.7505588",
"0.747976",
"0.743618",
"0.7330777",
"0.73069334",
"0.7068746",
"0.70555854",
"0.6852573",
"0.68469024",
"0.6833942",
"0.6758523",
"0.6737564",
... | 0.7855741 | 5 |
Get mute state of the speaker. | def KiJy(YKHO):
return sqQp(YKHO.get(J1jo, 'GetMute')['mute']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KkzS(YKHO) -> bool:\n return bool(YKHO.audio_mixer.getmute()[0])",
"def qHHI(YKHO):\n return YKHO._state.get('mute', None)",
"def qHHI(YKHO):\n return YKHO._mute",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",... | [
"0.7412152",
"0.7371846",
"0.7234999",
"0.70857537",
"0.70857537",
"0.70857537",
"0.7037071",
"0.6884125",
"0.68593425",
"0.6836174",
"0.6785089",
"0.6702399",
"0.6659513",
"0.6589866",
"0.6583619",
"0.65818727",
"0.6564398",
"0.65634894",
"0.63981074",
"0.62883896",
"0.62418... | 0.7656735 | 0 |
Move to next/previous track on the playlist. | def QVsj(YKHO, zGPv):
if zGPv not in ['previous', 'next']:
raise ValueError('Trick mode must one of: previous, next')
YKHO.get(J1jo, 'SetTrickMode', [('trickmode', zGPv)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KATt(YKHO):\n YKHO._lms.query(YKHO._id, 'playlist', 'index', '+1')\n YKHO.update_ha_state()",
"async def async_media_previous_track(YKHO) -> None:\n VvVL = YKHO._get_current_track_index()\n await YKHO._table.active_playlist.play(YKHO._table.active_playlist.tracks[VvVL - 1])",
"async def async_m... | [
"0.7268913",
"0.7132297",
"0.7018076",
"0.68977964",
"0.6770746",
"0.67404974",
"0.66657495",
"0.6595054",
"0.6557199",
"0.65094566",
"0.6498649",
"0.64872855",
"0.6460142",
"0.6429666",
"0.629187",
"0.62825674",
"0.6282156",
"0.62480557",
"0.6244872",
"0.6225449",
"0.6196972... | 0.0 | -1 |
Get information about play/pause status for the playlist. | def DaKo(YKHO):
return YKHO.get(J1jo, 'GetPlayStatus') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SW6e(YKHO):\n _lBP = YKHO.SendCommand(m0no, 0, 104)\n if _lBP == 1:\n return 'playing'\n elif _lBP == 3:\n return 'paused'\n else:\n return 'stopped'",
"def jGRS(YKHO):\n tO9_ = None\n if YKHO.is_playing():\n tO9_ = '[Playing]'\n else:\n tO9_ = '[Paused... | [
"0.74153364",
"0.7277669",
"0.66414845",
"0.64505315",
"0.63410336",
"0.6168048",
"0.6124715",
"0.6049898",
"0.60348386",
"0.59428096",
"0.5915116",
"0.59078234",
"0.5902283",
"0.58811784",
"0.58753276",
"0.58178",
"0.5782274",
"0.57797146",
"0.5773777",
"0.57717884",
"0.5765... | 0.7457967 | 0 |
Retrieve current equalizer settings. | def OVaE(YKHO):
geh0 = YKHO.get(J1jo, 'GetCurrentEQMode')
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return [('test_environment', YKHO.test_environment), ('base_data_dir', YKHO.base_data_dir), ('locale', YKHO.locale)]",
"def lWpF(YKHO):\n return YKHO.cfg",
"def asJJ(YKHO):\n return {'game_name': YKHO.game_name, 'n_epochs': YKHO.n_epochs... | [
"0.6454838",
"0.6344876",
"0.6327196",
"0.62404555",
"0.62283885",
"0.62283885",
"0.6129262",
"0.6106142",
"0.59993875",
"0.5978146",
"0.5978146",
"0.5968423",
"0.59618074",
"0.5914553",
"0.5896762",
"0.58522385",
"0.58411753",
"0.5824779",
"0.5824779",
"0.5824779",
"0.582477... | 0.54321253 | 52 |
Update speaker's group name. | def pa5H(YKHO, mWFP):
NArs = [('groupname', mWFP, 'cdata')]
YKHO.get(J1jo, 'SetGroupName', NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LKmR(YKHO):\n YKHO._scene_gen.group_name = YKHO._group_name_le.text()\n YKHO._refresh_view()",
"def pa5H(YKHO, mWFP):\n YKHO.groupname = mWFP",
"def scR9(YKHO, JyK9, QdZT, qIxc):\n NtEF = str(QdZT.message.from_user['username'])\n DVsZ = str(QdZT.message.from_user['id'])\n try:\n IX... | [
"0.72930276",
"0.6973785",
"0.6310089",
"0.6240467",
"0.61231035",
"0.6086739",
"0.60575366",
"0.601936",
"0.599674",
"0.5877336",
"0.5873178",
"0.5873178",
"0.58631116",
"0.5863042",
"0.5826277",
"0.5793431",
"0.57924306",
"0.5786083",
"0.57846045",
"0.5774433",
"0.5698133",... | 0.66988647 | 2 |
Get playback repeat mode. | def q67F(YKHO):
geh0 = YKHO.get(J1jo, 'GetRepeatMode')
return geh0['repeat'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_repeat(YKHO) -> FYrf.player.RepeatMode:\n wPFE, bGrB = await YKHO.get_play_mode()\n return wPFE",
"def wPFE(YKHO) -> EjZY:\n if YKHO._state.get('repeat', None):\n return EjZY.ALL\n return EjZY.OFF",
"async def get_play_mode(YKHO) -> tuple:\n QTBn = await YKHO._pytheos.api.pl... | [
"0.8759287",
"0.7520064",
"0.7341372",
"0.68714434",
"0.66754025",
"0.6666837",
"0.6645824",
"0.6528589",
"0.64225835",
"0.6320685",
"0.6131621",
"0.6124961",
"0.60611165",
"0.5923108",
"0.5833501",
"0.5734518",
"0.57005984",
"0.56791925",
"0.5678876",
"0.5670475",
"0.5626018... | 0.8606278 | 1 |
Set playback repeat mode. | def NEQt(YKHO, Tuqy):
NArs = [('repeatmode', Tuqy)]
YKHO.get(J1jo, 'SetRepeatMode', NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def set_repeat(YKHO, BWXx: models.player.RepeatMode):\n bGrB, hXNa = await YKHO.get_play_mode()\n await YKHO._pytheos.api.player.set_play_mode(YKHO.id, FYrf.player.PlayMode(repeat=BWXx, shuffle=hXNa))\n YKHO._repeat = BWXx",
"async def async_set_repeat(YKHO, wPFE):\n if not YKHO._slave_mode:\n ... | [
"0.8326535",
"0.8022578",
"0.7444486",
"0.69771224",
"0.69415987",
"0.6853051",
"0.65171134",
"0.6435453",
"0.63791716",
"0.637696",
"0.6147666",
"0.6085352",
"0.59794635",
"0.5918307",
"0.5847122",
"0.5821394",
"0.57737947",
"0.57112974",
"0.5658261",
"0.541751",
"0.5379867"... | 0.82119 | 1 |
Return QR factorization for ``BlockLowRank`` or ``Dense`` object. | def jOpO(YEnM):
if isinstance(YEnM, (aM69.Dense, XTiz.ndarray)):
T8ck, A3Vt = XTiz.linalg.qr(YEnM)
return (aM69.Dense(T8ck), aM69.Dense(A3Vt))
if isinstance(YEnM, aM69.BlockLowRank):
return KpKV(YEnM)
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y7iT(YEnM):\n GPal = YEnM.nb[0]\n k0lF = YEnM\n T8ck = aM69.BlockLowRank(XTiz.full((GPal, 1), None))\n tjUW = XTiz.full(GPal, None)\n for YRbF in range(GPal):\n if isinstance(k0lF[YRbF, 0], aM69.LowRank):\n jrOu, W8At = jOpO(k0lF[YRbF, 0].U)\n T8ck[YRbF, 0] = jrOu\n ... | [
"0.6148071",
"0.61402565",
"0.6087356",
"0.5921867",
"0.5711478",
"0.56443816",
"0.54241216",
"0.51829326",
"0.51816314",
"0.5113818",
"0.5091204",
"0.50504506",
"0.50398135",
"0.5032619",
"0.5024967",
"0.50182575",
"0.500674",
"0.500141",
"0.4994111",
"0.4986033",
"0.4955621... | 0.74550647 | 0 |
Returns an initial probability distribution over the grading differences. | def bK_R(Gx7p):
TW6e = oyIN.arange(0, k6Mv + 1)
hksT = TW6e.min()
max = TW6e.max()
NXpY = max - hksT
if not Gx7p:
BFeB = KG9w.uniform(loc=hksT, scale=NXpY).pdf(TW6e)
else:
BFeB = KG9w.norm.pdf(TW6e, scale=0.7, loc=TW6e.mean())
BFeB /= BFeB.sum()
o4D3 = oyIN.random.choice(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCcM(YKHO) -> oyIN.ndarray:\n return oyIN.ones(YKHO.n_states) / YKHO.n_states",
"def L7BV(YKHO, KCHu):\n return YKHO._starting_state_distribution.pdf(KCHu)",
"def twsE(YKHO):\n return 1.0 / TFEx(YKHO.alpha - 1)",
"def boxI(oPl8=0.8):\n FjUa = oPl8 * 5\n Xhrd = [0.05, 0.05, 0.05, 0.05, 0.05... | [
"0.65166795",
"0.6436501",
"0.6433655",
"0.62486255",
"0.6230732",
"0.61948603",
"0.6187933",
"0.614211",
"0.61136293",
"0.61105",
"0.61019915",
"0.60847306",
"0.60325",
"0.60140276",
"0.5932007",
"0.5929696",
"0.5928996",
"0.591312",
"0.5889367",
"0.5879461",
"0.5865655",
... | 0.6152241 | 7 |
Returns a delta distribution with nonzeroprobability argument given by non_zero_value | def RZIj(f7AH):
TW6e = oyIN.arange(0, k6Mv + 1)
BFeB = [0] * len(TW6e)
BFeB[f7AH] = 1.0
return nXeS(TW6e, BFeB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vFX8(WTkW=1.0):\n return lu88(YKHO.domain)",
"def IiXK(XP5J):\n return oyIN.clip(oyIN.random.normal(0, 3, XP5J), 0, None)",
"def llOp():\n global ideal_difference\n if M3qR is None:\n TW6e = khU0()\n BFeB = oyIN.array([1 if TW6e[YRbF] == 0 else 0 for YRbF in range(len(TW6e))])\n ... | [
"0.6010931",
"0.5961237",
"0.5784762",
"0.57396317",
"0.5612133",
"0.55213976",
"0.550416",
"0.54358464",
"0.5430404",
"0.5405835",
"0.5385237",
"0.53486186",
"0.53243136",
"0.5317628",
"0.5299076",
"0.5291502",
"0.52798235",
"0.5278757",
"0.5278757",
"0.5270487",
"0.52672213... | 0.8336389 | 0 |
Initialize a new `BaseLanePlotter` instance. | def FIMM(YKHO, MynD=0.0, n4wC=1.0, iMGt='viridis', CkYf=None):
super(Rh5m, YKHO).__init__()
YKHO.n_vars = None
YKHO.var_names = None
YKHO.xs = None
YKHO.ys = None
YKHO.cs = None
YKHO.iter = 0
YKHO.ax = None
YKHO.max_iter = 1000
YKHO.quad = None
YKHO.vmin = MynD
YKHO.vmax ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super(wL1J, YKHO).__init__()\n LZpg = QrM1.figure()\n YKHO.ax = LZpg.add_subplot(111)\n YKHO.ax.set_xlim([-2.5, 2.5])\n YKHO.ax.set_ylim([-10.5, 10.5])\n QrM1.ion()\n YKHO.sframe = None",
"def FIMM(YKHO, _AKB=None):\n super().__init__()\n YKHO.parent = _AKB\n YKHO.... | [
"0.6286448",
"0.62294954",
"0.607236",
"0.6068059",
"0.6011955",
"0.59919643",
"0.5968347",
"0.59583604",
"0.5947224",
"0.59036577",
"0.58485496",
"0.5844103",
"0.5844103",
"0.58289087",
"0.5809677",
"0.58051646",
"0.57911026",
"0.57567734",
"0.57532144",
"0.57440764",
"0.572... | 0.725623 | 0 |