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 |
|---|---|---|---|---|---|---|
This inner function plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def uUEN(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.imshow(Bcwd, interp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(YKHO, Bcwd, KndY, NkkI, iMGt=QrM1.cm.Blues, leAC='confusin Matrix'):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n print(Bcwd)\n QrM1.imshow(B... | [
"0.77164495",
"0.76540625",
"0.764322",
"0.7595908",
"0.75909555",
"0.7550877",
"0.75483376",
"0.754067",
"0.75329095",
"0.7528455",
"0.7525228",
"0.7520291",
"0.7519119",
"0.7517534",
"0.75118315",
"0.7500635",
"0.7472815",
"0.7470369",
"0.7467355",
"0.74652076",
"0.74612886... | 0.0 | -1 |
Returns the vault location (either default or user defined) | def sMBp():
global args, vaultPathDefault
if qIxc.vault_location:
return qIxc.vault_location
return CLB7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F95c(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vault_uri')",
"def Rci7(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'location')",
"def Rci7(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'location')",
"def Rci7(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'location')",
"def Rci7(YKHO) -... | [
"0.69506",
"0.6760911",
"0.6760911",
"0.6760911",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.66249406",
"0.6464653",
"0.6464653",
"0.6464653",
"0.64... | 0.8157565 | 0 |
Gets a list of documents in a project. | def n8jQ(YKHO, ekCf: int, cL1e: dict={}) -> G4JS.models.Response:
return YKHO.get('v1/projects/{project_id}/docs{url_parameters}'.format(project_id=ekCf, url_parameters=YKHO.build_url_parameter(cL1e))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def byV_(YKHO, ekCf, xqoZ=None):\n bD7m = NKRf + 'portal/' + str(YKHO.portal_id) + '/projects/' + str(ekCf) + '/documents/'\n geh0 = VJUt.get(bD7m, YKHO.details, xqoZ)\n return wvEv.get_documents(geh0)",
"def ol4k(YKHO, **YSA3):\n SmGA = YKHO.doc_reader\n return (SmGA[glnf] for glnf in YKHO.docume... | [
"0.81018174",
"0.707067",
"0.6955606",
"0.687658",
"0.68592155",
"0.67349243",
"0.66181815",
"0.6617949",
"0.66143847",
"0.6593786",
"0.6581905",
"0.65298635",
"0.6526769",
"0.6496761",
"0.64907295",
"0.644781",
"0.6428039",
"0.63709676",
"0.63569045",
"0.63443947",
"0.632218... | 0.83108544 | 0 |
Tests if instance is properly initialized | def LbQI():
assert z_n9 != None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f06M(VQ6Z):\n if not VQ6Z._CAP:\n raise Exception('Vous devez initialiser la caméra...')",
"def G96d(YKHO) -> bool:\n return len(YKHO) > 0",
"def f5N9(YKHO):\n YKHO.assertEquals(0, YKHO._error_count)\n YKHO.assertEquals(0, len(YKHO._error_messages))",
"def DbxN(YKHO):\n return True"... | [
"0.7602685",
"0.75069714",
"0.74394304",
"0.74244887",
"0.73722965",
"0.7157598",
"0.7157598",
"0.71361506",
"0.71361506",
"0.71331203",
"0.71331203",
"0.712493",
"0.69910604",
"0.6968258",
"0.6944604",
"0.6940901",
"0.6917114",
"0.68923914",
"0.6881368",
"0.68755925",
"0.687... | 0.0 | -1 |
Function for dropout layer | def hr1G(WKvO, sMyr, mWFP):
with ZylS.name_scope(mWFP):
o4Jx = ZylS.nn.dropout(WKvO, sMyr)
return o4Jx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKgL(YKHO):\n return ZylS.keras.layers.Dropout(rate=YKHO.dropout)",
"def VNmX(YKHO, AdfU, hr1G=None):\n if hr1G is not None:\n AdfU.append(U78l.Dropout(hr1G))",
"def hr1G(ypOY=None):\n A90d = qKmE()\n A90d('batch_size', 20)\n A90d('n_epochs', 1000)\n A90d('learning_rate', 0.01)\n ... | [
"0.79477644",
"0.78386915",
"0.76815706",
"0.75741386",
"0.75179684",
"0.7510735",
"0.7435059",
"0.7140886",
"0.70981705",
"0.70008665",
"0.688738",
"0.68718344",
"0.68533725",
"0.68001616",
"0.6774679",
"0.671026",
"0.6708079",
"0.66834867",
"0.6683382",
"0.6669269",
"0.6668... | 0.728888 | 7 |
Function for softmax layer | def N93T(WKvO, mWFP):
with ZylS.name_scope(mWFP):
o4Jx = ZylS.nn.softmax(WKvO)
return o4Jx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=1, keepdims=True)",
"def anMS(WKvO):\n tTpl = nMvt.exp(WKvO - nMvt.max(WKvO, axis=-1, keepdims=True))\n KCHu = nMvt.sum(tTpl, axis=-1, keepdims=True)\n return tTpl / KCHu",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum... | [
"0.8131125",
"0.81069386",
"0.80578274",
"0.8036261",
"0.8024588",
"0.8023435",
"0.8013214",
"0.8003693",
"0.79769427",
"0.79522514",
"0.79522514",
"0.79174936",
"0.7905669",
"0.7888684",
"0.7888684",
"0.7888684",
"0.7888684",
"0.7888684",
"0.7888684",
"0.7888684",
"0.7888684... | 0.8168294 | 0 |
Build API header using authorization token | def XaJ7(YKHO, eOtH):
WBPg = LPpG.copy()
WBPg['Authorization'] = 'Bearer {}'.format(eOtH)
return WBPg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r0kR(Tq5C):\n return {'Authorization': f'token {Tq5C}'}",
"def srwF(eOtH: str=None):\n return {'Content-Type': 'application/json', 'X-Auth-Token': eOtH or ZVs8()}",
"def Np3K(eOtH):\n return {'Authorization': 'Token ' + str(eOtH)}",
"def srwF(YKHO):\n rM2g = 'Bearer ' + YKHO.auth_token\n W... | [
"0.8609279",
"0.8266735",
"0.8214074",
"0.80840755",
"0.80487734",
"0.7839815",
"0.7624801",
"0.7451923",
"0.7447751",
"0.7447751",
"0.7307198",
"0.72460806",
"0.7203698",
"0.7190798",
"0.718133",
"0.71532685",
"0.7096322",
"0.7086748",
"0.7062081",
"0.7056416",
"0.70372945",... | 0.82604975 | 2 |
Returns a string that describes the instance of the object. | def yoaG(YKHO):
return 'The method describe() is not implemented' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U34r(YKHO):\n return 'an instance of {cls}'.format(cls=YKHO.instance_class.__name__)",
"def wHJl(YKHO):\n return '<instance of {}>'.format(YKHO.__class__.__name__)",
"def wHJl(Emd4):\n return Emd4.__name__",
"def zAg0(YKHO):\n return BcI9.__name__",
"def zAg0(YKHO):\n return '<%s: %s>' %... | [
"0.84114325",
"0.7658453",
"0.7523631",
"0.7398424",
"0.738109",
"0.7318148",
"0.7318148",
"0.7318148",
"0.7318148",
"0.7303869",
"0.7303869",
"0.7299829",
"0.7275287",
"0.7275287",
"0.7275287",
"0.7273751",
"0.72464514",
"0.72452074",
"0.72234654",
"0.715386",
"0.7114697",
... | 0.0 | -1 |
Closes the store. Idempotent. | def DDI8(YKHO):
if YKHO._open:
YKHO._open = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO._store.close()",
"async def aclose(YKHO) -> None:\n await YKHO._stores_cleanup()",
"def U4F2(YKHO, vEqo, t41g, Tobl):\n YKHO.close()\n try:\n YKHO._store.close()\n except AttributeError:\n pass",
"def Ha3h(YKHO):\n S8SU.close()",
"def DDI8(NCls):\n ... | [
"0.8597703",
"0.77696925",
"0.7467451",
"0.70079416",
"0.6950418",
"0.69022995",
"0.6898541",
"0.6881311",
"0.6854068",
"0.6818503",
"0.67310274",
"0.67001265",
"0.6651409",
"0.6642785",
"0.6630151",
"0.66104704",
"0.6588819",
"0.65833",
"0.6560708",
"0.6549639",
"0.6541108",... | 0.0 | -1 |
The identity_block is the block that has no conv layer at shortcut | def aP6R(FRUf, Ot1W, KUnM, EtM5, XkN1):
SGf8 = 1.1e-05
DZWo, MXwb, wMAF = KUnM
RmTP = 'res152' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
q7n4 = 3
if nMvt.image_data_format() == 'channels_first':
EsUr = (rb7a, H2v2, TVTK)
q7n4 = 1
EcVT = yHwh(fi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.72902834",
"0.7131176",
"0.7119037",
"0.7106076",
"0.7093815",
"0.70870507",
"0.70678526",
"0.69982195",
"0.6985989",
"0.6970297",
"0.6937081",
"0.6936931",
"0.69368577",
"0.6892994",
"0.6874904",
"0.6874904",
"0.6866507",
"0.68620384",
"0.68557215",
"0.6840287",
"0.684028... | 0.6943155 | 10 |
conv_block is the block that has a conv layer at shortcut | def dILh(FRUf, Ot1W, KUnM, EtM5, XkN1, FEri=(2, 2)):
q7n4 = 3
SGf8 = 1.1e-05
if nMvt.image_data_format() == 'channels_first':
EsUr = (rb7a, H2v2, TVTK)
q7n4 = 1
RmTP = 'res152' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
DZWo, MXwb, wMAF = KUnM
E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)",
"def mQG_(input, KUnM, JT9N=JT9N):\n mQG_ = ZylS.layers.conv2d(inputs=input, filters=KUnM, kernel_size=3, padding='SAME', activation=ZylS.nn.relu)\n return mQG_",
"def mQG_(FRUf, Ot1W, KUnM, EtM5, yetk, FEri=(2, 2), wH... | [
"0.74187773",
"0.72761416",
"0.72002536",
"0.70002484",
"0.69778305",
"0.69715357",
"0.6968555",
"0.69630045",
"0.69594145",
"0.6914383",
"0.6899269",
"0.68976",
"0.6897138",
"0.6884398",
"0.6819873",
"0.68183106",
"0.6813551",
"0.68049926",
"0.6794764",
"0.679141",
"0.678478... | 0.6530974 | 42 |
Function to split a sentence into a list of words. It will replace all punctuation, by a space. Very crude. | def JgZ3(KCHu):
KCHu = zVCt.normalize('NFKD', KCHu).lower()
cfuW = [yzQ0 for yzQ0 in p0aE.sub(' ', KCHu).split() if yzQ0 not in NibK]
return cfuW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bb19(yAmx: str) -> x1iM[str]:\n return list(map(wm2H, yAmx.split(' ')))",
"def wr3U(yAmx):\n b5Tf = yAmx.lower()\n D5BC = b5Tf.translate(EKJ3, vIwR.punctuation)\n vwCE = D5BC.split()\n return vwCE",
"def coXY(_dZy: str) -> x1iM[str]:\n return [GIN8 for GIN8 in _dZy.split() if GIN8 not in ... | [
"0.81118256",
"0.79352844",
"0.79164064",
"0.7788361",
"0.7662781",
"0.7653752",
"0.75988066",
"0.75988066",
"0.7542118",
"0.75376165",
"0.75376165",
"0.751365",
"0.7509974",
"0.7468089",
"0.74017686",
"0.73725027",
"0.73663145",
"0.734229",
"0.73318934",
"0.7315141",
"0.7286... | 0.0 | -1 |
Initialise the TfIdf model. | def FIMM(YKHO, i88l=20):
YKHO.word_to_idx = {}
YKHO.idx_to_word = {}
YKHO.idf = None
YKHO.min_freq = i88l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BHRt(YKHO):\n YKHO.model = VUcl(YKHO.opt.src_vocab_size, YKHO.opt.tgt_vocab_size, YKHO.opt.max_token_seq_len, tgt_emb_prj_weight_sharing=YKHO.opt.proj_share_weight, emb_src_tgt_weight_sharing=YKHO.opt.embs_share_weight, d_k=YKHO.opt.d_k, d_v=YKHO.opt.d_v, d_model=YKHO.opt.d_model, d_word_vec=YKHO.opt.d_word... | [
"0.639221",
"0.61691105",
"0.60797256",
"0.60587275",
"0.6023564",
"0.5913701",
"0.58835024",
"0.5872897",
"0.58645093",
"0.5839887",
"0.58245236",
"0.5821963",
"0.5809261",
"0.57991177",
"0.57983685",
"0.5798297",
"0.5786166",
"0.5776728",
"0.5698779",
"0.56946814",
"0.56945... | 0.0 | -1 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.params | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')",
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n C3ST = YKHO._meta.... | [
"0.7801624",
"0.77112937",
"0.767426",
"0.767426",
"0.7524702",
"0.74020135",
"0.7398639",
"0.7378346",
"0.7328583",
"0.7270028",
"0.7244434",
"0.7233179",
"0.7205981",
"0.7174358",
"0.7165676",
"0.7108926",
"0.70379156",
"0.70379156",
"0.7012156",
"0.69865996",
"0.6968002",
... | 0.0 | -1 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.selected_components_for_analysis | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')",
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n C3ST = YKHO._meta.... | [
"0.7801624",
"0.77112937",
"0.767426",
"0.767426",
"0.7524702",
"0.74020135",
"0.7398639",
"0.7378346",
"0.7328583",
"0.7270028",
"0.7244434",
"0.7233179",
"0.7205981",
"0.7174358",
"0.7165676",
"0.7108926",
"0.70379156",
"0.70379156",
"0.7012156",
"0.69865996",
"0.6968002",
... | 0.0 | -1 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.components + ', ' + YKHO.circuit_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')",
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n C3ST = YKHO._meta.... | [
"0.7801624",
"0.77112937",
"0.767426",
"0.767426",
"0.7524702",
"0.74020135",
"0.7398639",
"0.7378346",
"0.7328583",
"0.7270028",
"0.7244434",
"0.7233179",
"0.7205981",
"0.7174358",
"0.7165676",
"0.7108926",
"0.70379156",
"0.70379156",
"0.7012156",
"0.69865996",
"0.6968002",
... | 0.0 | -1 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.circuit_url + ', ' + YKHO.equation_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')",
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n C3ST = YKHO._meta.... | [
"0.7801624",
"0.77112937",
"0.767426",
"0.767426",
"0.7524702",
"0.74020135",
"0.7398639",
"0.7378346",
"0.7328583",
"0.7270028",
"0.7244434",
"0.7233179",
"0.7205981",
"0.7174358",
"0.7165676",
"0.7108926",
"0.70379156",
"0.70379156",
"0.7012156",
"0.69865996",
"0.6968002",
... | 0.0 | -1 |
Get appropriate reward probabilities and magnitudes for the specified environment type | def B0hY():
BFeB = CJfw(sEAN)
C4Jp = len(BFeB)
Fn98 = oyIN.zeros(C4Jp) + KRwN
Cyz0 = oyIN.zeros(C4Jp) + K9WD
AJEJ = rLbS(j6Hh, C4Jp, BFeB, Fn98, Cyz0, V0=Zu6A)
return AJEJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QlUW(sEAN, Qabx, KMvS=1.0, _1tc=False):\n W061 = sEAN.reset()\n IvsU = 0\n TNZx = 0\n while True:\n if _1tc:\n sEAN.render()\n W061, vOGg, _ins, bGrB = sEAN.step(int(Qabx[W061]))\n IvsU += KMvS ** TNZx * vOGg\n TNZx += 1\n if _ins:\n break\n ... | [
"0.5735067",
"0.56786704",
"0.5578937",
"0.5578005",
"0.5552497",
"0.5549969",
"0.55411506",
"0.55206627",
"0.55062467",
"0.54884577",
"0.5409473",
"0.53976387",
"0.5372327",
"0.5336546",
"0.52945715",
"0.52482665",
"0.52115095",
"0.51935154",
"0.51680875",
"0.51642865",
"0.5... | 0.0 | -1 |
This function tests if channel ID is a valid channel. | def rOKp():
LM8S()
NA2J = VeSO('johnsmith@gmail.com', '123456', 'john', 'smith')
DXtw = VeSO('harrypotter@gmail.com', '555555', 'harry', 'potter')
nqta = NA2J['token']
FmS3 = DXtw['token']
RfIA(nqta, 'Chill Soc', True)
tohj = 50
with trZe.raises(DQrD):
XZZO(FmS3, tohj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dosU(YKHO, mWFP):\n if mWFP not in YKHO.d.keys():\n raise Exception('Invalid device channel {}'.format(mWFP))",
"def C29L(YwkQ):\n if not hrAk(YwkQ):\n return False\n hB5J = YwkQ[1:]\n if not rPIJ < len(YwkQ) < _mpQ:\n return False\n r8bT = '#\\\\|^`[]{}_'\n jUwZ = vIwR... | [
"0.7191834",
"0.7037074",
"0.68390846",
"0.67598116",
"0.6666539",
"0.6547811",
"0.6529578",
"0.6497992",
"0.64788",
"0.6371125",
"0.6357008",
"0.6299137",
"0.6271895",
"0.6269656",
"0.62527406",
"0.6208131",
"0.62073535",
"0.6198941",
"0.6154156",
"0.60975283",
"0.6084798",
... | 0.5363442 | 83 |
This function tests if the user is already a member in that channel. | def JK29():
LM8S()
VeSO('johnsmith@gmail.com', '123456', 'john', 'smith')
DXtw = VeSO('harrypotter@gmail.com', '555555', 'harry', 'potter')
FmS3 = DXtw['token']
a2Fx = RfIA(FmS3, 'Chill Soc', True)
with trZe.raises(s09c):
XZZO(FmS3, a2Fx['channel_id']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHvU(OaeV: Context, YwkQ: TextChannel) -> bool:\n for mS46 in YwkQ.members:\n if mS46.id == OaeV.author.id:\n return True\n return False",
"def Xrpd(LOJ7, lgoE):\n for cvuo in p9bx.get_channel_data(LOJ7)['member_ids']:\n if cvuo == lgoE:\n return True\n return ... | [
"0.8083576",
"0.7774621",
"0.70366037",
"0.6984563",
"0.6958817",
"0.67023796",
"0.66876537",
"0.6578983",
"0.65242314",
"0.65176374",
"0.64362967",
"0.6359935",
"0.63106453",
"0.6305535",
"0.6280492",
"0.62686795",
"0.6198063",
"0.6160048",
"0.6157889",
"0.61391985",
"0.6126... | 0.0 | -1 |
pair_scatter This takes the same args and kwargs that seaborn.pairplot does This is mostly just like seaborn.pairplot, but outputs a figure instead of the PairPlot object | def GXmj(jQ3Z, **B2fa):
Cs6h = uuEx.pairplot(jQ3Z, **B2fa)
return Cs6h.fig | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WVUV(YKHO, bOBl):\n Jw9H = {'color': YKHO.plot_design.pairplot_color}\n XP5J = uuEx.pairplot(bOBl, plot_kws=Jw9H, diag_kws=Jw9H)\n return XP5J",
"def WVUV(nPrm, KbRe, ZLJ_=None, oKbW='auto', sg7B='auto'):\n if ZLJ_ is None:\n ZLJ_ = nPrm.columns.drop(KbRe)\n ROaS = len(ZLJ_)\n LZpg, ... | [
"0.73890513",
"0.6957364",
"0.6930941",
"0.67144316",
"0.66208094",
"0.6536836",
"0.6476543",
"0.64353055",
"0.64142156",
"0.6403881",
"0.6392307",
"0.6258702",
"0.61979514",
"0.6187786",
"0.61588895",
"0.6156505",
"0.6140446",
"0.6137084",
"0.61229384",
"0.61052203",
"0.6093... | 0.8691291 | 0 |
Load user by ID. | def lyxB(YKHO, uJjO):
return YKHO.get_user_by_id(int(uJjO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lyxB(id):\n return mv1M.get_by_id(int(id))",
"def lyxB(id):\n return mv1M.query.get(int(id))",
"def lyxB(id):\n return mv1M.query.get(int(id))",
"def lyxB(id):\n return mv1M.query.get(int(id))",
"def lyxB(id):\n return mv1M.query.get(int(id))",
"def lyxB(id):\n return mv1M.query.get... | [
"0.8996386",
"0.8917922",
"0.8851071",
"0.8851071",
"0.8851071",
"0.8851071",
"0.8824558",
"0.8784457",
"0.8637541",
"0.8620829",
"0.8620829",
"0.8620829",
"0.8552219",
"0.8500475",
"0.8500475",
"0.8500475",
"0.8500475",
"0.8500475",
"0.8500475",
"0.8487927",
"0.84707946",
... | 0.82733166 | 26 |
This method compute frequency in our sentence, output we got a dict with our words as key and their frequency as value | def DDm3(YKHO, xDcj: str) -> cuzp[str, int]:
return gtJl(YKHO.sentence, xDcj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gjtu(YKHO):\n QTg7 = {}\n zuhS = ''.join(i95r(YKHO.text).words())\n for r8hN in zuhS:\n if r8hN in QTg7:\n QTg7[r8hN] += 1\n else:\n QTg7[r8hN] = 1\n return QTg7",
"def QBWH(YKHO, nPrm):\n tbx9 = {}\n for AW_w in nPrm:\n for sJrW in AW_w:\n ... | [
"0.8010188",
"0.7981466",
"0.79751384",
"0.7961267",
"0.7899221",
"0.78735006",
"0.7868755",
"0.78334075",
"0.7742686",
"0.7717778",
"0.7693603",
"0.7682794",
"0.7678445",
"0.76741695",
"0.76602846",
"0.75944376",
"0.7536005",
"0.75324273",
"0.75254095",
"0.7504569",
"0.75041... | 0.0 | -1 |
GET a specific column | def iYZ_():
vexM = QePW.query.decode()
zxr_ = vexM['worksheetKey']
fvDH = vexM['col']
hkxX = KG9w.read_column(zxr_, fvDH)
if hkxX is not None:
geh0.status = '200 OK'
geh0.content_type = 'application/json'
return {'values': hkxX, 'col': fvDH, 'worksheetKey': zxr_}
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iBd8(YKHO, mWFP):\n return YKHO.column(mWFP)",
"def iBd8(Emd4, mWFP):\n return Emd4._columns[mWFP]",
"def iVRZ(YKHO):\n return YKHO['column']",
"def Osfr(YKHO, z0q4):\n or8S = YKHO.colnames.index(z0q4)\n return YKHO.getColByIdx(or8S)",
"def iYZ_(YKHO, H5ew):\n return YKHO._get_column(... | [
"0.81027824",
"0.8023643",
"0.7771552",
"0.7703597",
"0.76210535",
"0.75037944",
"0.741529",
"0.74087614",
"0.73429793",
"0.7334374",
"0.7291975",
"0.7285666",
"0.7235966",
"0.72267145",
"0.7215415",
"0.7168489",
"0.7165549",
"0.71578985",
"0.7143961",
"0.71410656",
"0.713865... | 0.7268583 | 12 |
r""" Calculates the diffusive conductance of conduits in network with Knudsen correction. A conduit is defined as (1/2 pore full throat 1/2 pore). See Notes section for the limitations of this method. | def dqon(pan_, osV8='pore.diameter', iSCC='throat.diameter', DLFD='pore.diffusivity', oeHK='throat.diffusivity', NJ_j='pore.temperature', Pdhq='throat.temperature', cHrP='pore.molecular_weight', ZNNA='throat.diffusive_size_factors'):
eVVj = pan_.network
JT9N = pan_.project.find_phase(pan_)
GJR1 = JT9N[DLFD]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XQKP(BYpM: int) -> a1PO.Diffusivity:\n return a1PO.Diffusivity(10 ** (-4.536 + -0.1088 * BYpM), 'cm^2/s')",
"def UqZj(YKHO):\n r8hN = 0.0167296736\n Z9rn = 8.54665149e-05\n return r8hN * YKHO.concentration + Z9rn",
"def TB4s(YKHO, JRYC):\n rrLg = YKHO.grid\n rVnq = rrLg.phi\n aBj4 = rr... | [
"0.61012846",
"0.6090041",
"0.5988767",
"0.5776319",
"0.56953377",
"0.56907004",
"0.5687848",
"0.5650993",
"0.5644678",
"0.5619494",
"0.5617038",
"0.5600806",
"0.55904526",
"0.5568432",
"0.55664974",
"0.5551836",
"0.55277014",
"0.55083054",
"0.5487383",
"0.54592997",
"0.54185... | 0.5144721 | 65 |
Constructor for the Vel3d_k__stc_imodemParser class. | def FIMM(YKHO, GPtr, eZ_W, QTBn, LYvs, jyau, jc_V):
cPuq, juNt, dZEM, YKHO.velocity_format, YKHO.velocity_record_size, VGyY = YKHO.get_file_parameters(eZ_W)
if cPuq:
YKHO._timestamp = 0.0
YKHO.input_file = eZ_W
if QTBn:
YKHO.set_state(QTBn)
else:
W9gz = {E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, c4ZB, Bxh_, apZK):\n YKHO.osi = c4ZB\n YKHO.n_d_mat = Bxh_\n YKHO.n_dim = int(apZK)\n if c4ZB is not None:\n c4ZB.n_mat += 1\n YKHO._tag = c4ZB.n_mat\n YKHO._parameters = [YKHO.op_type, YKHO._tag, YKHO.n_d_mat.tag, YKHO.n_dim]\n if c4ZB is None:\n YKHO.built = ... | [
"0.50951844",
"0.49798307",
"0.4908155",
"0.48538482",
"0.48508996",
"0.48219338",
"0.478428",
"0.47173795",
"0.47165218",
"0.46510017",
"0.4633375",
"0.46286377",
"0.46039876",
"0.4594997",
"0.45936438",
"0.45734796",
"0.45718026",
"0.45689926",
"0.45669135",
"0.45573574",
"... | 0.48073146 | 6 |
The time that the task was created. `create_time` will be truncated to the nearest second. | def x7vo(YKHO) -> str:
return qe4Y.get(YKHO, 'create_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x7vo(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'create_time')",
"def x7vo(YKHO):\n return YKHO._create_time",
"def x7vo(YKHO):\n return YKHO._create_time",
"def x7vo(YKHO):\n return YKHO._create_time",
"def x7vo(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'create_time')",
"def... | [
"0.8007297",
"0.79653144",
"0.79653144",
"0.79653144",
"0.78487325",
"0.78487325",
"0.78487325",
"0.78487325",
"0.78487325",
"0.78487325",
"0.78487325",
"0.78487325",
"0.78487325",
"0.78487325",
"0.7676438",
"0.7676438",
"0.7676438",
"0.76223123",
"0.7492866",
"0.7492866",
"0... | 0.81494695 | 11 |
The status of the task's first attempt. Only dispatch_time will be set. The other Attempt information is not retained by Cloud Tasks. | def PuR0(YKHO) -> 'outputs.AttemptResponse':
return qe4Y.get(YKHO, 'first_attempt') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fz69():\n pass",
"def Skcq(YKHO, pXU5):\n raise NotImplementedError",
"def paM7(YKHO):\n return YKHO._initial_status",
"def XWMp(YKHO) -> str:\n return YKHO._task_status",
"def Jxmr(YKHO):\n with YKHO.lock:\n return (YKHO.status, YKHO.time_start)",
"def jGRS(YKHO):\n if hasat... | [
"0.632302",
"0.6179762",
"0.6081784",
"0.5957686",
"0.58072406",
"0.5789425",
"0.5730254",
"0.5712778",
"0.56944793",
"0.5662154",
"0.5608064",
"0.56048805",
"0.5577044",
"0.5538479",
"0.5533489",
"0.55318993",
"0.5528515",
"0.5513949",
"0.5513949",
"0.5513949",
"0.5503099",
... | 0.69109195 | 0 |
The status of the task's last attempt. | def iOXv(YKHO) -> 'outputs.AttemptResponse':
return qe4Y.get(YKHO, 'last_attempt') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XWMp(YKHO) -> str:\n return YKHO._task_status",
"def jGRS(YKHO):\n if not YKHO._last_command:\n return None\n return YKHO._last_command.status()",
"def jGRS(YKHO):\n return YKHO._status",
"def jGRS(YKHO):\n return YKHO.__status",
"def jGRS(YKHO):\n return YKHO.__status",
"def... | [
"0.75221205",
"0.70977265",
"0.7057964",
"0.70540893",
"0.70540893",
"0.7025561",
"0.7025561",
"0.7021853",
"0.7014899",
"0.7012207",
"0.70084274",
"0.7008381",
"0.7008381",
"0.7008381",
"0.7008381",
"0.7008381",
"0.7008381",
"0.7008381",
"0.7008381",
"0.7008381",
"0.7008381"... | 0.72757167 | 1 |
The number of attempts which have received a response. | def hP0I(YKHO) -> int:
return qe4Y.get(YKHO, 'response_count') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hP0I(YKHO):\n return YKHO.responses.count()",
"def rvsf(YKHO):\n return YKHO.retried_nomax + YKHO.retried_withmax",
"def R8vu(YKHO):\n return YKHO._tries",
"def nMmc(YKHO):\n return YKHO.__echo_resp_received_count",
"def tKLl(YKHO):\n return YKHO.__echo_req_received_count",
"def AO21(Y... | [
"0.78385603",
"0.7570554",
"0.73338926",
"0.7281014",
"0.7198159",
"0.70592964",
"0.70407015",
"0.69883144",
"0.6972543",
"0.6963951",
"0.6962343",
"0.69531786",
"0.6952647",
"0.69318783",
"0.6822602",
"0.681391",
"0.68120253",
"0.6789667",
"0.67754894",
"0.67714596",
"0.6753... | 0.81446725 | 0 |
The betterEvaluationFunction takes in a GameState (pacman.py) and should return a number, where higher numbers are better. A GameState specifies the full game state, including the food, capsules, agent configurations and more. Following are a few of the helper methods that you can use to query a GameState object to gat... | def ybSK(Ov5A):
p1kx = Ov5A.getScore()
Bet6 = Ov5A.getFood()
CUTm = Bet6.height + Bet6.width
p1kx -= CUTm * len(Ov5A.getCapsules())
hJR9 = Ov5A.getNumFood()
i2Mx = [gnPz.manhattanDistance(Ov5A.getPacmanPosition(), qRSu) for qRSu in Ov5A.getCapsules()]
BRgC = 1
if len(i2Mx) > 0:
B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ybSK(rfNN):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n o6eZ = rfNN.getPacmanPosition()\n u7vz = [pvZU for pvZU in rfNN.getFood().asList() if pvZU]\n aB67 = rfNN.getGhostStates()\n Edxd = [zfrT.scaredTimer for zfrT in aB67]\n '*** YOUR CODE HERE ***'\n MG4g = min((OLkv(o6eZ, komd.configuration.... | [
"0.7889473",
"0.78060776",
"0.771014",
"0.7673175",
"0.76435345",
"0.763816",
"0.76329374",
"0.76190645",
"0.76048577",
"0.759801",
"0.7576133",
"0.7551659",
"0.75455004",
"0.74940455",
"0.7486682",
"0.7447774",
"0.7427865",
"0.74278563",
"0.7355879",
"0.7353096",
"0.7340191"... | 0.7765365 | 2 |
Returns the minimax action from the current gameState using self.depth | def bk5W(YKHO, Ov5A):
def yvY1(Ov5A):
return Ov5A.isWin() or Ov5A.isLose()
def KkY2(Ov5A):
if Ov5A.isWin():
return XTiz.inf
if Ov5A.isLose():
return -XTiz.inf
def TfT0(ulZ6):
if ulZ6 + 1 < Ov5A.getNumAgents():
return ulZ6 + 1
els... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A):\n return YKHO.minimax(Ov5A, YKHO.depth, 0)",
"def SR1K(YKHO, BH3N, rb7a):\n bGrB, BZN_ = YKHO.minimax_search(BH3N, rb7a)\n return BZN_",
"def bk5W(YKHO, Ov5A):\n return YKHO.expectimax(Ov5A, YKHO.depth, 0)",
"def SR1K(YKHO, BH3N, rb7a):\n if YKHO.time_left() < YKHO.TIMER_... | [
"0.8119442",
"0.80528206",
"0.7672852",
"0.7626307",
"0.760629",
"0.75542367",
"0.7516353",
"0.7480004",
"0.7465332",
"0.73673624",
"0.73193645",
"0.722959",
"0.72238237",
"0.72043943",
"0.72040683",
"0.71991295",
"0.71896046",
"0.71701616",
"0.7167447",
"0.7151385",
"0.71420... | 0.6858474 | 45 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
def yvY1(Ov5A):
return Ov5A.isWin() or Ov5A.isLose()
def KkY2(Ov5A):
if Ov5A.isWin():
return XTiz.inf
if Ov5A.isLose():
return -XTiz.inf
def TfT0(ulZ6):
if ulZ6 + 1 < Ov5A.getNumAgents():
return ulZ6 + 1
els... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482665",
"0.7383559",
"0.71806973",
"0.7110041",
"0.70884514",
"0.70694935",
"0.70683014",
"0.7048308",
"0.70055133",
"0.69651455",
"0.69642085",
"0.69604385",
"0.6945924",
"0.68998593",
"0.6895832",
"0.688605",
"0.6826282",
"0.6767276",
"0.6758028",
"0.6751636",
"0.67054... | 0.0 | -1 |
Return a blue filtered copy of image; that is, an image that is showing only the blue color of the original image. >>> image = load_image(choose_file()) >>> inverted = invert(image) >>> show(inverted) | def Ludk(LNo8: Image) -> hnIv:
FHlE = jth9(LNo8)
for WKvO, LVAh, (Mkmy, Oa1e, Fg_i) in LNo8:
pPPK = egIk(0, 0, Fg_i)
rqSI(FHlE, WKvO, LVAh, pPPK)
return FHlE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CX33(YKHO, VXjJ):\n return YKHO.inverse()(VXjJ)",
"def rvmn(VXjJ):\n VXjJ = 255 - VXjJ\n return VXjJ",
"def hO0C(UiEM):\n return YPwv.bitwise_not(UiEM)",
"def CX33(VXjJ):\n print('invert image')\n bGrB, hGax = XC5k.threshold(VXjJ, 140, 255, XC5k.THRESH_BINARY_INV)\n return hGax",
"... | [
"0.6841666",
"0.67207026",
"0.66851586",
"0.64867854",
"0.6322392",
"0.6225471",
"0.62059945",
"0.61917835",
"0.61660177",
"0.61458015",
"0.6100702",
"0.60523343",
"0.60246366",
"0.5917139",
"0.5912366",
"0.5827494",
"0.5796539",
"0.57886845",
"0.5767702",
"0.5754818",
"0.572... | 0.6706989 | 2 |
Convert a line represented in slope and intercept into pixel points | def Yks1(si3g, skBL, zFiD):
if zFiD is None:
return None
VMex, BlB8 = zFiD
o4D3 = int((si3g - BlB8) / VMex)
ajwV = int((skBL - BlB8) / VMex)
si3g = int(si3g)
skBL = int(skBL)
return ((o4D3, si3g), (ajwV, skBL)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qiXT(LNo8, mtCK):\n VMex, BlB8 = mtCK\n si3g = LNo8.shape[0]\n skBL = int(si3g * (3 / 5))\n o4D3 = int((si3g - BlB8) / VMex)\n ajwV = int((skBL - BlB8) / VMex)\n return oyIN.array([o4D3, si3g, ajwV, skBL])",
"def nbwz(YKHO, LNo8, zFiD):\n print('This is line inside make_points: ', zFiD)\... | [
"0.74096894",
"0.72594327",
"0.70885116",
"0.69204056",
"0.6878454",
"0.6558704",
"0.6534711",
"0.6435727",
"0.62541074",
"0.6199262",
"0.61867845",
"0.6135914",
"0.61196333",
"0.6095515",
"0.60737485",
"0.6069733",
"0.6028197",
"0.6015615",
"0.59926707",
"0.5944355",
"0.5930... | 0.73359877 | 1 |
Return package version as listed in `__version__` in `init.py`. | def kaPv(B5hb):
print(Hy7s.path.join(B5hb, '__init__.py'))
Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()
return ZbWC.match('__version__ = [\'"]([^\'"]+)[\'"]', Eosz).group(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRea() -> str:\n pmON = gzes(TLI7(xAKo), '__init__.py')\n pmON = ENtY(WQbV(pmON))\n with open(pmON) as eHNT:\n for zFiD in eHNT:\n if zFiD.startswith('__version__'):\n eOtH, DpZH = zFiD.split(' = ', 1)\n DpZH = DpZH.replace(\"'\", '').strip()\n ... | [
"0.84893894",
"0.83908445",
"0.83863354",
"0.8380136",
"0.8370828",
"0.8370828",
"0.8370828",
"0.8370828",
"0.8370828",
"0.8370828",
"0.8370828",
"0.83694756",
"0.83582735",
"0.8357903",
"0.835638",
"0.8078477",
"0.7975143",
"0.7938866",
"0.78928864",
"0.78928864",
"0.7892886... | 0.8379423 | 4 |
Calculate the distance between two agents | def feSd(YKHO, Elif: Any) -> float:
return oyIN.linalg.norm(YKHO.pos - Elif.pos) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWYU(PBb0, nuhI):\n return ((PBb0._y - nuhI._y) ** 2 + (PBb0._x - nuhI._x) ** 2) ** 0.5",
"def pImw(Tmix, tD_z):\n return abs(len(Tmix.goal) - len(tD_z.goal))",
"def AUp_(XdvW: Asteroid, GhiN: Asteroid) -> float:\n eUWA = GhiN.y - XdvW.y\n Jw7X = GhiN.x - XdvW.x\n return epAf.sqrt(eUWA * eUW... | [
"0.7814406",
"0.7574718",
"0.7492769",
"0.71866095",
"0.6973506",
"0.696076",
"0.6945819",
"0.69293475",
"0.68873584",
"0.68859565",
"0.68843186",
"0.68146455",
"0.68087804",
"0.68077147",
"0.6803607",
"0.6802777",
"0.67979455",
"0.67962873",
"0.6793501",
"0.6789658",
"0.6774... | 0.6825666 | 11 |
This it's gone turn index.html page and it content | def d6pt():
Tmto = a79v('general')
sdCG = 'ALLOVER THE WORLD NEWS'
return TvZl('index.html', title=sdCG, isoko=Tmto) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ozko():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('pages/index.html', isNav=True)",
"def d6pt(QePW):\n rPXJ = DWkG.get_template('index.html')\n return igJ6(rPXJ.render(), content_type='text/html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('... | [
"0.7287084",
"0.7201184",
"0.7130397",
"0.706242",
"0.706242",
"0.706242",
"0.7047986",
"0.7046092",
"0.7012052",
"0.69814",
"0.6973493",
"0.6960424",
"0.6960424",
"0.69515455",
"0.693485",
"0.6909258",
"0.6904489",
"0.6904489",
"0.6891802",
"0.688946",
"0.68877625",
"0.687... | 0.7445376 | 0 |
Find largest node in tree | def ipPO(YKHO, tk5Y=None):
return YKHO._find_max(tk5Y if tk5Y else YKHO.root) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nC9x(YKHO, tk5Y):\n while tk5Y.right:\n tk5Y = tk5Y.right\n return tk5Y",
"def jqD_(YKHO):\n if YKHO.root:\n YKHO.max_val = YKHO.root.value\n else:\n return 'No tree found'\n\n def _gRY(tk5Y):\n if tk5Y.left:\n _gRY(tk5Y.left)\n if tk5Y.right:\n ... | [
"0.78764224",
"0.78672236",
"0.7837464",
"0.764396",
"0.76304954",
"0.7621293",
"0.7611956",
"0.7447082",
"0.7432756",
"0.7418194",
"0.7379396",
"0.7309103",
"0.7289041",
"0.72726774",
"0.7248333",
"0.7245537",
"0.7139116",
"0.7131684",
"0.7110197",
"0.70932734",
"0.7090912",... | 0.75121576 | 7 |
Find largest node in tree | def nC9x(YKHO, tk5Y):
while tk5Y.right:
tk5Y = tk5Y.right
return tk5Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jqD_(YKHO):\n if YKHO.root:\n YKHO.max_val = YKHO.root.value\n else:\n return 'No tree found'\n\n def _gRY(tk5Y):\n if tk5Y.left:\n _gRY(tk5Y.left)\n if tk5Y.right:\n _gRY(tk5Y.right)\n if YKHO.max_val < tk5Y.value:\n YKHO.max_val = t... | [
"0.78672236",
"0.7837464",
"0.764396",
"0.76304954",
"0.7621293",
"0.7611956",
"0.75121576",
"0.7447082",
"0.7432756",
"0.7418194",
"0.7379396",
"0.7309103",
"0.7289041",
"0.72726774",
"0.7248333",
"0.7245537",
"0.7139116",
"0.7131684",
"0.7110197",
"0.70932734",
"0.7090912",... | 0.78764224 | 0 |
Gets the trust_id of this DutyWhere. name of the trust | def l0_H(YKHO):
return YKHO._trust_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gcbY(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'trust_type')",
"def gcbY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'trust_type')",
"def gcbY(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'trust_type')",
"def l0_H(YKHO, l0_H):\n YKHO._trust_id = l0_H",
"def lDVs(YK... | [
"0.67038584",
"0.6499057",
"0.60621184",
"0.60080576",
"0.59575444",
"0.59575444",
"0.5909876",
"0.5841936",
"0.5789147",
"0.5705299",
"0.5646863",
"0.56258225",
"0.56077",
"0.5583657",
"0.55801296",
"0.5579116",
"0.55748373",
"0.55477047",
"0.55401397",
"0.5518343",
"0.55126... | 0.8068835 | 0 |
Gets the unit_code of this DutyWhere. Code for the unit within the trust | def wnj5(YKHO):
return YKHO._unit_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G1Gj(YKHO):\n return _VfD.Unit_getTypeCode(YKHO)",
"def G1Gj(YKHO):\n return _VfD.UnitDefinition_getTypeCode(YKHO)",
"def zM6d(YKHO):\n return YKHO.code",
"def zM6d(YKHO):\n return YKHO.code",
"def zM6d(YKHO):\n return YKHO.code",
"def zM6d(YKHO):\n return YKHO.code",
"def B73r(YK... | [
"0.65158004",
"0.62539524",
"0.6146846",
"0.6146846",
"0.6146846",
"0.6146846",
"0.59471774",
"0.58909506",
"0.58909506",
"0.58909506",
"0.5810293",
"0.57992256",
"0.57506573",
"0.57506573",
"0.57506573",
"0.57506573",
"0.5719915",
"0.5719915",
"0.5683859",
"0.5662948",
"0.56... | 0.81566304 | 0 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.73513573",
"0.71743697",
"0.71278554",
"0.6560718",
"0.6422419",
"0.6403078",
"0.6340598",
"0.62880164",
"0.6281034",
"0.6251411",
"0.6248832",
"0.6233635",
"0.62224823",
"0.62224823",
"0.62074494",
"0.62074494",
"0.62074494",
"0.62074494",
"0.62074494",
"0.62074494",
"0.6... | 0.6248533 | 17 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, eZ_W):\n raise NotImplementedError()",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):... | [
"0.68112403",
"0.6588688",
"0.655683",
"0.6552607",
"0.64272827",
"0.63816285",
"0.6255956",
"0.61930686",
"0.61160946",
"0.6094262",
"0.6054992",
"0.6051947",
"0.5989807",
"0.5927489",
"0.5922901",
"0.5920675",
"0.59200704",
"0.59155166",
"0.59155166",
"0.59155166",
"0.59155... | 0.5994604 | 16 |
GET given route and params. Serialize the result. Return as JSON. | def BeiH(YKHO, PsCT, NArs=None):
bD7m = Qpdj(PsCT, NArs)
return qQXR.loads(YKHO.GetAndSave(bD7m, DyUn)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s6sc(YKHO, MBJX, NArs=None, xDcj=None, MOPg=None, **B2fa):\n return YKHO.__req(MBJX, params=NArs, query=xDcj, op=lambda Mkmy: YKHO.get(Mkmy, headers=MOPg), raw_response=False, **B2fa)",
"def NMoC(pmON, NArs=None):\n bD7m = lWQw.format(pmON)\n qv1X = G4JS.get(bD7m, params=NArs)\n return qv1X.json(... | [
"0.78712904",
"0.70768774",
"0.69536865",
"0.6845011",
"0.68407464",
"0.68249154",
"0.67622286",
"0.67054296",
"0.6701869",
"0.6619591",
"0.65701",
"0.64673096",
"0.6465392",
"0.64311814",
"0.6400853",
"0.63912594",
"0.6368223",
"0.6368223",
"0.6368223",
"0.6368223",
"0.63682... | 0.70040745 | 2 |
Returns the supercell size, and whether the supercell should be applied to s1. If fu == 1, s1_supercell is returned as true, to avoid ambiguity. | def w7IJ(YKHO, j93S, Nqp_):
if YKHO._supercell_size == 'num_sites':
YEiJ = Nqp_.num_sites / j93S.num_sites
elif YKHO._supercell_size == 'num_atoms':
YEiJ = Nqp_.composition.num_atoms / j93S.composition.num_atoms
elif YKHO._supercell_size == 'volume':
YEiJ = Nqp_.volume / j93S.volume
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pzk_(YKHO, fIDj, _2RE, YEiJ, jhrm):\n\n def OA9X(jtyf, V70B):\n NArs = (oyIN.array(jtyf.lengths_and_angles) + oyIN.array(V70B.lengths_and_angles)) / 2\n return SYHL.from_lengths_and_angles(*NArs)\n\n def Kg72(j93S, Nqp_):\n m0M1 = oyIN.array(Nqp_.frac_coords)\n if YEiJ == 1:\n... | [
"0.6115968",
"0.5805347",
"0.5264357",
"0.5202701",
"0.51907843",
"0.51287484",
"0.5033274",
"0.48451474",
"0.483657",
"0.4819052",
"0.4785344",
"0.4773524",
"0.4761582",
"0.47374627",
"0.47332603",
"0.47305235",
"0.46891186",
"0.46822417",
"0.46752262",
"0.46349266",
"0.4627... | 0.79271257 | 0 |
Returns true if a matching exists between s2 and s2 under frac_tol. s2 should be a subset of s1 | def vrSN(YKHO, j93S, Nqp_, aTyj, ZHfW):
if len(Nqp_) > len(j93S):
raise ValueError('s1 must be larger than s2')
if ZHfW.shape != (len(Nqp_), len(j93S)):
raise ValueError('mask has incorrect shape')
return q0fc(Nqp_, j93S, aTyj, ZHfW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Qz6(YKHO, Elif, D1sU):\n ...",
"def qjNe(LONS, liM1):\n return LONS[0] * liM1[1] > liM1[0] * LONS[1]",
"def rhnP(jzdc, Fg_i, yJiH):\n return abs(jzdc - Fg_i) <= yJiH",
"def xa14(YKHO, oXaw):\n return YKHO.equal == oXaw.equal",
"def FlTy(jzdc, Fg_i, yJiH=1e-05):\n return abs(jzdc - Fg_i)... | [
"0.64357406",
"0.6404424",
"0.62616545",
"0.62444466",
"0.61546046",
"0.61519325",
"0.6039857",
"0.60057884",
"0.59772485",
"0.59385866",
"0.5925051",
"0.5901621",
"0.5882426",
"0.58783686",
"0.57963",
"0.5742207",
"0.57390463",
"0.5710285",
"0.5692037",
"0.56900704",
"0.5688... | 0.66467285 | 0 |
Test if `set_aspect` works. | def almj():
wrYk()
LZpg = QrM1.figure()
aNZO = LZpg.add_subplot(projection='ternary')
aNZO.plot(*KLzQ())
aNZO.set_aspect(1.5)
aNZO.set_tlabel('Top')
aNZO.set_llabel('Left')
aNZO.set_rlabel('Right') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RoHf(YKHO, iILa):\n YKHO.set_preserve_aspect_ratio(iILa)",
"def RoHf(YKHO, iILa):\n YKHO.set_preserve_aspect_ratio(iILa)",
"def Ir38(YKHO, Ir38):\n YKHO._aspect = Ir38",
"def pAIe(YKHO, pAIe: float):\n assert type(pAIe) in (int, float)\n YKHO._aspect_ratio = pAIe\n YKHO._reset_matrix()"... | [
"0.6403564",
"0.6403564",
"0.63115966",
"0.60629815",
"0.5848771",
"0.5842859",
"0.5722211",
"0.5676829",
"0.56386065",
"0.5585852",
"0.556926",
"0.55387074",
"0.5482834",
"0.54743123",
"0.54532754",
"0.54045653",
"0.5396406",
"0.5387943",
"0.53661966",
"0.53245074",
"0.53001... | 0.66945904 | 0 |
Test if the taxis label is assigned properly. | def g1xs(YKHO):
LZpg = QrM1.figure()
aNZO = LZpg.add_subplot(projection='ternary')
UXqs = 'T'
aNZO.set_tlabel(UXqs)
assert aNZO.get_tlabel() == UXqs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ctmt(YKHO):\n GfdN = True\n if 'labels' not in YKHO.mapper:\n GfdN = False\n return GfdN",
"def pvUB(YKHO) -> bool:\n return False",
"def pvUB(YKHO) -> bool:\n return False",
"def kvP3(YKHO):\n return YKHO.label is not None",
"def pvUB(YKHO) -> bool:\n return True",
"def c... | [
"0.6767705",
"0.66686714",
"0.66686714",
"0.6652911",
"0.66190463",
"0.64577633",
"0.6430656",
"0.6397393",
"0.6375402",
"0.63408446",
"0.62084407",
"0.6174028",
"0.6145107",
"0.6141471",
"0.60700625",
"0.60529286",
"0.60121953",
"0.60062003",
"0.60028625",
"0.5982958",
"0.59... | 0.792775 | 0 |
Test if the laxis label is assigned properly. | def Qiu1(YKHO):
LZpg = QrM1.figure()
aNZO = LZpg.add_subplot(projection='ternary')
UXqs = 'L'
aNZO.set_llabel(UXqs)
assert aNZO.get_llabel() == UXqs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ctmt(YKHO):\n GfdN = True\n if 'labels' not in YKHO.mapper:\n GfdN = False\n return GfdN",
"def tl5x():\n XEbe = m9U2(i0XC, 'label', 'lh.BA1.label')\n UXqs = Sv9J(XEbe)\n lU6q(oyIN.all(UXqs > 0))",
"def kvP3(YKHO):\n return YKHO.label is not None",
"def l1vv(YKHO, V22M):\n ... | [
"0.6915964",
"0.6869979",
"0.6740967",
"0.6738316",
"0.6696842",
"0.6696842",
"0.66755486",
"0.6577181",
"0.65229946",
"0.6459412",
"0.64190876",
"0.635653",
"0.6303839",
"0.62841386",
"0.62715",
"0.61462396",
"0.61240524",
"0.6062717",
"0.6022183",
"0.60126865",
"0.5974251",... | 0.71906525 | 0 |
Test if the raxis label is assigned properly. | def PK8I(YKHO):
LZpg = QrM1.figure()
aNZO = LZpg.add_subplot(projection='ternary')
UXqs = 'R'
aNZO.set_rlabel(UXqs)
assert aNZO.get_rlabel() == UXqs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kvP3(YKHO):\n return YKHO.label is not None",
"def Ctmt(YKHO):\n GfdN = True\n if 'labels' not in YKHO.mapper:\n GfdN = False\n return GfdN",
"def tl5x():\n XEbe = m9U2(i0XC, 'label', 'lh.BA1.label')\n UXqs = Sv9J(XEbe)\n lU6q(oyIN.all(UXqs > 0))",
"def pvUB(YKHO) -> bool:\n ... | [
"0.6817622",
"0.6666895",
"0.66417587",
"0.6545014",
"0.6545014",
"0.65152204",
"0.65135324",
"0.64894676",
"0.64420146",
"0.6372059",
"0.6314636",
"0.6312459",
"0.6272663",
"0.624556",
"0.61380047",
"0.6118475",
"0.6114992",
"0.6103401",
"0.60473824",
"0.60328084",
"0.602119... | 0.7008074 | 0 |
Retorna el coeficiente del monomio x(i+n)yn) | def kJS3(VN2L, exwG, YRbF):
return int(VN2L.coeff_monomial(WKvO ** (YRbF + exwG) * LVAh ** exwG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OUDs(exwG, WKvO):\n return IuOa(exwG + 1) - IuOa(WKvO + 1).sum()",
"def KFJf(WKvO, XP5J):\n uN02 = 0\n for YRbF, mM0K in enumerate(reversed(XP5J)):\n uN02 += WKvO ** YRbF * mM0K\n return uN02",
"def eHNT(YKHO, EcVT):\n return EcVT[0] ** 3 - EcVT[1] ** 2 + 1",
"def LVAh(WKvO):\n o... | [
"0.6618318",
"0.6503867",
"0.64838326",
"0.6467117",
"0.64599097",
"0.6427226",
"0.6406362",
"0.6378462",
"0.63544434",
"0.6329032",
"0.63180125",
"0.6317357",
"0.6308685",
"0.6301725",
"0.6289192",
"0.6281891",
"0.6272762",
"0.6269528",
"0.6265366",
"0.6264305",
"0.6262189",... | 0.6228677 | 23 |
Return the Organization (instance) owning self. We refrain from storing the owner as a me.ReferenceField in order to avoid automatic/unwanted dereferencing. | def qsJ6(YKHO):
return zvVu.objects.get(id=YKHO.owner_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCH0(YKHO):\n return YKHO",
"def qsJ6(YKHO):\n return YKHO.__owner",
"def qsJ6(YKHO):\n return YKHO._owner",
"def qsJ6(YKHO):\n return YKHO._owner",
"def qsJ6(YKHO):\n return YKHO._owner",
"def qsJ6(YKHO):\n return YKHO._owner",
"def qsJ6(YKHO):\n return YKHO._owner",
"def Fq... | [
"0.74968475",
"0.73855215",
"0.73527604",
"0.73527604",
"0.73527604",
"0.73527604",
"0.73527604",
"0.7271214",
"0.7223621",
"0.71835005",
"0.71835005",
"0.71835005",
"0.71798605",
"0.71774983",
"0.71774983",
"0.7149011",
"0.7004857",
"0.7004857",
"0.7004857",
"0.6968682",
"0.... | 0.8419285 | 0 |
Return a dataset object for the requested path | def dD7q(YKHO, Nyo5):
c55i = YKHO.__dataset_json_values.get_dataset(Nyo5)
return x3i3(c55i, YKHO.__dataset_json_values, YKHO.__facets) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ImzY(pmON: str):\n if pmON.endswith('/'):\n pmON = pmON[:-1]\n if pmON.endswith('.zarr.zip') or pmON.endswith('.zarr'):\n __n6 = rRdA(pmON)\n elif pmON.endswith('tif') or pmON.endswith('tiff'):\n __n6 = TLPo(pmON)\n elif vtfo(gzes(pmON, 'stacks')):\n __n6 = NsVt(pmON)\n ... | [
"0.7443754",
"0.7231678",
"0.66988647",
"0.66692835",
"0.66372293",
"0.6618392",
"0.6614589",
"0.65900046",
"0.6547515",
"0.65356094",
"0.65061194",
"0.6504655",
"0.64662915",
"0.6444945",
"0.643819",
"0.6379319",
"0.6378118",
"0.6364871",
"0.63640875",
"0.63547236",
"0.62829... | 0.74829936 | 0 |
Repeat a PyCUDA 1D array. | def D_0i(input, wPFE, hlel=None):
mLGw = len(input)
AyG3 = mLGw * wPFE
if hlel is None:
hlel = rz9i.empty(mLGw * wPFE, input.dtype)
XkN1 = (1024, 1, 1)
Cs6h = (min(6 * lDLs.Context.get_device().MULTIPROCESSOR_COUNT, (AyG3 - 1) / XkN1[0] + 1), 1)
if input.dtype == oyIN.float32:
ua... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wPFE(jzdc, DVQL, jDK_=None):\n return gC0V.asarray(jzdc).repeat(DVQL, axis=jDK_)",
"def dJly(jzdc, DVQL):\n assert len(jzdc.shape) == 2\n jzdc = oyIN.expand_dims(jzdc, 0)\n jzdc = oyIN.tile(jzdc, [DVQL, 1, 1])\n return jzdc",
"def ThRa(jzdc, DVQL, jDK_=0):\n assert len(jzdc.size()) == 1\n... | [
"0.6613329",
"0.6531858",
"0.6331242",
"0.616121",
"0.6057588",
"0.5913599",
"0.58552325",
"0.5804637",
"0.57970023",
"0.5690868",
"0.5688278",
"0.56821513",
"0.5656603",
"0.56539977",
"0.56503165",
"0.5640061",
"0.5607759",
"0.5590669",
"0.5529615",
"0.55057436",
"0.548744",... | 0.7112809 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Y8eF, N6Z1, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = N3vq.metrics.confusion_matrix(Y8eF, N6Z1)
KndY = KndY[OrFa(Y8eF, N6Z1)]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81920755",
"0.8093736",
"0.8028212",
"0.8017333",
"0.79923165",
"0.7989431",
"0.79789335",
"0.7974398",
"0.795948",
"0.79555666",
"0.7935652",
"0.7932704",
"0.7932632",
"0.7929465",
"0.7924336",
"0.7922666",
"0.79221356",
"0.7921299",
"0.79209703",
"0.7920307",
"0.7916008"... | 0.0 | -1 |
Create a temporary workspace that's deleted later. | def FCbF(YKHO):
YKHO.workspace_dir = gbPf.mkdtemp()
if not Hy7s.path.exists(YKHO.workspace_dir):
Hy7s.makedirs(YKHO.workspace_dir) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dc5B(x0hE, HUs2, MR10):\n nPrm = {'workspace': HUs2, 'context': MR10}\n return x0hE._creoson_post('windchill', 'create_workspace', nPrm)",
"def s453():\n RwiL = Gduc()\n RwiL.create_workspace(RwiL.name)\n nyyK = lO5W(RwiL)\n assert nyyK",
"def CnlH():\n return gbPf.mkdtemp(prefix='pent... | [
"0.6403683",
"0.6292103",
"0.629084",
"0.6179071",
"0.6123292",
"0.61166424",
"0.6063907",
"0.6055099",
"0.60203534",
"0.6003764",
"0.6000168",
"0.59306157",
"0.5887252",
"0.5857108",
"0.5838111",
"0.583276",
"0.5831473",
"0.58028585",
"0.5797624",
"0.57534546",
"0.574701",
... | 0.59399295 | 11 |
If there is no release PR it should return None | def _QDw():
with Po4F('github.requests.get', return_value=FM6F(json=FM6F(return_value=[t1l0]))):
assert kpFb('access_token', 'org', 'repo-missing') is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def fetch_data(YKHO) -> ls54 | None:\n Aofo = await YKHO._client.repos.releases.list(YKHO.repository, **{'params': {'per_page': 1}})\n if not Aofo.data:\n return None\n for Tl0b in Aofo.data:\n if not Tl0b.prerelease:\n return Tl0b\n return Aofo.data[0]",
"def C4RX():\n... | [
"0.68869066",
"0.67248696",
"0.6702946",
"0.6335492",
"0.627297",
"0.61724794",
"0.61574316",
"0.60589975",
"0.6033747",
"0.6001112",
"0.5942638",
"0.58229923",
"0.57530975",
"0.56819075",
"0.56147414",
"0.5594965",
"0.5571692",
"0.5569532",
"0.556103",
"0.55477613",
"0.55440... | 0.74878085 | 0 |
If there is no release PR, an exception should be raised | def SQZG():
hcBq = [P7BK, P7BK]
with trZe.raises(Exception) as aTqo, Po4F('github.requests.get', return_value=FM6F(json=FM6F(return_value=hcBq))):
kpFb('access_token', 'org', 'repo')
assert aTqo.value.args[0] == 'More than one pull request for the branch release-candidate' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _QDw():\n with Po4F('github.requests.get', return_value=FM6F(json=FM6F(return_value=[t1l0]))):\n assert kpFb('access_token', 'org', 'repo-missing') is None",
"def C1A9(YKHO):\n YKHO.assertRaises(VrQA, lambda: YKHO.d.release(0).title)",
"def C4RX():\n QAIN = 'org'\n boHx = 'repo'\n NT_... | [
"0.7243834",
"0.66252226",
"0.65557426",
"0.65354776",
"0.6247172",
"0.62058735",
"0.6186123",
"0.6140308",
"0.6120164",
"0.60529345",
"0.6008979",
"0.60008025",
"0.59942216",
"0.59332687",
"0.59209365",
"0.5895773",
"0.58838034",
"0.58411646",
"0.57549345",
"0.5669394",
"0.5... | 0.65019834 | 4 |
reformatted_full_name should take the first and last names and make it lowercase | def AVN5():
assert KLxE('') == ''
assert KLxE('George') == 'george'
assert KLxE('X Y Z A B') == 'x b' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = f'{c9ua} {zp3f}'\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.t... | [
"0.79634774",
"0.78689885",
"0.78570503",
"0.78530365",
"0.78530365",
"0.78530365",
"0.7831602",
"0.7782751",
"0.7782751",
"0.7782751",
"0.778203",
"0.7773057",
"0.7742193",
"0.77415067",
"0.77213705",
"0.7715623",
"0.7697388",
"0.76908904",
"0.7690708",
"0.76839775",
"0.7680... | 0.7722164 | 14 |
convert address to full path of dta file, adding ".dta" if necessary | def wF98(YKHO, UTX6):
UTX6 = Hy7s.path.abspath(UTX6)
if len(UTX6) < 4 or UTX6[-4:] != '.dta':
UTX6 = UTX6 + '.dta'
return UTX6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdI1(UTX6):\n with open(UTX6, 'rb') as y4bq:\n t4Bm = y4bq.read(11)\n YujQ = t4Bm[0]\n if isinstance(YujQ, str):\n YujQ = ord(YujQ)\n if YujQ == 114 or YujQ == 115:\n return ZjFX(UTX6)\n elif t4Bm.decode('iso-8859-1') == '<stata_dta>':\n return lKqq(UTX6)\n else:\n... | [
"0.6231123",
"0.6056488",
"0.5875363",
"0.5483136",
"0.54393816",
"0.54138017",
"0.53989315",
"0.5382245",
"0.5343251",
"0.53226244",
"0.53045523",
"0.52772117",
"0.5266208",
"0.5239285",
"0.52267164",
"0.5221742",
"0.5207573",
"0.5198608",
"0.5194762",
"0.51935047",
"0.51788... | 0.79562175 | 0 |
Take tuple of string abbreviations to variable names, and return list of lists of all matches within varlist. Raises error if no match or ambiguous abbreviation. Strip out duplicates if unique==True. Allow '_dta' if evars==True. If all_ok==True, using '_all' returns entire varlist if evars==False or entire varlist + '_... | def NcYC(YKHO, NLVo, kcwm=False, Uwms=False, JcPB=False, U9sI=False, xuug=False):
if isinstance(NLVo, str):
NLVo = (NLVo,)
elif not isinstance(NLVo, g760.Iterable):
raise TypeError('variable names should be str or iterable of str')
mggN = []
for mWFP in NLVo:
if not isinstance(mW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k92J(YKHO, t4Xu):\n YKHO.varnams = [[Ty9i.name, Ty9i.composer, Ty9i.talam] for Ty9i in t4Xu if Ty9i.raga == YKHO.name]",
"def uarp(Ylbp):\n\n def mZ1z(KCHu):\n oeNL = KCHu.find(':')\n return KCHu if oeNL == -1 else KCHu[0:oeNL]\n return set([mZ1z(H5ew) for H5ew in Ylbp.keys()])",
"de... | [
"0.56152755",
"0.5435036",
"0.5386813",
"0.5370414",
"0.5283545",
"0.52825266",
"0.5275307",
"0.52709144",
"0.5250864",
"0.5234491",
"0.5224221",
"0.5190402",
"0.5138899",
"0.510342",
"0.50570965",
"0.4950475",
"0.4935325",
"0.49248442",
"0.49190775",
"0.4898992",
"0.488967",... | 0.81142443 | 0 |
create dataset from iterable of values | def bl6u(YKHO, TNM3, EC_r=True, NMgW=False, LpOW=False):
global get_missing
def kBCW(WKvO):
if isinstance(WKvO, str) or not isinstance(WKvO, g760.Iterable):
return [WKvO]
return list(WKvO)
TNM3 = [kBCW(Ty9i) for Ty9i in TNM3]
if NMgW:
TNM3 = [[Ty9i[0] for Ty9i in TNM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6",
"def _3yi(YKHO, fUYa: List[str], bE... | [
"0.6846699",
"0.6706687",
"0.6614409",
"0.6572982",
"0.6381319",
"0.6152478",
"0.6078053",
"0.60516614",
"0.6009887",
"0.60028636",
"0.60023683",
"0.598267",
"0.5980368",
"0.59787655",
"0.58694726",
"0.5861628",
"0.5835699",
"0.5813715",
"0.58033454",
"0.57988906",
"0.5784138... | 0.0 | -1 |
create dataset from iterable of values | def bl6u(YKHO, TNM3, EC_r=True, NMgW=False, LpOW=False):
global get_missing
def kBCW(WKvO):
if any((isinstance(WKvO, a1PO) for a1PO in (str, bytes, bytearray))) or not isinstance(WKvO, g760.Iterable):
return [WKvO]
return list(WKvO)
TNM3 = [kBCW(Ty9i) for Ty9i in TNM3]
if NM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6",
"def _3yi(YKHO, fUYa: List[str], bE... | [
"0.6846699",
"0.6706687",
"0.6614409",
"0.6572982",
"0.6381319",
"0.6152478",
"0.6078053",
"0.60516614",
"0.6009887",
"0.60028636",
"0.60023683",
"0.598267",
"0.5980368",
"0.59787655",
"0.58694726",
"0.5861628",
"0.5835699",
"0.5813715",
"0.58033454",
"0.57988906",
"0.5784138... | 0.0 | -1 |
Convert rotation with angle theta around a certain axis to a rotation matrix in 3D. | def NFyh(jDK_, q7In):
if isinstance(jDK_, jUrF):
jDK_ = jDK_.lower()
if jDK_ == 'x':
jDK_ = oyIN.array([1.0, 0.0, 0.0])
elif jDK_ == 'y':
jDK_ = oyIN.array([0.0, 1.0, 0.0])
elif jDK_ == 'z':
jDK_ = oyIN.array([0.0, 0.0, 1.0])
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gk1U(jDK_, q7In):\n A3Vt = oyIN.eye(3)\n Z9rn = epAf.cos(q7In)\n KCHu = epAf.sin(q7In)\n XOOk = (jDK_ + 1) % 3\n pHXX = (jDK_ + 2) % 3\n A3Vt[XOOk, XOOk] = Z9rn\n A3Vt[XOOk, pHXX] = -KCHu\n A3Vt[pHXX, XOOk] = KCHu\n A3Vt[pHXX, pHXX] = Z9rn\n return oyIN.matrix(A3Vt)",
"def e9Kt(... | [
"0.83039474",
"0.82996047",
"0.7958076",
"0.77876127",
"0.7752959",
"0.7738693",
"0.771343",
"0.7689451",
"0.76676506",
"0.7643729",
"0.75913703",
"0.7581533",
"0.75791717",
"0.7576023",
"0.7539417",
"0.7534004",
"0.7530461",
"0.7530461",
"0.7530461",
"0.75226116",
"0.7505317... | 0.8299248 | 2 |
Convert rotation with angle around an axis to a quaternion. | def pWrA(jDK_, q7In):
if isinstance(jDK_, jUrF):
jDK_ = jDK_.lower()
if jDK_ == 'x':
jDK_ = oyIN.array([1.0, 0.0, 0.0])
elif jDK_ == 'y':
jDK_ = oyIN.array([0.0, 1.0, 0.0])
elif jDK_ == 'z':
jDK_ = oyIN.array([0.0, 0.0, 1.0])
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tguD(YylR, jDK_):\n vexM = XTiz.array([0.0, jDK_[0], jDK_[1], jDK_[2]])\n t2JV = u5Ow(vexM)\n if t2JV > BuE3:\n vexM *= epAf.sin(YylR / 2.0) / t2JV\n vexM[0] = epAf.cos(YylR / 2.0)\n return vexM",
"def pWrA(ZZft: torch.Tensor) -> ht2j.Tensor:\n if not ht2j.is_tensor(ZZft):\n r... | [
"0.8411822",
"0.8409346",
"0.8036699",
"0.7792417",
"0.7709342",
"0.7697754",
"0.7606255",
"0.7520978",
"0.7503598",
"0.73995024",
"0.7381303",
"0.7296744",
"0.722843",
"0.71755075",
"0.71447015",
"0.6989757",
"0.69842374",
"0.69297594",
"0.68977565",
"0.6880346",
"0.6852553"... | 0.83641195 | 2 |
Convert rotation with euler angle (psi, theta, phi) to a rotation matrix in 3D, following a Body 323 sequence. | def jezV(nYlf, q7In, rVnq):
kcH9 = oyIN.array([[oyIN.cos(rVnq), -oyIN.sin(rVnq), 0], [oyIN.sin(rVnq), oyIN.cos(rVnq), 0], [0, 0, 1]])
H8ue = oyIN.array([[oyIN.cos(q7In), 0, oyIN.sin(q7In)], [0, 1, 0], [-oyIN.sin(q7In), 0, oyIN.cos(q7In)]])
uuSj = oyIN.array([[oyIN.cos(nYlf), -oyIN.sin(nYlf), 0], [oyIN.sin(n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OJzE(q7In):\n Nfk5 = oyIN.array([[1, 0, 0], [0, oyIN.cos(q7In[0]), -oyIN.sin(q7In[0])], [0, oyIN.sin(q7In[0]), oyIN.cos(q7In[0])]])\n _l6y = oyIN.array([[oyIN.cos(q7In[1]), 0, oyIN.sin(q7In[1])], [0, 1, 0], [-oyIN.sin(q7In[1]), 0, oyIN.cos(q7In[1])]])\n ZVZe = oyIN.array([[oyIN.cos(q7In[2]), -oyIN.sin... | [
"0.70275456",
"0.7008984",
"0.69890505",
"0.69890505",
"0.6986371",
"0.6929727",
"0.68214726",
"0.678568",
"0.6781064",
"0.6776072",
"0.67505866",
"0.67452586",
"0.67209834",
"0.66834885",
"0.66385335",
"0.65838516",
"0.6544615",
"0.6542263",
"0.6536071",
"0.65036774",
"0.648... | 0.7242869 | 0 |
Convert quaternion to a right hand rotation theta about certain axis. | def UAzn(slpS):
fUKV = oyIN.arccos(slpS[0])
q7In = 2 * fUKV
if q7In < oyIN.finfo(float).eps:
q7In = 0
jDK_ = oyIN.array([1, 0, 0])
else:
jDK_ = slpS[[1, 2, 3]] / oyIN.sin(fUKV)
return (q7In, jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UAzn(slpS: torch.Tensor) -> ht2j.Tensor:\n if not ht2j.is_tensor(slpS):\n raise TypeError('Input type is not a torch.Tensor. Got {}'.format(type(slpS)))\n if not slpS.shape[-1] == 4:\n raise ValueError('Input must be a tensor of shape Nx4 or 4. Got {}'.format(slpS.shape))\n hbUd: ht2j.Te... | [
"0.74185026",
"0.74043894",
"0.73408055",
"0.7284427",
"0.72383684",
"0.7179379",
"0.7160747",
"0.7117822",
"0.7082858",
"0.70802224",
"0.7011333",
"0.70066726",
"0.68249214",
"0.67860144",
"0.67447174",
"0.6735009",
"0.67080814",
"0.66954833",
"0.6683593",
"0.66753626",
"0.6... | 0.74275464 | 0 |
Convert the rotation matrix to a quaternion. This function is adopted form | def inOg(YWzc):
CYO9 = YWzc[0, 0]
BgWB = YWzc[0, 1]
LpGM = YWzc[0, 2]
WM11 = YWzc[1, 0]
Kri1 = YWzc[1, 1]
sUwq = YWzc[1, 2]
PbH9 = YWzc[2, 0]
KuY3 = YWzc[2, 1]
RFKQ = YWzc[2, 2]
yKIT = CYO9 + Kri1 + RFKQ
_Jov = oyIN.zeros(4)
if yKIT > 0:
o4sw = oyIN.sqrt(yKIT + 1.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Np0o(bULF):\n zgsA = oyIN.trace(bULF)\n if zgsA > 0:\n o4sw = oyIN.sqrt(zgsA + 1) * 2\n RyRt = 0.25 * o4sw\n jylo = (bULF[2, 1] - bULF[1, 2]) / o4sw\n SInE = (bULF[0, 2] - bULF[2, 0]) / o4sw\n D_A6 = (bULF[1, 0] - bULF[0, 1]) / o4sw\n return oyIN.asarray([RyRt, j... | [
"0.81543934",
"0.8096411",
"0.800307",
"0.78666514",
"0.7754998",
"0.7681627",
"0.7673315",
"0.7656644",
"0.7640824",
"0.75980854",
"0.75331944",
"0.7512957",
"0.745334",
"0.7448648",
"0.74362946",
"0.73628175",
"0.73116684",
"0.7277427",
"0.72080964",
"0.72019076",
"0.719082... | 0.8025711 | 2 |
Convert the quaternion to rotation matrix. This function was originally adopted from | def suG_(_Jov):
KUEC = _Jov[0] * _Jov[1]
L9IC = _Jov[0] * _Jov[2]
WKkj = _Jov[0] * _Jov[3]
Kt7F = _Jov[1] * _Jov[1]
Bj_T = _Jov[1] * _Jov[2]
aRJ9 = _Jov[1] * _Jov[3]
mqaY = _Jov[2] * _Jov[2]
Nswz = _Jov[2] * _Jov[3]
bb80 = _Jov[3] * _Jov[3]
DWJ0 = oyIN.zeros((3, 3))
DWJ0[0, 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9zH(slpS):\n RyRt, jylo, SInE, D_A6 = slpS\n AyER, rAHv, gZUC, ux4C = oyIN.square(slpS)\n CkYf = rAHv + gZUC + ux4C + AyER\n bULF = oyIN.zeros((3, 3))\n bULF[0, 0] = (+rAHv - gZUC - ux4C + AyER) / CkYf\n bULF[1, 1] = (-rAHv + gZUC - ux4C + AyER) / CkYf\n bULF[2, 2] = (-rAHv - gZUC + ux4C ... | [
"0.8385937",
"0.80910295",
"0.79646367",
"0.78918993",
"0.7873004",
"0.7803609",
"0.77704287",
"0.771169",
"0.7671887",
"0.76718676",
"0.7671697",
"0.76704353",
"0.7628803",
"0.7514517",
"0.7457908",
"0.7448835",
"0.744181",
"0.74078906",
"0.73895013",
"0.73027116",
"0.722585... | 0.7414531 | 17 |
Setzen der Studenten ID | def n2Ql(YKHO, DCKO):
YKHO._student = DCKO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7rP(YKHO, DCKO):\n YKHO._student_id = DCKO",
"def KQc2(YKHO):\n return YKHO.__student_id",
"def f6Qh(YKHO, BWXx):\n pass",
"def KQc2(YKHO):\n return YKHO._student_id",
"def V_9M(YKHO, TbZN):\n YKHO.ssc_id = TbZN",
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def V_9M(YKHO, i... | [
"0.80267626",
"0.7273906",
"0.7160689",
"0.71434426",
"0.6994023",
"0.69688904",
"0.68157136",
"0.6731626",
"0.6700038",
"0.6695271",
"0.660595",
"0.65102375",
"0.64598626",
"0.64452785",
"0.6409397",
"0.6374223",
"0.6368561",
"0.63444614",
"0.6341141",
"0.6336631",
"0.633576... | 0.7797016 | 1 |
Updates the weights of the svm using the gradient of computed loss with respect to the weights. | def MyUA(YKHO, EcVT: np.ndarray, LVAh: np.ndarray, b0Ix: float, exOM: float):
ywwl = len(EcVT)
ICX2 = -1 * oyIN.sum((EcVT.T * LVAh).T[oyIN.where(1 - oyIN.matmul(EcVT, YKHO.weights) * LVAh > 0)], axis=0) / ywwl + exOM * YKHO.weights
YKHO.weights -= b0Ix * ICX2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wlzm(YKHO, cC56, VJv0):\n N6Z1 = YKHO.__compute_prediction(cC56)\n jpQA = oyIN.dot(cC56.T, VJv0 - N6Z1)\n r8hN = VJv0.shape[0]\n YKHO.__weights += YKHO.__learning_rate / float(r8hN) * jpQA",
"def MyUA(YKHO, EcVT, fuBA, b0Ix):\n vtNT = YKHO.calculate_gradients(EcVT, fuBA)\n YKHO.weights[0] =... | [
"0.73741186",
"0.72613984",
"0.7249663",
"0.7091025",
"0.7080583",
"0.6968178",
"0.6825624",
"0.6823445",
"0.6819111",
"0.67837256",
"0.67547697",
"0.67402846",
"0.67402846",
"0.6732447",
"0.67245483",
"0.67223966",
"0.6635865",
"0.66358334",
"0.66128945",
"0.65935004",
"0.65... | 0.7729326 | 0 |
Compute the sigmoid of z | def m1Hg(epBp):
KCHu = 1 / (1 + oyIN.exp(-epBp))
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(epBp):\n return mFhB(epBp)",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.e ** (-epBp))",
"def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + tTpl ** (-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-1 * epBp))",
"def m1Hg(YKHO, epBp):\n ... | [
"0.9236619",
"0.91155094",
"0.9034886",
"0.9032656",
"0.8983236",
"0.8982324",
"0.89819604",
"0.8958828",
"0.89279467",
"0.8925133",
"0.8906126",
"0.8891459",
"0.88882077",
"0.8875157",
"0.8872043",
"0.88688284",
"0.886221",
"0.8861199",
"0.8856525",
"0.8849176",
"0.88454694"... | 0.8936817 | 8 |
Takes a TensorFlow Hub URL and creates a Keras Sequential model with it. | def LQs7(zLj6, jTqs=10):
AY3i = Kb4M.KerasLayer(zLj6, trainable=False, name='feature_extraction_layer', input_shape=WEF5 + (3,))
C3ST = ZylS.keras.Sequential([AY3i, fhcK.Dense(jTqs, activation='softmax', name='output_layer')])
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(uqvc):\n C3ST = ZylS.keras.models.load_model(uqvc, custom_objects={'KerasLayer': Kb4M.KerasLayer})\n return C3ST",
"def LQs7():\n C3ST = ileL()\n C3ST.add(l6ZH(units=128, activation='relu', input_shape=(784,)))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=128, a... | [
"0.67066735",
"0.65982985",
"0.6583202",
"0.65256304",
"0.643192",
"0.6340482",
"0.63166904",
"0.6278078",
"0.61787826",
"0.6175333",
"0.616845",
"0.6164243",
"0.6157707",
"0.61543995",
"0.6143902",
"0.6132286",
"0.60899836",
"0.608897",
"0.6088386",
"0.60688317",
"0.6065911"... | 0.77539694 | 0 |
Reads an image from filename, turns it into a tensor and reshapes it to (img_shape, img_shape, color_channels) | def fgTK(Ux0P, yOrK=224):
VXjJ = ZylS.io.read_file(Ux0P)
VXjJ = ZylS.image.decode_image(VXjJ)
VXjJ = ZylS.image.resize(VXjJ, size=[yOrK, yOrK])
VXjJ = VXjJ / 255.0
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJzH(Ux0P):\n WIV_ = ZylS.io.read_file(Ux0P)\n Tocx = ZylS.image.decode_image(WIV_)\n VXjJ = ZylS.image.convert_image_dtype(Tocx, ZylS.float32)\n return VXjJ",
"def j9DC(Ux0P):\n AW93 = ZylS.io.read_file(Ux0P)\n LNo8 = ZylS.image.decode_jpeg(AW93, channels=3)\n LNo8 = ZylS.image.convert_... | [
"0.74465257",
"0.73770237",
"0.73471385",
"0.73118615",
"0.72724974",
"0.72222674",
"0.72039926",
"0.7152212",
"0.70450866",
"0.701073",
"0.69462436",
"0.69244057",
"0.69102216",
"0.6875912",
"0.6848226",
"0.6821782",
"0.6810266",
"0.68008214",
"0.67899656",
"0.6789875",
"0.6... | 0.7686212 | 0 |
Returns the ground distance in metres between two `LocationGlobal` or `LocationGlobalRelative` objects. This method is an approximation, and will not be accurate over large distances and close to the | def FoD6(O3Ka, qqsd):
n_9K = qqsd.lat - O3Ka.lat
fOkK = qqsd.lon - O3Ka.lon
return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5",
"def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5",
"def vjqF(O3Ka... | [
"0.65628535",
"0.65628535",
"0.65628535",
"0.65628535",
"0.65628535",
"0.6560967",
"0.6534655",
"0.65091217",
"0.65084434",
"0.64141434",
"0.6116889",
"0.6110357",
"0.60877216",
"0.6085446",
"0.6042399",
"0.58651173",
"0.5864302",
"0.58567363",
"0.58172727",
"0.5779377",
"0.5... | 0.62166005 | 10 |
Return a queryset of grandchallenges for this player | def nQDU(YKHO):
return jlTH.objects.filter(id__in=SAtp.objects.filter(T8ck(challenge__user_from__user__id=YKHO.id) | T8ck(challenge__user_to__user__id=YKHO.id)).order_by('round').values('challenge')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yotn(YKHO):\n return [gigf.challenge for gigf in SAtp.objects.filter(round=YKHO.round_number).order_by('challenge__status')]",
"def yKcO(Emd4):\n Emd4.create_users()\n yotn = []\n round = 1\n XVAW = None\n for CBIr in Emd4.base_query():\n P6bq = CBIr.user.get_profile()\n if XV... | [
"0.6893353",
"0.6092305",
"0.53357244",
"0.5322764",
"0.52619404",
"0.5103035",
"0.50549614",
"0.5044896",
"0.50080514",
"0.4953403",
"0.49504527",
"0.49347848",
"0.48993596",
"0.48974228",
"0.4872433",
"0.4855257",
"0.4844304",
"0.4828956",
"0.48233017",
"0.4812555",
"0.4801... | 0.7902538 | 0 |
Return a list of previous rounds, as an iterator | def Y4bG(YKHO):
if YKHO.round_number > 0:
for YRbF in range(YKHO.round_number):
yield kVOe(YRbF + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOBR(YKHO):\n return _VfD.SwigPyIterator_previous(YKHO)",
"def AOBR(YKHO):\n return hPFK.SwigPyIterator_previous(YKHO)",
"def Vs4Q(YKHO):\n YKHO.__getitem__(YKHO._num_steps - 1)\n return iter(YKHO._previous_values[YKHO.last_index:])",
"def AOBR(YKHO):\n return Z9eP.SALOMERuntime_PySwigIter... | [
"0.6394961",
"0.6366603",
"0.62678903",
"0.6261321",
"0.6107375",
"0.6050373",
"0.6022207",
"0.5923141",
"0.58976144",
"0.579747",
"0.575922",
"0.571556",
"0.5662907",
"0.5651048",
"0.56443703",
"0.5640501",
"0.5606768",
"0.56036955",
"0.5583842",
"0.55826414",
"0.5416696",
... | 0.59366703 | 7 |
Gets the user's home directory. Similar to '~' | def GwqS(YKHO) -> str:
U5bT = Hy7s.path.expanduser('~')
if not Hy7s.path.exists(U5bT):
raise RuntimeError('The home directory does not exist.')
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aG1h():\n return Hy7s.path.expanduser('~')",
"def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy",
"def ItBp():\n return Hy7s.path.expanduser('~')",
"def vY8Y():\n try:\n AGPF = Hy7s.path.expanduser('~')\n except EnvironmentError:\n AGPF... | [
"0.90667164",
"0.9007491",
"0.8952078",
"0.8929795",
"0.87112486",
"0.87112486",
"0.8677931",
"0.83854556",
"0.83663696",
"0.83194566",
"0.82604116",
"0.8138371",
"0.8103358",
"0.8035159",
"0.79525226",
"0.77942514",
"0.7678532",
"0.7652694",
"0.7540874",
"0.7468223",
"0.7237... | 0.89334846 | 3 |
Get all available L{renamer.irenamer.IRenamingAction}s. | def qaYX():
return q8tE(kBh3, c4tt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w15h() -> x1iM[str]:\n return list(map(lambda Z9rn: Z9rn.name, zH1z))",
"def xASv(YKHO):\n return YKHO._action_list",
"def xASv(YKHO):\n Mkmy = YKHO.session.query(FYrf.Action).all()\n return [WKvO.type_name for WKvO in Mkmy]",
"def eqLF(YKHO):\n return YKHO.actions",
"def Q6sW(YKHO):\n ... | [
"0.71304685",
"0.7109144",
"0.70262104",
"0.7007669",
"0.697566",
"0.6815434",
"0.67821693",
"0.6781966",
"0.6781966",
"0.67692804",
"0.6704571",
"0.66839874",
"0.66802925",
"0.66802925",
"0.66802925",
"0.6659922",
"0.6654752",
"0.66454697",
"0.6626632",
"0.6592426",
"0.65719... | 0.77088 | 0 |
Turn a byte string from the command line into a unicode string. | def omY4(YKHO, twdW):
if isinstance(twdW, QMSQ):
return twdW
ZGum = getattr(HwRy.stdin, 'encoding', None) or HwRy.getdefaultencoding()
return QMSQ(twdW, ZGum) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VIcC(d7pR):\n try:\n if isinstance(d7pR, QMSQ):\n return d7pR.decode('utf-8')\n except NameError:\n pass\n return d7pR",
"def rSlX(d7pR):\n try:\n if isinstance(d7pR, QMSQ):\n return d7pR.encode('utf-8')\n except NameError:\n pass\n return d... | [
"0.7280202",
"0.70232743",
"0.6640679",
"0.66292596",
"0.65086067",
"0.6292156",
"0.62878865",
"0.62137216",
"0.61995786",
"0.6194665",
"0.6156905",
"0.61211735",
"0.6120495",
"0.6120192",
"0.6100422",
"0.610035",
"0.60757744",
"0.60355866",
"0.6014481",
"0.6003192",
"0.59444... | 0.7238105 | 1 |
Add one item to the top of stack. | def DuGE(YKHO, ZfUD):
YKHO.list.append(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, ZfUD):\n YKHO.stack.insert(0, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.top = [ZfUD] + YKHO.top",
"def _jXH(YKHO, ZfUD):\n YKHO.top += 1\n YKHO.arr.insert(YKHO.top, ZfUD)",
"... | [
"0.8099888",
"0.77666944",
"0.77666944",
"0.771764",
"0.76159513",
"0.75760615",
"0.75542265",
"0.75196534",
"0.75003964",
"0.74198526",
"0.74007857",
"0.73673713",
"0.7340066",
"0.72850096",
"0.72487307",
"0.72366273",
"0.7204365",
"0.71737266",
"0.71668017",
"0.7164049",
"0... | 0.6748148 | 53 |
Return the input number with N digits of precision. | def EstS(FGW3, rhd_, Tuqy='int'):
FMLJ = '{:.%ie}' % (rhd_ - 1)
BWXx = float(FMLJ.format(FGW3))
if Tuqy == 'int':
return int(BWXx)
else:
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HlDX(exwG, rhd_):\n i0Uw = 0.5 if exwG >= 0 else -0.5\n return int(exwG / rhd_ + i0Uw) * rhd_",
"def h7GA(mLGw, exwG):\n return mLGw % 10 ** exwG",
"def round(exwG, rhd_=j8kJ):\n exwG = xuS7(exwG)\n Zihr = -1 if exwG < 0 else 1\n P8oC = int(exwG)\n if abs(exwG) + rhd_ >= abs(P8oC) + 1:... | [
"0.7238972",
"0.6974708",
"0.69195527",
"0.68070334",
"0.6728197",
"0.67044663",
"0.65146494",
"0.64940333",
"0.6480701",
"0.64786774",
"0.6473848",
"0.6461674",
"0.6411782",
"0.6324459",
"0.62982416",
"0.62649214",
"0.6236041",
"0.622631",
"0.61993575",
"0.6191945",
"0.61615... | 0.6787781 | 4 |
Takes file path as string; returns text as string. Takes a string that is a file path, opens the file, and turns the file's contents as one string of text. | def OcVp(qaEx):
with open(qaEx) as Ki2L:
Ki2L = Ki2L.read()
return Ki2L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcVp(qaEx):\n OwN0 = open(qaEx)\n SFw1 = OwN0.read()\n return SFw1",
"def OcVp(qaEx):\n OwN0 = open(qaEx)\n LFxn = OwN0.read()\n OwN0.close()\n return LFxn",
"def cHUw(VqRE):\n assert JC7M(VqRE), 'filepath does not exist'\n with open(VqRE, 'r', encoding='utf-8') as eHNT:\n ... | [
"0.81221646",
"0.80870944",
"0.80748755",
"0.8069638",
"0.7956668",
"0.79429805",
"0.78905916",
"0.781456",
"0.77169985",
"0.7700115",
"0.76644546",
"0.76328695",
"0.7626349",
"0.76148456",
"0.758024",
"0.75330645",
"0.7529367",
"0.7489677",
"0.744106",
"0.741131",
"0.7372124... | 0.6512445 | 86 |
Remove transaction from weakref. | def R4QT(YKHO, UShr: BaseTransaction) -> None:
if YKHO._tx_weakref_disabled:
return
assert UShr.hash is not None
YKHO._tx_weakref.pop(UShr.hash, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fFx9(YKHO):\n YKHO._finalize()",
"def zCPI(YKHO, uPnQ):\n uPnQ.close()\n YKHO.connections = [WKvO for WKvO in YKHO.connections if WKvO[1] != uPnQ]",
"def kD4M(YKHO, UShr):\n if ik4P.Default() is None:\n return False\n if not ik4P.Default().ContainsTransaction(UShr.Hash):\n retu... | [
"0.65708447",
"0.6535732",
"0.64346075",
"0.62377256",
"0.6160545",
"0.607524",
"0.6069282",
"0.6055392",
"0.6036366",
"0.6007207",
"0.6007207",
"0.6007207",
"0.6007207",
"0.6007207",
"0.6007207",
"0.60058826",
"0.5995328",
"0.5986408",
"0.5985007",
"0.5955886",
"0.59345174",... | 0.8253074 | 0 |
Get a transaction from weakref if it exists. Otherwise, returns None. | def ckh6(YKHO, hWMw: bytes) -> h8nf[mgZq]:
if YKHO._tx_weakref_disabled:
return None
return YKHO._tx_weakref.get(hWMw, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nj7J(YKHO, Y7Bk=False):\n Kh6j = getattr(YKHO.thread_local, 'transaction', None)\n if Y7Bk:\n YKHO.thread_local.transaction = None\n return Kh6j",
"def nj7J(YKHO) -> h8nf[zj9E]:\n uPnQ = YKHO._transaction\n while uPnQ is not None and uPnQ._parent is not None:\n uPnQ = uPnQ._paren... | [
"0.67278194",
"0.6436779",
"0.63510245",
"0.62615293",
"0.60788417",
"0.5858933",
"0.57774997",
"0.57504517",
"0.5735505",
"0.5625709",
"0.55738187",
"0.5467461",
"0.5437058",
"0.53640836",
"0.5353686",
"0.53509676",
"0.5332579",
"0.53317183",
"0.5307581",
"0.52812034",
"0.52... | 0.79687685 | 0 |
Returns a transaction from the height index. This is fast. | def noy3(YKHO, H2v2: int) -> h8nf[mgZq]:
assert YKHO.indexes is not None
D46j = YKHO.indexes.height.get(H2v2)
return None if D46j is None else YKHO.get_transaction(D46j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _QSz(YKHO, H2v2: int):\n Ylbp = YKHO.terra._tendermint.block(H2v2)\n XkN1 = n3Kt.deserialize(Ylbp)\n if YKHO.transform_after_fetch:\n XkN1 = YKHO.transformer(XkN1)\n return bNKA(Ylbp, XkN1)",
"def CpZ1(YKHO, hash):\n Ahrn = YKHO.getBlock(YKHO.tailBlockHash)\n while Ahrn != YKHO.genes... | [
"0.6437533",
"0.61037576",
"0.5990883",
"0.5900534",
"0.5897055",
"0.5897055",
"0.5849668",
"0.5813809",
"0.57463104",
"0.5724059",
"0.5694909",
"0.5644055",
"0.5592361",
"0.55888736",
"0.5581316",
"0.5534876",
"0.5508924",
"0.5417827",
"0.5372968",
"0.53566366",
"0.5281915",... | 0.733556 | 0 |
Return all vertices (transactions and blocks) within the allowed scope. | def STLk(YKHO) -> bDy6[mgZq]:
rrBf = YKHO.get_allow_scope()
for UShr in YKHO._get_all_transactions():
if rrBf.is_allowed(UShr):
yield UShr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1XJ(YKHO):\n pNZh = YKHO.__graph_dict\n XyW_ = []\n for SLBp in pNZh:\n if not pNZh[SLBp]:\n XyW_ += [SLBp]\n return XyW_",
"def MQXZ(YKHO):\n return list(YKHO.vertices.keys())",
"def iXlf(YKHO):\n return list(YKHO._graph)",
"def EBww(YKHO):\n return YKHO.vertices"... | [
"0.69668293",
"0.66058844",
"0.65219426",
"0.64921474",
"0.64921474",
"0.64891905",
"0.6451802",
"0.6451668",
"0.6429236",
"0.64233506",
"0.6412421",
"0.6346769",
"0.632314",
"0.6284359",
"0.62471706",
"0.6246535",
"0.62414896",
"0.6240949",
"0.6225686",
"0.6225686",
"0.62256... | 0.6132494 | 23 |
Returning hardcoded genesis block and transactions. | def omPH(YKHO, hWMw: bytes) -> h8nf[mgZq]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xi7g():\n return n3Kt(**bNNl)",
"def cb0j():\n return n3Kt(0, '0', 1465154705, 'my genesis block!!', '816534932c2b7154836da6afc367695e6337db8a921823784c14378abed4f7d7')",
"def RsZu(YKHO):\n d6pt = 0\n gQVK = []\n E3oo = 0.0\n WvUv = '0' * 64\n XkN1 = n3Kt(index=d6pt, transactions=gQVK,... | [
"0.7793984",
"0.7505452",
"0.7283472",
"0.7235298",
"0.72187644",
"0.700859",
"0.70074207",
"0.7004544",
"0.6908137",
"0.68930095",
"0.68930095",
"0.68894887",
"0.6838904",
"0.67117196",
"0.6696959",
"0.657097",
"0.6495919",
"0.6367913",
"0.619405",
"0.61502266",
"0.60846657"... | 0.6111452 | 20 |
Return the timestamp when the database was last started. | def Y_Gy(YKHO) -> int:
return int(YKHO.get_value(YKHO._last_start_attribute) or Uz4c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p9Vw():\n return qcWV.datetime.utcnow()",
"def K4yx(YKHO):\n return YKHO._start_timestamp",
"def nX4v(YKHO) -> ITS7:\n return ITS7.time()",
"def IWVZ(YKHO):\n UzPC = YKHO._open_db()\n N1p7 = UzPC.cursor()\n N1p7.execute('SELECT created_time FROM sessions WHERE id = ?;', (YKHO.sid,))\n ... | [
"0.73128027",
"0.725271",
"0.70623165",
"0.70231754",
"0.695971",
"0.6940355",
"0.6888191",
"0.6848937",
"0.6845229",
"0.6836749",
"0.6831148",
"0.68170816",
"0.6789469",
"0.67856354",
"0.67856354",
"0.67856354",
"0.67856354",
"0.67856354",
"0.67856354",
"0.67856354",
"0.6765... | 0.66651124 | 29 |
Update the timestamp when the database was last started. | def Qz3G(YKHO, E3oo: int) -> None:
YKHO.add_value(YKHO._last_start_attribute, str(E3oo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hJvi(YKHO):\n YKHO._timestamp = qcWV.datetime.now()",
"def h732(YKHO, E3oo: int) -> None:\n assert YKHO.indexes is not None\n YKHO.set_last_started_at(E3oo)\n for d6pt in YKHO.indexes.iter_all_indexes():\n Lafi = d6pt.get_db_name()\n if Lafi is None:\n continue\n Y... | [
"0.74080515",
"0.6863849",
"0.65158015",
"0.6500878",
"0.6396826",
"0.63958627",
"0.6235818",
"0.6198539",
"0.61654156",
"0.61584973",
"0.61302835",
"0.6116164",
"0.600262",
"0.59016436",
"0.58947384",
"0.58935344",
"0.5875305",
"0.5798431",
"0.5761469",
"0.5725346",
"0.57127... | 0.6119882 | 11 |
Return the timestamp when an index was last started. | def qn1H(YKHO, Lafi: str) -> int:
hGI9 = BjOP + Lafi
return int(YKHO.get_value(hGI9) or oIzF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y_Gy(YKHO) -> int:\n return int(YKHO.get_value(YKHO._last_start_attribute) or Uz4c)",
"def ITS7(YKHO):\n return YKHO._idx",
"def K4yx(YKHO):\n return YKHO._start_timestamp",
"def yKcO(YKHO) -> qcWV:\n return YKHO.df.index[0].to_pydatetime()",
"def Wkca(YKHO, Lafi: str, E3oo: int) -> None:\n... | [
"0.7487484",
"0.6983056",
"0.695226",
"0.6888503",
"0.67846435",
"0.67684853",
"0.6681487",
"0.6653099",
"0.6618334",
"0.6578107",
"0.65639156",
"0.65302485",
"0.6527538",
"0.6520416",
"0.64754343",
"0.6458171",
"0.6414924",
"0.640679",
"0.63880444",
"0.638776",
"0.6380935",
... | 0.7741106 | 0 |
Same behavior as the mempool index for iterating over the tips. This basically means that the returned iterator will yield all transactions that are tips and have not been confirmed by a block on the best chain. This method requires indexes to be enabled. | def RA2n(YKHO) -> bDy6[T74E]:
assert YKHO.indexes is not None
sJ2l = YKHO.indexes.tx_tips
for VOlW in sJ2l[YKHO.latest_timestamp + 1]:
UShr = YKHO.get_transaction(VOlW.data)
g2KI = UShr.get_metadata()
assert isinstance(UShr, T74E)
if g2KI.first_block:
continue
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mDvx(YKHO) -> bDy6[T74E]:\n assert YKHO.indexes is not None\n if YKHO.indexes.mempool_tips is not None:\n yield from YKHO.indexes.mempool_tips.iter(YKHO)\n else:\n yield from YKHO.iter_mempool_tips_from_tx_tips()",
"def vClK(YKHO) -> bDy6[T74E]:\n assert YKHO.indexes is not None\n ... | [
"0.812182",
"0.77967566",
"0.7623582",
"0.57374674",
"0.5468153",
"0.53758407",
"0.5102042",
"0.50013965",
"0.4969693",
"0.49371067",
"0.48924854",
"0.4861174",
"0.48478752",
"0.48476374",
"0.4789271",
"0.47679973",
"0.47518396",
"0.4747251",
"0.47444865",
"0.47435266",
"0.47... | 0.788768 | 1 |
Same behavior as the mempool index for iterating over all mempool transactions. This basically means that the returned iterator will yield all transactions that have not been confirmed by a block on the best chain. Order is not guaranteed to be the same as in the mempool index. This method requires indexes to be enable... | def YUId(YKHO) -> bDy6[T74E]:
from hathor.transaction.storage.traversal import BFSTimestampWalk
tk5Y = YKHO.iter_mempool_tips_from_tx_tips()
ZAda = BFSTimestampWalk(YKHO, is_dag_funds=True, is_dag_verifications=True, is_left_to_right=False)
for UShr in ZAda.run(tk5Y):
g2KI = UShr.get_metadata()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vClK(YKHO) -> bDy6[T74E]:\n assert YKHO.indexes is not None\n if YKHO.indexes.mempool_tips is not None:\n yield from YKHO.indexes.mempool_tips.iter_all(YKHO)\n else:\n yield from YKHO.iter_mempool_from_tx_tips()",
"def mDvx(YKHO) -> bDy6[T74E]:\n assert YKHO.indexes is not None\n ... | [
"0.7472434",
"0.6811732",
"0.60440683",
"0.59772116",
"0.5897807",
"0.5806162",
"0.5794297",
"0.5758832",
"0.56124026",
"0.5545067",
"0.54433554",
"0.54122823",
"0.5342204",
"0.53251827",
"0.53122354",
"0.5303473",
"0.5279414",
"0.5261173",
"0.5250886",
"0.52319175",
"0.52179... | 0.62386745 | 2 |
Get all transactions in the mempool, using the best available index (mempool_tips or tx_tips) | def vClK(YKHO) -> bDy6[T74E]:
assert YKHO.indexes is not None
if YKHO.indexes.mempool_tips is not None:
yield from YKHO.indexes.mempool_tips.iter_all(YKHO)
else:
yield from YKHO.iter_mempool_from_tx_tips() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mDvx(YKHO) -> bDy6[T74E]:\n assert YKHO.indexes is not None\n if YKHO.indexes.mempool_tips is not None:\n yield from YKHO.indexes.mempool_tips.iter(YKHO)\n else:\n yield from YKHO.iter_mempool_tips_from_tx_tips()",
"def YUId(YKHO) -> bDy6[T74E]:\n from hathor.transaction.storage.tra... | [
"0.74429524",
"0.6838563",
"0.6806436",
"0.6552864",
"0.60036385",
"0.59958357",
"0.59380186",
"0.58330953",
"0.58294505",
"0.57942474",
"0.57091916",
"0.5644992",
"0.56218493",
"0.5570393",
"0.55554867",
"0.55498815",
"0.5547817",
"0.5545725",
"0.5478141",
"0.5441722",
"0.54... | 0.7731035 | 0 |
Force the query to return only distinct result | def UYlD(YKHO):
YKHO.distinct_ = True
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UYlD(YKHO):\n return DtFU(YKHO)",
"def UYlD(YKHO):\n umWR = jth9(YKHO)\n umWR._distinct = True\n return umWR",
"def aiMB(YKHO):\n YKHO.Person(name='Mr Orange', age=20).save()\n YKHO.Person(name='Mr White', age=20).save()\n YKHO.Person(name='Mr Orange', age=30).save()\n YKHO.Person(n... | [
"0.77206177",
"0.72125274",
"0.6879175",
"0.66091937",
"0.6503586",
"0.6475674",
"0.64212763",
"0.63146764",
"0.62641704",
"0.6172608",
"0.6043227",
"0.59879524",
"0.5960428",
"0.5948239",
"0.5943233",
"0.5818738",
"0.5801659",
"0.57916",
"0.5774843",
"0.5765301",
"0.5732206"... | 0.7192102 | 2 |
Get a list with the values of a given column | def UHhk(YKHO, iVRZ, H5ew=None):
ZLJ_ = YKHO._get_list_select(iVRZ, H5ew)
if H5ew is not None:
dixj = {}
for Aofo in YKHO.get(ZLJ_):
dixj[Aofo[H5ew]] = Aofo[iVRZ]
else:
dixj = list(map(lambda WKvO: WKvO[iVRZ], YKHO.get(ZLJ_)))
return dixj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FFG1(tyNF: list[dict[str, str]], iVRZ: str) -> list[str]:\n hkxX: list[str] = []\n for rdlD in tyNF:\n hkxX.append(rdlD[iVRZ])\n return hkxX",
"def TSF4(YKHO, fvDH):\n if fvDH not in YKHO.cols:\n raise Exception('Column %s not in data' % fvDH)\n cn14 = 'SELECT \"%s\" FROM \"%s\" ... | [
"0.8294753",
"0.82824194",
"0.82402974",
"0.82402974",
"0.80286855",
"0.8027249",
"0.7685646",
"0.7529973",
"0.73789763",
"0.7311796",
"0.7290849",
"0.7208291",
"0.7120693",
"0.7057794",
"0.68701273",
"0.68339884",
"0.6800797",
"0.67937964",
"0.67903507",
"0.677056",
"0.66568... | 0.6468993 | 25 |
Retrieve the "min" result of the query | def min(YKHO, iVRZ):
return YKHO.aggregate('min', *[iVRZ]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aScC(YKHO):\n return YKHO.get_first()",
"def XcNI(YKHO):\n return YKHO.min",
"def XcNI(YKHO):\n return YKHO.min",
"def min(YKHO):\n return YKHO.get_first()",
"def ohV5(YKHO):\n dgIT = YKHO.df[YKHO.col_name].min()\n return dgIT",
"def min(YKHO):\n return YKHO._reduce_for_stat_func... | [
"0.76188296",
"0.75588095",
"0.75588095",
"0.7493569",
"0.74143374",
"0.72629446",
"0.7125147",
"0.7065975",
"0.7041148",
"0.6991645",
"0.69602793",
"0.69137096",
"0.69137096",
"0.6912495",
"0.68945575",
"0.6885434",
"0.6875296",
"0.68329257",
"0.67844856",
"0.67844856",
"0.6... | 0.70864767 | 7 |
Sets the name of this Context. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, m... | [
"0.81926197",
"0.81900513",
"0.81900513",
"0.81850815",
"0.81850815",
"0.81850815",
"0.81850815",
"0.81850815",
"0.8175745",
"0.81757075",
"0.81414706",
"0.8091775",
"0.80897206",
"0.79991704",
"0.7955868",
"0.7946319",
"0.7934019",
"0.7934019",
"0.79328835",
"0.7886826",
"0.... | 0.7705602 | 99 |
Sets the description of this Context. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA):\n YK... | [
"0.82839125",
"0.82240725",
"0.82129174",
"0.80971104",
"0.8035239",
"0.8035239",
"0.8035239",
"0.8035239",
"0.79715997",
"0.7922534",
"0.7922534",
"0.7922534",
"0.7922534",
"0.78992",
"0.78464216",
"0.77429014",
"0.7684227",
"0.760593",
"0.7529965",
"0.74933296",
"0.7472177"... | 0.797192 | 34 |