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 |
|---|---|---|---|---|---|---|
Returns a iso8601 formated date from timestamp. | def ZhGg(E3oo):
return Eei1(qcWV.datetime.utcfromtimestamp(E3oo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ki0t(E3oo):\n return qcWV.fromtimestamp(E3oo).isoformat()",
"def dd_C(YKHO, E3oo):\n return qcWV.fromtimestamp(E3oo).isoformat(sep=YKHO.isoformat_sep)",
"def qpjr(E3oo):\n try:\n Aofo = ZbWC.sub('\\\\s', 'T', YKHO.timestamp)\n except:\n Aofo = None\n return Aofo",
"def dd_C(E... | [
"0.7999688",
"0.78488135",
"0.76452667",
"0.74492365",
"0.7295419",
"0.7276137",
"0.72041994",
"0.7071",
"0.7043538",
"0.7025653",
"0.7019282",
"0.6980549",
"0.6949806",
"0.6903523",
"0.6898393",
"0.6805903",
"0.68029827",
"0.6766484",
"0.6754723",
"0.67429787",
"0.67410827",... | 0.8054067 | 1 |
Return the difference between two timing objects. Compute the difference in seconds between two date, time, or datetime objects (as a float, to microsecond resolution). | def KNvb(h3Aq, DOuq):
RA_F = DOuq - h3Aq
return z0YJ(RA_F) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAxb(YKHO, n2Q1, SpII):\n yk4i = abs(YKHO.time(SpII) - YKHO.time(n2Q1))\n return yk4i.seconds",
"def OTVr(Emd4, SWox, C7pn):\n yk4i = C7pn - SWox\n return float(yk4i.seconds) + float(yk4i.microseconds) / 1000000.0",
"def hMTB(CVHG, PzA3):\n return PzA3 - CVHG",
"def hMTB(CVHG, PzA3):\n ... | [
"0.8018577",
"0.7793615",
"0.76865065",
"0.76653415",
"0.7502247",
"0.74819183",
"0.7375507",
"0.7367719",
"0.7182067",
"0.71070266",
"0.71070266",
"0.70718",
"0.7015839",
"0.6986489",
"0.69769496",
"0.69715124",
"0.6965085",
"0.6930627",
"0.691815",
"0.69089895",
"0.6874506"... | 0.6246327 | 83 |
Retrieve a router for the given tenant id. If a public router has been configured, it will be returned. If a public router has not been configured, but a public network has, a tenant router will be created and returned that routes traffic to the public network. | def QWPv(YKHO, mLXZ):
Mem1 = SAs9.network.public_router_id
OZUW = SAs9.network.public_network_id
if Mem1:
Aofo = YKHO.network_client.show_router(Mem1)
return vhAO.AttributeDict(**Aofo['router'])
elif OZUW:
oimG = YKHO._create_router(mLXZ)
oimG.add_gateway(OZUW)
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5SX(YKHO, id):\n na1r.debug(bGrB('MidoClient.get_router called: id=%(id)s'), {'id': id})\n try:\n return YKHO.mido_api.get_router(id)\n except x3u5.HTTPNotFound:\n raise Y0k9(resource_type='Router', id=id)",
"def Z6Uf(Emd4, mLXZ):\n if mLXZ not in Emd4.serv_obj_dict:\n na1r.... | [
"0.7064633",
"0.6719268",
"0.6671918",
"0.66364807",
"0.6603442",
"0.60032374",
"0.5963288",
"0.59138757",
"0.58941025",
"0.58607143",
"0.5830332",
"0.579406",
"0.57521415",
"0.5659096",
"0.5541369",
"0.5490903",
"0.53944814",
"0.52661026",
"0.52325296",
"0.5186318",
"0.51591... | 0.8330637 | 0 |
List instances belonging to the specified hypervisor. | def rPnJ(YKHO, dtRn):
_hkX, TBsA = YKHO.get('os-hypervisors/%s/servers' % dtRn)
TBsA = qQXR.loads(TBsA)
YKHO.validate_response(wnTu.hypervisors_servers, _hkX, TBsA)
return (_hkX, TBsA['hypervisors']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yb3x(YKHO, tb6A=None):\n QU6O = ePo8(lambda: YKHO._RunXen(['list']), False, delays=YKHO._INSTANCE_LIST_DELAYS, timeout=YKHO._INSTANCE_LIST_TIMEOUT)\n return [U34r[0] for U34r in QU6O]",
"def Yb3x(YKHO, tb6A=None):\n Aofo = []\n for mWFP in Hy7s.listdir(YKHO._PIDS_DIR):\n if YKHO._InstanceP... | [
"0.7621248",
"0.7206364",
"0.69165623",
"0.6823663",
"0.6811611",
"0.6789039",
"0.6655596",
"0.6642862",
"0.6587515",
"0.6574832",
"0.65050673",
"0.648689",
"0.6451405",
"0.63959616",
"0.63865596",
"0.6382754",
"0.6244216",
"0.61761814",
"0.61481386",
"0.6143951",
"0.6139837"... | 0.5658566 | 58 |
Changes the root password for the server. | def faAE(YKHO, QOGf, ICqh):
return YKHO.action(QOGf, 'changePassword', None, adminPass=ICqh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2IA(YKHO, qIxc):\n N5z6 = YKHO._find_server(qIxc.server)\n EBgd = AOO4.getpass('New password: ')\n HpuQ = AOO4.getpass('Again: ')\n if EBgd != HpuQ:\n raise i15K('Passwords do not match.')\n N5z6.update(password=EBgd)",
"def X2IA(gtI8, qIxc):\n N5z6 = rfwr(gtI8, qIxc.server)\n EB... | [
"0.8455832",
"0.8325872",
"0.8281021",
"0.78091633",
"0.7221328",
"0.71438134",
"0.71174014",
"0.71017885",
"0.7087807",
"0.6997553",
"0.6960564",
"0.6878991",
"0.6873622",
"0.68089515",
"0.6802939",
"0.6801671",
"0.6799069",
"0.6789794",
"0.67499053",
"0.6728193",
"0.6726576... | 0.63817894 | 61 |
List instances belonging to the specified hypervisor. | def rPnJ(YKHO, dtRn):
_hkX, TBsA = YKHO.get('os-hypervisors/%s/servers' % dtRn)
TBsA = qQXR.loads(TBsA)
YKHO.validate_response(BTxM.hypervisors_servers, _hkX, TBsA)
return (_hkX, TBsA['hypervisor']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yb3x(YKHO, tb6A=None):\n QU6O = ePo8(lambda: YKHO._RunXen(['list']), False, delays=YKHO._INSTANCE_LIST_DELAYS, timeout=YKHO._INSTANCE_LIST_TIMEOUT)\n return [U34r[0] for U34r in QU6O]",
"def Yb3x(YKHO, tb6A=None):\n Aofo = []\n for mWFP in Hy7s.listdir(YKHO._PIDS_DIR):\n if YKHO._InstanceP... | [
"0.7621248",
"0.7206364",
"0.69165623",
"0.6823663",
"0.6811611",
"0.6789039",
"0.6655596",
"0.6642862",
"0.6587515",
"0.6574832",
"0.65050673",
"0.648689",
"0.6451405",
"0.63959616",
"0.63865596",
"0.6382754",
"0.6244216",
"0.61761814",
"0.61481386",
"0.6143951",
"0.6139837"... | 0.548509 | 81 |
Changes the root password for the server. | def faAE(YKHO, QOGf, o2iF):
return YKHO.action(QOGf, 'change_password', None, uPxI.server_actions_change_password, admin_password=o2iF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2IA(YKHO, qIxc):\n N5z6 = YKHO._find_server(qIxc.server)\n EBgd = AOO4.getpass('New password: ')\n HpuQ = AOO4.getpass('Again: ')\n if EBgd != HpuQ:\n raise i15K('Passwords do not match.')\n N5z6.update(password=EBgd)",
"def X2IA(gtI8, qIxc):\n N5z6 = rfwr(gtI8, qIxc.server)\n EB... | [
"0.8454027",
"0.8324633",
"0.82805514",
"0.7809826",
"0.7221501",
"0.7143423",
"0.71167535",
"0.7101492",
"0.7085769",
"0.69967353",
"0.6959077",
"0.6879345",
"0.6874427",
"0.6808876",
"0.68030417",
"0.6802054",
"0.67989916",
"0.6790067",
"0.6749842",
"0.6728549",
"0.67266273... | 0.0 | -1 |
List instances belonging to the specified hypervisor. | def rPnJ(YKHO, dtRn):
_hkX, TBsA = YKHO.get('os-hypervisors/%s/servers' % dtRn)
ZboJ = YKHO._parse_array(QGpr.fromstring(TBsA))
return (_hkX, ZboJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yb3x(YKHO, tb6A=None):\n QU6O = ePo8(lambda: YKHO._RunXen(['list']), False, delays=YKHO._INSTANCE_LIST_DELAYS, timeout=YKHO._INSTANCE_LIST_TIMEOUT)\n return [U34r[0] for U34r in QU6O]",
"def Yb3x(YKHO, tb6A=None):\n Aofo = []\n for mWFP in Hy7s.listdir(YKHO._PIDS_DIR):\n if YKHO._InstanceP... | [
"0.7621248",
"0.7206364",
"0.69165623",
"0.6823663",
"0.6811611",
"0.6789039",
"0.6655596",
"0.6642862",
"0.6587515",
"0.6574832",
"0.65050673",
"0.648689",
"0.6451405",
"0.63959616",
"0.63865596",
"0.6382754",
"0.6244216",
"0.61761814",
"0.61481386",
"0.6143951",
"0.6139837"... | 0.5885844 | 30 |
Return server's virtual interfaces XML as JSON. | def OeMs(YKHO, ZQZI):
nPrm = {'virtual_interfaces': []}
for YmHP in ZQZI.getchildren():
nPrm['virtual_interfaces'].append({'id': YmHP.get('id'), 'mac_address': YmHP.get('mac_address')})
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UjEi(YKHO, QOGf):\n _hkX, TBsA = YKHO.get('/'.join(['servers', QOGf, 'os-virtual-interfaces']))\n TBsA = qQXR.loads(TBsA)\n YKHO.validate_response(uPxI.list_virtual_interfaces, _hkX, TBsA)\n return (_hkX, TBsA)",
"def yNXx(YKHO, N5z6):\n Mkmy = G4JS.get('%s/status/%s/statistics/network_interfa... | [
"0.64759827",
"0.6318194",
"0.62561774",
"0.62518877",
"0.6250939",
"0.6204905",
"0.6023396",
"0.59318805",
"0.5915949",
"0.59115463",
"0.58853453",
"0.5870412",
"0.58471143",
"0.5831317",
"0.582221",
"0.5818803",
"0.58129483",
"0.58070844",
"0.5774124",
"0.5771432",
"0.57557... | 0.7494483 | 0 |
Waits for a resource to be deleted. | def D3_g(YKHO, Qjbs, id):
SWox = int(ITS7.time())
while True:
if YKHO.is_resource_deleted(Qjbs, id):
return
if int(ITS7.time()) - SWox >= YKHO.build_timeout:
raise Bx6I.TimeoutException
ITS7.sleep(YKHO.build_interval) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3_g(YKHO, Qjbs, id, x0hE=None):\n SWox = int(ITS7.time())\n while True:\n if YKHO.is_resource_deleted(Qjbs, id, client=x0hE):\n return\n if int(ITS7.time()) - SWox >= YKHO.build_timeout:\n raise Bx6I.TimeoutException\n ITS7.sleep(YKHO.build_interval)",
"def N... | [
"0.7592842",
"0.75858235",
"0.73092437",
"0.7113391",
"0.7113391",
"0.7036588",
"0.6737126",
"0.6436721",
"0.6329381",
"0.63145465",
"0.6257748",
"0.62084746",
"0.6146871",
"0.61429346",
"0.60322595",
"0.6030306",
"0.60004205",
"0.59495026",
"0.5935675",
"0.5935675",
"0.59264... | 0.7484178 | 2 |
Deletes the container (if it's empty). | def o0AK(YKHO, G1wx):
bD7m = str(G1wx)
_hkX, TBsA = YKHO.delete(bD7m)
return (_hkX, TBsA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD(YKHO) -> None:\n if YKHO.container:\n YKHO.container.remove(force=True)",
"def QY6B(hGhT):\n pass",
"def kSdD(YKHO):\n return YKHO.client.remove_container(YKHO.id, v=True)",
"def EWr1(YKHO):\n if YKHO.test_run:\n print('Wipe would delete {0} objects.'.format(len(YKHO.contai... | [
"0.7356344",
"0.7150062",
"0.6934254",
"0.6808786",
"0.6808786",
"0.6606835",
"0.6523369",
"0.6429865",
"0.6398343",
"0.63324904",
"0.6327499",
"0.62745166",
"0.62706715",
"0.62674147",
"0.62433356",
"0.6230075",
"0.6228694",
"0.6216259",
"0.62097925",
"0.6201075",
"0.6197743... | 0.657138 | 6 |
List all storage object XObjectMeta metadata. | def WxvG(YKHO, zGKt, tB6k):
bD7m = '%s/%s' % (str(zGKt), str(tB6k))
_hkX, TBsA = YKHO.head(bD7m)
return (_hkX, TBsA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(YKHO):\n Vlb9 = {}\n return YKHO.master.call('metadata/list', Vlb9)",
"def KxxD(YKHO, Eorv):\n YKHO.metadata_service.set_auth(YKHO._token_metadata)\n return YKHO.metadata_service.list(Eorv)",
"def z4tl(N1p7):\n TQJD.validate_table(N1p7, Ixa6.NAME, Ixa6.COLUMNS)\n TQJD(N1p7, table_nam... | [
"0.746842",
"0.68089837",
"0.66051614",
"0.61975676",
"0.61497",
"0.61316836",
"0.61300653",
"0.60661596",
"0.60641694",
"0.6053343",
"0.6052105",
"0.60095096",
"0.59740114",
"0.59547174",
"0.5915634",
"0.59001815",
"0.5898466",
"0.58698016",
"0.58591735",
"0.58122766",
"0.58... | 0.73176235 | 1 |
Get the volume encryption type for the specified volume type. | def LD9L(YKHO, O0tr):
bD7m = '/types/%s/encryption' % str(O0tr)
_hkX, TBsA = YKHO.get(bD7m)
TBsA = qQXR.loads(TBsA)
return (_hkX, TBsA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWmu(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'encryption_type')",
"def ELSN(YKHO, akib):\n if akib['volume_type_id'] and akib.get('volume_type'):\n return akib['volume_type']['name']\n else:\n return akib['volume_type_id']",
"def TnC4(YKHO):\n return YKHO.__volume_type",
"de... | [
"0.7194106",
"0.7164051",
"0.71305555",
"0.7115435",
"0.7115435",
"0.7114899",
"0.7114899",
"0.7114899",
"0.7114899",
"0.7114899",
"0.7022296",
"0.7022296",
"0.7015046",
"0.6952968",
"0.6768906",
"0.6768906",
"0.6768906",
"0.6768906",
"0.66918653",
"0.6497264",
"0.6463562",
... | 0.7348403 | 0 |
Returns a list of active compute nodes. List is generated by running novamanage on the controller. | def Q8ep(Z7L0, Lo1a, l4G2=None):
Ziit = []
HCmI = 'nova-manage service list | grep ^nova-compute'
hlel = kWQk(HCmI, Z7L0, Lo1a, l4G2)
if not hlel:
return Ziit
for zFiD in hlel.split('\n'):
V22M = zFiD.split()
if len(V22M) > 0 and V22M[4] == ':-)':
Ziit.append(V22M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qtMH(YKHO):\n return [fsWn.get_hypervisor_name() for fsWn in YKHO.instances]",
"def lt22(YKHO):\n return YKHO.inventory_manager.get_compute_list()",
"def qtMH(YKHO):\n if YKHO.chains:\n if YKHO.config.service_chain != tAEX.EXT:\n return YKHO.chains[0].get_compute_nodes()\n ... | [
"0.7323928",
"0.7067981",
"0.70097935",
"0.6852778",
"0.68520665",
"0.68448156",
"0.67903674",
"0.67785734",
"0.6741645",
"0.6720656",
"0.66342056",
"0.6632082",
"0.65900445",
"0.6542142",
"0.6537533",
"0.6530008",
"0.6468389",
"0.6431755",
"0.6431292",
"0.64220583",
"0.63889... | 0.6986141 | 3 |
This methods returns the action. Overload this if you create a stress test wrapper. | def XeOP(YKHO):
return YKHO.__class__.__name__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AMEM(YKHO, a1PO):\n pass",
"def XeOP(YKHO) -> eax5:\n return YKHO._action",
"def AMEM(YKHO):\n YKHO._action_lock.acquire()\n eEZP = YKHO._action\n YKHO._action_lock.release()\n return eEZP",
"def XeOP(YKHO) -> eax5:\n return YKHO._action",
"def AMEM(YKHO):\n return YKHO.__action... | [
"0.70900804",
"0.7034551",
"0.7007445",
"0.68708754",
"0.68009025",
"0.6780155",
"0.6718426",
"0.6635497",
"0.6635497",
"0.6635497",
"0.66252345",
"0.65987265",
"0.65944177",
"0.6550242",
"0.6545208",
"0.6531225",
"0.65282756",
"0.65282756",
"0.65282756",
"0.65282756",
"0.650... | 0.0 | -1 |
Returns a started `mock.patch` object for the supplied target. The caller may then call the returned patcher to create a mock object. The caller does not need to call stop() on the returned patcher object, as this method automatically adds a cleanup to the test class to stop the patcher. | def Po4F(YKHO, pan_, **B2fa):
XP5J = TMAJ.patch(pan_, **B2fa)
r8hN = XP5J.start()
YKHO.addCleanup(XP5J.stop)
return r8hN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, pan_, MicG=False, **B2fa):\n if 'new' not in B2fa:\n B2fa.setdefault('autospec', True)\n kQ4O = Po4F(pan_, **B2fa)\n Me_q, bGrB = kQ4O.get_original()\n if Me_q in YKHO._repatchable_items:\n YKHO._repatchable_items.pop(Me_q).stop()\n elif isinstance(Me_q, Eh7B):\n ... | [
"0.6935251",
"0.6215812",
"0.60802895",
"0.60236585",
"0.59544",
"0.587808",
"0.5859053",
"0.57399297",
"0.5720363",
"0.57008713",
"0.56888527",
"0.5680632",
"0.566563",
"0.55939364",
"0.5558918",
"0.5551881",
"0.5544159",
"0.5471232",
"0.54676014",
"0.546655",
"0.5449422",
... | 0.84940594 | 0 |
Clear the screen buffer. | def WW6S():
for WKvO in range(7):
for LVAh in range(5):
Qt4L[WKvO][LVAh] = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPVe(YKHO):\n YKHO._screen.clear_buffer(7, 0, 0)\n YKHO._screen.print_at('-' * uwaB.MAX_X, 0, 0, 7)\n YKHO._screen.print_at('-' * uwaB.MAX_X, 0, uwaB.MAX_Y, 7)",
"def Y7Bk():\n Wxnj.CLEAR_SCREEN()",
"def yPVe():\n Hy7s.system('clear')",
"def yPVe():\n I45O.info('clear_screen')\n u9Jc... | [
"0.8558133",
"0.8472263",
"0.84408706",
"0.84148127",
"0.8350935",
"0.83389634",
"0.8324552",
"0.82756346",
"0.8269999",
"0.8215958",
"0.8185596",
"0.8167924",
"0.816541",
"0.8149447",
"0.81455314",
"0.8130186",
"0.8071742",
"0.80571175",
"0.8031274",
"0.79906934",
"0.7987119... | 0.7871648 | 29 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry):
yT1k = all(await V7ok.gather(*[ajET.config_entries.async_forward_entry_unload(bTKY, UksD) for UksD in aprE]))
if yT1k:
ajET.data[Sugg][InmG].pop(bTKY.entry_id)
return yT1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.70418245",
"0.69975436",
"0.69197667",
"0.69024074",
"0.6896897",
"0.6870464",
"0.6840728",
"0.67911863",
"0.67835754",
"0.6782968",
"0.6776581",
"0.67688036",
"0.6737991",
"0.6730449",
"0.6713354",
"0.67085946",
"0.6664857",
"0.66411716",
"0.6637687",
"0.66157013",
"0.660... | 0.63115925 | 85 |
Return the device class. | def rM2U(YKHO):
return YKHO._device_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return YKHO._class",
"def rM2U(YKHO) -> str:\n return YKHO._dev_cls",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return eeT9",
"def rM2U(YKH... | [
"0.93540233",
"0.9202765",
"0.9180319",
"0.91749567",
"0.91477996",
"0.91066945",
"0.91059643",
"0.9087445",
"0.90825945",
"0.90825945",
"0.90825945",
"0.9036352",
"0.9023282",
"0.90217507",
"0.89019793",
"0.8804712",
"0.87773633",
"0.87450665",
"0.87450665",
"0.87450665",
"0... | 0.9162649 | 6 |
Return the state attributes. | def R1i3(YKHO):
return YKHO._attrs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.82891315",
"0.82891315",
"0.82891315",
... | 0.8335189 | 18 |
Return the unique ID of the entity. | def ShR8(YKHO):
return f'{YKHO._guardian.uid}_{YKHO._kind}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')",
"def ShR8(YKHO):\n return YKHO._carson_entity.unique_entity_id",
"def g2g3(YKHO) -> int:\n return qe4Y.get(YKHO, 'entity_id')",
"def g2g3(YKHO) -> str:\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
... | [
"0.8951693",
"0.8461176",
"0.82503587",
"0.81678724",
"0.803804",
"0.803804",
"0.803804",
"0.8008701",
"0.8008701",
"0.79024035",
"0.78994805",
"0.78994805",
"0.78994805",
"0.78994805",
"0.78994805",
"0.7802192",
"0.77846414",
"0.7760201",
"0.7739086",
"0.7739086",
"0.7739086... | 0.0 | -1 |
Get a random number between certain range | def QYWR(YKHO):
FGW3 = ajWY(1, YKHO.sides)
print(f'You are roll {YKHO.sides}-sided die,You get a number:')
print(FGW3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRCQ(YKHO, yKcO, JCyR):\n return tuKI.randint(int(yKcO), int(JCyR))",
"def RjKZ(min, max):\n return ajWY(min, max)",
"def xac_(min, max):\n return tuKI.random() * (max - min) + min",
"def cRGv(min, max):\n mLGw = tuKI.randint(min, max)\n return mLGw",
"def GiU9(YKHO):\n return ajWY(YK... | [
"0.8289436",
"0.8192115",
"0.8063168",
"0.7989289",
"0.7935574",
"0.7897264",
"0.7881231",
"0.7868331",
"0.78640145",
"0.7829458",
"0.77418065",
"0.7728905",
"0.7700744",
"0.768488",
"0.76191103",
"0.7593339",
"0.75732857",
"0.75704426",
"0.7555673",
"0.7533481",
"0.75240344"... | 0.0 | -1 |
Extract the WHERE clause of a query string | def q_DO(YKHO):
return str(YKHO.queryset.query).split(' WHERE ')[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mPZN(QePW):\n woks = ''\n if QePW.args.get('component'):\n woks += \"component='%s' AND \" % QePW.args.get('component')\n if QePW.args.get('owner'):\n woks += \"owner='%s' AND \" % QePW.args.get('owner')\n if QePW.args.get('start_datetime'):\n woks += \"ts>='%s' AND \" % QePW.a... | [
"0.6748098",
"0.66780084",
"0.65263724",
"0.6387784",
"0.6385304",
"0.6320289",
"0.62656236",
"0.6262293",
"0.6108692",
"0.60806155",
"0.60806155",
"0.60219085",
"0.5993447",
"0.5983766",
"0.59632754",
"0.59492296",
"0.59359914",
"0.59162843",
"0.5829474",
"0.5813611",
"0.578... | 0.6078044 | 11 |
A shortcut for the queryset | def all(YKHO):
return YKHO.queryset | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wc3e(YKHO):\n return YKHO.get_queryset()",
"def k66M(YKHO):\n return YKHO.queryset.all()",
"def k66M(YKHO):\n return YKHO.queryset.all()",
"def wc3e(YKHO):\n return YKHO.get_queryset()",
"def k66M(YKHO):\n return YKHO.model.objects",
"def k66M(YKHO):\n return YKHO.queryset_class(YKH... | [
"0.72435296",
"0.71863645",
"0.71863645",
"0.7132553",
"0.71149695",
"0.71120745",
"0.70284826",
"0.6958521",
"0.69370586",
"0.69028306",
"0.68360823",
"0.68360823",
"0.68162245",
"0.6799734",
"0.6799734",
"0.6799734",
"0.67586917",
"0.67448086",
"0.668242",
"0.6673751",
"0.6... | 0.6758816 | 16 |
Extract the WHERE clause of a query string without the wrapping parens. | def q_DO(YKHO):
str(YKHO.queryset.query).split(' WHERE ')[1][1:-2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rcfv(YKHO):\n return ' AND '.join([eHNT.cql for eHNT in YKHO._where])",
"def Y3Nr(Pe9W):\n if any((isinstance(eOtH, g4Ww.sql.Where) for eOtH in g4Ww.parse(Pe9W)[0])):\n return Pe9W\n return Pe9W + ' WHERE 1=1'",
"def xylN(qJWj):\n Q9al = ''\n if qJWj != None:\n Q9al = ' AND '.j... | [
"0.69311804",
"0.67898935",
"0.67661554",
"0.67387146",
"0.6422279",
"0.6422279",
"0.6320891",
"0.62706345",
"0.6248113",
"0.62244695",
"0.62224233",
"0.6005063",
"0.59647226",
"0.5913007",
"0.58629483",
"0.5860958",
"0.5860493",
"0.58361036",
"0.58326524",
"0.5728222",
"0.57... | 0.6022261 | 11 |
Update the request's GET query string with the values in this object and return the resulting query url encoded string. | def qWbT(YKHO):
xuM4 = GLng('', mutable=True)
xuM4 = YKHO.update_query_dict(xuM4)
return xuM4.urlencode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP_p(YKHO):\n YKHO.query_string = '?'\n for G1Hx, Ty9i in YKHO.query_dict.items():\n YKHO.query_string += G1Hx + '=' + Ty9i + '&'\n YKHO.query_string = YKHO.query_string[:-1]",
"def rldq(QePW, NArs):\n _Tvo = QePW.GET.copy()\n for H5ew in NArs:\n if H5ew in _Tvo:\n _Tv... | [
"0.78694767",
"0.7490652",
"0.74374264",
"0.7404253",
"0.73739177",
"0.7229605",
"0.7176813",
"0.71346104",
"0.7121692",
"0.71065396",
"0.7075403",
"0.69741195",
"0.6973257",
"0.6966184",
"0.6914844",
"0.6820876",
"0.67915845",
"0.67557156",
"0.6755191",
"0.67284244",
"0.6713... | 0.7679729 | 1 |
Link existing node u as a runtime dependency of existing node v. Note that if the addition of these edges creates a `cyclic`_ graph | def QZnA(YKHO, P6bq, Ty9i, Beqo=None, koEK=None):
if not YKHO._graph.has_node(P6bq):
raise ValueError("Node '%s' not found to link from" % P6bq)
if not YKHO._graph.has_node(Ty9i):
raise ValueError("Node '%s' not found to link to" % Ty9i)
if Beqo is not None:
if not callable(Beqo):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ykhp(YKHO, P6bq, Ty9i):\n YKHO.graph[P6bq].append(Ty9i)\n YKHO.graph[Ty9i].append(P6bq)",
"def rz7z(YKHO, P6bq, Ty9i):\n YKHO.nodes_edges[P6bq].add(Ty9i)\n YKHO.nodes_edges[Ty9i].add(P6bq)",
"def Ykhp(YKHO, P6bq, Ty9i):\n assert P6bq in YKHO.adj and Ty9i in YKHO.adj, 'Node not in graph'\n ... | [
"0.7479682",
"0.72036326",
"0.71960896",
"0.7100803",
"0.7083409",
"0.7011458",
"0.6969067",
"0.6872588",
"0.68305516",
"0.6811678",
"0.6807623",
"0.6779238",
"0.6750407",
"0.6739399",
"0.6736133",
"0.65280044",
"0.65131617",
"0.6458376",
"0.6403689",
"0.63774735",
"0.6376397... | 0.68295205 | 9 |
Calculates best move. Does minimax and alphabeta pruning. On suicide game maximize must be False Returns best move and best value | def sA4b(YKHO, iBIi, rb7a, bnFD=True, Cwt5=-HwRy.maxsize - 1, UqYS=HwRy.maxsize):
if rb7a == 0:
return (None, YKHO.evaluate(iBIi))
if bnFD:
eRbp = YKHO.negative_infinity
DQoW = None
eybD = None
HMeC = []
for YRbF in iBIi.legal_moves:
HMeC.append(YRbF)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TOA2(YKHO):\n if sum(YKHO.board) == 0:\n return 1\n uc7Q = -FfMS\n DQoW = -1\n for YRbF in range(YKHO.n * YKHO.n):\n q9ES = YKHO.board.copy()\n if YKHO.board[YRbF] == 0 and YKHO.board_map[YRbF] == 1:\n q9ES[YRbF] = 10\n Qj8D = YKHO.minmax(q9ES, YKHO.n, -Ff... | [
"0.8278344",
"0.808722",
"0.80747426",
"0.8023626",
"0.8015627",
"0.7974536",
"0.789671",
"0.788782",
"0.7859701",
"0.7832567",
"0.782837",
"0.7821715",
"0.7760303",
"0.7742353",
"0.77324426",
"0.7715272",
"0.7712198",
"0.770544",
"0.77048045",
"0.7703498",
"0.7699942",
"0.... | 0.81053025 | 1 |
Does piece value evaluation based on ai color and uses piecesquare table evaluation if given Returns evaluation point based on normal chess game. Dont forget to make result negative manually if playing suicide chess mode or etc. | def b7La(YKHO, iBIi):
Zpnw = 0.0
for YRbF in range(0, 64):
HeW_ = str(iBIi.piece_at(YRbF))
LGLz = YKHO.piece_to_num[HeW_]
if LGLz >= 0 and YKHO.piece_square_table is not None:
Zpnw = Zpnw + YKHO.piece_to_point[HeW_] + YKHO.piece_square_table[LGLz][YRbF]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHT3(BH3N, qfpW):\n p1kx = 0\n if qfpW == HRmL.WHITE:\n for cbN9 in BH3N.capturedBlackPieces:\n p1kx += cbN9.getPointVal()\n for gy5e in BH3N.capturedWhitePieces:\n p1kx -= gy5e.getPointVal()\n else:\n for gy5e in BH3N.capturedWhitePieces:\n p1kx +... | [
"0.7299358",
"0.72274226",
"0.7102061",
"0.709919",
"0.7091981",
"0.6996299",
"0.6985411",
"0.69740146",
"0.6935387",
"0.6925713",
"0.6925076",
"0.69135904",
"0.6866507",
"0.6865828",
"0.6849969",
"0.6775578",
"0.6572687",
"0.65286225",
"0.65158314",
"0.6469403",
"0.6447869",... | 0.73102313 | 0 |
Returns regional ML Endpoint, or global if region not set. | def _A9V(zn0c):
w2IS = NYXC.GetEffectiveApiEndpoint(WjvG, FoV5)
if zn0c and zn0c != 'global':
return CLrR(w2IS, zn0c)
return w2IS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TP6p(w2IS):\n return w2IS.get('region_id') or w2IS.get('region')",
"def up9T(YKHO, zn0c):\n cfQG = {'华东1': 'oss-cn-hangzhou.aliyuncs.com', '华东2': 'oss-cn-shanghai.aliyuncs.com', '华北1': 'oss-cn-qingdao.aliyuncs.com', '华北2': 'oss-cn-beijing.aliyuncs.com', '华北3': 'oss-cn-zhangjiakou.aliyuncs.com', '华北5': ... | [
"0.69212013",
"0.6428455",
"0.6389882",
"0.62502366",
"0.62502366",
"0.62193763",
"0.62193763",
"0.613228",
"0.6103965",
"0.6079391",
"0.6041946",
"0.6041946",
"0.6041946",
"0.6041946",
"0.6041946",
"0.6041946",
"0.6041946",
"0.6041946",
"0.6041946",
"0.6041946",
"0.6041946",... | 0.76502454 | 0 |
List the licenses for an organization | def o6Si(YKHO, __Hu: str, SV4W=1, XSoh='next', **B2fa):
B2fa.update(locals())
if 'state' in B2fa:
xAU6 = ['active', 'expired', 'expiring', 'unused', 'unusedActive', 'recentlyQueued']
assert B2fa['state'] in xAU6, f'"state" cannot be "{B2fa['state']}", & must be set to one of: {xAU6}'
yIVm = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbHS(YKHO):\n bD7m = YKHO._url + '/licenses'\n NArs = {'f': 'json'}\n return YKHO._con.get(path=bD7m, postdata=NArs)",
"async def licenses(YKHO):\n return await YKHO._get('licenses')",
"def Z6xm(YKHO):\n nPrm = 'json=' + qQXR.dumps(YKHO.auth_data)\n MOPg = {'Content-Type': 'application/js... | [
"0.79609084",
"0.7578725",
"0.74558055",
"0.7405032",
"0.7317298",
"0.7317298",
"0.7317298",
"0.7264994",
"0.7262238",
"0.715717",
"0.70800066",
"0.701878",
"0.69993883",
"0.68617636",
"0.68356377",
"0.6738962",
"0.66612685",
"0.6658908",
"0.66391605",
"0.66241723",
"0.659850... | 0.60322076 | 38 |
Renew SM seats of a license. This will extend the license expiration date of managed SM devices covered by this license | def nD91(YKHO, __Hu: str, q9df: str, aCz0: str):
B2fa = locals()
yIVm = {'tags': ['Licenses'], 'operation': 'renewOrganizationLicensesSeats'}
Eorv = f'/organizations/{__Hu}/licenses/renewSeats'
kqwt = ['licenseIdToRenew', 'unusedLicenseId']
pB3N = {G1Hx: Ty9i for G1Hx, Ty9i in B2fa.items() if G1Hx i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IW3u(YKHO):\n try:\n if YKHO.uuid is not None:\n YKHO.logger.trace('name=%s session=%s renewing session', YKHO.name, YKHO.uuid)\n yield YKHO.base.renew(YKHO.uuid)\n except oNAf as e:\n YKHO.logger.warning('session=%s renewal attempt failed reason=%s', YKHO.uuid, tTpl.m... | [
"0.5855747",
"0.5813832",
"0.5772954",
"0.5693631",
"0.5684072",
"0.5630555",
"0.5560794",
"0.5558725",
"0.5557558",
"0.55199224",
"0.5379208",
"0.53524053",
"0.53477824",
"0.53405887",
"0.52539366",
"0.51438975",
"0.5127212",
"0.50633377",
"0.5054146",
"0.50360584",
"0.50284... | 0.5698802 | 3 |
Squares all the elements of a list and then returns sum of the numbers squared | def TlHT(YIYH, YRbF=0):
if YRbF > len(YIYH) - 1:
return sum(YIYH)
YIYH[YRbF] **= 2
return TlHT(YIYH, YRbF + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MZ0I(mZmz):\n Aofo = oyIN.sum(oyIN.asarray(mZmz) ** 2)\n return Aofo",
"def oFrj(aO51):\n oFrj = 0\n for mLGw in aO51:\n oFrj += mLGw\n return oFrj ** 2",
"def Lzxs(fUYa):\n wjRY = 0\n for WKvO in fUYa:\n wjRY += WKvO * WKvO\n return wjRY",
"def Lzxs(fUYa):\n wjRY... | [
"0.8540952",
"0.82985353",
"0.8258939",
"0.82071054",
"0.8157913",
"0.8118243",
"0.7982188",
"0.7965875",
"0.78175396",
"0.7781747",
"0.7764893",
"0.7764893",
"0.7677699",
"0.76545554",
"0.76278216",
"0.75928533",
"0.7572148",
"0.7555745",
"0.7527221",
"0.74821204",
"0.745706... | 0.73657364 | 26 |
Convert a binary Image to a grayscale image. | def uYNE(doZt):
H2v2, TVTK, G1Hx = doZt.shape
pGnf = oyIN.zeros(shape=(H2v2, TVTK), dtype=oyIN.uint8)
for YRbF in range(H2v2):
for r845 in range(TVTK):
pGnf[YRbF, r845] = BfDw.bitarray2int(doZt[YRbF, r845, :])
return pGnf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pl9M(VXjJ, UFp3):\n LNo8 = hnIv.open(VXjJ).convert('L')\n LNo8.save(UFp3)",
"def zdc2(YKHO):\n YKHO.image_gray = Y4jz.grayscale(YKHO.image)",
"def omtx(neaT, UOVU=4):\n ZHfW = 1 << UOVU - 1\n ITiw = neaT & ZHfW\n neaT = (neaT ^ neaT << 1) >> 1\n ITiw = ITiw | neaT\n return ITiw",
... | [
"0.75935346",
"0.757583",
"0.73535407",
"0.72919613",
"0.72521335",
"0.72267056",
"0.721603",
"0.721603",
"0.7214813",
"0.72143626",
"0.71924186",
"0.7114765",
"0.71092916",
"0.7093113",
"0.7093113",
"0.7093113",
"0.7093113",
"0.7093113",
"0.70834935",
"0.7078914",
"0.7075896... | 0.71665895 | 11 |
read image from path. | def cE34(rn4K, Z9rn='rgb'):
assert Z9rn in ['rgb', 'bgr'], 'c = rgb or bgr?'
LNo8 = XC5k.imread(rn4K)
if Z9rn == 'rgb':
LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2RGB)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5aE(YKHO, pmON):\n YKHO.img = XC5k.imread(pmON)",
"def q5aE(pmON):\n fJCU = False\n if not BKva.exists(pmON):\n raise IOError('\"{}\" does not exist'.format(pmON))\n while not fJCU:\n try:\n VXjJ = hnIv.open(pmON).convert('RGB')\n fJCU = True\n except I... | [
"0.80835795",
"0.7811311",
"0.7766489",
"0.773079",
"0.7528867",
"0.7495476",
"0.74617344",
"0.74479455",
"0.7442926",
"0.74274033",
"0.7424977",
"0.7422161",
"0.7418878",
"0.7418878",
"0.7351043",
"0.7324427",
"0.7324427",
"0.7307414",
"0.7301308",
"0.72861797",
"0.72417516"... | 0.0 | -1 |
test issue a license to a system | def ZjuH(YKHO):
CBIr = mv1M(username='jennie', identity_id='123456', name='Kim Jennie', msisdn='081212341234', email='jennie@bp.com')
CBIr.set_password('password')
NCls.session.add(CBIr)
NCls.session.commit()
YKHO.assertTrue(CBIr.id)
nY1j = fVaT(name='Transactional License', description='some tr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTe6(YKHO):\n pass",
"def yvr0():\n QXuz = Hy7s.path.normpath(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), '../../../Cargo.toml'))\n BfDw.run_cmd('cargo deny --manifest-path {} check licenses'.format(QXuz))",
"def c21I(YKHO):\n pass",
"def ly2n(YKHO):\n license = '<td><a hre... | [
"0.73460007",
"0.72276527",
"0.71519303",
"0.7094908",
"0.69848675",
"0.6958195",
"0.6924206",
"0.6919039",
"0.687558",
"0.683534",
"0.68340206",
"0.680395",
"0.6773474",
"0.6770346",
"0.6768868",
"0.6746375",
"0.6743643",
"0.67323554",
"0.6731527",
"0.67067426",
"0.667917",
... | 0.64648974 | 27 |
test issue a license to a system | def ndtp(YKHO):
CBIr = mv1M(username='jennie', identity_id='123456', name='Kim Jennie', msisdn='081212341234', email='jennie@bp.com')
CBIr.set_password('password')
NCls.session.add(CBIr)
NCls.session.commit()
YKHO.assertTrue(CBIr.id)
rumN = fVaT(name='Blank License', description='some blank desc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTe6(YKHO):\n pass",
"def yvr0():\n QXuz = Hy7s.path.normpath(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), '../../../Cargo.toml'))\n BfDw.run_cmd('cargo deny --manifest-path {} check licenses'.format(QXuz))",
"def c21I(YKHO):\n pass",
"def ly2n(YKHO):\n license = '<td><a hre... | [
"0.73460007",
"0.72276527",
"0.71519303",
"0.7094908",
"0.69848675",
"0.6958195",
"0.6924206",
"0.6919039",
"0.687558",
"0.683534",
"0.68340206",
"0.680395",
"0.6773474",
"0.6770346",
"0.6768868",
"0.6746375",
"0.6743643",
"0.67323554",
"0.6731527",
"0.67067426",
"0.667917",
... | 0.0 | -1 |
Reshape tensor to a rank 2 tensor | def _4I8(FRUf):
TVTK = FRUf.shape[-1]
return ZylS.reshape(FRUf, [-1, TVTK]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7l5(vhpA):\n with ZylS.compat.v1.name_scope(name='reshape_to_2d'):\n fdMZ = vhpA.shape.rank if vhpA.shape is not None else None\n if fdMZ is not None and fdMZ != 2:\n if fdMZ >= 3:\n vhpA = ZylS.reshape(vhpA, ZylS.shape(input=vhpA)[0:2])\n else:\n ... | [
"0.8262955",
"0.8221192",
"0.8221192",
"0.792187",
"0.73229617",
"0.7091318",
"0.70586467",
"0.70586467",
"0.7002733",
"0.6995752",
"0.69787335",
"0.69606227",
"0.6897143",
"0.6882329",
"0.68751436",
"0.6846657",
"0.6818995",
"0.6813926",
"0.6808753",
"0.67830133",
"0.6774355... | 0.6858781 | 15 |
Creates a `truncated_normal_initializer` with the given range. | def lly1(a4xb=0.02):
return ZylS.truncated_normal_initializer(stddev=a4xb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initi... | [
"0.8153629",
"0.8153629",
"0.8073986",
"0.8073986",
"0.78917825",
"0.7147861",
"0.66296667",
"0.66077083",
"0.6529185",
"0.6522739",
"0.65052384",
"0.6497668",
"0.6472326",
"0.64359105",
"0.6348028",
"0.6278155",
"0.627811",
"0.627811",
"0.627811",
"0.6258456",
"0.6212598",
... | 0.8171967 | 0 |
Run layer normalization on the last dimension of the tensor. | def vUJ3(FRUf):
return Q1bM(inputs=FRUf, begin_norm_axis=-1, begin_params_axis=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FdFb(YKHO, vhpA, H1Ed=0):\n if H1Ed == 0:\n return vhpA\n tjUW, Nq1b, C7Ls, XcU5 = vhpA.size()\n vhpA = vhpA.view(tjUW, -1)\n XXcz = vhpA.min(dim=-1, keepdim=True)[0]\n w3IF = vhpA.max(dim=-1, keepdim=True)[0]\n sK47 = vhpA.mean(dim=-1, keepdim=True)\n clG7 = vhpA.std(dim=-1, keepdi... | [
"0.73223287",
"0.6649374",
"0.664347",
"0.66341007",
"0.6633035",
"0.6605576",
"0.65576494",
"0.6532498",
"0.6508116",
"0.65001017",
"0.64922744",
"0.64922744",
"0.64922744",
"0.64922744",
"0.64922744",
"0.6487575",
"0.64785874",
"0.6472006",
"0.64685565",
"0.6463105",
"0.645... | 0.6581123 | 6 |
Gaussian Error Linear Unit. | def Vmco(FRUf):
YzER = 0.5 * (1.0 + ZylS.erf(FRUf / ZylS.sqrt(2.0)))
return FRUf * YzER | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(JBMS, SAMx, WKvO):\n return 1 / (oyIN.sqrt(2 * oyIN.pi) * SAMx) * oyIN.e ** (-0.5 * (float(WKvO - JBMS) / SAMx) ** 2)",
"def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))",
"def IAWS(WKvO: float) -> float:\n return oyIN.exp(-(WKvO ** 2 / 2))",
"def IAWS(YKHO, yGTL, WTkW, WKvO):\n retur... | [
"0.7139694",
"0.70976514",
"0.7087329",
"0.70623857",
"0.70492077",
"0.7035932",
"0.701072",
"0.6945993",
"0.69427",
"0.6877352",
"0.6872306",
"0.6865655",
"0.68485343",
"0.68481684",
"0.68002015",
"0.67579424",
"0.67370766",
"0.6710477",
"0.6691657",
"0.66895497",
"0.6688947... | 0.0 | -1 |
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. | def qUJm(IH42):
u_ln = IH42.lower()
if u_ln == 'linear':
return None
elif u_ln == 'relu':
return ZylS.nn.relu
elif u_ln == 'gelu':
return Vmco
elif u_ln == 'tanh':
return ZylS.tanh
elif u_ln == 'none':
return None
else:
raise ValueError('Unsupp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UBsp(mWFP: str) -> YrBT:\n if mWFP == 'to_tanh':\n return Br5Q.tanh\n elif mWFP == 'to_relu':\n return Br5Q.relu\n elif mWFP == 'to_sigmoid':\n return Br5Q.sigmoid\n elif mWFP == 'pd_linear':\n return F02M\n elif mWFP == 'pd_cubic':\n return f3U8\n elif mWFP... | [
"0.70766854",
"0.69398606",
"0.6614432",
"0.6611806",
"0.6565903",
"0.646726",
"0.6372868",
"0.62037796",
"0.61935294",
"0.6186204",
"0.61472136",
"0.60518754",
"0.60212183",
"0.6015904",
"0.6011258",
"0.5969337",
"0.5955903",
"0.5930974",
"0.59215975",
"0.58939886",
"0.58466... | 0.6266932 | 7 |
Return True if path exists in user's data store. If `experiment_id` provided then the path will be relative to the experiment data directory. | def tQBm(QePW, pmON, xaci=None, Z2dz=None):
if cOPv.is_remote_api_configured():
_hkX = cOPv.call(QePW, '/user-storage/~/', params={'path': pmON, 'experiment-id': Z2dz}, raise_for_status=False)
if _hkX.status_code == qed_.NOT_FOUND:
return False
_hkX.raise_for_status()
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EA1m(QePW, pmON, xaci=None, Z2dz=None):\n if cOPv.is_remote_api_configured():\n _hkX = cOPv.call(QePW, '/user-storage/~/{path}', path_params={'path': pmON}, params={'experiment-id': Z2dz}, raise_for_status=False)\n if _hkX.status_code == qed_.NOT_FOUND:\n return None\n _hkX.r... | [
"0.6445466",
"0.6339464",
"0.62562543",
"0.6198983",
"0.6186413",
"0.6146628",
"0.597322",
"0.5951445",
"0.587948",
"0.5822032",
"0.5815637",
"0.58127904",
"0.58020246",
"0.5789286",
"0.5781031",
"0.57689744",
"0.5755515",
"0.57482195",
"0.5747223",
"0.5732474",
"0.57276785",... | 0.677013 | 0 |
Return experiment data dir path relative to user's directory. | def BxyL(QePW, Z2dz, xaci=None):
qmLP.warn("Use 'list_experiment_dir' instead.", DeprecationWarning)
if cOPv.is_remote_api_configured():
_hkX = cOPv.call(QePW, '/experiments/{experimentId}/', path_params={'experimentId': Z2dz})
_hkX.raise_for_status()
return _hkX.json()['relativeExperime... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8df():\n tETI = WQbV(TLI7(xAKo))\n h_xa = gzes(tETI, 'data')\n return h_xa",
"def i0XC():\n return Hy7s.path.join(eKPZ(), 'data')",
"def Eyk6(YKHO):\n return Hy7s.path.join(yt7q, UVn7)",
"def xe5l():\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..', 'data'))",
... | [
"0.8061957",
"0.8032734",
"0.7933285",
"0.7916935",
"0.7901894",
"0.79017335",
"0.77746975",
"0.7720777",
"0.76832974",
"0.7673526",
"0.76676273",
"0.7512147",
"0.75094885",
"0.7503675",
"0.75006413",
"0.74786556",
"0.7477748",
"0.7459073",
"0.7458439",
"0.745211",
"0.7443837... | 0.7172818 | 36 |
This test decorator makes debugging tests easier by throwing an exception whenever a HttpResponseForbidden response is constructed, instead of returning it as an HttpResponse with status 403. | def yL7k(iPWn):
def M84T(*qIxc, **B2fa):
WZJ2 = {}
def fz_R(VUF1, *qIxc, **B2fa):
WZJ2.update(VUF1)
from aptivate_monkeypatch.monkeypatch import after
import django.test.client
with after(hbZn.test.client, 'store_rendered_templates', fz_R):
def q2fy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQCE(YKHO):\n kMyc = eWlL(qxgI)\n QePW = b9AL().get('whatever')\n YKHO.assertEquals(kMyc(QePW).status_code, 403)",
"def suVl(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 403)",
"def suVl(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 403)",
"def O9eK(YKHO, _hkX):\n ... | [
"0.783731",
"0.77642286",
"0.7694874",
"0.758231",
"0.7504414",
"0.73139757",
"0.7279052",
"0.7279052",
"0.7279052",
"0.7279052",
"0.7279052",
"0.7279052",
"0.7279052",
"0.7279052",
"0.7258138",
"0.7258138",
"0.71779895",
"0.7166536",
"0.71622443",
"0.71622443",
"0.71622443",... | 0.7829055 | 1 |
Returns the IoU of two bounding boxes | def z9IC(knvf, IkxF):
ywwl, E3D9 = (len(knvf), len(IkxF))
JqUn, hyHQ = (knvf[:, 0] - knvf[:, 2] / 2, knvf[:, 0] + knvf[:, 2] / 2)
pvBw, TYrM = (knvf[:, 1] - knvf[:, 3] / 2, knvf[:, 1] + knvf[:, 3] / 2)
gSFI, IrGj = (IkxF[:, 0] - IkxF[:, 2] / 2, IkxF[:, 0] + IkxF[:, 2] / 2)
KDnR, iM_U = (IkxF[:, 1] -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plrc(MErA, ZnGJ):\n KK0L, _hgE, IgEf, AjNA = (MErA[0], MErA[1], ZnGJ[0], ZnGJ[1])\n OZPM, W6Dw, o9iJ, hTeg = (KK0L + MErA[2], _hgE + MErA[3], IgEf + ZnGJ[2], AjNA + ZnGJ[3])\n sA0R, Kphd = (max(KK0L, IgEf), min(OZPM, o9iJ))\n YijY, sIW6 = (max(_hgE, AjNA), min(W6Dw, hTeg))\n if Kphd < sA0R or sI... | [
"0.83967453",
"0.8331589",
"0.83315754",
"0.8312013",
"0.82765573",
"0.8213144",
"0.81780887",
"0.8061445",
"0.8048283",
"0.80478364",
"0.80418473",
"0.8012881",
"0.8007109",
"0.7992564",
"0.7992564",
"0.7977315",
"0.7962279",
"0.7957657",
"0.7945836",
"0.7928355",
"0.7919707... | 0.0 | -1 |
Return the area of a circle of radius r | def LA4l(Mkmy):
return epAf.pi * Mkmy * Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yX2h(Mkmy):\n return mM0K * Mkmy ** 2",
"def OoO_(Mkmy):\n return epAf.pi * Mkmy * Mkmy",
"def yX2h(Mkmy):\n return float(Mkmy) ** 2 * epAf.pi",
"def yX2h(Mkmy):\n return epAf.pi * Mkmy ** 2",
"def Bjvh(Mkmy):\n return mM0K * Mkmy * Mkmy",
"def LA4l(Mkmy):\n jzdc = 9 ** 2 * epAf.pi\... | [
"0.91711545",
"0.9153854",
"0.91364515",
"0.9110503",
"0.9025435",
"0.9018404",
"0.89031345",
"0.8894212",
"0.8854588",
"0.8831147",
"0.8809828",
"0.8786076",
"0.8774073",
"0.8759596",
"0.8658958",
"0.83573395",
"0.8346588",
"0.8346588",
"0.8346588",
"0.83122593",
"0.8194302"... | 0.9230646 | 0 |
Tests that LocalDiskCacheStorageManager.clear_all() calls shutil.rmtree to remove the cache folder | def AyWB(YKHO, RT_W):
p_z1 = wDFK()
p_z1.clear_all()
RT_W.assert_called_once() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x2FT(YKHO):\n YKHO.tempdir.cleanup()\n YKHO.storage.clear()",
"def ORNU():\n RDuA.rmtree(GPtr.get('DEV', 'cache'), ignore_errors=True)",
"def RrFH(YKHO):\n gLDJ = ypig(YKHO.dir_path, 'eq_cache')\n RDuA.rmtree(gLDJ)",
"def Shbh(BXLT=PjxR):\n BXLT = khtY.expanduser(BXLT)\n RKD7.info('R... | [
"0.7961617",
"0.7877973",
"0.7700491",
"0.75129974",
"0.7471155",
"0.7442188",
"0.74391854",
"0.74274606",
"0.7418285",
"0.73941386",
"0.7377463",
"0.73269385",
"0.7278136",
"0.71597797",
"0.71306413",
"0.7129644",
"0.7097656",
"0.7097291",
"0.7087479",
"0.7049078",
"0.704058... | 0.83857816 | 0 |
Test that clear() is not crashing if the cache directory does not exist. | def x2FT(YKHO):
YKHO.tempdir.cleanup()
YKHO.storage.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yRMU(YKHO):\n YKHO.storage.set('some-key', b'some-value')\n YKHO.storage.set('another-key', b'another-value')\n YKHO.assertTrue(Hy7s.path.exists(YKHO.tempdir.path + '/func-key-some-key.memo'))\n YKHO.assertTrue(Hy7s.path.exists(YKHO.tempdir.path + '/func-key-another-key.memo'))\n YKHO.storage.cl... | [
"0.77562976",
"0.7533735",
"0.7451409",
"0.74038935",
"0.7386265",
"0.72125393",
"0.7203978",
"0.7169175",
"0.71564716",
"0.71282977",
"0.7124063",
"0.70946974",
"0.7083013",
"0.7083013",
"0.7083013",
"0.7083013",
"0.7083013",
"0.70094395",
"0.7007192",
"0.6964271",
"0.696370... | 0.8200662 | 0 |
Test that clear() call os.listdir if cache folder does not exist. | def f7cM(YKHO):
with Po4F('os.listdir') as jzLq:
YKHO.storage.clear()
jzLq.assert_called_once() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QwB_(YKHO):\n YKHO.tempdir.cleanup()\n with Po4F('os.listdir') as jzLq:\n YKHO.storage.clear()\n jzLq.assert_not_called()",
"def x2FT(YKHO):\n YKHO.tempdir.cleanup()\n YKHO.storage.clear()",
"def AyWB(YKHO, RT_W):\n p_z1 = wDFK()\n p_z1.clear_all()\n RT_W.assert_called_once()... | [
"0.84741825",
"0.77615404",
"0.7383715",
"0.73783016",
"0.73545784",
"0.73545784",
"0.73545784",
"0.73545784",
"0.73545784",
"0.7216549",
"0.71772015",
"0.71224904",
"0.6976729",
"0.6970967",
"0.69703645",
"0.69233996",
"0.69190663",
"0.6905023",
"0.6807266",
"0.68059266",
"0... | 0.83262235 | 1 |
Test that clear() doesn't call os.listdir if cache folder does not exist. | def QwB_(YKHO):
YKHO.tempdir.cleanup()
with Po4F('os.listdir') as jzLq:
YKHO.storage.clear()
jzLq.assert_not_called() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f7cM(YKHO):\n with Po4F('os.listdir') as jzLq:\n YKHO.storage.clear()\n jzLq.assert_called_once()",
"def x2FT(YKHO):\n YKHO.tempdir.cleanup()\n YKHO.storage.clear()",
"def Shbh():\n if Hy7s.path.exists('cache'):\n for nUeQ in Hy7s.listdir('cache'):\n Hy7s.remove(Hy7s... | [
"0.8239445",
"0.7925321",
"0.74710125",
"0.7429863",
"0.7387863",
"0.7387863",
"0.7387863",
"0.7387863",
"0.7387863",
"0.7364244",
"0.7357608",
"0.7234961",
"0.71825165",
"0.7137577",
"0.71019834",
"0.70890784",
"0.7048569",
"0.700133",
"0.69505453",
"0.691319",
"0.68813765",... | 0.8493508 | 0 |
Test that storage.close() does not raise any exception. | def I6Qs(YKHO):
YKHO.storage.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mTtn(AJ5d):\n S8SU.close()",
"def mTtn(AJ5d):\n S8SU.close()",
"def mTtn(BQDi):\n S8SU.close()",
"def mTtn(BQDi):\n S8SU.close()",
"def mTtn(BQDi):\n S8SU.close()",
"def mTtn(AJ5d=None):\n S8SU.close()",
"def ugYo(AJ5d):\n S8SU.close()",
"def mTtn(P1dF):\n S8SU.close()",
... | [
"0.8018718",
"0.8018718",
"0.799989",
"0.799989",
"0.799989",
"0.79976946",
"0.7953197",
"0.78074926",
"0.7433391",
"0.73940814",
"0.7323083",
"0.7323083",
"0.7323083",
"0.7323083",
"0.73091096",
"0.73091096",
"0.72453153",
"0.7148031",
"0.71431935",
"0.69929874",
"0.69929874... | 0.8730419 | 0 |
Return device specific attributes. | def GWuV(YKHO):
return {'name': ueYb(YKHO._data, 0), 'identifiers': {(Sugg, Sph8(YKHO._data, 0))}, 'manufacturer': YhHo, 'model': YKHO._data.wiserhub.system.product_type, 'sw_version': YKHO._data.wiserhub.system.firmware_version, 'via_device': (Sugg, YKHO._data.wiserhub.system.name)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UC7j(YKHO, **B2fa):\n wN9s = B2fa.get('device', None)\n laNn = './/device[@name=' + wN9s + ']'\n oaD6 = lAws.XmlGetElementsByTag(YKHO.LOGICAL_TOPOLOGY, laNn, allElements=True)\n Scip = oaD6.findall('attribute')\n ssxV = dict()\n for i_OE in Scip:\n EOK0 = i_OE.get('name')\n iZom... | [
"0.74106926",
"0.7394256",
"0.7343818",
"0.7298191",
"0.7252295",
"0.7238756",
"0.71793777",
"0.7172032",
"0.7164443",
"0.7148823",
"0.7148713",
"0.714538",
"0.7129106",
"0.709534",
"0.70936406",
"0.7073589",
"0.70714945",
"0.7055427",
"0.7055313",
"0.70371765",
"0.70325017",... | 0.0 | -1 |
This function converts a string into a boolean value | def M0mR(KCHu):
if KCHu.lower() in ['true', 'yes', 'y', 't', '1']:
Fg_i = True
elif KCHu.lower() in ['false', 'no', 'f', 'n', '0']:
Fg_i = False
else:
print('boolean string not correctly specified')
HwRy.exit(1)
return Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E8Lj(KCHu):\n if KCHu:\n return True\n else:\n return False",
"def M0mR(vIwR):\n if vIwR == 'True':\n return True\n elif vIwR == 'False':\n return False",
"def M0mR(KCHu):\n if KCHu == 'True':\n return True\n elif KCHu == 'False':\n return False",... | [
"0.90354884",
"0.900029",
"0.8994632",
"0.89850825",
"0.88657457",
"0.8823983",
"0.87967414",
"0.8782781",
"0.8771909",
"0.87545776",
"0.87437516",
"0.8740307",
"0.8735914",
"0.8727092",
"0.8726331",
"0.87112427",
"0.8687946",
"0.8685733",
"0.8640675",
"0.86394763",
"0.861741... | 0.8682196 | 18 |
Display the subscriber registration form. | def hw_G(QePW):
jyzP = rCZ7.set_sample_phone_display_text(QePW)
Sz2E = kfuQ(QePW)
t0xh = {}
k4gs = {'is_eligible_to_win': Sz2E, 'sample_phone_text': jyzP, 'button_text': 'Text Me!', 'suppress_contest_reward': True}
if QePW.method == 'POST':
return RuMX(QePW, created_redirect=gxEw(UyAV), requ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZTJa():\n return TvZl('register_form.html')",
"def kwoF():\n return TvZl('registration.html')",
"def kwoF():\n return TvZl('register.html')",
"def yPVh(YKHO):\n YKHO.display_widget(zi27(YKHO))",
"def yPVh(YKHO):\n YKHO.display_widget(zi27(YKHO))",
"def ONVH():\n return TvZl('registr... | [
"0.75793165",
"0.7559023",
"0.7443772",
"0.7131435",
"0.7131435",
"0.7075418",
"0.6986704",
"0.6973388",
"0.6973388",
"0.6973388",
"0.6973388",
"0.6973388",
"0.694951",
"0.6931977",
"0.68546677",
"0.68337214",
"0.68247366",
"0.6817457",
"0.6780564",
"0.67721695",
"0.67651224"... | 0.76358056 | 0 |
Test the response when a valid request is made for a top leaderboard players. | def stBN(udfG, JawI, K5L9):
FWzL = puYg(difficulty_level=0.4, size=2)
FWzL.completed = True
FWzL.save(autocommit=True)
nFE9 = tjTh(2, 3)
nFE9.save(autocommit=True)
nFE9 = tjTh(1, 3)
nFE9.save(autocommit=True)
geh0 = udfG.get('/leaderboard', headers={'Authorization': 'Bearer 2342351231asd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s3N3(YKHO):\n tO9_ = 'Response status is not 200'\n geh0 = YKHO.api.get_tournament_leaderboard(YKHO.golf_tour, YKHO.year, YKHO.tournament_id)\n YKHO.assertEqual(geh0.status_code, 200, tO9_)",
"def EQJg(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.post('/score', data=qQXR.dumps({'player'... | [
"0.6811855",
"0.67098397",
"0.66235256",
"0.65163183",
"0.63404894",
"0.626116",
"0.6226467",
"0.6224065",
"0.6213972",
"0.6192289",
"0.6180409",
"0.6170932",
"0.61666274",
"0.61542886",
"0.6139417",
"0.61067146",
"0.60918653",
"0.6059254",
"0.60355794",
"0.6017865",
"0.59960... | 0.0 | -1 |
Get all the peer relationships. | def WYMh(cuiw, GPtr):
return HcnR(cuiw, GPtr, peertype=Gt0A) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KQdn(YKHO):\n return YKHO._relationships",
"def KQdn(YKHO):\n return YKHO._relationships",
"def UTJz(YKHO, UBGL, xeMR):\n return",
"def Ia6p(YKHO):\n return YKHO.relationships",
"def KQdn(YKHO):\n return list(YKHO._rels)",
"def KQdn(YKHO):\n KQdn = []\n for Qovt in YKHO._env.quer... | [
"0.78495145",
"0.78495145",
"0.77834463",
"0.77055913",
"0.75955117",
"0.7413386",
"0.73912495",
"0.7374561",
"0.7243823",
"0.7085728",
"0.67963016",
"0.67189443",
"0.66821504",
"0.66641736",
"0.6560279",
"0.6522783",
"0.6475248",
"0.6441962",
"0.6431951",
"0.637872",
"0.6361... | 0.6944142 | 10 |
Gets the type of this PushToTalk. | def type(YKHO):
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO):\n return YKHO.topic_item.get_type()",
"def YwLH(YKHO):\n return YKHO._type",
"def YwLH(YKHO):\n return YKHO._type",
"def type(YKHO):\n return YKHO._message['type']",
"def FRul(YKHO):\n from .toolbox import get_registered_message_type\n return get_registered_message_type(YK... | [
"0.7532989",
"0.72726786",
"0.72726786",
"0.72488594",
"0.72434497",
"0.7227351",
"0.7227351",
"0.7210034",
"0.7210034",
"0.7210034",
"0.7183825",
"0.7183825",
"0.7183825",
"0.7183825",
"0.7183825",
"0.7183825",
"0.7183825",
"0.7179014",
"0.716958",
"0.716958",
"0.716958",
... | 0.69738346 | 41 |
Gets the callerid_id of this PushToTalk. Phone number to connect the caller to. | def K33u(YKHO):
return YKHO._callerid_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duDf(YKHO) -> int:\n return YKHO.__sender_id",
"def CxaF(YKHO):\n if 'plugin.psk.callertype' in YKHO.config:\n JULw = YKHO.config['plugin.psk.callertype']\n else:\n JULw = 'uid'\n if JULw == 'gid':\n ulGv = 'gid={}'.format(Hy7s.getgid())\n elif JULw == 'group':\n if... | [
"0.6862514",
"0.67522794",
"0.6671387",
"0.6656218",
"0.6581579",
"0.6435519",
"0.64025",
"0.6394164",
"0.6361093",
"0.6328625",
"0.6317304",
"0.6262298",
"0.6219491",
"0.6150963",
"0.6129388",
"0.6101642",
"0.6005881",
"0.59939814",
"0.5972323",
"0.5963924",
"0.59484947",
... | 0.7926936 | 0 |
Sets the callerid_id of this PushToTalk. Phone number to connect the caller to. | def K33u(YKHO, K33u):
YKHO._callerid_id = K33u | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duDf(YKHO, BWXx: int) -> None:\n YKHO.__sender_id = BWXx",
"def K33u(YKHO):\n return YKHO._callerid_id",
"def tUJj(YKHO, BJEO):\n YKHO.effective_caller_id = BJEO",
"def tUJj(YKHO, BJEO):\n YKHO.effective_caller_id = BJEO",
"def hMFr(YKHO, PObu):\n YKHO.__caller_uid = PObu",
"def dw5f(Y... | [
"0.6287003",
"0.61752075",
"0.61342263",
"0.61342263",
"0.5990352",
"0.59180474",
"0.58666",
"0.5828262",
"0.582693",
"0.582693",
"0.582693",
"0.57967275",
"0.57318985",
"0.56334996",
"0.55179656",
"0.5477228",
"0.5455386",
"0.54463637",
"0.5438218",
"0.54223245",
"0.53984946... | 0.8091679 | 0 |
Gets the ringtone of this PushToTalk. | def bkuq(YKHO):
return YKHO._ringtone | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bkuq(YKHO, bkuq):\n YKHO._ringtone = bkuq",
"def GMo9(YKHO) -> 'Sound':\n return YKHO._sound",
"def GMo9(YKHO) -> 'Sound':\n return YKHO._sound",
"def GMo9(YKHO):\n return YKHO._sound",
"def wDuC(YKHO):\n return YKHO.__ring",
"def GMo9(YKHO):\n return YKHO.sound",
"def wDuC(YKHO):... | [
"0.63427013",
"0.63008857",
"0.63008857",
"0.6135464",
"0.600765",
"0.5914063",
"0.5803007",
"0.54875976",
"0.54705584",
"0.5468663",
"0.5405229",
"0.53637654",
"0.5341419",
"0.53302246",
"0.53302246",
"0.52910453",
"0.52910453",
"0.5254675",
"0.520727",
"0.5170903",
"0.51357... | 0.8715628 | 0 |
Gets the cpm of this PushToTalk. Calls per minute throttling. | def nt8f(YKHO):
return YKHO._cpm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g53r(YKHO):\n try:\n return YKHO._mptcpmpcapsynrate\n except Exception as e:\n raise tTpl",
"def Kf21(YKHO):\n try:\n return YKHO._mptcpmpcapsessionrate\n except Exception as e:\n raise tTpl",
"def ZUxg(YKHO):\n return YKHO.current_cps",
"def ZUxg(YKHO):\n re... | [
"0.6638544",
"0.64592814",
"0.6325536",
"0.6247547",
"0.6247547",
"0.6247547",
"0.62452036",
"0.6224517",
"0.6224517",
"0.62168014",
"0.618592",
"0.61675274",
"0.615915",
"0.6118274",
"0.60103285",
"0.59593785",
"0.5920849",
"0.5920849",
"0.5869325",
"0.57707125",
"0.5704195"... | 0.73585325 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 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 return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8393104",
"0.8355197",
"0.8295551",
"0.8133039",
"0.811476",
"0.8100177",
"0.80994433",
"0.80982935",
"0.80982935",
"0.8093244",
"0.8093244",
"0.8093244",
"0.8093244",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80671525",
"0.80597436",
"0.8057952",
"0... | 0.0 | -1 |
Get a user's geolocation and signup a new user. | def kI0b():
L03z = lcWH()
if L03z.validate_on_submit():
NaYF = hie3(city=L03z.city.data, state=L03z.state.data, country=L03z.country.data)
W0Eb = NaYF.get_coordinates()
if W0Eb:
try:
Q5YQ = mv1M.signup(name=L03z.name.data, email=L03z.email.data, latitude=W0Eb[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO, CBIr=None):\n if CBIr:\n qIxc = YKHO.reqparse.parse_args()\n if qIxc['lat']:\n CBIr.lat = qIxc['lat']\n if qIxc['lon']:\n CBIr.lat = qIxc['lon']\n NCls.session.commit()\n return ({'status': 'Successfully updated location'}, 200)",
"def kI... | [
"0.6525939",
"0.64779603",
"0.64779603",
"0.64779603",
"0.64779603",
"0.64415556",
"0.64260817",
"0.6411268",
"0.64107424",
"0.64102006",
"0.6355275",
"0.6324845",
"0.62300783",
"0.62252784",
"0.6170154",
"0.6141621",
"0.6118219",
"0.6049949",
"0.6049942",
"0.602655",
"0.6005... | 0.63401526 | 11 |
Logout the current user. | def erK4():
if n9tm in cuiw:
del cuiw[n9tm]
Dwep('You have successfully logged out.', 'success')
return vKnz(nKyW('login')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def erK4():\n c5ow = W84Y()\n a8p0.logout(auth_header=c5ow.profile.get_auth_header(), token=c5ow.profile.token)",
"def erK4():\n oLi7()",
"def erK4(YKHO):\n if YKHO.is_loggedin():\n YKHO._send_logout_request()\n dqqV.logout()\n else:\n wk5E.logger.info('Unable to log out the... | [
"0.85760385",
"0.8575777",
"0.85243857",
"0.8480241",
"0.83090883",
"0.83080035",
"0.83073527",
"0.82905054",
"0.8280818",
"0.8241597",
"0.81981015",
"0.8166909",
"0.8130871",
"0.8116898",
"0.810702",
"0.80764365",
"0.8074127",
"0.8074127",
"0.8067122",
"0.80610317",
"0.80512... | 0.77450925 | 56 |
Show a user's profile details. | def YxIp():
CBIr = mv1M.query.get_or_404(Oa1e.user.id)
return TvZl('/user/profile.html', user=CBIr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OfdD(uJjO):\n z39Z = mv1M.query.get(uJjO)\n c9ua = z39Z.first_name\n zp3f = z39Z.last_name\n qwnb = z39Z.image_url\n lIhF = T97t.query.filter_by(user_id=uJjO)\n return TvZl('user-detail.html', first_name=c9ua, last_name=zp3f, image_url=qwnb, user_id=uJjO, posts=lIhF)",
"def QyAW():\n ret... | [
"0.83901954",
"0.81762874",
"0.81498325",
"0.81097317",
"0.8037374",
"0.8031803",
"0.8023134",
"0.80216324",
"0.8012284",
"0.8003079",
"0.797692",
"0.7952487",
"0.7951076",
"0.7907489",
"0.7888749",
"0.78731847",
"0.78637135",
"0.785338",
"0.78435314",
"0.7821186",
"0.7800172... | 0.8320557 | 1 |
Show user collection landing page. | def vZVq():
g760 = Oa1e.user.collections
return TvZl('/collection/view_collections.html', collections=g760) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dck1():\n CBIr = Oa1e.user\n g760 = LRdN.query.filter_by(user_id=Oa1e.user.id).all()\n return TvZl('/dashboard.html', user=CBIr, collections=g760)",
"def ip9I():\n EZ2Z = QePW.form.get('collection_id')\n CBIr = UXsa.get_user_by_id(cuiw['user_id'])\n xUwc = UXsa.get_collection_by_id(EZ2Z)\n ... | [
"0.691415",
"0.6912027",
"0.68694335",
"0.67821926",
"0.67713314",
"0.6768708",
"0.65755385",
"0.655724",
"0.637524",
"0.63384205",
"0.6328792",
"0.6292965",
"0.6292806",
"0.6274201",
"0.62718815",
"0.621687",
"0.61694884",
"0.61691874",
"0.61689544",
"0.61583424",
"0.6091887... | 0.69896907 | 0 |
View the water history table for a plant via the plant's id. | def znBs(oT3g):
xIuV = Hzqi.query.get_or_404(oT3g)
zu6N = RSPQ.query.filter_by(plant_id=xIuV.id).first()
vNkm = SALh.query.filter_by(water_schedule_id=zu6N.id)
if Oa1e.user.id == xIuV.user_id:
return TvZl('/schedule/view_waterhistory.html', plant=xIuV, water_history=vNkm)
Dwep('Access Denied... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ln9t(oT3g):\n xIuV = Hzqi.query.get_or_404(oT3g)\n if Oa1e.user.id == xIuV.user_id:\n zu6N = RSPQ.query.filter_by(plant_id=xIuV.id).first()\n qE0M = 3\n zu6N.next_water_date = qcWV.today() + fCoM(days=qE0M)\n zu6N.water_history.append(SALh(water_date=zu6N.water_date, snooze=qE... | [
"0.6257059",
"0.61855155",
"0.61246353",
"0.60449225",
"0.6011776",
"0.5966666",
"0.5948175",
"0.5933078",
"0.59185255",
"0.59024286",
"0.58813196",
"0.58785874",
"0.58511555",
"0.5828895",
"0.5812707",
"0.58036166",
"0.58011866",
"0.57903093",
"0.5780221",
"0.57405275",
"0.5... | 0.8068789 | 0 |
load trained model using SavedModelBuilder. can only be used for inference | def uyMl(cb_Q, eG0V):
NPbC = 'FCN8'
ZylS.saved_model.loader.load(cb_Q, [NPbC], eG0V)
pNZh = ZylS.get_default_graph()
njad = pNZh.get_tensor_by_name('image_input:0')
sMyr = pNZh.get_tensor_by_name('keep_prob:0')
jrBj = pNZh.get_tensor_by_name('predictions/prediction_class:0')
return (njad, sM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMdJ() -> None:\n print('Loading trained model')\n return uyMl('/cs/scratch/agj6/saved_models/dataset-{}_mammogramtype-{}_model-{}_lr-{}_b-{}_e1-{}_e2-{}_roi-{}_{}_saved-model.h5'.format(GPtr.dataset, GPtr.mammogram_type, GPtr.model, GPtr.learning_rate, GPtr.batch_size, GPtr.max_epoch_frozen, GPtr.max_ep... | [
"0.813236",
"0.8016035",
"0.7896428",
"0.7896428",
"0.7896428",
"0.7801209",
"0.77208966",
"0.77099323",
"0.7694869",
"0.7684186",
"0.7614414",
"0.7598027",
"0.7578737",
"0.7578737",
"0.75690836",
"0.7555479",
"0.75487775",
"0.7534594",
"0.7530109",
"0.75284046",
"0.7497283",... | 0.0 | -1 |
Converts a basic rotation about the zaxis (in radians) into the Quaternion notation required by ROS transform and pose messages. | def RUpP(JjJy, xTkQ):
_156 = R5H8()
XP5J = 0
LVAh = xTkQ / 2.0
Mkmy = 0
_mrX = epAf.sin(XP5J)
dwyc = epAf.sin(LVAh)
quA1 = epAf.sin(Mkmy)
gNsL = epAf.cos(XP5J)
ve1H = epAf.cos(LVAh)
LC8P = epAf.cos(Mkmy)
_156.x = quA1 * gNsL * ve1H - LC8P * _mrX * dwyc
_156.y = LC8P * _mr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zDV7():\n _Jov = a8Pe.angle_axis_to_quaternion('Z', oyIN.pi / 2)\n assert oyIN.allclose(_Jov, VIcB.quatz90)",
"def ZZd6():\n LyIn = a8Pe.quaternion2rot3d(VIcB.quatz90)\n assert oyIN.allclose(LyIn, VIcB.Rz90)",
"def l44l():\n _Jov = a8Pe.angle_axis_to_quaternion(VIcB.vecz, oyIN.pi / 2)\n a... | [
"0.73208886",
"0.7259228",
"0.72265995",
"0.72003454",
"0.7182925",
"0.7037112",
"0.7013582",
"0.69919336",
"0.6973435",
"0.6856315",
"0.685171",
"0.6810663",
"0.6750883",
"0.674954",
"0.66820145",
"0.66435117",
"0.6627896",
"0.6583954",
"0.6551071",
"0.6546224",
"0.6544192",... | 0.0 | -1 |
Multiplies two quaternions to give the rotation of qb by qa. | def At55(rQ8K, OaeL):
TTm1 = R5H8()
TTm1.w = rQ8K.w * OaeL.w - rQ8K.x * OaeL.x - rQ8K.y * OaeL.y - rQ8K.z * OaeL.z
TTm1.x = rQ8K.x * OaeL.w + rQ8K.w * OaeL.x + rQ8K.y * OaeL.z - rQ8K.z * OaeL.y
TTm1.y = rQ8K.w * OaeL.y - rQ8K.x * OaeL.z + rQ8K.y * OaeL.w + rQ8K.z * OaeL.x
TTm1.z = rQ8K.w * OaeL.z + ... | {
"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.8477445",
"0.7721944",
"0.7675421",
"0.75938743",
"0.7353274",
"0.7321648",
"0.70830804",
"0.698703",
"0.6941283",
"0.6834184",
"0.6827054",
"0.6783169",
"0.66880476",
"0.6686222",
"0.6686222",
"0.66635126",
"0.6642726",
"0.66332906",
"0.6610121",
"0.645595",
"0.6428808",
... | 0.850611 | 0 |
_strip_comments() should remove only comments | def fJvz(XWXe: str, tO9_: CommentIn, aEqx: CommentOut) -> None:
assert gU2l(tO9_) == aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gU2l(J_Es: BeautifulSoup) -> None:\n Tj1O = J_Es.find_all(string=lambda l5Ny: isinstance(l5Ny, jY1u))\n for Z9rn in Tj1O:\n Z9rn.extract()",
"def lvfG(Nqlg):\n s2mk = dCEc(Nqlg)\n Tj1O = [eOtH for eOtH in s2mk if eOtH[0] == wr3U.COMMENT]\n EESs = Nqlg[:]\n for aM_I in Tj1O:\n ... | [
"0.7866369",
"0.78576446",
"0.78288805",
"0.7807941",
"0.78039443",
"0.7791588",
"0.77081573",
"0.7686141",
"0.7680194",
"0.7596162",
"0.75843656",
"0.75210315",
"0.75198513",
"0.751536",
"0.74857146",
"0.7481961",
"0.747964",
"0.74719524",
"0.74412775",
"0.7440668",
"0.74261... | 0.6797321 | 67 |
Initialize an attention transformer. | def FIMM(YKHO, Gzv5, EDoJ, GPaM=128, H0zq=0.02, mZyh='sparsemax'):
super(x386, YKHO).__init__()
YKHO.fc = hPO2(Gzv5, EDoJ, bias=False)
U3o1(YKHO.fc, Gzv5, EDoJ)
YKHO.bn = NKXe(EDoJ, virtual_batch_size=GPaM, momentum=H0zq)
if mZyh == 'sparsemax':
YKHO.selector = CGPU(dim=-1)
elif mZyh == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnlQ(YKHO, u7Zv):\n if u7Zv in YKHO._feature_flags and YKHO._feature_flags.get(u7Zv):\n jwjR = YKHO._feature_kwargs.get(u7Zv) if u7Zv in YKHO._feature_kwargs else {}\n if VNXz[u7Zv][1]:\n jwjR['vocab'] = YKHO.vocab\n YKHO._transformers[u7Zv] = VNXz[u7Zv][0](**jwjR)",
"def F... | [
"0.66236496",
"0.65474194",
"0.62484217",
"0.6232506",
"0.61235636",
"0.6055969",
"0.5752829",
"0.57277477",
"0.5724889",
"0.5630503",
"0.56176066",
"0.5604225",
"0.560312",
"0.56010914",
"0.5581832",
"0.5574913",
"0.5571617",
"0.5568608",
"0.553769",
"0.5490532",
"0.54859316... | 0.51341385 | 88 |
Factory method to construct a Response for a 404 error. | def mZnU():
return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href="/">HEAD HOME</a>.</h1>', []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fu9i(bGrB: HTTPException) -> oGir:\n geh0 = Yxsy('')\n geh0.mimetype = 'application/json'\n geh0.status_code = 404\n return geh0",
"def RQdI(XObx):\n return Yxsy(pz3A(error='oops, I did it again...'), 404)",
"def o3cf(P1dF):\n return G3KB('Not Found', 404)",
"def o3cf(MOPg=None, TBsA=No... | [
"0.8370775",
"0.74290174",
"0.7418886",
"0.7320091",
"0.7315061",
"0.7259162",
"0.7240891",
"0.7207362",
"0.7207362",
"0.7207362",
"0.7202875",
"0.71415",
"0.71160483",
"0.71159226",
"0.71146536",
"0.7071604",
"0.7053591",
"0.70503074",
"0.70503074",
"0.70411414",
"0.70256704... | 0.7659439 | 1 |
effective area in cm^2 | def GM1V(YKHO):
return YKHO._effarea | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aw0V(YKHO):\n pass",
"def f0tD(YKHO):\n return YKHO.sl ** 2",
"def sAdl(YKHO):\n return 3 * PZyS(3) * YKHO.length ** 2 / 2",
"def f0tD(YKHO):\n return YKHO.__size ** 2",
"def f0tD(YKHO):\n return YKHO.__size ** 2",
"def f0tD(YKHO):\n return YKHO.__size ** 2",
"def f0tD(YKHO):\n ... | [
"0.7953449",
"0.77577",
"0.77147025",
"0.7713791",
"0.7713791",
"0.7713791",
"0.76714975",
"0.7658412",
"0.76419735",
"0.76201504",
"0.75341254",
"0.75341254",
"0.7531938",
"0.751198",
"0.7498029",
"0.74840975",
"0.7472263",
"0.7471339",
"0.74671495",
"0.74646676",
"0.7463985... | 0.0 | -1 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError",
"def vGUt(YKHO):\n return x3i3.get_train_inputs(YKHO)",
"def rNg5(YKHO):\n return YKHO.dataset.get_train_examples()",
"def rNg5(YKHO):\n return YKHO.get_dialog_examples('train')",
"def rNg5(YKHO):\n return YKHO.get_dialog_examples('... | [
"0.81946266",
"0.760268",
"0.74249285",
"0.7340999",
"0.7340999",
"0.7214118",
"0.7173509",
"0.7173509",
"0.6990282",
"0.6849286",
"0.6615703",
"0.658582",
"0.6584767",
"0.6568076",
"0.6559143",
"0.6559143",
"0.6500049",
"0.6442261",
"0.6424973",
"0.64089346",
"0.6378972",
... | 0.6249497 | 30 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError",
"def syTc(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError",
"def JdXm(YKHO):\n return YKHO.dataset.get_dev_examples()",
"def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError",
"def Zo7w(YKHO):\n gMbG = YKHO.api.get(YKHO.result... | [
"0.80899024",
"0.71504563",
"0.70351374",
"0.6909079",
"0.67522305",
"0.6676925",
"0.6550554",
"0.6550554",
"0.64557886",
"0.64557886",
"0.64255226",
"0.64255226",
"0.6423698",
"0.6423698",
"0.6352287",
"0.6290681",
"0.6288263",
"0.6257267",
"0.62408787",
"0.6229795",
"0.6212... | 0.5992822 | 36 |
Gets the list of labels for this data set. | def Te1x(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x(YKHO):\n return YKHO.label_list",
"def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels",
"def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n Crrw.append(UXqs.name)\n return Crrw",
"def Crrw():\n return list(uzmd)",
"def Te1x(YKHO):\n return YKHO._labels",
... | [
"0.87947524",
"0.8721334",
"0.87009114",
"0.8549401",
"0.84874976",
"0.84721667",
"0.84680307",
"0.8463209",
"0.8439271",
"0.8439271",
"0.8439271",
"0.8439271",
"0.8439271",
"0.8411153",
"0.83842695",
"0.8367551",
"0.8367177",
"0.8326207",
"0.8326207",
"0.82673573",
"0.826735... | 0.7893628 | 50 |
Reads a tab separated value file. | def sYUC(Emd4, eZ_W, jaFg=None):
with ZylS.gfile.Open(eZ_W, 'r') as eHNT:
N5Pj = m6_J.reader(eHNT, delimiter='\t', quotechar=jaFg)
Nqlg = []
for zFiD in N5Pj:
Nqlg.append(zFiD)
return Nqlg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zHv1(pmON):\n with open(pmON, 'r') as eHNT:\n return list(m6_J.DictReader(eHNT, delimiter='\\t'))",
"def sYUC(Emd4, eZ_W, jaFg=None):\n return _rvh(eZ_W)",
"def iboE(YKHO):\n rsAY = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]\n O4Hj = '1\\t2\\t3\\n4\\t5\\t6\\n7\\t8\\t9'\n pmON... | [
"0.70737004",
"0.7028278",
"0.68697673",
"0.6847422",
"0.6838464",
"0.6838464",
"0.6838464",
"0.6838464",
"0.68270725",
"0.6795045",
"0.6789502",
"0.67819524",
"0.6755904",
"0.6752967",
"0.6729939",
"0.67247856",
"0.6711635",
"0.6710559",
"0.6704641",
"0.6704641",
"0.6696843"... | 0.6821829 | 9 |
Returns indices used for tf.gather_nd or tf.scatter_nd. | def TK9K(_0VL):
_0VL.get_shape().assert_has_rank(2)
MWN_ = ZylS.ones_like(_0VL) * ZylS.expand_dims(ZylS.range(ZylS.shape(input=_0VL)[0]), 1)
return ZylS.stack([MWN_, _0VL], axis=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rRyh(YKHO, ROpF):\n KCHu = ROpF\n kvqa = ZylS.shape(KCHu)\n mOYi = kvqa - 1\n obHv = kvqa - 2\n kl2R = ZylS.concat(0, [KCHu, ZylS.constant([1])])\n V8vG = ZylS.ones(obHv - 1, dtype='int32')\n xnRw = ZylS.ones(mOYi - 1, dtype='int32')\n qQO_ = ZylS.concat(0, [V8vG, ZylS.constant([-1]), Z... | [
"0.71397907",
"0.68789226",
"0.685708",
"0.68502516",
"0.68292904",
"0.68292904",
"0.6819066",
"0.6768748",
"0.67542034",
"0.6736759",
"0.6711275",
"0.6685086",
"0.66797215",
"0.6629541",
"0.66274595",
"0.6615083",
"0.6573279",
"0.6539977",
"0.65191346",
"0.6496416",
"0.64899... | 0.6798457 | 7 |
Returns a boolean `Tensor` for label validity. | def Y1_Z(Crrw):
Crrw = ZylS.convert_to_tensor(value=Crrw)
return ZylS.greater_equal(Crrw, 0.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y1_Z(Crrw):\n Crrw = ZylS.convert_to_tensor(value=Crrw)\n return ZylS.greater_equal(Crrw, 0.0)",
"def Y1_Z(Crrw):\n Crrw = ZylS.convert_to_tensor(value=Crrw)\n return ZylS.greater_equal(Crrw, 0.0)",
"def Trm8(Crrw):\n Crrw = IPme.convert_to_tensor(Crrw)\n return qkSJ.greater_equal(Crrw, 0... | [
"0.7582478",
"0.7582478",
"0.70770735",
"0.6654432",
"0.65968835",
"0.6305848",
"0.59811985",
"0.594045",
"0.58886504",
"0.5800201",
"0.5610312",
"0.5601089",
"0.55657697",
"0.556189",
"0.5558772",
"0.5558772",
"0.5558772",
"0.55541027",
"0.5538926",
"0.55349",
"0.5526594",
... | 0.77202034 | 0 |
Returns an int `Tensor` as the ranks (1based) after sorting scores. | def LpJU(cCrA, OGtt=True, yokr=None):
with ZylS.name_scope(name='sorted_ranks'):
Ep8u, sL7f = ZylS.unstack(ZylS.shape(cCrA))
FBNX = ZylS.tile(ZylS.expand_dims(ZylS.range(sL7f), 0), [Ep8u, 1])
PAsw = tGgw(cCrA, [FBNX], shuffle_ties=OGtt, seed=yokr)[0]
HRrY = ZylS.argsort(PAsw) + 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qA0O(cCrA):\n HRrY = oyIN.zeros(len(cCrA))\n jbXL = [(cCrA[YRbF], YRbF) for YRbF in range(len(cCrA))]\n jbXL.sort(key=lambda WKvO: WKvO[0], reverse=True)\n fdMZ, exwG, YRbF = (1, 1, 0)\n while YRbF < len(cCrA):\n r845 = YRbF\n while r845 < len(cCrA) - 1 and jbXL[r845][0] == jbXL[r8... | [
"0.7507013",
"0.7507013",
"0.7329061",
"0.73072606",
"0.7292459",
"0.7289642",
"0.7247021",
"0.7211209",
"0.71726847",
"0.71681875",
"0.71434313",
"0.7135835",
"0.7133712",
"0.7133712",
"0.7037324",
"0.70236707",
"0.7016358",
"0.6993755",
"0.6993755",
"0.6956868",
"0.6908392"... | 0.7300918 | 4 |
Converts the given `tensor` to a 2D `Tensor`. | def b7l5(vhpA):
with ZylS.compat.v1.name_scope(name='reshape_to_2d'):
fdMZ = vhpA.shape.rank if vhpA.shape is not None else None
if fdMZ is not None and fdMZ != 2:
if fdMZ >= 3:
vhpA = ZylS.reshape(vhpA, ZylS.shape(input=vhpA)[0:2])
else:
while... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ca86(vhpA):\n return vhpA.reshape(vhpA.shape[0], vhpA.shape[1] * vhpA.shape[2])",
"def b7l5(vhpA):\n with ZylS.compat.v1.name_scope(name='reshape_to_2d'):\n fdMZ = vhpA.shape.rank if vhpA.shape is not None else None\n if fdMZ is not None and fdMZ != 2:\n if fdMZ >= 3:\n ... | [
"0.7845807",
"0.78428304",
"0.78428304",
"0.6880755",
"0.676396",
"0.676396",
"0.67565614",
"0.67375916",
"0.6651624",
"0.6586217",
"0.65830827",
"0.65824574",
"0.6534022",
"0.65159684",
"0.6504538",
"0.6504219",
"0.6489428",
"0.64732367",
"0.64732367",
"0.64732367",
"0.64732... | 0.7823088 | 3 |
Reshapes the first n dims of the input `tensor` to `new shape`. | def T3Jg(vhpA, J_hu, EZd9):
assert vhpA.get_shape().ndims is None or vhpA.get_shape().ndims >= J_hu, 'Tensor shape is less than {} dims.'.format(J_hu)
EZd9 = ZylS.concat([EZd9, ZylS.shape(input=vhpA)[J_hu:]], 0)
if isinstance(vhpA, ZylS.SparseTensor):
return ZylS.sparse.reshape(vhpA, EZd9)
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VjTS(WKvO, exwG):\n OOcW = ihqc(WKvO)\n r8hN = OOcW[-1]\n if isinstance(r8hN, int) and isinstance(exwG, int):\n assert r8hN % exwG == 0\n return ZylS.reshape(WKvO, OOcW[:-1] + [int(exwG), int(r8hN // exwG)])",
"def VjTS(WKvO, exwG):\n OOcW = ihqc(WKvO)\n r8hN = OOcW[-1]\n if isins... | [
"0.7313853",
"0.73087025",
"0.73087025",
"0.71438015",
"0.70586944",
"0.6989005",
"0.69882387",
"0.6979929",
"0.6979929",
"0.6955633",
"0.68612725",
"0.68104446",
"0.67600656",
"0.67201394",
"0.6667222",
"0.6667218",
"0.6667218",
"0.6601078",
"0.6599702",
"0.6561982",
"0.6537... | 0.66886973 | 14 |
Return an instance of `argparse.ArgumentParser` used to process this tool's commandline arguments. | def z0ba(YKHO, **B2fa):
import argparse
VqfF = argparse.ArgumentParser(prog=B2fa['argv0'], description=YKHO.summary)
return VqfF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xuJu():\n return j1Jz.ArgumentParser()",
"def x_K3():\n return j1Jz.ArgumentParser(formatter_class=j1Jz.RawDescriptionHelpFormatter, description=uOCC, epilog=BLVq)",
"def xuJu(YKHO):\n return YKHO.__argparser",
"def z0ba(YKHO):\n return ugSn.ArgParser(add_help=False)",
"def bB7S():\n wvE... | [
"0.8223811",
"0.79019004",
"0.78107095",
"0.7726374",
"0.7693451",
"0.7685064",
"0.7669009",
"0.76501507",
"0.7577944",
"0.7576879",
"0.75731665",
"0.7527875",
"0.7527875",
"0.7527875",
"0.7527875",
"0.7527875",
"0.7497648",
"0.7474499",
"0.7470377",
"0.7436678",
"0.743412",
... | 0.8219416 | 1 |
Yield each file in the tree under the given directory name. If "suffix" is provided then only files with that suffix will be included. | def OTjp(tk5Y, *, ZI14=None, ZAda=a2Zm):
if ZI14 and (not isinstance(ZI14, str)):
raise ValueError('suffix must be a string')
for Ux0P in ZAda(tk5Y):
if ZI14 and (not Ux0P.endswith(ZI14)):
continue
yield Ux0P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pnxB(ZI14, NLQl=[]):\n yvT9 = []\n d7YE = Hy7s.walk('.')\n for pmON, AGPF, RRlC in d7YE:\n for HHWf, eWAE in enumerate(AGPF):\n if eWAE in NLQl:\n del AGPF[HHWf]\n kUBT = filter(lambda WKvO: WKvO.endswith(ZI14), RRlC)\n if kUBT:\n yvT9.append((... | [
"0.7115637",
"0.7102703",
"0.70219123",
"0.70178163",
"0.7004747",
"0.69200844",
"0.68733424",
"0.68591243",
"0.68528354",
"0.6834463",
"0.6805972",
"0.6784891",
"0.67848516",
"0.67550856",
"0.67533684",
"0.66799456",
"0.6676263",
"0.6676263",
"0.665952",
"0.66483724",
"0.664... | 0.7428397 | 0 |
Yield each file in the tree under the given directory name. If "suffix" is provided then only files with that suffix will be included. | def OJkx(tk5Y, *, ZI14=None, YhjU=SC2F.iglob, a_4o=SC2F.escape, LIzS=Hy7s.path.join):
ZI14 = ZI14 or ''
if not isinstance(ZI14, str):
raise ValueError('suffix must be a string')
for Ux0P in YhjU(LIzS(a_4o(tk5Y), f'*{ZI14}')):
yield Ux0P
for Ux0P in YhjU(LIzS(a_4o(tk5Y), f'**/*{ZI14}')):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTjp(tk5Y, *, ZI14=None, ZAda=a2Zm):\n if ZI14 and (not isinstance(ZI14, str)):\n raise ValueError('suffix must be a string')\n for Ux0P in ZAda(tk5Y):\n if ZI14 and (not Ux0P.endswith(ZI14)):\n continue\n yield Ux0P",
"def pnxB(ZI14, NLQl=[]):\n yvT9 = []\n d7YE =... | [
"0.74269176",
"0.71154296",
"0.7103591",
"0.7021405",
"0.7017507",
"0.70032454",
"0.6918957",
"0.68709207",
"0.68584824",
"0.68341947",
"0.6805786",
"0.6785009",
"0.6784555",
"0.675496",
"0.6751671",
"0.6679569",
"0.6676134",
"0.6676134",
"0.6659184",
"0.66477805",
"0.6645641... | 0.68528265 | 9 |
Create a new infix operator like '<', '+', etc. | def ynz_(mWFP, khtY):
def pOv4(*qIxc):
return RWHh(khtY, *qIxc)
pOv4.__doc__ = str('The operator %s' % khtY)
pOv4.__name__ = str(mWFP)
return pOv4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jwtf(YKHO, LFlW, khtY):\n YKHO.match(khtY)\n _tIi = YKHO.expression()\n return QRFO.InfixExpr(LFlW, khtY, _tIi)",
"def Jwtf(Emd4, o61b, vI3f=0):\n\n def NG7L(YKHO, LFlW):\n YKHO[:] = (LFlW, YKHO.parser.expression(rbp=vI3f))\n return YKHO\n return Emd4.register(o61b, label='operat... | [
"0.7375891",
"0.7279976",
"0.72077537",
"0.7081499",
"0.69324607",
"0.69324607",
"0.6683118",
"0.6489402",
"0.64684093",
"0.6458759",
"0.64098674",
"0.6356588",
"0.6355891",
"0.63541794",
"0.6342121",
"0.62960774",
"0.62935376",
"0.62594426",
"0.6240848",
"0.6219855",
"0.6208... | 0.7361173 | 1 |
Wrap the argument in single quotes. Useful for AFL operators which expected quoted strings | def NCC9(YKHO, wEf2):
return "'%s'" % wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QfQT(KCHu):\n return '\"{}\"'.format(str(KCHu).replace('\"', '\\\\\"'))",
"def mB2Y(d7pR):\n d7pR = str(d7pR)\n if ' ' in d7pR or '\"' in d7pR:\n return '\"' + d7pR.replace('\"', '\"\"') + '\"'\n return d7pR",
"def uHR0(d7pR):\n if gnPz._HADOOP_SAFE_ARG_RE.match(d7pR):\n return... | [
"0.76398987",
"0.7450844",
"0.7435426",
"0.72878355",
"0.69248664",
"0.69030505",
"0.6892907",
"0.6837333",
"0.6834532",
"0.6831075",
"0.6802912",
"0.6785665",
"0.6744474",
"0.6733955",
"0.6694456",
"0.6668065",
"0.6641777",
"0.66285396",
"0.6603396",
"0.6597695",
"0.65866023... | 0.705559 | 4 |
Creates a keras model based on the Functional API | def LQs7(YKHO):
vHnr = ZylS.keras.Input(shape=(YKHO._inputs,))
WKvO = fhcK.Dense(YKHO._hiddens, activation=YKHO._activation)(vHnr)
WKvO = fhcK.Dropout(0.5)(WKvO)
WKvO = fhcK.Dense(YKHO._hiddens, activation=YKHO._activation)(WKvO)
RLZ8 = fhcK.Dense(YKHO._outputs, activation='softmax')(WKvO)
QZvD ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fkCJ(YKHO) -> ZylS.keras.Model:\n pass",
"def uKFF():\n fhcK = ZylS.keras.layers\n vHnr = fhcK.Input(shape=(32, 32, 3))\n Ty9i = fhcK.Conv2D(filters=32, kernel_size=5, activation='relu', padding='same')(vHnr)\n Ty9i = fhcK.MaxPool2D(pool_size=2, name='maxPool1')(Ty9i)\n Ty9i = fhcK.Conv2D(f... | [
"0.8240321",
"0.8110221",
"0.7907926",
"0.7857613",
"0.77625376",
"0.7743087",
"0.7705251",
"0.76895344",
"0.7674757",
"0.76278543",
"0.7587872",
"0.75357157",
"0.75346875",
"0.75247586",
"0.7516417",
"0.7491676",
"0.7482029",
"0.74795735",
"0.74690884",
"0.7463811",
"0.74380... | 0.7462878 | 20 |
Simply flattens and normalises raw data as per sensor max/mins | def Zi4e(WPdU, xuug=False):
BSPk = SSR_.raw_normalise(WPdU)
if xuug:
BSPk = lHli(BSPk, axis=0)
return BSPk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, m6Me: Dataset) -> x3i3:\n Csk6 = x3i3()\n Csk6.values = (m6Me.values - YKHO.mins) / (YKHO.maxs - YKHO.mins)\n return Csk6",
"def kwsU(YKHO, nPrm):\n SUNP = {}\n for FMwV, L2MH in nPrm.items():\n SUNP[FMwV] = {}\n for n2fR, oB5g in L2MH.items():\n for XtFw in... | [
"0.70678896",
"0.70174897",
"0.6998172",
"0.6839566",
"0.68326545",
"0.6644385",
"0.6533191",
"0.64984894",
"0.6486759",
"0.64852583",
"0.645727",
"0.6433712",
"0.6404584",
"0.6373067",
"0.63687843",
"0.635384",
"0.63405645",
"0.63250023",
"0.6323882",
"0.6303286",
"0.6300620... | 0.0 | -1 |
Creates a convolution block | def mQG_(vC8u, nrLm, YDYE='relu', *qIxc, **B2fa):
YoQM = U78l.ModuleDict([['relu', U78l.ReLU()], ['lrelu', U78l.LeakyReLU(0.1)]])
return U78l.Sequential(U78l.Conv2d(vC8u, nrLm, *qIxc, **B2fa), U78l.InstanceNorm2d(nrLm), YoQM[YDYE], U78l.Conv2d(nrLm, nrLm, *qIxc, **B2fa), U78l.InstanceNorm2d(nrLm), YoQM[YDYE]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZ5u(YKHO, XLMv):\n KUnM = int(YKHO.parser[XLMv]['filters'])\n Ot1W = int(YKHO.parser[XLMv]['size'])\n _0fC = int(YKHO.parser[XLMv]['stride'])\n YDYE = YKHO.parser[XLMv].get('activation')\n return yHwh(KUnM, Ot1W, _0fC, activation=YDYE, kernel_initializer=YKHO.get_initializer(XLMv))",
"def mQG... | [
"0.7644535",
"0.7609772",
"0.73928505",
"0.7390139",
"0.7372182",
"0.7364842",
"0.7355799",
"0.7355799",
"0.7355799",
"0.7342142",
"0.73216283",
"0.7258199",
"0.7249056",
"0.7244789",
"0.7238176",
"0.72159207",
"0.72112113",
"0.7192626",
"0.7174033",
"0.7171459",
"0.7165207",... | 0.0 | -1 |
Applies one hot encoding for the specified column in a dataframe | def KLLm(bOBl, fvDH):
return rLdf.get_dummies(bOBl, columns=[fvDH]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RHxJ(jQ3Z, iVRZ):\n BnAQ = rLdf.get_dummies(jQ3Z[iVRZ])\n jQ3Z = rLdf.concat((jQ3Z, BnAQ), axis=1)\n jQ3Z.drop([iVRZ], axis=1, inplace=True)\n return jQ3Z",
"def zGX0(jQ3Z):\n jQ3Z = rLdf.get_dummies(jQ3Z, drop_first=True)\n return jQ3Z",
"def NYF0(jQ3Z, crGi):\n jQ3Z = rLdf.get_dummie... | [
"0.8537365",
"0.84218025",
"0.8208861",
"0.8128558",
"0.8066414",
"0.8064507",
"0.8014719",
"0.79829377",
"0.78732646",
"0.786211",
"0.78384155",
"0.78126365",
"0.7781973",
"0.77651507",
"0.7764218",
"0.7734796",
"0.77057993",
"0.76608574",
"0.7639765",
"0.75291103",
"0.74983... | 0.85273254 | 1 |
Add a new identity. An exception will be thrown if the identity already exists. | def vW8M(YKHO, ERtX):
xh15 = ERtX.toUri()
if YKHO.doesIdentityExist(ERtX):
raise DtSp('The identity {} already exists'.format(xh15))
N1p7 = YKHO._database.cursor()
N1p7.execute('INSERT INTO Identity(identity_name) VALUES(?)', (xh15,))
YKHO._database.commit()
N1p7.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ftPp(YKHO):\n _E99 = nNXP.add_identity(YKHO.ctx, 'scm', name='John Smith', email='jsmith@example.com', username='jsmith')\n YKHO.assertEqual(_E99.uuid, 'a9b403e150dd4af8953a52a4bb841051e4b705d9')\n YKHO.assertEqual(_E99.name, 'John Smith')\n YKHO.assertEqual(_E99.email, 'jsmith@example.com')\n Y... | [
"0.71825504",
"0.7102708",
"0.705312",
"0.6891115",
"0.67956465",
"0.651803",
"0.63695824",
"0.62817436",
"0.62812877",
"0.6139015",
"0.6115771",
"0.60775393",
"0.5849312",
"0.5849312",
"0.5767885",
"0.5728471",
"0.5653523",
"0.5651129",
"0.564045",
"0.56321806",
"0.56321806"... | 0.8008923 | 0 |
Returns the project the Machine Provider topic is contained in. | def lBK_():
return k5i4.get_application_id() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fYye():\n return 'machine-provider'",
"def qtpq(YKHO) -> str:\n return qe4Y.get(YKHO, 'delegatee_project')",
"def bNKA(YKHO):\n return capf.cli.command.get_project(YKHO.home)",
"def bNKA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'project')",
"def cBOi():\n Aofo = cc46('gcloud config li... | [
"0.70022696",
"0.6715457",
"0.6653844",
"0.6612071",
"0.6596513",
"0.6585436",
"0.65591705",
"0.65591705",
"0.6551016",
"0.65275085",
"0.65105015",
"0.646225",
"0.6451226",
"0.6451226",
"0.6451226",
"0.6451226",
"0.6451226",
"0.6451226",
"0.6451226",
"0.6451226",
"0.6451226",... | 0.86355764 | 0 |
THis is the method to read the train and test jsonl files into pandas dataframe | def CCSX(VqRE, T8lC, AYzc, ezEc):
S06t = []
with open(VqRE, 'r') as wM3v:
Z2eN = list(wM3v)
for nMY2 in Z2eN:
S06t.append(qQXR.loads(nMY2))
jQ3Z = rLdf.DataFrame(S06t, columns=(T8lC, AYzc, ezEc))
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dy2X(YKHO):\n with open(YKHO.dao.getDBName()) as baVX:\n JQ7f = qQXR.load(baVX)\n EvQg = rLdf.DataFrame.from_dict(JQ7f)\n print(EvQg.head())\n print(EvQg.tail())\n print(len(EvQg))\n print(EvQg[0])",
"def CxJK(pmON: str):\n jQ3Z = rLdf.read_json(pmON, lines=True)\n jQ3Z['verifi... | [
"0.70401347",
"0.6986061",
"0.6897798",
"0.6870293",
"0.68207216",
"0.67351794",
"0.66528285",
"0.6626802",
"0.65490764",
"0.6531129",
"0.65207183",
"0.64888304",
"0.6469025",
"0.6427395",
"0.6395172",
"0.6362825",
"0.6317806",
"0.6310147",
"0.6291781",
"0.62810105",
"0.62752... | 0.7358098 | 0 |
Push element x to the back of queue. | def jvNa(YKHO, WKvO):
YKHO.s1.push(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)",
"def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()",
"def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)... | [
"0.8627964",
"0.847768",
"0.8414127",
"0.827978",
"0.8259876",
"0.82024014",
"0.81944746",
"0.81445456",
"0.81445456",
"0.81041193",
"0.81004506",
"0.80947775",
"0.805236",
"0.805236",
"0.8037114",
"0.8033887",
"0.79936236",
"0.79584146",
"0.7948628",
"0.7944436",
"0.7899758"... | 0.7325727 | 56 |
Removes the element from in front of queue and returns that element. | def he0F(YKHO):
if YKHO.isEmpty():
return -1
if not YKHO.s2.isEmpty():
_pUq = YKHO.s2.peek()
YKHO.s2.pop()
return _pUq
while not YKHO.s1.isEmpty():
YKHO.s2.push(YKHO.s1.pop())
_pUq = YKHO.s2.peek()
YKHO.s2.pop()
return _pUq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()",
"def BEuN(YKHO):\n if len(... | [
"0.85551554",
"0.8329033",
"0.81396025",
"0.8034647",
"0.7920082",
"0.78877354",
"0.7881368",
"0.7801471",
"0.7797974",
"0.7746667",
"0.7713724",
"0.77104443",
"0.7699884",
"0.76672",
"0.76628053",
"0.76613814",
"0.7645703",
"0.76435876",
"0.7639313",
"0.7635074",
"0.7621596"... | 0.0 | -1 |
Get the front element. | def T7C_(YKHO):
if not YKHO.s2.isEmpty():
return YKHO.s2.peek()
while not YKHO.s1.isEmpty():
YKHO.s2.push(YKHO.s1.pop())
return YKHO.s2.peek() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnzS(YKHO):\n return YKHO.frontelem.elem",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]",
"def TA6u(YKHO):\n return YKHO.storage[0]",
"def VnzS(YKHO):\n return YKHO.head",
"def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]",
"def qnv... | [
"0.87835056",
"0.83788836",
"0.82574433",
"0.80897844",
"0.8012526",
"0.7981897",
"0.786668",
"0.783555",
"0.7815892",
"0.77942365",
"0.7735508",
"0.769147",
"0.76801795",
"0.76465446",
"0.7630563",
"0.75877416",
"0.7572392",
"0.75053453",
"0.74844474",
"0.74813557",
"0.74660... | 0.0 | -1 |