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 |
|---|---|---|---|---|---|---|
Test update model entry with results w/ err msg | def f2Va(YKHO):
with Xvb7.app.test_request_context():
Xvb7.app.preprocess_request()
w2B8 = Xvb7.g.rdb_conn
H5ew = str(qxeD.uuid4())[:10]
Mkmy.table('models').insert({'id': H5ew}).run(w2B8)
Xvb7.update_model_entry_with_results_msg(H5ew, 'MSG', err='ERR_MSG')
kG3l = Mkm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KWQS(YKHO):\n with Xvb7.app.test_request_context():\n Xvb7.app.preprocess_request()\n w2B8 = Xvb7.g.rdb_conn\n H5ew = str(qxeD.uuid4())[:10]\n Mkmy.table('models').insert({'id': H5ew}).run(w2B8)\n Xvb7.update_model_entry_with_results_msg(H5ew, 'MSG')\n kG3l = Mkmy.t... | [
"0.80082625",
"0.7244138",
"0.7188252",
"0.7179531",
"0.71780396",
"0.7075771",
"0.7074089",
"0.7074089",
"0.7068072",
"0.7024562",
"0.69142383",
"0.6895346",
"0.68609935",
"0.6858829",
"0.6854217",
"0.68301755",
"0.6798737",
"0.6788419",
"0.6785116",
"0.6773034",
"0.67417824... | 0.8361174 | 0 |
Test verify new script no file | def o91x(YKHO):
with Xvb7.app.test_request_context():
Xvb7.app.preprocess_request()
im04 = YKHO.app.post('/verifyNewScript', content_type='multipart/form-data', data={})
vOyM = str(im04.data)
assert 'No custom features script uploaded. Please try again' in vOyM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bqdk(YKHO):\n WL52 = p9tP()\n Aofo = WL52.invoke(GSyo.main, YKHO.common_params + ['-D', 'test'])\n YKHO.assertNotEqual(Aofo.exit_code, 0)",
"def Z7IU(YKHO):\n try:\n JX2A('file://{}/input/abc.txt'.format(YKHO.cur_path)).run()\n except FileNotFoundError:\n assert True",
"def Waw... | [
"0.7188948",
"0.6995441",
"0.6822394",
"0.68007475",
"0.67774427",
"0.67674524",
"0.67065",
"0.6677009",
"0.66748744",
"0.6643666",
"0.6629051",
"0.6598599",
"0.65888435",
"0.65733683",
"0.6573038",
"0.6548735",
"0.6536852",
"0.6531823",
"0.6514877",
"0.64789754",
"0.6473166"... | 0.77459836 | 0 |
Test edit or delete project form delete | def loic(YKHO):
with Xvb7.app.test_request_context():
Xvb7.app.preprocess_request()
w2B8 = Xvb7.g.rdb_conn
Mkmy.table('projects').insert({'id': 'abc123', 'name': 'abc123'}).run(w2B8)
Mkmy.table('features').insert({'id': 'abc123', 'projkey': 'abc123', 'name': 'abc123', 'created': 'abc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T2lZ(YKHO):\n pass",
"def T2lZ(YKHO):\n pass",
"def T2lZ(YKHO):\n pass",
"def T2lZ(YKHO):\n pass",
"def DwpL(YKHO):\n with Xvb7.app.test_request_context():\n Xvb7.app.preprocess_request()\n w2B8 = Xvb7.g.rdb_conn\n Mkmy.table('projects').insert({'id': 'abc123', 'name... | [
"0.8027199",
"0.8027199",
"0.8027199",
"0.8027199",
"0.80093676",
"0.7892173",
"0.7609738",
"0.7587115",
"0.7462516",
"0.7392347",
"0.7380187",
"0.73708576",
"0.73438823",
"0.73243475",
"0.7312865",
"0.728615",
"0.7270491",
"0.72108495",
"0.72000253",
"0.71711725",
"0.7164846... | 0.82303905 | 0 |
Takes 2 vectors a, b and returns the cosine similarity according to the definition of the dot product | def rONK(he6J, M8d_):
uYbU = oyIN.dot(M8d_, he6J)
x1FS = oyIN.linalg.norm(he6J)
sd7I = oyIN.linalg.norm(M8d_, axis=1)
return uYbU / (x1FS * sd7I) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKk5(jzdc, Fg_i):\n uYbU = oyIN.dot(jzdc, Fg_i)\n x1FS = oyIN.linalg.norm(jzdc)\n sd7I = oyIN.linalg.norm(Fg_i)\n return uYbU / (x1FS * sd7I)",
"def gKk5(jzdc, Fg_i):\n return BJ1H(jzdc, Fg_i) / (CkYf(jzdc) * CkYf(Fg_i))",
"def jt7n(Yipr, Vkf3):\n return yKrh(Yipr, Vkf3) / (epAf.sqrt(yKrh... | [
"0.8916949",
"0.8668708",
"0.85809344",
"0.83738685",
"0.8352113",
"0.82518363",
"0.82249177",
"0.8028253",
"0.8008475",
"0.79740363",
"0.79485005",
"0.7908914",
"0.79050034",
"0.7860923",
"0.784382",
"0.78207517",
"0.78180724",
"0.7817695",
"0.78159636",
"0.7761609",
"0.7724... | 0.0 | -1 |
Return data loader for custom dataset. | def RuZU(XvcI, WLIg, _ePE, Ep8u=1):
__n6 = dF4i(XvcI, WLIg, _ePE)
zQKy = nPrm.DataLoader(dataset=__n6, batch_size=Ep8u, shuffle=True, collate_fn=QxcP)
return zQKy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jetv(YKHO, euFG):\n cu81 = getattr(YKHO.dataset, 'collate_fn', None)\n if callable(cu81):\n HUjS = nPrm.DataLoader(YKHO.dataset, **YKHO.configuration['loader_params'], collate_fn=cu81)\n else:\n HUjS = nPrm.DataLoader(YKHO.dataset, **YKHO.configuration['loader_params'])\n return HUjS"... | [
"0.7954659",
"0.7954659",
"0.77805847",
"0.7588624",
"0.7410448",
"0.73994696",
"0.7391093",
"0.7379333",
"0.7363619",
"0.7322904",
"0.72152764",
"0.7186994",
"0.7183978",
"0.7157674",
"0.7151416",
"0.71439487",
"0.7130169",
"0.7115251",
"0.7100409",
"0.7096723",
"0.70942146"... | 0.68503326 | 52 |
Fetch the list of Bricklink categories. These rarely change. | def mOx8(YKHO):
return YKHO.fetch_catalog_file(_CH8.CATEGORIES, Hy7s.path.join('base', 'categories.txt')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fk2V(YKHO) -> x1iM[qZuN]:\n LeZt = NCls.fetch_all('category', list(filter(lambda AniK: not AniK.startswith('_'), qZuN.__dict__.keys())))\n LeZt = YKHO._fill_aliases(LeZt)\n return LeZt",
"def KN2z():\n return q_SM('SELECT name FROM categories')",
"def LQuW(YKHO):\n bD7m = TDhU(YKHO.url, 'cat... | [
"0.7719329",
"0.7707415",
"0.75213015",
"0.7492139",
"0.74594337",
"0.7459265",
"0.73912406",
"0.73777056",
"0.73767775",
"0.7358418",
"0.73563695",
"0.7341771",
"0.7341771",
"0.72963923",
"0.726768",
"0.72526544",
"0.72497594",
"0.7236573",
"0.722076",
"0.7177964",
"0.713776... | 0.75467837 | 2 |
Import flat list of categories, without parents since BL don't provide us | def H6gK(YKHO, nPrm):
LeZt = zzJi.objects.values_list('pk', 'bl_id', 'name')
Ys3F = {h7A_: {'pk': _sei, 'name': mWFP} for _sei, h7A_, mWFP in LeZt}
for h7A_, mWFP in nPrm:
h7A_ = int(h7A_)
mWFP = _R2e.unescape(mWFP)
if h7A_ in Ys3F:
if mWFP == Ys3F[h7A_]['name']:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fk2V(YKHO) -> x1iM[qZuN]:\n LeZt = NCls.fetch_all('category', list(filter(lambda AniK: not AniK.startswith('_'), qZuN.__dict__.keys())))\n LeZt = YKHO._fill_aliases(LeZt)\n return LeZt",
"def LeZt(J_Es):\n return list(J_Es)",
"def JhV6(YKHO):\n jQ3Z = HND1(YKHO.file_name)\n OCXg = qvTE(jQ... | [
"0.6572274",
"0.65128183",
"0.65056646",
"0.6386321",
"0.63586503",
"0.6326512",
"0.6263896",
"0.6177376",
"0.6176101",
"0.616374",
"0.603666",
"0.600912",
"0.59859526",
"0.5974473",
"0.59076756",
"0.5905801",
"0.59018505",
"0.5890047",
"0.5854126",
"0.58447623",
"0.5841843",... | 0.67486525 | 0 |
Encodes a list of BlockArgs to a list of strings. | def kLcZ(SIjs):
xLsr = []
for XkN1 in SIjs:
xLsr.append(saao._encode_block_string(XkN1))
return xLsr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(SIjs: typing.List[BlockArgs]) -> laHg.List[str]:\n xLsr = []\n for XkN1 in SIjs:\n xLsr.append(saao._encode_block_string(XkN1))\n return xLsr",
"def kLcZ(YKHO, SIjs):\n xLsr = []\n for XkN1 in SIjs:\n xLsr.append(YKHO._encode_block_string(XkN1))\n return xLsr",
"def kLc... | [
"0.8329468",
"0.8259638",
"0.8034877",
"0.8034877",
"0.8034877",
"0.6559243",
"0.63690394",
"0.6171128",
"0.6113137",
"0.60205084",
"0.60099506",
"0.59845877",
"0.5961035",
"0.5918549",
"0.5918549",
"0.5918549",
"0.58452207",
"0.58201283",
"0.5778647",
"0.5775486",
"0.5729251... | 0.8115462 | 2 |
Creates a efficientnet model. | def Jci7(DAru=None, Reel=None, lo24=0.2, PoXS=0.2, N0ky=None, jTqs=1000):
SIjs = ['r1_k3_s11_e1_i32_o16_se0.25', 'r2_k3_s22_e6_i16_o24_se0.25', 'r2_k5_s22_e6_i24_o40_se0.25', 'r3_k3_s22_e6_i40_o80_se0.25', 'r3_k5_s11_e6_i80_o112_se0.25', 'r4_k5_s22_e6_i112_o192_se0.25', 'r1_k3_s11_e6_i192_o320_se0.25']
SIjs = s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TCIu(YKHO):\n exwG = PMix.IMNN(parameters=YKHO.parameters)\n ZylS.reset_default_graph()\n exwG.setup(η=RHJb)\n return exwG",
"def pPQk():\n C3ST = FYrf.vgg19(pretrained=True)\n MD0u = C3ST.classifier[3].in_features\n DivT = int(oyIN.sqrt(MD0u))\n hNMy = 5\n C3ST.classifier[3] = U78... | [
"0.7312014",
"0.72191495",
"0.7096081",
"0.7084741",
"0.70551515",
"0.7048531",
"0.703338",
"0.69387066",
"0.68504816",
"0.68493426",
"0.68493426",
"0.6848666",
"0.68225807",
"0.68131775",
"0.6812637",
"0.6794078",
"0.67762715",
"0.6772152",
"0.6769271",
"0.67609394",
"0.6760... | 0.0 | -1 |
Create and yield a throwaway database for testing. The database is created and immediate destroyed at the end of testing. See module docstring for usage. | def RNLL(os3C, h8Lu: str) -> weOe.Database:
bD7m = weOe.ResolveUrl(h8Lu)
NCls: weOe.Database = os3C(bD7m)
try:
yield NCls
finally:
NCls.Drop(are_you_sure_about_this_flag=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p9bx():\n bD7m = str(nvt3)\n eHpk = y2U9(bD7m)\n assert not POLs(bD7m), 'Test database already exists. Aborting tests.'\n atkZ(bD7m)\n yIVm.create_all(eHpk)\n yield eHpk\n JdpX(bD7m)",
"def mQNO():\n xyue = tdMG(':memory:')\n with _cTh(xyue, (JUVT, mv1M, uh4y, VT34, bN7x, o2Vr, gUp... | [
"0.8153581",
"0.8113756",
"0.7837744",
"0.7784491",
"0.77603066",
"0.77342516",
"0.7646192",
"0.7614648",
"0.7609907",
"0.75460875",
"0.7543692",
"0.75169325",
"0.7506795",
"0.7499709",
"0.74803036",
"0.7465137",
"0.7453057",
"0.7425506",
"0.7425506",
"0.73984224",
"0.7385317... | 0.76146007 | 8 |
get_clf_name takes a classifer (trained or untrained) and returns its name as a string clf.__str__() will return a string of the classifiers name and params e.g. "LogisticRegresion(...)" or "(("Logistic Regression(...)")) We then split on "(", use filter to drop empty strings, convert to list, and return first item | def Oo5m(M_NZ):
return list(filter(None, M_NZ.__str__().split('(')))[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UCa5(av29=None):\n pass",
"def Es_9(YKHO):\n pass",
"def Syxc():\n ZWCE = []\n for AmnI in haER():\n ZWCE.append(AmnI[0].get_name())\n return ZWCE",
"def PmK6(Ki_S='svc'):\n if Ki_S == 'svc':\n M_NZ = _VRL()\n NArs = {'C': [200]}\n elif Ki_S == 'lr':\n M_N... | [
"0.6512475",
"0.6330694",
"0.6232938",
"0.6021045",
"0.6014541",
"0.5969518",
"0.5923421",
"0.5849787",
"0.58297855",
"0.576239",
"0.5741607",
"0.56892216",
"0.5672833",
"0.56224287",
"0.5588669",
"0.55610937",
"0.55513203",
"0.5521608",
"0.5487777",
"0.54420376",
"0.54415447... | 0.86239785 | 0 |
clf, classifiers, df_ROCs = plot_ROC(clf, X, y, pos_label_=None, verbose=False) Plot an interactive ROC curve for a binary classifier. It returns the original clf, a classifier for each cv, a list of dataframes for each cv. | def GCIR(M_NZ, EcVT, LVAh, yuza: float=0.5, bnre: str=None, Ux0P: str=None, PJWX: bool=False):
""" Split and get ROC curve data """
nPrm = bHtP(EcVT, LVAh, test_size=yuza)
qlFx, S7KC, M_NZ = pE6z(nPrm, M_NZ, bnre, PJWX)
' Set up initial PLOT '
eSOs = Rfhs(names=['ROC'], tooltips=[('TPR', '@y_tpr'), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n2ui(M_NZ, EcVT, LVAh, U88P=3, bnre=None, PJWX=False):\n \"\"\" Check cross-validations to run and get stratification \"\"\"\n if U88P > 1:\n P7Zt = _geI(U88P)\n else:\n print(f'cv_fold must be greater than 1. You have input {U88P}')\n return M_NZ\n ' Get source data for each R... | [
"0.7960611",
"0.7604101",
"0.75419426",
"0.74943507",
"0.74884456",
"0.74687546",
"0.7396613",
"0.7322439",
"0.7300265",
"0.72495097",
"0.7201896",
"0.71492875",
"0.7123857",
"0.7110131",
"0.70848924",
"0.7072381",
"0.70646966",
"0.7050683",
"0.7029659",
"0.70129675",
"0.7003... | 0.7533798 | 3 |
clf, classifiers, df_ROCs = plot_ROC(clf, X, y, pos_label_=None, verbose=False) Plot an interactive ROC curve for a binary classifier. It returns the original clf, a classifier for each cv, a list of dataframes for each cv. | def ABcb(M_NZ, EcVT, LVAh, yuza: float=0.5, bnre: str=None, Ux0P: str=None, PJWX: bool=False):
""" Split and get ROC curve data """
nPrm = bHtP(EcVT, LVAh, test_size=yuza)
qlFx, fHh1, S7KC, SpMW, M_NZ = j3HQ(nPrm, M_NZ, bnre, PJWX)
' PLOT ROC '
RqYH = Rfhs(names=['ROC'], tooltips=[('TPR', '@y_tpr'),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n2ui(M_NZ, EcVT, LVAh, U88P=3, bnre=None, PJWX=False):\n \"\"\" Check cross-validations to run and get stratification \"\"\"\n if U88P > 1:\n P7Zt = _geI(U88P)\n else:\n print(f'cv_fold must be greater than 1. You have input {U88P}')\n return M_NZ\n ' Get source data for each R... | [
"0.7960611",
"0.7604101",
"0.75419426",
"0.7533798",
"0.74943507",
"0.74687546",
"0.7396613",
"0.7322439",
"0.7300265",
"0.72495097",
"0.7201896",
"0.71492875",
"0.7123857",
"0.7110131",
"0.70848924",
"0.7072381",
"0.70646966",
"0.7050683",
"0.7029659",
"0.70129675",
"0.70030... | 0.74884456 | 5 |
If ``indices`` is not None, cast it to list of int. | def ZTkb(_0VL):
if isinstance(_0VL, str):
return [int(or8S) for or8S in _0VL.split(',')]
if isinstance(_0VL, int):
return [_0VL]
return _0VL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PlRz(YKHO, _0VL: list):\n x2qy = []\n for exwG in _0VL:\n x2qy.append(int(YKHO.source.data[YKHO.data_x_axis][exwG]))\n return x2qy",
"def Da4H(_0VL):\n if isinstance(_0VL, str):\n if ':' in _0VL and ',' in _0VL:\n return [slice(*map(lambda WKvO: int(WKvO.strip()) if WKvO.... | [
"0.7252063",
"0.6955869",
"0.6516403",
"0.6489804",
"0.6444873",
"0.64137447",
"0.64122945",
"0.63418084",
"0.6324738",
"0.6274764",
"0.6273499",
"0.6138373",
"0.6135391",
"0.60809076",
"0.6049265",
"0.60446286",
"0.60415864",
"0.6028508",
"0.60281605",
"0.6027009",
"0.602010... | 0.638671 | 7 |
Pass coordinator to CoordinatorEntity. | def FIMM(YKHO, S3vU: DataUpdateCoordinator):
super().__init__(S3vU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S3vU(YKHO):\n return YKHO._coordinator",
"def Uk9_(YKHO) -> None:\n super()._handle_coordinator_update()",
"def Uk9_(YKHO):\n YKHO._create_device()\n super()._handle_coordinator_update()",
"def FIMM(YKHO, S3vU, begE):\n super().__init__(S3vU)\n YKHO._device = begE",
"def FIMM(YKHO, S3... | [
"0.64797616",
"0.6220514",
"0.6095649",
"0.58680487",
"0.58680487",
"0.58412206",
"0.57838887",
"0.56869626",
"0.56857896",
"0.56857896",
"0.56857896",
"0.56857896",
"0.5670483",
"0.5645936",
"0.55966944",
"0.55804014",
"0.5549764",
"0.5529796",
"0.54842895",
"0.5472088",
"0.... | 0.6573325 | 0 |
Yield all the child nodes of the current node, as specified by '_fields' attribute. | def RbaF(YKHO):
for mWFP in YKHO._fields:
yield getattr(YKHO, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wNRb(Q6kx):\n for mWFP in Q6kx._fields:\n Jyyj = getattr(Q6kx, mWFP, None)\n if isinstance(Jyyj, jZ4I.AST):\n yield Jyyj\n elif isinstance(Jyyj, list):\n for ZfUD in Jyyj:\n yield ZfUD",
"def wNRb(Q6kx):\n for mWFP, Jyyj in rr5x(Q6kx):\n ... | [
"0.84084064",
"0.79550534",
"0.7732385",
"0.77178675",
"0.7427691",
"0.73854077",
"0.72875476",
"0.71624947",
"0.70181316",
"0.67904955",
"0.67582715",
"0.6704971",
"0.6676788",
"0.66283965",
"0.6602471",
"0.6539066",
"0.65368253",
"0.65244275",
"0.65144134",
"0.64957446",
"0... | 0.8103464 | 1 |
Returns a decimal ROM address previously allocated for given branch_name, if was wasn't allocated yet then throws a ValueError (it's against Hack Assembly rules). | def JBcy(YKHO, srZT: str) -> int:
if srZT in YKHO.BRANCHES_MAP:
return YKHO.BRANCHES_MAP[srZT]
else:
raise ValueError("Provided branch name wasn't registered in RAM yet!") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmpW(YKHO, srZT: str, UTX6: int) -> int:\n if srZT in YKHO.BRANCHES_MAP:\n raise ValueError('Provided branch name (%s) has already been registered in memory.' % srZT)\n else:\n YKHO.BRANCHES_MAP[srZT] = UTX6\n return UTX6",
"def NBFK(mWFP):\n rRzo = yc5u.parse_and_eval('&' + mWF... | [
"0.7212727",
"0.6159875",
"0.5908241",
"0.5853823",
"0.55038035",
"0.5476684",
"0.5443074",
"0.5432735",
"0.5432735",
"0.5297159",
"0.52924013",
"0.52835876",
"0.5221453",
"0.52107686",
"0.520359",
"0.51811",
"0.5176123",
"0.5175452",
"0.5162946",
"0.5144701",
"0.5140494",
... | 0.74876946 | 0 |
Plays the movie's youtube trailer in a webbrowser. | def PuTj(YKHO):
HywK.open(YKHO.trailer_youtube_url) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jCGw(YKHO):\n HywK.open(YKHO.trailer_youtube_url)",
"def jCGw(YKHO):\n HywK.open(YKHO.trailer_youtube_url)",
"def jCGw(YKHO):\n HywK.open(YKHO.trailer_youtube_url)",
"def PuTj(YKHO):\n HywK.open('https://www.youtube.com/watch?v=Ke1Y3P9D0Bc')",
"def PuTj(YKHO):\n HywK.open(YKHO.trailer_yo... | [
"0.8777685",
"0.8718062",
"0.8718062",
"0.8503171",
"0.84965724",
"0.84326935",
"0.84078676",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.83856773",
"0.8369097",
"... | 0.82949805 | 23 |
get Cisco API Client ID | def YLpm(YKHO):
return YKHO.get_string(key='client_id', section=YKHO.CISCO_API_SECTION, default='') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')",
"def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')",
"def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')",
"def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')",
"def zb3C(YKHO) -> str:\n return qe4Y.get... | [
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.76281273",
"0.7487832",
"0.7458527",
"0.7402118",
... | 0.88118905 | 0 |
Transform observations to latent space. | def b05M(YKHO, W061, YFaX):
l5eN, Kmi0 = (YKHO.config['preprocessor']['img_height'], YKHO.config['preprocessor']['img_width'])
bnIe = YKHO.config['preprocessor']['img_width']
with ht2j.no_grad():
W061, YFaX = [eHNT.interpolate(WKvO.view(-1, 3, l5eN, Kmi0), size=bnIe, mode='bilinear', align_corners=T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zjPp(YKHO, DWkG):\n gR1k = oyIN.zeros((len(DWkG.dataset), YKHO.z_dim))\n YRbF = 0\n for nPrm in DWkG:\n nPrm = nPrm.to(YKHO.device)\n with ht2j.no_grad():\n yGTL, bGrB, bGrB = YKHO.encode(nPrm)\n yGTL = yGTL.detach().cpu().numpy()\n gR1k[YRbF:YRbF + len(yGTL)] = ... | [
"0.62783915",
"0.6227632",
"0.61989355",
"0.6146121",
"0.61332256",
"0.611425",
"0.61122304",
"0.6081045",
"0.59356",
"0.5934711",
"0.5845467",
"0.5800051",
"0.5770824",
"0.5719187",
"0.5689249",
"0.568909",
"0.56774575",
"0.5674168",
"0.56351864",
"0.56104213",
"0.56078225",... | 0.63069224 | 0 |
Return a randomly modified version of a string. | def kg_y(qoQs):
if not qoQs:
return bytearray(tuKI.sample('abcdefghijklmnopqrstuvwxyz', 1), 'utf-8')
return b'B' + qoQs[1:] if qoQs[0:1] == b'A' else b'A' + qoQs[1:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TDq5():\n if tuKI.random() < 0.2:\n return Vt_K()\n else:\n return tuKI.choice(['', 'a', 'um', 'foo', 'quack', ',', ':', '\"', '}{'])",
"def SJnX(KCHu):\n return ''.join(tuKI.sample(KCHu, len(KCHu)))",
"def XTtS(KCHu):\n return ''.join(tuKI.sample(KCHu, len(KCHu)))",
"def wc7e()... | [
"0.7316053",
"0.72669494",
"0.7261286",
"0.72441393",
"0.7197689",
"0.7163961",
"0.7162499",
"0.71547806",
"0.70484257",
"0.6991069",
"0.69550467",
"0.69512826",
"0.6921827",
"0.691614",
"0.6898688",
"0.6880751",
"0.6873236",
"0.6873236",
"0.6873236",
"0.6873236",
"0.6873236"... | 0.0 | -1 |
Insert an object to the global collection. | def Pwu9(Ak3z, BWXx):
O8vH[Ak3z] = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, YEnM):\n raise NotImplementedError()",
"def JPHp(YKHO, YEnM):\n raise NotImplementedError()",
"def LOoh(Emd4, xUwc, YEnM):\n return xUwc.insert_obj(dict(YEnM))",
"def Ywmq(YKHO):\n YKHO.objects.insert_by_model(YKHO)",
"def mud9(YKHO, YEnM):\n YKHO.batch_inserter.insert(YEnM)\n... | [
"0.74406564",
"0.74406564",
"0.7330303",
"0.70222616",
"0.69464105",
"0.6844406",
"0.6844406",
"0.68108207",
"0.6782917",
"0.6762919",
"0.6722415",
"0.67050236",
"0.66941667",
"0.66453713",
"0.6634639",
"0.66183406",
"0.6617994",
"0.6611413",
"0.66083163",
"0.66083163",
"0.65... | 0.62425184 | 87 |
int represented as a short float | def NYZY(BWXx):
BWXx = '%f' % BWXx
return BWXx.rstrip('0') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cll5(YKHO):\n return YKHO._to(ht2j.short)",
"def Bo8j(YKHO):\n nEeK = YKHO._read_byte()\n ekgN = YKHO._read_byte()\n WKvO = nEeK | ekgN << 8\n if WKvO & 32768:\n WKvO -= 65536\n return WKvO",
"def FgDs(wEf2):\n\n def JET4(wEf2):\n dC1q = wEf2\n if isinstance(dC1q, ... | [
"0.6539462",
"0.6427004",
"0.6396383",
"0.63874525",
"0.6343103",
"0.6338747",
"0.63229483",
"0.63229483",
"0.6303095",
"0.6275273",
"0.6232846",
"0.6232822",
"0.62164783",
"0.62141085",
"0.60772926",
"0.6067937",
"0.60648173",
"0.60376394",
"0.5989147",
"0.5979057",
"0.59735... | 0.0 | -1 |
Remove html tags from a string | def GC5m():
l5Ny = l5ZP()
l5Ny = l5Ny[0]
l5Ny = ''.join(l5Ny)
l5Ny = l5Ny[1:len(l5Ny) - 1]
x0SS = ZbWC.compile('<.*?>')
return ZbWC.sub(x0SS, '', l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)",
"def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)",
"def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb",
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return Zb... | [
"0.86815035",
"0.85845494",
"0.8547164",
"0.8528413",
"0.84839606",
"0.84403396",
"0.84221727",
"0.84221727",
"0.84218365",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.83305824",
"0.83305824",
"0.83305824",
"0.8295757",
"0.82903194",
"0.82... | 0.7282628 | 99 |
Create data loaders functions for train, validation and test data. | def RuZU(h_xa: str) -> dict:
uRGD = jj4i(h_xa)
Ymkf = yjdk()
gMbG = _Pkd(uRGD, Ymkf)
Pa1c = ht2j.utils.data.DataLoader(gMbG['train'], batch_size=64, shuffle=True)
fC9l = ht2j.utils.data.DataLoader(gMbG['valid'], batch_size=32)
Blhr = ht2j.utils.data.DataLoader(gMbG['test'], batch_size=32)
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vyoO(EPL3, qby3, dxsx, sTd8, gzqW):\n AHI0 = ht2j.utils.data.DataLoader(dataset=EPL3, batch_size=sTd8, shuffle=True)\n RkiG = ht2j.utils.data.DataLoader(dataset=qby3, batch_size=gzqW, shuffle=True)\n Bsb3 = ht2j.utils.data.DataLoader(dataset=dxsx, batch_size=gzqW, shuffle=True)\n return (AHI0, RkiG... | [
"0.77810764",
"0.76066905",
"0.7592289",
"0.7578825",
"0.7565577",
"0.7560624",
"0.75422883",
"0.7439002",
"0.7422467",
"0.7374243",
"0.7351734",
"0.7274537",
"0.72700626",
"0.72663",
"0.7236498",
"0.7236459",
"0.7222315",
"0.7219273",
"0.72153366",
"0.7177899",
"0.71659166",... | 0.6683638 | 78 |
Decorator constructor for unparameterized operators. | def jTh8(Emd4, FYKK):
mWFP = FYKK.__name__
return Emd4(name=mWFP, body=FYKK, category=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, seET: Callable[[Bounds, Any], Bounds]):\n super().__init__()\n YKHO.operator = seET",
"def FIMM(YKHO, seET: Callable[[Bounds], Bounds]):\n super().__init__()\n YKHO.operator = seET",
"def FIMM(YKHO, seET: Callable[[Bounds, Bounds], Bounds]):\n super().__init__()\n YKHO.operator... | [
"0.6827456",
"0.67332953",
"0.6707114",
"0.6690275",
"0.66274065",
"0.6512745",
"0.65074116",
"0.6406833",
"0.6356491",
"0.63297457",
"0.63218856",
"0.6290418",
"0.6272749",
"0.62636125",
"0.6253236",
"0.62305343",
"0.62298995",
"0.62298995",
"0.6185065",
"0.6088524",
"0.6057... | 0.0 | -1 |
Return whether this operator conflicts with another. | def VwaJ(YKHO, Elif):
for Z9rn in Z56C:
if YKHO.category in Z9rn and Elif.category in Z9rn:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VwaJ(YKHO, Elif):\n if super(ao3J, YKHO).conflicts_with(Elif):\n return True\n if (YKHO.name == 'at' and Elif.name == 'at' or (YKHO.name == 'facing' and Elif.name == 'facing') or (YKHO.name == 'beside' and Elif.name == 'beside')) and YKHO.value != Elif.value and (not YKHO.negated) and (not Elif.ne... | [
"0.6888932",
"0.6844818",
"0.6739603",
"0.6662859",
"0.6590016",
"0.6534689",
"0.64641345",
"0.64641345",
"0.64209723",
"0.63276374",
"0.6234318",
"0.6200974",
"0.6194391",
"0.6189709",
"0.6163353",
"0.6117711",
"0.61066043",
"0.6097544",
"0.6061069",
"0.605802",
"0.6025727",... | 0.7075837 | 0 |
Update the balance of a node which updates the tree balance. | def ZY0D(YKHO, Q6kx):
if Q6kx.balance_factor > 1 or Q6kx.balance_factor < -1:
YKHO.rebalance(Q6kx)
return
if Q6kx.parent:
if Q6kx.parent.left_child == Q6kx:
Q6kx.parent.balance_factor += 1
elif Q6kx.parent.right_child == Q6kx:
Q6kx.parent.balance_factor -=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZY0D(YKHO, Q6kx):\n if Q6kx.balance_factor > 1 or Q6kx.balance_factor < -1:\n YKHO.rebalance(Q6kx)\n return\n if Q6kx.parent:\n if Q6kx.parent.left_child == Q6kx:\n Q6kx.parent.balance_factor += 1\n elif Q6kx.parent.right_child == Q6kx:\n Q6kx.parent.bala... | [
"0.8229336",
"0.8163314",
"0.7707107",
"0.7396861",
"0.6843475",
"0.6743936",
"0.6681687",
"0.6635982",
"0.6619287",
"0.66137433",
"0.65723693",
"0.6565732",
"0.65628767",
"0.65597457",
"0.6476057",
"0.6468073",
"0.6468073",
"0.64532876",
"0.6434542",
"0.6367128",
"0.63651687... | 0.8289343 | 0 |
Stitches two matplotlib colormaps together to make a new one. | def cHfE(S1R7, zuPL):
dS_U = QrM1.cm.get_cmap(S1R7)
_orP = QrM1.cm.get_cmap(zuPL)
NBU1 = dS_U(oyIN.arange(256))
aORx = _orP(oyIN.arange(256))
OeK1 = oyIN.concatenate((aORx[::-1], NBU1))
nvUF = Jw9H.ListedColormap(OeK1)
return nvUF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hQFU(**B2fa):\n GYfx = [('Perceptually Uniform Sequential', ['viridis', 'plasma', 'inferno', 'magma', 'cividis']), ('Sequential', ['Greys', 'Purples', 'Blues', 'Greens', 'Oranges', 'Reds', 'YlOrBr', 'YlOrRd', 'OrRd', 'PuRd', 'RdPu', 'BuPu', 'GnBu', 'PuBu', 'YlGnBu', 'PuBuGn', 'BuGn', 'YlGn']), ('Sequential ... | [
"0.6091589",
"0.58782256",
"0.5732726",
"0.56933665",
"0.56184757",
"0.5568202",
"0.5501895",
"0.54286253",
"0.5401087",
"0.5399195",
"0.53878194",
"0.5329724",
"0.5329724",
"0.51676",
"0.5161406",
"0.5161234",
"0.51539135",
"0.51211447",
"0.5097717",
"0.5093671",
"0.50911885... | 0.67993164 | 0 |
Return a dictionary of runtime statistics. This dictionary will be empty when the controller has never been ran. When it is running or has ran previously it should have (but may not) have useful and/or informational keys and values when running is underway and/or completed. | def Dz7Y(YKHO) -> a1PO.Dict[str, a1PO.Any]:
try:
return YKHO._local.statistics
except AttributeError:
YKHO._local.statistics = a1PO.cast(a1PO.Dict[str, a1PO.Any], {})
return YKHO._local.statistics | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MtkM(YKHO):\n return dict()",
"def MtkM(YKHO):\n U5bT = {'numRunCalls': YKHO.__numRunCalls}\n J4eR = dict()\n if YKHO._hasTP:\n for QmN4 in YKHO._netInfo.statsCollectors:\n rtwz = QmN4.getStats()\n J4eR.update(rtwz)\n U5bT[grVw.getLabel(grVw.TemporalNextStep)] = J4... | [
"0.82906",
"0.7335298",
"0.7110689",
"0.70790374",
"0.7072538",
"0.6843773",
"0.6815169",
"0.6804338",
"0.6792079",
"0.6743698",
"0.6741222",
"0.6687417",
"0.66678095",
"0.66671693",
"0.6643019",
"0.6630299",
"0.66301495",
"0.66107845",
"0.65901196",
"0.65899605",
"0.6586978"... | 0.6458958 | 28 |
product_delete_by_id(current_user, product_id) HTTP Methods DELETE Deletes resource | def auEA(c5ow, Mc9N):
Lx3t = msfn.query.filter_by(id=Mc9N).first()
if Lx3t:
NCls.session.delete(Lx3t)
NCls.session.commit()
return (pz3A({'message': 'Product deleted successfully'}), 200)
return (pz3A({'messsage': 'Error product not deleted'}), 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO, QePW, id, format=None):\n Lx3t = YKHO.get_object(id)\n if Lx3t is None:\n return YKHO.NOT_FOUND_RESP\n Lx3t.delete()\n return oGir(status=jGRS.HTTP_204_NO_CONTENT)",
"def wL2u(QePW, Mc9N):\n if not QePW.user.is_superuser:\n yEHD.error(QePW, 'Sorry, only FitIt owners ca... | [
"0.80335605",
"0.802533",
"0.80045474",
"0.7980102",
"0.79673284",
"0.79664755",
"0.7956362",
"0.78922224",
"0.7863728",
"0.7855167",
"0.7854455",
"0.78405565",
"0.78069067",
"0.7795544",
"0.7771248",
"0.77657217",
"0.776419",
"0.7744754",
"0.77334887",
"0.76980007",
"0.76190... | 0.866392 | 0 |
product_update_by_id(current_user, product_id) HTTP Methods PUT Updates existing resources | def Kcx0(c5ow, Mc9N):
Lx3t = msfn.query.filter_by(id=Mc9N).first()
if Lx3t:
nPrm = QePW.get_json()
try:
if nPrm['name']:
Lx3t.name = nPrm['name']
except KeyError:
pass
NCls.session.commit()
return (pz3A({'message': 'Product info upd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JswJ(c5ow, Mc9N):\n nPrm = QePW.get_json()\n Dokz = nPrm['name']\n Eagc = nPrm['description']\n fUk1 = nPrm['price']\n sFED = nPrm['quantity']\n Lx3t = JPtw.find_product_by_id(Mc9N)\n if Lx3t:\n if c5ow['email'] == Lx3t['user_id']:\n _hkX = JPtw.update_product(Mc9N, Dokz,... | [
"0.83380455",
"0.7946588",
"0.785406",
"0.7841151",
"0.77639043",
"0.764917",
"0.7564533",
"0.7509188",
"0.7507635",
"0.7457443",
"0.7400778",
"0.73091865",
"0.7221233",
"0.71506673",
"0.7117145",
"0.70779747",
"0.69824594",
"0.6877483",
"0.687123",
"0.68612087",
"0.6858681",... | 0.84866387 | 0 |
Draws the obstacles onto the screen and updates the obstacles position. | def ulEo(ufJO):
for U6D_ in c2q2:
for fhZS in U6D_.obstacles:
if fhZS.x <= ePNl.window_width:
fhZS.draw(ufJO)
qJzw() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO, ufJO):\n for fhZS in YKHO.obstacles:\n fhZS.draw(ufJO)",
"def itC4():\n pass",
"def QdZT(YKHO):\n for LEXu in YKHO.sprite:\n LEXu.move((0, -YKHO.game.player.current_direction[1] * YKHO.game.player.frame_speed))\n for W061 in YKHO.game.obstacles:\n W061.update()",... | [
"0.791524",
"0.7869904",
"0.71205974",
"0.70933884",
"0.70765334",
"0.6988415",
"0.68644315",
"0.6816832",
"0.6810552",
"0.68049735",
"0.68045336",
"0.67801285",
"0.67670155",
"0.6725969",
"0.67037034",
"0.6699849",
"0.66417336",
"0.66397864",
"0.6637569",
"0.66343915",
"0.65... | 0.78189725 | 2 |
Pixel perfect collision implemented using masks. Checks for collision of mask of player against other obstacles only if the obstacle is near to the player. Returns True if collision occurred, else False. | def qOZN():
oyg0 = WZs9.player
BXMB = WZs9.propeller
for U6D_ in c2q2:
for fhZS in U6D_.collision_obstacles:
if fhZS.x < oyg0.x + oyg0.img.get_width() and fhZS.x + fhZS.img.get_width() > oyg0.x:
if fhZS.y < oyg0.y + oyg0.img.get_height() and fhZS.y + fhZS.img.get_height()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mJhx(VRm2, elcS, qCh9, gVMy):\n mawX = VRm2.clip(elcS)\n if mawX.width == 0 or mawX.height == 0:\n return False\n o4D3, si3g = (mawX.x - VRm2.x, mawX.y - VRm2.y)\n ajwV, skBL = (mawX.x - elcS.x, mawX.y - elcS.y)\n for WKvO in range(mawX.width):\n for LVAh in range(mawX.height):\n ... | [
"0.729059",
"0.72846097",
"0.72552884",
"0.72396225",
"0.7211874",
"0.7205048",
"0.71822834",
"0.71751356",
"0.7173133",
"0.71668285",
"0.7157247",
"0.7140839",
"0.67054135",
"0.66730714",
"0.6548268",
"0.6534613",
"0.653106",
"0.6526653",
"0.65235144",
"0.6492919",
"0.636107... | 0.72538316 | 3 |
Create a serializable request containing users. | def ceO0(DW23, OsRs=None):
VPpC = []
GckG = set()
for CBIr in DW23:
P6bq = oxnr.MySQLUser(name=CBIr.get('name', ''), host=CBIr.get('host', '%'))
P6bq.check_reserved()
m5M4 = (P6bq.name, P6bq.host)
if m5M4 in GckG:
raise AJ5d.DatabaseInitialUserDuplicateError()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SwU0():\n NtEF = lx9M(length=8)\n D3lj = lx9M(length=8, email=True)\n jTXt = lx9M(length=8)\n return {'username': NtEF, 'email': D3lj, 'password': jTXt}",
"def DW23():\n if QePW.method == 'POST':\n B2fa = QePW.get_json()\n if not B2fa:\n return ({'error': 'Not a JSON'}... | [
"0.6247631",
"0.6197064",
"0.61759555",
"0.6135664",
"0.6054458",
"0.603268",
"0.5994793",
"0.5982741",
"0.5975058",
"0.594935",
"0.593666",
"0.5936325",
"0.5925575",
"0.58970255",
"0.58863187",
"0.5854953",
"0.58299446",
"0.5822654",
"0.5813255",
"0.5811151",
"0.5805089",
... | 0.0 | -1 |
Return the value of the cumulative distribution function at x. | def YzER(YKHO, WKvO):
return YKHO.sum(WKvO) / YKHO.total | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, WKvO):\n return YKHO.distr.cdf(WKvO)",
"def YzER(YKHO, WKvO):\n return YKHO._frozen.cdf(WKvO)",
"def mMPC(YKHO, WKvO):\n return YKHO.tw_approx.cdf(WKvO)",
"def kz4l(WKvO):\n if WKvO < 0:\n return 0\n elif WKvO < 1:\n return WKvO\n else:\n return 1",
"de... | [
"0.79636306",
"0.77399397",
"0.739953",
"0.7257363",
"0.7248872",
"0.72403944",
"0.7190628",
"0.7186948",
"0.7171988",
"0.7108791",
"0.706027",
"0.6969733",
"0.6969664",
"0.6949681",
"0.6862255",
"0.6835129",
"0.68015075",
"0.6776889",
"0.67617345",
"0.67587584",
"0.6728889",... | 0.6682824 | 23 |
Return the upper (max( and lower (min) bounds of the distribution. | def X7zS(YKHO):
if len(YKHO):
return (YKHO._min, YKHO._max)
return (None, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmnP(YKHO):\n FlUN = oyIN.asarray([YKHO.point, YKHO.point + YKHO.v0, YKHO.point + YKHO.v0 + YKHO.v1, YKHO.point + YKHO.v1])\n return (oyIN.min(FlUN, axis=0), oyIN.max(FlUN, axis=0))",
"def pmnP():\n return [(0.25, 0.5), (0.5, 1.0), (1.0, 1.5), (1.5, 2.0), (2.0, 2.5), (2.5, 3.0), (3.0, 1000)]",
"de... | [
"0.76285446",
"0.76218283",
"0.75936365",
"0.7577045",
"0.7575544",
"0.75334746",
"0.75004965",
"0.7484963",
"0.7461768",
"0.74487215",
"0.74303514",
"0.7411671",
"0.738809",
"0.7368427",
"0.7366003",
"0.73450005",
"0.73143923",
"0.72956085",
"0.72709805",
"0.7268608",
"0.725... | 0.7290992 | 18 |
Return the sample mean of the distribution. | def JBMS(YKHO):
if YKHO.total == 0:
return None
KCHu = 0.0
for Fg_i in YKHO.bins:
KCHu += Fg_i.value * Fg_i.count
return KCHu / float(YKHO.total) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKJU(YKHO):\n return oyIN.mean(oyIN.mean(YKHO.samples, axis=1))",
"def Nc6L(YKHO):\n return oyIN.mean(YKHO.samples, axis=1)",
"def Nc6L(mvm2):\n return oyIN.mean(mvm2)",
"def JBMS(YKHO):\n return YKHO.new_mean / (1 - YKHO.B ** YKHO.sample_count)",
"def JBMS(YKHO):\n L4iJ = sum(YKHO.data)... | [
"0.8537664",
"0.8518987",
"0.83460003",
"0.8045131",
"0.79792887",
"0.79695225",
"0.7962513",
"0.7959865",
"0.79535866",
"0.79535866",
"0.79535866",
"0.79535866",
"0.79535866",
"0.78309053",
"0.78309053",
"0.78309053",
"0.781969",
"0.78163666",
"0.77834916",
"0.77684665",
"0.... | 0.74056596 | 44 |
Return the variance of the distribution. | def SRYB(YKHO):
if YKHO.total < 2:
return None
KCHu = 0.0
r8hN = YKHO.mean()
for Fg_i in YKHO.bins:
KCHu += Fg_i.count * (Fg_i.value - r8hN) ** 2
return KCHu / float(YKHO.total) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(YKHO):\n return YKHO.base_dist.variance * YKHO.scale ** 2",
"def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL",
"def I8JS(YKHO):\n return YKHO._rv.var()",
"def I8JS(YKHO):\n return YKHO._variance",
"def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2)... | [
"0.8523538",
"0.8373391",
"0.8340557",
"0.8314996",
"0.8293172",
"0.8290373",
"0.8206345",
"0.81728035",
"0.8168679",
"0.81333965",
"0.801299",
"0.7999838",
"0.7949844",
"0.7909885",
"0.786475",
"0.78506327",
"0.7841335",
"0.77153337",
"0.7707168",
"0.76627266",
"0.7638574",
... | 0.6883798 | 79 |
Return the maximum value in the histogram. | def max(YKHO):
return YKHO._max | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ygc6(YKHO, QzFq):\n eB_n = -1\n YRbF = len(QzFq) - 1\n RBT6 = False\n while YRbF >= 0 and (not RBT6):\n if QzFq[YRbF] > 0:\n eB_n = YRbF\n RBT6 = True\n YRbF = YRbF - 1\n return eB_n",
"def bQ6z(YKHO):\n return max(YKHO.values())",
"def max(YKHO):\n ... | [
"0.7948154",
"0.77898085",
"0.7739494",
"0.7684466",
"0.76796544",
"0.7674576",
"0.7621573",
"0.7595525",
"0.7579082",
"0.7500737",
"0.7498749",
"0.74637717",
"0.7459445",
"0.7452444",
"0.74511653",
"0.74423563",
"0.7406376",
"0.7403941",
"0.74010056",
"0.74010056",
"0.738771... | 0.71542513 | 51 |
Make a deep copy of this histogram. | def jth9(YKHO):
Ylbp = type(YKHO)(int(YKHO.maxbins), bool(YKHO.weighted))
Ylbp.bins = YKHO.bins.copy()
Ylbp._min = float(YKHO._min) if YKHO._min is not None else None
Ylbp._max = float(YKHO._max) if YKHO._max is not None else None
Ylbp.total = int(YKHO.total)
Ylbp.missing_count = int(YKHO.missin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return type(YKHO)(YKHO.bins, YKHO.array.copy())",
"def jth9(YKHO: Axis) -> UznS:\n return type(YKHO)(bin_edges=oyIN.array(YKHO.bin_edges, copy=True))",
"def ZOSL(YKHO):\n return YKHO._values.copy()",
"def FzJk(YKHO):\n return YKHO.__deepcopy__({})",
"def W9NA(YKHO):\n retur... | [
"0.73546153",
"0.723465",
"0.71942514",
"0.7080133",
"0.69719803",
"0.69487375",
"0.69011766",
"0.6881402",
"0.68623966",
"0.68560535",
"0.68239474",
"0.6823872",
"0.68210614",
"0.6792062",
"0.67847294",
"0.6784425",
"0.67822516",
"0.67822516",
"0.6766337",
"0.67599046",
"0.6... | 0.6883133 | 7 |
Tests if this bin has a lower mean than another bin. | def JWbp(YKHO, YEnM):
return YKHO.value < YEnM.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWbp(YKHO, Elif):\n if YKHO._avgValue() < Elif._avgValue():\n return True\n return False",
"def Zcf_(YKHO, Elif):\n if YKHO.average() >= Elif.average():\n return True\n else:\n return False",
"def JWbp(YKHO, Elif):\n return YKHO.mean_mz <= Elif.mean_mz",
"def CcUv(YKHO... | [
"0.70751333",
"0.69337654",
"0.67297536",
"0.6602136",
"0.6594916",
"0.6480842",
"0.6312904",
"0.6196892",
"0.6182826",
"0.6145214",
"0.6039692",
"0.6039692",
"0.5945562",
"0.59126014",
"0.5892464",
"0.58778363",
"0.58778363",
"0.58314484",
"0.5830045",
"0.58195925",
"0.58195... | 0.0 | -1 |
Return a human readable representation of the model instance. | def zAg0(YKHO):
return 'f{(self.name)}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return YKHO.human_format()",
"def zAg0(YKHO):\n return YKHO.get_short_representation()",
"def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_d... | [
"0.7913435",
"0.7867543",
"0.7781073",
"0.7656772",
"0.7606172",
"0.7597312",
"0.7564931",
"0.7550362",
"0.75101286",
"0.7454313",
"0.74322736",
"0.7422165",
"0.73582166",
"0.73346543",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.732... | 0.0 | -1 |
Return the normalized images With color values in 0.1~0.9 | def Q7gV(xsqC):
jzdc = 0.0
Fg_i = 1.0
a7ZG = oyIN.min(xsqC)
EWje = oyIN.max(xsqC)
ZCnw = oyIN.empty_like(xsqC, dtype=oyIN.float32)
ZCnw = (xsqC - a7ZG) * (Fg_i - jzdc) / (EWje - a7ZG) + jzdc
return ZCnw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GYO3(VXjJ):\n MynD, n4wC = (VXjJ.min(), VXjJ.max())\n HBfW = []\n RA_F = n4wC - MynD\n for XP5J in VXjJ.ravel():\n HBfW.append(255 * (XP5J - MynD) / RA_F)\n Lj5f = oyIN.array(HBfW).astype(oyIN.uint8).reshape(VXjJ.shape[0], -1)\n return Lj5f",
"def YfJQ(Yw_3):\n Yw_3 = Yw_3 - 128\n... | [
"0.77242863",
"0.76942754",
"0.76249856",
"0.760599",
"0.7599085",
"0.75923824",
"0.757153",
"0.757153",
"0.74944335",
"0.74941397",
"0.73197055",
"0.7290926",
"0.7289028",
"0.72756815",
"0.72586185",
"0.7253942",
"0.7236142",
"0.72183335",
"0.72183335",
"0.71962786",
"0.7194... | 0.0 | -1 |
Get model fields names as list of strings. | def V_D6(C3ST):
return [str(eHNT).split('.')[-1] for eHNT in C3ST._meta.get_fields()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kHEH(YKHO) -> bdIy[str]:\n return YKHO.config.get_model_fields(YKHO.opts.model)",
"def Wq02(Emd4):\n if not hasattr(Emd4, '__fields__'):\n raise n6lj('fields not set')\n ZWCE = []\n for Jyyj in Emd4.__fields__.values():\n ZWCE.append(Jyyj.name)\n return ZWCE",
"def eM8m(YKHO):\... | [
"0.8442563",
"0.8416965",
"0.81085414",
"0.80850375",
"0.799659",
"0.79376686",
"0.7632293",
"0.7606432",
"0.7591691",
"0.7570491",
"0.751454",
"0.7508943",
"0.75054485",
"0.74541247",
"0.7379061",
"0.73524165",
"0.7338994",
"0.72734493",
"0.72714007",
"0.72698486",
"0.725136... | 0.8165931 | 2 |
RNN decoder for the sequencetosequence model. | def e3gM(Nmec, W9gz, VmPb, T69X, jXEC, rrBf=None):
with ZylS.variable_scope(rrBf or 'rnn_decoder'):
print('rnn_decoder_with_attention started...')
QTBn = W9gz
bGrB, wjbX = QTBn.get_shape().as_list()
Ep8u, NXmX, Agjb = jXEC.get_shape().as_list()
o4Jx = []
THkp = None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IKFY(YKHO):\n UXqs = Kt_s.ftensor3('label')\n TKVG = YKHO.lstm_cell\n W5OY = YKHO.lstm_single\n if YKHO.doubleLayer:\n TKVG = YKHO.lstm_double_no_output\n W5OY = YKHO.lstm_double\n if YKHO.tripleLayer:\n TKVG = YKHO.lstm_triple_no_output\n W5OY = YKHO.lstm_triple\n ... | [
"0.6965689",
"0.69556075",
"0.68345207",
"0.6694242",
"0.6662429",
"0.6651193",
"0.66234285",
"0.65151525",
"0.64877677",
"0.6472894",
"0.6468105",
"0.64286345",
"0.63829947",
"0.63747436",
"0.6353619",
"0.63396674",
"0.63290066",
"0.6321981",
"0.63165534",
"0.6303062",
"0.62... | 0.5768247 | 100 |
Return True if `tag` exists as a git tag. | def ELG7(TZ9E: str) -> bool:
Aofo: nQ3j = iXC1(f'git describe --tags {TZ9E}', hide='stdout', warn=True)
return Aofo.return_code == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DKo0(YKHO, RDp6: str, hLhr) -> bool:\n pass",
"def sYSz(YKHO, TZ9E):\n return TZ9E in YKHO.metadata['tags']",
"def NU_e(YKHO, TZ9E):\n return TZ9E in YKHO.tags",
"def NU_e(YKHO, TZ9E):\n return TZ9E in YKHO._tag_names",
"def NU_e(YKHO, TZ9E):\n if not YKHO.has_tags:\n return False... | [
"0.81185704",
"0.79524547",
"0.77351177",
"0.77279913",
"0.7640216",
"0.75752133",
"0.74246365",
"0.7312191",
"0.7091708",
"0.69431746",
"0.6828063",
"0.6784062",
"0.671975",
"0.67031556",
"0.66030514",
"0.6567865",
"0.6530963",
"0.6519008",
"0.6513681",
"0.645586",
"0.645363... | 0.8764964 | 0 |
Generate a random string of fixed length | def Jv62(FVpJ=10):
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def MiNk(u54L):\n gLiZ = vIwR.ascii... | [
"0.8746205",
"0.87138057",
"0.86634374",
"0.8589632",
"0.85856813",
"0.85634226",
"0.8558564",
"0.85515654",
"0.853908",
"0.8533391",
"0.8508468",
"0.85072726",
"0.84704083",
"0.84667903",
"0.84667903",
"0.84504145",
"0.8449424",
"0.8428432",
"0.84244287",
"0.8423231",
"0.841... | 0.0 | -1 |
Plot all patient deaths. This method plots all patient deaths. | def d6wL(YKHO, tiCR: bool, faH_: bool):
LZpg, (RwDJ, jDhX, brRS) = QrM1.subplots(3, 1, sharex=True)
RwDJ = SLdk.generic_plot(YKHO.death_statistics['Community'], RwDJ, 'Total', YKHO.confidence_interval, 'Daily deaths in the community', 'Time (days)', 'Patients')
jDhX = SLdk.generic_plot(YKHO.death_statistics... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X58a(YsYX, RkFZ, leAC):\n kj9G(IGj7, ':', label='Deaths by Cancer')\n kj9G(nbWN, ':', label='Life Expectancy')\n kj9G(RkFZ, color='gray', label='Projection Model')\n AuU4(xlabel='Year (0=1990, 60=2050)', ylabel='Number of people (in Hundreads)/Age(1-100)', title=leAC)",
"def kj9G(YKHO):\n rJDt... | [
"0.6520731",
"0.60881275",
"0.6015905",
"0.5939597",
"0.59101474",
"0.5883877",
"0.58595645",
"0.5759107",
"0.5755133",
"0.5699497",
"0.5697948",
"0.5692918",
"0.5686353",
"0.5686105",
"0.5685795",
"0.56722593",
"0.5670984",
"0.5659562",
"0.56484765",
"0.5627655",
"0.56125057... | 0.6375808 | 1 |
Returns a DFP company ID from company name. | def rUiL(mWFP):
O2cT = bxbw()
Tx4k = O2cT.GetService('CompanyService', version='v202208')
xDcj = 'WHERE name = :name'
hkxX = [{'key': 'name', 'value': {'xsi_type': 'TextValue', 'value': mWFP}}]
WNtM = JbNr.FilterStatement(xDcj, hkxX)
geh0 = Tx4k.getCompaniesByStatement(WNtM.ToStatement())
K4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwoj(YKHO):\n return YKHO.get_company_id()",
"def Nj7l(u8qZ):\n return s9HI.objects.filter(company_name=u8qZ).first()",
"def AseS(QpfX, pstj):\n NL8l = pstj.keys()\n mF2q = []\n for a1PO in NL8l:\n ngqc = pstj[a1PO]\n mF2q.append(u' id=%s, %s' % (a1PO, ngqc['CompanyName']))\n... | [
"0.7351235",
"0.68316096",
"0.6830712",
"0.6776136",
"0.6771141",
"0.6702896",
"0.6645725",
"0.65178376",
"0.65154994",
"0.6470198",
"0.6440753",
"0.6404365",
"0.63777906",
"0.63160795",
"0.6308914",
"0.6300987",
"0.6300987",
"0.6300987",
"0.6283551",
"0.62720644",
"0.6263696... | 0.5465874 | 64 |
Compute average heart rate variability (HRV) in a sliding window. | def TsJK(dxhl, TpFT, avuq, KnxT=6, OHCv='mean'):
return rG6c(dxhl, TpFT, avuq, metric='hrv', window=6, central_measure='mean') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ftjI(WELO):\n qqgr = XTiz.mean(WELO)\n return qqgr",
"def ucw6(it6R, GqYl):\n G5QD = []\n for YRbF in range(0, len(GqYl)):\n if YRbF >= it6R:\n G5QD.append(GqYl[YRbF])\n XG44 = oyIN.mean(G5QD)\n return XG44",
"def TTzA(ER8Z, fQqb, XfQO, sHil):\n ER8Z = ER8Z.resample('... | [
"0.6715373",
"0.61731017",
"0.6054466",
"0.60455894",
"0.6019465",
"0.5984942",
"0.5966826",
"0.5949461",
"0.5902724",
"0.5754493",
"0.57326424",
"0.5699035",
"0.5695117",
"0.56731814",
"0.56660277",
"0.5641871",
"0.5641871",
"0.5641871",
"0.5641871",
"0.5640567",
"0.56318665... | 0.63702893 | 1 |
Compute average heart beat interval (HBI) in a sliding window. | def fmKX(dxhl, TpFT, avuq, KnxT=6, OHCv='mean'):
return rG6c(dxhl, TpFT, avuq, metric='hbi', window=6, central_measure='mean') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZDH(WKvO, LVAh, Rf07=0.1, nkck=1):\n pass",
"def HeLN(jQ3Z, a0IR=150):\n from mmctools.mmctools.helper_functions import estimate_ABL_height\n yhRC = estimate_ABL_height(Tw=jQ3Z['thetaw'])\n sQY8 = estimate_ABL_height(uw=oyIN.sqrt(jQ3Z['uw'] ** 2 + jQ3Z['vw'] ** 2))\n yhRC.loc[yhRC < a0IR] = s... | [
"0.6166353",
"0.61538905",
"0.61355776",
"0.61355776",
"0.6121939",
"0.6115682",
"0.6048113",
"0.60145634",
"0.6010803",
"0.6009737",
"0.6009737",
"0.6009737",
"0.6009737",
"0.598372",
"0.5949103",
"0.5930553",
"0.5846617",
"0.58400935",
"0.583387",
"0.58335346",
"0.5813069",... | 0.6513488 | 0 |
Retrieve the IDs of all outer graphs of a graph. | def r1Fc(YKHO, GwLC):
preC = [GwLC]
pNZh = YKHO._reader.graph_by_id(GwLC)
while pNZh.outer_graph_id:
preC.insert(0, pNZh.outer_graph_id)
pNZh = YKHO._reader.graph_by_id(pNZh.outer_graph_id)
return preC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDYo(YKHO):\n return list(YKHO._idc_in_graph)",
"def q5g4(pNZh):\n XyW_ = []\n for Q6kx in pNZh:\n if not pNZh[Q6kx]:\n XyW_ += Q6kx\n return XyW_",
"def IWFH(YKHO):\n ts4V = YKHO.graph.vertexCount()\n return Ni9Y(0, ts4V)",
"def jRu4(YKHO):\n apzJ.abstract()",
"d... | [
"0.69256824",
"0.635673",
"0.6264849",
"0.6200949",
"0.6091448",
"0.6077702",
"0.60739285",
"0.6069418",
"0.6061885",
"0.6021742",
"0.59297323",
"0.5919096",
"0.59102774",
"0.5903311",
"0.5903311",
"0.5885978",
"0.5885978",
"0.5885978",
"0.5885978",
"0.5885978",
"0.588481",
... | 0.66322356 | 1 |
Returns "nan" if dividing by zero. | def wrH4(WKvO, LVAh):
try:
return WKvO / LVAh
except ZeroDivisionError:
return oyIN.nan | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AvOK(jzdc, Fg_i):\n Aofo = jzdc / Fg_i\n Aofo[Aofo != Aofo] = 0.0\n Aofo[Aofo == oyIN.inf] = 0.0\n return Aofo",
"def nrOS(YKHO):\n if YKHO.dividend is not None and YKHO.divisor is not None:\n return YKHO.dividend() // YKHO.divisor()\n return YKHO.NAN",
"def cF9X(jzdc, Fg_i):\n ... | [
"0.778847",
"0.73502016",
"0.71378297",
"0.705214",
"0.705214",
"0.705214",
"0.705214",
"0.69945776",
"0.6924737",
"0.6924737",
"0.6918137",
"0.6906805",
"0.6891532",
"0.68805796",
"0.68565947",
"0.6834998",
"0.67877305",
"0.6757472",
"0.673796",
"0.66825044",
"0.66726923",
... | 0.71203864 | 3 |
Get bearing from compass ([180, 180] version) | def ObnE(Wbqi: controller.Compass) -> float:
q7In = K2Oi.bearing(Wbqi)
if q7In > 180:
q7In -= 360
return q7In | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Je4s(Wbqi: controller.Compass) -> float:\n hkxX = Wbqi.getValues()\n q7In = oyIN.arctan2(hkxX[0], hkxX[2])\n q7In = oyIN.rad2deg(q7In) - 90\n return q7In % 360",
"def N9qo(YKHO, xltt):\n Je4s = (5 * oyIN.pi / 2 - xltt) % (2 * oyIN.pi)\n return Je4s",
"def qQeq(YKHO, rQrC=False):\n GsVy... | [
"0.7995521",
"0.7785161",
"0.77664006",
"0.77112055",
"0.75960857",
"0.75581443",
"0.7380068",
"0.73481065",
"0.6967199",
"0.69091684",
"0.684334",
"0.6831689",
"0.68063027",
"0.67995256",
"0.6795019",
"0.6751252",
"0.6742513",
"0.67311764",
"0.67204547",
"0.66908973",
"0.669... | 0.7931757 | 1 |
Get bearing from compass ([0, 360] version) | def Je4s(Wbqi: controller.Compass) -> float:
hkxX = Wbqi.getValues()
q7In = oyIN.arctan2(hkxX[0], hkxX[2])
q7In = oyIN.rad2deg(q7In) - 90
return q7In % 360 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ObnE(Wbqi: controller.Compass) -> float:\n q7In = K2Oi.bearing(Wbqi)\n if q7In > 180:\n q7In -= 360\n return q7In",
"def N9qo(YKHO, xltt):\n Je4s = (5 * oyIN.pi / 2 - xltt) % (2 * oyIN.pi)\n return Je4s",
"def gajd() -> float:\n ...",
"def Je4s(YKHO) -> float:\n Jw7X = YKHO.ta... | [
"0.8118692",
"0.79182243",
"0.7850892",
"0.78502816",
"0.77042305",
"0.7574189",
"0.75034535",
"0.73239493",
"0.7004842",
"0.69743997",
"0.69596463",
"0.6913279",
"0.68324167",
"0.6809172",
"0.67014635",
"0.6688831",
"0.6681098",
"0.66671926",
"0.66249317",
"0.6615191",
"0.66... | 0.82685375 | 0 |
Given a path, read a TSV file and return a list of OrderedDicts. | def zHv1(pmON):
with open(pmON, 'r') as eHNT:
return list(m6_J.DictReader(eHNT, delimiter='\t')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zHv1(YKHO, qaEx: str) -> dict:\n nPrm = oRi_(list)\n with open(qaEx) as eHNT:\n for vC9B in eHNT:\n nPrm[vC9B.split('\\t')[1]] = vC9B.split('\\t')[0]\n return nPrm",
"def vH85(pmON, IcJu=False):\n ixsc, PFCt, WBPg = a8N9(pmON, delimiter='\\t', has_header=IcJu)\n nPrm = [WBPg]... | [
"0.71182644",
"0.68682927",
"0.68062353",
"0.6797694",
"0.65058213",
"0.6463486",
"0.63714683",
"0.63605034",
"0.63605034",
"0.63605034",
"0.63605034",
"0.6358027",
"0.6349206",
"0.6349206",
"0.6349206",
"0.6334165",
"0.6333294",
"0.63130957",
"0.6292925",
"0.6292925",
"0.628... | 0.7752797 | 0 |
Given a list of OrderedDicts of strings, return a list of lists of strings. | def _igm(tyNF):
UHhk = []
if len(tyNF) > 0:
UHhk = [list(tyNF[0].keys())]
for rdlD in tyNF:
UHhk.append(list(rdlD.values()))
return UHhk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQsP(Op6c):\n zNEM = []\n for H5ew in Op6c:\n for IePQ in Op6c[H5ew]:\n for ZfUD in Op6c[H5ew][IePQ]:\n zNEM += [ZfUD.tolist()]\n return zNEM",
"def k6MV(rxRc):\n S06t = []\n for bTKY in rxRc:\n if type(bTKY) is dict:\n S06t.append(eqLo(bTKY))... | [
"0.658256",
"0.63117",
"0.61651665",
"0.60010743",
"0.58849996",
"0.58849746",
"0.5867866",
"0.5827353",
"0.581853",
"0.58160245",
"0.5805981",
"0.5804098",
"0.578205",
"0.57647467",
"0.57522285",
"0.57519794",
"0.5734793",
"0.5660684",
"0.564046",
"0.5635585",
"0.56309664",
... | 0.0 | -1 |
Configures the learning rate. | def TriZ(Z6fR, b0Ix, z4eA, whXz, Aak1):
if Z6fR == 'exponential':
return ZylS.train.exponential_decay(b0Ix, Aak1, z4eA, whXz, staircase=True, name='exponential_decay_learning_rate')
elif Z6fR == 'fixed':
return ZylS.constant(b0Ix, name='fixed_learning_rate')
elif Z6fR == 'polynomial':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVtO(YKHO, tspZ=0.1):\n YKHO.learning_rate = tspZ\n return YKHO",
"def Aaf0(YKHO, Tclk):\n YKHO.learningRate = Tclk",
"def kVtO(YKHO, Qj8D: float):\n pass",
"def b0Ix(YKHO, b0Ix):\n YKHO._learning_rate = MoCN.learning_rate_limiter(b0Ix)",
"def b0Ix(YKHO, b0Ix):\n YKHO._learning_rate =... | [
"0.7926337",
"0.7903272",
"0.78032243",
"0.771162",
"0.771162",
"0.76847553",
"0.7615253",
"0.7590796",
"0.758113",
"0.7538556",
"0.75377834",
"0.7530232",
"0.75159293",
"0.7511709",
"0.74517494",
"0.7441666",
"0.7417797",
"0.74022394",
"0.73456734",
"0.73372835",
"0.7327593"... | 0.0 | -1 |
Freezes the state of a session into a pruned computation graph. Creates a new computation graph where variable nodes are replaced by constants taking their current value in the session. The new graph will be pruned so subgraphs that are not necessary to compute the requested outputs are removed. session The TensorFlow ... | def _w3s(cuiw, j1Hi=None, OnZF=None, lUZN=True):
pNZh = cuiw.graph
with pNZh.as_default():
hq9i = list(set((Ty9i.op.name for Ty9i in ZylS.global_variables())).difference(j1Hi or []))
OnZF = OnZF or []
OnZF += [Ty9i.op.name for Ty9i in ZylS.global_variables()]
uDSE = pNZh.as_graph... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _w3s(cuiw, j1Hi=None, OnZF=None, lUZN=True):\n from tensorflow.python.framework.graph_util import convert_variables_to_constants\n pNZh = cuiw.graph\n with pNZh.as_default():\n hq9i = list(set((Ty9i.op.name for Ty9i in ZylS.global_variables())).difference(j1Hi or []))\n OnZF = OnZF or []... | [
"0.835057",
"0.835057",
"0.8342605",
"0.8332153",
"0.83250403",
"0.83200324",
"0.8315354",
"0.8315354",
"0.8315354",
"0.8315354",
"0.83099353",
"0.8302319",
"0.8294935",
"0.82436836",
"0.7724164",
"0.6368226",
"0.6344671",
"0.62946296",
"0.6148106",
"0.61377525",
"0.59423727"... | 0.8310585 | 10 |
Given an auth_user_id and valid email, updates the user info | def uwJk(eOtH, D3lj):
B0gN.check_email_valid(D3lj)
if B0gN.search_email(D3lj) is not None:
raise DQrD('Email is taken')
id = B0gN.decrypt_token(eOtH)
for CBIr in nPrm['users']:
if CBIr['auth_user_id'] == id:
CBIr['email'] = D3lj
break
B0gN.save_data(nPrm)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def update_user(*, NCls: Session=JHvC(GGod), nPrm: UserUpdate, c5ow: DBUser=JHvC(W84Y), _Gwn: BackgroundTasks):\n q8z_ = None\n if nPrm.email and nPrm.email != c5ow.email:\n q8z_ = m533()\n with ToUI(NCls, detail='There was a conflict with an existing user.', debug=False):\n if (CBIr :... | [
"0.754295",
"0.72789246",
"0.7253187",
"0.7146865",
"0.71115476",
"0.70949256",
"0.7071481",
"0.7004101",
"0.69774246",
"0.69396967",
"0.69192994",
"0.69124717",
"0.6882016",
"0.68460983",
"0.6836423",
"0.68363345",
"0.6787358",
"0.67803764",
"0.67559665",
"0.6740516",
"0.671... | 0.6412066 | 61 |
Retrieve the permissions for this engine instance. | def w0rQ(YKHO):
try:
UIrv = YKHO.resource.get('permissions')
return [cFlk.from_href(vkmJ) for vkmJ in UIrv['granted_access_control_list']]
except QnRK:
raise uX3G('Engine permissions are only supported when using SMC API version 6.1 and newer.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w0rQ(YKHO):\n return YKHO._permissions",
"def w0rQ(YKHO):\n return YKHO._permissions",
"def w0rQ(YKHO):\n return YKHO._permissions",
"def w0rQ(YKHO):\n return YKHO._permissions",
"def pbO0(YKHO):\n aevO = YKHO.statinfo\n if not aevO:\n YKHO.restat()\n aevO = YKHO.statinf... | [
"0.7760798",
"0.7760798",
"0.7760798",
"0.7715308",
"0.75666785",
"0.7347323",
"0.73447526",
"0.7344454",
"0.7323571",
"0.72588336",
"0.7238851",
"0.7229838",
"0.71898633",
"0.71763456",
"0.7161981",
"0.7159388",
"0.71547484",
"0.7132373",
"0.71282667",
"0.71154976",
"0.71093... | 0.8080696 | 0 |
Returns a PhysicalInterface. This property can be used to | def lneC(YKHO):
try:
return ouuJ(parent=YKHO.resource.physical_interface, engine=YKHO)
except QnRK:
raise _g91('Engine type: {} does not support the physical interface type'.format(YKHO.type)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lneC(YKHO):\n pass",
"def fCn6(YKHO):\n try:\n return YKHO.resource.get('switch_physical_interface')\n except QnRK:\n raise _g91('Switch interfaces are not supported on this engine type: {}'.format(YKHO.type))",
"def Bt_4(YKHO):\n try:\n return L6R_(parent=YKHO.resource.vir... | [
"0.8009443",
"0.7318529",
"0.70994526",
"0.6891672",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
"0.68051744",
... | 0.835494 | 0 |
Whether IPSEC vpn is enabled on this VPN interface | def jErp(YKHO):
return YKHO.data.get('ipsec_vpn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUnH(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'fetch_vpn')",
"def KgIj(YKHO):\n U5bT = None\n try:\n dENF = YKHO.cfg['vpn_healthcheck_host']\n GGmw.gethostbyname(dENF)\n U5bT = True\n except KeyError:\n YKHO.logger.fatal('No healtcheck host found in config, check r... | [
"0.7170682",
"0.7116732",
"0.69685227",
"0.6764089",
"0.6661227",
"0.6661227",
"0.66533834",
"0.6629807",
"0.6524564",
"0.64019895",
"0.6338944",
"0.62875545",
"0.62769365",
"0.622274",
"0.6222498",
"0.6222498",
"0.6222498",
"0.62208444",
"0.62092197",
"0.6200688",
"0.6197707... | 0.6806175 | 3 |
Domain that this virtual engine is allocated in. 'Shared Domain' is is the default if no domain is specified. | def Fb1I(YKHO):
return cFlk.from_href(YKHO.data.get('allocated_domain_ref')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrIJ(YKHO):\n return 'Shared Domain' if not YKHO._params.get('domain') else YKHO._params.get('domain')",
"def zrIJ(YKHO):\n pass",
"def zrIJ(YKHO):\n try:\n return YKHO._domain\n except Exception as e:\n raise tTpl",
"def zrIJ(YKHO):\n return YKHO._domain",
"def zrIJ(YKHO):... | [
"0.7802996",
"0.70170367",
"0.6949689",
"0.6837636",
"0.6837636",
"0.67421013",
"0.67421013",
"0.6726593",
"0.6670702",
"0.6616183",
"0.6613976",
"0.6610183",
"0.6610183",
"0.65669197",
"0.65669197",
"0.65669197",
"0.65669197",
"0.65669197",
"0.65669197",
"0.65669197",
"0.656... | 0.0 | -1 |
Create a new user profile for the user | def sxXS():
print("\nBefore you can buy a ticket to this awesome event, you'll need to set up a user profile. For your reference, here is a list of our current users.\n")
s0TM()
print("\nTo set up your user account, we'll need some information from you.")
print('Note that you can not use an email addres... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.create(user=KAOR)",
"def sxXS(vC92, **B2fa):\n z39Z = BFpK(user=B2fa['user'])\n z39Z.save()",
"def euOS(YKHO):\n zR3h = BFpK.objects.create(user=YKHO, biography='')",
"def euOS():\n if Oa1e.user is not None or 'openid' not in... | [
"0.83922285",
"0.83881015",
"0.836429",
"0.82780355",
"0.81886655",
"0.81781787",
"0.8152395",
"0.8152395",
"0.8152395",
"0.8152395",
"0.8128472",
"0.8107599",
"0.81009114",
"0.80518",
"0.8044233",
"0.8044233",
"0.8031331",
"0.8021891",
"0.8021891",
"0.8008155",
"0.79990584",... | 0.76838315 | 50 |
Performs database connection using database settings from settings.py. Returns sqlalchemy engine instance | def WyYT():
return y2U9(rOmR(**gCuF.DATABASE)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WyYT():\n return y2U9(rOmR(**GPtr.DATABASE))",
"def WyYT():\n return y2U9(moDH)",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n ... | [
"0.8295809",
"0.8232581",
"0.8231285",
"0.8231285",
"0.8231285",
"0.8226739",
"0.8215341",
"0.8215341",
"0.8215341",
"0.8192084",
"0.81761605",
"0.8071752",
"0.80548257",
"0.8014236",
"0.7958357",
"0.78142715",
"0.78115153",
"0.7705587",
"0.7654095",
"0.7617551",
"0.7584356",... | 0.80813867 | 12 |
Returns all nodes among this route. | def Ziit(YKHO):
if YKHO.__nodes:
return YKHO.__nodes
Ziit = [YKHO.start]
for QZnA in YKHO.links[1:]:
Ziit.append(QZnA.start)
Ziit.append(YKHO.end)
YKHO.__nodes = Ziit
return YKHO.__nodes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qmh8(YKHO):\n return YKHO.nodes",
"def pi1E(Emd4):\n return cuiw.query(o7DN).all()",
"def Ziit(YKHO):\n return YKHO.nodes_list",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKH... | [
"0.8283809",
"0.76899594",
"0.76607877",
"0.7625875",
"0.7625875",
"0.7625875",
"0.7625875",
"0.7625875",
"0.7625875",
"0.7625875",
"0.7625875",
"0.76129466",
"0.76100254",
"0.76100254",
"0.7607345",
"0.76008856",
"0.76008856",
"0.76008856",
"0.7590657",
"0.7584642",
"0.75805... | 0.75679094 | 23 |
Returns the last node that we can reach from the start node. Returns None if there's no link in this route. | def Jwo1(YKHO):
if not YKHO.links:
return YKHO.start
return YKHO.links[len(YKHO.links) - 1].end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6kx(YKHO):\n try:\n return YKHO.visited[-1]\n except IndexError:\n return None",
"def P6Lr(YKHO):\n if YKHO.head is None:\n return None\n ycBG = YKHO.head\n while ycBG.nextNode is not None:\n ycBG = ycBG.nextNode\n return ycBG",
"def d8ps(YKHO, yKcO, Os4s):\n ... | [
"0.73152906",
"0.7219978",
"0.7015105",
"0.6832993",
"0.6640278",
"0.6619103",
"0.661671",
"0.66071284",
"0.659742",
"0.65591806",
"0.65190274",
"0.6502697",
"0.6494108",
"0.6484677",
"0.64713454",
"0.6352248",
"0.63082534",
"0.63017493",
"0.6298758",
"0.6249032",
"0.6230114"... | 0.7766508 | 0 |
Return a list of tokens from a given template_string. | def wr3U(YKHO):
n0_T = False
Aofo = []
for HkJz in atO4.split(YKHO.template_string):
Aofo.append(HkJz)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(KJWQ):\n n0_T = False\n Aofo = []\n for HkJz in atO4.split(KJWQ):\n if HkJz:\n Aofo.append((HkJz, n0_T))\n n0_T = not n0_T\n return Aofo",
"def gfiG(YKHO, bkSI):\n if not bkSI:\n return []\n bkSI = YKHO.MultiLineStrip.sub('', bkSI)\n bkSI = YKHO.Singl... | [
"0.7881044",
"0.7240423",
"0.722261",
"0.6931103",
"0.6841734",
"0.65817344",
"0.63708556",
"0.628723",
"0.62028325",
"0.61871",
"0.6155132",
"0.6132786",
"0.61027884",
"0.6090211",
"0.6085987",
"0.60789055",
"0.6073553",
"0.6069976",
"0.60567796",
"0.60563856",
"0.60563856",... | 0.7219487 | 3 |
Instrument start time (UTC). | def yKcO(YKHO):
return r0Kr(YKHO._inst['StartTime']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSV8(YKHO):\n raise NotImplementedError",
"def jSV8(YKHO):\n raise NotImplementedError",
"def SWox(YKHO):\n raise NotImplementedError()",
"def SWox(YKHO):\n return YKHO._start.strftime('%H:%M:%S')",
"def SWox(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_time')",
"def SWox(YKHO) -> str:... | [
"0.74907213",
"0.74907213",
"0.74529606",
"0.73790145",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794",
"0.73482794"... | 0.7238398 | 29 |
Takes an integer parameter and use it to determine the length of the returned string. Returns a randomly generated alphanumeric string | def srQZ(r7gd):
if r7gd > 0:
if r7gd > 15:
NeHc = range(r7gd * 2)
else:
NeHc = range(10)
v3v8 = list(vIwR.ascii_uppercase)
if dsE5:
print(NeHc)
print(v3v8)
tuKI.shuffle(NeHc)
tuKI.shuffle(v3v8)
if dsE5:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kPDB(u54L=10):\n return ''.join([tuKI.choice('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz') for YRbF in Ni9Y(0, u54L)])",
"def drFW(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)))",
"def eSJ8(u54L):\n return ''.join((tuKI.choice(v... | [
"0.8191631",
"0.8161477",
"0.8144845",
"0.8141425",
"0.8135349",
"0.8128996",
"0.81273365",
"0.81163526",
"0.8109385",
"0.80685765",
"0.8052869",
"0.8049608",
"0.8046602",
"0.80347425",
"0.8034218",
"0.80225766",
"0.80156344",
"0.8006712",
"0.79931515",
"0.797651",
"0.7972426... | 0.0 | -1 |
Test whether an object is iterable. | def GfZ5(YEnM: Any, uD8y: bool=False) -> bool:
return isinstance(YEnM, g760.abc.Iterable) and (uD8y or not isinstance(YEnM, str)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZ5(YEnM):\n return isinstance(YEnM, iu5r)",
"def GfZ5(YEnM):\n try:\n iter(YEnM)\n return True\n except TypeError:\n return False",
"def GfZ5(YEnM):\n try:\n iter(YEnM)\n except TypeError:\n return False\n else:\n return True",
"def GfZ5(YEnM)... | [
"0.8602243",
"0.85193145",
"0.85147905",
"0.8495803",
"0.84584206",
"0.8446892",
"0.842858",
"0.8408952",
"0.8403568",
"0.8365104",
"0.8363952",
"0.83604026",
"0.83501107",
"0.83153427",
"0.8306686",
"0.8306686",
"0.8257407",
"0.8202084",
"0.8178733",
"0.8160064",
"0.81328535... | 0.7765316 | 35 |
Initializes the ForwardCorrelationEvaluator class. | def FIMM(YKHO, aC0l, o3Uj, O9Bx, gniy, XT48, PRuE=False):
_AmT = aC0l.shape[1] // 2
YKHO.reference = aC0l[:, 0:_AmT] + 1j * aC0l[:, _AmT:]
YKHO.prediction = o3Uj[:, 0:_AmT] + 1j * o3Uj[:, _AmT:]
YKHO.mr_params = CkYf.de_normalize_mr_parameters(O9Bx, XT48)
YKHO.mr_params_prediction = CkYf.de_normaliz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O3k3(YKHO):\n if YKHO._running:\n raise RuntimeError('Already initialised.')\n YKHO._current = None\n YKHO._current_log_pdf = None\n YKHO._proposed = YKHO._x0\n YKHO._proposed.setflags(write=False)\n YKHO._iterations = 0\n YKHO._acceptance = 0\n YKHO._running = True",
"def FIMM... | [
"0.63694924",
"0.6147578",
"0.5867432",
"0.572505",
"0.56832784",
"0.5679215",
"0.56642413",
"0.5637477",
"0.5637477",
"0.5629797",
"0.55819",
"0.5579138",
"0.5543251",
"0.55232745",
"0.5511516",
"0.5507652",
"0.5500319",
"0.5496956",
"0.54836947",
"0.5482757",
"0.5480663",
... | 0.0 | -1 |
Return the directive trees in this category. | def SfJq(YKHO) -> E02c['DirectiveTree']:
xDcj = _aLO(zpvK.collection, service_id=YKHO._client.service_id)
xDcj.add_term(field='directive_tree_id', value=YKHO.id).limit(50)
return E02c(zpvK, xDcj, client=YKHO._client) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UbG3(YKHO):\n return nQ3j(children=[Z9rn for Z9rn in YKHO.children if isinstance(Z9rn, sJRU)])",
"async def directive_tree(YKHO, dixj: int=1, **B2fa: Any) -> x1iM[jElQ]:\n xUwc: wY1h[str] = 'characters_directive_tree'\n xDcj = _aLO(xUwc, service_id=YKHO._client.service_id, **B2fa)\n xDcj.add_term... | [
"0.73250794",
"0.6696468",
"0.665268",
"0.6583544",
"0.6581581",
"0.6469484",
"0.6330875",
"0.6297479",
"0.62907946",
"0.6235439",
"0.6235439",
"0.6207817",
"0.61776376",
"0.604796",
"0.6000412",
"0.596535",
"0.5949509",
"0.5930818",
"0.591226",
"0.5888909",
"0.5887007",
"0... | 0.7493742 | 0 |
Return the list of directive tiers in this category. | def hdkc(YKHO) -> E02c['DirectiveTier']:
xDcj = _aLO(YZLe.collection, service_id=YKHO._client.service_id)
xDcj.add_term(field='directive_tree_id', value=YKHO.id).limit(4)
return E02c(YZLe, xDcj, client=YKHO._client) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def directive_tier(YKHO, dixj: int=1, **B2fa: Any) -> x1iM[fZUQ]:\n xUwc: wY1h[str] = 'characters_directive_tier'\n xDcj = _aLO(xUwc, service_id=YKHO._client.service_id, **B2fa)\n xDcj.add_term(field=YKHO.id_field, value=YKHO.id)\n xDcj.limit(dixj)\n pB3N = await YKHO._client.request(xDcj)\n ... | [
"0.6393474",
"0.62682676",
"0.6156446",
"0.60017693",
"0.5765141",
"0.5562487",
"0.55475336",
"0.55296963",
"0.54716504",
"0.5426374",
"0.5404729",
"0.5385089",
"0.538472",
"0.5379427",
"0.5350833",
"0.53500336",
"0.5346928",
"0.53232354",
"0.53099585",
"0.52462494",
"0.52403... | 0.7504015 | 0 |
Return the rewards granted upon completion of this tier. | async def rewards(YKHO) -> x1iM[XYvR]:
if YKHO.reward_set_id is None:
return []
return await XYvR.get_by_reward_set(YKHO.reward_set_id, client=YKHO._client).flatten() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YZnT(YKHO):\n return {1: 0.0}",
"def vOGg(YKHO):\n return YKHO._reward",
"def xyVK(YKHO):\n if YKHO.reward is None:\n YKHO.reward = YKHO.all_rewards[tuple(YKHO.path)]\n return YKHO.reward",
"def TI0w(YKHO):\n pass",
"def nFcm(YKHO):\n return YKHO.reward",
"def vOGg(YKHO):\n ... | [
"0.6833259",
"0.6586582",
"0.65285736",
"0.65222764",
"0.6520247",
"0.6482874",
"0.6474197",
"0.6387417",
"0.6377328",
"0.63288605",
"0.63288605",
"0.63288605",
"0.63288605",
"0.63288605",
"0.6310789",
"0.6308581",
"0.6307601",
"0.62760717",
"0.6251474",
"0.62482613",
"0.6248... | 0.6221083 | 22 |
Quaternion from a transposed Rotation Matrix. | def KMMg(r8hN):
return oyIN.array([KMoI(WKvO) for WKvO in r8hN]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwH(A3Vt):\n vexM = ht2j.empty(4, dtype=A3Vt.dtype)\n A3Vt = ht2j.t(A3Vt)\n if A3Vt[2, 2] < 0:\n if A3Vt[0, 0] > A3Vt[1, 1]:\n a1PO = 1 + A3Vt[0, 0] - A3Vt[1, 1] - A3Vt[2, 2]\n vexM[:] = ht2j.tensor([A3Vt[1, 2] - A3Vt[2, 1], a1PO, A3Vt[0, 1] + A3Vt[1, 0], A3Vt[2, 0] + A3V... | [
"0.7478925",
"0.7421288",
"0.73288965",
"0.71509445",
"0.7088394",
"0.7088394",
"0.7046392",
"0.69712687",
"0.6956719",
"0.69527775",
"0.6905291",
"0.6877746",
"0.6875209",
"0.68389773",
"0.6779352",
"0.6767977",
"0.6750598",
"0.6747288",
"0.67426324",
"0.6728907",
"0.6702443... | 0.62225246 | 91 |
transposed Rotation matrix from Quaternion, multiple bodies at a time. | def weLV(vexM):
jzdc, Fg_i, Z9rn, Csk6 = (vexM[:, 0], vexM[:, 1], vexM[:, 2], vexM[:, 3])
D9cM = jzdc * jzdc
edvT = Fg_i * Fg_i
EqBn = Z9rn * Z9rn
I1iR = Csk6 * Csk6
bBVO = jzdc * Fg_i
_P6x = jzdc * Z9rn
LLmd = jzdc * Csk6
P9SZ = Fg_i * Z9rn
cuUy = Fg_i * Csk6
o1Kh = Z9rn * C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ceWJ(YKHO):\n WKvO, LVAh, epBp, yzQ0 = YKHO.q\n yjMy = 2 * WKvO * WKvO\n YvNL = 2 * LVAh * LVAh\n CyjD = 2 * epBp * epBp\n n8rh = 2 * WKvO * LVAh\n bxgg = 2 * yzQ0 * epBp\n gxoQ = 2 * epBp * WKvO\n xQlz = 2 * yzQ0 * LVAh\n meEN = 2 * LVAh * epBp\n tQe1 = 2 * yzQ0 * WKvO\n zNiy ... | [
"0.7148621",
"0.6776463",
"0.6774535",
"0.66410214",
"0.6615286",
"0.6540475",
"0.6520694",
"0.648327",
"0.64422655",
"0.6437752",
"0.6413465",
"0.63998055",
"0.6375024",
"0.63658327",
"0.63627",
"0.63515574",
"0.63504297",
"0.6337764",
"0.63172245",
"0.63088024",
"0.6303769"... | 0.0 | -1 |
Tests whether the given element is the root of the tree object. | def zEXx(U6D_: etree._Element) -> bool:
return U6D_ is U6D_.getroottree().getroot() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kFcs(YKHO, Q6kx: object) -> bool:\n if Q6kx == YKHO.root:\n return True\n else:\n return False",
"def K5QN(YKHO, Q6kx):\n return Q6kx.parent is YKHO.NIL",
"def Swep(YKHO):\n return YKHO.parent_node is None",
"def kFcs(YKHO):\n return YKHO.parentNode == None",
"def kFcs(YKHO... | [
"0.7795897",
"0.7667704",
"0.7561944",
"0.7484485",
"0.7447069",
"0.73931885",
"0.73496836",
"0.7339258",
"0.72834015",
"0.72068185",
"0.719467",
"0.719467",
"0.7192259",
"0.7191269",
"0.7177069",
"0.7175743",
"0.71747535",
"0.71727705",
"0.7131543",
"0.7131543",
"0.7120139",... | 0.8632343 | 0 |
Creates a new wallet in the database. | def HNyf(YKHO, Jow3, V22M, mWFP=None, aUGN=0):
eY3t = 'INSERT INTO Wallets (xprv, words, name, child)\n '
WB1o = f"VALUES('{Jow3}', {V22M}, '{mWFP}', {aUGN}) ;"
xDcj = eY3t + WB1o
return YKHO.execute(xDcj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dTuE(YKHO):\n _hkX = YKHO.call('wallet_create')\n return _hkX['wallet']",
"def AA6Z(YKHO, CBIr):\n return DqPV.objects.create(user=CBIr)",
"async def create_wallet(YKHO) -> 'IndyOpenWallet':\n if YKHO.auto_recreate:\n try:\n await YKHO.remove_wallet()\n except dYSI:\n ... | [
"0.793555",
"0.7370914",
"0.7367662",
"0.7222671",
"0.72205234",
"0.7185719",
"0.71746147",
"0.69750154",
"0.68656844",
"0.6828797",
"0.6819601",
"0.67287445",
"0.6656152",
"0.6593358",
"0.6578138",
"0.652724",
"0.65222657",
"0.6486316",
"0.64839965",
"0.6473823",
"0.63373125... | 0.637249 | 20 |
Checks that all the utxos are still spendable in the database. That is 'spent' = 0. It will return True if all of the utxos are spendable, or False if at least one of\ them is not. It would also print in the terminal which ones are not spendable. | def zYiz(YKHO, i37l):
aiRr = True
for e5Qp in i37l:
xDcj = f"SELECT spent FROM Utxos WHERE tx_id = '{e5Qp[0]}' AND out_index = '{e5Qp[1]}' "
Ylbp = YKHO.execute_w_res(xDcj)
try:
aiRr = aiRr and (not bool(Ylbp[0][0]))
if Ylbp[0][0] != 0:
print(f'utx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tf6A(uS8l=None):\n if uS8l == None:\n uS8l = tyeH()\n FtbO = uS8l.output_utxos[0]\n IopW, v9EN = FtbO.crawl()\n ewCu = 0\n for MGPT in v9EN:\n ewCu += 1\n if len(MGPT.output_utxos) == 0:\n raise J4Ap('Transaction {} has no outputs'.format(str(MGPT.internal_id)))\n... | [
"0.6313724",
"0.61758614",
"0.6116047",
"0.6110157",
"0.6040165",
"0.60356516",
"0.5969132",
"0.5909286",
"0.58368737",
"0.5830907",
"0.5805495",
"0.57967407",
"0.57521224",
"0.575209",
"0.5745408",
"0.57392144",
"0.5675058",
"0.5644547",
"0.5644547",
"0.5644547",
"0.5644547"... | 0.84487695 | 0 |
Searches the database for utxos that haven't been spent for the specific wallet. | def Q6Sy(YKHO, hGMD):
eY3t = f'SELECT Utxos.tx_id, Utxos.out_index, Utxos.amount, Addresses.path, Addresses.acc_index, Addresses.address,\n '
WB1o = f'Addresses.type \nFROM Utxos INNER JOIN Addresses \nON Utxos.address = Addresses.address\n'
VDaJ = f"WHERE Utxos.spent = 0 AND Addresses.wallet = '{hGMD}';"
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A9Za():\n DpUl = NCls.cursor()\n xDcj = '\\n select distinct i.wallet, outputs.wallet, outputs.satoshis, outputs.timest, outputs.txid\\n from (\\n select *\\n from txoutput\\n except \\n select o.*\\n from txoutput o, txinput i\\n wh... | [
"0.6318872",
"0.622325",
"0.610293",
"0.6093689",
"0.5945343",
"0.592764",
"0.5921538",
"0.5899565",
"0.5846983",
"0.58144873",
"0.56969756",
"0.5629462",
"0.5607247",
"0.5595666",
"0.5572751",
"0.5558306",
"0.5539715",
"0.550217",
"0.55002475",
"0.54862624",
"0.5461912",
"... | 0.7210366 | 0 |
Returns an INTEGER representing the highest index of the address in the specified account belonging to the specified wallet. If there is NO addresses under specified account, it will return None. | def BYEG(YKHO, ZrNc, hGMD):
xDcj = f"SELECT MAX(acc_index) FROM Addresses WHERE wallet='{hGMD}' AND path='{ZrNc}';"
return YKHO.execute_w_res(xDcj)[0][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2sv(YKHO, mWFP):\n xDcj = f\"SELECT MAX(acc_index) FROM CorporateAccount WHERE wallet_name='{mWFP}';\"\n return YKHO.execute_w_res(xDcj)",
"def jL7S(YKHO):\n return aM69.BNGetFunctionHighestAddress(YKHO.handle)",
"def y31D(YKHO):\n if YKHO._sorted_list:\n return YKHO._sorted_list[-1].ma... | [
"0.6544284",
"0.6251016",
"0.6127557",
"0.6112203",
"0.6112203",
"0.60889435",
"0.60057694",
"0.59796906",
"0.5933424",
"0.59241235",
"0.5838634",
"0.5752685",
"0.5728908",
"0.56780857",
"0.56636775",
"0.5619405",
"0.56170994",
"0.55307853",
"0.55284613",
"0.55081004",
"0.550... | 0.80643994 | 0 |
Draw a grid on the given surface. | def hbdl(YKHO, Jyyj):
YKHO.screen.fill(YKHO.field_color, Jyyj)
HN6s = Jyyj.height / YKHO.grid_size
co3n = Jyyj.width / YKHO.grid_size
for LVAh in range(HN6s + 1):
a9eO.draw.line(YKHO.screen, YKHO.grid_color, (Jyyj.left, Jyyj.top + LVAh * YKHO.grid_size - 1), (Jyyj.right - 1, Jyyj.top + LVAh * YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QMDT(YKHO, J20S):\n nggq = int(epAf.floor(YKHO.cam.x / YKHO.grid_interval)) * 100\n MDC1 = int(epAf.ceil(YKHO.cam.x + YKHO.view_rect.width))\n for WKvO in range(int(nggq - YKHO.cam.x), int(MDC1 - YKHO.cam.x), YKHO.grid_interval):\n S9ha = YKHO.view_rect.width - WKvO\n a9eO.draw.line(J20S... | [
"0.8202954",
"0.7835752",
"0.7823981",
"0.7724748",
"0.7695558",
"0.7608096",
"0.74158454",
"0.73996323",
"0.73405045",
"0.732478",
"0.7281184",
"0.72374356",
"0.7218932",
"0.7208391",
"0.71764284",
"0.71703595",
"0.7170319",
"0.71564615",
"0.71516365",
"0.71442324",
"0.71351... | 0.68622017 | 39 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Compute the loss by MSE. | def xBoL(LVAh, UShr, yzQ0):
ywwl = LVAh.shape[0]
tTpl = LVAh - UShr.dot(yzQ0)
ny2L = 1 / (2 * ywwl) * tTpl.T.dot(tTpl)
return ny2L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkHB(N77f, AIKr):\n return ((N77f - AIKr) ** 2).mean()",
"def IxVv(cWFu, tTpl):\n return tTpl.T @ tTpl / cWFu",
"def DroR(YKHO, LVAh):\n return Kt_s.mean(Kt_s.sqr(LVAh - YKHO.y_pred))",
"def K9sQ(EWWT):\n return oyIN.sqrt(2 * EWWT)",
"def IxVv(LVAh, UShr, yzQ0):\n tTpl = LVAh - UShr.dot(... | [
"0.81004775",
"0.80265903",
"0.79078275",
"0.78784597",
"0.7844823",
"0.77973646",
"0.77585447",
"0.77492493",
"0.77202183",
"0.77136135",
"0.77133197",
"0.7692573",
"0.76412714",
"0.7631541",
"0.76083976",
"0.760093",
"0.760093",
"0.75998795",
"0.7573635",
"0.75298685",
"0.7... | 0.73858076 | 27 |
Compute the loss by MSE. | def mf6R(LVAh, UShr, yzQ0):
kmMN = epAf.sqrt(2 * xBoL(LVAh, UShr, yzQ0))
return kmMN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkHB(N77f, AIKr):\n return ((N77f - AIKr) ** 2).mean()",
"def IxVv(cWFu, tTpl):\n return tTpl.T @ tTpl / cWFu",
"def DroR(YKHO, LVAh):\n return Kt_s.mean(Kt_s.sqr(LVAh - YKHO.y_pred))",
"def K9sQ(EWWT):\n return oyIN.sqrt(2 * EWWT)",
"def IxVv(LVAh, UShr, yzQ0):\n tTpl = LVAh - UShr.dot(... | [
"0.81004775",
"0.80265903",
"0.79078275",
"0.78784597",
"0.7844823",
"0.77973646",
"0.77585447",
"0.77492493",
"0.77202183",
"0.77136135",
"0.77133197",
"0.7692573",
"0.76412714",
"0.7631541",
"0.76083976",
"0.760093",
"0.760093",
"0.75998795",
"0.7573635",
"0.75298685",
"0.7... | 0.7262296 | 37 |
Show the plane on screen. | def nUHY(YKHO):
YKHO.draw.plane.show(YKHO.draw.window) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUHY(YKHO, KnxT):\n KnxT.blit(YKHO.image, YKHO.position)",
"def nUHY(YKHO):\n from mayavi import mlab\n YKHO.make_sphere()\n mlab.view(azimuth=YKHO.view[0], elevation=YKHO.view[1], distance=5)\n if YKHO.fig:\n mlab.show()",
"def nUHY(YKHO, VXOZ):\n pass",
"def nUHY(YKHO, J20S):\n... | [
"0.71661454",
"0.7161303",
"0.7081618",
"0.70790416",
"0.7052326",
"0.7021131",
"0.68489844",
"0.68352515",
"0.68322223",
"0.6817981",
"0.6784995",
"0.6770727",
"0.6731825",
"0.6725602",
"0.66933554",
"0.66931105",
"0.66931105",
"0.66826904",
"0.66710263",
"0.66702867",
"0.66... | 0.89479834 | 0 |
Transforms a message using the cipher, by calling self.transform_message | def mmG7(YKHO, Ol8d):
return YKHO.transform_message(QOe9, YKHO.cipher) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ys_7(YKHO, Ol8d, KUf6):\n CknD = ''\n for Z9rn in Ol8d:\n CknD = CknD + KUf6.get(Z9rn, Z9rn)\n return CknD",
"def SZFh(Ol8d, H5ew, hXK1):\n if hXK1:\n H5ew = -H5ew\n yYNc = ''\n for Z9rn in Ol8d:\n if Z9rn.isalpha():\n yYNc = yYNc + DkWr(Z9rn, H5ew)\n ... | [
"0.7797215",
"0.73810774",
"0.6958428",
"0.6865567",
"0.66230243",
"0.6545778",
"0.6469572",
"0.6339461",
"0.6283659",
"0.62632096",
"0.62395006",
"0.6200998",
"0.610671",
"0.607379",
"0.6066378",
"0.60105515",
"0.598572",
"0.5976178",
"0.59034663",
"0.5903065",
"0.58673996",... | 0.7280293 | 2 |
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter. | def cfQO(tvqc, QpfX):
print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId'])
"\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n "
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])... | [
"0.6919228",
"0.6762499",
"0.65828645",
"0.6490292",
"0.645727",
"0.637779",
"0.62864256",
"0.62710816",
"0.62686974",
"0.62461996",
"0.6219076",
"0.6215725",
"0.61949486",
"0.6179929",
"0.6152384",
"0.61419386",
"0.6133499",
"0.613178",
"0.60512537",
"0.6010108",
"0.59821844... | 0.5661301 | 52 |
Return nested Vividict in logs_xxx according to date_str | def rvBz(mbyn):
VGwp = mbyn.replace(':', '-').replace(' ', '-').split('-')
JTec = map(int, VGwp)
if len(VGwp) <= 3:
UtCB = Pusg(lambda jzdc, Fg_i: jzdc[Fg_i], JTec, ka96)
elif len(VGwp) <= 4:
UtCB = Pusg(lambda jzdc, Fg_i: jzdc[Fg_i], JTec, qPpD)
else:
UtCB = Pusg(lambda jzdc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ecgX(I3rc):\n YdD0 = []\n H_DC = {}\n for nfqd in I3rc:\n EdeD = ZbWC.search(rkXe, nfqd).group(1)\n if EdeD not in YdD0:\n YdD0.append(EdeD)\n H_DC[EdeD] = [nfqd]\n else:\n H_DC[EdeD].append(nfqd)\n YdD0.sort()\n print(YdD0)\n print(H_DC)\... | [
"0.6549074",
"0.56899434",
"0.5541875",
"0.55386555",
"0.553431",
"0.54698527",
"0.5397462",
"0.53897285",
"0.5371153",
"0.53347874",
"0.53033054",
"0.530308",
"0.52995056",
"0.52819",
"0.5264058",
"0.5255908",
"0.52326053",
"0.52269214",
"0.522474",
"0.5205942",
"0.520049",
... | 0.7617065 | 0 |
Return integer or float as UScurrencyformatted string. Ex. 1289 > "$1,289.00" and 75.98 > "$75.98" | def TJu8(Z5kt):
return '${:,.2f}'.format(Z5kt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KrB7(Xnuy):\n return f' ${Xnuy:,.2f}'",
"def YZ6I(BWXx):\n return f'£{BWXx:,.2f}'",
"def VIXL(vIwR):\n return epAf('{0:.2f}Lt'.format(vIwR))",
"def KrB7(Xnuy):\n Omb5 = float(Xnuy)\n return f'${Omb5:,.2f}'",
"def VIXL(wEf2: Union[int, float, Decimal], tv_E=False) -> str:\n BHGE = gCuF... | [
"0.70774907",
"0.69000936",
"0.6883427",
"0.68395346",
"0.68026704",
"0.6794794",
"0.6737895",
"0.6728746",
"0.6724986",
"0.6697528",
"0.6697528",
"0.6697528",
"0.6697528",
"0.6697528",
"0.6697528",
"0.6697528",
"0.6697528",
"0.6697528",
"0.6697528",
"0.6679897",
"0.66639906"... | 0.63368773 | 41 |
Computes the precision for the specified values of k | def vjyh(pw4I, pan_, hz5a=(1,)):
hlel = vuvg.softmax(pw4I, dim=1)
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Creates hex color code palette from a matplotlib colormap | def f5dd(iMGt, exwG=256):
MYQr = Bcwd.get_cmap(iMGt, exwG)
T6S7 = oyIN.linspace(0, 1, exwG)
tn62 = list(map(lambda WKvO: Jw9H.rgb2hex(MYQr(WKvO)[:3]), T6S7))
return tn62 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MYQr(wEf2, iMGt=Bcwd.rainbow):\n Mkmy, Oa1e, Fg_i = iMGt(wEf2)[:3]\n return Jw9H.rgb2hex((Mkmy, Oa1e, Fg_i))",
"def DHsy(iMGt, BWXx):\n RoGc = int(round(BWXx))\n d7Eb = iMGt(RoGc)[:3]\n ir4b = I8kJ.colors.rgb2hex(d7Eb)\n return ir4b",
"def tn62(fc4f):\n from matplotlib.colors import rg... | [
"0.7518564",
"0.7400603",
"0.7398103",
"0.7176878",
"0.6964395",
"0.69071",
"0.6845832",
"0.6787948",
"0.6748562",
"0.67298406",
"0.67298406",
"0.67247146",
"0.6712856",
"0.6711264",
"0.66972727",
"0.66900975",
"0.667652",
"0.66709834",
"0.6664627",
"0.66485864",
"0.66485864"... | 0.7197964 | 3 |
capture the contig and their length from a dictionary | def P1HY(jez2, GNp4):
if GNp4 in jez2.keys():
return jez2[GNp4]
else:
raise KeyError('ERROR: Contig name << {} >> NOT FOUND'.format(GNp4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GUif(WhGz):\n OAT1 = {}\n for aWuw in WhGz:\n u54L = len(aWuw)\n if OAT1.get(u54L, False):\n OAT1[u54L][aWuw] = WhGz[aWuw]\n else:\n OAT1[u54L] = {aWuw: WhGz[aWuw]}\n return OAT1",
"def tsWk(OOCw):\n return {xebs: len(OOCw[xebs].seq) for xebs in OOCw.key... | [
"0.69245946",
"0.6915346",
"0.6831328",
"0.6764276",
"0.6761532",
"0.67279196",
"0.66398525",
"0.6576948",
"0.65548164",
"0.6493724",
"0.6485612",
"0.6467668",
"0.63857275",
"0.635201",
"0.63466054",
"0.6332583",
"0.62988675",
"0.6272445",
"0.6261391",
"0.6259887",
"0.6216489... | 0.62969124 | 17 |
Function that that initializes cluster centroids for Kmeans | def uIcm(EcVT, G1Hx):
if type(EcVT) is not oyIN.ndarray or len(EcVT.shape) != 2:
return None
if type(G1Hx) is not int or G1Hx < 1:
return None
exwG, Csk6 = EcVT.shape
min = oyIN.amin(EcVT, axis=0)
max = oyIN.amax(EcVT, axis=0)
yHxN = oyIN.random.uniform(low=min, high=max, size=(G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rBJQ(YKHO):\n for YRbF in range(YKHO.n_of_clusters):\n if not YRbF:\n YKHO.centroids[YRbF] = tuKI.choice(YKHO.data)\n continue\n Y9lF = [epAf.pow(aFLv(WKvO, YKHO.centroids[:YRbF])[1], 2) for WKvO in YKHO.data]\n YKHO.centroids[YRbF] = tuKI.choices(population=YKHO.d... | [
"0.8399746",
"0.7996866",
"0.78028053",
"0.7712226",
"0.76614887",
"0.76025975",
"0.7599225",
"0.759735",
"0.75543654",
"0.7552039",
"0.7549051",
"0.75089586",
"0.7503293",
"0.74872494",
"0.74552566",
"0.74181855",
"0.74171",
"0.73982334",
"0.73933345",
"0.73862106",
"0.73826... | 0.7212776 | 29 |
Return the unique element which is both in A and in B. | def kPvu(k0lF, tjUW):
tjUW = list(tjUW)
aPd6 = [WKvO for WKvO in k0lF if WKvO in tjUW]
if len(aPd6) == 1:
return aPd6[0]
elif len(aPd6) < 1:
raise ValueError('%r and %r have empty intersection' % (k0lF, tjUW))
else:
raise ValueError('%r and %r have non-unique intersection %r'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cljO(jzdc, Fg_i):\n\n def yHH9(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))\n\n def by6d(jzdc, Fg_i):\n return list(set(jzdc) ^ set(Fg_i))\n WH_7 = by6d(jzdc, Fg_i)\n mTwa = yHH9(jzdc, WH_7)\n wnXl = yHH9(Fg_i, WH_7)\n return (mTwa, wnXl)",
"def J5xz(jzdc, Fg_i):\n Ylb... | [
"0.6814033",
"0.676042",
"0.64033127",
"0.62233293",
"0.62019485",
"0.6178199",
"0.6152941",
"0.60873014",
"0.60310715",
"0.5972568",
"0.5966565",
"0.59350324",
"0.5926811",
"0.59067106",
"0.5899871",
"0.5891889",
"0.58856666",
"0.5881772",
"0.5865116",
"0.58514875",
"0.58510... | 0.7234106 | 0 |
Get frame resolution This method is called by `BatchGenerator` instances to determine how target tensors should be built. Depending on the task and the architecture, the output of a model will have different resolution. The default behavior is to return `RESOLUTION_CHUNK` if the model returns just one output for the wh... | def OLDG(YKHO, D5gV: Task, **fcdb) -> x8Yc:
if D5gV.returns_sequence:
return YHVi
elif D5gV.returns_vector:
return H01Y
else:
tO9_ = f'{D5gV} tasks are not supported.'
raise NotImplementedError(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def creR(YKHO):\n if YKHO.WaitVideoOutputStable():\n return YKHO._rx.GetFrameResolution()\n else:\n raise hloT('Frame resolution not stable. Rx:%r, FPGA:%r', YKHO._rx.GetFrameResolution(), YKHO._frame_manager.ComputeResolution())",
"def creR(YKHO):\n YKHO.WaitVideoOutputStable()\n TVTK,... | [
"0.688444",
"0.68089193",
"0.6764466",
"0.6747631",
"0.6453358",
"0.6388915",
"0.62916714",
"0.6199458",
"0.61905533",
"0.6181269",
"0.6148968",
"0.6147168",
"0.60980856",
"0.60757506",
"0.60722035",
"0.60549754",
"0.6046276",
"0.6024777",
"0.6024777",
"0.6024777",
"0.597847"... | 0.6415734 | 5 |
Return stored inspection data. | def CNWu(**l633):
with open('./inspection_page.html') as B2Dn:
eHNT = B2Dn.read()
return (eHNT.encode(), 'utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def syxr(YKHO):\n return YKHO.stored_values",
"def yLtf(YKHO):\n return YKHO.storage.get()",
"def wIX3(YKHO):\n pass",
"def sa6V():\n nPrm = PTAc()\n k8wH.echo(nPrm)",
"def yLtf(YKHO):\n return YKHO.data",
"def yLtf(YKHO):\n return YKHO.dict",
"def yLtf(YKHO):\n return YKHO.__da... | [
"0.6762806",
"0.6738751",
"0.65853393",
"0.65083367",
"0.648329",
"0.64382607",
"0.6421365",
"0.6400103",
"0.6384298",
"0.638002",
"0.638002",
"0.63773483",
"0.6372237",
"0.6359493",
"0.63566643",
"0.63566643",
"0.63566643",
"0.63566643",
"0.63566643",
"0.63566643",
"0.635666... | 0.0 | -1 |