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 |
|---|---|---|---|---|---|---|
Return the schedule associated with this run | def b6Gq(YKHO) -> FWyI:
return YKHO._schedule | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b6Gq(YKHO):\n return YKHO._schedule",
"def b6Gq(YKHO):\n return YKHO._schedule",
"def b6Gq(YKHO):\n return YKHO._schedule",
"def b6Gq(YKHO):\n return YKHO._schedule",
"def b6Gq(YKHO) -> qe4Y.Output['outputs.CanarySchedule']:\n return qe4Y.get(YKHO, 'schedule')",
"def b6Gq(YKHO) -> qe4Y... | [
"0.85879856",
"0.85879856",
"0.85879856",
"0.85879856",
"0.81250626",
"0.79036",
"0.79036",
"0.78751695",
"0.78631914",
"0.78309214",
"0.78309214",
"0.7810222",
"0.7781217",
"0.7740754",
"0.7740754",
"0.7740754",
"0.77011305",
"0.7670172",
"0.76445645",
"0.76210004",
"0.74915... | 0.7948061 | 5 |
Return the start time for this sequence | def SWox(YKHO) -> qcWV:
return YKHO._start_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO) -> ITS7:\n return YKHO._starttime",
"def jSV8(YKHO):\n return YKHO.start",
"def jSV8(YKHO):\n return YKHO.start_time",
"def jSV8(YKHO):\n return YKHO.start_time",
"def jSV8(YKHO):\n return YKHO.__start_time",
"def jSV8(YKHO):\n return YKHO.__start_time",
"def jSV8(YKHO)... | [
"0.8524865",
"0.84540635",
"0.8410707",
"0.8394961",
"0.8377628",
"0.8377628",
"0.8365251",
"0.8365251",
"0.83384544",
"0.8331215",
"0.8322174",
"0.83146226",
"0.83146226",
"0.83146226",
"0.83146226",
"0.83146226",
"0.83146226",
"0.83146226",
"0.83146226",
"0.83146226",
"0.83... | 0.8143173 | 57 |
Return the end time for this sequence | def C7pn(YKHO) -> qcWV:
return YKHO._end_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7pn(YKHO) -> ITS7:\n return YKHO._endtime",
"def wirM(YKHO):\n return YKHO.end",
"def C7pn(YKHO):\n return YKHO.inits[-1] + YKHO.durations[-1]",
"def IElX(YKHO):\n return YKHO.end",
"def C7pn(YKHO):\n return YKHO.time_range()[1]",
"def C7pn(YKHO):\n return YKHO.__end_time",
"def ... | [
"0.8635513",
"0.8604974",
"0.85409796",
"0.8518327",
"0.8509539",
"0.84309703",
"0.8427238",
"0.8427238",
"0.8413197",
"0.84071326",
"0.8403596",
"0.8393093",
"0.8393093",
"0.8393093",
"0.8385227",
"0.8385227",
"0.8385227",
"0.8385227",
"0.8385227",
"0.8385227",
"0.8376048",
... | 0.82392246 | 32 |
Return the HA unique_id for the controller entity | def ShR8(YKHO) -> str:
return f'c{YKHO.index + 1}_m' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._controller.unique_id",
"def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')",
"def ShR8(YKHO):\n return YKHO._carson_entity.unique_entity_id",
"def ShR8(YKHO):\n return YKHO.controller.connection.address",
"def VtE3(YKHO):\n return YKHO.controlle... | [
"0.8215173",
"0.78424394",
"0.748826",
"0.74537104",
"0.74532604",
"0.7386621",
"0.7358984",
"0.730003",
"0.7232681",
"0.712114",
"0.70695305",
"0.70647913",
"0.705596",
"0.70457375",
"0.7022059",
"0.70202005",
"0.70075685",
"0.69924253",
"0.6980634",
"0.6969064",
"0.694517",... | 0.0 | -1 |
Return if the controller is on or off | def Debg(YKHO) -> bool:
return YKHO._is_on | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debg(YKHO):\n return YKHO._controller.is_on",
"def Debg(YKHO) -> bool:\n return YKHO._device.status.switch",
"def Debg(YKHO) -> bool:\n return YKHO.get_str_attr('switch') == 'on'",
"def Debg(YKHO):\n return YKHO.device['status']['state']",
"def Debg(YKHO):\n return YKHO.device.state",
... | [
"0.8274124",
"0.7804271",
"0.7776821",
"0.776883",
"0.7734729",
"0.7734729",
"0.7729979",
"0.7675068",
"0.76217675",
"0.7585846",
"0.7578056",
"0.75620717",
"0.7557915",
"0.7557915",
"0.7528148",
"0.74752927",
"0.7472529",
"0.7472529",
"0.74646574",
"0.7432093",
"0.741884",
... | 0.0 | -1 |
Return the preamble time for the controller | def uK8v(YKHO) -> fCoM:
return YKHO._preamble | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7L9(YKHO):\n if YKHO.cyclic is not True:\n YKHO.read_packages_acyclic()\n ITS7 = -1\n if YKHO.data[1]['value'] is not None:\n ITS7 = BlNT.unpack('!d', YKHO.data[1]['value'])\n return ITS7",
"def R4lU(YKHO):\n pass",
"def SWox(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_tim... | [
"0.6939089",
"0.6800877",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.6776693",
"0.67751265",
... | 0.7522423 | 0 |
Return this controller as a dict | def _fYl(YKHO) -> U8Lr:
Aofo = U8Lr()
Aofo[VDl0] = YKHO._index
Aofo[BiEj] = YKHO._name
Aofo[U34z] = YKHO._controller_id
Aofo[cxcB] = YKHO.entity_base
Aofo[pv0n] = _rDc if YKHO.is_on else iKVK
Aofo[Wu3A] = YKHO._is_enabled
Aofo[UB5x] = YKHO.icon
Aofo[M0Wj] = YKHO.status
Aofo[dItt]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HuUB(YKHO):\n yvT9 = YKHO.__controller_management('info')\n return WrwJ(yvT9)",
"def o1U6(YKHO):\n if not YKHO.verify_token():\n return ('{}', 403)\n gtI8 = YKHO.database.get_setting('controllers') or []\n return qQXR.dumps(gtI8)",
"def NMoC(YKHO):\n return {}",
"def NMoC(YKHO):\... | [
"0.74467057",
"0.7083396",
"0.6938065",
"0.69240755",
"0.6904877",
"0.6769543",
"0.67634255",
"0.6761753",
"0.6761753",
"0.6761753",
"0.6761753",
"0.6761753",
"0.6761753",
"0.6761753",
"0.6761753",
"0.6761753",
"0.6761753",
"0.67600113",
"0.6753443",
"0.67219985",
"0.67064774... | 0.0 | -1 |
Return a list of sequences and their next start times filtered | def JCkH(YKHO) -> cuzp[iV9U, QXUI]:
hUoD = YKHO._coordinator.service_time()
jWe2: cuzp[iV9U, QXUI] = {}
for iXC1 in YKHO.sequence_runs():
if iXC1.is_expired(hUoD):
continue
mvm2 = jWe2.get(iXC1.sequence)
if mvm2 is None or iXC1.start_time < mvm2.start_time:
jW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y4Q0(zoWS):\n for Csk6 in zoWS:\n if 't2' in Csk6 and 't0' in Csk6:\n yield (Csk6['t0'], Csk6['t2'] - Csk6['t0'])",
"def dtfJ(Q6uT):\n return None",
"def dPU4(SWox):\n while True:\n yield ('[' + str(qcWV.datetime.now() - SWox) + ']')",
"def dPU4(SWox):\n while True:\n... | [
"0.65956926",
"0.6506082",
"0.61087054",
"0.61087054",
"0.59713066",
"0.5907625",
"0.586401",
"0.5846681",
"0.58077806",
"0.57563704",
"0.57252574",
"0.570907",
"0.57071364",
"0.5683498",
"0.5649788",
"0.5637868",
"0.55894554",
"0.5545217",
"0.5524118",
"0.5518303",
"0.551750... | 0.5691259 | 13 |
Return the state property | def QTBn(YKHO) -> bool:
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6... | [
"0.8581127",
"0.85557145",
"0.8389525",
"0.8389525",
"0.8389525",
"0.8389525",
"0.8389525",
"0.8389525",
"0.8389525",
"0.8382048",
"0.8372947",
"0.8258699",
"0.8258699",
"0.8258699",
"0.8258699",
"0.8258699",
"0.8258699",
"0.8256969",
"0.8239618",
"0.82344514",
"0.81936765",
... | 0.0 | -1 |
Return this object as a dict | def _fYl(YKHO) -> dict:
return {'t': YKHO._time, 'c': YKHO._controller, 'z': YKHO._zone, 's': YKHO._state} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hati(YKHO):\n return dict(YKHO)",
"def _fYl(YKHO):\n return dict(YKHO)",
"def MNRr(YKHO):\n return dict(YKHO)",
"def Napc(YKHO):\n return dict(YKHO.__dict__)",
"def lKKu(YKHO):\n return lKKu(YKHO)",
"def _fYl(YKHO):\n return YKHO.__dict__",
"def _fYl(YKHO):\n return YKHO.__dict... | [
"0.8895626",
"0.8810108",
"0.8680399",
"0.862316",
"0.86189187",
"0.86150026",
"0.86150026",
"0.86150026",
"0.8602566",
"0.85557055",
"0.85243905",
"0.85243905",
"0.85243905",
"0.85243905",
"0.85243905",
"0.85243905",
"0.85243905",
"0.85243905",
"0.85243905",
"0.85243905",
"0... | 0.0 | -1 |
Return the start time for this test | def yKcO(YKHO) -> qcWV:
return YKHO._start | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4lU(YKHO):\n return YKHO.start",
"def jSV8(YKHO):\n return YKHO.start",
"def SWox(YKHO) -> ITS7:\n return YKHO._starttime",
"def jSV8(YKHO):\n raise NotImplementedError",
"def jSV8(YKHO):\n raise NotImplementedError",
"def jSV8(YKHO):\n return YKHO.start_time",
"def SWox(YKHO) ->... | [
"0.8508723",
"0.8479164",
"0.84614897",
"0.8423376",
"0.8423376",
"0.8379108",
"0.83749264",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"0.83713466",
"... | 0.0 | -1 |
Return the end time for this test | def Os4s(YKHO) -> qcWV:
return YKHO._end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IElX(YKHO):\n return YKHO.end",
"def NgWO(YKHO):\n return YKHO.endtime",
"def wirM(YKHO):\n raise NotImplementedError",
"def wirM(YKHO):\n return YKHO.end",
"def wirM(YKHO):\n return YKHO.end_time",
"def C7pn(YKHO) -> ITS7:\n return YKHO._endtime",
"def wirM(YKHO):\n return YKH... | [
"0.84768045",
"0.84485346",
"0.8444582",
"0.8421078",
"0.8383379",
"0.8370328",
"0.83555394",
"0.83488256",
"0.83407634",
"0.83146846",
"0.83146846",
"0.8285905",
"0.8273033",
"0.8273033",
"0.8273033",
"0.8273033",
"0.8273033",
"0.8273033",
"0.82378685",
"0.82378685",
"0.8237... | 0.0 | -1 |
Return the logger object | def bo34(YKHO) -> zqBI:
return YKHO._logger | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bo34():\n return bo34",
"def bo34():\n return I45O",
"def fZx2():\n return bo34",
"def fZx2():\n return S0MI",
"def RKD7(YKHO):\n return bo34",
"def fZx2(YKHO):\n pass",
"def fZx2():\n return vzeF",
"def WmBn(YKHO):\n return YKHO.__logger",
"def fZx2(YKHO):\n return Y... | [
"0.89682186",
"0.8870348",
"0.8827328",
"0.8620864",
"0.8585314",
"0.8500412",
"0.84634185",
"0.84212834",
"0.8368632",
"0.8368632",
"0.8363111",
"0.8358264",
"0.8346624",
"0.83307886",
"0.83053535",
"0.8302426",
"0.82954705",
"0.82954705",
"0.82954705",
"0.8251533",
"0.82449... | 0.82262784 | 21 |
Return the state attributes. | def TzCU(YKHO):
if not YKHO._trips:
return
if YKHO._trips[0].trip_parts:
PsCT = [YKHO._trips[0].departure]
for G1Hx in YKHO._trips[0].trip_parts:
PsCT.append(G1Hx.destination)
azoT = {'going': YKHO._trips[0].going, 'departure_time_planned': None, 'departure_time_actual': ... | {
"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.8335189",
"0.8335189",
"0.8335189",
"0... | 0.0 | -1 |
Decodes encoded JWT token by using extension setting and validates token type | def VUor(eOtH):
D4IB = uPlZ(encoded_token=eOtH, secret=wk5E.config['JWT_SECRET_KEY'], algorithm='HS256')
return D4IB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yXnH(qv1X, ihSY):\n return DvJO.decode(ihSY, qv1X.settings.get('giriasecret', 'galado'))",
"def CVVO(eOtH, DXni, E91_):\n nPrm = DvJO.decode(eOtH, DXni, algorithm=E91_)\n if 'jti' not in nPrm or not isinstance(nPrm['jti'], jKi7.string_types):\n raise lK2m('Missing or invalid claim: jti')\n ... | [
"0.75087583",
"0.73975724",
"0.7384228",
"0.7186784",
"0.715091",
"0.7116257",
"0.7109656",
"0.7010945",
"0.69920796",
"0.6970531",
"0.6967731",
"0.6960685",
"0.6953904",
"0.6950901",
"0.69421864",
"0.6929896",
"0.6905981",
"0.6905323",
"0.68908805",
"0.6872439",
"0.68656576"... | 0.6043274 | 98 |
Test Schema.to_schema_type method for type Boolean. | def p4B6(YKHO):
uPxI = gkIT.Schema('Boolean')
TkHw = [1, '1', True, 'true', 'True', 'yes', 'Yes']
for Ty9i in TkHw:
Ylbp = uPxI.to_schema_type(Ty9i)
YKHO.assertIsInstance(Ylbp, bool)
YKHO.assertTrue(Ylbp)
kkhE = [0, '0', False, 'false', 'False', 'No', 'no']
for Ty9i in kkhE:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jhNE(bGrB: Any) -> eBH2[qOrJ]:\n return qOrJ",
"def zMOc(Emd4, uPxI):\n return uPxI.startswith('bool')",
"def k3iu():\n QpfX = dFws()\n khtY.add_column('t1', OciN('c1', xpzE, nullable=False), schema='foo')\n QpfX.assert_('ALTER TABLE foo.t1 ADD COLUMN c1 BOOLEAN NOT NULL', 'ALTER TABLE foo.t... | [
"0.68948555",
"0.68889123",
"0.68116343",
"0.67738813",
"0.67406476",
"0.6733445",
"0.6682733",
"0.6654171",
"0.6647021",
"0.6607522",
"0.6591883",
"0.65571856",
"0.6543887",
"0.65142274",
"0.64905435",
"0.6462121",
"0.63727224",
"0.62986296",
"0.62849855",
"0.62808245",
"0.6... | 0.86430836 | 0 |
stops the simulation. deletes all data in the visualization. resets the camera | def SiRx(YKHO):
YKHO._running = False
YKHO._viewer.particle_offset_data = {}
YKHO._viewer.particle_update_flag = True
YKHO._viewer.tile_offset_data = {}
YKHO._viewer.tile_update_flag = True
YKHO._viewer.location_offset_data = {}
YKHO._viewer.location_update_flag = True
YKHO._viewer.updat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W6bZ(YKHO):\n pass",
"def JCyR(YKHO):\n yDvq.close()",
"def JCyR(YKHO):\n YKHO.cambio_x = 0",
"def wmC4(YKHO):\n YKHO.finished.value = True\n if YKHO.p is not None:\n YKHO.p.join()\n YKHO.BP.reset_all()\n YKHO.cam.close()\n XC5k.destroyAllWindows()",
"def JCyR(YKHO):\n ... | [
"0.75297445",
"0.74655765",
"0.7458109",
"0.7264938",
"0.7045097",
"0.70436156",
"0.7013099",
"0.69904435",
"0.6964917",
"0.6915366",
"0.6887867",
"0.68843573",
"0.6866114",
"0.67996204",
"0.6799447",
"0.6793162",
"0.6792448",
"0.67742884",
"0.67648214",
"0.67432106",
"0.6739... | 0.72623396 | 4 |
updates the offset and color data of the location in the visualization. | def AqoC(YKHO, Rci7):
YKHO._viewer.location_update_flag = True
YKHO._viewer.location_offset_data[Rci7] = (Rci7.coordinates, Rci7.color) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r7tU(YKHO, Dbmo, U34r=None):\n qw7D = Dbmo['data']\n Jw9H = YKHO.scalar_map.to_rgba(qw7D.values)\n YKHO._unit = qw7D.unit\n if 'mask' in Dbmo:\n Y6cI = oyIN.where(Dbmo['mask'].values)\n Bait = YKHO.masks_scalar_map.to_rgba(qw7D.values[Y6cI])\n Jw9H[Y6cI] = Bait\n Jw9H[:, 3] ... | [
"0.64982074",
"0.6337932",
"0.6279205",
"0.6273459",
"0.62321645",
"0.6217191",
"0.61502576",
"0.6115894",
"0.6044158",
"0.60226965",
"0.60031",
"0.5997154",
"0.59776986",
"0.5965078",
"0.5947576",
"0.59331024",
"0.5923817",
"0.59047914",
"0.590227",
"0.5879282",
"0.58637565"... | 0.76270646 | 0 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also tell the browser not to cache the rendered page. If we wanted to we could change maxage to 600 seconds which would be 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=0'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def P... | [
"0.8121339",
"0.8121339",
"0.8121339",
"0.8121339",
"0.8121339",
"0.8121339",
"0.8121339",
"0.8121339",
"0.8121339",
"0.8121339",
"0.809507",
"0.80374604",
"0.80374604",
"0.80374604",
"0.8022216",
"0.79490995",
"0.79198635",
"0.7806461",
"0.77723885",
"0.7731667",
"0.7731667"... | 0.7996471 | 23 |
This test creates three artifacts. The middle artifact references the first artifact's file, and the last artifact references the middle artifact's reference. The end result of downloading the last artifact in a fresh, forth run, should be that all 3 artifacts are downloaded and that the file in the last artifact is ac... | def OvH7():
blfj = 'upstream_artifact'
in3q = 'middle_artifact'
vVC4 = 'downstream_artifact'
KcW9 = 'upstream/local/path/'
g8nz = 'upstream/artifact/path/'
mr82 = 'middle/artifact/path/'
PBaD = 'downstream/artifact/path/'
A1Rn = KcW9 + 'file.txt'
U_6P = g8nz + 'file.txt'
GBMk = m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XoF8():\n with M7hG.init(project=VnUg) as iXC1:\n dIeA = M7hG.Artifact('upstream_media', 'database')\n dIeA.add(Kzgf(), 'I1')\n iXC1.log_artifact(dIeA)\n with M7hG.init(project=VnUg) as iXC1:\n dIeA = M7hG.Artifact('downstream_media', 'database')\n LP97 = iXC1.use_artif... | [
"0.6892415",
"0.68707854",
"0.68295765",
"0.6483793",
"0.64443815",
"0.62449694",
"0.6174179",
"0.6142488",
"0.6095803",
"0.60567987",
"0.6041114",
"0.6027078",
"0.59881717",
"0.59748083",
"0.59331083",
"0.5931626",
"0.5928403",
"0.58889234",
"0.5878833",
"0.5868687",
"0.5834... | 0.7200145 | 0 |
Return the query end time reported by the source | def wirM(YKHO) -> str:
return YKHO.end_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Os4s(YKHO):\n return YKHO._query_time.end",
"def C7pn(YKHO):\n return YKHO._result.end_time",
"def wirM(YKHO):\n return YKHO.end_time",
"def NgWO(YKHO):\n return YKHO.endtime",
"def wirM(YKHO):\n return YKHO.end",
"def wirM(YKHO):\n return YKHO.end_time",
"def wirM(YKHO):\n rai... | [
"0.7917277",
"0.7752525",
"0.7682437",
"0.7613646",
"0.7610792",
"0.75678146",
"0.7551565",
"0.7514975",
"0.7482231",
"0.7482231",
"0.7478296",
"0.7478296",
"0.7478296",
"0.7451008",
"0.7419151",
"0.7419151",
"0.7419151",
"0.7419151",
"0.7419151",
"0.7419151",
"0.7418951",
... | 0.7451758 | 13 |
Returns a string representation of this object. | def zAg0(YKHO) -> str:
jeLr = f'{YKHO.__class__.__module__}.{YKHO.__class__.__name__}'
return f'{jeLr}@{id(YKHO)}[new_items: {YKHO.new_items}, updated_items: {YKHO.updated_items}, next_item: {YKHO.next_item}, end_time {YKHO.end_time}]' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Message propagation using node frontiers generated by BFS. | def GbsR(pNZh, JZXy, GVmW, AlHE, gxEw=False, ED_o=None):
assert isinstance(pNZh, tqSG), 'DGLHeteroGraph is merged with DGLGraph, Please use DGLGraph'
assert len(pNZh.canonical_etypes) == 1, 'prop_nodes_bfs only support homogeneous graph'
c4ep = ATAe.bfs_nodes_generator(pNZh.cpu(), JZXy, gxEw)
c4ep = [vu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO, Gmfu):\n return YKHO.propagate(edge_index=Gmfu, size=(WKvO.size(0), WKvO.size(0)), x=WKvO)",
"def i9Xz(YKHO, SiDq: pgl.graph.Graph) -> kDmS.graph.Graph:\n\n def J35G():\n ggYK = CqzP(hidden_size=YKHO._mlp_hidden_size, num_hidden_layers=YKHO._mlp_num_hidden_layers, output_size=YK... | [
"0.6746779",
"0.63631856",
"0.6324135",
"0.62317085",
"0.6200905",
"0.61665857",
"0.6141423",
"0.61257017",
"0.59841144",
"0.59830076",
"0.59681237",
"0.59357375",
"0.59262943",
"0.58742976",
"0.58559084",
"0.58424604",
"0.5782458",
"0.5778874",
"0.577854",
"0.577632",
"0.576... | 0.5314444 | 95 |
Downloads a blob from the bucket. | def DPRZ(l7rj, JC20, AHTG):
ntiA = S8SU.Client()
WE7e = ntiA.get_bucket(l7rj)
vxw0 = WE7e.blob(JC20)
vxw0.download_to_filename(AHTG)
print('Blob {} downloaded to {}.'.format(JC20, AHTG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0",
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)",
"def DPRZ(... | [
"0.81216",
"0.7957541",
"0.77650166",
"0.76453996",
"0.7630873",
"0.7603773",
"0.75344056",
"0.75023687",
"0.7482801",
"0.7474071",
"0.7474071",
"0.7474071",
"0.7458533",
"0.74574214",
"0.74448717",
"0.7425158",
"0.7425142",
"0.740443",
"0.73784876",
"0.7373136",
"0.7370222",... | 0.7534157 | 7 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '[BaseModel] ({}) {}'.format(YKHO.id, YKHO.__dict__)",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wOed(Y... | [
"0.8134815",
"0.7896117",
"0.7551975",
"0.73699284",
"0.73402196",
"0.7335666",
"0.7311286",
"0.73011637",
"0.72905505",
"0.7242906",
"0.72419995",
"0.72191435",
"0.7199848",
"0.7199848",
"0.71561444",
"0.7117234",
"0.7117234",
"0.7117234",
"0.7105009",
"0.7105009",
"0.709816... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.title | {
"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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
String for representing the Model object | def zAg0(YKHO):
return '%s (%s)' % (YKHO.id, YKHO.book.title) | {
"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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.8169026",
"0.8015787",
"0.79665667",
"0.78248763",
"0.7769048",
"0.7715981",
"0.76182216",
"0.7589441",
"0.75218886",
"0.75218886",
"0.75218886",
"0.75083184",
"0.75034547",
"0.74968916",
"0.74968916",
"0.7475592",
"0.74743956",
"0.74732584",
"0.7463823",
"0.7461314",
"0.7... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return '%s, %s' % (YKHO.last_name, YKHO.first_name) | {
"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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
String for representing the MyModelName object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.field_name | {
"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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def... | [
"0.7844742",
"0.76318675",
"0.7434089",
"0.7250016",
"0.7231103",
"0.7230097",
"0.71919906",
"0.71714914",
"0.71714914",
"0.71367884",
"0.71297055",
"0.71086836",
"0.7104096",
"0.7104096",
"0.7104096",
"0.7104096",
"0.7104096",
"0.7104096",
"0.7104096",
"0.7101235",
"0.708476... | 0.0 | -1 |
Preprocesses input data img is an image of shape (height, width, depth) | def b8V_(VXjJ):
VXjJ = Einh(VXjJ)
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G2mu(VXjJ: np.ndarray) -> oyIN.ndarray:\n return VXjJ",
"def biH0(YKHO, VXjJ):\n ydET = [CgcG()] + YKHO.cfg.data.test.pipeline[1:]\n ydET = jeFo(ydET)\n nPrm = dict(img=VXjJ)\n nPrm = ydET(nPrm)\n return nPrm['img'][0]",
"def j9DC(YKHO, VXjJ):\n Yyxh = ZvG6.resize_and_pad(VXjJ, size=(Y... | [
"0.787271",
"0.7607079",
"0.75386506",
"0.74094135",
"0.73993486",
"0.73796636",
"0.73664284",
"0.72300786",
"0.72058654",
"0.71783996",
"0.7145655",
"0.7140454",
"0.7139954",
"0.7124795",
"0.7106362",
"0.7100899",
"0.70785576",
"0.7075267",
"0.7010833",
"0.70014364",
"0.6997... | 0.0 | -1 |
Checks that the urn string follows the correct pattern. | def VALP(ClUo: str) -> str:
if not isinstance(ClUo, str):
raise TypeError('Expected a urn input of string type, got type {}'.format(type(ClUo)))
TUYm = ZbWC.match('^\\d.\\d.\\d$', ClUo)
if TUYm is not None:
ClUo = 'urn:CPHD:{}'.format(ClUo)
TUYm = ZbWC.match('^urn:CPHD:\\d.\\d.\\d$', ClU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wNOy(EFqZ):\n mXDZ = ZbWC.compile('^urn:[a-z-]+:(?:[a-z-]+|\\\\*)$')\n if not mXDZ.match(EFqZ):\n raise rqaQ(f\"Invalid urn: '{EFqZ}'\")",
"def YSUF(qxeD):\n return ZbWC.search('^[-a-f0-9]+$', qxeD, ZbWC.I)",
"def sDSA(YEnM):\n import re\n return re.match('^[\\\\dA-F]{{{0}}}$'.format(... | [
"0.7563162",
"0.6736847",
"0.6306791",
"0.6104965",
"0.61028713",
"0.6044525",
"0.60422075",
"0.6038152",
"0.60076594",
"0.5990838",
"0.5973613",
"0.59735",
"0.5963776",
"0.5930723",
"0.5882838",
"0.5867247",
"0.5848901",
"0.5812986",
"0.58021855",
"0.57914805",
"0.5789669",
... | 0.76989627 | 0 |
Store access token in session. Default authorized handler. | def PFeh(_hkX, y5Cv, *qIxc, **B2fa):
laQZ = wk5E.config['OAUTHCLIENT_REST_REMOTE_APPS'][y5Cv.name]
U59X(y5Cv, _hkX)
NCls.session.commit()
return RkGa(y5Cv, laQZ['authorized_redirect_url']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def handle(YKHO) -> uLKX[str, cuzp[ImMB, ImMB]]:\n eOtH: str = YKHO.data['token']\n dz5c = YWvJ(Qx0w, YKHO.core.modules.auth).auth_manager\n GQl3 = await dz5c.validate_access_token(eOtH)\n if not GQl3:\n return YKHO.error('auth_invalid', 'Invalid token')\n YKHO.session.user = GQl3.user\... | [
"0.6689035",
"0.66886973",
"0.65369195",
"0.64823717",
"0.64443064",
"0.64132595",
"0.6375142",
"0.6343154",
"0.630887",
"0.63019484",
"0.62720144",
"0.6268385",
"0.6268344",
"0.62235385",
"0.62115014",
"0.61259407",
"0.6125454",
"0.6118425",
"0.61022687",
"0.60948116",
"0.60... | 0.5910233 | 40 |
Creates a Plane object from 3 planar points. An error is raised if the points are collinear. | def aAgs(Emd4, KwKv, YBrO, Qz2I):
hQHm = KwKv - YBrO
jlSq = KwKv - Qz2I
mhAC = oyIN.cross(hQHm, jlSq)
u54L = oyIN.linalg.norm(mhAC)
if u54L < dGEq:
raise ValueError('The points should not be arranged in a line.')
mhAC = mhAC / u54L
return Emd4(mhAC, KwKv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l56d(EBgd: Point, HpuQ: Point, Lq8X: Point):\n if isinstance(EBgd, PvyL) and isinstance(HpuQ, PvyL) and isinstance(Lq8X, PvyL):\n hQHm = lNLu.from_origin(EBgd)\n jlSq = lNLu.from_points(EBgd, HpuQ)\n bUZ8 = lNLu.from_points(EBgd, Lq8X)\n exwG = jlSq.cross(bUZ8)\n Csk6 = ex... | [
"0.8089915",
"0.7621644",
"0.7454965",
"0.74391013",
"0.73657316",
"0.7022521",
"0.69711506",
"0.695854",
"0.6854784",
"0.68531007",
"0.67339104",
"0.66637015",
"0.66406024",
"0.66298306",
"0.6599093",
"0.6532167",
"0.65314335",
"0.64524055",
"0.6430218",
"0.6392858",
"0.6386... | 0.7136264 | 5 |
Convert a base64 encoded string to an image. | def fHQN(vIwR):
eyJT = aKaX(WR89.b64decode(vIwR.encode(), validate=True))
return hnIv.open(eyJT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oyLz(Ppe4):\n v6v7 = WR89.b64decode(Ppe4)\n return (hnIv.open(xDSY.BytesIO(v6v7)), True)",
"def wXGa(KCHu):\n XhvT = leDs(KCHu)\n Xn71 = hnIv.open(xDSY.BytesIO(XhvT))\n return Xn71",
"def wXGa(l5Ny: str) -> hnIv.Image:\n nPrm = WR89.b64decode(l5Ny)\n wOb_ = xDSY.BytesIO(nPrm)\n LNo8... | [
"0.8726868",
"0.8635095",
"0.82981867",
"0.8275237",
"0.824228",
"0.7949663",
"0.78865296",
"0.7846838",
"0.76506144",
"0.7466749",
"0.7404046",
"0.7401415",
"0.73726434",
"0.73683375",
"0.7363766",
"0.7359405",
"0.73098445",
"0.7251832",
"0.7235706",
"0.7040936",
"0.6972322"... | 0.8668066 | 1 |
Get the Notch Type. | def q_Xy(YKHO) -> str:
return YKHO.notchType | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO):\n return YKHO.heading['type']",
"def type(YKHO):\n return YKHO._type.get_waarde()",
"def type(YKHO):\n return YKHO._type.get_waarde()",
"def type(YKHO):\n return YKHO._type.get_waarde()",
"def type(YKHO):\n return YKHO._type.get_waarde()",
"def type(YKHO):\n return YKHO.... | [
"0.74683136",
"0.7466369",
"0.7466369",
"0.7466369",
"0.7466369",
"0.7466369",
"0.7466369",
"0.7466369",
"0.7466369",
"0.7466369",
"0.7466369",
"0.74127597",
"0.7411624",
"0.735905",
"0.731581",
"0.731581",
"0.7281686",
"0.7275984",
"0.72614765",
"0.72566354",
"0.72566354",
... | 0.855988 | 0 |
Get the Kts factor. | def cLtj(YKHO) -> float:
return YKHO.Kts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zewh(YKHO) -> float:\n return YKHO.Kt",
"def cZCm(YKHO) -> uLKX[float, int]:\n return YKHO.factorKc",
"def N5Oa(YKHO) -> float:\n return YKHO.factorKd",
"def PoOI(YKHO) -> float:\n return YKHO.Kf",
"def AvWT(YKHO) -> float:\n return YKHO.Kfs",
"def BDox(YKHO):\n return YKHO.K",
"d... | [
"0.78243256",
"0.7762135",
"0.75812984",
"0.7473624",
"0.7151662",
"0.71147937",
"0.709311",
"0.7081713",
"0.7065327",
"0.68841076",
"0.6882437",
"0.6829434",
"0.677316",
"0.6694253",
"0.6691466",
"0.6660675",
"0.6588496",
"0.65702933",
"0.65551674",
"0.6522384",
"0.65195054"... | 0.80473477 | 0 |
Get the ka factor. | def f_MQ(YKHO) -> float:
return YKHO.factorKa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgJ5(YKHO) -> float:\n return YKHO.factorKe",
"def cZCm(YKHO) -> uLKX[float, int]:\n return YKHO.factorKc",
"def YIkI(zs3g: QFDataFrame, Cwt5) -> float:\n exwG = zs3g.num_of_rows - 1\n if Cwt5 is None:\n Cwt5 = 1.34\n G1Hx = (Cwt5 - 1) / (Cwt5 + (exwG + 1) / (exwG - 1))\n return G1... | [
"0.74014634",
"0.7176096",
"0.6910938",
"0.6823592",
"0.6724497",
"0.6699306",
"0.66368985",
"0.66004294",
"0.66004294",
"0.65881425",
"0.6525508",
"0.6456696",
"0.6444252",
"0.6430914",
"0.6428554",
"0.6406964",
"0.63937396",
"0.63847697",
"0.6319725",
"0.62722355",
"0.62437... | 0.8313068 | 0 |
Get the kd factor. | def N5Oa(YKHO) -> float:
return YKHO.factorKd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMet(YKHO):\n return YKHO.psf_kreal.scale",
"def gIOy(YKHO):\n return YKHO._den_d",
"def Viyh(YKHO) -> float:\n return YKHO.d",
"def n8hg(YKHO):\n GCRU = YKHO.currentInput - YKHO.oldInput\n return YKHO.Kd * GCRU",
"def veDp(wW3z, rb7a):\n jzdc = Cwt5(wW3z, rb7a)\n Fg_i = UqYS(jzdc)... | [
"0.7296946",
"0.7187655",
"0.7078317",
"0.70253456",
"0.6915976",
"0.6900936",
"0.68068904",
"0.6697321",
"0.66901356",
"0.66711736",
"0.66519076",
"0.65885544",
"0.6562839",
"0.65619475",
"0.65446424",
"0.6536436",
"0.6518628",
"0.65172416",
"0.6483669",
"0.64528084",
"0.644... | 0.8252968 | 0 |
Get the Kf factor. | def PoOI(YKHO) -> float:
return YKHO.Kf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cZCm(YKHO) -> uLKX[float, int]:\n return YKHO.factorKc",
"def N5Oa(YKHO) -> float:\n return YKHO.factorKd",
"def AvWT(YKHO) -> float:\n return YKHO.Kfs",
"def tgJ5(YKHO) -> float:\n return YKHO.factorKe",
"def YIkI(zs3g: QFDataFrame, Cwt5) -> float:\n exwG = zs3g.num_of_rows - 1\n if ... | [
"0.794324",
"0.7861593",
"0.74226534",
"0.72235525",
"0.71807545",
"0.7117115",
"0.7111972",
"0.6889501",
"0.68260664",
"0.68249685",
"0.68249685",
"0.67573756",
"0.67513484",
"0.6750273",
"0.6730943",
"0.670697",
"0.6697331",
"0.6657628",
"0.66573024",
"0.6627399",
"0.662726... | 0.86667055 | 0 |
Get the Kfs factor. | def AvWT(YKHO) -> float:
return YKHO.Kfs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PoOI(YKHO) -> float:\n return YKHO.Kf",
"def N5Oa(YKHO) -> float:\n return YKHO.factorKd",
"def cZCm(YKHO) -> uLKX[float, int]:\n return YKHO.factorKc",
"def BDox(YKHO):\n return YKHO.K",
"def nMvt(YKHO):\n return tE_f.viterbi_combined_fs_K(YKHO)",
"def tgJ5(YKHO) -> float:\n return... | [
"0.7757593",
"0.75401706",
"0.72632396",
"0.6792985",
"0.6790562",
"0.6613811",
"0.65964043",
"0.65513474",
"0.65513474",
"0.6518804",
"0.6500122",
"0.645696",
"0.6455845",
"0.6438054",
"0.6406831",
"0.63931596",
"0.63863415",
"0.6366162",
"0.6341845",
"0.6333498",
"0.6245397... | 0.8512268 | 0 |
Get the Von Misses safety factor. | def I2cz(YKHO) -> float:
return YKHO.Sy / YKHO.getVonMissesStress() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kivd(YKHO) -> float:\n return YKHO.safetyFactor",
"def EtLQ(YKHO):\n return YKHO._vergrotingsfactor.get_waarde()",
"def qBCQ(YKHO) -> float:\n jAqY = lWrn.shaftVonMissesStress(Ma=YKHO.Ma, Mm=YKHO.Mm, Ta=YKHO.Ta, Tm=YKHO.Tm, Kf=YKHO.getKf(), Kfs=YKHO.getKfs(), d=YKHO.getDLowercase())\n return jA... | [
"0.6869074",
"0.6509158",
"0.63936317",
"0.6202911",
"0.6075236",
"0.5934316",
"0.5863126",
"0.57759637",
"0.57703507",
"0.5735713",
"0.5719362",
"0.56648254",
"0.56300974",
"0.56300974",
"0.55893177",
"0.55547357",
"0.5549923",
"0.5536687",
"0.54954064",
"0.54954064",
"0.547... | 0.80198705 | 0 |
Get the Von Misses safety factor. | def HYSr(YKHO, sbx9: bool=False) -> cuzp[str, uLKX[x1iM[uLKX[str, ImMB]], x1iM[uLKX[uLKX[float, int], ImMB]]]]:
CovN = '<sub>' + YKHO.method + '</sub>'
t3NQ = '<sub>' + YKHO.method + '</sub>'
rYO3 = ['Dimensionless', 'Dimensionless', 'Dimensionless', 'Dimensionless', 'Dimensionless', 'Dimensionless', 'Dimen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I2cz(YKHO) -> float:\n return YKHO.Sy / YKHO.getVonMissesStress()",
"def kivd(YKHO) -> float:\n return YKHO.safetyFactor",
"def EtLQ(YKHO):\n return YKHO._vergrotingsfactor.get_waarde()",
"def qBCQ(YKHO) -> float:\n jAqY = lWrn.shaftVonMissesStress(Ma=YKHO.Ma, Mm=YKHO.Mm, Ta=YKHO.Ta, Tm=YKHO.... | [
"0.80198705",
"0.6869074",
"0.6509158",
"0.63936317",
"0.6202911",
"0.6075236",
"0.5934316",
"0.5863126",
"0.57759637",
"0.57703507",
"0.5735713",
"0.5719362",
"0.56648254",
"0.56300974",
"0.56300974",
"0.55893177",
"0.55547357",
"0.5549923",
"0.5536687",
"0.54954064",
"0.549... | 0.0 | -1 |
Get the Q factor. | def AVx5(YKHO) -> float:
return YKHO.q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T8ck(YKHO):\n return YKHO.W / (1 + YKHO.N)",
"def GyDg(YKHO) -> float:\n raise NotImplementedError",
"def bzUX(YKHO):\n if YKHO._q is None:\n if YKHO._equatorial is not None:\n YKHO._q = YKHO._equatorial2quat()\n elif YKHO._T is not None:\n YKHO._q = YKHO._trans... | [
"0.77621937",
"0.7582831",
"0.75339836",
"0.75156647",
"0.745845",
"0.73955625",
"0.7310271",
"0.72923356",
"0.7273477",
"0.7239109",
"0.71681434",
"0.70406336",
"0.7040583",
"0.7030355",
"0.7012553",
"0.7006754",
"0.7006754",
"0.7001448",
"0.7001448",
"0.6994609",
"0.6993115... | 0.83878833 | 0 |
Contour plot of a 2d function `func(x,y)`. | def Iowl(mMG6: Union[List[float], np.ndarray], VUzz: Union[List[float], np.ndarray], JfyU: Callable, lVkD: Union[List[float], np.ndarray]=None, kEAC: bool=True, **B2fa) -> AzJI[QD4e, MlUv]:
LZpg, MPlV = B2fa.get('fig_ax') or QrM1.subplots()
jGa_, fXrx = oyIN.meshgrid(mMG6, VUzz)
hJf4 = JfyU(jGa_, fXrx)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufw9(WBu_):\n WKvO, LVAh = oyIN.meshgrid(oyIN.linspace(-10, 10, num=20), oyIN.linspace(-10, 10, num=20))\n epBp = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n for r845 in range(LVAh.shape[1]):\n epBp[YRbF, r845] = WBu_([WKvO[YRbF, r845], LVAh[YRbF, r845]])\n QrM1.c... | [
"0.7315144",
"0.7279533",
"0.71926963",
"0.71812105",
"0.71246475",
"0.70516574",
"0.6850201",
"0.6838912",
"0.6833511",
"0.6763903",
"0.6735958",
"0.67159307",
"0.6690541",
"0.6679815",
"0.66751206",
"0.6669372",
"0.6669372",
"0.6669372",
"0.6669372",
"0.6669372",
"0.6669372... | 0.6833983 | 8 |
Construct the first two residues of the protein. | def hTIq(YKHO):
M4CP = YKHO._iter_resname_angs()
rjI9, oHx7 = next(M4CP)
eIt_, h4Ny = next(M4CP)
GJ82 = uJl1(rjI9, oHx7, prev_res=None, next_res=None)
hR_F = uJl1(eIt_, h4Ny, prev_res=GJ82, next_res=None)
GJ82.build_bb()
hR_F.build()
GJ82.next_res = hR_F
GJ82.build_sc()
return (G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pURf(YKHO):\n \"\"\" and returns them as set of thses lists \"\"\"\n YKHO.Residue = []\n YKHO.Residues = []\n YKHO.Residue.append(YKHO.Content[0])\n for ywwl in range(1, len(YKHO.Content)):\n aDKL = YKHO.Content[ywwl]\n uaUD = YKHO.Content[ywwl - 1]\n jEdw = uaUD.ResidueSequ... | [
"0.5908285",
"0.55764484",
"0.5513914",
"0.54301345",
"0.5427496",
"0.53981704",
"0.5381265",
"0.5319716",
"0.52923524",
"0.5244899",
"0.52245796",
"0.518081",
"0.51404667",
"0.5094508",
"0.508617",
"0.50859296",
"0.50736934",
"0.50669634",
"0.50660026",
"0.50393236",
"0.5034... | 0.7150993 | 0 |
Add Hydrogen atom coordinates to coordinate representation (reapply PADs). | def Kw61(YKHO):
if YKHO.coords is None or not len(YKHO.coords):
raise ValueError('Cannot add hydrogens to a structure whose heavy atoms have not yet been built.')
YKHO.hb = hem5(YKHO.seq_as_str, YKHO.coords)
YKHO.coords = YKHO.hb.build_hydrogens()
YKHO.has_hydrogens = True
YKHO.atoms_per_res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def caHI(RmtG, KjOB, rPXJ, UyCQ):\n Cv3O = []\n __5G = []\n for or8S in range(KjOB - 2, KjOB + 1):\n Cv3O.append(eYMd(RmtG, '%s%d' % (rPXJ, or8S)))\n __5G.append([eYMd(RmtG, 'H%d%s' % (or8S, zlWN)) for zlWN in UyCQ[:2]])\n Cv3O[1].charge = 0.0\n __5G[1][0].charge = 0.0\n __5G[1][1].... | [
"0.59560597",
"0.57766753",
"0.5592229",
"0.55547214",
"0.552648",
"0.54410475",
"0.52871305",
"0.52799803",
"0.5267216",
"0.5239093",
"0.5214945",
"0.51786256",
"0.51416594",
"0.51366746",
"0.51125556",
"0.51028484",
"0.5086163",
"0.5080618",
"0.50235987",
"0.49773005",
"0.4... | 0.6177897 | 0 |
Generate a sample base name for the loaded dataset by rounding by 10 | def AIky(b6J0):
def F5Jl(flD4):
hlel = flD4.split(sep='/')
return hlel[-1]
def ai7r(fD1K):
return int(epAf.floor(fD1K / 10.0) * 10)
def qiy9(flD4):
hlel = flD4.split(sep='/')
return hlel[-2]
if not 'expno' in b6J0.columns:
fD1K = b6J0.loc[:, 'Sample Fil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD():\n P8oC = str(mLGw.get_and_add(1))\n P8oC += '_'\n P8oC += str(RHmZ().randint(0, HwRy.maxsize))\n return P8oC",
"def Vc9A(i0XC, mvm2, ozHr, eCGt, bjsd, VlDb):\n return f'{i0XC}/{VlDb}.{mvm2}.{eCGt}.{bjsd}.{ozHr.astype(int):03d}'",
"def WB64() -> str:\n return 'sample_1'",
"def WK... | [
"0.6762476",
"0.66515094",
"0.6417491",
"0.64072514",
"0.63046664",
"0.6244519",
"0.6166893",
"0.61421824",
"0.61189514",
"0.6114551",
"0.61100125",
"0.6099961",
"0.6077724",
"0.6075313",
"0.60709596",
"0.60705435",
"0.60579586",
"0.6009005",
"0.60085785",
"0.59739536",
"0.59... | 0.6490943 | 2 |
Determines the area of a circle given its radius >>>circle_area(20) 1256.6371 | def yX2h(r1VO):
return mM0K * r1VO * r1VO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UdRN(r1VO):\n f0tD = epAf.pi * r1VO ** 2\n return f0tD",
"def yX2h(r1VO):\n return epAf.pow(r1VO, 2) * epAf.pi",
"def yX2h(r1VO):\n return epAf.pi * epAf.pow(r1VO, 2)",
"def yX2h(r1VO):\n return Lr0q.pi * r1VO * r1VO",
"def yX2h(r1VO):\n return mM0K * r1VO ** 2",
"def yX2h(r1VO):\n ... | [
"0.88046575",
"0.879913",
"0.87146413",
"0.86239785",
"0.8623317",
"0.84888685",
"0.8399196",
"0.8379137",
"0.8142947",
"0.8036817",
"0.8007404",
"0.793277",
"0.78849965",
"0.78740245",
"0.7808621",
"0.77703494",
"0.7756626",
"0.772898",
"0.7672651",
"0.7660945",
"0.76012516"... | 0.8646846 | 3 |
This calculates the area of a circle >>>circle_area_using_diameter(10) 78.5398 | def nvuv(NrEI):
return mM0K * NrEI ** 2 / 4.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yX2h(NrEI):\n return oyIN.pi * NrEI ** 2 / 4",
"def UdRN(r1VO):\n f0tD = epAf.pi * r1VO ** 2\n return f0tD",
"def yX2h(r1VO):\n return mM0K * r1VO * r1VO",
"def yX2h(r1VO):\n return mM0K * r1VO ** 2",
"def SCx4(r1VO: float) -> float:\n return r1VO * r1VO * mM0K",
"def yX2h(r1VO):\n ... | [
"0.884696",
"0.84857017",
"0.84024584",
"0.83322304",
"0.8311707",
"0.83020246",
"0.8258103",
"0.82474756",
"0.81607395",
"0.8139791",
"0.8072313",
"0.7984744",
"0.79502",
"0.79356873",
"0.7931799",
"0.7884645",
"0.78379583",
"0.78038746",
"0.7776494",
"0.77386796",
"0.772614... | 0.88304996 | 1 |
Finds the surface area of a right circular cone >>> right_circular_cone_lateral_area(4,10) 39.7384 | def KafY(r1VO, H2v2):
return mM0K * r1VO * epAf.sqrt(r1VO ** 2 + H2v2 ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FpF_(r1VO: Number, tq3G: Number) -> KUXB:\n return mM0K * r1VO ** 2 + mM0K * r1VO * tq3G",
"def H9Yn(HEZd, r1VO):\n return mM0K * HEZd * r1VO",
"def hSX6(r1VO, H2v2):\n return 2 * mM0K * r1VO * H2v2",
"def yX2h(Mkmy):\n return mM0K * Mkmy ** 2",
"def OoO_(Mkmy):\n return epAf.pi * Mkmy *... | [
"0.7841489",
"0.75717026",
"0.7495695",
"0.68883204",
"0.688179",
"0.68616563",
"0.68327475",
"0.68317443",
"0.68258387",
"0.6806526",
"0.67543304",
"0.67452866",
"0.67410743",
"0.67410743",
"0.67410743",
"0.67368776",
"0.6717433",
"0.67048806",
"0.66910636",
"0.66836464",
"0... | 0.82398856 | 0 |
Finds the volume of a right circular cone given its radius and height >>> right_circular_cone_volume(6, 14) 58.6431 | def OUsR(r1VO, H2v2):
return 1.0 / 3.0 * mM0K * r1VO ** 2 * H2v2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YdH_(r1VO, H2v2):\n return 1 / 3 * H2v2 * XTiz.pi * r1VO ** 2",
"def VWEb(r1VO: float, H2v2: float) -> float:\n if H2v2 < 0 or r1VO < 0:\n raise ValueError('vol_right_circ_cone() only accepts non-negative values')\n return mM0K * pow(r1VO, 2) * H2v2 / 3.0",
"def HMQr(r1VO, H2v2):\n retur... | [
"0.83275545",
"0.83214456",
"0.7690066",
"0.7619628",
"0.7368224",
"0.7083633",
"0.7070662",
"0.70500344",
"0.69840485",
"0.6856616",
"0.6848285",
"0.6848285",
"0.6810896",
"0.68069834",
"0.6783035",
"0.677287",
"0.67075163",
"0.670375",
"0.6648722",
"0.66452056",
"0.6632407"... | 0.90690875 | 0 |
It determines the surface area of a right circular cylinder >>> right_circular_cylinder_surface_area(5,8) 251.3274 | def hSX6(r1VO, H2v2):
return 2 * mM0K * r1VO * H2v2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FpF_(r1VO: Number, tq3G: Number) -> KUXB:\n return mM0K * r1VO ** 2 + mM0K * r1VO * tq3G",
"def KafY(r1VO, H2v2):\n return mM0K * r1VO * epAf.sqrt(r1VO ** 2 + H2v2 ** 2)",
"def LFtF(YKHO):\n if YKHO._ndims == 2:\n return YKHO._container.get_radius() * 2 * H4yH.pi\n elif YKHO._ndims == 3:... | [
"0.78706145",
"0.75433373",
"0.72812617",
"0.71620345",
"0.71278757",
"0.69131625",
"0.6897194",
"0.6886703",
"0.68492275",
"0.68453896",
"0.6839178",
"0.6839178",
"0.6836479",
"0.68192464",
"0.681412",
"0.6810696",
"0.68046796",
"0.6798015",
"0.6789929",
"0.6776282",
"0.6776... | 0.8712767 | 0 |
Determines the area of a trapezium given its breadth,length and height >>> trapezium_area(10,15,13) 25.5 | def BT2c(iR7F, u54L, H2v2):
return 0.5 * (iR7F + u54L) * H2v2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BT2c(SGpO, Wzcb, H2v2):\n return H2v2 * (SGpO + Wzcb) / 2",
"def BT2c(zPAF, BsXG, H2v2):\n return (zPAF + BsXG) * H2v2 * (1 / 2)",
"def rVd1(P8oC=1, H2v2=1):\n return P8oC * H2v2 / 2",
"def f0tD(P8oC, H2v2):\n return P8oC * H2v2 / 2",
"def GagE(P8oC, H2v2):\n f0tD = P8oC * H2v2 / 2\n ... | [
"0.80930674",
"0.8003176",
"0.7459715",
"0.7446373",
"0.73256683",
"0.72976494",
"0.7220918",
"0.7218216",
"0.71727467",
"0.71727467",
"0.71207505",
"0.71002316",
"0.70784074",
"0.70679396",
"0.6982971",
"0.6975364",
"0.6944769",
"0.69228745",
"0.6850534",
"0.6837736",
"0.678... | 0.84563863 | 0 |
It evaluates the area of an ellipse given its two radii >>> ellipse_area(6,8) 150,7964 | def kdDi(x0R0, xiPp):
return mM0K * x0R0 * xiPp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kdDi(x0R0, xiPp):\n return mM0K * x0R0 * xiPp",
"def yd8O(SsnV):\n return mM0K * SsnV ** 2",
"def yX2h(r1VO):\n return mM0K * r1VO * r1VO",
"def PXEh():\n print('Welcome!' + '\\n' + 'This program will use random numbers to compute the area of an ellipse.')\n oRYQ, RA6E = [float(WKvO) for W... | [
"0.8539092",
"0.7588813",
"0.71588504",
"0.7149148",
"0.7110534",
"0.7088239",
"0.70693845",
"0.70611393",
"0.7005464",
"0.6974232",
"0.69562364",
"0.69562364",
"0.69562364",
"0.6932835",
"0.6891051",
"0.68898934",
"0.68786263",
"0.6873376",
"0.68722564",
"0.68587774",
"0.685... | 0.8562061 | 0 |
It finds the area of a triangle given the height and the base >>>triangle_area(10,15) 75 | def cGOR(P8oC, H2v2):
return 0.5 * P8oC * H2v2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x5JU(P8oC=1, H2v2=1):\n return P8oC * H2v2 / 2",
"def cGOR(u54L, H2v2):\n return 1 / 2 * (u54L * H2v2)",
"def cGOR(Fg_i, MKlR):\n return 0.5 * Fg_i * MKlR",
"def cGOR(Fg_i, MKlR):\n return 0.5 * Fg_i * MKlR",
"def QuKo(P8oC, H2v2):\n return oyIN.abs(P8oC * H2v2 / 2)",
"def fTMa(Fg_i, M... | [
"0.8653698",
"0.85989094",
"0.82755804",
"0.82755804",
"0.7828712",
"0.7587496",
"0.756042",
"0.75408983",
"0.75097686",
"0.7507801",
"0.7484616",
"0.7345454",
"0.7288899",
"0.72784245",
"0.7262874",
"0.7257067",
"0.72489214",
"0.72446084",
"0.7176757",
"0.71698016",
"0.70922... | 0.8816829 | 0 |
Get all dataset annotations. | def aDpm(YKHO, Ilxn: str, ZvX5: Optional[int]=None, jKpy: Optional[str]=None) -> x1iM[oafw]:
bD7m = YKHO.urls.get_dataset_caveats(Ilxn, ZvX5, jKpy)
Mkmy = G4JS.get(bD7m)
if Mkmy.status_code == 404:
return list()
elif Mkmy.status_code != 200:
Mkmy.raise_for_status()
return [n5rA.CAVEA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XgyP(YKHO):\n XgyP = YKHO.retrieve_annotations()\n return XgyP",
"def XgyP(YKHO):\n YKHO._list_annotations = YKHO._annotations()\n return YKHO._list_annotations",
"def XgyP(YKHO):\n return qm0x(YKHO.all_annotations)",
"def gcFi(YKHO):\n return YKHO._get(YKHO._annotation_url)",
"def nk... | [
"0.7933309",
"0.76226234",
"0.74670935",
"0.7391731",
"0.7354283",
"0.7331943",
"0.7290007",
"0.72461414",
"0.7220808",
"0.7186266",
"0.7085976",
"0.701291",
"0.69655603",
"0.69655603",
"0.6955684",
"0.69472975",
"0.6934477",
"0.6879652",
"0.684244",
"0.67304575",
"0.6710041"... | 0.0 | -1 |
Return a string representation of the element. Returns str The representation of the element. | def wHJl(YKHO) -> str:
WBAH = YKHO.prop('id', None)
KndY = YKHO.get_class()
return '<{}{}{}>'.format(YKHO.__display_name__, ' id="{}"'.format(WBAH) if WBAH else '', ' class="{}"'.format(KndY) if KndY else '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._element)",
"def zAg0(YKHO):\n return str(YKHO.element)",
"def zAg0(YKHO):\n isDe = '<' + YKHO.tag_name\n for LwG6 in YKHO.kwargs:\n isDe += ' {}=\"{}\"'.format(LwG6, YKHO.kwargs[LwG6])\n isDe += '>'\n isDe += YKHO.text\n for aUGN in YKHO.children:\... | [
"0.8661225",
"0.8478117",
"0.7872475",
"0.77684265",
"0.7765743",
"0.77648675",
"0.7756395",
"0.7717622",
"0.7625362",
"0.76100034",
"0.7594904",
"0.7514157",
"0.7498032",
"0.74469656",
"0.7391942",
"0.7385155",
"0.7374417",
"0.7374417",
"0.7374417",
"0.7349275",
"0.72990835"... | 0.0 | -1 |
Return the ``id`` prop of the element. | def unpH(YKHO) -> uLKX[None, str]:
return YKHO.prop('id', default=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO, U6D_):\n return str(U6D_.attrib.get('id'))",
"def id(YKHO):\n return YKHO.etree_element.get('id')",
"def k5Ri(YKHO, o8Kj):\n return o8Kj['id']",
"def DExC(YKHO) -> int:\n return YKHO._element_dict['id']",
"def id(YKHO):\n return YKHO.attrs.get('id', None)",
"def id(YKHO):\n ... | [
"0.8496573",
"0.8118565",
"0.80016893",
"0.7922248",
"0.78425395",
"0.7820695",
"0.78147227",
"0.7730855",
"0.7713991",
"0.7704911",
"0.75737226",
"0.75737226",
"0.75737226",
"0.75737226",
"0.75564545",
"0.7542742",
"0.7433201",
"0.7433201",
"0.7424785",
"0.7417036",
"0.72668... | 0.77313954 | 7 |
Return elements to be rendered as html. Returns only all children (``self.children()``) by default. Must be implemented in subclasses to do something else. Must return a component, a list of components, a fragment, or False/None. See example for more details. | def _1tc(YKHO, QpfX: OptionalContext) -> h8nf[f4tR]:
return YKHO.children() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _R2e(YKHO, r7XA=False):\n return YKHO.render_childs(pretty=r7XA)",
"def _1tc(YKHO):\n hGN5 = ''\n for ZfUD in YKHO.children:\n hGN5 += ZfUD.render()\n return hGN5",
"def Q_RO(YKHO) -> str:\n return ''.join((aUGN.html for aUGN in YKHO.children))",
"def afYC(YKHO):\n return YKHO.co... | [
"0.6645642",
"0.6585685",
"0.6556901",
"0.6434823",
"0.63104486",
"0.625516",
"0.615949",
"0.6140436",
"0.61146986",
"0.61146986",
"0.60671145",
"0.6055344",
"0.6041478",
"0.6031243",
"0.5999173",
"0.5998982",
"0.5990696",
"0.5978294",
"0.59536695",
"0.59191966",
"0.5909999",... | 0.66517484 | 0 |
Return a new version of this proxy, for the given element to proxy. | def fbSI(Emd4, UksD: Type[Base]) -> eBH2['ElementProxy']:
return Emd4._For(UksD, is_source=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I3Iw(YKHO, U6D_: WebElement, xEOs, BWXx) -> _vJh:\n return _vJh(target_object=U6D_, page=YKHO, by=xEOs, value=BWXx)",
"def ROa8(YKHO, LihS):\n return LihS",
"def _jXH(YKHO, U6D_):\n YKHO.original.append(U6D_)\n return YKHO.original",
"def qTJX(YKHO, geyT: Union[WebElementProxy, List[WebElemen... | [
"0.7498003",
"0.5987162",
"0.5783125",
"0.57695806",
"0.5639557",
"0.5577362",
"0.5564365",
"0.5554309",
"0.5532954",
"0.5515643",
"0.54888105",
"0.5478776",
"0.5473906",
"0.54664224",
"0.54152936",
"0.5390644",
"0.5388055",
"0.5371499",
"0.5312122",
"0.5295176",
"0.52836615"... | 0.5728932 | 4 |
Return a new version of this proxy, for the given element to proxy. | def lUa4(Emd4, UksD: Type[Base], RShE: bool) -> eBH2['ElementProxy']:
if not isinstance(UksD, type) or not issubclass(UksD, i_Aq):
raise IdRh(Emd4.__display_name__, '.For: the argument must be a subclass of `Base`')
if UksD not in Emd4.__proxy_base__.__proxied_classes__:
if RShE:
mWF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I3Iw(YKHO, U6D_: WebElement, xEOs, BWXx) -> _vJh:\n return _vJh(target_object=U6D_, page=YKHO, by=xEOs, value=BWXx)",
"def ROa8(YKHO, LihS):\n return LihS",
"def _jXH(YKHO, U6D_):\n YKHO.original.append(U6D_)\n return YKHO.original",
"def qTJX(YKHO, geyT: Union[WebElementProxy, List[WebElemen... | [
"0.7498003",
"0.5987162",
"0.5783125",
"0.57695806",
"0.5728932",
"0.5639557",
"0.5577362",
"0.5564365",
"0.5554309",
"0.5532954",
"0.5515643",
"0.54888105",
"0.5478776",
"0.5473906",
"0.54664224",
"0.54152936",
"0.5390644",
"0.5388055",
"0.5371499",
"0.5312122",
"0.5295176",... | 0.0 | -1 |
returns number of vertices in graph, see EF1970 1.1 | def Ty9i(YKHO):
return YKHO._nVertices | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y8Vt(pNZh):\n return rrLg.numVertices(pNZh)",
"def GthF(YKHO):\n return YKHO.graph.vertexCount()",
"def GthF(YKHO):\n return int(YKHO._scala.vertexCount())",
"def MrQl(YKHO):\n return YKHO._n",
"def y8Vt(YKHO):\n return YKHO.intrinsicValue('vertexcount')",
"def PjD8(YKHO):\n return ... | [
"0.8770066",
"0.8460521",
"0.8451259",
"0.8405396",
"0.83979857",
"0.83792603",
"0.83792603",
"0.83578414",
"0.8353506",
"0.8343837",
"0.8309665",
"0.82769364",
"0.82578635",
"0.82229024",
"0.81951004",
"0.8186539",
"0.8186539",
"0.81150985",
"0.8087541",
"0.80740297",
"0.807... | 0.70852727 | 68 |
returns number of edges in graph, see EF1970 1.7 | def tTpl(YKHO):
return YKHO._nEdges | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8F9():\n return len(mC4V())",
"def hSVo(pNZh):\n return rrLg.numEdges(pNZh)",
"def fOCg(yvY1):\n return yvY1.number_of_edges()",
"def fOCg(YKHO):\n return YKHO.graph.number_of_edges()",
"def vi4d(YKHO):\n return YKHO._n",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
"def ... | [
"0.8691615",
"0.8686786",
"0.8683495",
"0.8588273",
"0.83788055",
"0.83517134",
"0.83517134",
"0.83147573",
"0.8291701",
"0.8290075",
"0.82691437",
"0.82525367",
"0.82432616",
"0.82432616",
"0.8242198",
"0.82254976",
"0.82237804",
"0.82217175",
"0.82211155",
"0.8209293",
"0.8... | 0.8069053 | 31 |
Initialize the GUI parts of the top layout. | def xt17(YKHO, a9WX):
import acm
YKHO.w_fund_id = a9WX.GetControl('fund_id')
YKHO.w_fund_id.Clear()
YKHO.w_fund_id.ToolTip('The ID of the edited Prime Brokerage fund')
YKHO.w_fund_id.AddCallback('Changed', YKHO.fund_id_callback, YKHO.w_fund_id)
YKHO.fund_ids = []
for ujqo in sorted(YKHO.pb_f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UGmZ(YKHO):\n YKHO.top_level_layout = x5x0.QVBoxLayout()\n YKHO.setLayout(YKHO.top_level_layout)\n YKHO.main_layout = x5x0.QHBoxLayout()\n YKHO.top_level_layout.addLayout(YKHO.main_layout)\n YKHO.bottom_layout = x5x0.QHBoxLayout()\n YKHO.top_level_layout.addLayout(YKHO.bottom_layout)\n YKH... | [
"0.7919917",
"0.771191",
"0.75814337",
"0.7512378",
"0.7411466",
"0.73977685",
"0.7327429",
"0.7259144",
"0.72038835",
"0.7201681",
"0.71875626",
"0.71615124",
"0.7151219",
"0.71482956",
"0.7126763",
"0.70886964",
"0.7049137",
"0.70270723",
"0.70211434",
"0.69806814",
"0.6975... | 0.7085911 | 16 |
Build boolean array mask where ``False`` means that a data element is not present, and should be ignored. See discussion above. | def bra7(YKHO, rdlD, fvDH):
ZHfW = (rdlD != -1) * (fvDH != -1)
if (~ZHfW).sum():
return ZHfW
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VtWu(Sxzb, vAII, JVir=-9999):\n assert isinstance(vAII, list) and isinstance(vAII[0], int), 'Valid bits must be a list of integer bits'\n BmEm = sum([1 << bYE3 for bYE3 in vAII])\n hkVi = (Sxzb & BmEm).astype('bool')\n return hkVi.values",
"def BnIB(nPrm=None):\n w2Yx = fHeP.masked_invalid(nPr... | [
"0.6826783",
"0.657882",
"0.64318866",
"0.6239129",
"0.6233642",
"0.6205472",
"0.6196908",
"0.61688966",
"0.6157642",
"0.61501247",
"0.6090913",
"0.6072356",
"0.6056539",
"0.60514027",
"0.60187036",
"0.60055035",
"0.5996303",
"0.5988993",
"0.59863",
"0.59587985",
"0.593925",
... | 0.0 | -1 |
Because numpy.cov is stupid and casts as float. | def PFC2(r8hN):
EcVT = exwG.array(r8hN, ndmin=2, dtype=exwG.complex)
EcVT -= EcVT.mean(axis=1)[slice(None), exwG.newaxis]
ywwl = EcVT.shape[1]
bKCn = float(ywwl - 1)
return (exwG.dot(EcVT, EcVT.T.conj()) / bKCn).squeeze() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFC2(k0lF):\n return oyIN.cov(k0lF, rowvar=False)",
"def PK0u(YKHO):\n return YKHO.sigma_f ** 2",
"def PK0u(YKHO):\n return YKHO.sigma_f ** 2",
"def vbng(YKHO):\n return YKHO.Sinv",
"def geG0(YKHO) -> eQHC.NDArray[oyIN.float64]:\n assert YKHO.cov is not None\n return YKHO.cov",
"def... | [
"0.70700115",
"0.70568824",
"0.7024728",
"0.69696206",
"0.69526666",
"0.69390935",
"0.68784136",
"0.6856846",
"0.6845289",
"0.6845077",
"0.6845077",
"0.65968376",
"0.6578735",
"0.65755093",
"0.65697366",
"0.655748",
"0.65315115",
"0.6473625",
"0.6467061",
"0.6428745",
"0.6406... | 0.6580522 | 12 |
Changes uint8 type images to float64 images. | def pmjv(LNo8):
pdhd = LNo8.astype('float')
tJgg = 0.0
KLKr = 255.0
pdhd[:, :] = (pdhd[:, :] - tJgg) / (KLKr - tJgg)
return pdhd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lugW(LNo8):\n zr3f = LNo8.copy()\n zr3f *= 255\n zr3f = zr3f.astype('uint8')\n return zr3f",
"def FWV2(VXjJ):\n TKGt = oyIN.min(VXjJ)\n wmQo = oyIN.max(VXjJ)\n VXjJ = (VXjJ - TKGt) / (wmQo - TKGt) * 255\n return oyIN.uint8(VXjJ)",
"def Yi0j(vMFt):\n return vMFt.astype(oyIN.float6... | [
"0.7090667",
"0.66909033",
"0.6597388",
"0.6511137",
"0.65034175",
"0.64770585",
"0.64063543",
"0.6344282",
"0.63430554",
"0.6341835",
"0.6316873",
"0.62686384",
"0.6154701",
"0.6139114",
"0.60924",
"0.60834277",
"0.6075686",
"0.6071271",
"0.6047917",
"0.6021983",
"0.6008764"... | 0.5620427 | 48 |
Creates a Polygon object from a bbox | def oU1_(YKHO, cviu: dict):
j5tF = rSWe()
if cviu is not None:
PXzB = ((cviu['min_x'], cviu['min_y']), (cviu['min_x'], cviu['max_y']), (cviu['max_x'], cviu['max_y']), (cviu['max_x'], cviu['min_y']), (cviu['min_x'], cviu['min_y']))
j5tF = rSWe(PXzB)
return j5tF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVrS(cviu: list, LRiP: int) -> rSWe:\n try:\n j5tF = FlUN(cviu[0], cviu[1], cviu[2], cviu[3])\n if not LRiP == 4326:\n Fw8z = ROpF.from_shape(j5tF, LRiP)\n with NCls.engine.connect() as w2B8:\n CDVm = w2B8.execute(VwfV(Fw8z, 4326)).scalar()\n j5t... | [
"0.7629773",
"0.70443326",
"0.6823708",
"0.6705004",
"0.6617148",
"0.6612199",
"0.6582571",
"0.6572882",
"0.6572",
"0.6532346",
"0.65314585",
"0.65294933",
"0.6465926",
"0.6465926",
"0.6437097",
"0.6429989",
"0.6393206",
"0.63688546",
"0.6336405",
"0.6332845",
"0.6244682",
... | 0.83324677 | 0 |
Temp. (C) to Chance2014 parameterised [iodide] in nmol/dm^3 (nM) | def pG6H(VOCU):
return 0.225 * VOCU ** 2 + 19.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qxwz(qVjm, bORy, dNjt):\n ycBG = qVjm\n if dNjt == 0:\n \" ' Verfahren nach IAPWS R7-97(2012)\\n' The International Association for the Properties of Water and Steam\\n' Revised Release on the IAPWS Industrial Formulation 1997\\n' for the Thermodynamic Properties of Water and Steam\\n \"\n... | [
"0.6156856",
"0.6074165",
"0.6043323",
"0.60426813",
"0.5927072",
"0.5898749",
"0.58447516",
"0.58206403",
"0.5761341",
"0.5705485",
"0.56838936",
"0.56836027",
"0.5678516",
"0.56724924",
"0.56565076",
"0.5643231",
"0.5639188",
"0.5637314",
"0.563028",
"0.5615419",
"0.5609267... | 0.57989013 | 8 |
Given two dictionaries, merge them into a new dict as a shallow copy. Returns (dict) Notes | def yQxF(WKvO, LVAh):
epBp = WKvO.copy()
epBp.update(LVAh)
return epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def IYhE(jzdc, Fg_i):\n Aofo = jzdc.copy()\n Aofo.update(Fg_i)\n return Aofo",
"def yQxF(YKHO, WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def yQxF(YKHO, WKvO, LVAh):\n epB... | [
"0.76868606",
"0.768083",
"0.759237",
"0.75762963",
"0.75736284",
"0.7520115",
"0.7508706",
"0.7500815",
"0.74884504",
"0.7476609",
"0.7408134",
"0.7394608",
"0.73380953",
"0.7316294",
"0.7307314",
"0.7288069",
"0.7207108",
"0.717647",
"0.71429574",
"0.7135113",
"0.71105695",... | 0.75073797 | 9 |
Return a timestamp string to print for logging. | def E3oo():
return qcWV.datetime.now().strftime('%Y-%m-%d-%H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TuwD():\n return ITS7.strftime('%a %b %d %H:%M:%S %Y')",
"def K5UO():\n return qcWV.datetime.now().strftime('%Y%m%d_%H%M%S')",
"def E3oo():\n return qcWV.now().strftime('%Y%m%d%H%M%S')",
"def kMp9(YKHO):\n return '%i' % ITS7.time()",
"def bS9y():\n return qcWV.datetime.now().strftime('%Y... | [
"0.8349755",
"0.8089535",
"0.8016929",
"0.8007191",
"0.79924345",
"0.7982047",
"0.7970824",
"0.79461735",
"0.79423016",
"0.7928818",
"0.7924331",
"0.7899032",
"0.7871338",
"0.78585374",
"0.78461003",
"0.7845659",
"0.7831854",
"0.7798591",
"0.77941114",
"0.7779948",
"0.7722826... | 0.78948826 | 12 |
test user sign up | def AWhd(YKHO):
geh0 = YKHO.client.post('/api/v2/auth/signup', data=qQXR.dumps(YKHO.user), content_type='application/json')
YKHO.assertIn('Sign up successful', str(geh0.data))
YKHO.assertEqual(geh0.status_code, 201) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VrlW(YKHO):\n YKHO.assertEqual(FYrf.SUCCESS, YKHO.users.sign_up('userA', 'myPassword', 'myPassword', 'userA@gmail.com'))",
"def zh2A(YKHO):\n print('test_signup')\n CBIr = YKHO.user\n YKHO.user_manager.signup(CBIr)\n YKHO.signup(CBIr, True)\n CBIr = {'name': 'L', 'surname': 'Z', 'email': 'l... | [
"0.8743111",
"0.8495732",
"0.8362318",
"0.82285905",
"0.812768",
"0.8086771",
"0.808645",
"0.8041785",
"0.8033689",
"0.8030036",
"0.80233353",
"0.80135673",
"0.8012844",
"0.7990099",
"0.7976738",
"0.7961807",
"0.7940662",
"0.79302967",
"0.7929083",
"0.7927181",
"0.7923892",
... | 0.7692204 | 49 |
Returns a changelist url of the inline_formset model, using the original (a related object) instance as a filter. Requires either setting an explicit "unlimited model" in the inline or a valid related field to the child model (inline_formset.opts.model), as well as a registered ModelAdmin for that related module (other... | def _mI1(nI3m, eJh7, *qIxc, **B2fa):
if not nI3m.formset.__class__ in R4Hb.__subclasses__():
return
if getattr(nI3m.opts, 'unlimited_changelist_model', None):
uqvc = nI3m.opts.unlimited_changelist_model
C3ST = YrZb(*uqvc.split('.'))
elif nI3m.model_admin:
C3ST = nI3m.opts.mod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JIyc(YKHO, QePW, NBcv, oK5A='', fkz_=None):\n fkz_ = fkz_ or {}\n zPGV = []\n for Wh6j in YKHO.inlines:\n B_WJ = YKHO._get_model_info(Wh6j.model)\n LfXz = gxEw('admin:{}_{}_import'.format(*B_WJ))\n SI3n = Wh6j.model._meta.verbose_name\n nGKr = {'verbose_name': SI3n, 'redire... | [
"0.57833564",
"0.55562764",
"0.5514245",
"0.544233",
"0.5381277",
"0.5378021",
"0.53763616",
"0.53229815",
"0.53229815",
"0.5309865",
"0.53043944",
"0.52899164",
"0.5234833",
"0.5233762",
"0.5224587",
"0.5202616",
"0.5202616",
"0.5200602",
"0.51956886",
"0.5193374",
"0.517833... | 0.7721951 | 0 |
Retrieve the targets of steps performing a specific activity. | def XWrA(YKHO, rxHD):
N1p7 = YKHO.connection.cursor()
Pe9W = '\n SELECT DISTINCT step_type_id\n FROM step_activity, step_type2activity\n WHERE label=?\n AND step_activity.id=step_type2activity.step_activity_id\n '
Ylbp = N1p7.execute(Pe9W, (rxHD.value,))
srC1 = Ylbp.fe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PZSB(YKHO):\n return YKHO.targets",
"def RH8N(YKHO, sEAN, ZaUd):\n return YKHO.targets",
"def x6A0(YKHO):\n return YKHO._data.get('targets', [])",
"def YcM0(JZXy, rxHD):\n NVCG.discover(JZXy, rxHD)\n x6A0 = set()\n YEnM = rxHD.get('object') or rxHD\n for TZ9E in YEnM.get('tags', []):... | [
"0.65709364",
"0.64693224",
"0.6420519",
"0.63956714",
"0.6361041",
"0.6337595",
"0.6312015",
"0.62721",
"0.6268259",
"0.6231105",
"0.6208413",
"0.6204477",
"0.6204167",
"0.6188895",
"0.61854416",
"0.6174098",
"0.615331",
"0.61379665",
"0.61379665",
"0.61379665",
"0.61339873"... | 0.7494708 | 0 |
Return all targets of a given type. | def Wfuc(YKHO, A7od):
N1p7 = YKHO.connection.cursor()
Pe9W = '\n SELECT stored_entity.id,\n classname,\n entityname\n FROM stored_entity\n INNER JOIN step_concrete2targetfile\n ON stored_entity.id=step_concrete2targetfile.stored_entity_id\n WHERE st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RH8N(YKHO):\n if not YKHO._targets:\n x6A0 = []\n for Ogew in YKHO.config.targets or []:\n pan_ = xU76(Ogew)\n x6A0.append(pan_)\n YKHO._targets = x6A0\n return YKHO._targets",
"def RH8N(YKHO):\n nNXP = '/api/targets'\n return YKHO.get(nNXP)",
"def RH8... | [
"0.68699133",
"0.677884",
"0.6772974",
"0.6770492",
"0.674688",
"0.66672146",
"0.66586536",
"0.6609105",
"0.65807015",
"0.65571624",
"0.654105",
"0.6489589",
"0.6473121",
"0.6463506",
"0.64485395",
"0.64411324",
"0.6426152",
"0.6409595",
"0.63990116",
"0.63990116",
"0.6399011... | 0.5992445 | 46 |
A response can be submitted by an unauthorized user | def VA7R(YKHO):
YKHO.client.force_authenticate()
Inv7 = YKHO.users[0].surveys.create()
WlEx = ['question 1', 'question 2', 'question 3']
for bAls in WlEx:
Inv7.questions.create(question_text=bAls)
Inv7.publish()
rRTz = ['answer 1', 'answer 2', 'answer 3']
Bv0m = {YRbF: jzdc for YRbF,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vkjw():\n jxeo = {}\n jxeo['Success'] = False\n jxeo['Status'] = 401\n jxeo['Result'] = 'Unauthorized request.'\n return oGir(response=qQXR.dumps(jxeo, sort_keys=True, indent=4), status=401, mimetype='application/json')",
"def mIlK(YKHO):\n x0hE = i9zE()\n geh0 = x0hE.post(gxEw('api:new-... | [
"0.68474865",
"0.68075645",
"0.6782143",
"0.67514044",
"0.67514044",
"0.67514044",
"0.67514044",
"0.67514044",
"0.67514044",
"0.67514044",
"0.67514044",
"0.6704695",
"0.6704695",
"0.66997284",
"0.66913986",
"0.6640511",
"0.66064996",
"0.65696025",
"0.65669036",
"0.65610266",
... | 0.0 | -1 |
Convert a Tensor to numpy image. | def psm6(pKvt):
pKvt = pKvt.numpy().transpose((1, 2, 0))
JBMS = oyIN.array([0.485, 0.456, 0.406])
M1Jx = oyIN.array([0.229, 0.224, 0.225])
pKvt = M1Jx * pKvt + JBMS
pKvt = oyIN.clip(pKvt, 0, 1)
return pKvt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaVh(vhpA):\n vhpA = vhpA.mul(255).add_(0.5).clamp_(0, 255).permute(1, 2, 0)\n NabZ = vhpA.to('cpu', ht2j.uint8).numpy()\n return NabZ",
"def uaVh(vhpA):\n vhpA = vhpA.mul(255).add_(0.5).clamp_(0, 255).permute(1, 2, 0)\n NabZ = vhpA.to('cpu', ht2j.uint8).numpy()\n return NabZ",
"def uDyX(... | [
"0.77084035",
"0.77084035",
"0.73642474",
"0.72808075",
"0.7200513",
"0.7148543",
"0.70891094",
"0.70848304",
"0.69066983",
"0.6844721",
"0.6808268",
"0.6802282",
"0.6792683",
"0.6771999",
"0.6766321",
"0.6737756",
"0.6732563",
"0.6725247",
"0.6720957",
"0.67029613",
"0.66921... | 0.0 | -1 |
Returns an observation of joint angles, velocities and uprightness. | def yMZ6(YKHO, gdyb):
W061 = g760.OrderedDict()
W061['joint_angles'] = gdyb.joint_angles()
W061['upright'] = gdyb.upright()
W061['velocity'] = gdyb.velocity()
return W061 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNYq(YKHO):\n if not YKHO._joints:\n return oyIN.array([])\n FBNX = []\n ojhJ = []\n bszf = []\n for HMCV in YKHO._joints:\n FBNX.append(HMCV.angle)\n ojhJ.append(HMCV.speed)\n bszf.append(HMCV.GetMotorTorque(YKHO.dt))\n return oyIN.concatenate([FBNX, ojhJ, bszf])"... | [
"0.73269814",
"0.7104947",
"0.70888954",
"0.6886846",
"0.6741231",
"0.6741231",
"0.6613004",
"0.65717393",
"0.6517239",
"0.65162367",
"0.6477805",
"0.6398119",
"0.62848246",
"0.62813765",
"0.6262924",
"0.62575173",
"0.624896",
"0.6228231",
"0.62176466",
"0.62012255",
"0.61856... | 0.62265867 | 18 |
Returns a smooth reward. | def xyVK(YKHO, gdyb):
return vwlo.tolerance(gdyb.upright(), bounds=(1, 1), margin=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(YKHO, vOGg):\n return vOGg + 0.01",
"def vOGg(YKHO):\n pass",
"def Xaq_(YKHO):\n o25s = YKHO.stoch.GetBasePosition()\n OOYR = YKHO.stoch.GetBaseVelocity()\n jW87 = o25s[0] - YKHO._last_base_position[0]\n jW87 = min(jW87, YKHO._forward_reward_cap)\n if jW87 > 1.8:\n print('f... | [
"0.7438686",
"0.7147916",
"0.71385163",
"0.70127165",
"0.6998486",
"0.6996857",
"0.69643307",
"0.69643307",
"0.6920171",
"0.6909118",
"0.6905067",
"0.6892655",
"0.6876441",
"0.6865316",
"0.6863334",
"0.686107",
"0.68442166",
"0.6834474",
"0.6810545",
"0.68020463",
"0.67961794... | 0.0 | -1 |
Returns an observation of joints, target direction and velocities. | def yMZ6(YKHO, gdyb):
W061 = g760.OrderedDict()
W061['joint_angles'] = gdyb.joint_angles()
W061['upright'] = gdyb.upright()
W061['target'] = gdyb.mouth_to_target()
W061['velocity'] = gdyb.velocity()
return W061 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNYq(YKHO):\n if not YKHO._joints:\n return oyIN.array([])\n FBNX = []\n ojhJ = []\n bszf = []\n for HMCV in YKHO._joints:\n FBNX.append(HMCV.angle)\n ojhJ.append(HMCV.speed)\n bszf.append(HMCV.GetMotorTorque(YKHO.dt))\n return oyIN.concatenate([FBNX, ojhJ, bszf])"... | [
"0.7982872",
"0.7079306",
"0.70282733",
"0.6880811",
"0.68750584",
"0.6837781",
"0.6802863",
"0.67859817",
"0.6691595",
"0.6691595",
"0.6673513",
"0.6671939",
"0.660571",
"0.65816456",
"0.6560712",
"0.6526166",
"0.6526166",
"0.6493079",
"0.6465905",
"0.6412768",
"0.638826",
... | 0.6175587 | 30 |
Returns a smooth reward. | def xyVK(YKHO, gdyb):
MEia = gdyb.named.model.geom_size[['mouth', 'target'], 0].sum()
a0m7 = vwlo.tolerance(oyIN.linalg.norm(gdyb.mouth_to_target()), bounds=(0, MEia), margin=2 * MEia)
ZCy2 = 0.5 * (gdyb.upright() + 1)
return (7 * a0m7 + ZCy2) / 8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(YKHO, vOGg):\n return vOGg + 0.01",
"def vOGg(YKHO):\n pass",
"def Xaq_(YKHO):\n o25s = YKHO.stoch.GetBasePosition()\n OOYR = YKHO.stoch.GetBaseVelocity()\n jW87 = o25s[0] - YKHO._last_base_position[0]\n jW87 = min(jW87, YKHO._forward_reward_cap)\n if jW87 > 1.8:\n print('f... | [
"0.7438686",
"0.7147916",
"0.71385163",
"0.70127165",
"0.6998486",
"0.6996857",
"0.69643307",
"0.69643307",
"0.6920171",
"0.6909118",
"0.6905067",
"0.6892655",
"0.6876441",
"0.6865316",
"0.6863334",
"0.686107",
"0.68442166",
"0.6834474",
"0.6810545",
"0.68020463",
"0.67961794... | 0.0 | -1 |
What it does Plots a barplot with the variable given. And if desired, saves the plot in the same directory as parent file with "_barplot.jpg" as name. What it needs A df_column, panda series or dictionary with numerical values What it returns If desired (save_image != 0), a jpg image file in the same directory using "_... | def Pz4a(ILX8, t7Mi=0):
if ILX8.sum() > 0:
ILX8.plot(kind='bar')
if t7Mi != 0:
mWFP = str(_c1T.today()) + '_barplot.jpg'
QrM1.savefig(mWFP)
else:
print(f'No numeric data to plot') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ux1i(WKvO, LVAh, nPrm, leAC, IICq, V1J5):\n uuEx.barplot(x=WKvO, y=LVAh, data=nPrm, palette='YlGn')\n QrM1.title(leAC)\n QrM1.ylabel(IICq)\n QrM1.grid(ls='--', alpha=0.6)\n QrM1.savefig(V1J5)\n QrM1.close()",
"def eHce(Cw0B, gXgy):\n LZpg, aNZO = QrM1.subplots()\n d6pt = [YRbF + 1 for... | [
"0.6805513",
"0.67188966",
"0.6694413",
"0.6657876",
"0.66485095",
"0.6621407",
"0.660158",
"0.6587704",
"0.6574747",
"0.6571887",
"0.6558264",
"0.6533274",
"0.6513412",
"0.64342105",
"0.6426437",
"0.6398954",
"0.6387923",
"0.6333691",
"0.63003236",
"0.629347",
"0.6273512",
... | 0.81787854 | 0 |
Insert or update database with values in model If there is no primary key, then an INSERT is performed. If the primary key has a value, an UPDATE is performed; otherwise, an INSERT is performed and the autogenerated primary key value is added to the object. To force INSERT even when the primary key has a value, set 'fo... | async def save(YKHO, N1p7, wlo2=False):
H5ew = YKHO._m.primary
YKHO._s.updated = {}
N1p7.query = None
N1p7.query_after = None
ZlgM = ''
if wlo2:
if not H5ew:
raise Exception('force_insert is not valid without primary key')
if getattr(YKHO, H5ew.name) is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ywmq(YKHO):\n YKHO.objects.insert_by_model(YKHO)",
"def Ywmq(YKHO):\n YKHO.objects.insert_by_model(YKHO)",
"def Ywmq(YKHO):\n YKHO.objects.insert_by_model(YKHO)",
"def JPHp(YKHO, C3ST):\n GTA_ = C3ST.__class__.__name__\n o8Kj = {}\n for mWFP, BWXx in C3ST.__dict__.iteritems():\n ... | [
"0.72482324",
"0.72482324",
"0.7235036",
"0.6879326",
"0.6727049",
"0.6570013",
"0.6489067",
"0.64176345",
"0.64023304",
"0.6350587",
"0.62986064",
"0.6263515",
"0.6263515",
"0.6263515",
"0.62595487",
"0.62595487",
"0.62595487",
"0.6230114",
"0.616403",
"0.61592716",
"0.61541... | 0.67646855 | 4 |
Add a simple field to the form data. | def FxjZ(YKHO, mWFP, BWXx):
YKHO.form_fields.append((mWFP, BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FxjZ(YKHO, mWFP, BWXx):\n if BWXx == None:\n BWXx = ''\n YKHO.form_fields.append((mWFP, BWXx))\n return",
"def FxjZ(YKHO, mWFP, BWXx):\n YKHO.form_fields.append((mWFP, str(BWXx)))\n return",
"def FxjZ(YKHO, mWFP, BWXx):\n YKHO.form_fields.append((mWFP, BWXx))\n return",
"def F... | [
"0.7742264",
"0.7535114",
"0.7483034",
"0.74434346",
"0.74434346",
"0.74434346",
"0.74434346",
"0.74434346",
"0.74224",
"0.7056189",
"0.6578122",
"0.6557467",
"0.655541",
"0.65298486",
"0.6500941",
"0.6469029",
"0.64256865",
"0.6383986",
"0.6361023",
"0.631687",
"0.6270214",
... | 0.7507012 | 2 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj, sOEb):
WMj5 = 0.1 ** sum(qtWj >= oyIN.array(sOEb))
tspZ = qIxc.lr * WMj5
WMj5 = qIxc.weight_decay
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ
Lwm5['weight_decay'] = WMj5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.7992425",
"0.7941215",
"0.7890062",
"0.78280497",
"0.7822624",
"0.78171587",
"0.7811062",
"0.78024346",
"0.7791298",
"0.77885026",
"0.7781631",
"0.77651197",
"0.77644813",
"0.77617407",
"0.77496886",
"0.7738784",
"0.7730754",
"0.77246344",
"0.7712194",
"0.7708378",
"0.7705... | 0.0 | -1 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(100.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Initialize an instance of OpsGenieAlertsThread. | def FIMM(YKHO, gGq6, g614, QaO6=GxM3.alert_url, dZcY=3600, yqKO=0, T6xC=None, z0Dq=True, Pe1c=True, vYBr=60, ZGAZ=1, _hJz=5):
super(dwAQ, YKHO).__init__(gGq6, protocol_name='OpsGenieAlert', post_interval=dZcY, max_backlog=yqKO, stale=T6xC, log_success=z0Dq, log_failure=Pe1c, timeout=vYBr, max_tries=ZGAZ, retry_wait... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, TlkN):\n YKHO._notifier = TlkN",
"def FIMM(YKHO, siZ_, oB5g, pxOW):\n YKHO.log = G9jH.getLogger(type(YKHO).__name__)\n YKHO.connections = siZ_\n YKHO.sensors = oB5g\n YKHO.actuators = pxOW\n YKHO.stop_poll = False\n YKHO.threads = {}",
"def FIMM(YKHO, tvqc, mouR, qbnl, URTf)... | [
"0.6052072",
"0.60369265",
"0.60209775",
"0.59846747",
"0.58931315",
"0.58231646",
"0.58191586",
"0.58191586",
"0.5776891",
"0.57753545",
"0.57247466",
"0.5720524",
"0.56883365",
"0.56705695",
"0.56522274",
"0.5636324",
"0.56161726",
"0.56138366",
"0.56090385",
"0.5596915",
"... | 0.6711623 | 0 |
Constructs an instance of InterfaceVrfFilter. If no parameters are provided it returns an empty interface filter that will match all the interfaces on the network element. | def FIMM(YKHO, wohN=None, smEM=None, BSBM=None, wKA_=None):
super(lQJ_, YKHO).__init__()
YKHO.interface = wohN
YKHO.interface_type = smEM
YKHO.vrf_name = BSBM
YKHO.encap = wKA_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eI0c(YKHO, **B2fa):\n return Khrt(YKHO.order, YKHO.bandwidth / 2.0, YKHO.sample_rate / 2.0, YKHO._binsize, **B2fa)",
"def IHlI(YKHO):\n YKHO.input_image = ZylS.placeholder(ZylS.float32, [1, YKHO.image_height, YKHO.image_width, YKHO.n_channels], name='input_image')\n YKHO.filtered_enc = ZylS.placehol... | [
"0.58436733",
"0.5492253",
"0.5489821",
"0.5301309",
"0.5235305",
"0.52302724",
"0.52021873",
"0.51970583",
"0.5182026",
"0.51815486",
"0.5054373",
"0.503855",
"0.5036031",
"0.50333637",
"0.50262195",
"0.5021082",
"0.5003108",
"0.49845952",
"0.49809283",
"0.49725932",
"0.4971... | 0.7174324 | 0 |
return authorization header for github as used by curl | def BqlB():
return ('-H', 'Authorization: token %s' % qLqT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vu5X():\n oexA = VTm0()\n if oexA:\n MOPg = {'Authorization': oexA}\n else:\n rxBR = QePW.headers.get('Authorization', '')\n MOPg = {'Authorization': rxBR}\n return MOPg",
"def WynC():\n eOtH = GPtr.get_option('github_token')\n if eOtH is None:\n return {}\n e... | [
"0.78638434",
"0.7820661",
"0.767679",
"0.7508249",
"0.7247487",
"0.7190336",
"0.6896664",
"0.6881948",
"0.6764186",
"0.6696929",
"0.6693034",
"0.6682979",
"0.6664353",
"0.6646182",
"0.66216683",
"0.6620612",
"0.658876",
"0.6568329",
"0.6556869",
"0.65380263",
"0.65366226",
... | 0.77588016 | 2 |
Rankgauss Normalization. you can learn more infomation about rankgauss from the links below. | def ebu0(jQ3Z):
jQ3Z = jQ3Z.replace(oyIN.inf, oyIN.nan)
jQ3Z = jQ3Z.replace(-oyIN.inf, oyIN.nan)
CeHq = jQ3Z
CeHq = CeHq.replace(oyIN.nan, 0)
print('ranking...')
CeHq = CeHq.rank(axis=0) / CeHq.shape[0]
print('scaling...')
CeHq = 2 * CeHq - 1
print('replace min/max values')
CeHq ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BABT(jQ3Z):\n jQ3Z = jQ3Z.replace(oyIN.inf, oyIN.nan)\n jQ3Z = jQ3Z.replace(-oyIN.inf, oyIN.nan)\n CeHq = jQ3Z\n CeHq = CeHq.fillna(CeHq.mean())\n print('ranking...')\n CeHq = CeHq.rank(axis=0) / CeHq.shape[0]\n print('scaling...')\n CeHq = 2 * CeHq - 1\n print('replace min/max value... | [
"0.6851374",
"0.63845897",
"0.6332118",
"0.6147413",
"0.6129686",
"0.6126052",
"0.60865957",
"0.6060364",
"0.6042113",
"0.59961253",
"0.5977323",
"0.5968425",
"0.59454495",
"0.59242123",
"0.5924115",
"0.59235173",
"0.5910341",
"0.590327",
"0.58985674",
"0.5891972",
"0.5890825... | 0.6962259 | 0 |
Get the name of the iterator, as used in the plan serialization protocol | def LIY1(YKHO) -> str:
return 'reduc' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KcED(YKHO):\n KcED = YKHO._id\n if YKHO._hierarchy:\n KcED = f'{YKHO._hierarchy}.{YKHO._id}'\n return KcED",
"def y2L_():\n dfHy = liUh.query.filter_by().first()\n assert dfHy.iteration_name is not None\n return dfHy.iteration_name",
"def mWFP(YKHO):\n if YKHO._name:\n re... | [
"0.7938355",
"0.7208693",
"0.67154866",
"0.6681846",
"0.6661211",
"0.6619124",
"0.6619124",
"0.65977013",
"0.65977013",
"0.65977013",
"0.6583888",
"0.6583888",
"0.6573285",
"0.6570009",
"0.6570009",
"0.6570009",
"0.6563257",
"0.6523768",
"0.65176296",
"0.65158117",
"0.6500757... | 0.0 | -1 |
Get the next item from the iterator, following the iterator protocol. This function may contains `non interruptible` clauses which must be atomically evaluated before preemption occurs. | async def next(YKHO) -> h8nf[cuzp[str, str]]:
if not YKHO.has_next():
raise StopAsyncIteration()
yGTL = await YKHO._source.next()
if yGTL is not None:
YKHO.mappings.append(yGTL)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDAb(YKHO):\n with YKHO.lock:\n rKoN = YKHO.queue.get()\n if rKoN is None:\n raise StopIteration\n return rKoN",
"def a3Tc(OxJJ):\n try:\n WKvO = OxJJ.next()\n except StopIteration:\n WKvO = None\n except AttributeError:\n WKvO = None\n retu... | [
"0.7571855",
"0.7400472",
"0.69468737",
"0.6935126",
"0.68027234",
"0.6755024",
"0.65915304",
"0.65811986",
"0.65503997",
"0.6535336",
"0.65230674",
"0.6501212",
"0.6452881",
"0.6439835",
"0.6415035",
"0.6410188",
"0.64045984",
"0.6381744",
"0.6378197",
"0.63700825",
"0.63659... | 0.0 | -1 |
Saves the pipeline configuration to a yaml formatted file | def q24I(YKHO, pmON: str):
_fuv = jth9.deepcopy(YKHO.as_dict())
for BZ2A, RDhP in _fuv['features']:
if RDhP is not None:
_fuv['features'][BZ2A] = RDhP.to_json()
STbT(_fuv, pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n with open(YKHO.config_file, 'w') as Tfxt:\n eJb6.dump(YKHO, Tfxt)",
"def xkzz(YKHO):\n with open(PSrQ.filename, 'w') as eHNT:\n eJb6.dump(YKHO.config, eHNT)",
"def gEyB(YKHO):\n with open(Fm4J, 'w') as _RR0:\n eJb6.dump(YKHO.config, _RR0, default_flow_style=False... | [
"0.7806283",
"0.74621487",
"0.7330504",
"0.7282639",
"0.7251443",
"0.7193324",
"0.71863514",
"0.71568507",
"0.7150901",
"0.71128863",
"0.7099666",
"0.7082405",
"0.707217",
"0.7060477",
"0.7042634",
"0.7036563",
"0.694914",
"0.69377124",
"0.6923101",
"0.6905292",
"0.6888186",
... | 0.6322143 | 71 |
Returns a configuration dict formatted for AllenNLP's trainer Returns allennlp_trainer_config | def raxf(YKHO) -> cuzp[str, ImMB]:
fC92 = {'optimizer': YKHO.optimizer, 'patience': YKHO.patience, 'validation_metric': YKHO.validation_metric, 'num_epochs': YKHO.num_epochs, 'checkpointer': {'num_serialized_models_to_keep': YKHO.num_serialized_models_to_keep}, 'cuda_device': YKHO.cuda_device, 'grad_norm': YKHO.gra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CErl(YKHO) -> I3AL:\n return YKHO._trainer",
"def I0kW(YKHO) -> cuzp[str, ImMB]:\n wOGa = {RDhP.namespace: RDhP.config for RDhP in YKHO}\n return jth9.deepcopy(wOGa)",
"def I0kW(YKHO) -> cuzp[str, ImMB]:\n wOGa = {RDhP.namespace: RDhP.config for RDhP in YKHO}\n return jth9.deepcopy(wOGa)",
... | [
"0.71543545",
"0.66296756",
"0.66296756",
"0.6505695",
"0.6485038",
"0.6221569",
"0.6113786",
"0.60512924",
"0.6046467",
"0.5989739",
"0.5918144",
"0.58754706",
"0.5855484",
"0.58429015",
"0.58390623",
"0.582845",
"0.58212996",
"0.58041406",
"0.579633",
"0.57888067",
"0.57697... | 0.80299073 | 0 |
Get AWS ECR access token. | def MC83(OaeV):
OaeV.run('$(aws ecr get-login --no-include-email)') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VgoY():\n return cuiw.get(Z5BK, [None] * 2)",
"def NT__():\n K3od = iVGz.client('ssm')\n zImw = K3od.get_parameter(Name='/Editor/Identity/UserPool/Id')['Parameter']['Value']\n zb3C = K3od.get_parameter(Name='/Editor/Identity/UserPool/Client/Admin/Id')['Parameter']['Value']\n ZHrP = iVGz.client... | [
"0.6934899",
"0.6816722",
"0.6776786",
"0.67677265",
"0.6712636",
"0.6681904",
"0.66811603",
"0.6592496",
"0.6592496",
"0.65690994",
"0.653977",
"0.6525114",
"0.65230495",
"0.65114254",
"0.6495157",
"0.64907706",
"0.6489097",
"0.64749765",
"0.6462188",
"0.6440264",
"0.6411750... | 0.0 | -1 |
Return identifier string for policy parameter dict. | def DLVU(XP5J):
return 'gnn_policy' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ulWc(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'policy_id')",
"def ulWc(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'policy_id')",
"def ulWc(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'policy_id')",
"def dXS7(**B2fa):\n id = ''.join(('{}={}_'.format(H5ew, wEf2) for H5ew... | [
"0.7182742",
"0.7158082",
"0.7158082",
"0.6912917",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6882323",
"0.6745525",
"0.66120946",
"0.66120946",
... | 0.72519624 | 0 |
Streams AuthorizedConnectAppInstance records from the API as a generator stream. This operation lazily loads records as efficiently as possible until the limit is reached. The results are returned as a generator, so this operation is memory efficient. | def wOb_(YKHO, qoqK=None, bNfU=None):
c5uu = YKHO._version.read_limits(qoqK, bNfU)
B2Dn = YKHO.page(page_size=c5uu['page_size'])
return YKHO._version.stream(B2Dn, c5uu['limit'], c5uu['page_limit']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOb_(YKHO, qoqK: Optional[int]=None, bNfU: Optional[int]=None) -> bDy6[ZJeT]:\n c5uu = YKHO._version.read_limits(qoqK, bNfU)\n B2Dn = YKHO.page(page_size=c5uu['page_size'])\n return YKHO._version.stream(B2Dn, c5uu['limit'])",
"async def stream_async(YKHO, qoqK: Optional[int]=None, bNfU: Optional[int... | [
"0.60947204",
"0.5685454",
"0.5571304",
"0.5546579",
"0.5397458",
"0.5285723",
"0.52835983",
"0.52233857",
"0.521591",
"0.5208583",
"0.515553",
"0.5073136",
"0.5025099",
"0.50037295",
"0.5003576",
"0.49873063",
"0.4981035",
"0.49687698",
"0.49392802",
"0.49189815",
"0.4916422... | 0.5535204 | 4 |
Deletes the board at the end of the test. | def Jcbl(xUwc):
xUwc.delete_many({'board_id': 'test_board_id'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vBvF(YKHO):\n while YKHO.landed:\n aNnJ, yetk = YKHO.landed.popitem()\n YKHO.delete_block(yetk)\n del yetk\n return 'board cleared'",
"def E7ji(YKHO):\n YKHO._sendCommand('clear_board')",
"def vBvF(YKHO):\n for WKvO in range(8):\n for LVAh in range(8):\n Y... | [
"0.7299018",
"0.70651233",
"0.6948672",
"0.6947768",
"0.6792642",
"0.67390335",
"0.6676883",
"0.662804",
"0.66109383",
"0.66047853",
"0.6590823",
"0.65535384",
"0.6551924",
"0.6540832",
"0.6451537",
"0.6439506",
"0.6406823",
"0.6396907",
"0.63375187",
"0.6323748",
"0.627041",... | 0.6939215 | 4 |
Clear the vertices and edges of the network, without clearing the other elements in the layer. | def Y7Bk(YKHO):
YKHO.clear_vertices()
YKHO.clear_edges() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Bk(YKHO):\n YKHO.clear_nodes()\n YKHO.clear_edges()\n YKHO.clear_nodelabels()\n YKHO.clear_edgelabels()",
"def Y7Bk(YKHO):\n YKHO.adj.clear()\n YKHO.node.clear()\n YKHO.graph.clear()",
"def pSmj(YKHO):\n raise NotImplementedError",
"def Y7Bk(YKHO):\n YKHO._adj.clear()\n YK... | [
"0.7628287",
"0.759518",
"0.75431776",
"0.75298584",
"0.7501428",
"0.7474303",
"0.74680203",
"0.7430439",
"0.7402168",
"0.73473674",
"0.732594",
"0.7310854",
"0.7195379",
"0.7183897",
"0.7165828",
"0.7157443",
"0.7142421",
"0.71336",
"0.71065915",
"0.7016222",
"0.6972341",
... | 0.8075529 | 1 |
Test that ledger actions generated by coinbase are taken into account in accounting | def hQcW(Oezf):
k3U2 = Oezf.rest_api.rotkehlchen
LA6d = k3U2.exchange_manager.get_exchange('coinbase', _JMH.COINBASE)
with Po4F.object(LA6d.session, 'get', side_effect=HbNR):
u3tA, YTVa = KzKA(rotki=k3U2, start_ts=0, end_ts=1611426233)
j7Lt = 10
assert u3tA['total_actions'] == j7Lt
EMlH ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wJkO(YKHO):\n pass",
"def GUgY(YKHO, yNaL):\n oRMO = {GPtr.dev.coinbase_address: MYG9.get_default(GPtr.dev.coinbase_address), YKHO.alice.address: MYG9.get_default(YKHO.alice.address)}\n oRMO[GPtr.dev.coinbase_address].pbdata.balance = 1000000000000000\n UShr = SWlY.create(GPtr.dev, YKHO.amount, Y... | [
"0.7330148",
"0.70194256",
"0.67874897",
"0.66855973",
"0.6585194",
"0.65312696",
"0.65296096",
"0.6483151",
"0.6425878",
"0.6420956",
"0.6414379",
"0.6413209",
"0.64061034",
"0.64004517",
"0.6400432",
"0.63999724",
"0.63717055",
"0.6370323",
"0.6366583",
"0.6363653",
"0.6352... | 0.8079934 | 0 |