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 |
|---|---|---|---|---|---|---|
Evaluate the action set by rule of prisoner's dilemma. We define ``action 0`` for staying silent and ``action 1`` for betraying. We have two agents ``A`` and ``B``. If both stay silent, both ``A`` and ``B`` will get ``1`` reward. If both betrays, both ``A`` and ``B`` will get ``2`` reward. If one stay silent and one be... | def eval(YKHO, zPM_: list):
vwlo = None
jzdc = zPM_[0]
Fg_i = zPM_[1]
if jzdc == 0 and Fg_i == 0:
vwlo = [-1, -1]
elif jzdc == 1 and Fg_i == 0:
vwlo = [0, -3]
elif jzdc == 0 and Fg_i == 1:
vwlo = [-3, 0]
elif jzdc == 1 and Fg_i == 1:
vwlo = [-2, -2]
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u_ln(YKHO, c39l):\n Elif = oyIN.random.choice(c39l)\n r8IL = None\n Ouq7 = -999\n Ylbp = YKHO.get_resources(YKHO)\n for XeOP in YKHO.actions.keys():\n euzn = YKHO.utility(YKHO.add_resources(Ylbp, YKHO.rewards[XeOP]))\n if euzn > Ouq7:\n Ouq7 = euzn\n r8IL = Xe... | [
"0.69201314",
"0.6875086",
"0.6612648",
"0.6608651",
"0.6563728",
"0.6555675",
"0.6537522",
"0.6516606",
"0.6507535",
"0.6507535",
"0.6485125",
"0.64825493",
"0.6457544",
"0.64377147",
"0.63908136",
"0.6373931",
"0.6360235",
"0.6357326",
"0.63561904",
"0.6349775",
"0.6327101"... | 0.0 | -1 |
Update images on the screen and flip to the new screen. | def udoe(LnKZ, Vjhr, C7MP, SaI9, WFC2):
Vjhr.fill(LnKZ['bg_color'])
C7MP.blitme()
SaI9.draw(Vjhr)
for YBnT in WFC2.sprites():
YBnT.draw_bullet()
a9eO.display.flip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZ12(YKHO):\n G9jH.info('Refreshing Screen')\n Mtfr = YKHO.screen.copy()\n if s7Ie:\n Mtfr = Mtfr.transpose(uGYG.Image.ROTATE_180)\n Mtfr.thumbnail((YKHO.inky.WIDTH, YKHO.inky.HEIGHT), hnIv.ANTIALIAS)\n YKHO.inky.set_image(Mtfr)\n YKHO.inky.show()",
"def udoe(YKHO) -> None:\n a9eO... | [
"0.77359694",
"0.74720365",
"0.7245987",
"0.7223214",
"0.71996194",
"0.7197077",
"0.71908253",
"0.7138785",
"0.71256727",
"0.71133715",
"0.70676285",
"0.70668113",
"0.7066748",
"0.7021775",
"0.7017807",
"0.70174044",
"0.7002188",
"0.6997217",
"0.69945073",
"0.69572175",
"0.69... | 0.0 | -1 |
This function renames columns of a pandas dataframe It converts column names to snake case if rename_dict is not passed. | def B06S(jQ3Z, _C3g={}, OY8a=True):
if not _C3g:
return jQ3Z.rename(columns={fvDH: fvDH.lower().replace(' ', '_') for fvDH in jQ3Z.columns.values.tolist()}, inplace=OY8a)
else:
return jQ3Z.rename(columns=_C3g, inplace=OY8a) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N03j(YKHO, _C3g={}, OY8a=True):\n if not _C3g:\n return YKHO.df.rename(columns={fvDH: fvDH.lower().replace(' ', '_') for fvDH in YKHO.df.columns.values.tolist()}, inplace=OY8a)\n else:\n return YKHO.df.rename(columns=_C3g, inplace=OY8a)",
"def NObe(YKHO):\n YKHO.df.rename(columns=str.l... | [
"0.79926485",
"0.76838887",
"0.7675055",
"0.7569671",
"0.74038994",
"0.7339551",
"0.7321974",
"0.7293511",
"0.71962464",
"0.71962464",
"0.7145812",
"0.6960364",
"0.6946874",
"0.69465566",
"0.68998444",
"0.68966126",
"0.6893116",
"0.6884495",
"0.6860951",
"0.6842642",
"0.67900... | 0.82397 | 0 |
Returns the normalized tensor. Arguments | def KVH6(YKHO, WKvO):
if WKvO.dim() == 3:
JBMS = ht2j.mean(WKvO, (1, 2), keepdim=True)
SRYB = ht2j.mean((WKvO - JBMS) ** 2, (1, 2), keepdim=True)
if YKHO.elementwise_affine:
WKvO = YKHO.weight * (WKvO - JBMS) / ht2j.sqrt(SRYB + YKHO.eps) + YKHO.bias
else:
WKvO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZoP(PU1l: tf.Tensor) -> ZylS.Tensor:\n return PU1l",
"def Y7f8(YKHO) -> aLMY:\n ...",
"def hnuU(vhpA, JBMS, M1Jx):\n if vhpA.dtype == ht2j.uint8:\n vhpA = vhpA.float()\n vhpA = vhpA / 255.0\n if type(JBMS) == list:\n JBMS = ht2j.tensor(JBMS)\n if type(M1Jx) == list:\n ... | [
"0.74489933",
"0.7389497",
"0.7027363",
"0.6830473",
"0.6734429",
"0.67339104",
"0.66546136",
"0.6652595",
"0.663891",
"0.6631811",
"0.66202366",
"0.6610228",
"0.6582848",
"0.65743965",
"0.6551037",
"0.6501826",
"0.64992315",
"0.64989537",
"0.6469703",
"0.64488035",
"0.642151... | 0.0 | -1 |
Returns the normalized tensor. Arguments | def KVH6(YKHO, WKvO):
if WKvO.dim() == 4:
WKvO = WKvO.permute(0, 2, 3, 1).contiguous()
WKvO = super().forward(WKvO)
WKvO = WKvO.permute(0, 3, 1, 2).contiguous()
if WKvO.dim() == 3:
WKvO = ht2j.transpose(WKvO, 1, 2)
WKvO = super().forward(WKvO)
WKvO = ht2j.transpos... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZoP(PU1l: tf.Tensor) -> ZylS.Tensor:\n return PU1l",
"def Y7f8(YKHO) -> aLMY:\n ...",
"def hnuU(vhpA, JBMS, M1Jx):\n if vhpA.dtype == ht2j.uint8:\n vhpA = vhpA.float()\n vhpA = vhpA / 255.0\n if type(JBMS) == list:\n JBMS = ht2j.tensor(JBMS)\n if type(M1Jx) == list:\n ... | [
"0.74489933",
"0.7389497",
"0.7027363",
"0.6830473",
"0.6734429",
"0.67339104",
"0.66546136",
"0.6652595",
"0.663891",
"0.6631811",
"0.66202366",
"0.6610228",
"0.6582848",
"0.65743965",
"0.6551037",
"0.6501826",
"0.64992315",
"0.64989537",
"0.6469703",
"0.64488035",
"0.642151... | 0.0 | -1 |
This function takes a list of words, wordlist, and returns the longest word. If multiple words have the same longest length, it returns the first word in the list with that length. It does not return the length of the word! | def f39K(cfuW):
F8W1 = max((len(yzQ0) for yzQ0 in cfuW))
for YRbF in cfuW:
if len(YRbF) == F8W1:
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E66W(vwCE: List[str]) -> str:\n M0CA = ''\n for GIN8 in vwCE:\n if len(GIN8) > len(M0CA):\n M0CA = GIN8\n return M0CA",
"def atiI(vwCE):\n if type(vwCE) != list:\n vwCE = vwCE.split(' ')\n kzlT = {}\n for YRbF in vwCE:\n if YRbF not in kzlT:\n kzlT... | [
"0.8711892",
"0.8306948",
"0.81212795",
"0.8083869",
"0.79921365",
"0.7959005",
"0.78259337",
"0.7822914",
"0.77981216",
"0.77048117",
"0.7680378",
"0.7516095",
"0.75117457",
"0.7482178",
"0.7460063",
"0.7440338",
"0.7438756",
"0.74228483",
"0.7401151",
"0.7364716",
"0.733093... | 0.8944217 | 0 |
Yields a mock driver class which allows us to run unit tests instead of calling out to the selenium drivers. | def HAdA():
class MockDriver:
def FIMM(YKHO):
YKHO.value: str = None
YKHO.file_location = None
YKHO.file_loc_return = False
YKHO.width = None
YKHO.height = None
YKHO.is_quit = False
YKHO.title = 'mock_webdriver_title'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMhX():\n\n class MockDriver:\n\n def FIMM(YKHO):\n pass\n\n def nhfz(YKHO, VMKV, NArs=None):\n return True\n yield OvnL()",
"def uveC():\n\n class MockDriver:\n\n def FIMM(YKHO):\n pass\n\n def nhfz(YKHO, VMKV, NArs=None):\n ra... | [
"0.7876176",
"0.76702213",
"0.749905",
"0.68920296",
"0.68191725",
"0.68191725",
"0.6708052",
"0.6637193",
"0.66264373",
"0.6598135",
"0.64968365",
"0.63468885",
"0.6306047",
"0.6278052",
"0.62329555",
"0.6227503",
"0.6221814",
"0.6200989",
"0.6179372",
"0.6174862",
"0.616977... | 0.7534806 | 2 |
Mocks the CacheJob to be used with unit tests. | def WiOF():
class MockCachedJob:
def FIMM(YKHO, *qIxc, **B2fa):
YKHO.status = None
YKHO.job_details = {'fake': 'value', 'output_type': 'redis', 'output_name': 'job:output:blah'}
YKHO.current_job_id = 'fake_job_id'
def iUCO(YKHO, *qIxc, **B2fa):
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAxb():\n\n class MockJobQueue:\n\n def FIMM(YKHO, *qIxc, **B2fa):\n YKHO.pending_jobs = 0\n YKHO.redis = None\n YKHO.job_list_key = 'fake_job_id'\n\n def S18u(YKHO, *qIxc, **B2fa):\n return\n yield j4LL()",
"def yPBo(YKHO):\n pass",
"def g... | [
"0.7347689",
"0.68841594",
"0.6822448",
"0.66442925",
"0.6621806",
"0.6319468",
"0.62865376",
"0.62429714",
"0.6225865",
"0.6194764",
"0.61923075",
"0.61657846",
"0.6155559",
"0.6145724",
"0.6112094",
"0.6098932",
"0.60721606",
"0.60359323",
"0.60283774",
"0.5995632",
"0.5979... | 0.74699366 | 0 |
Mocks the CacheJob to be used with unit tests. | def IAxb():
class MockJobQueue:
def FIMM(YKHO, *qIxc, **B2fa):
YKHO.pending_jobs = 0
YKHO.redis = None
YKHO.job_list_key = 'fake_job_id'
def S18u(YKHO, *qIxc, **B2fa):
return
yield j4LL() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WiOF():\n\n class MockCachedJob:\n\n def FIMM(YKHO, *qIxc, **B2fa):\n YKHO.status = None\n YKHO.job_details = {'fake': 'value', 'output_type': 'redis', 'output_name': 'job:output:blah'}\n YKHO.current_job_id = 'fake_job_id'\n\n def iUCO(YKHO, *qIxc, **B2fa):\n ... | [
"0.74699366",
"0.68841594",
"0.6822448",
"0.66442925",
"0.6621806",
"0.6319468",
"0.62865376",
"0.62429714",
"0.6225865",
"0.6194764",
"0.61923075",
"0.61657846",
"0.6155559",
"0.6145724",
"0.6112094",
"0.6098932",
"0.60721606",
"0.60359323",
"0.60283774",
"0.5995632",
"0.597... | 0.7347689 | 1 |
Tests that a WebDriver that is not ready will not execute rendering | def JOOp(uveC, KTnm):
def h0MW(*qIxc, **B2fa):
return ''
class MockStorage:
def FIMM(YKHO):
pass
def tyeH(YKHO, *qIxc, **B2fa):
return 'blah'
def xkzz(YKHO, *qIxc, **B2fa):
return True
_1tc.run(sleep=5, job_queue=IAxb, job=WiOF, render... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uveC():\n\n class MockDriver:\n\n def FIMM(YKHO):\n pass\n\n def nhfz(YKHO, VMKV, NArs=None):\n raise Exception('Fake Exception')\n yield OvnL()",
"def TXRA(YKHO):\n SYsl = p9lC(show=False)\n YKHO.assertEqual(type(SYsl), ngu_)",
"def AAJf():\n R3wq(E_qD, 3... | [
"0.669386",
"0.6416462",
"0.63817465",
"0.63609576",
"0.6289255",
"0.6262947",
"0.6160901",
"0.6152827",
"0.61397624",
"0.6105499",
"0.6047782",
"0.6037359",
"0.60307354",
"0.59872955",
"0.59830993",
"0.5979531",
"0.5931557",
"0.5889789",
"0.5889185",
"0.5864896",
"0.5850003"... | 0.71145564 | 0 |
Page with user's profile. | def FeZC(QePW, NtEF):
if QePW.user.is_authenticated() and NtEF == QePW.user.username:
return YxIp(QePW)
else:
TzJf = eoaG('403.html', {}, context_instance=K1Ja(QePW))
return G2TX(TzJf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGll():\n return TvZl('user_profile_page.html')",
"def Yvih():\n if not T_ME():\n return vKnz(nKyW('page_index'))\n cd1l = lpuL()\n return TvZl('profile.html', logged_in=True, account=cd1l, topup_form=bfbP())",
"def QyAW():\n return TvZl('user_profile_page.html')",
"def vJua():\n ... | [
"0.84776807",
"0.8405718",
"0.8342574",
"0.8261138",
"0.82432723",
"0.82066673",
"0.8077387",
"0.80762863",
"0.8072454",
"0.8070826",
"0.8065691",
"0.8037051",
"0.8031266",
"0.8026055",
"0.7942938",
"0.79210436",
"0.7893495",
"0.7890158",
"0.78842676",
"0.7859313",
"0.7803815... | 0.0 | -1 |
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents). | def fHT3(rfNN):
return rfNN.getScore() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)",
"def fHT3(rfNN):\n return rfNN.getScore()",
"def fHT3(rfNN: GameState):\n re... | [
"0.8074817",
"0.8053869",
"0.8053869",
"0.7937262",
"0.7678457",
"0.76620513",
"0.7644102",
"0.76350343",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7503303",
"0.74899554",
"0.74899554",... | 0.7554624 | 22 |
Method returns dict representation of the message | def U34r(YKHO) -> Zf1r:
U34r = super().info()
U34r['cluster_id'] = YKHO.cluster_id
U34r['consumer_tag'] = YKHO.consumer_tag
U34r['delivery_tag'] = YKHO.delivery_tag
U34r['exchange'] = YKHO.exchange
U34r['redelivered'] = YKHO.redelivered
U34r['routing_key'] = YKHO.routing_key
return U34r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n im04 = dict()\n im04['message'] = YKHO.message\n return im04",
"def MNRr(YKHO):\n tbx9 = {'message': YKHO.message, 'error': YKHO.error, 'kind': 'SimpleMessage'}\n return tbx9",
"def MNRr(YKHO):\n UxQk = dict(YKHO.payload or ())\n UxQk['message'] = YKHO.message\n return... | [
"0.8310806",
"0.7945782",
"0.79414964",
"0.7936866",
"0.79077125",
"0.7800837",
"0.7772847",
"0.76997364",
"0.7563072",
"0.75124395",
"0.74343735",
"0.7423735",
"0.73906773",
"0.7355066",
"0.73214626",
"0.7317725",
"0.73163867",
"0.729387",
"0.7262651",
"0.7253004",
"0.722268... | 0.63509506 | 100 |
numberOfDigits determines how many digits the user is looking for. In the case of this problem, the example would have been 4, and the problem will be 13. The reallyLongNumber is the string that contains all of the digits in the number. | def CM5n(qmX9, VsPO):
R68m = 0
for RaTN in range(len(VsPO[:-13])):
HBRh = VsPO[RaTN:RaTN + 13]
if '0' in HBRh:
continue
else:
Lx3t = 1
for Ur62 in HBRh:
Lx3t *= int(Ur62)
if Lx3t > R68m:
R68m = Lx3t
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xhh8(FGW3):\n return len(str(abs(FGW3)))",
"def XT8m(YKHO, FGW3):\n return len(str(FGW3))",
"def XCMo(kAne):\n return len(str(abs(int(kAne))))",
"def BkWp(exwG):\n if exwG < 10:\n return 1\n return BkWp(exwG // 10) + 1",
"def BHGE(exwG, L5_S=100):\n Csk6 = ''\n pAX6 = 10\n ... | [
"0.64344186",
"0.6401695",
"0.6237687",
"0.6164644",
"0.5982504",
"0.59005785",
"0.5887615",
"0.58232373",
"0.5810442",
"0.5804569",
"0.5799783",
"0.579631",
"0.57893026",
"0.5748397",
"0.5737982",
"0.573623",
"0.57325053",
"0.57252884",
"0.5705683",
"0.5701371",
"0.5688001",... | 0.61727685 | 3 |
r"""Create an bias tensor to be added to attention logits. Allows a query to attend to all positions up to and including its own. | def hDjf(u54L: int, GzEP: float=-1e+18) -> ht2j.Tensor:
return YRMz(u54L, -1, 0, GzEP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gFLr(a1PO: torch.Tensor) -> ht2j.Tensor:\n exwG = len(a1PO)\n YxYY = ht2j.ones(exwG)\n return ht2j.cat([a1PO, YxYY], dim=1)",
"def oug5(YKHO, _0VL):\n return ZylS.nn.embedding_lookup(YKHO._embedding_b, _0VL)",
"def j7x_(YKHO, mWFP, Htse):\n return r13G.Params().Set(name=mWFP, dims=Htse)",
... | [
"0.70163256",
"0.6740406",
"0.6230678",
"0.62272555",
"0.6196531",
"0.6185379",
"0.61777884",
"0.6139866",
"0.6134957",
"0.6121922",
"0.61209446",
"0.61166745",
"0.61018765",
"0.61018765",
"0.6092081",
"0.6044058",
"0.6041516",
"0.6040387",
"0.60235476",
"0.60043365",
"0.5996... | 0.0 | -1 |
r"""Create an bias tensor to be added to attention logits. A position may attend to positions at most max_distance from it, forward and backwards. This does not actually save any computation. | def YRMz(u54L: int, nzSb: int, NHqX: int, GzEP: float=-1e+18) -> ht2j.Tensor:
Ebru = kI7c(u54L, u54L, nzSb, NHqX, out_shape=(1, 1, u54L, u54L))
return GzEP * (1.0 - Ebru) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7ph(ROpF):\n h0_e = ZylS.random_uniform_initializer(-0.05, 0.05)\n return ZylS.get_variable('biases', ROpF, initializer=h0_e)",
"def KR18(YKHO, ROpF):\n return ZylS.Variable(ZylS.constant(0.0, shape=ROpF, dtype=ZylS.float32), trainable=True, name=RKfk)",
"def gFLr(a1PO: torch.Tensor) -> ht2j.Tens... | [
"0.61931086",
"0.61821693",
"0.6178524",
"0.6158408",
"0.61460495",
"0.6120135",
"0.6101541",
"0.6055445",
"0.60473007",
"0.60303414",
"0.601648",
"0.6016334",
"0.5993736",
"0.59927726",
"0.598011",
"0.5977236",
"0.5968498",
"0.5945504",
"0.59420156",
"0.5934001",
"0.5931688"... | 0.6072737 | 7 |
r"""Create an bias tensor to be added to attention logits. | def mJcn(lMSL: torch.Tensor, GzEP: float=-1e+18) -> ht2j.Tensor:
U5bT = lMSL * GzEP
return U5bT.view(U5bT.size(0), 1, 1, U5bT.size(-1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gFLr(a1PO: torch.Tensor) -> ht2j.Tensor:\n exwG = len(a1PO)\n YxYY = ht2j.ones(exwG)\n return ht2j.cat([a1PO, YxYY], dim=1)",
"def oug5(YKHO):\n if YKHO.parameters.bias is not None:\n return ZylS.Variable(YKHO.parameters.bias, name='weights', dtype=ZylS.float32)\n else:\n ziOa = ... | [
"0.7672965",
"0.7041174",
"0.6974839",
"0.6877817",
"0.6859326",
"0.6854473",
"0.68286896",
"0.68257403",
"0.67997676",
"0.67625535",
"0.67588365",
"0.66761565",
"0.66699576",
"0.6640074",
"0.6631851",
"0.66192204",
"0.6599399",
"0.65945065",
"0.6574465",
"0.6574465",
"0.6570... | 0.0 | -1 |
Build a Convolution object. | def xhnE(GPtr, H5ew, P8oC, PrmE, WYg1, bo34):
qv1X = {'items': list}
y7GR = {'flux': float}
SxBR.config.CheckAllParams(GPtr, H5ew, req=qv1X, opt=y7GR, ignore=PrmE)
wP_K = []
DumB = GPtr['items']
if not isinstance(DumB, list):
raise AttributeError('items entry for config.%s entry is not a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kN9j(YKHO, YoQM: List[str], uHLf: List[int], KUnM: List[int], FEri: Union[List[Union[int, None]], None]=None, iBpv: Union[List[Union[int, None]], None]=None, dm08: Union[List[Union[int, None]], None]=None, idFg: bool=False, QIV8: Union[None, int]=None, gXS6: int=1, hr1G: float=0.0, lpha: bool=False, K0do: str=... | [
"0.67637694",
"0.6681773",
"0.6501148",
"0.6490476",
"0.64785266",
"0.63851535",
"0.6350519",
"0.63346744",
"0.631762",
"0.6283073",
"0.62739503",
"0.62665766",
"0.62563354",
"0.6196107",
"0.61687046",
"0.6108183",
"0.60190594",
"0.60137755",
"0.5977221",
"0.59437877",
"0.592... | 0.6783901 | 0 |
Return the number of even integers in the given list | def HN06(xYvp):
return len([mLGw for mLGw in xYvp if mLGw % 2 == 0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JonZ(mSrU):\n C_CQ = []\n for YRbF in mSrU:\n if YRbF % 2 != 0:\n C_CQ.append(YRbF)\n return len(C_CQ)",
"def KXw8(muhn):\n ANfV = 0\n for YRbF in range(len(muhn)):\n if muhn.count(muhn[YRbF]) % 2 != 0:\n ANfV = muhn[YRbF]\n return ANfV",
"def BRRY(WKvO... | [
"0.78868943",
"0.7859407",
"0.7783689",
"0.7643746",
"0.7569269",
"0.7518754",
"0.7512521",
"0.73792523",
"0.7327491",
"0.7303344",
"0.72660893",
"0.7266052",
"0.70652777",
"0.6952481",
"0.6950989",
"0.6927697",
"0.6887467",
"0.6808519",
"0.67780584",
"0.6773989",
"0.6750388"... | 0.7506964 | 7 |
Returns normalized pixel observations. | def SZFh(YKHO, WKvO):
return WKvO.float() / 255.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n exwG = []\n for YRbF in range(YKHO.dim):\n exwG.append(YKHO.data[YRbF] * (1 / YKHO.mag))\n return exwG",
"def NkkI(LNo8):\n return [WKvO / VvR1 for WKvO in LNo8]",
"def Ku21(nPrm):\n for YRbF in range(0, len(nPrm)):\n nPrm[YRbF] = oyIN.true_divide(nPrm[YRbF], 255)... | [
"0.7201375",
"0.70922464",
"0.70493555",
"0.697126",
"0.69466484",
"0.68586504",
"0.6806171",
"0.6798756",
"0.679754",
"0.6791801",
"0.6781537",
"0.6765652",
"0.67634547",
"0.6763303",
"0.6760623",
"0.67381775",
"0.6729851",
"0.6691472",
"0.66659814",
"0.6659631",
"0.66550136... | 0.0 | -1 |
Returns normalized observation tensor. | def SZFh(YKHO, WKvO):
assert YKHO.minimum is not None and YKHO.maximum is not None
vELP = ht2j.tensor(YKHO.minimum, dtype=ht2j.float32, device=WKvO.device)
PtQX = ht2j.tensor(YKHO.maximum, dtype=ht2j.float32, device=WKvO.device)
return (WKvO - vELP) / (PtQX - vELP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7f8(YKHO) -> aLMY:\n ...",
"def QZoP(PU1l: tf.Tensor) -> ZylS.Tensor:\n return PU1l",
"def mOCs(rNYq):\n if isinstance(rNYq, tuple):\n rNYq = rNYq[0]\n rNYq = rNYq[:, :, 3:4] / rNYq[:, :, 0:1]\n rNYq = NkkI(rNYq)\n return rNYq",
"def BKGp(YKHO, W061):\n W061 -= YKHO.obs_runni... | [
"0.7385842",
"0.73267436",
"0.72738",
"0.68736553",
"0.66515344",
"0.6650194",
"0.66354954",
"0.66261756",
"0.6620291",
"0.6560378",
"0.654393",
"0.65243655",
"0.65176904",
"0.6484256",
"0.6413504",
"0.6378274",
"0.6361975",
"0.6338035",
"0.63171566",
"0.63081324",
"0.6297216... | 0.0 | -1 |
Check file against list of allowed extensions | def EAEZ(YKHO, nUeQ, CBZq):
if CBZq is None:
return True
if type(CBZq) is list and len(CBZq) == 0:
return True
if type(CBZq) is not list:
CBZq = [str(CBZq)]
tTpl = Hy7s.path.splitext(nUeQ)[1][1:]
for YBcr in CBZq:
if tTpl == YBcr:
return True
return Fa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XT0o(Va2z):\n return Va2z.strip('.') in UWr8",
"def XT0o(Ux0P, NexC):\n return '.' in Ux0P and Hy7s.path.splitext(Ux0P)[1].lower() in NexC",
"def XT0o(Ux0P):\n return Ux0P.endswith(UWr8)",
"def XT0o(Ux0P, JZxJ):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in JZxJ",
"def XT0o(Ux0P):\n ... | [
"0.84683204",
"0.842344",
"0.8219906",
"0.81743765",
"0.8163015",
"0.8163015",
"0.8162554",
"0.8162554",
"0.8162252",
"0.8152281",
"0.8144987",
"0.8144987",
"0.8144987",
"0.81397396",
"0.8139307",
"0.8139307",
"0.8139307",
"0.8139307",
"0.8139307",
"0.8139307",
"0.8139307",
... | 0.8071072 | 30 |
the x coordinate of this ``Turtle`` within its ``World`` | def WKvO(YKHO) -> float:
return YKHO.__x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKvO(YKHO):\n return YKHO.position.x",
"def WKvO(YKHO):\n return YKHO.__position.x",
"def WKvO(YKHO):\n return YKHO.position.x",
"def WKvO(YKHO) -> int:\n return YKHO.position.x",
"def nIKw(YKHO):\n return YKHO.x_coord",
"def nIKw(YKHO):\n return YKHO._coordinate.get_x()",
"def mR... | [
"0.8182862",
"0.8177562",
"0.8162124",
"0.8018091",
"0.8016645",
"0.7921954",
"0.78918093",
"0.7840954",
"0.7764435",
"0.7764435",
"0.775378",
"0.77523494",
"0.77371246",
"0.7645754",
"0.75337493",
"0.74905616",
"0.74681675",
"0.74426687",
"0.7441714",
"0.741096",
"0.7403517"... | 0.0 | -1 |
Retrieves the current status of the message. | def jGRS(YKHO, OSJW, **NArs):
return YKHO.get(im0v.format(reference_id=OSJW), **NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return cpvk.status(YKHO.message)",
"def Jxmr(YKHO):\n jGRS = YKHO._sendandreceive('getstatus')\n return jGRS",
"def QtQ8(YKHO):\n YKHO.send_getStatus()\n return YKHO.recv_getStatus()",
"def BxDu(YKHO):\n return YKHO.clientBackend.getStatusMsg()",
"def VLTN(YKHO):\n YK... | [
"0.822554",
"0.81031543",
"0.80926156",
"0.80535555",
"0.7961089",
"0.7882423",
"0.7882423",
"0.786144",
"0.7837837",
"0.78263324",
"0.7823682",
"0.7823682",
"0.7823682",
"0.7812691",
"0.7812691",
"0.7812691",
"0.7812691",
"0.7771247",
"0.77533114",
"0.77209616",
"0.7712087",... | 0.0 | -1 |
The publicationFacet resource provides details on the published status of a driveItemVersion or driveItem resource. | def FIMM(YKHO, ABDL=None, mljj=None):
super(AN6V, YKHO).__init__()
YKHO.level = ABDL
YKHO.versionId = mljj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZdU7(YKHO):\n return getattr(YKHO, YKHO.publication_status_field)",
"def Q5an(YKHO):\n if YKHO._publication is None and YKHO._from_fbs:\n YKHO._publication = YKHO._from_fbs.Publication()\n return YKHO._publication",
"def xBxz(YKHO):\n return YKHO._published",
"def xBxz(YKHO):\n retu... | [
"0.6212517",
"0.5672791",
"0.56674576",
"0.5663269",
"0.55798006",
"0.55773497",
"0.5473706",
"0.5468055",
"0.5463882",
"0.5342462",
"0.53391033",
"0.53291965",
"0.5328256",
"0.5277904",
"0.52677417",
"0.5245985",
"0.52374643",
"0.52354664",
"0.519938",
"0.51621646",
"0.51386... | 0.49540025 | 35 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
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].v... | {
"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 |
Get the longitude in function of latitude and true anomaly | def emlE(YKHO, kTwQ: float, QnmL: float) -> float:
i0Uw, aM8h = YKHO._determine_correction_for_lo(oyIN.radians(YKHO.AOP), oyIN.radians(kTwQ))
return oyIN.degrees(i0Uw + aM8h * oyIN.arcsin(oyIN.tan(oyIN.radians(QnmL)) / oyIN.tan(oyIN.radians(YKHO.inc)))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fskc(YKHO):\n if 'GPSInfo' in YKHO.exif_data:\n _ILp = YKHO.exif_data['GPSInfo']\n pqzv = YKHO.get_if_exist(_ILp, 'GPSLongitude')\n Wsbx = YKHO.get_if_exist(_ILp, 'GPSLongitudeRef')\n if pqzv and Wsbx:\n FDPT = YKHO.convert_to_degress(pqzv)\n if Wsbx != 'E':... | [
"0.73755497",
"0.7369834",
"0.7341451",
"0.73270535",
"0.7302689",
"0.7302689",
"0.7172863",
"0.7143395",
"0.7118265",
"0.7111248",
"0.70647025",
"0.7025496",
"0.7007446",
"0.69903725",
"0.69355375",
"0.6921842",
"0.69139475",
"0.6905338",
"0.6820684",
"0.68197346",
"0.679685... | 0.6915479 | 16 |
Make turtle t draw a Koch fractal of 'order' and 'size'. Leave the turtle facing the same direction. | def fz4E(a1PO, T4Wy, zNig):
if T4Wy == 0:
a1PO.forward(zNig)
else:
fz4E(a1PO, T4Wy - 1, zNig / 3)
a1PO.left(60)
fz4E(a1PO, T4Wy - 1, zNig / 3)
a1PO.right(120)
fz4E(a1PO, T4Wy - 1, zNig / 3)
a1PO.left(60)
fz4E(a1PO, T4Wy - 1, zNig / 3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fz4E(T4Wy, zNig):\n if T4Wy == 0:\n ZbiO.forward(zNig)\n else:\n fz4E(T4Wy - 1, zNig / 3)\n ZbiO.left(60)\n fz4E(T4Wy - 1, zNig / 3)\n ZbiO.right(120)\n fz4E(T4Wy - 1, zNig / 3)\n ZbiO.left(60)\n fz4E(T4Wy - 1, zNig / 3)",
"def HXWF(T4Wy, zNig):\n... | [
"0.8497346",
"0.75402427",
"0.74150884",
"0.70852286",
"0.6937708",
"0.6801177",
"0.675979",
"0.67382616",
"0.66937065",
"0.6644795",
"0.6627762",
"0.6492719",
"0.6422686",
"0.6402497",
"0.6323475",
"0.6218916",
"0.6162545",
"0.6081266",
"0.6069497",
"0.599798",
"0.5910249",
... | 0.77001023 | 1 |
Test adding an unqualified edge. | def ufHC(YKHO):
SHj3 = PZMH(namespace='TEST', name='YFG')
QRtT = PZMH(namespace='TEST', name='YFG2')
H5ew = YKHO.graph.add_part_of(SHj3, QRtT)
PdDH = YKHO.graph.get_edge_citation(SHj3, QRtT, H5ew)
YKHO.assertIsNone(PdDH)
zF7g = YKHO.graph.get_edge_evidence(SHj3, QRtT, H5ew)
YKHO.assertIsNone... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1W_(yY0L):\n assert yY0L.add_edge('A', 'B', 10) == 'Edge already exist'",
"def LRZc(YKHO):\n YKHO.G.add_edge(1, 2, mo='Jan', check=False)\n assert YKHO.G[1][2][1] == {'mo': 'Jan'}",
"def nLH0(pNZh):\n for HEZd in ODFU.Side:\n pNZh.add_edge(pNZh['main_function'], HEZd, ODFU.Edge('missing... | [
"0.78558016",
"0.7704215",
"0.76452243",
"0.75487685",
"0.75212896",
"0.7458889",
"0.74208266",
"0.74197966",
"0.7398094",
"0.7319794",
"0.73194426",
"0.72542554",
"0.7228104",
"0.7209987",
"0.71919674",
"0.7136399",
"0.7124801",
"0.71231484",
"0.7104567",
"0.70537436",
"0.70... | 0.71460336 | 15 |
Iterates over a given ndim dataset patchbypatch with a given stride and builds an array of slice positions. | def H4Z2(__n6, wYpV, jM8m):
SuPp = []
if __n6.ndim == 4:
DYuh, n9YE, EZjL, _XKJ = __n6.shape
else:
n9YE, EZjL, _XKJ = __n6.shape
uzb7, dJjU, _Bh4 = wYpV
zl40, HLYT, OHck = jM8m
_zwH = QXKl._gen_indices(n9YE, uzb7, zl40)
for epBp in _zwH:
yozu = QXKl._gen_indices(EZjL,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QFZG(__n6, wYpV, jM8m):\n SuPp = []\n assert __n6.ndim == 3\n n9YE, EZjL, _XKJ = __n6.shape\n dJjU, _Bh4 = wYpV\n HLYT, OHck = jM8m\n if dJjU is None:\n dJjU = EZjL\n if _Bh4 is None:\n _Bh4 = _XKJ\n if HLYT is None:\n HLYT = dJjU\n if OHck is None:\n OHck... | [
"0.8011208",
"0.7053557",
"0.6778551",
"0.6610695",
"0.6565356",
"0.6565356",
"0.6497945",
"0.6497945",
"0.6497945",
"0.6497945",
"0.6497945",
"0.6497945",
"0.6497945",
"0.63765377",
"0.6175205",
"0.61276907",
"0.61147845",
"0.6066875",
"0.60505724",
"0.601327",
"0.6010043",
... | 0.81139606 | 0 |
Test that parametric pulses can be constructed without error. | def xDpu(YKHO):
Gkmu(duration=25, sigma=4, amp=0.5, angle=oyIN.pi / 2)
rwFe(duration=150, amp=0.2, sigma=8, width=140)
rwFe(duration=150, amp=0.2, sigma=8, risefall_sigma_ratio=2.5)
RIrr(duration=150, amp=0.5, angle=oyIN.pi * 0.23)
J2MQ(duration=25, amp=0.6, sigma=7.8, beta=4, angle=oyIN.pi * 0.54)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sfab(YKHO):\n Os_7 = XDS4('amp')\n WbTE = XDS4('duration')\n WTkW = XDS4('sigma')\n UqYS = XDS4('beta')\n M5FH = J2MQ(duration=WbTE, amp=Os_7, sigma=WTkW, beta=UqYS)\n with YKHO.assertRaises(jKEv):\n M5FH.get_waveform()",
"def oEcH():\n lmlm = N1L3(pulses=9)\n assert lmlm.pulse... | [
"0.71064353",
"0.671332",
"0.6579744",
"0.65653586",
"0.6560501",
"0.6451891",
"0.64270806",
"0.6419242",
"0.64044046",
"0.6339107",
"0.6310953",
"0.62657845",
"0.62580323",
"0.6253539",
"0.6222423",
"0.6217462",
"0.62111676",
"0.6157138",
"0.611306",
"0.6101434",
"0.60940945... | 0.62353 | 14 |
Test that the Drag sample pulse matches the pulse library. | def zWhn(YKHO):
M5FH = J2MQ(duration=25, sigma=4, amp=0.5, beta=1, angle=oyIN.pi / 2)
iTt4 = M5FH.get_waveform()
YKHO.assertIsInstance(iTt4, l2i4)
jBei = dR75(duration=25, sigma=4, amp=0.5j, beta=1, zero_ends=True).samples
oyIN.testing.assert_almost_equal(iTt4.samples, jBei) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cj5P(YKHO):\n WbTE = 25\n WTkW = 4\n Os_7 = 0.5\n YylR = oyIN.pi / 2\n UqYS = 1\n gcpQ = J2MQ(duration=WbTE, sigma=WTkW, amp=Os_7, beta=UqYS, angle=YylR)\n gGnb = gcpQ.get_waveform().samples\n YKHO.assertTrue(max(oyIN.abs(gGnb)) <= 1)\n with YKHO.assertRaises(jKEv):\n gcpQ = J... | [
"0.7409631",
"0.69355",
"0.67944056",
"0.67319405",
"0.6701251",
"0.6561812",
"0.6544275",
"0.646082",
"0.64488155",
"0.6440334",
"0.63668823",
"0.6291833",
"0.62757915",
"0.6273864",
"0.6118455",
"0.6066782",
"0.6059245",
"0.6050412",
"0.59942335",
"0.59372795",
"0.5925754",... | 0.8562612 | 0 |
Remove null items from a dictionary | def dClg(ioID):
iNRS = {}
for H5ew, wEf2 in ioID.items():
if uYVM(wEf2):
continue
iNRS[H5ew] = wEf2
return iNRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iNs_(Csk6: dict):\n KuU0 = []\n for H5ew, wEf2 in Csk6.items():\n if isinstance(wEf2, dict):\n iNs_(wEf2)\n elif wEf2 is None:\n KuU0.append(H5ew)\n for H5ew in KuU0:\n del Csk6[H5ew]\n return Csk6",
"def xnx3(tbx9):\n return {G1Hx: Ty9i for G1Hx, Ty9... | [
"0.8317682",
"0.82855344",
"0.8015551",
"0.80051565",
"0.7956118",
"0.7944693",
"0.7942716",
"0.7942562",
"0.7888249",
"0.78622687",
"0.7851903",
"0.7815504",
"0.7780242",
"0.7657852",
"0.7608867",
"0.7598125",
"0.7554334",
"0.7511006",
"0.7485544",
"0.74788344",
"0.7465311",... | 0.7792622 | 12 |
Return the `OrderedDict` of `Link` objects owned by this `Chain` | def wPdp(YKHO):
return YKHO._links | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _fYl(YKHO):\n return [QZnA.as_dict() for QZnA in YKHO if QZnA]",
"def hati(YKHO):\n tbx9 = {'linked': YKHO._linked, 'actor_id': YKHO._actor_id, 'link_type': YKHO._link_type, 'linked_activity': YKHO.linked_activity.get_dict(), 'link_weight': YKHO._link_weight}\n if YKHO._extra is not None:\n t... | [
"0.7446797",
"0.6639813",
"0.66297793",
"0.65736",
"0.6428146",
"0.6427491",
"0.6371669",
"0.62981087",
"0.62981087",
"0.6293673",
"0.6237091",
"0.6172187",
"0.61675286",
"0.607543",
"0.6075131",
"0.60465676",
"0.60323566",
"0.5985376",
"0.59833336",
"0.59780014",
"0.597035",... | 0.587048 | 32 |
Adds the _symmetry table. | def csVO(YKHO):
try:
o_xu = YKHO.struct.unit_cell.space_group
except AttributeError:
return
rrK4 = YKHO.get_table('symmetry')
rdlD = rrK4.new_row()
rdlD['entry_id'] = YKHO.entry_id
rdlD['space_group_name_H-M'] = o_xu.pdb_name
rdlD['Int_Tables_number'] = o_xu.number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lqkm(YKHO):\n a1PO = YKHO.copy()\n Kr7U = int(len(YKHO.yc) / 2)\n a1PO.d = oyIN.vstack([YKHO.d[Kr7U:, :], YKHO.d[:Kr7U, :]])\n return YKHO.merge([a1PO])",
"def H2v5(YKHO, mWFP):\n YjVK = mWFP.lower()\n if YjVK in YKHO._symbol_tables:\n raise lQQF(f\"The table of top-level (un-nested)... | [
"0.6244489",
"0.61140686",
"0.60351026",
"0.59496564",
"0.59043115",
"0.5849606",
"0.5847548",
"0.5821078",
"0.5731414",
"0.5706075",
"0.55714023",
"0.5523373",
"0.5513018",
"0.5482261",
"0.54787564",
"0.54576147",
"0.5456969",
"0.5439973",
"0.5429341",
"0.54229486",
"0.53885... | 0.8219686 | 0 |
Return true if current_time is in the range [start, end] | def HZ_n(yKcO: int, Os4s: int, vHj7: int) -> bool:
if yKcO <= Os4s:
return yKcO <= vHj7 < Os4s
else:
return yKcO <= vHj7 or vHj7 <= Os4s | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AyXR(yKcO, Os4s):\n _IM_ = G3Eo(yKcO or NE0V)\n bdfP = G3Eo(Os4s or lv1S)\n return _IM_ <= rIAI.now() <= bdfP",
"def HZ_n(P5JL, V_6A, wi17):\n if P5JL <= V_6A:\n return P5JL <= wi17 <= V_6A\n else:\n return P5JL <= wi17 or wi17 <= V_6A",
"def O2k9(yKcO, JCyR):\n wzkt = int(I... | [
"0.83764166",
"0.8322468",
"0.8137952",
"0.8099569",
"0.8094347",
"0.80819046",
"0.7537975",
"0.74710274",
"0.74665105",
"0.74664813",
"0.74302214",
"0.7349374",
"0.73369604",
"0.73303246",
"0.7290345",
"0.7290345",
"0.7290345",
"0.7290345",
"0.7269006",
"0.7262352",
"0.72555... | 0.89074105 | 0 |
The name of the scan command. Can be any valid string. | def Asoz(YKHO):
return YKHO._command_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.__class__.__name__.replace('Command', '').lower()",
"def Asoz(YKHO):\n return YKHO.__class__.__name__.replace('Command', '').upper()",
"def u0Ss(*qIxc, **B2fa):\n pass",
"def PMSI(Emd4):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1-\\\\2', Emd4.__name__)\n return ... | [
"0.6973799",
"0.6873834",
"0.65760934",
"0.65518564",
"0.6503597",
"0.64159596",
"0.63929766",
"0.63833976",
"0.6172584",
"0.6163278",
"0.6097324",
"0.6097098",
"0.6094751",
"0.6051623",
"0.6023743",
"0.59512454",
"0.5937928",
"0.5920903",
"0.5913405",
"0.5913405",
"0.5913405... | 0.67596036 | 2 |
Returns a new list with all the unique elements in l | def kcwm(vC9B):
return list(set(vC9B)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DV61(vC9B):\n return list(set(vC9B))",
"def kcwm(vC9B):\n kcwm = []\n [kcwm.append(ZfUD) for ZfUD in vC9B if ZfUD not in kcwm]\n return kcwm",
"def vaOw(vC9B):\n return list(set(vC9B))",
"def gosy(YKHO, vC9B: list):\n Mkmy = list()\n for tTpl in vC9B:\n if tTpl not in Mkmy:\n ... | [
"0.8560674",
"0.8478749",
"0.843373",
"0.8338958",
"0.8071669",
"0.8053227",
"0.7747283",
"0.7683071",
"0.76544046",
"0.740307",
"0.73441195",
"0.7311823",
"0.7273662",
"0.72382283",
"0.7214178",
"0.7198579",
"0.7132809",
"0.7123836",
"0.7106963",
"0.70785546",
"0.70721716",
... | 0.8722608 | 0 |
Returns a new list of the intersection of a and b | def XMlP(jzdc, Fg_i):
return set(jzdc) & set(Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDmP(YKHO, jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def bDmP(YKHO, jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def XMlP(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def RIsH(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def iov8(jzdc, Fg_i):\n return l... | [
"0.8628852",
"0.8628852",
"0.86210376",
"0.861722",
"0.8586961",
"0.85768473",
"0.85193294",
"0.8460183",
"0.8439976",
"0.84325343",
"0.84325343",
"0.84325343",
"0.84325343",
"0.84325343",
"0.8260579",
"0.8181604",
"0.8181604",
"0.7950519",
"0.79223025",
"0.789586",
"0.773338... | 0.78754485 | 20 |
Destroy the main frame and all the widgets that contains. It is used to before showing a different view in the same window | def RoAk(YKHO):
YKHO.mainFrame.destroy()
YKHO.mainFrame = LQRw(master=YKHO.master)
YKHO.mainFrame.pack() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TO83(YKHO):\n YKHO.mainFrame.destroy()",
"def Leqv(YKHO):\n YKHO.destroy()",
"def xSHO(YKHO):\n assert YKHO._as_parameter_\n LAMV(YKHO)",
"def zjR7(YKHO):\n for TEdI in YKHO.winfo_children():\n TEdI.destroy()",
"def ka5c(YKHO):\n YKHO.__figure_canvas.get_tk_widget().destroy()\n... | [
"0.78369063",
"0.7820287",
"0.77393717",
"0.77270514",
"0.7584963",
"0.75777936",
"0.7564416",
"0.75539714",
"0.75466084",
"0.7532657",
"0.74227625",
"0.73708344",
"0.7325836",
"0.7308869",
"0.7280307",
"0.7268091",
"0.7227406",
"0.7224696",
"0.7212758",
"0.7197621",
"0.71711... | 0.73120004 | 13 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.80113125",
"0.77607703",
"0.77607703",
"0.7687368",
"0.76707524",
"0.76605",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76397043",
"0.762786",
"0.7551623",
"0.7532752",
"0.74565",
"0.73242354",
"0.73171765",
"0.7298... | 0.0 | -1 |
Delete redis session if it exists. | def JKkH(YKHO):
if YKHO.chat_session and YKHO.chat_session.exists():
YKHO.chat_session.delete() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def delete(YKHO, JkXK: str):\n await YKHO.redis.delete(JkXK)",
"def PTpj(YKHO):\n Aofo = (yield eK5b.Task(X3WT._redis_client.delete, YKHO._key))\n S0MI.debug('Deleted session %s (%r)', YKHO.id, Aofo)\n YKHO.clear()\n raise eK5b.Return(Aofo)",
"async def delete_from_redis(Emd4, eOtH: str):\... | [
"0.75849646",
"0.73968637",
"0.73663676",
"0.7237186",
"0.6918835",
"0.6907819",
"0.6903204",
"0.6709209",
"0.6656679",
"0.65772974",
"0.6558456",
"0.65483624",
"0.65436035",
"0.65291023",
"0.652678",
"0.6468135",
"0.6447104",
"0.643674",
"0.64325386",
"0.64231664",
"0.631175... | 0.71464276 | 4 |
Return a fullyqualified region string. | def v1IG(Emd4, bNKA, zn0c):
return yszQ.api_core.path_template.expand('projects/{project}/regions/{region}', project=bNKA, region=zn0c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aGvo(YKHO):\n A2F6 = YKHO._provider.parse_url(YKHO._zone['region'])\n return A2F6.parameters['region']",
"def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> qe4Y.Output[str]:\n ... | [
"0.7443433",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.743673",
"0.7427148",
"0.7402313",
"0.7402313",
"0.7... | 0.68571764 | 52 |
Says whether the bot only responds to admins. | async def islocked(YKHO, OaeV):
b52g = YKHO.settings.getServerStat(OaeV.message.server, 'AdminLock')
if b52g.lower() == 'yes':
tO9_ = 'Admin lock is *On*.'
else:
tO9_ = 'Admin lock is *Off*.'
await YKHO.bot.send_message(OaeV.message.channel, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vSI1():\n\n def lgNN(OaeV):\n return y5l_(OaeV.message.author)\n return wQcs.check(lgNN)",
"async def admin(OaeV):\n if OaeV.message.author.server_permissions.administrator:\n await JyK9.say(\"You're admin on this server.\")\n else:\n await JyK9.say(\"You don't have admin on ... | [
"0.78084916",
"0.77144074",
"0.7405934",
"0.7361357",
"0.72558755",
"0.72082216",
"0.7204943",
"0.7201723",
"0.7140579",
"0.7140233",
"0.7060839",
"0.7059787",
"0.70542413",
"0.7035248",
"0.703281",
"0.7016203",
"0.70030826",
"0.70030826",
"0.70007336",
"0.70007336",
"0.70007... | 0.0 | -1 |
Says whether a member is muted in chat. | async def ismuted(YKHO, OaeV, mS46: discord.Member=None):
if mS46 == None:
tO9_ = 'Usage: `ismuted [member]`'
await YKHO.bot.send_message(OaeV.message.channel, tO9_)
return
if type(mS46) is str:
try:
mS46 = ZOrr.utils.get(Ol8d.server.members, name=mS46)
except... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZmEV(YKHO):\n try:\n YKHO.driver.find_element_by_xpath('//*/button[@aria-label=\"Unmute (m)\"]').send_keys('m')\n print('stream was muted')\n except:\n print('Stream not muted')",
"async def ismuted(YKHO, OaeV, *, mS46=None):\n if mS46 == None:\n tO9_ = 'Usage: `{}ismuted... | [
"0.7645684",
"0.756273",
"0.74431306",
"0.7366266",
"0.7188927",
"0.6940967",
"0.6928991",
"0.69203573",
"0.6904599",
"0.6861634",
"0.6802561",
"0.6725672",
"0.6683028",
"0.660797",
"0.66067016",
"0.6589104",
"0.65867573",
"0.657036",
"0.65545475",
"0.6542293",
"0.6532547",
... | 0.77130526 | 0 |
This tests the lookup of thermo data from the primary thermo library using H as a test species. The comparison is done in units of kcal/mol for enthalpy and free energy and cal/molK for entropy and heat capacity. | def Gb3f(YKHO):
C7Ls = oMqC.Species()
C7Ls.fromSMILES('[H]')
C7Ls.getResonanceIsomers()
C7Ls.generateThermoData(thermoClass=WaZ9)
YKHO.assertAlmostEqual(C7Ls.getEnthalpy(298) / 4184, 52.103, 1)
YKHO.assertAlmostEqual(C7Ls.getEntropy(298) / 4.184, 27.419, 1)
YKHO.assertAlmostEqual(C7Ls.getHea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bzLX(YKHO):\n b9uS = DcQa()\n RZLe = [O5cY().fromSMILES('[OH]'), O5cY().fromSMILES('C'), O5cY().fromSMILES('[CH3]'), O5cY().fromSMILES('[CH2]'), O5cY().fromSMILES('O')]\n for pa_B in RZLe:\n b9uS.makeNewSpecies(pa_B, label=pa_B.molecule[0].toSMILES())\n pa_B.label = pa_B.molecule[0].toSM... | [
"0.70215935",
"0.6860189",
"0.67462534",
"0.67305034",
"0.6672164",
"0.650839",
"0.65005976",
"0.65005976",
"0.6427765",
"0.6415776",
"0.637848",
"0.6319996",
"0.6306859",
"0.62905395",
"0.62360126",
"0.6234176",
"0.62270945",
"0.6223552",
"0.62140715",
"0.61504716",
"0.61311... | 0.74807036 | 0 |
weight_variable generates a weight variable of a given shape. | def E9N2(ROpF):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n return ZylS.get_variable(name='weight', shape=ROpF, initializer=ZylS.truncated_normal_initializer(stddev=0.1))",
"def E9N2(ROpF):\n return ZylS.get_variable('weights', ROpF, initializer=ZylS.contrib.layers.xavier_initializer())",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, ... | [
"0.8430733",
"0.8416174",
"0.8408999",
"0.8343361",
"0.82988006",
"0.82945484",
"0.828571",
"0.827499",
"0.82513815",
"0.81629854",
"0.8158656",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
... | 0.81315583 | 33 |
bias_variable generates a bias variable of a given shape. | def Y7ph(ROpF):
RqgG = ZylS.constant(0.1, shape=ROpF)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG, name='bias')",
"def Y7ph(ROpF):\n with ZylS.name_scope('biases'):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n Es0b = ZylS.Variable(RqgG)\n return Es0b",
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, s... | [
"0.8451323",
"0.8434734",
"0.84232277",
"0.8419826",
"0.8396816",
"0.83408886",
"0.8331264",
"0.8327842",
"0.8327842",
"0.8327842",
"0.8327842",
"0.8327842",
"0.8327842",
"0.8327842",
"0.8327842",
"0.8327842",
"0.8327842",
"0.83267343",
"0.8304659",
"0.8304659",
"0.8304659",
... | 0.8307206 | 18 |
span1 + span2 == minimal span that covers both spans | def FOdN(YKHO, Elif):
if isinstance(Elif, ZMBF):
if not YKHO.tokens.equals(Elif.tokens):
raise ValueError("Can't combine TokenSpans over different sets of tokens")
if YKHO.begin_token == ZMBF.NULL_OFFSET_VALUE or Elif.begin_token == ZMBF.NULL_OFFSET_VALUE:
return ZMBF.make_nu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zq3o(XvdE, eTrU):\n assert len(XvdE) == 2\n assert len(eTrU) == 2\n return (min(XvdE[0], eTrU[0]), max(XvdE[1], eTrU[1]))",
"def tVw1(JBvD, dpq8):\n dJ1p = [0, 0] * len(JBvD) + [1, 1] * len(dpq8)\n mReh = [WKvO for uvMl in JBvD + dpq8 for WKvO in uvMl]\n QTBn = [False, False]\n XVAW = 0\... | [
"0.7791142",
"0.7568033",
"0.7456742",
"0.72755444",
"0.71400565",
"0.6923118",
"0.6809765",
"0.6807485",
"0.6711314",
"0.67042977",
"0.65430397",
"0.63841605",
"0.63682",
"0.63618493",
"0.6359357",
"0.63081",
"0.62958837",
"0.62893224",
"0.6279067",
"0.6266215",
"0.6241176",... | 0.6141331 | 22 |
span1 + span2 == minimal span that covers both spans | def FOdN(YKHO, Elif):
if not isinstance(Elif, (ZMBF, S5TH)):
raise NotImplementedError(f'Adding TokenSpanArray and {type(Elif)} not yet implemented')
if not YKHO.tokens.equals(Elif.tokens):
raise ValueError(f'Cannot add TokenSpans over different sets of tokens (got {YKHO.tokens} and {Elif.tokens... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zq3o(XvdE, eTrU):\n assert len(XvdE) == 2\n assert len(eTrU) == 2\n return (min(XvdE[0], eTrU[0]), max(XvdE[1], eTrU[1]))",
"def tVw1(JBvD, dpq8):\n dJ1p = [0, 0] * len(JBvD) + [1, 1] * len(dpq8)\n mReh = [WKvO for uvMl in JBvD + dpq8 for WKvO in uvMl]\n QTBn = [False, False]\n XVAW = 0\... | [
"0.7791142",
"0.7568033",
"0.7456742",
"0.72755444",
"0.71400565",
"0.6923118",
"0.6809765",
"0.6807485",
"0.6711314",
"0.67042977",
"0.65430397",
"0.63841605",
"0.63682",
"0.63618493",
"0.6359357",
"0.63081",
"0.62958837",
"0.62893224",
"0.6279067",
"0.6266215",
"0.6241176",... | 0.0 | -1 |
Remove cached values of memoized properties to reflect changes to the data on which they are based. | def Bwn8(YKHO) -> None:
bYCt = ['nulls_mask', 'have_nulls', 'begin', 'end']
for exwG in bYCt:
hGI9 = '_{0}'.format(exwG)
if hasattr(YKHO, hGI9):
delattr(YKHO, hGI9)
YKHO._hash = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KB6g(YKHO):\n lhy8 = [XP5J for XP5J in YKHO.__class__.__dict__ if not XP5J.startswith('__')]\n for QWcs in lhy8:\n if isinstance(YKHO.__class__.__dict__[QWcs], VzPU):\n try:\n del YKHO.__dict__[QWcs]\n except KeyError:\n 'Property has not yet bee... | [
"0.7857958",
"0.75744706",
"0.73090523",
"0.7289966",
"0.706996",
"0.6959772",
"0.67489964",
"0.67489964",
"0.67291224",
"0.6723558",
"0.66869795",
"0.66832805",
"0.6641443",
"0.6632562",
"0.6614842",
"0.66134226",
"0.65964675",
"0.6577991",
"0.6573792",
"0.65265816",
"0.6497... | 0.81066203 | 0 |
Conversion of this Array to a pyarrow.ExtensionArray. | def lTms(YKHO, type=None):
from text_extensions_for_pandas.array.arrow_conversion import token_span_to_arrow
return token_span_to_arrow(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GvlY(YKHO):\n qw7D = HWEd.factory(YKHO.dataType, YKHO.shape, YKHO.buffer_.duplicate())\n return qw7D",
"def MF4b(YKHO):\n return XTiz.asarray(YKHO)",
"def Sesp(YKHO):\n return oyIN.array(YKHO._coerce_to_ndarray(), copy=True).__array_interface__",
"def vuQn(YKHO, qw7D: xpArray, yDqo=None, XCtw... | [
"0.7355263",
"0.688518",
"0.6866985",
"0.6851078",
"0.680555",
"0.6787807",
"0.6656967",
"0.656645",
"0.6506815",
"0.64521754",
"0.64521754",
"0.64126265",
"0.63726413",
"0.6369756",
"0.6365456",
"0.63640004",
"0.63636875",
"0.63594514",
"0.63298875",
"0.6327103",
"0.6266759"... | 0.63818043 | 12 |
Calculate slope from altitude. | def Llgc(Giin):
rDOS = [[0 for fvDH in range(xL7R)] for rdlD in range(VCFe)]
for rdlD in range(VCFe):
for fvDH in range(xL7R):
d9yg = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
if rdlD == 0 or rdlD == VCFe - 1 or fvDH == 0 or (fvDH == xL7R - 1):
rDOS[rdlD][fvDH] = d9yg
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMex(YKHO):\n return (YKHO.endpoint.y - YKHO.startpoint.y) / (YKHO.endpoint.x - YKHO.startpoint.x)",
"def VMex(YKHO):\n with B9Vf.open(YKHO.dem, 'r') as zZcM:\n e5kH = zZcM.profile\n yDqo = zZcM.dtypes[0]\n ezWE = zZcM.read()[0, :, :]\n ekCB = zZcM.res[0]\n C5Rv = zZc... | [
"0.72947496",
"0.7204844",
"0.70577914",
"0.68395275",
"0.68361074",
"0.6815339",
"0.6776431",
"0.6758394",
"0.67361975",
"0.67198867",
"0.6714844",
"0.6698088",
"0.66720134",
"0.6655186",
"0.6651516",
"0.6609843",
"0.6543275",
"0.652942",
"0.6521632",
"0.6516262",
"0.6473384... | 0.71896285 | 2 |
Returns the loss value & metrics values for the model in test mode. Computation is done in batches. Arguments | def b7La(YKHO, WKvO=None, LVAh=None, dcx9=None, Ep8u=None, PJWX=1, xF06=None, paSp=None, oL5I=None, _S6Y=10, fHUa=1, pUJB=False):
if dcx9 is None:
dcx9 = YKHO.distributed
if dcx9:
raise NotImplementedError('model.evaulate is not yet supported with distributed=True')
else:
YKHO.model.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jqkm(C3ST, Z5wO, H96n):\n dixj = C3ST.evaluate(Z5wO, H96n)\n print('Test loss, Test acc:', dixj)",
"def fKEz(cb_Q, nPrm, C3ST):\n bySB = nPrm['val_features']\n mlfb = nPrm['val_labels']\n gCVm, vjyh, SmhD, BdwH = cb_Q.run([C3ST['total_loss_fine'], C3ST['accuracy_fine'], C3ST['summaries_fine'],... | [
"0.7375916",
"0.7348489",
"0.7282121",
"0.7157878",
"0.71566564",
"0.71333313",
"0.7125356",
"0.7068171",
"0.70630884",
"0.70479995",
"0.70081824",
"0.699571",
"0.6994294",
"0.69800174",
"0.6974519",
"0.69701666",
"0.6947167",
"0.6891047",
"0.6869625",
"0.68624294",
"0.683312... | 0.0 | -1 |
Atomically saves json file | def U1ai(Ux0P, nPrm):
fTff = ajWY(1000, 9999)
pmON, YBcr = Hy7s.path.splitext(Ux0P)
_Ikf = '{}-{}.tmp'.format(pmON, fTff)
znGk(_Ikf, nPrm)
try:
CQ2n(_Ikf)
except qQXR.decoder.JSONDecodeError:
return False
Hy7s.replace(_Ikf, Ux0P)
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n if YKHO.path:\n YKHO.saved = True\n with open(YKHO.path, 'w') as eHNT:\n eHNT.write(YKHO.json())",
"async def json_save(nPrm, gIsw):\n async with DmCd.open(gIsw, 'w') as wM3v:\n await wM3v.write(qQXR.dumps(nPrm, indent=4))",
"def eGRE(YKHO, pmON):\n wi... | [
"0.8190832",
"0.8079955",
"0.79936725",
"0.7987747",
"0.79301834",
"0.7928114",
"0.79182965",
"0.789285",
"0.7873227",
"0.78118485",
"0.78118485",
"0.7789071",
"0.7767791",
"0.7744583",
"0.77021027",
"0.76847595",
"0.76847595",
"0.76847595",
"0.7672936",
"0.7672385",
"0.76699... | 0.0 | -1 |
Returns a random card from the dec | def IA2m():
khoC = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
dxhl = tuKI.choice(khoC)
return dxhl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_xH():\n dxhl = tuKI.randint(1, 10)\n return dxhl",
"def IA2m():\n khoC = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]\n M0wT = tuKI.choice(khoC)\n return M0wT",
"def IA2m():\n khoC = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]\n dxhl = tuKI.choice(khoC)\n return dxhl",
"def IA2... | [
"0.82734984",
"0.7790631",
"0.77845544",
"0.7696245",
"0.7662753",
"0.76435155",
"0.76145995",
"0.7460847",
"0.74586487",
"0.730865",
"0.72392917",
"0.7147001",
"0.7069293",
"0.7069293",
"0.6885051",
"0.67464954",
"0.66677266",
"0.6597596",
"0.65915096",
"0.65833867",
"0.6574... | 0.77718925 | 3 |
perform topK based on np.argpartition | def anWM(SppC, nMvt, jDK_=0):
U146 = oyIN.argpartition(SppC, nMvt, axis=jDK_)
if jDK_ == 0:
begg = oyIN.arange(SppC.shape[1 - jDK_])
IjOi = oyIN.argsort(SppC[U146[0:nMvt, :], begg], axis=jDK_)
return U146[0:nMvt, :][IjOi, begg]
else:
f1pu = oyIN.arange(SppC.shape[1 - jDK_])[:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EjKV(SppC, nMvt, jDK_=-1):\n U146 = oyIN.argpartition(SppC, nMvt, axis=jDK_)\n if jDK_ == 0:\n begg = oyIN.arange(SppC.shape[1 - jDK_])\n IjOi = oyIN.argsort(SppC[U146[0:nMvt, :], begg], axis=jDK_)\n return U146[0:nMvt, :][IjOi, begg]\n else:\n f1pu = oyIN.arange(SppC.shape... | [
"0.7378384",
"0.7261387",
"0.7220429",
"0.7220034",
"0.71929055",
"0.70905894",
"0.70490575",
"0.70482326",
"0.69941187",
"0.6920765",
"0.690945",
"0.6888395",
"0.6887121",
"0.682556",
"0.6804541",
"0.68029696",
"0.6781234",
"0.67769784",
"0.6761972",
"0.6739087",
"0.6695807"... | 0.6951819 | 9 |
Return the title of the recipe. | def leAC(YKHO):
leAC = YKHO.soup.find(attrs={'class': 'recipe-summary__h1'})
if not leAC:
raise LfzO('No title found')
return NkkI(leAC.text) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yzcR(YSCM) -> str:\n return '# ' + YSCM.find('NAME').text + zH25 + zH25",
"def leAC(YKHO):\n mYwz = YKHO.soup.find('h1').get_text()\n YKHO.rtitle = mYwz.lower()",
"def WKDP(CJKf):\n return CJKf.find('h1', {'itemprop': 'name'}).get_text().strip()",
"def Upwb(YKHO) -> str:\n return YKHO.titl... | [
"0.85948706",
"0.82710856",
"0.8205585",
"0.7573044",
"0.7573044",
"0.75678355",
"0.7469667",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.7466438",
"0.74577916",... | 0.78785896 | 3 |
Return the instructions of the recipe. | def e8uw(YKHO):
e8uw = YKHO.soup.find(attrs={'class': 'recipe-directions__list'})
if not e8uw:
raise LfzO('No instructions found')
Ar5K = [WKvO.text for WKvO in e8uw.findAll('span')]
return Ar5K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e8uw(YKHO):\n return YKHO.__instructions",
"def e8uw(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['InstructionStepDetailsArgs']]]]:\n return qe4Y.get(YKHO, 'instructions')",
"def NMoC(YKHO):\n return YKHO.instructions",
"def zwZk(YKHO, *qIxc):\n return J8uC.SBSymbol_GetInstructions(YKHO, *qIxc)",... | [
"0.7574301",
"0.7019242",
"0.7011562",
"0.68971807",
"0.6779496",
"0.6735711",
"0.6668824",
"0.66553557",
"0.6654151",
"0.66235787",
"0.631957",
"0.62292784",
"0.6174014",
"0.6171751",
"0.6125269",
"0.5978733",
"0.58808565",
"0.58530957",
"0.5817016",
"0.5799568",
"0.5745509"... | 0.70551044 | 1 |
sum each distance between tile position and tile goal position except the Zero tile | def lEcz(iBIi, xi3E):
f7G3 = 0
s36U = oyIN.nditer(iBIi, flags=['multi_index'])
for WKvO in s36U:
if WKvO == 0:
continue
BCdN = s36U.multi_index
fQb1 = oyIN.where(xi3E == WKvO)
if BCdN == fQb1:
continue
else:
f7G3 += dob0(BCdN, fQb1)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYYc(YKHO):\n xi3E = 0\n mLGw = 0\n for Mkmy in range(3):\n for Z9rn in range(3):\n if YKHO.tiles[Mkmy][Z9rn] == 0:\n xi3E += 1\n elif YKHO.tiles[Mkmy][Z9rn] == xi3E:\n xi3E += 1\n else:\n xi3E += 1\n m... | [
"0.70427537",
"0.6829852",
"0.66861486",
"0.65104604",
"0.6416822",
"0.63376474",
"0.63335556",
"0.631945",
"0.6281716",
"0.6205089",
"0.6193316",
"0.6189857",
"0.6129866",
"0.6120073",
"0.6116867",
"0.6075992",
"0.60576",
"0.60550153",
"0.6036222",
"0.6000145",
"0.5986505",
... | 0.6274776 | 9 |
Generate man formatting text for the routes list given. Routes list is as defined in routes.py | def Oc1x(iAwL):
dsPP = ZbWC.compile('([A-Z]+):((?:[ \\t].*\\n)+)')
Aofo = 'Note: For commands that produce output in quiet mode, their entries contain formatting strings. These formatting strings describe the output as per the rules used by\n' + JSRs('printf', suffix='(3)')
for mWFP, mXDZ, JfyU in iAwL:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWn9(YKHO, iAwL, isKb):\n if isKb == 'UML' or isKb == 'REALM':\n WBPg = '\\t\\t<route type=\"net\" '\n kdXA = '\" gw=\"'\n mRnc = '</route>\\n'\n else:\n WBPg = '\\t\\t<rtentry '\n kdXA = '\" nexthop=\"'\n mRnc = '</rtentry>\\n'\n G2eZ = ''\n RnF7 = ''\n ... | [
"0.6750435",
"0.6481605",
"0.64671147",
"0.6281658",
"0.6260288",
"0.62472737",
"0.6185242",
"0.61197865",
"0.6064253",
"0.60627437",
"0.60259044",
"0.60086584",
"0.5999765",
"0.5996768",
"0.5988698",
"0.59842867",
"0.59649175",
"0.59628993",
"0.59574467",
"0.59450835",
"0.59... | 0.7803042 | 0 |
post method in HoldingDetailAPIView | def NMoC(YKHO, QePW):
nPrm = []
sTLk = []
if QePW.GET.get('portfolio_ids'):
Itdc = QePW.GET.get('portfolio_ids').split(',')
wSG7 = afQN.objects.filter(id__in=Itdc, created_by=QePW.user)
else:
wSG7 = afQN.objects.filter(created_by=QePW.user)
zEb0 = qHwN.objects.filter(portfoli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO, QePW):\n try:\n KIme, _EYN = eU3_.objects.get_or_create(fund_id=int(QePW.data.get('id')))\n if QePW.data.get('currency'):\n KIme.currency = QePW.data.get('currency')\n if QePW.data.get('country'):\n KIme.country = QePW.data.get('country')\n if QeP... | [
"0.74550974",
"0.6734143",
"0.65893584",
"0.64762",
"0.6428911",
"0.6423387",
"0.6423387",
"0.6423387",
"0.6423387",
"0.642101",
"0.6379325",
"0.63239443",
"0.6323897",
"0.6308239",
"0.6283595",
"0.6245168",
"0.6240374",
"0.62057817",
"0.61877453",
"0.6179925",
"0.61777115",
... | 0.0 | -1 |
post method in HoldingDetailAPIView | def m8z6(YKHO, QePW):
try:
KIme, _EYN = eU3_.objects.get_or_create(fund_id=int(QePW.data.get('id')))
if QePW.data.get('currency'):
KIme.currency = QePW.data.get('currency')
if QePW.data.get('country'):
KIme.country = QePW.data.get('country')
if QePW.data.get('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eRSV(YKHO, QePW, **B2fa):\n return Xqgu.HttpNotImplemented()",
"def m8z6(YKHO):\n from flask import request\n nPrm = qQXR.loads(request.data)\n YSA3 = YKHO.get_object_kwargs(nPrm)\n YEnM = YKHO.model(**YSA3)\n YEnM.save()\n return GWqT(nKyW(YKHO.view_name, _external=True, **{YKHO.view_ar... | [
"0.67343783",
"0.65878034",
"0.64751333",
"0.6427353",
"0.64220893",
"0.64220893",
"0.64220893",
"0.64220893",
"0.64187163",
"0.6377316",
"0.6322581",
"0.63214344",
"0.6305993",
"0.6282364",
"0.6244123",
"0.623922",
"0.62037593",
"0.6185593",
"0.61791915",
"0.61761016",
"0.61... | 0.7455072 | 0 |
A single description about the contents or purpose of this object. | def JBZA(YKHO):
return next(iter(YKHO.descriptions), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def JBZA(YKHO):\n return YKHO.__description",
"def... | [
"0.8380427",
"0.8380427",
"0.8380427",
"0.8351596",
"0.83439046",
"0.83439046",
"0.83439046",
"0.8323532",
"0.8323532",
"0.8280376",
"0.827642",
"0.8220428",
"0.82166594",
"0.81860983",
"0.81854385",
"0.8172724",
"0.81637144",
"0.8160935",
"0.8160935",
"0.8160935",
"0.8136076... | 0.0 | -1 |
Returns all prime factors of n | def uBVK(exwG: int) -> list:
YRbF = 2
Llmz = []
while YRbF * YRbF <= exwG:
if exwG % YRbF:
YRbF += 1
else:
exwG //= YRbF
Llmz.append(YRbF)
if exwG > 1:
Llmz.append(exwG)
return Llmz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llmz(exwG):\n return (G1Hx for G1Hx, Ty9i in S2wa(exwG))",
"def uBVK(exwG):\n YRbF = 2\n Llmz = []\n while YRbF * YRbF <= exwG:\n if exwG % YRbF:\n YRbF += 1\n else:\n exwG //= YRbF\n Llmz.append(YRbF)\n if exwG > 1:\n Llmz.append(exwG)\n ... | [
"0.8975952",
"0.8843311",
"0.87721986",
"0.8762059",
"0.8734937",
"0.87102824",
"0.8709424",
"0.8702606",
"0.8694945",
"0.8670105",
"0.86577487",
"0.86577487",
"0.865469",
"0.86290425",
"0.8623994",
"0.8623994",
"0.86188775",
"0.861814",
"0.86060613",
"0.85990477",
"0.8590588... | 0.86639935 | 10 |
Returns all distinct prime factors of n | def juEX(exwG: int) -> list:
Llmz = uBVK(exwG)
return list(dict.fromkeys(Llmz)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J0KA(exwG):\n Llmz = [1]\n for XP5J, kLQb in uBVK(exwG).items():\n Llmz += [XP5J ** YRbF * aM8h for aM8h in Llmz for YRbF in range(1, kLQb + 1)]\n return Llmz",
"def Llmz(exwG):\n return set(Pusg(list.__add__, ([YRbF, exwG // YRbF] for YRbF in range(1, int(oyIN.sqrt(exwG)) + 1) if exwG % Y... | [
"0.8849026",
"0.8785222",
"0.8785222",
"0.87189174",
"0.868914",
"0.864331",
"0.85681784",
"0.8566506",
"0.8566359",
"0.8555452",
"0.8546745",
"0.8500764",
"0.8472605",
"0.84284186",
"0.8422654",
"0.8421986",
"0.8403235",
"0.8395393",
"0.83931094",
"0.8389213",
"0.83760613",
... | 0.84966415 | 12 |
convert pymatgen structure to compound | def IRcG(g8x2):
yCnv = CC10(names=[WKvO.specie.name for WKvO in g8x2.sites], pos=g8x2.cart_coords)
yCnv.latmat = g8x2.lattice.matrix
yCnv.latmat.setflags(write=1)
for WKvO, LVAh in zip(g8x2.sites, yCnv.particles()):
LVAh.mass = WKvO.specie.atomic_mass.real
return yCnv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8Mb(YKHO):\n tOSe = YKHO._comp_input()\n uLjI = tOSe.split()\n uLjI = [WKvO.capitalize() for WKvO in uLjI]\n tOSe = ''.join(uLjI)\n finE = wS4V.from_formula(tOSe)\n YKHO.sub_unicode_name = finE.unicode_name\n YKHO.dict_comp = finE.composition\n YKHO.ta_param = oyIN.full((len(YKHO.dict_... | [
"0.61119306",
"0.60840416",
"0.6082956",
"0.6022685",
"0.60010797",
"0.59624183",
"0.5944221",
"0.59398216",
"0.5884477",
"0.58826256",
"0.5832166",
"0.5786169",
"0.5759758",
"0.5751065",
"0.5624455",
"0.5618114",
"0.556345",
"0.5551416",
"0.5536336",
"0.5535321",
"0.55322003... | 0.7048724 | 0 |
Generate all ancestors of the Compound recursively. Yields mb.Compound The next Compound above self in the hierarchy | def JZlq(YKHO):
if YKHO.parent is not None:
yield YKHO.parent
for F_G6 in YKHO.parent.ancestors():
yield F_G6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZlq(YKHO):\n ZbOB = YKHO\n while ZbOB.parent:\n ZbOB = ZbOB.parent\n yield ZbOB",
"def kZJu(YKHO):\n if not YKHO._parent:\n return\n else:\n _AKB = YKHO._parent\n while _AKB:\n yield _AKB\n try:\n _AKB = _AKB._parent\n ... | [
"0.71728367",
"0.6758912",
"0.63903576",
"0.63286775",
"0.6298492",
"0.6286187",
"0.6276855",
"0.6091309",
"0.6090021",
"0.6050426",
"0.6016864",
"0.60142046",
"0.6004286",
"0.59704334",
"0.5949736",
"0.5933665",
"0.59238863",
"0.5887189",
"0.5886568",
"0.5871421",
"0.5857592... | 0.6779294 | 1 |
The cartesian center of the Compound based on its Particles. Returns np.ndarray, shape=(3,), dtype=float The cartesian center of the Compound based on its Particles | def hgjH(YKHO, ZiVU=0):
if oyIN.all(oyIN.isfinite(YKHO.xyz)):
if ZiVU == 1:
return oyIN.mean(YKHO.xyz_with_ports, axis=0)
else:
return oyIN.mean(YKHO.xyz, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgjH(YKHO) -> oyIN.ndarray:\n return oyIN.array(YKHO.shape.centroid)",
"def _3XM(YKHO):\n iU97 = YU_E.vtkCenterOfMass()\n iU97.SetInputData(YKHO.polydata(True))\n iU97.Update()\n Z9rn = iU97.GetCenter()\n return oyIN.array(Z9rn)",
"def hgjH(YKHO):\n return oyIN.array([YKHO._x1 + (YKHO.... | [
"0.7453087",
"0.7163359",
"0.71576244",
"0.71466047",
"0.7111205",
"0.7097903",
"0.70728165",
"0.6985532",
"0.69601715",
"0.6950783",
"0.695017",
"0.69337916",
"0.69027203",
"0.6886875",
"0.6864957",
"0.68557525",
"0.68056226",
"0.6796098",
"0.6776943",
"0.67663556",
"0.67658... | 0.0 | -1 |
Create a pybel.Molecule from a Compound | def kE5w(YKHO, gVSa=False):
N9D1 = ZUME.OBMol()
Agnf = dict()
for YRbF, Q7me in enumerate(YKHO.particles(gVSa)):
ycBG = N9D1.NewAtom()
try:
ycBG.SetAtomicNum(HLn7[Q7me.name.capitalize()])
except KeyError:
E4N8('Could not infer atomic number from {}, setting to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b4fN(Qpq_):\n N8Qw = []\n LJvn = list(vIwR.ascii_uppercase)\n for eNCK in Qpq_.get_chains():\n jbXL, ngBo, w5k8 = eNCK.get_full_id()\n if not w5k8.strip():\n w5k8 = LJvn.pop()\n nafC = lwdG.Chain(pdbname=w5k8.strip())\n for kUkU in eNCK.get_residues():\n ... | [
"0.6716847",
"0.64830047",
"0.6209123",
"0.61941123",
"0.614071",
"0.61205804",
"0.6077341",
"0.6010379",
"0.59843266",
"0.5982595",
"0.5966987",
"0.57667214",
"0.5731039",
"0.572747",
"0.57234746",
"0.5681027",
"0.56771654",
"0.56765884",
"0.5655917",
"0.5599835",
"0.5590952... | 0.50204486 | 90 |
Create a Compound from a Pybel.Molecule | def KwDl(YKHO, UyXm, D4Oo=True):
YKHO.name = UyXm.title.split('.')[0]
L6v7 = {}
for WhQ6 in UyXm.atoms:
UqpO = oyIN.array(WhQ6.coords) / 10
if D4Oo:
try:
D1P9 = cFlk[WhQ6.atomicnum]
except KeyError:
E4N8('No element detected for atom at... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQlx(N9D1, v7cn, KIBk=True):\n if ZUME is None:\n raise hiLm('OpenBabel is not installed. Please install or use RDKit.')\n N9D1.vertices = []\n v7cn.AddHydrogens()\n for uXdZ in ZUME.OBMolAtomIter(v7cn):\n FGW3 = uXdZ.GetAtomicNum()\n qBv7 = uXdZ.GetIsotope()\n U6D_ = Uq... | [
"0.6569125",
"0.6295438",
"0.62799406",
"0.6261747",
"0.6140603",
"0.6052016",
"0.60178035",
"0.5929482",
"0.5863442",
"0.58499897",
"0.5828578",
"0.58274394",
"0.58163244",
"0.58103496",
"0.57677907",
"0.57210016",
"0.5711975",
"0.5696257",
"0.56591505",
"0.5640481",
"0.5639... | 0.6263546 | 3 |
Create an InterMol system from a Compound. | def l0rn(YKHO, NedQ=None):
from intermol.atom import Atom as EOXS
from intermol.molecule import Molecule
from intermol.system import System
import simtk.unit as P6bq
if isinstance(NedQ, list):
NedQ = tuple(NedQ)
elif NedQ is None:
NedQ = (type(YKHO),)
mbiP = System()
Wm1p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRcG(g8x2):\n yCnv = CC10(names=[WKvO.specie.name for WKvO in g8x2.sites], pos=g8x2.cart_coords)\n yCnv.latmat = g8x2.lattice.matrix\n yCnv.latmat.setflags(write=1)\n for WKvO, LVAh in zip(g8x2.sites, yCnv.particles()):\n LVAh.mass = WKvO.specie.atomic_mass.real\n return yCnv",
"def WbU... | [
"0.59818786",
"0.59525865",
"0.5578285",
"0.55776423",
"0.55020475",
"0.54843944",
"0.54753923",
"0.5427976",
"0.5418033",
"0.5366252",
"0.52945024",
"0.52510244",
"0.51979417",
"0.5191358",
"0.51377594",
"0.51233995",
"0.51072216",
"0.5084732",
"0.5077454",
"0.5069239",
"0.5... | 0.5703066 | 2 |
Test case for gov_proposals_proposal_id_deposits_depositor_get | def A4PK(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUTP(YKHO):\n pass",
"def gbWi(YKHO):\n pass",
"def UW_X(YKHO):\n pass",
"def n_mY(YKHO):\n pass",
"def cqyu(YKHO):\n pass",
"def VsmA(YKHO):\n pass",
"def BzlR(YKHO):\n return YKHO._query('get', 'v1/deposit/', auth=True)",
"def mqEP(YKHO, CGuU, Zwka, VOvM, ynfG):\n DW23.s... | [
"0.91113436",
"0.794966",
"0.69967896",
"0.6983187",
"0.67156076",
"0.65206385",
"0.6296662",
"0.6284728",
"0.6118555",
"0.5939091",
"0.5934329",
"0.59087217",
"0.585922",
"0.58130634",
"0.575246",
"0.561978",
"0.5590829",
"0.55578077",
"0.5484351",
"0.54574174",
"0.5303517",... | 0.9556646 | 0 |
Test case for gov_proposals_proposal_id_deposits_get | def SUTP(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A4PK(YKHO):\n pass",
"def gbWi(YKHO):\n pass",
"def UW_X(YKHO):\n pass",
"def n_mY(YKHO):\n pass",
"def cqyu(YKHO):\n pass",
"def VsmA(YKHO):\n pass",
"def pOtk(YKHO):\n pass",
"def mqEP(YKHO, CGuU, Zwka, VOvM, ynfG):\n DW23.set_current_user(Zwka[CGuU])\n d3vz = Dmlt.ge... | [
"0.8974904",
"0.8483944",
"0.7384585",
"0.7345434",
"0.72209424",
"0.6956188",
"0.66290605",
"0.6492646",
"0.6459726",
"0.64549774",
"0.6421859",
"0.63202095",
"0.5947665",
"0.592267",
"0.5914769",
"0.59050286",
"0.5800886",
"0.57724655",
"0.57234555",
"0.5715718",
"0.5548407... | 0.954797 | 0 |
Test case for gov_proposals_proposal_id_deposits_post | def gbWi(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUTP(YKHO):\n pass",
"def A4PK(YKHO):\n pass",
"def Ms8P(YKHO):\n pass",
"def fMo6(YKHO):\n pass",
"def mqEP(YKHO, CGuU, Zwka, VOvM, ynfG):\n DW23.set_current_user(Zwka[CGuU])\n d3vz = Dmlt.get_related_proposals(ynfG, Zwka['obj'])\n YKHO.check_ggrc_6592_7562(CGuU, Zwka['proposal_to... | [
"0.8257489",
"0.78034854",
"0.70053864",
"0.6933735",
"0.66696936",
"0.65841275",
"0.65731615",
"0.637127",
"0.62516755",
"0.6069471",
"0.60626626",
"0.60286677",
"0.5916394",
"0.5811264",
"0.56924033",
"0.56478554",
"0.5646192",
"0.5583648",
"0.54949737",
"0.5491046",
"0.544... | 0.9264699 | 0 |
Adds obj to session, commits and refreshes Useful when creating new rows and then needing the id (that comes from sequence) | def P69b(cuiw, YEnM):
cuiw.add(YEnM)
cuiw.commit()
cuiw.flush()
cuiw.refresh(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSYO(YEnM):\n NCls.session.add(YEnM)\n NCls.session.commit()\n NCls.session.refresh(YEnM)\n return YEnM",
"def RFVC(Emd4, cuiw, YEnM):\n cuiw.add(YEnM)",
"def xkzz(YKHO, YEnM):\n YKHO.__session.add(YEnM)\n YKHO.__session.commit()",
"def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)",... | [
"0.81190735",
"0.7895643",
"0.7783049",
"0.7682264",
"0.7682264",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
"0.7418995",
... | 0.81069314 | 1 |
getCoronaNews( ) return headlines of corona news. | def DBH3(YKHO):
hGN5 = G4JS.get('https://rb.gy/qcr9hl', headers=YKHO.header).content
k_DX = rKuS(hGN5, 'html.parser')
qu9H = []
for YRbF in k_DX.find_all(class_='DY5T1d'):
qu9H.append(YRbF.get_text())
return qu9H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UEmZ():\n m0BT = []\n with open('config.json', 'r') as nUeQ:\n l_7H = qQXR.load(nUeQ)\n rJDA = l_7H['news']['api_key']\n vxW9 = l_7H['news']['country']\n rQow = l_7H['news']['language']\n ow5R = Yz9Q(api_key=rJDA)\n U10q = ow5R.get_top_headlines(language=rQow, country=vx... | [
"0.77350473",
"0.71349514",
"0.69676965",
"0.6923274",
"0.690473",
"0.6899312",
"0.6770833",
"0.6731149",
"0.6620993",
"0.6538406",
"0.65020835",
"0.6499894",
"0.6471692",
"0.64112633",
"0.63387305",
"0.63269013",
"0.6324699",
"0.63065726",
"0.6260896",
"0.6202081",
"0.609041... | 0.7574137 | 1 |
getHealthNews( ) return headlines of health. | def DTA6(YKHO):
hGN5 = G4JS.get('https://rb.gy/ee2r4a', headers=YKHO.header).content
k_DX = rKuS(hGN5, 'html.parser')
qu9H = []
for YRbF in k_DX.find_all(class_='DY5T1d'):
qu9H.append(YRbF.get_text())
return qu9H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UEmZ():\n m0BT = []\n with open('config.json', 'r') as nUeQ:\n l_7H = qQXR.load(nUeQ)\n rJDA = l_7H['news']['api_key']\n vxW9 = l_7H['news']['country']\n rQow = l_7H['news']['language']\n ow5R = Yz9Q(api_key=rJDA)\n U10q = ow5R.get_top_headlines(language=rQow, country=vx... | [
"0.716215",
"0.69418406",
"0.68271965",
"0.655664",
"0.6497163",
"0.6444511",
"0.6441751",
"0.64201874",
"0.6384891",
"0.6312729",
"0.6290263",
"0.62822586",
"0.62238336",
"0.6130679",
"0.61035687",
"0.60957885",
"0.6094809",
"0.6078173",
"0.60742515",
"0.60346335",
"0.596891... | 0.75363785 | 0 |
Returns an objects attributes as a dictionary. | def locals(YKHO, EdbX=None):
if EdbX is None:
EdbX = []
return {G1Hx: Ty9i for G1Hx, Ty9i in YKHO.__dict__.items() if not (G1Hx.startswith('__') and G1Hx.endswith('__')) and G1Hx not in EdbX} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return {hkS8: getattr(YKHO, hkS8) for hkS8 in YKHO.ATTRIBUTES if hasattr(YKHO, hkS8)}",
"def o8Kj(YKHO):\n return dict(YKHO.__dict__)",
"def h6gc(YKHO):\n qXTy = {}\n qXTy['name'] = YKHO.name\n return qXTy",
"def _fYl(YKHO):\n\n def PqSu(Jyyj):\n \"\"\"Return an att... | [
"0.7849907",
"0.7758927",
"0.7736926",
"0.77240366",
"0.768464",
"0.76245934",
"0.7607746",
"0.75809276",
"0.7546154",
"0.73958915",
"0.73958915",
"0.7391",
"0.7373317",
"0.73713666",
"0.73670715",
"0.7345271",
"0.733948",
"0.7335601",
"0.7329483",
"0.73175883",
"0.73053044",... | 0.0 | -1 |
Load a value from a pickle if it exists, otherwise use the default. | def pybf(Ux0P: str, WmM4: A, yrgk=t2lc) -> k0lF:
if Hy7s.path.exists(Ux0P):
return tyeH(Ux0P, pickler=yrgk)
return xkzz(Ux0P, WmM4, pickler=yrgk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1kr(YKHO, BWXx):\n if BWXx is None:\n return None\n return t2lc.loads(BWXx)",
"def NMoC(YKHO, mWFP, WmM4=None):\n PQsW = super().get(mWFP)\n if PQsW is None:\n return WmM4\n try:\n return _1kr(PQsW)\n except pG9t:\n return PQsW",
"def tyeH(YKHO):\n try:\n ... | [
"0.77105707",
"0.745452",
"0.71892",
"0.71320987",
"0.7105987",
"0.6825244",
"0.642998",
"0.6417071",
"0.63068855",
"0.6200946",
"0.6128952",
"0.6128952",
"0.6123437",
"0.6119176",
"0.6103887",
"0.60813284",
"0.60813284",
"0.6070429",
"0.60648096",
"0.6021882",
"0.5996754",
... | 0.6583414 | 6 |
Save a value to a pickle. | def xkzz(Ux0P: str, YEnM: A, yrgk=t2lc) -> k0lF:
with open(Ux0P, 'wb') as nUeQ:
yrgk.dump(YEnM, nUeQ)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PjZe(YKHO, BWXx):\n return t2lc.dumps(BWXx)",
"def Lsrz(YKHO, BWXx) -> None:\n with uA2J(YKHO.path, 'wb') as jY1r:\n t2lc.dump(BWXx, jY1r)",
"def ezmR(YKHO, BWXx):\n return t2lc.dumps(BWXx)",
"def xkzz(Es0b, pmON):\n with open(pmON, 'wb') as eHNT:\n t2lc.dump(Es0b, eHNT)\n eH... | [
"0.7809443",
"0.7707164",
"0.7412514",
"0.7371878",
"0.7175816",
"0.7039804",
"0.70357597",
"0.701931",
"0.69775397",
"0.6967088",
"0.6960574",
"0.6950076",
"0.69252306",
"0.6901761",
"0.68913126",
"0.6887326",
"0.6882729",
"0.6874712",
"0.6874712",
"0.6871502",
"0.68518996",... | 0.0 | -1 |
Given a list of items, create a dictionary that maps their names (their names themselves or their key in the optional keys argument) to the item. Used to convert lists that index by integer to dictionaries that index by name. | def xJoN(DumB: Iterable[B], sjXb=None) -> GySg[str, tjUW]:
U5bT = {}
for or8S, ZfUD in enumerate(DumB):
ZfUD = DumB[or8S]
if sjXb is not None:
U5bT[str(sjXb[or8S])] = ZfUD
else:
U5bT[str(ZfUD)] = ZfUD
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B5Qi(xpKR, zAat):\n return {WKvO.pop(zAat): WKvO for WKvO in xpKR}",
"def GkpI(DumB):\n return {YRbF: vC9B for YRbF, vC9B in enumerate(sorted(DumB))}",
"def vxV8(hOrB, VhAE='id'):\n return {BWXx[VhAE]: BWXx for BWXx in hOrB}",
"def irdT(aPd6):\n Csk6 = {}\n for YRbF, ZfUD in enumerate(aPd6... | [
"0.7557651",
"0.72221655",
"0.7032598",
"0.67428786",
"0.6519764",
"0.63939315",
"0.6379106",
"0.62857187",
"0.62361014",
"0.62051886",
"0.6194486",
"0.6169556",
"0.61486715",
"0.6133283",
"0.61162925",
"0.6107409",
"0.60851145",
"0.6070511",
"0.6066847",
"0.6054543",
"0.6043... | 0.77624243 | 0 |
>>> m = Maze() >>> m.hasWall(4, 4, RIGHT) False | def FIMM(YKHO):
YKHO._grid = rApN(gHhh.width, gHhh.height, constructor=CTtz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OC7g(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] == GNtq",
"def LS2R(YKHO):\n r8hN = pHXX.Maze([['#', '#', '#', '#', '#', '#', '#'], ['#', '.', '.', '.', '.', '.', '#'], ['#', '.', '#', '#', '#', '.', '#'], ['#', '.', '.', '@', '#', '.', '#'], ['#', '@', '#', '.', '@', '.', '#'], ['#', '#', '#', ... | [
"0.8068324",
"0.80098635",
"0.7870771",
"0.7758385",
"0.7728234",
"0.75437355",
"0.74381375",
"0.7418381",
"0.72412616",
"0.7171779",
"0.7152742",
"0.7151224",
"0.7151224",
"0.7146531",
"0.71263117",
"0.7085138",
"0.70784515",
"0.7037556",
"0.7013943",
"0.69519275",
"0.690725... | 0.0 | -1 |
Returns whether there is a wall at (x, y) in >>> m = Maze() >>> m.hasWall(4, 4, RIGHT) False >>> m.setTile(4, 4, RIGHT, True) >>> m.hasWall(4, 4, RIGHT) True | def e8e7(YKHO, WKvO, LVAh, XSoh):
return YKHO._grid[WKvO][LVAh].hasWall(XSoh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OC7g(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] == GNtq",
"def fcpm(YKHO, WKvO, LVAh):\n return YKHO.data.layout.walls[WKvO][LVAh]",
"def fcpm(YKHO, WKvO, LVAh):\n return YKHO.data.layout.walls[WKvO][LVAh]",
"def NTnR(YKHO, uOMn, Q1Yj):\n if YKHO.level.structure[uOMn][Q1Yj] == 'w':\n ... | [
"0.8064225",
"0.8051818",
"0.8051818",
"0.8042599",
"0.79439014",
"0.79177725",
"0.788888",
"0.78629273",
"0.78537494",
"0.78474957",
"0.78238684",
"0.7635766",
"0.7568334",
"0.7533587",
"0.7522074",
"0.7484032",
"0.7435528",
"0.7342654",
"0.72068",
"0.7178515",
"0.7118092",
... | 0.78981787 | 6 |
(list) > list Returns list of even numbers from given list | def HoZZ(list):
vwwg = [mLGw for mLGw in list if mLGw % 2 == 0]
return vwwg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pbi3(list):\n vf3I = []\n for FGW3 in list:\n if FGW3 % 2 == 0:\n vf3I.append(FGW3)\n return vf3I",
"def isxb(IqQl):\n qFa0 = [WKvO for WKvO in IqQl if WKvO % 2 == 0]\n return qFa0",
"def LvQP(ybN4):\n Aofo = []\n for LihS in ybN4:\n if LihS % 2 == 0:\n ... | [
"0.864619",
"0.8608095",
"0.8302124",
"0.8275418",
"0.82017165",
"0.8143871",
"0.78019714",
"0.7788334",
"0.778388",
"0.7771588",
"0.77704275",
"0.7730978",
"0.7696373",
"0.76587915",
"0.7651951",
"0.76507175",
"0.7644585",
"0.76153547",
"0.7608354",
"0.7533386",
"0.7529425",... | 0.8144394 | 5 |
Saves the model every n epochs in to_dir | def FIMM(YKHO, QFgE, HasU, U7Y1=1):
super().__init__()
YKHO.epochs = HasU
YKHO.every_n_epoch = U7Y1
YKHO.to_dir = QFgE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO):\n for bGrB in range(YKHO.epoch, YKHO.cnf.epochs):\n YKHO.train()\n with CbyH.no_grad():\n YKHO.test()\n YKHO.epoch += 1\n YKHO.save_model(YKHO.model, YKHO.optimizer, YKHO.log_path, YKHO.epoch)",
"def lUBY(YKHO, qtWj, nfqd=None):\n if qtWj != 0 and (qtW... | [
"0.7185797",
"0.7184021",
"0.7008305",
"0.6986149",
"0.68344337",
"0.6801969",
"0.679381",
"0.6768288",
"0.67632866",
"0.6743655",
"0.67344785",
"0.67210025",
"0.66881466",
"0.66794544",
"0.6651451",
"0.6613532",
"0.6603142",
"0.6588658",
"0.6582843",
"0.65721494",
"0.6567495... | 0.6322985 | 48 |
Updates velocity of all particles to account for velocity of centreofmass Centreofmass velocity is given by (total linear momentum of system)/(total mass of system) Uses Particle3D method linear_momentum | def EVLq(YKHO):
H0zq, bMbF = (0, 0)
for il4J in YKHO.p_list:
H0zq += il4J.linear_momentum()
bMbF += il4J.mass
QPa4 = H0zq / bMbF
for il4J in YKHO.p_list:
il4J.velocity -= QPa4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uxsC(Oz1B, exwG):\n KUoe = W34M.Real3D(0.0)\n PwWW = 0.0\n for YRbF in range(exwG):\n XP5J = Oz1B.storage.getParticle(YRbF)\n KUoe += XP5J.v * XP5J.mass\n PwWW += XP5J.mass\n return KUoe / PwWW",
"def sk8r(YKHO):\n for YRbF in Ni9Y(3):\n YKHO.v[YRbF] += YKHO.a[YRbF]... | [
"0.71852916",
"0.70557755",
"0.68446636",
"0.6832292",
"0.67204124",
"0.65793365",
"0.64878654",
"0.6441136",
"0.6437534",
"0.64338696",
"0.64236385",
"0.64233774",
"0.6345173",
"0.6341035",
"0.6323117",
"0.63098764",
"0.62974364",
"0.62810165",
"0.62599564",
"0.6257098",
"0.... | 0.78415203 | 0 |
Return current timer type. | def FRul(YKHO) -> uwaB.TimerTypeStr:
return uwaB.TIMER_TYPE.inverse[YKHO.timerType()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzjV(YKHO):\n return str(YKHO.pulse_selector_pulse_drop_down.currentText())",
"def uyo0(YKHO):\n return YKHO.ask(':TIME:TEMP:SEL?')",
"def SS0S(YKHO):\n return YKHO.ask(':TIME:TEMP:OBJ?')",
"def FusX(YKHO):\n return YKHO.maybe('lightTimer', 'value')",
"def SFjy(YKHO, UOXt):\n vOhQ = yoVQ... | [
"0.6707363",
"0.6685116",
"0.66476357",
"0.65795755",
"0.6482831",
"0.64749426",
"0.64749426",
"0.6361782",
"0.63442796",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719",
"0.6332719"... | 0.86273116 | 0 |
Transpose matrix for Markov Chain model. | def l7uB(yfR9):
return oyIN.asarray(yfR9).transpose() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(YKHO):\n YKHO.matrix = v65A(YKHO.matrix)",
"def l7uB(YKHO):\n Q9wQ = [[0] * 4 for bGrB in range(4)]\n for YRbF in range(4):\n for r845 in range(4):\n Q9wQ[YRbF][r845] = YKHO.matrix[r845][YRbF]\n YKHO.matrix = Q9wQ",
"def l7uB(YKHO):\n if YKHO.verb > 3:\n print('... | [
"0.7869142",
"0.76526916",
"0.7484147",
"0.7470598",
"0.73092484",
"0.7301629",
"0.7301629",
"0.7284309",
"0.72599185",
"0.7245464",
"0.72109616",
"0.7190863",
"0.71670467",
"0.71507335",
"0.71365315",
"0.7130892",
"0.7104817",
"0.7084313",
"0.7073823",
"0.70577264",
"0.70571... | 0.0 | -1 |
Generate a random string of fixed length | def TJC9(FVpJ=6):
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def MiNk(u54L):\n gLiZ = vIwR.ascii... | [
"0.8746205",
"0.87138057",
"0.86634374",
"0.8589632",
"0.85856813",
"0.85634226",
"0.8558564",
"0.85515654",
"0.853908",
"0.8533391",
"0.8508468",
"0.85072726",
"0.84704083",
"0.84667903",
"0.84667903",
"0.84504145",
"0.8449424",
"0.8428432",
"0.84244287",
"0.8423231",
"0.841... | 0.0 | -1 |
Gets the state for `guild`, creating it if it does not exist. | def ja6o(YKHO, LRlk):
if LRlk in YKHO.states:
return YKHO.states[LRlk]
else:
YKHO.states[LRlk] = hG45()
return YKHO.states[LRlk] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO, lSCo):\n if lSCo.id in YKHO.states:\n return YKHO.states[lSCo.id]\n else:\n YKHO.states[lSCo.id] = CmK3.GuildState()\n return YKHO.states[lSCo.id]",
"async def get_or_create(hbFX: typing.Any):\n _EYN = False\n lSCo = await NCls.guilds.find_one({'id': hbFX})\n if... | [
"0.78695935",
"0.62340516",
"0.6223614",
"0.61592954",
"0.61592954",
"0.59046847",
"0.58638346",
"0.5781474",
"0.5693183",
"0.5693183",
"0.56875557",
"0.562664",
"0.5492898",
"0.54103625",
"0.54007256",
"0.5397312",
"0.535691",
"0.5348981",
"0.53313875",
"0.5322583",
"0.52792... | 0.7318557 | 1 |
Generate a random string of given length. | def BWvy(u54L):
return ''.join((tuKI.choice(vIwR.letters + vIwR.digits) for bGrB in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def YzjY(YKHO, u54L):\n zZas = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.sample(zZas, u54L))",
"def YzjY(YKHO, u54L):\n zZas = vIwR.... | [
"0.893481",
"0.88969976",
"0.88676727",
"0.8861526",
"0.8832262",
"0.8808226",
"0.87644196",
"0.87381005",
"0.870654",
"0.87030935",
"0.86856085",
"0.86839294",
"0.8678516",
"0.8659398",
"0.86515605",
"0.86463684",
"0.86445946",
"0.8636679",
"0.86358315",
"0.86122835",
"0.860... | 0.87224865 | 8 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:
return await ajET.config_entries.async_unload_platforms(bTKY, aprE) | {
"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.0 | -1 |
Return the unique ID of this binary sensor. | def ShR8(YKHO):
return YKHO._device.serial | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return f'{YKHO._izzibridge.unique_id}_binary_sensor_{YKHO._sensor_type}'",
"def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']",
"def ShR8(YKHO):\n return YKHO._device.unique_id",
"def ShR8(YKHO) -> str:\n return YKHO.fibaro_device.unique_id_str",
"def ShR8... | [
"0.89135665",
"0.8409972",
"0.81765085",
"0.8128704",
"0.809509",
"0.8076265",
"0.80360466",
"0.7987254",
"0.7985151",
"0.7927667",
"0.79261035",
"0.79261035",
"0.7916284",
"0.7900541",
"0.78804743",
"0.785199",
"0.78513193",
"0.7839615",
"0.78384966",
"0.78125966",
"0.778401... | 0.813842 | 3 |
Return the ID of this binary sensor. | def jf3N(YKHO):
return YKHO._device.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return f'{YKHO._izzibridge.unique_id}_binary_sensor_{YKHO._sensor_type}'",
"def qi1f(YKHO):\n return YKHO.__sensor_id",
"def id(YKHO):\n return BlNT.unpack_from('<I', YKHO.instrument.data, YKHO.offset + 8)[0]",
"def UCbS(YKHO):\n return",
"def UCbS(YKHO):\n return",
"def ... | [
"0.8271832",
"0.78687507",
"0.77441716",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.75725114",
... | 0.0 | -1 |
Return the device info. | def GWuV(YKHO):
return {'identifiers': {(Sugg, YKHO.device_id)}, 'name': YKHO.name, 'manufacturer': YKHO.manufacturer, 'model': YKHO._device.device_model, 'sw_version': '', 'via_device': (Sugg, YKHO._controller_ip)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return YKHO._device.device_info",
"def GWuV(YKHO):\n return YKHO._api.device_info",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device_info",
"def GWuV(YKHO):\n return YKH... | [
"0.8863439",
"0.8860873",
"0.88422513",
"0.88422513",
"0.87083894",
"0.87083894",
"0.87083894",
"0.87083894",
"0.87083894",
"0.8667184",
"0.8620427",
"0.85729885",
"0.8472082",
"0.84417117",
"0.8430408",
"0.8414165",
"0.84125847",
"0.8402571",
"0.8400361",
"0.8366213",
"0.836... | 0.8207797 | 41 |
Return the class of this device, from component DEVICE_CLASSES. | def rM2U(YKHO):
tTYS = {bdtm.DeviceClass.ENTRANCE_DOOR: KVhN, bdtm.DeviceClass.REGULAR_WINDOW: SRxE, bdtm.DeviceClass.FRENCH_WINDOW: KVhN, bdtm.DeviceClass.GENERIC: SRxE}
return tTYS.get(YKHO._device.device_class, SRxE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._sensor.get(F6ct)",
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return eeT9",
"def rM2U(YKHO) -> str:\n return eeT9",
"def rM2U(YKHO) -> str:\n return YKHO._device_class_from_type",
"def rM2U(YKHO) -> str:\n return YKHO._dev_... | [
"0.85304403",
"0.8427226",
"0.83756787",
"0.83750737",
"0.83277243",
"0.8324431",
"0.8292755",
"0.8292755",
"0.8292755",
"0.82483685",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754",
"0.8244754"... | 0.74362195 | 60 |
Return the unique ID of this binary sensor. | def ShR8(YKHO):
return YKHO._device.serial | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return f'{YKHO._izzibridge.unique_id}_binary_sensor_{YKHO._sensor_type}'",
"def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']",
"def ShR8(YKHO):\n return YKHO._device.unique_id",
"def ShR8(YKHO) -> str:\n return YKHO.fibaro_device.unique_id_str",
"def ShR8... | [
"0.89135665",
"0.8409972",
"0.81765085",
"0.8128704",
"0.809509",
"0.8076265",
"0.80360466",
"0.7987254",
"0.7985151",
"0.7927667",
"0.79261035",
"0.79261035",
"0.7916284",
"0.7900541",
"0.78804743",
"0.785199",
"0.78513193",
"0.7839615",
"0.78384966",
"0.78125966",
"0.778401... | 0.813842 | 4 |
Return the ID of this binary sensor. | def jf3N(YKHO):
return YKHO._device.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return f'{YKHO._izzibridge.unique_id}_binary_sensor_{YKHO._sensor_type}'",
"def qi1f(YKHO):\n return YKHO.__sensor_id",
"def id(YKHO):\n return BlNT.unpack_from('<I', YKHO.instrument.data, YKHO.offset + 8)[0]",
"def UCbS(YKHO):\n return",
"def UCbS(YKHO):\n return",
"def ... | [
"0.8271832",
"0.78687507",
"0.77441716",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.7674556",
"0.75725114",
... | 0.0 | -1 |
Return the device info. | def GWuV(YKHO):
return {'identifiers': {(Sugg, YKHO.device_id)}, 'name': YKHO.name, 'manufacturer': YKHO.manufacturer, 'model': YKHO._device.device_model, 'sw_version': '', 'via_device': (Sugg, YKHO._controller_ip)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return YKHO._device.device_info",
"def GWuV(YKHO):\n return YKHO._api.device_info",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device_info",
"def GWuV(YKHO):\n return YKH... | [
"0.8863439",
"0.8860873",
"0.88422513",
"0.88422513",
"0.87083894",
"0.87083894",
"0.87083894",
"0.87083894",
"0.87083894",
"0.8667184",
"0.8620427",
"0.85729885",
"0.8472082",
"0.84417117",
"0.8430408",
"0.8414165",
"0.84125847",
"0.8402571",
"0.8400361",
"0.8366213",
"0.836... | 0.8207797 | 40 |