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 |
|---|---|---|---|---|---|---|
r"""pc_work_time_avg(randomsampler_sptr self) > float | def xBpj(YKHO) -> 'float':
return pZ_q.randomsampler_sptr_pc_work_time_avg(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xBpj(YKHO) -> 'float':\n return pZ_q.beamformer_sptr_pc_work_time_avg(YKHO)",
"def xBpj(YKHO) -> 'float':\n return pZ_q.phasedarray_sptr_pc_work_time_avg(YKHO)",
"def xBpj(YKHO) -> 'float':\n return pZ_q.doaesprit_sptr_pc_work_time_avg(YKHO)",
"def xBpj(YKHO):\n return tGN_.usrp_source_sptr_p... | [
"0.819452",
"0.79933697",
"0.7979681",
"0.74716705",
"0.74663895",
"0.74439305",
"0.7429747",
"0.7397048",
"0.7363024",
"0.73322797",
"0.732198",
"0.7310387",
"0.730075",
"0.7259512",
"0.72591794",
"0.72584355",
"0.7146232",
"0.7108129",
"0.7098413",
"0.70819485",
"0.7068522"... | 0.869549 | 0 |
r"""pc_throughput_avg(randomsampler_sptr self) > float | def CdYn(YKHO) -> 'float':
return pZ_q.randomsampler_sptr_pc_throughput_avg(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CdYn(YKHO) -> 'float':\n return pZ_q.beamformer_sptr_pc_throughput_avg(YKHO)",
"def CdYn(YKHO) -> 'float':\n return pZ_q.doaesprit_sptr_pc_throughput_avg(YKHO)",
"def CdYn(YKHO) -> 'float':\n return pZ_q.phasedarray_sptr_pc_throughput_avg(YKHO)",
"def V9br(YKHO) -> 'float':\n return pZ_q.rand... | [
"0.7972623",
"0.7756988",
"0.7735128",
"0.7093949",
"0.7036483",
"0.6978328",
"0.68995243",
"0.68768096",
"0.6874852",
"0.68282914",
"0.6814054",
"0.6794002",
"0.6752893",
"0.6712535",
"0.66841036",
"0.6668931",
"0.6590327",
"0.658475",
"0.6579107",
"0.65499014",
"0.6546117",... | 0.8469719 | 0 |
r"""message_ports_out(randomsampler_sptr self) > swig_pmt_ptr | def DOji(YKHO) -> 'pmt::pmt_t':
return pZ_q.randomsampler_sptr_message_ports_out(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DOji(YKHO) -> 'pmt::pmt_t':\n return pZ_q.doaesprit_sptr_message_ports_out(YKHO)",
"def DOji(YKHO) -> 'pmt::pmt_t':\n return pZ_q.beamformer_sptr_message_ports_out(YKHO)",
"def DOji(YKHO) -> 'pmt::pmt_t':\n return pZ_q.phasedarray_sptr_message_ports_out(YKHO)",
"def DOji(YKHO):\n return QGRL.... | [
"0.7828717",
"0.7714449",
"0.7631163",
"0.74229515",
"0.73827976",
"0.726553",
"0.7235539",
"0.7193533",
"0.7183756",
"0.7157526",
"0.7148849",
"0.710894",
"0.70927835",
"0.7074927",
"0.70585597",
"0.70409185",
"0.7029286",
"0.69865817",
"0.69438195",
"0.6911576",
"0.68381834... | 0.86127365 | 0 |
Get the length of the dataset | def szAg(YKHO):
u54L = len(YKHO.data) - 2 * YKHO.skip_window
return u54L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return YKHO.dataset.shape[0]",
"def szAg(YKHO):\n return YKHO._dataset.size(dirs=YKHO._dirs)",
"def szAg(YKHO):\n return len(YKHO.dataset)",
"def szAg(YKHO):\n return YKHO.data.num_samples",
"def szAg(YKHO):\n return min(len(YKHO.dataset), YKHO.opt.max_dataset_size)",
"de... | [
"0.84423757",
"0.8413128",
"0.83421916",
"0.82973254",
"0.8207219",
"0.81764525",
"0.81082726",
"0.8073012",
"0.80676347",
"0.80647767",
"0.8061671",
"0.8061671",
"0.8061671",
"0.8057673",
"0.8030924",
"0.7995581",
"0.7990975",
"0.79832274",
"0.79832274",
"0.79832274",
"0.798... | 0.82494926 | 4 |
Return the URL path without GET parameters. Removes the trailing slash if there is one. | def Eroi(YKHO):
pmON = jKi7.moves.urllib.parse.urlparse(YKHO.path).path
if pmON.endswith('/'):
return pmON[:-1]
else:
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eroi(YKHO):\n pmON = KVWQ.urlparse(YKHO.path).path\n if pmON.endswith('/'):\n return pmON[:-1]\n else:\n return pmON",
"def afPa(pmON):\n return pmON.split('/')[0]",
"def jXPH(YKHO):\n return YKHO.path.replace('/', '')",
"def hB1x(YKHO, QePW):\n ddn9 = QePW.get_full_path()... | [
"0.7569803",
"0.7356835",
"0.72801304",
"0.6873437",
"0.6775136",
"0.6712719",
"0.6670214",
"0.64691347",
"0.64686984",
"0.64268315",
"0.63855267",
"0.63347805",
"0.63065624",
"0.63022286",
"0.63006824",
"0.6228363",
"0.61978376",
"0.6174845",
"0.6172871",
"0.61670554",
"0.61... | 0.7435135 | 1 |
Test retrieving a list of ingredients | def zIQx(YKHO):
hWqz.objects.create(user=YKHO.user, name='Kale')
hWqz.objects.create(user=YKHO.user, name='Carrot')
Ylbp = YKHO.client.get(zAZy)
zKHR = hWqz.objects.all().order_by('-name')
ZMzz = UCjM(zKHR, many=True)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(Ylbp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fCJn(YKHO):\n _baS.objects.create(user=YKHO.user, name='Potato')\n _baS.objects.create(user=YKHO.user, name='Salt')\n geh0 = YKHO.client.get(ZrLe)\n zKHR = _baS.objects.all().order_by('-name')\n ZMzz = UCjM(zKHR, many=True)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.asse... | [
"0.81821436",
"0.81327397",
"0.8122187",
"0.80485064",
"0.7958878",
"0.79069877",
"0.7906716",
"0.77825475",
"0.7762671",
"0.7657054",
"0.73742056",
"0.73425686",
"0.73395693",
"0.7306794",
"0.729159",
"0.7264492",
"0.72321564",
"0.7187532",
"0.713832",
"0.7133489",
"0.712752... | 0.82356113 | 0 |
test that only ingredients for the authenticated user are returned | def xDFI(YKHO):
uDCI = egNl().objects.create_user('zohaib@123.com', 'zohaib123')
hWqz.objects.create(user=uDCI, name='Vinegar')
uBMr = hWqz.objects.create(user=YKHO.user, name='Turmeric')
Ylbp = YKHO.client.get(zAZy)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(len(Ylbp.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XVKx(YKHO):\n geh0 = YKHO.client.get(Y4Cy)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)",
"def PMwr(YKHO):\n Vt89 = {'email': 'newuser@gmail.com', 'password': 'Testpass34'}\n Q5YQ = egNl().objects.create_user(**Vt89)\n _baS.objects.create(user=Q5YQ, name='Vinegar')\n uBM... | [
"0.7983234",
"0.7935168",
"0.7769101",
"0.7721603",
"0.7590096",
"0.7536502",
"0.73960096",
"0.73218113",
"0.7297385",
"0.7245279",
"0.72398764",
"0.7184505",
"0.71703583",
"0.71263367",
"0.7112988",
"0.709982",
"0.70998126",
"0.70788497",
"0.7043391",
"0.7025247",
"0.7020587... | 0.7647475 | 4 |
test that a invalid ingredient fails | def KoKs(YKHO):
pB3N = {'name': ''}
Ylbp = YKHO.client.post(zAZy, pB3N)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KoKs(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ZrLe, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def KoKs(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ZrLe, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def KoK... | [
"0.7598517",
"0.7537379",
"0.7478667",
"0.7314315",
"0.7013902",
"0.6971008",
"0.6907249",
"0.66922617",
"0.6649067",
"0.6575912",
"0.65405315",
"0.64642555",
"0.644424",
"0.64380974",
"0.63848114",
"0.6326494",
"0.632599",
"0.62801594",
"0.62690735",
"0.6251324",
"0.6218282"... | 0.7524117 | 2 |
test filtering ingredients assigned to recipes | def b8t5(YKHO):
KZtG = hWqz.objects.create(user=YKHO.user, name='Breakfast')
ciPx = hWqz.objects.create(user=YKHO.user, name='Dinner')
YSCM = LC16.objects.create(title='biryani', time_minutes=30, price=250, user=YKHO.user)
YSCM.ingredients.add(KZtG)
Ylbp = YKHO.client.get(zAZy, {'assigned_only': 1})... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XL_F(YKHO):\n pass",
"def uq0I(YKHO):\n GTTc = VHaa(YKHO.user, title='Waxy box')\n eowF = VHaa(YKHO.user, title='Waxy noodle beans')\n KZtG = wm3X(YKHO.user, name='box')\n ciPx = wm3X(YKHO.user, name='Wet noodle')\n GTTc.ingredients.add(KZtG)\n eowF.ingredients.add(ciPx)\n gGwe = VHaa... | [
"0.8489296",
"0.82127094",
"0.82007277",
"0.8110339",
"0.80544484",
"0.7994452",
"0.7825007",
"0.7818962",
"0.7710148",
"0.7430049",
"0.742214",
"0.74124473",
"0.7401191",
"0.73281574",
"0.7291974",
"0.72561693",
"0.7212767",
"0.6992358",
"0.6955232",
"0.69534856",
"0.6913464... | 0.66473436 | 43 |
Return unique ingredients assigned to recipes | def J9ww(YKHO):
uBMr = hWqz.objects.create(user=YKHO.user, name='supper')
hWqz.objects.create(user=YKHO.user, name='meetha')
GTTc = LC16.objects.create(title='aloo matar', time_minutes=15, price=50, user=YKHO.user)
GTTc.ingredients.add(uBMr)
eowF = LC16.objects.create(title='burger', time_minutes='1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e07s(YKHO):\n YwbY = _baS.objects.create(user=YKHO.user, name='Eggs')\n _baS.objects.create(user=YKHO.user, name='Lentils')\n GTTc = LC16.objects.create(title='Eggs Benedict', time_minutes=60, price=ZjSO('7.00'), user=YKHO.user)\n eowF = LC16.objects.create(title='Herb Eggs', time_minutes=20, price... | [
"0.66768235",
"0.6618776",
"0.659632",
"0.65622914",
"0.6519944",
"0.65160143",
"0.6397091",
"0.6236369",
"0.6219199",
"0.6202294",
"0.6181134",
"0.61147386",
"0.61017096",
"0.60780233",
"0.606943",
"0.6012362",
"0.5992329",
"0.5989785",
"0.5978149",
"0.5960314",
"0.5951353",... | 0.67642385 | 0 |
Open a file and return a list that contains every line fileName The file's name return a list that contains every line | def W7Qh(uRP3):
with open(uRP3, 'r') as x6A0:
Nqlg = x6A0.readlines()
YRbF = 0
for zFiD in Nqlg:
Nqlg[YRbF] = zFiD.rstrip()
YRbF += 1
return Nqlg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nwr9(gIsw):\n try:\n with open(gIsw, mode='r') as nUeQ:\n Nqlg = nUeQ.readlines()\n except OSError:\n print('file', gIsw, 'not found.')\n J3Ut = []\n for zFiD in Nqlg:\n J3Ut.append(zFiD)\n return J3Ut",
"def HbNy(IznC):\n return []",
"def OcVp(Ux0P):\n ... | [
"0.77080405",
"0.76158893",
"0.76098645",
"0.75761116",
"0.757366",
"0.75579274",
"0.752743",
"0.7460342",
"0.7454724",
"0.7397872",
"0.73758143",
"0.73436236",
"0.733525",
"0.7308504",
"0.73002225",
"0.72601277",
"0.72414505",
"0.7224228",
"0.72173065",
"0.7216526",
"0.72163... | 0.66385037 | 82 |
Adds a chunk or token to this chunk and adjusts probability | def DkWr(YKHO, C6MJ):
YKHO.append(C6MJ)
YKHO.leaves.extend(C6MJ.leaves)
YKHO.probability *= YKHO.graph.ftp(YKHO[-2], YKHO[-1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, Vjik, yDCQ):\n if yDCQ is not None:\n YKHO.next_word_prob += yDCQ\n else:\n YKHO.missing_next_words += 1\n YKHO.log_prob += Vjik\n YKHO.count += 1",
"def LJ0R(q7V9, sum):\n JxU2 = q7V9[2] / sum\n q7V9.append(JxU2)\n return JxU2",
"def efuE(YKHO, Z5kt):\n YKH... | [
"0.61657655",
"0.5901155",
"0.58448327",
"0.58124214",
"0.57316417",
"0.5720301",
"0.56943583",
"0.5689846",
"0.560087",
"0.5480089",
"0.5442933",
"0.5429661",
"0.542558",
"0.5420136",
"0.53779924",
"0.5360858",
"0.5335219",
"0.5315083",
"0.5299476",
"0.52497166",
"0.52471364... | 0.6788141 | 0 |
Returns the homepage with Prediction App | def d6pt():
if QePW.method == 'GET':
return TvZl('index.html')
if QePW.method == 'POST':
Ol8d = QePW.form['text']
BgsX = VOOV.transform([Ol8d])
geJW = LmeA.transform(BgsX)
o3Uj = FcbO.predict(geJW)
return TvZl('index.html', output_prediction=o3Uj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return {'sample': 'ADAL'}",
"def kZiy():\n jcpb = {'description': 'Shows API info', 'message': 'Welcome to the lung cancer prediction API!', 'links': {vRyL: '{}{}/predict/'.format(QePW.url_root, vRyL) for vRyL in J5DD.keys()}}\n return pz3A(**jcpb)",
"def d6pt():\n geh0.view_title = w... | [
"0.7125719",
"0.68271434",
"0.66068983",
"0.6556316",
"0.65030706",
"0.63958687",
"0.6378712",
"0.6356087",
"0.63013655",
"0.62938625",
"0.6240054",
"0.6235036",
"0.62141615",
"0.6201637",
"0.6197204",
"0.6194072",
"0.61766964",
"0.6167475",
"0.61465204",
"0.6138583",
"0.6125... | 0.0 | -1 |
Prints a confusion matrix, as returned by sklearn.metrics.confusion_matrix, as a heatmap. Copied from shaypal5/confusion_matrix_pretty_print.py Arguments | def o3Oc(YsYU, tGDF, wytA=(6, 5), GAJY=14, aNZO=None):
bOjG = rLdf.DataFrame(YsYU, index=tGDF, columns=tGDF)
try:
Y4Ek = uuEx.heatmap(bOjG, annot=True, fmt='d', ax=aNZO)
except ValueError:
raise ValueError('Confusion matrix values must be integers.')
Y4Ek.yaxis.set_ticklabels(Y4Ek.yaxis.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3Oc(YsYU, tGDF, wytA=(10, 7), GAJY=18):\n bOjG = rLdf.DataFrame(YsYU, index=tGDF, columns=tGDF)\n LZpg = QrM1.figure(figsize=wytA)\n try:\n Y4Ek = uuEx.heatmap(bOjG, annot=True, fmt='d')\n except ValueError:\n raise ValueError('Confusion matrix values must be integers.')\n Y4Ek.ya... | [
"0.7898571",
"0.7793822",
"0.77306074",
"0.7428488",
"0.74149287",
"0.7412434",
"0.74077916",
"0.7379348",
"0.7349677",
"0.7340264",
"0.73377484",
"0.73282045",
"0.73157954",
"0.7277395",
"0.7247814",
"0.72342205",
"0.7223866",
"0.71231157",
"0.7104451",
"0.7101292",
"0.70995... | 0.791539 | 0 |
Return information on the currently authenticated user. | def NMoC(YKHO):
CBIr = W84Y()
if CBIr is None:
QpfX = {'authenticated': False}
else:
QpfX = {'authenticated': True, 'user': CBIr}
return YKHO.respond(QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()",
"def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()",
"def l1bi():\n return c5ow",
"def VCCg(YKHO):\n geh0 = YKHO.query('user_info')\n return geh0",
"def FpOe(YKHO):\n return YKHO._userinfo",
"def CBIr(YKHO):\n return Y... | [
"0.8996944",
"0.88541836",
"0.86177224",
"0.8052399",
"0.80238336",
"0.79787093",
"0.79775614",
"0.79148436",
"0.7891504",
"0.7891504",
"0.7891504",
"0.7870922",
"0.7870922",
"0.7853573",
"0.78505516",
"0.78195286",
"0.7787011",
"0.77767545",
"0.7760793",
"0.7760793",
"0.7760... | 0.7310006 | 64 |
Calculates cross entropy loss given outputs and actual labels H(y,p) = sum (yi pi ) of ith element | def qN0O(o4Jx, Crrw):
r8hN = Crrw.shape[0]
XP5J = o4Jx
d_oh = -1 * ht2j.log(XP5J[range(r8hN), Crrw])
N77f = ht2j.sum(d_oh) / r8hN
return N77f.item() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GT2U(o4Jx, Crrw):\n return U78l.CrossEntropyLoss()(o4Jx, Crrw)",
"def CqbS(cgmM, XP5J):\n pass",
"def cV77(YKHO, hlel, WlfR):\n return -oyIN.sum(oyIN.log(oyIN.clip(hlel, a_min=1e-12, a_max=1.0))[oyIN.arange(WlfR.shape[0]), WlfR[:, 1]])",
"def CqbS(ZxJs, LVAh):\n from numpy import log, sum\n ... | [
"0.74303067",
"0.7302722",
"0.7161997",
"0.69579995",
"0.69436926",
"0.69339913",
"0.69221777",
"0.69097567",
"0.6877698",
"0.6850627",
"0.68459946",
"0.6840756",
"0.6833279",
"0.68200505",
"0.6784105",
"0.6729272",
"0.67002386",
"0.6694645",
"0.66407114",
"0.66379136",
"0.66... | 0.7586763 | 0 |
distance from addr1 to addr2 | def Br5Q(uMy7, kamn):
aoN8 = th58.directions(uMy7, kamn, mode='transit', alternatives=True)
P6Dd, n4mz = TKGt(map(A8lp, aoN8), key=lambda WKvO: WKvO[0])
return P6Dd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oysP(cntZ: Waypoint, CsFy: Waypoint) -> int:\n return int(Ayfi.vincenty(cntZ.coords(), CsFy.coords()).m)",
"def zG70(EBgd, HpuQ):\n return ((EBgd[0] - HpuQ[0]) ** 2 + (EBgd[1] - HpuQ[1]) ** 2) ** 0.5",
"def D0Sn(gwqK, yCTS):\n return ((gwqK[0] - yCTS[0]) ** 2 + (gwqK[1] - yCTS[1]) ** 2) ** 0.5",
... | [
"0.7574909",
"0.73816645",
"0.7379554",
"0.7366871",
"0.7343477",
"0.72559667",
"0.7239375",
"0.72180367",
"0.7180008",
"0.71723133",
"0.7168197",
"0.7144822",
"0.7144243",
"0.7138608",
"0.7137172",
"0.7135325",
"0.71287453",
"0.7112026",
"0.7111372",
"0.70920277",
"0.7084905... | 0.0 | -1 |
Safely convert a numpy object to a native Python object. | def Vlji(mLGw):
try:
return mLGw.item()
except:
return mLGw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cSwS(LVAh):\n if LVAh is None:\n return None\n elif isinstance(LVAh, oyIN.ndarray):\n return oyIN.copy(LVAh)\n elif hasattr(LVAh, 'as_matrix'):\n return LVAh.as_matrix()\n elif hasattr(LVAh, 'tolist'):\n return LVAh.tolist()\n elif GfZ5(LVAh):\n return oyIN.asa... | [
"0.68060005",
"0.6759711",
"0.66854477",
"0.6684974",
"0.66808546",
"0.66229916",
"0.6609831",
"0.65294206",
"0.6499336",
"0.63046765",
"0.62868476",
"0.62856424",
"0.62640184",
"0.62478054",
"0.6231097",
"0.6189763",
"0.6158594",
"0.61520326",
"0.61387646",
"0.61322904",
"0.... | 0.7465645 | 0 |
Safely convert a list of numpy objects to a list of native Python objects. | def DkOl(xl4Y):
U5bT = []
for wEf2 in xl4Y:
U5bT.append(Vlji(wEf2))
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTDd(jzdc: List[tvm.nd.NDArray]) -> x1iM[oyIN.ndarray]:\n assert jzdc is not None, 'Empty result cannot be converted to numpy'\n return [WKvO.numpy() for WKvO in jzdc]",
"def YJmE(CCtC: typing.List[typing.Any]) -> laHg.Any:\n ...",
"def Ntyy(YEnM):\n YEnM = g93D(YEnM)\n return Jyjn().apply(Y... | [
"0.7231061",
"0.69225746",
"0.68102664",
"0.66078967",
"0.6574941",
"0.6477651",
"0.64680487",
"0.64542013",
"0.64408994",
"0.6436163",
"0.64231783",
"0.637175",
"0.6303386",
"0.627638",
"0.626605",
"0.62210727",
"0.61720973",
"0.6158665",
"0.6143415",
"0.61379313",
"0.612423... | 0.8167077 | 0 |
Check if the string is convertible into a list of integers. >>> str_to_index_list("2") [2] >>> str_to_index_list("25") [2,3,4,5] >>> str_to_index_list("2,5") [2,5] | def Iej2(Sg1P):
if Crwc(Sg1P):
oMB_ = []
if ',' in Sg1P:
Sg1P = Sg1P.split(',')
for d6pt in Sg1P:
oMB_.append(int(d6pt))
elif '-' in Sg1P:
Sg1P = Sg1P.split('-')
if len(Sg1P) == 2:
yKcO = int(Sg1P[0])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxAj(pKvt, i5tl, _7i2=True):\n if type(pKvt) is str:\n pKvt = pKvt.strip().split()\n DNs0 = []\n for YRbF, mLGw in enumerate(pKvt):\n if type(mLGw) is str:\n Pc6G = pZDR(mLGw, i5tl)\n if Pc6G is None:\n return None\n DNs0.extend(Pc6G)\n ... | [
"0.6767763",
"0.6612497",
"0.66099393",
"0.6500024",
"0.6436266",
"0.6333134",
"0.6320149",
"0.6223905",
"0.6202966",
"0.6179651",
"0.6123737",
"0.611956",
"0.60869366",
"0.60375935",
"0.6003453",
"0.6001818",
"0.5973063",
"0.58821154",
"0.58726513",
"0.58687925",
"0.5860723"... | 0.7964557 | 0 |
Home page for the Logs Application | def d6pt():
LCet = iPqB.modules[yR_P].name_nice
geh0.title = LCet
return dict(module_name=LCet) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sYMZ():\n return TvZl('home_log.html')",
"def kZiy():\n return TvZl('index.html', title='Automation Center', year=qcWV.now().year, message='Welcome to the Automation Center')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def d6pt():\n geh0.view_title =... | [
"0.80109966",
"0.7650564",
"0.7421092",
"0.7319061",
"0.7249694",
"0.72198117",
"0.72000474",
"0.71845454",
"0.71417964",
"0.7139234",
"0.7139234",
"0.7139234",
"0.7139234",
"0.7139234",
"0.7139234",
"0.7139234",
"0.7139234",
"0.7139234",
"0.7139234",
"0.7101338",
"0.7070188"... | 0.0 | -1 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def kj9G(YKHO):
QrM1.imshow(YKHO.cm, interpolation='nearest', cmap=YKHO.cmap)
QrM1.title(YKHO.title)
QrM1.colorbar()
wIWT = oyIN.arange(len(YKHO.classes))
QrM1.xticks(wIWT, YKHO.classes, rotation=45)
QrM1.yticks(wIWT, YKHO.classes)
if YKHO.normalize:
YKHO.cm = YKHO.cm.astype('float')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.7813563 | 100 |
Returns the id (key into INSTALLERS) of a currently running job, or the empty string if nothing is running. | def HX9S(YKHO, QePW):
e7m7.info('updater/installer/running invoked with:')
_oWe = CgYo.PrettyPrinter(indent=4)
aevO = _oWe.pformat(QePW.options).split('\n')
for KCHu in aevO:
e7m7.info(' << %s' % KCHu)
Aofo = YKHO.__which_job_is_running()
e7m7.info('updater/installer/running returns:')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjee(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'job_id')",
"def OEYZ(YKHO):\n return YKHO.get_db('jobid')",
"def aJ_O(YKHO):\n return YKHO.__nupicJobID",
"def l_ss(YKHO) -> str:\n return YKHO.split_name[2][3:]",
"def u0gG(YKHO):\n v0ak._ShREEKConfig.jobId()",
"def rjee(YKHO):\... | [
"0.7533059",
"0.7139468",
"0.70201653",
"0.7000013",
"0.6990591",
"0.69855917",
"0.6935694",
"0.6872265",
"0.6815007",
"0.6712475",
"0.66775584",
"0.66775584",
"0.6632081",
"0.6631947",
"0.65886784",
"0.6482588",
"0.6478849",
"0.64566797",
"0.6449152",
"0.64211065",
"0.640486... | 0.0 | -1 |
Return normalized 3D vector v. | def NkkI(Ty9i):
nUPH = epAf.sqrt(Ty9i[0] * Ty9i[0] + Ty9i[1] * Ty9i[1] + Ty9i[2] * Ty9i[2])
return [Ty9i[0] / nUPH, Ty9i[1] / nUPH, Ty9i[2] / nUPH] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(Ty9i):\n return Ty9i / oyIN.linalg.norm(Ty9i)",
"def NkkI(Ty9i):\n return oyIN.array(Ty9i) / oyIN.linalg.norm(Ty9i)",
"def HBfW(Ty9i):\n CkYf = oyIN.linalg.norm(Ty9i)\n if CkYf:\n return oyIN.array(Ty9i) / CkYf\n else:\n return Ty9i",
"def mhAC(YKHO, P6bq, Ty9i):\n Ao... | [
"0.7715632",
"0.7643061",
"0.7623499",
"0.7571536",
"0.74554205",
"0.74356395",
"0.74290925",
"0.7410868",
"0.73637825",
"0.7269433",
"0.7244467",
"0.71008205",
"0.69852144",
"0.6970036",
"0.6957438",
"0.6952184",
"0.6891339",
"0.6886572",
"0.6885978",
"0.68787456",
"0.684851... | 0.69622445 | 14 |
Compute the dot product of 3D vectors v1 and v2. | def X6_J(hQHm, jlSq):
MxXY = NkkI(hQHm)
cWFu = NkkI(jlSq)
return MxXY[0] * cWFu[0] + MxXY[1] * cWFu[1] + MxXY[2] * cWFu[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QLUs(hQHm, jlSq):\n return hQHm.x * jlSq.x + hQHm.y * jlSq.y + hQHm.z * jlSq.z",
"def yYJc(hQHm, jlSq):\n return oyIN.dot(hQHm, jlSq)",
"def X6_J(hQHm, jlSq):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(hQHm, jlSq)))",
"def uYbU(hQHm, jlSq):\n return hQHm[0] * jlSq[0] + hQHm[1] * jlSq[1] ... | [
"0.8668296",
"0.82768786",
"0.82056874",
"0.8180481",
"0.8127203",
"0.79950523",
"0.79904526",
"0.7964766",
"0.7963095",
"0.7930401",
"0.78257865",
"0.78153247",
"0.78011787",
"0.7795902",
"0.77713406",
"0.7722211",
"0.77053225",
"0.76747084",
"0.76537526",
"0.74949473",
"0.7... | 0.8580574 | 1 |
Return if the target object lies on the sight line. The sight line is defined by the origin point and sightVector. hitError specifies the difference errors in meters that can be considered as an hit. | def UZ_k(YKHO, hLRM, f3mm, Vngc):
Ayfi = [0, 0, 0]
for YRbF in range(0, 3):
Ayfi[YRbF] = YKHO.translation[YRbF] - hLRM[YRbF]
hQHm = NkkI(Ayfi)
jlSq = NkkI(f3mm)
return abs(hQHm[0] - jlSq[0]) < Vngc and abs(hQHm[1] - jlSq[1]) < Vngc and (abs(hQHm[2] - jlSq[2]) < Vngc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def utu3(nYVo, d03c, Ty9i, pan_, VuWc):\n gZcO = zog1(Ty9i)\n HGCR = (pan_[0] - nYVo[0], pan_[1] - nYVo[1])\n xQZl = zog1(HGCR)\n XP5J = bNKA(HGCR, Ty9i)\n aCsE = zog1(XP5J)\n if aCsE > gZcO:\n Z9rn = (gZcO ** 2 + xQZl ** 2 - 2 * JcZy(Ty9i, HGCR)) ** 0.5\n return Z9rn <= d03c + VuWc... | [
"0.6089051",
"0.5939454",
"0.5794178",
"0.57745093",
"0.57270354",
"0.5688043",
"0.55599463",
"0.5549703",
"0.5537237",
"0.5477546",
"0.5445187",
"0.54415226",
"0.53982365",
"0.53396297",
"0.532616",
"0.5307961",
"0.53038573",
"0.5300042",
"0.5281481",
"0.52666754",
"0.526546... | 0.77789605 | 0 |
Parse and return Places with their respective opening hours | def Pffs() -> (hxoQ, x1iM[int]):
jQ3Z = rLdf.read_csv('data/chefmozhours4.csv', encoding='utf-8')
jQ3Z.placeID = jQ3Z.placeID.astype(int)
jQ3Z.drop_duplicates(subset=jQ3Z.columns, keep='first', inplace=True)
ZLJ_ = ['placeID', 'hours_week', 'hours_sat', 'hours_sun']
lmpc = hxoQ(columns=['placeID', '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nvWN(SsWt, H5ew=sNIr):\n NArs = {'placeid': SsWt, 'key': H5ew}\n try:\n Ylbp = G4JS.get(Ysab, params=NArs, verify=False)\n Ylbp.raise_for_status()\n Ylbp = Ylbp.json()['result']['opening_hours']\n except (AttributeError, KeyError):\n return {}\n except:\n raise IO... | [
"0.70478946",
"0.67781734",
"0.6620414",
"0.6104398",
"0.58724344",
"0.5665652",
"0.5486499",
"0.5278421",
"0.5268686",
"0.5264674",
"0.52613574",
"0.52210957",
"0.5196722",
"0.5186993",
"0.5176113",
"0.5166596",
"0.5154154",
"0.51402605",
"0.5132435",
"0.5100923",
"0.5072011... | 0.64042133 | 3 |
Return a probability distribution over which page to visit next, given a current page. With probability `damping_factor`, choose a link at random linked to by `page`. With probability `1 damping_factor`, choose a link at random chosen from all pages in the corpus. | def IyYM(rrSk, B2Dn, S7ZO):
WErR = dict()
UlCL = rrSk[B2Dn]
if len(UlCL) == 0:
xBk6 = 1 / len(rrSk)
for XP5J in rrSk.keys():
WErR[XP5J] = xBk6
return WErR
if len(UlCL) > 0:
xBk6 = (1 - S7ZO) / (len(UlCL) + 1)
m1iI = S7ZO / len(UlCL) + xBk6
WErR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IyYM(rrSk, B2Dn, S7ZO):\n IZxK = dict()\n t2p_ = []\n wPdp = list(rrSk[B2Dn])\n for P6bq in rrSk:\n t2p_.append(P6bq)\n if len(wPdp) == 0:\n print('Current Page does not have any links')\n Q7Be = 1.0 / len(t2p_)\n for PJtN in t2p_:\n IZxK[PJtN] = Q7Be\n ... | [
"0.7993274",
"0.7727412",
"0.7647625",
"0.7500372",
"0.74512404",
"0.7268626",
"0.70469546",
"0.69155616",
"0.68950677",
"0.6844489",
"0.6755242",
"0.6724535",
"0.6637623",
"0.6618855",
"0.6553674",
"0.6505267",
"0.6394851",
"0.63317496",
"0.62793547",
"0.6243842",
"0.6233524... | 0.6781943 | 10 |
Tests the `max_workers` shortcut. | def fxsi(YKHO):
from concurrent.futures import ThreadPoolExecutor
cuiw = Sfxu()
YKHO.assertEqual(cuiw.executor._max_workers, 2)
cuiw = Sfxu(max_workers=5)
YKHO.assertEqual(cuiw.executor._max_workers, 5)
cuiw = Sfxu(executor=ThreadPoolExecutor(max_workers=10))
YKHO.assertEqual(cuiw.executor._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjrR(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'maximum_number_of_workers')",
"def bjrR(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'maximum_number_of_workers')",
"def JRXn(YKHO):\n q9mE = AXLa(4)\n try:\n q9mE.init_workers()\n assert q9mE.workers_available()... | [
"0.66919494",
"0.65824425",
"0.63891023",
"0.6305042",
"0.6260825",
"0.625994",
"0.6244914",
"0.6190248",
"0.61291575",
"0.6128778",
"0.6119127",
"0.61133605",
"0.6104459",
"0.6078529",
"0.6074325",
"0.5999638",
"0.59754044",
"0.5945874",
"0.5934958",
"0.5932359",
"0.59125394... | 0.67878395 | 0 |
If the current user does not have a profile, redirect them to the profile creation view. | def pciY(JfyU=None, XKMW=None):
if not JfyU:
return YLnl(pciY, login_url=XKMW)
@zaGL(JfyU)
@uKii(login_url=XKMW)
def b6ry(QePW, *qIxc, **B2fa):
if not QePW.user.profile:
return vKnz('flicks.users.profile')
return JfyU(QePW, *qIxc, **B2fa)
return b6ry | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, QePW, *qIxc, **B2fa):\n if QePW.user.is_authenticated():\n return Yd7Q('/')\n return super(YOQW, YKHO).get(QePW, *qIxc, **B2fa)",
"def z39Z():\n if Oa1e.user:\n return TvZl('profile.html', user=Oa1e.user)\n return vKnz(nKyW('login'))",
"def bBMT(QePW):\n TixM(QePW)\n... | [
"0.8091693",
"0.7748662",
"0.7531918",
"0.7344172",
"0.7091509",
"0.6971493",
"0.6871103",
"0.6788356",
"0.6751459",
"0.6645295",
"0.6629284",
"0.66115034",
"0.66040564",
"0.66040564",
"0.6569401",
"0.6554981",
"0.6530386",
"0.6490443",
"0.648148",
"0.6460962",
"0.6457601",
... | 0.0 | -1 |
Check if tensor A is a sparse tensor | def qEOb(k0lF):
if isinstance(k0lF, ht2j.Tensor):
return k0lF.layout == ht2j.sparse_coo
raise TypeError('expected Tensor but got %s' % type(k0lF).__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qEOb(vhpA):\n return isinstance(vhpA, BtZX.SparseTensor)",
"def qEOb(WKvO: Any, DDLl=None) -> bool:\n yR_P = JEuV(DDLl)\n return yR_P.is_sparse(WKvO)",
"def Jh2m(SRYB):\n if 'theano.sparse' in HwRy.modules:\n return H4yH.sparse.issparse(SRYB) or isinstance(SRYB, HwRy.modules['theano.spar... | [
"0.86048955",
"0.7161802",
"0.7080189",
"0.65603733",
"0.6522472",
"0.6427291",
"0.63886297",
"0.62952006",
"0.6244867",
"0.6229549",
"0.62151974",
"0.6199925",
"0.6190189",
"0.6161968",
"0.60981226",
"0.60706556",
"0.6064328",
"0.60310256",
"0.6012801",
"0.5995372",
"0.59845... | 0.89470613 | 0 |
Write line string to standard error and flush | def dsE5(zFiD):
HwRy.stderr.write(zFiD + '\n')
HwRy.stderr.flush() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dnVQ(YKHO, l5Ny):\n wIbz = YKHO.stderr\n if YKHO.stderr.closed:\n wIbz = HwRy.stderr\n wIbz.write(HCSC(u'\\r', target_stream=wIbz))\n wIbz.write(HCSC(PI7_, target_stream=wIbz))\n if l5Ny is None:\n l5Ny = ''\n l5Ny = HCSC(u'{0}\\n'.format(l5Ny), target_stream=wIbz)\n YKHO.std... | [
"0.7235095",
"0.7047463",
"0.6964287",
"0.68663406",
"0.6794799",
"0.67794967",
"0.6586635",
"0.6517666",
"0.6502301",
"0.64847887",
"0.6453221",
"0.6411421",
"0.64077234",
"0.64022255",
"0.6387582",
"0.63631517",
"0.6324148",
"0.6324115",
"0.6318084",
"0.62620974",
"0.626185... | 0.68995905 | 3 |
Initialize the calculator stack | def FIMM(YKHO):
YKHO.stack = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.stack = []\n YKHO.min_num = None",
"def FIMM(YKHO, AOQK, Vhub, pSDG, ALRe):\n YKHO.adder = AOQK\n YKHO.subtracter = Vhub\n YKHO.multiplier = pSDG\n YKHO.divider = ALRe\n YKHO.stack = []",
"def FIMM(YKHO, AOQK, Vhub, pSDG, ALRe):\n YKHO.adder = AOQK\n YKHO.subtr... | [
"0.63249964",
"0.6312433",
"0.6312433",
"0.6278347",
"0.6272454",
"0.6243599",
"0.6189262",
"0.61823934",
"0.61442953",
"0.6102776",
"0.6100903",
"0.6092396",
"0.60904104",
"0.608251",
"0.6073774",
"0.6055508",
"0.605225",
"0.60407215",
"0.604047",
"0.6013165",
"0.5971824",
... | 0.58813316 | 34 |
Instance of linked list is created. | def FIMM(YKHO):
YKHO.head = None
YKHO.length = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mcM9: object):\n YKHO.current_node = mcM9._head",
"def FIMM(YKHO):\n YKHO.head = Msxl()",
"def FIMM(YKHO):\n YKHO.new_dll = f6Fu()",
"def XYiF():\n from linked_list import Linked_List\n AkGM = Linked_List(qCZX)\n return AkGM",
"def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.... | [
"0.7463448",
"0.74594927",
"0.7396998",
"0.7227381",
"0.72204",
"0.70901984",
"0.6989914",
"0.69545364",
"0.69320124",
"0.68896717",
"0.68896717",
"0.68896717",
"0.68896717",
"0.68896717",
"0.6791921",
"0.67730826",
"0.6761502",
"0.6715041",
"0.6712915",
"0.667583",
"0.667575... | 0.642331 | 63 |
Insert a new node at the beginning. | def _jXH(YKHO, wEf2):
Esd_ = o7DN(wEf2)
Esd_.next = YKHO.head
YKHO.head = Esd_
YKHO.length += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Do1b(YKHO, nPrm: int) -> None:\n jvSB = YKHO.head\n Esd_ = o7DN(nPrm)\n if jvSB is not None:\n Esd_.set_next_node(YKHO.head)\n YKHO.head = Esd_\n YKHO._increase_length()",
"def qIuc(YKHO, Q6kx):\n if not isinstance(Q6kx, o7DN):\n Q6kx = o7DN(Q6kx)\n Q6kx.next = YKHO.first_n... | [
"0.7702179",
"0.7641196",
"0.7549501",
"0.7493346",
"0.7487006",
"0.7465431",
"0.7464625",
"0.73809147",
"0.7302195",
"0.7277421",
"0.72750306",
"0.72735834",
"0.72649646",
"0.7222142",
"0.719297",
"0.71919525",
"0.71835345",
"0.70853543",
"0.7079216",
"0.7067039",
"0.6973691... | 0.0 | -1 |
Remove and return an item from the queue. Returns an awaitable which resolves once an item is available, or raises `tornado.util.TimeoutError` after a timeout. ``timeout`` may be a number denoting a time (on the same scale as `tornado.ioloop.IOLoop.time`, normally `time.time`), or a `datetime.timedelta` object for a de... | def NMoC(YKHO, vYBr: Optional[Union[float, datetime.timedelta]]=None) -> ld92[sb5H]:
KS9L = D1Oj()
try:
KS9L.set_result(YKHO.get_nowait())
except Dh08:
YKHO._getters.append(KS9L)
HbDE(KS9L, vYBr)
return KS9L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO, vYBr=None):\n ZfUD = super(Hwg8, YKHO).pop(vYBr)\n try:\n YKHO.remove(ZfUD)\n except ValueError:\n pass\n return ZfUD",
"def NpNj(YKHO, ZfUD: _T, vYBr: Optional[Union[float, datetime.timedelta]]=None) -> 'Future[None]':\n KS9L = D1Oj()\n try:\n YKHO.put_nowai... | [
"0.7336923",
"0.6628001",
"0.6528864",
"0.65080005",
"0.6498318",
"0.63617206",
"0.6360227",
"0.6271478",
"0.60828185",
"0.60522467",
"0.59878767",
"0.59776556",
"0.5898504",
"0.5891952",
"0.5872132",
"0.5849278",
"0.5689446",
"0.5564281",
"0.5530899",
"0.55151176",
"0.550450... | 0.5572722 | 17 |
Remove and return an item from the queue without blocking. Return an item if one is immediately available, else raise `QueueEmpty`. | def xkOA(YKHO) -> sb5H:
YKHO._consume_expired()
if YKHO._putters:
assert YKHO.full(), 'queue not full, why are putters waiting?'
ZfUD, qCan = YKHO._putters.popleft()
YKHO.__put_internal(ZfUD)
SCUX(qCan, None)
return YKHO._get()
elif YKHO.qsize():
return YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO, vYBr=None):\n ZfUD = super(Hwg8, YKHO).pop(vYBr)\n try:\n YKHO.remove(ZfUD)\n except ValueError:\n pass\n return ZfUD",
"def kSdD(YKHO) -> Kt_s:\n if not YKHO.is_empty():\n return YKHO._queue.pop()",
"def BEuN(YKHO):\n if not YKHO.empty():\n return Y... | [
"0.77767026",
"0.7736018",
"0.770522",
"0.76563966",
"0.7526349",
"0.74764746",
"0.7470952",
"0.7458122",
"0.740367",
"0.7390114",
"0.7382221",
"0.73701715",
"0.7346305",
"0.7341975",
"0.7336125",
"0.7333435",
"0.7320937",
"0.73130584",
"0.7288222",
"0.7264022",
"0.7217338",
... | 0.75312173 | 4 |
Returns C/r exp( (rr0)/a) cos(K(r)+phi_0) + 1 evaluated at r. p = (a,K,C,phi_0) | def Di0r(TRVV):
def uxTZ(XP5J, Mkmy):
return XP5J[2] / (Mkmy - XP5J[3]) * oyIN.exp(-(Mkmy - XP5J[3]) / XP5J[0]) * oyIN.sin(XP5J[1] * (Mkmy - XP5J[3])) + 1
return uxTZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W5R0(rVnq):\n return oyIN.kron(MlT5, Esro) + oyIN.kron(Wqlh, A3Vt(rVnq))",
"def nMvt(Mkmy, A3Vt):\n P6bq = Mkmy / A3Vt\n G1Hx = oyIN.pi / 4 * P6bq - 1.0 / 2 * oyIN.sqrt(1 - 1.0 / P6bq ** 2) - P6bq / 2.0 * oyIN.arcsin(1.0 / P6bq)\n return G1Hx",
"def nMvt(Mkmy, A3Vt, hCrt):\n P6bq = Mkmy / A3... | [
"0.6942605",
"0.6841908",
"0.6762096",
"0.66977924",
"0.6452198",
"0.6435569",
"0.64074636",
"0.635043",
"0.62890214",
"0.6209179",
"0.62067455",
"0.61943483",
"0.6133918",
"0.61035126",
"0.6087219",
"0.607306",
"0.6064097",
"0.60191303",
"0.6005025",
"0.6000584",
"0.59941524... | 0.0 | -1 |
d(C/r exp( (rr_0)/a) cos(K(r)+phi_0) + b)/dr evaluated at r. p = (a,K,C,phi_0) | def vGUX(TRVV):
def iqwE(XP5J, Mkmy):
return XP5J[2] / (Mkmy - XP5J[3]) * oyIN.exp(-(Mkmy - XP5J[3]) / XP5J[0]) * oyIN.sin(XP5J[1] * (Mkmy - XP5J[3])) * -1 * (1 / XP5J[0] + 1 / Mkmy + XP5J[1] / oyIN.tan(XP5J[1] * (Mkmy - XP5J[3])))
return iqwE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGKp(YKHO, rVnq, GPIy):\n return 0.0",
"def QGKp(YKHO, rVnq, GPIy):\n return YKHO.r_d(GPIy) * (1.0 - kLQb(-rVnq))",
"def W5R0(rVnq):\n return oyIN.kron(MlT5, Esro) + oyIN.kron(Wqlh, A3Vt(rVnq))",
"def JZOo(A3Vt, CWu8):\n return J1b4 * A3Vt * (kCrj ** BvMi / (kCrj ** BvMi + (k0lF / A3Vt) ** Bv... | [
"0.6636992",
"0.6556475",
"0.6550292",
"0.64924365",
"0.6438681",
"0.64220905",
"0.63966405",
"0.63341016",
"0.63087475",
"0.6196725",
"0.6138291",
"0.6124847",
"0.60633075",
"0.603966",
"0.60353655",
"0.60353297",
"0.6011074",
"0.59884423",
"0.5969927",
"0.5962698",
"0.59206... | 0.62495124 | 9 |
Returns C/r cos(K(r)+phi_0) evaluated at r. p = (K,C,phi_0) | def vsp6(XP5J, Mkmy):
return XP5J[1] * TRVV / Mkmy * oyIN.cos(XP5J[0] * Mkmy + XP5J[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W5R0(rVnq):\n return oyIN.kron(MlT5, Esro) + oyIN.kron(Wqlh, A3Vt(rVnq))",
"def nMvt(Mkmy, A3Vt):\n P6bq = Mkmy / A3Vt\n G1Hx = oyIN.pi / 4 * P6bq - 1.0 / 2 * oyIN.sqrt(1 - 1.0 / P6bq ** 2) - P6bq / 2.0 * oyIN.arcsin(1.0 / P6bq)\n return G1Hx",
"def nMvt(Mkmy, A3Vt):\n P6bq = Mkmy / A3Vt\n ... | [
"0.72665375",
"0.704408",
"0.68868864",
"0.67804235",
"0.67134005",
"0.6511614",
"0.6449185",
"0.6448285",
"0.64482063",
"0.64001536",
"0.6397148",
"0.6359526",
"0.6351848",
"0.63435084",
"0.6334776",
"0.6295738",
"0.62674606",
"0.6245572",
"0.6209222",
"0.6199725",
"0.616779... | 0.0 | -1 |
Check if the polygon is oriented clockwise or counterclockwise. If the polygon is not closed, then closes it | def rMoe(YKHO, iXlf):
if not iXlf[0] == iXlf[-1]:
iXlf.append(iXlf[0])
M_DK = oyIN.transpose(oyIN.array(iXlf))
WKvO, LVAh = (M_DK[0], M_DK[1])
return (oyIN.dot(WKvO, oyIN.roll(LVAh, 1)) - oyIN.dot(LVAh, oyIN.roll(WKvO, 1)) > 0, iXlf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UP_c(iXlf):\n Ty9i = iXlf\n f0tD = ((Ty9i[1][0] - Ty9i[0][0]) * (Ty9i[1][1] + Ty9i[0][1]) + (Ty9i[2][0] - Ty9i[1][0]) * (Ty9i[2][1] + Ty9i[1][1]) + (Ty9i[0][0] - Ty9i[2][0]) * (Ty9i[0][1] + Ty9i[2][1])) / 2\n return f0tD > 0",
"def K241(wDuC):\n wjRY = 0\n for X3qZ, ZYCo in Zu14(wDuC):\n ... | [
"0.6747626",
"0.6401129",
"0.635448",
"0.62022245",
"0.6182494",
"0.612847",
"0.6109565",
"0.60296345",
"0.6021205",
"0.6010633",
"0.5946114",
"0.5936023",
"0.5861069",
"0.58608973",
"0.58608973",
"0.5840856",
"0.5806993",
"0.5790126",
"0.5783694",
"0.5741617",
"0.5726277",
... | 0.0 | -1 |
Fetch the name of the item. | def dvRm(H4yH, Lojf, ht7m):
if Lojf == 'playlist':
mWFP = H4yH.playlist(playlist_id=ht7m, fields='name').get('name')
elif Lojf == 'album':
mWFP = H4yH.album(album_id=ht7m).get('name')
elif Lojf == 'track':
mWFP = H4yH.track(track_id=ht7m).get('name')
return aSeI(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0HP(YKHO, ZfUD):\n return ZfUD.s",
"def dvRm(YKHO):\n return YKHO.__item_name",
"def W0tD(ht7m):\n if ht7m in RZ9F:\n return RZ9F[ht7m]['name']\n return None",
"def W0tD(YKHO):\n if YKHO.name != None:\n return YKHO.name\n else:\n return YKHO.get_name_from_items(YKH... | [
"0.8365611",
"0.8346293",
"0.79825485",
"0.79113615",
"0.7754865",
"0.7691313",
"0.766975",
"0.74173015",
"0.7375894",
"0.731291",
"0.7296194",
"0.7296194",
"0.7282027",
"0.72360784",
"0.71886194",
"0.7181925",
"0.71751404",
"0.7167402",
"0.71438724",
"0.71337664",
"0.7133766... | 0.78084064 | 4 |
Validate the URL and determine if the item type is supported. | def CZmI(bD7m):
Lojf, ht7m = QlZ6(bD7m)
RKD7.debug(f'Got item type {Lojf} and item_id {ht7m}')
if Lojf not in ['album', 'track', 'playlist']:
RKD7.error('Only albums/tracks/playlists are supported')
return False
if ht7m is None:
RKD7.error("Couldn't get a valid id")
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KSw8(YKHO):\n pass",
"def x3K5(YKHO):\n if YKHO._type != 'link':\n raise OJQs.exceptions.FormatError(\"Invalid Link: field `_type` must be set to 'link', got: {}\".format(YKHO._type))",
"def jr1t(bD7m):\n return 'products.json' in bD7m",
"def Suy4(jL5E, jeGQ):\n return jL5E is None or ... | [
"0.69111353",
"0.6565697",
"0.65086687",
"0.6501466",
"0.64377946",
"0.6371421",
"0.63473034",
"0.63169104",
"0.62989384",
"0.628231",
"0.6242617",
"0.62097794",
"0.617534",
"0.61322874",
"0.61017257",
"0.6071105",
"0.60380787",
"0.60350364",
"0.6009986",
"0.59684604",
"0.595... | 0.7493071 | 0 |
Returns the key name for aws access key id environment variable | def mobW():
return 'AWS_ACCESS_KEY_ID' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p0Wb(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'access_key_id')",
"def MYjm(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'access_key')",
"def MYjm(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'access_key')",
"def XlLQ():\n return 'AWS_SECRET_ACCESS_KEY'",
"def MYjm(YKHO) ... | [
"0.76480216",
"0.7297909",
"0.72115576",
"0.7054044",
"0.6998159",
"0.69106483",
"0.6878439",
"0.68697554",
"0.677709",
"0.6750072",
"0.67449194",
"0.6702363",
"0.6670402",
"0.6668832",
"0.6668832",
"0.6668832",
"0.6630177",
"0.6578406",
"0.65742415",
"0.65614897",
"0.6517507... | 0.85637563 | 0 |
Returns the key name for aws session token environment variable | def TvGZ():
return 'AWS_SESSION_TOKEN' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _MQY():\n return 'AWS_SECURITY_TOKEN'",
"def mobW():\n return 'AWS_ACCESS_KEY_ID'",
"def XlLQ():\n return 'AWS_SECRET_ACCESS_KEY'",
"def cocD(Emd4, cuiw):\n return cuiw['credential']['Authorization']",
"def wRip(YKHO, QePW):\n try:\n return QePW.session.session_key\n except Att... | [
"0.77419096",
"0.7356209",
"0.687084",
"0.6821194",
"0.671304",
"0.6643045",
"0.66101414",
"0.653787",
"0.65057176",
"0.65055186",
"0.6471699",
"0.6459282",
"0.63822836",
"0.633365",
"0.633365",
"0.633365",
"0.6247375",
"0.62375563",
"0.62340814",
"0.62280977",
"0.6214375",
... | 0.8317656 | 0 |
Returns the key name for aws security token environment variable | def _MQY():
return 'AWS_SECURITY_TOKEN' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mobW():\n return 'AWS_ACCESS_KEY_ID'",
"def TvGZ():\n return 'AWS_SESSION_TOKEN'",
"def XlLQ():\n return 'AWS_SECRET_ACCESS_KEY'",
"def zAat(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_name')",
"def IWMy(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'aws_credentials_secret_name')",
"def f... | [
"0.7489451",
"0.7428569",
"0.700452",
"0.6646463",
"0.66105175",
"0.6584805",
"0.65412647",
"0.6527514",
"0.6527514",
"0.6527514",
"0.6445769",
"0.6444604",
"0.6400658",
"0.63923156",
"0.6380205",
"0.63683784",
"0.63671887",
"0.63669354",
"0.6363497",
"0.6363497",
"0.63508415... | 0.8146783 | 0 |
Returns the key name for aws secret access key environment variable | def XlLQ():
return 'AWS_SECRET_ACCESS_KEY' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mobW():\n return 'AWS_ACCESS_KEY_ID'",
"def xL6j(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'secret_access_key')",
"def IWMy(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'aws_credentials_secret_name')",
"def MYjm(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'access_key')",
"def ... | [
"0.84506404",
"0.7587261",
"0.7097253",
"0.7056799",
"0.7046539",
"0.7033541",
"0.6977223",
"0.6977223",
"0.6769221",
"0.67157805",
"0.66950864",
"0.6668506",
"0.6667329",
"0.6532539",
"0.6532076",
"0.653101",
"0.6530734",
"0.65238035",
"0.6522933",
"0.6500886",
"0.6498251",
... | 0.8265045 | 1 |
The rolling count of any nonNaN observations inside the window. | def UHFx(YKHO) -> jHAz:
return super().count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DmEq(XEri: pd.DataFrame, exwG: int):\n return XEri.rolling(exwG, center=False, min_periods=exwG).sum()",
"def l86c(jQ3Z):\n return jQ3Z.isnull().sum().sum()",
"def bdSK(dy_H):\n UHFx = 0\n for YRbF in range(dy_H.size - 1, -1, -1):\n if rLdf.isnull(dy_H[YRbF]) or dy_H[YRbF] == 0:\n ... | [
"0.6742492",
"0.6388162",
"0.6070128",
"0.58365",
"0.5788624",
"0.5631775",
"0.56174415",
"0.55978847",
"0.5578722",
"0.5564355",
"0.5546377",
"0.5443131",
"0.5426645",
"0.5415506",
"0.5404296",
"0.53765166",
"0.5338709",
"0.5329187",
"0.5309082",
"0.5296353",
"0.52755773",
... | 0.0 | -1 |
Calculate rolling summation of given DataFrame or Series. | def sum(YKHO) -> jHAz:
return super().sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_ro(YKHO, EcVT: pd.DataFrame, Qemi: str, Sm0u: list) -> rLdf.DataFrame:\n for Csk6 in Sm0u:\n EcVT[f'rolling_{Qemi}_{Csk6}'] = EcVT[['id', 'sales', 'd']].groupby(['id'])['sales'].transform(lambda WKvO: WKvO.shift(YKHO.shift_days + 1).rolling(Csk6).agg(Qemi)).fillna(0)\n return EcVT",
"def FtBq(... | [
"0.67139715",
"0.6456743",
"0.6164658",
"0.60734415",
"0.5979015",
"0.59093314",
"0.5902472",
"0.59009683",
"0.5850244",
"0.584317",
"0.582164",
"0.57560194",
"0.57528484",
"0.56849587",
"0.56844455",
"0.56691283",
"0.5668916",
"0.5652469",
"0.56503654",
"0.5647865",
"0.56224... | 0.0 | -1 |
Calculate the rolling quantile of the values. | def aM62(YKHO, aM62: float, vjyh: int=10000) -> jHAz:
return super().quantile(aM62, vjyh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aM62(YEnM, aM62, KnxT, Encw=None, GoGv='linear'):\n return YEnM.rolling(window=KnxT, min_periods=Encw).quantile(aM62, interpolation=GoGv)",
"def gCsP(YEnM, KnxT, Encw=None):\n return YEnM.rolling(window=KnxT, min_periods=Encw).apply(lambda WKvO: eQSh.percentileofscore(WKvO, WKvO[-1]))",
"def KduP(EcV... | [
"0.7531309",
"0.7186366",
"0.64934176",
"0.6449605",
"0.63455826",
"0.6265429",
"0.6207471",
"0.61604744",
"0.6069853",
"0.6014162",
"0.600804",
"0.5990357",
"0.59813446",
"0.59723234",
"0.59604645",
"0.5925752",
"0.5903909",
"0.5871063",
"0.5865568",
"0.58350533",
"0.5832931... | 0.59255546 | 17 |
The rolling count of any nonNaN observations inside the window. Returns Series or DataFrame Returned object type is determined by the caller of the expanding calculation. See Also | def UHFx(YKHO) -> jHAz:
return super().count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DmEq(XEri: pd.DataFrame, exwG: int):\n return XEri.rolling(exwG, center=False, min_periods=exwG).sum()",
"def l86c(jQ3Z):\n return jQ3Z.isnull().sum().sum()",
"def swO7(nPrm, WfCS, Qe7D=''):\n zdlN = rLdf.DataFrame(rLdf.isnull(nPrm[WfCS]).sum())\n zdlN.columns = ['null_counts' + Qe7D]\n zdlN... | [
"0.65868795",
"0.5921516",
"0.5806247",
"0.56712025",
"0.56466436",
"0.56352276",
"0.5579832",
"0.556141",
"0.55022866",
"0.5487067",
"0.5443514",
"0.5416533",
"0.5412285",
"0.53992844",
"0.53850275",
"0.53658235",
"0.5311116",
"0.5276107",
"0.52737737",
"0.5269945",
"0.52648... | 0.0 | -1 |
The rolling summation of any nonNaN observations inside the window. Returns Series or DataFrame Returned object type is determined by the caller of the rolling calculation. See Also | def sum(YKHO) -> jHAz:
return super().sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VBBt(jQ3Z, KnxT):\n m1pa = rLdf.DataFrame(index=jQ3Z.index)\n for aDi_ in jQ3Z.columns:\n wjL_ = rLdf.Series.rolling(jQ3Z[aDi_], window=KnxT).mean().to_frame()\n m1pa = m1pa.join(wjL_)\n m1pa.ix[:KnxT, :] = 0\n return m1pa",
"def VBBt(hkxX, KnxT):\n return rLdf.rolling_mean(hkxX,... | [
"0.67467463",
"0.6613442",
"0.6533916",
"0.64736253",
"0.64673936",
"0.629716",
"0.6283051",
"0.6198748",
"0.6114465",
"0.6087126",
"0.60358644",
"0.6002005",
"0.5986583",
"0.5895803",
"0.58494383",
"0.58375376",
"0.5808783",
"0.57779574",
"0.57769376",
"0.57069594",
"0.56865... | 0.0 | -1 |
The rolling minimum of any nonNaN observations inside the window. Returns Series or DataFrame Returned object type is determined by the caller of the rolling calculation. See Also | def min(YKHO) -> jHAz:
return super().min() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yfau(jzdc, KnxT, VDGN=None):\n yvT9 = oyIN.empty_like(jzdc, dtype=oyIN.float_)\n for fvDH in range(jzdc.shape[1]):\n yvT9[:, fvDH] = jQn9(jzdc[:, fvDH], KnxT, minp=VDGN)\n return yvT9",
"def jQn9(jzdc, KnxT, VDGN=None):\n if VDGN is None:\n VDGN = KnxT\n if VDGN > KnxT:\n ... | [
"0.7334202",
"0.73163694",
"0.71986014",
"0.6907758",
"0.6754546",
"0.64330584",
"0.6414692",
"0.6397849",
"0.6236042",
"0.6200179",
"0.6168256",
"0.61582273",
"0.6108246",
"0.60841763",
"0.6082062",
"0.6036803",
"0.6036803",
"0.6019974",
"0.60003674",
"0.59005505",
"0.587979... | 0.0 | -1 |
The rolling mean of any nonNaN observations inside the window. Returns Series or DataFrame Returned object type is determined by the caller of the rolling calculation. See Also | def JBMS(YKHO) -> jHAz:
return super().mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VBBt(hkxX, KnxT):\n return rLdf.rolling_mean(hkxX, window=KnxT)",
"def VBBt(hkxX, KnxT):\n return rLdf.rolling_mean(hkxX, window=KnxT)",
"def VBBt(jQ3Z, KnxT):\n m1pa = rLdf.DataFrame(index=jQ3Z.index)\n for aDi_ in jQ3Z.columns:\n wjL_ = rLdf.Series.rolling(jQ3Z[aDi_], window=KnxT).mean... | [
"0.8266824",
"0.8229196",
"0.80475366",
"0.794759",
"0.781616",
"0.7604971",
"0.72936034",
"0.6891473",
"0.68211347",
"0.6805047",
"0.66424984",
"0.66319966",
"0.65638167",
"0.64446044",
"0.63771135",
"0.63368434",
"0.6289321",
"0.6276824",
"0.62733346",
"0.62192655",
"0.6201... | 0.5715995 | 80 |
The expanding count of any nonNaN observations inside the window. | def UHFx(YKHO) -> jHAz:
return super().count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bdSK(dy_H):\n UHFx = 0\n for YRbF in range(dy_H.size - 1, -1, -1):\n if rLdf.isnull(dy_H[YRbF]) or dy_H[YRbF] == 0:\n UHFx += 1\n else:\n break\n return UHFx",
"def l86c(jQ3Z):\n return jQ3Z.isnull().sum().sum()",
"def swO7(nPrm, WfCS, Qe7D=''):\n zdlN = r... | [
"0.614406",
"0.6136183",
"0.60136473",
"0.5965262",
"0.57978404",
"0.5729527",
"0.5691633",
"0.567842",
"0.55719984",
"0.54842085",
"0.54111147",
"0.53994983",
"0.5356147",
"0.5330028",
"0.532125",
"0.5319173",
"0.53163654",
"0.52570134",
"0.5237816",
"0.52130353",
"0.5186760... | 0.46951455 | 65 |
Calculate the expanding quantile of the values. Returns Series or DataFrame Returned object type is determined by the caller of the expanding calculation. | def aM62(YKHO, aM62: float, vjyh: int=10000) -> jHAz:
return super().quantile(aM62, vjyh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7bE(YKHO, BWXx):\n YKHO._quantiles = CwDs.DataFrame(BWXx, dtype=float)",
"def aM62(YEnM, aM62, KnxT, Encw=None, GoGv='linear'):\n return YEnM.rolling(window=KnxT, min_periods=Encw).quantile(aM62, interpolation=GoGv)",
"def aM62(YKHO, jDK_: str='rows', vexM: float=0.5) -> 'DataFrame':\n if not BfD... | [
"0.6153257",
"0.6046",
"0.596912",
"0.5951916",
"0.57734144",
"0.5772762",
"0.57614744",
"0.5729488",
"0.56926376",
"0.5674497",
"0.56588715",
"0.5549241",
"0.5466749",
"0.54329956",
"0.5413596",
"0.54132473",
"0.54109955",
"0.53970623",
"0.53968835",
"0.53949827",
"0.5382592... | 0.57400614 | 9 |
The expanding count of any nonNaN observations inside the window. Returns Series or DataFrame Returned object type is determined by the caller of the expanding calculation. See Also | def UHFx(YKHO) -> jHAz:
return super().count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def swO7(nPrm, WfCS, Qe7D=''):\n zdlN = rLdf.DataFrame(rLdf.isnull(nPrm[WfCS]).sum())\n zdlN.columns = ['null_counts' + Qe7D]\n zdlN['feature'] = zdlN.index\n zdlN.reset_index(inplace=True, drop=True)\n return zdlN",
"def DmEq(XEri: pd.DataFrame, exwG: int):\n return XEri.rolling(exwG, center=F... | [
"0.5884196",
"0.5648381",
"0.5532539",
"0.544448",
"0.54274565",
"0.534371",
"0.5282453",
"0.52467144",
"0.5232329",
"0.5217508",
"0.5193479",
"0.51837045",
"0.5105391",
"0.5054226",
"0.5033739",
"0.50286376",
"0.50119936",
"0.49868548",
"0.4965605",
"0.49602434",
"0.49534455... | 0.4356578 | 98 |
Calculate the expanding quantile of the values. | def aM62(YKHO, aM62: float, vjyh: int=10000) -> jHAz:
return super().quantile(aM62, vjyh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tX86(CAzz):\n return KJMr(CAzz) / len(CAzz) - 1 / (2 * len(CAzz))",
"def Ad33(vexM):\n\n def eHNT(WKvO):\n return oyIN.quantile(WKvO, vexM)\n return eHNT",
"def sezZ(fUYa: List[float]) -> float:\n return aM62(fUYa, 0.75) - aM62(fUYa, 0.25)",
"def GUy0():\n return oyIN.logspace(-5, 0... | [
"0.6554137",
"0.63115823",
"0.6219473",
"0.6177999",
"0.61537474",
"0.6121143",
"0.6121143",
"0.611989",
"0.61117923",
"0.6086273",
"0.6068111",
"0.60444456",
"0.6014211",
"0.6013403",
"0.5987583",
"0.59792155",
"0.5972617",
"0.59611946",
"0.59491116",
"0.5948437",
"0.5945259... | 0.594926 | 19 |
Calculate expanding standard skew. Returns Series or DataFrame Returns the same object type as the caller of the expanding calculation. See Also | def uRwD(YKHO) -> jHAz:
return super().skew() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kbKl(YKHO, Dt1m: pd.Series):\n DDvK = Dt1m - Dt1m.mean()\n arj7 = Dt1m.std(ddof=0)\n kLQb = (DDvK ** 3).mean()\n return kLQb / arj7 ** 3",
"def uRwD(YKHO) -> float:\n return float(KG9w.skew(YKHO.tsdf.pct_change().values, bias=True, nan_policy='omit'))",
"def uRwD(YKHO, jDK_: Optional[Axis]=N... | [
"0.6078592",
"0.59900975",
"0.5871541",
"0.5806588",
"0.5776601",
"0.5695841",
"0.56594837",
"0.5622702",
"0.5587426",
"0.55804914",
"0.53668517",
"0.5354548",
"0.533076",
"0.5293236",
"0.52794033",
"0.52194995",
"0.5174413",
"0.51682884",
"0.51613647",
"0.51313967",
"0.51173... | 0.5737168 | 7 |
Calculate an online exponentially weighted mean. Notes There are behavior differences between pandasonSpark and pandas. the current implementation of this API uses Spark's Window without specifying partition specification. This leads to move all data into single partition in single machine and could cause serious perfo... | def JBMS(YKHO) -> jHAz:
return super().mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbMh(YKHO, pQ4c=50, iVRZ='adj_close'):\n return rLdf.Series(YKHO.ohlcv[iVRZ].ewm(ignore_na=False, min_periods=pQ4c - 1, span=pQ4c).mean(), name='{} day EWMA Ticker: {}'.format(pQ4c, YKHO.ticker))",
"def KiTx(Gs9A, WfCS):\n lwoF = (Gs9A[WfCS[0]] * Gs9A[WfCS[1]]).sum() / Gs9A[WfCS[0]].sum()\n return l... | [
"0.65114504",
"0.60645187",
"0.58863807",
"0.58267826",
"0.5805524",
"0.580511",
"0.5804684",
"0.5796743",
"0.57613146",
"0.57407624",
"0.567007",
"0.5654368",
"0.564549",
"0.5581292",
"0.5536963",
"0.55317104",
"0.5531338",
"0.5526338",
"0.5490223",
"0.5481733",
"0.54809994"... | 0.533443 | 41 |
Calculate an online exponentially weighted mean. Notes There are behavior differences between pandasonSpark and pandas. the current implementation of this API uses Spark's Window without specifying partition specification. This leads to move all data into single partition in single machine and could cause serious perfo... | def JBMS(YKHO) -> jHAz:
return super().mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbMh(YKHO, pQ4c=50, iVRZ='adj_close'):\n return rLdf.Series(YKHO.ohlcv[iVRZ].ewm(ignore_na=False, min_periods=pQ4c - 1, span=pQ4c).mean(), name='{} day EWMA Ticker: {}'.format(pQ4c, YKHO.ticker))",
"def KiTx(Gs9A, WfCS):\n lwoF = (Gs9A[WfCS[0]] * Gs9A[WfCS[1]]).sum() / Gs9A[WfCS[0]].sum()\n return l... | [
"0.6511822",
"0.60625046",
"0.5885925",
"0.58253944",
"0.5806458",
"0.5805351",
"0.5803309",
"0.57966244",
"0.576166",
"0.57405263",
"0.56699467",
"0.5654006",
"0.5645146",
"0.5581624",
"0.5536618",
"0.55334294",
"0.5528486",
"0.5525051",
"0.5488619",
"0.5481305",
"0.54810065... | 0.5335349 | 40 |
Numeric scenarios where Oracle type info is 'broken', returning us precision, scale of the form (0, 0) or (0, 127). We convert to Decimal and let int()/float() processors take over. | def FIKG(YKHO):
yIVm = YKHO.metadata
L70P = TQJD('foo', yIVm, OciN('idata', zllO), OciN('ndata', NUGf(20, 2)), OciN('ndata2', NUGf(20, 2)), OciN('nidata', NUGf(5, 0)), OciN('fdata', auK0()))
L70P.create()
L70P.insert().execute({'idata': 5, 'ndata': SOnQ.Decimal('45.6'), 'ndata2': SOnQ.Decimal('45.0'), '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6wC(N1p7: pyodbc.Cursor):\n BWXx = ZjSO((0, (1, 2, 3), 5))\n N1p7.execute('create table t1(d decimal(10, 2))')\n N1p7.execute('insert into t1 values (?)', BWXx)\n Aofo = N1p7.execute('select * from t1').fetchone()[0]\n assert Aofo == BWXx",
"def DpHA(Emd4, **B2fa: Any) -> ImMB:\n rhd_ = B2... | [
"0.64769566",
"0.6471073",
"0.63983536",
"0.6364267",
"0.61503637",
"0.60364056",
"0.6020658",
"0.6007777",
"0.59986687",
"0.59626794",
"0.5961035",
"0.59441483",
"0.59394944",
"0.59222674",
"0.59026015",
"0.58304995",
"0.5813088",
"0.57763886",
"0.57734025",
"0.57529813",
"0... | 0.6691026 | 0 |
Returns true if the list is unique. | def vaOw(SRYB):
return len([WKvO for WKvO in set(SRYB)]) == len(SRYB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def er5K(YKHO, list):\n vLm2 = []\n [vLm2.append(WhY1) for WhY1 in list if not vLm2.count(WhY1)]\n return len(list) == len(vLm2)",
"def aApz(aPd6):\n for YRbF in range(len(aPd6)):\n for r845 in range(len(aPd6)):\n if YRbF != r845 and aPd6[YRbF] == aPd6[r845]:\n return... | [
"0.8162772",
"0.7768846",
"0.77603513",
"0.7749613",
"0.7407355",
"0.7351032",
"0.7310131",
"0.72431886",
"0.71386975",
"0.7130326",
"0.7104967",
"0.7103466",
"0.70849496",
"0.6982283",
"0.69577664",
"0.6928952",
"0.691983",
"0.6864547",
"0.6843328",
"0.681315",
"0.6763285",
... | 0.7630314 | 4 |
Return time series data of given province | def JEVN(jQ3Z, qtiV: str) -> CwDs.core.frame.DataFrame:
return jQ3Z[(jQ3Z['province'] == qtiV) & jQ3Z['city'].isnull()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OnpH(D4Bq):\n dy_H = ZtBG.find_one({wuRM: D4Bq}, {'_id': False})\n return kuFB(dy_H)",
"def w3PY(D4Bq):\n N1p7 = lN3L.find({wuRM: D4Bq})\n jQ3Z = rLdf.DataFrame(list(N1p7))\n if jQ3Z.empty:\n P4t4.logger.error(f'While getting {D4Bq} data: no data')\n return jQ3Z",
"def qLcR(D4Bq):\... | [
"0.65234",
"0.6363227",
"0.6123158",
"0.5895928",
"0.5770566",
"0.5718587",
"0.5611552",
"0.56019753",
"0.5573704",
"0.55593425",
"0.55568475",
"0.5537867",
"0.5525989",
"0.5523191",
"0.55133015",
"0.5501706",
"0.54799443",
"0.5473967",
"0.54612404",
"0.5431595",
"0.5431574",... | 0.53054297 | 54 |
Returns the features of the current state (i.e., the location of the agent) | def o1a4(YKHO):
WKvO, LVAh = YKHO.agent
return oyIN.array([WKvO, LVAh]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mXEu(YKHO, QTBn, XeOP, GKSl):\n gnPz.raiseNotDefined()",
"def NTrD(YKHO):\n return YKHO.who_made_features",
"def o1a4(YKHO):\n return YKHO._features",
"def mXEu(YKHO, QTBn, XeOP):\n gnPz.raiseNotDefined()",
"def mXEu(YKHO, QTBn, XeOP):\n gnPz.raiseNotDefined()",
"def mXEu(YKHO, QTBn, X... | [
"0.76511186",
"0.73879236",
"0.7264916",
"0.7073085",
"0.7073085",
"0.7073085",
"0.70612127",
"0.70573694",
"0.6970577",
"0.68356776",
"0.6733326",
"0.67205673",
"0.66852176",
"0.66139555",
"0.659136",
"0.659136",
"0.6588222",
"0.65070003",
"0.65032876",
"0.64905256",
"0.6441... | 0.7441654 | 1 |
Return a string with the current time nicely formatted. | def m7L9(YKHO):
WKvO = ITS7.localtime()
return ''.join([str(WKvO[0]).rjust(4, '0'), '/', str(WKvO[1]).rjust(2, '0'), '/', str(WKvO[2]).rjust(2, '0'), ' ', str(WKvO[3]).rjust(2, '0'), ':', str(WKvO[4]).rjust(2, '0'), ':', str(WKvO[5]).rjust(2, '0')]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _PtW():\n return F803('%Y_%m_%d_%H_%M_%S_%Z', WPt4())",
"def dni_() -> str:\n return qcWV.now().strftime('%FT%H:%M:%S')",
"def JUFO() -> str:\n return hLAQ(RN2L())",
"def YCc8():\n return JRYC.strftime(JRYC.now(), '%H:%M:%S')",
"def jmHs(YKHO):\n return qcWV.now().strftime('%c')",
"def... | [
"0.84012175",
"0.8361597",
"0.82953554",
"0.8238221",
"0.811072",
"0.8066993",
"0.8026812",
"0.79913104",
"0.7980262",
"0.79560447",
"0.7921243",
"0.79026",
"0.7878337",
"0.785339",
"0.77705663",
"0.7769186",
"0.7754033",
"0.7750938",
"0.77495265",
"0.77463174",
"0.7740321",
... | 0.7674273 | 24 |
Returns the current signal strength. | def OKJt(YKHO, clEj=None):
try:
yrqc = int(YKHO.wifi.GetSignalStrength(clEj))
except:
yrqc = 0
return yrqc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kE4Q(YKHO) -> int:\n return YKHO.data[URbA.WIRELESS_SIGNAL_STRENGTH]",
"def jPne(YKHO):\n return YKHO.st",
"def yrqc(YKHO) -> int:\n return YKHO._strength",
"def yrqc(YKHO) -> float:\n ...",
"def ifyx(YKHO, clEj=None):\n if YKHO.GetSignalDisplayType() == 0:\n return YKHO.GetCurren... | [
"0.86211723",
"0.78083163",
"0.7472221",
"0.7319115",
"0.7258844",
"0.6974494",
"0.6964913",
"0.69649047",
"0.6963436",
"0.6757317",
"0.67060554",
"0.6680049",
"0.66463655",
"0.6592017",
"0.6583346",
"0.6572379",
"0.65464437",
"0.64455837",
"0.64267856",
"0.63989365",
"0.6351... | 0.8130565 | 1 |
Returns the current network. | def RkL8(YKHO, clEj=None):
jhZn = str(YKHO.wifi.GetCurrentNetwork(clEj))
return jhZn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XHTY(YKHO):\n return YKHO._network",
"def XHTY(YKHO):\n return YKHO.get_ip_network()[-1]",
"def eVVj(YKHO):\n return YKHO.__network",
"def eVVj(YKHO):\n return YKHO._network",
"def eVVj(YKHO):\n return YKHO._network",
"def eVVj(YKHO):\n return YKHO._network",
"def eVVj(YKHO) -> st... | [
"0.8669618",
"0.8464013",
"0.8426175",
"0.8423674",
"0.8423674",
"0.8423674",
"0.80385786",
"0.7931952",
"0.77918977",
"0.77775127",
"0.7530648",
"0.75047314",
"0.7222305",
"0.7190799",
"0.70858324",
"0.7003057",
"0.6899688",
"0.6740319",
"0.67005503",
"0.6687624",
"0.6687624... | 0.8243167 | 6 |
Finds the previous lastused network, and sets lastused to False. | def XU8l(YKHO):
GPtr = kwpV.ConfigParser()
GPtr.read(YKHO.wired_conf)
lYXm = GPtr.sections()
for z39Z in lYXm:
if GPtr.has_option(z39Z, 'lastused'):
if uqom.to_bool(GPtr.get(z39Z, 'lastused')):
GPtr.set(z39Z, 'lastused', False)
GPtr.write(open(YKHO.wir... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ymu7(YKHO, Ymu7):\n YKHO._last_used = Ymu7",
"def L66R(YKHO):\n GPtr = kwpV.ConfigParser()\n GPtr.read(YKHO.wired_conf)\n lYXm = GPtr.sections()\n for z39Z in lYXm:\n if GPtr.has_option(z39Z, 'lastused'):\n if uqom.to_bool(GPtr.get(z39Z, 'lastused')):\n return ... | [
"0.6704261",
"0.6562998",
"0.58863914",
"0.5752343",
"0.55431706",
"0.54944456",
"0.54129523",
"0.5368616",
"0.5343992",
"0.5276877",
"0.5184704",
"0.5180377",
"0.5176456",
"0.51272345",
"0.51226676",
"0.5101494",
"0.50584453",
"0.50232244",
"0.5021922",
"0.50021344",
"0.5000... | 0.63433534 | 2 |
Create requests session with any required auth headers applied. | def PclX(YKHO, cuiw=None):
if cuiw:
cuiw = super(Kmza, YKHO).signed_session(cuiw)
else:
cuiw = super(Kmza, YKHO).signed_session()
if YKHO.cert is not None:
cuiw.cert = YKHO.cert
if YKHO.ca_cert is not None:
cuiw.verify = YKHO.ca_cert
if YKHO.no_verify:
cuiw.ve... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cC7L(YKHO):\n YKHO.session = G4JS.Session()\n YKHO.session.headers['Accept'] = 'application/json'\n if YKHO.user:\n YKHO.session.auth = (YKHO.user, YKHO.cred)",
"def VvfN(YKHO):\n cuiw = G4JS.Session()\n cuiw.auth = (YKHO.login, YKHO.password)\n cuiw.verify = False\n cuiw.headers.... | [
"0.7982525",
"0.7685775",
"0.7522335",
"0.73731357",
"0.7173074",
"0.7056309",
"0.7031905",
"0.7011434",
"0.6936985",
"0.6871164",
"0.68638617",
"0.6847638",
"0.6841403",
"0.66765255",
"0.6656736",
"0.66522753",
"0.6648357",
"0.66448426",
"0.6634189",
"0.6620114",
"0.6613344"... | 0.0 | -1 |
Test that the access token is not included in the call to requests if it isn't actually set. | def SXG1(YKHO):
x0hE = i9zE()
with Po4F('requests.request') as QePW:
QePW.return_value.json.return_value = {}
x0hE.request('GET', 'http://www.google.com/')
QePW.assert_called_once_with('GET', 'http://www.google.com/', headers=None, json=None, params=b'per_page=100') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NsTI(YKHO):\n x0hE = i9zE()\n x0hE.set_client_access_token('ABCDEF1234')\n with Po4F('requests.request') as QePW:\n QePW.return_value.json.return_value = {}\n x0hE.request('GET', 'http://www.google.com/')\n q2q2 = b'access_token=ABCDEF1234&per_page=100'\n QePW.assert_called_once_wi... | [
"0.69099724",
"0.6793873",
"0.6654324",
"0.6580201",
"0.65588224",
"0.6500449",
"0.6497194",
"0.6463949",
"0.64552736",
"0.6439623",
"0.6430124",
"0.6421521",
"0.6421521",
"0.64164764",
"0.6411263",
"0.64094365",
"0.6386979",
"0.63326263",
"0.63274866",
"0.6315089",
"0.630704... | 0.6927419 | 0 |
Test that the access token is not included in the call to requests if it isn't actually set. | def NsTI(YKHO):
x0hE = i9zE()
x0hE.set_client_access_token('ABCDEF1234')
with Po4F('requests.request') as QePW:
QePW.return_value.json.return_value = {}
x0hE.request('GET', 'http://www.google.com/')
q2q2 = b'access_token=ABCDEF1234&per_page=100'
QePW.assert_called_once_with('GET', 'h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SXG1(YKHO):\n x0hE = i9zE()\n with Po4F('requests.request') as QePW:\n QePW.return_value.json.return_value = {}\n x0hE.request('GET', 'http://www.google.com/')\n QePW.assert_called_once_with('GET', 'http://www.google.com/', headers=None, json=None, params=b'per_page=100')",
"def ag5t(Y... | [
"0.692526",
"0.6794851",
"0.66552746",
"0.65810674",
"0.6560386",
"0.6500516",
"0.6498373",
"0.6464411",
"0.6455049",
"0.64409953",
"0.6431237",
"0.6422371",
"0.6422371",
"0.6416842",
"0.64118135",
"0.64092374",
"0.63875264",
"0.63331157",
"0.6328828",
"0.6314424",
"0.6308231... | 0.6907928 | 1 |
Denormalize a list of bounding boxes. | def rZyS(c8oy: Sequence[BoxType], usx6: int, WfCS: int) -> x1iM[_1yp]:
return [Jtd_(cviu, usx6, WfCS) for cviu in c8oy] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rZyS(c8oy, usx6, WfCS):\n return [Jtd_(cviu, usx6, WfCS) for cviu in c8oy]",
"def oafe(c8oy, usx6, WfCS):\n return [pmny(cviu, usx6, WfCS) for cviu in c8oy]",
"def Jtd_(cviu, usx6, WfCS):\n wBZN, KDmU, re6M, rwK9 = cviu[:4]\n UVw4 = [wBZN * WfCS, KDmU * usx6, re6M * WfCS, rwK9 * usx6]\n retu... | [
"0.78807217",
"0.74085206",
"0.73613846",
"0.7231537",
"0.6852509",
"0.68149096",
"0.64614767",
"0.64555407",
"0.6405092",
"0.63514566",
"0.62930244",
"0.6263208",
"0.61158997",
"0.61002773",
"0.61002773",
"0.6096402",
"0.6092295",
"0.6078676",
"0.6065588",
"0.6061656",
"0.60... | 0.77204424 | 1 |
Calculate the area of a bounding box in (fractional) pixels. | def z714(cviu: BoxType, usx6: int, WfCS: int) -> float:
cviu = Jtd_(cviu, usx6, WfCS)
wBZN, KDmU, re6M, rwK9 = cviu[:4]
f0tD = (re6M - wBZN) * (rwK9 - KDmU)
return f0tD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zT1d(FlUN):\n return (FlUN[2] - FlUN[0] + 1) * (FlUN[3] - FlUN[1] + 1)",
"def ab__(FlUN):\n o4D3, si3g, ajwV, skBL = FlUN\n yzQ0 = ajwV - o4D3\n MKlR = skBL - si3g\n return float(yzQ0) * MKlR",
"def OQ1Z(KZc7):\n kRWt = KZc7[2] - KZc7[0]\n gMKv = KZc7[3] - KZc7[1]\n pAIe = kRWt / gM... | [
"0.78045815",
"0.7625647",
"0.7602896",
"0.74564564",
"0.7390264",
"0.7215615",
"0.7076385",
"0.69173515",
"0.6872775",
"0.6869177",
"0.6868997",
"0.68631864",
"0.6829881",
"0.68236065",
"0.68236065",
"0.68236065",
"0.68232656",
"0.68232656",
"0.68194234",
"0.68158877",
"0.68... | 0.7702175 | 1 |
Parses .json file into corresponding dictionary. | def Nw5e(nUeQ: str) -> uLKX[cuzp, x1iM]:
with open(nUeQ, 'r') as eHNT:
return qQXR.load(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nw5e(wM3v: str) -> dict:\n zgjV = {}\n if not Hy7s.path.isfile(wM3v):\n UtPW(Hy7s.path.basename(wM3v) + ' does not exist.')\n HwRy.exit(1)\n with open(wM3v) as eHNT:\n zgjV = qQXR.load(eHNT)\n return zgjV",
"def o1TS(YKHO, _bsB: str) -> cuzp:\n with open(_bsB, mode='r') as... | [
"0.7891738",
"0.7663358",
"0.75478274",
"0.75027597",
"0.74503195",
"0.74066526",
"0.73787266",
"0.73608536",
"0.7312658",
"0.7278362",
"0.72372603",
"0.72158164",
"0.72051376",
"0.7197018",
"0.7177204",
"0.7163607",
"0.7140415",
"0.7119488",
"0.7119488",
"0.7114829",
"0.7089... | 0.69856226 | 31 |
update the critics and actors of all the agents | def QdZT(YKHO, gGnb, EL1S, bo34):
W061, CWnR, XeOP, vOGg, YFaX, Khpc, _ins = map(e3jL, gGnb)
CWnR = ht2j.stack(CWnR)
Khpc = ht2j.stack(Khpc)
YWSi = YKHO.maddpg_agent[EL1S]
YWSi.critic_optimizer.zero_grad()
hb5a = YKHO.target_act(YFaX)
hb5a = ht2j.cat(hb5a, dim=1)
FG6B = ht2j.cat((Khpc.t(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cmwX(YKHO):\n for jzdc in YKHO.agents:\n HwXW(jzdc.target_actor, jzdc.actor, YKHO.tau)\n HwXW(jzdc.target_critic, jzdc.critic, YKHO.tau)\n YKHO.num_iteration += 1",
"def QdZT(YKHO):\n YKHO.reset()\n YWSi = YKHO.simulation.agent\n YKHO.mask = YWSi.active & YKHO.room.contains_point... | [
"0.7793435",
"0.62337434",
"0.5746579",
"0.57021135",
"0.56952703",
"0.5685467",
"0.5654011",
"0.5617586",
"0.55508715",
"0.55483985",
"0.55255216",
"0.5490698",
"0.54705274",
"0.5440514",
"0.54386806",
"0.54381484",
"0.5408061",
"0.53959286",
"0.5368262",
"0.5361991",
"0.536... | 0.53142095 | 25 |
Returns a list of unique elements. | def UYlD(WKvO):
return list(set(WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcwm(WKvO):\n return list(set(WKvO))",
"def ONhe(BDwY):\n return list(set(BDwY))",
"def a4ZY(UqER):\n bypm = set()\n U5bT = []\n for tTpl in UqER:\n if tTpl not in bypm:\n U5bT.append(tTpl)\n bypm.add(tTpl)\n return U5bT",
"def kcwm(YKHO) -> 'List':\n ret... | [
"0.8135051",
"0.81071657",
"0.78994274",
"0.7665435",
"0.76505595",
"0.75544333",
"0.7519827",
"0.75183785",
"0.74825877",
"0.7432918",
"0.7180456",
"0.7106987",
"0.7062618",
"0.69983023",
"0.6980118",
"0.6966864",
"0.69424653",
"0.6938975",
"0.6922897",
"0.69110525",
"0.6909... | 0.7652376 | 4 |
Determines if n is a pentagonal number. | def kh87(exwG):
bGrB, WKvO = vTAe.solve(3, -1, -2 * exwG)
return ye72(WKvO) and WKvO.is_integer() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W1zZ(exwG: int) -> bool:\n tk5Y = (1 + 24 * exwG) ** 0.5\n return (1 + tk5Y) / 6 % 1 == 0",
"def W1zZ(exwG):\n if (1 + (24 * exwG + 1) ** 0.5) / 6 % 1 == 0:\n return True\n return False",
"def W1zZ(exwG):\n if (1 + (24 * exwG + 1) ** 0.5) % 6 == 0:\n return True\n return Fal... | [
"0.8522858",
"0.8440235",
"0.83206034",
"0.7996045",
"0.7980662",
"0.7979389",
"0.7956935",
"0.7767585",
"0.7568911",
"0.7174495",
"0.7059578",
"0.6889799",
"0.67332184",
"0.65034497",
"0.64901406",
"0.6219915",
"0.61275005",
"0.60998034",
"0.60733044",
"0.60708857",
"0.60448... | 0.8401958 | 2 |
Calculate the least common multiple (LCM) with the GCD | def BsJX(jzdc, Fg_i):
return jzdc * Fg_i // ML2l(jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // d9dQ(jzdc, Fg_i)",
"def BsJX(WKvO, LVAh):\n return WKvO * LVAh // ML2l(WKvO, LVAh)",
"def uMYb(jzdc, Fg_i):\n return jzdc * Fg_i / Bu5e(jzdc, Fg_i)",
"def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)",
"def BsJX(jzdc, Fg_i):\n retur... | [
"0.771724",
"0.75118214",
"0.7377945",
"0.73638743",
"0.7342399",
"0.7342399",
"0.72716194",
"0.7262457",
"0.7256145",
"0.7256122",
"0.7228192",
"0.72239876",
"0.7203598",
"0.7197848",
"0.7197848",
"0.7197848",
"0.71624833",
"0.714713",
"0.71353936",
"0.7112344",
"0.7092204",... | 0.7311851 | 13 |
Calculating the LCM for multiple digits is done with LCM(a,b,c) = LCM(LCM(a,b),c) | def MuqW(jzdc, Fg_i, Z9rn):
return BsJX(BsJX(jzdc, Fg_i), Z9rn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uErw(b7HO: range) -> int:\n vC9B = 1\n for d7pR in b7HO:\n vC9B = BsJX(vC9B, d7pR)\n return vC9B",
"def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // d9dQ(jzdc, Fg_i)",
"def BsJX(mSrU: List[int]) -> int:\n M5u5 = 1\n psoJ = 1\n for mLGw in mSrU:\n psoJ = ML2l(psoJ, mLGw)\n ... | [
"0.74799746",
"0.7416751",
"0.73715514",
"0.7331249",
"0.7331249",
"0.7331249",
"0.72743094",
"0.7223241",
"0.7195648",
"0.7182136",
"0.7175413",
"0.7173182",
"0.715772",
"0.71055746",
"0.7104485",
"0.70987123",
"0.7095417",
"0.70796764",
"0.70796764",
"0.70796764",
"0.707967... | 0.71872914 | 9 |
Returns true if a number is even. | def ubP8(exwG):
return not exwG & 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubP8(FGW3: int) -> bool:\n return FGW3 % 2 == 0",
"def ubP8(mLGw: int) -> bool:\n return mLGw % 2 == 0",
"def ubP8(FGW3):\n if FGW3 % 2 == 0:\n return True\n else:\n return False",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(mLGw):\n return mLGw % 2 == 0",
"def... | [
"0.91461295",
"0.9065452",
"0.9023459",
"0.8955101",
"0.89438593",
"0.8926138",
"0.8837423",
"0.8788827",
"0.8764839",
"0.8730728",
"0.8520685",
"0.84778684",
"0.8459611",
"0.84337556",
"0.840965",
"0.8362662",
"0.8144096",
"0.8134647",
"0.81077707",
"0.8101248",
"0.8086567",... | 0.8236534 | 16 |
Returns true if a number is odd. | def kYZq(exwG):
return exwG & 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYZq(FGW3: int) -> bool:\n return FGW3 % 2 != 0",
"def kYZq(FGW3):\n return FGW3 % 2 != 0",
"def kYZq(FGW3):\n return FGW3 % 2 == 1",
"def kYZq(exwG):\n if exwG % 2:\n return True\n else:\n return False",
"def kYZq(WKvO):\n return WKvO % 2 != 0",
"def kYZq(WKvO):\n ... | [
"0.9080994",
"0.8996677",
"0.89227676",
"0.86833453",
"0.8624675",
"0.8447069",
"0.8394348",
"0.8366546",
"0.8360469",
"0.83546597",
"0.83158505",
"0.8288782",
"0.82833856",
"0.8260126",
"0.82444865",
"0.8240067",
"0.8222919",
"0.8016853",
"0.79482347",
"0.7928637",
"0.787087... | 0.81228924 | 17 |
Shift all the elements in the list by n. | def DkWr(jzdc, exwG=1):
return jzdc[exwG:] + jzdc[:exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0Pp(vC9B: list, exwG: int) -> list:\n return vC9B[-exwG:] + vC9B[:-exwG]",
"def DkWr(fUYa, exwG):\n if exwG == 0:\n return fUYa\n tTpl = oyIN.empty_like(fUYa)\n if exwG >= 0:\n tTpl[:exwG] = oyIN.nan\n tTpl[exwG:] = fUYa[:-exwG]\n else:\n tTpl[exwG:] = oyIN.nan\n ... | [
"0.75024766",
"0.7353221",
"0.73162395",
"0.722238",
"0.7216927",
"0.7197835",
"0.7197835",
"0.7190144",
"0.69390905",
"0.6933694",
"0.67388165",
"0.65248513",
"0.64849293",
"0.6400313",
"0.63938487",
"0.6310599",
"0.6282861",
"0.62806785",
"0.62598115",
"0.6251737",
"0.62077... | 0.77391315 | 0 |
Returns true if a list of numbers is pandigital from 1 up to n. | def W36P(WKvO, exwG, wj1I=False):
return set(WKvO) == set(range(0 if wj1I else 1, exwG + 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def POJ5(exwG: int) -> bool:\n Jjtt = str(exwG)\n for YRbF in range(1, len(Jjtt) + 1):\n if str(YRbF) not in Jjtt:\n return False\n return True",
"def XMRH(FGW3):\n return sorted(list(str(FGW3))) == KUdZ",
"def POJ5(exwG):\n if isinstance(exwG, int):\n exwG = str(exwG)\n... | [
"0.7976703",
"0.7689373",
"0.7605373",
"0.7470757",
"0.7452563",
"0.7234914",
"0.7121272",
"0.7109357",
"0.6803729",
"0.67169833",
"0.65595406",
"0.6474384",
"0.64248985",
"0.63553095",
"0.6286665",
"0.6243434",
"0.61898637",
"0.6164902",
"0.6095151",
"0.6094256",
"0.6013914"... | 0.83244246 | 0 |
Test if a number n is prime ktimes. | def T1qg(exwG, G1Hx):
if exwG <= 1 or exwG == 4:
return False
if exwG <= 3:
return True
if ubP8(exwG):
return False
while G1Hx > 0:
jzdc = tuKI.randint(2, exwG - 1)
if ML2l(exwG, jzdc) != 1:
return False
if WQiS(jzdc, exwG - 1, exwG) != 1:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1qg(exwG):\n G1Hx = 2\n while exwG % G1Hx != 0:\n G1Hx += 1\n if G1Hx < exwG:\n return False\n else:\n return True",
"def T1qg(exwG, G1Hx=10):\n if exwG == 2 or exwG == 3:\n return True\n if not exwG & 1 or exwG < 2:\n return False\n r8hN = exwG - 1\n ... | [
"0.7935233",
"0.78513116",
"0.7781704",
"0.7718821",
"0.7689199",
"0.76649594",
"0.7612282",
"0.75961745",
"0.75961745",
"0.7562867",
"0.7533709",
"0.7504115",
"0.7476252",
"0.7402502",
"0.739179",
"0.7319099",
"0.7317026",
"0.73155737",
"0.7305895",
"0.7296735",
"0.7280601",... | 0.78205246 | 2 |
Find the first index from the right whose element is larger than his neighbour. | def YgCK(V6IE):
YRbF = len(V6IE) - 1
while YRbF > 0 and V6IE[YRbF - 1] >= V6IE[YRbF]:
YRbF -= 1
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvHN(YKHO, qw7D, d6pt):\n vC9B, Mkmy = (0, len(qw7D) - 1)\n TK2h = -1\n while vC9B <= Mkmy:\n x1fj = vC9B + (Mkmy - vC9B) // 2\n if qw7D[x1fj] <= d6pt:\n vC9B = x1fj + 1\n else:\n TK2h = x1fj\n Mkmy = x1fj - 1\n return TK2h",
"def Sf8j(V6IE):\... | [
"0.69773877",
"0.6965572",
"0.68642104",
"0.6846698",
"0.66025203",
"0.6576602",
"0.6528824",
"0.65279424",
"0.6513431",
"0.64999205",
"0.6458335",
"0.6424017",
"0.642034",
"0.6405371",
"0.63683045",
"0.63634926",
"0.6362907",
"0.6344843",
"0.6338257",
"0.6338083",
"0.6335269... | 0.7449399 | 0 |
Find the first index from the right whose element is smaller than his neighbour. | def Sf8j(V6IE):
YRbF = len(V6IE) - 1
while YRbF > 0 and V6IE[YRbF - 1] <= V6IE[YRbF]:
YRbF -= 1
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YgCK(V6IE):\n YRbF = len(V6IE) - 1\n while YRbF > 0 and V6IE[YRbF - 1] >= V6IE[YRbF]:\n YRbF -= 1\n return YRbF",
"def Rr1k(YKHO, xYvp: list[int]) -> int:\n YYmi = 0\n YNus = len(xYvp) - 1\n while YYmi != YNus:\n JtKb = (YYmi + YNus) // 2\n yB8j = xYvp[JtKb]\n mi... | [
"0.73993766",
"0.6832556",
"0.67739224",
"0.66365355",
"0.65787935",
"0.656294",
"0.65551186",
"0.6549718",
"0.6539957",
"0.65252745",
"0.6521195",
"0.65174854",
"0.6508279",
"0.64768",
"0.64746803",
"0.6472778",
"0.64505607",
"0.64353615",
"0.6431772",
"0.64125407",
"0.63896... | 0.7463599 | 0 |
Returns a list with the cumulative sum of a list L. | def _3JK(aPd6):
for YRbF in range(1, len(aPd6)):
aPd6[YRbF] += aPd6[YRbF - 1]
return aPd6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJGg(YKHO, qgK3):\n S06t = []\n for YRbF in range(len(qgK3)):\n if YRbF == 0:\n S06t.append(qgK3[YRbF])\n else:\n S06t.append(S06t[YRbF - 1] + qgK3[YRbF])\n return S06t",
"def _3JK(Uqbu):\n YAq3 = 0\n Mkmy = [0 for Ty9i in Uqbu]\n for YRbF, Ty9i in enumer... | [
"0.81646955",
"0.80187523",
"0.74323314",
"0.735127",
"0.7269006",
"0.70629084",
"0.6967668",
"0.69544303",
"0.67749166",
"0.6676463",
"0.6608064",
"0.6608064",
"0.6608064",
"0.6586359",
"0.6550287",
"0.63230795",
"0.6281289",
"0.6187095",
"0.61505115",
"0.6111453",
"0.605791... | 0.8331271 | 0 |
Initialize an NN with one hidden layer. Weight of the hidden layer is the embedding. | def FIMM(YKHO, NSN5, lhva):
super().__init__()
YKHO.embedding_dim = lhva
YKHO.embeddings = U78l.Embedding(NSN5, lhva)
YKHO.affine = U78l.Linear(lhva, NSN5)
YKHO.init_emb() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n upAO = next(YKHO.parameters()).data\n return iQnE(upAO.new(YKHO.layers, YKHO.batch_size, YKHO.hidden_size).zero_())",
"def FhyR(YKHO, Ep8u):\n upAO = next(YKHO.parameters()).data\n Zode = (upAO.new(YKHO._n_layers * YKHO.directions, Ep8u, YKHO._hidden_size).zero_().to(YKHO.device), u... | [
"0.7965033",
"0.76091236",
"0.7468455",
"0.7224613",
"0.7218272",
"0.72060806",
"0.7202066",
"0.71193534",
"0.6988582",
"0.69583476",
"0.6902648",
"0.68493634",
"0.6843761",
"0.6814984",
"0.6794617",
"0.6781313",
"0.67502886",
"0.6736125",
"0.6729619",
"0.6725083",
"0.6708274... | 0.0 | -1 |
Reads in a pandas dataframe with 'structs' and 'valences' columns. Returms a dictionary with all ions' polarizability parameters. | def P791(YKHO):
NArs = {}
dCvx = YKHO.get_valences()
if not dCvx:
return None
U1Ii, pPe6 = YKHO.ion_class()
SxGb = YKHO.get_coordinations()
try:
for H5ew in SxGb.keys():
hU8D = ZbWC.sub('[^A-Za-z]+', '', H5ew)
SxGb[hU8D] = SxGb.pop(H5ew)
except:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BmDl(jQ3Z, NKkN, J83S, MTci, CGYR):\n import re\n from lenstronomy.Util.param_util import ellipticity2phi_q\n from lenstronomy.Util.param_util import shear_cartesian2polar\n import pandas as rLdf\n RXHc = RaMM(J83S, MTci, CGYR, None)\n EYTZ = jQ3Z.loc[:, 'ID']\n S5cX = jQ3Z.loc[:, 'reduced... | [
"0.56588984",
"0.56161743",
"0.55952996",
"0.54904026",
"0.546902",
"0.529164",
"0.5151079",
"0.5064812",
"0.5024605",
"0.5018308",
"0.5007193",
"0.49960458",
"0.49960136",
"0.49953946",
"0.49878415",
"0.4956519",
"0.49477887",
"0.4942417",
"0.49165404",
"0.49117386",
"0.4857... | 0.0 | -1 |
Hardware version if available. | def YGHx(YKHO):
return YKHO.data.get('hw_ver') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7vW(YKHO):\n HCmI = iquo.GET_HARDWARE_VERSION\n geh0 = YKHO.__send_and_receive(HCmI)\n BWXx = YKHO.__gen_response_value(geh0)\n if BWXx:\n YKHO.hardware_version = BWXx[0][1:]\n else:\n return False",
"def iQc5(YKHO) -> str | None:\n return YKHO.status.get('FIRMWARE')",
"def... | [
"0.7971327",
"0.7812939",
"0.75628585",
"0.7403868",
"0.71892804",
"0.7079321",
"0.70732576",
"0.7002558",
"0.69431925",
"0.6895754",
"0.68952006",
"0.6779089",
"0.6748601",
"0.6748601",
"0.6747525",
"0.67072135",
"0.6643813",
"0.66342306",
"0.6629074",
"0.6612783",
"0.653914... | 0.7925143 | 1 |
Verify that given data overrides environ | def bcKq(YKHO, xBfd, Ehsq):
XP5J = xBfd()
y0cW = f'mock_'
Ehsq.setenv(f'{y0cW}{XP5J.provider_name}_required'.upper(), 'foo')
uDyx = XP5J.notify(required='bar', env_prefix=y0cW)
assert uDyx.status == 'success'
assert uDyx.data['required'] == 'bar' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ckwu():\n global _environ_checked\n if hiXY:\n return\n if Hy7s.name == 'posix' and 'HOME' not in Hy7s.environ:\n import pwd\n Hy7s.environ['HOME'] = pwd.getpwuid(Hy7s.getuid())[5]\n if 'PLAT' not in Hy7s.environ:\n Hy7s.environ['PLAT'] = YsTX.get_platform()\n hiXY = ... | [
"0.6642426",
"0.6541707",
"0.6534115",
"0.62638474",
"0.62410915",
"0.61864275",
"0.6180307",
"0.6178446",
"0.6118315",
"0.61031157",
"0.60184413",
"0.60181314",
"0.5991904",
"0.5988207",
"0.59804714",
"0.597853",
"0.59596884",
"0.59570277",
"0.59444827",
"0.58905166",
"0.587... | 0.6144856 | 8 |
Align the xaxis of coords invert coordinates above the threshold. If you do not align, the average value of the rotation map will be incorrect. | def dG7X(YKHO, P5cF, SGf8=0.03, yJJ5=2, xBwK=90.0, mEcU=True):
if mEcU:
P5cF = jth9.copy(P5cF)
YKHO.dbscan_coords(P5cF, SGf8, yJJ5)
for UXqs in range(oyIN.max(YKHO.dbscan.labels_) + 1):
nIms = None
for or8S, jNOo in enumerate(P5cF):
if YKHO.dbscan.labels_[or8S] == UXqs:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ThfF(YKHO):\n wzhh = YKHO.TiltSeries_._TiltAlignmentParas.cent\n OtIs = YKHO.TiltSeries_._imdimX\n MCm7 = YKHO.TiltSeries_._imdimY\n print(OtIs, MCm7)\n if wzhh[0] != OtIs // 2 + 1 or wzhh[1] != MCm7 // 2 + 1:\n YKHO.TiltSeries_._TiltAlignmentParas.cent = [OtIs // 2 + 1, MCm7 // 2 + 1]",
... | [
"0.6270752",
"0.59773225",
"0.5666243",
"0.5650593",
"0.5631661",
"0.5599575",
"0.55796343",
"0.55618596",
"0.55366474",
"0.54947186",
"0.5449549",
"0.54119194",
"0.5338995",
"0.5311515",
"0.53038174",
"0.52852815",
"0.5281521",
"0.5274515",
"0.52552736",
"0.52191436",
"0.520... | 0.0 | -1 |
Move camera to random position | def qxLP(YKHO):
u6Z5 = [(oyIN.random.rand() - 0.5) * 0.1, (oyIN.random.rand() - 0.5) * 0.1, oyIN.random.rand() * 0.9 + 0.2]
YKHO.move_to(u6Z5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VHEX(YKHO):\n Mkmy = tuKI.randint(0, 3)\n if Mkmy == 0:\n YKHO.x += 1\n elif Mkmy == 1:\n YKHO.y += 1\n elif Mkmy == 2:\n YKHO.x -= 1\n elif Mkmy == 3:\n YKHO.y -= 1",
"def BZN_(YKHO):\n if tuKI.random() < 0.5:\n YKHO.y = (YKHO.y + 1) % 100\n else:\n ... | [
"0.7386138",
"0.70071167",
"0.68540794",
"0.6778723",
"0.67470753",
"0.66943437",
"0.6659997",
"0.6598114",
"0.6584725",
"0.6552027",
"0.6417505",
"0.64119756",
"0.6408727",
"0.6398622",
"0.63780385",
"0.63716376",
"0.63701326",
"0.6346462",
"0.63422394",
"0.6337698",
"0.6337... | 0.72923326 | 1 |
Add quaternion to target pixel | def oMRf(YKHO, Xlvp, nfKA, vexM):
BGSy, p6S0 = oyIN.where(F5mG(YKHO.height, YKHO.width, nfKA, Xlvp, radius=50))
P4FK = p6S0 + BGSy * YKHO.width
for or8S in P4FK:
if YKHO.average:
YKHO._rotations_buffer[or8S].append(vexM.tolist())
YKHO._rotations[or8S] = vexM.tolist() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b4BA(YKHO, vexM):\n YKHO._normalise()\n return YKHO * vexM * YKHO.conjugate",
"def ViI5(hbUd, cJsZ):\n PKKQ, nJ9F, nxyw, cflT = cJsZ\n s1k6, o4D3, si3g, Rtnc = hbUd\n return ht2j.cuda.FloatTensor([-o4D3 * nJ9F - si3g * nxyw - Rtnc * cflT + s1k6 * PKKQ, o4D3 * PKKQ + si3g * cflT - Rtnc * nxyw +... | [
"0.6438959",
"0.6425648",
"0.6224595",
"0.60717285",
"0.6026446",
"0.5997901",
"0.5965803",
"0.5942622",
"0.58422667",
"0.58208823",
"0.57938117",
"0.57823616",
"0.5717632",
"0.56897116",
"0.56224173",
"0.56224173",
"0.5584455",
"0.55586374",
"0.5546544",
"0.55264205",
"0.549... | 0.6486773 | 0 |
Check whether PyOP2 has been yet initialised but not yet finalised. | def QG4B():
return jnIH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLeO(YKHO):\n return len(YKHO.ops) > 0",
"def G96d(YKHO) -> bool:\n return len(YKHO) > 0",
"def KeU_(YKHO) -> bool:\n return YKHO._exchange_params_by_currency_id is not None and YKHO._utility_params_by_good_id is not None and (YKHO._transaction_fees is not None)",
"def KeU_(YKHO) -> bool:\n r... | [
"0.6709851",
"0.65721846",
"0.63601816",
"0.62607545",
"0.61877376",
"0.6032089",
"0.6004365",
"0.5961692",
"0.58815646",
"0.58815646",
"0.5861061",
"0.5861061",
"0.5856769",
"0.58521485",
"0.58294636",
"0.58094513",
"0.5788506",
"0.5786367",
"0.57676417",
"0.57675046",
"0.57... | 0.58327687 | 14 |
Builds the soft position embedding layer. | def FIMM(YKHO, wjbX, B1Wx):
super().__init__()
YKHO.embedding = U78l.Linear(4, wjbX, bias=True)
YKHO.grid = HrYB(B1Wx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(YKHO, Tnh1):\n if YKHO.use_type_embeddings:\n YKHO.type_embeddings = YKHO.add_weight('token_type_embeddings', shape=[YKHO.token_type_vocab_size, YKHO.word_embedding_width], initializer=DTX1(YKHO.initializer_range), dtype=YKHO.dtype)\n YKHO.position_embeddings = None\n if YKHO.use_position_... | [
"0.69787043",
"0.68255764",
"0.65567356",
"0.64129466",
"0.6338233",
"0.6317087",
"0.6184793",
"0.61430395",
"0.6114303",
"0.6098443",
"0.60975045",
"0.60855806",
"0.60527855",
"0.6040693",
"0.6037953",
"0.6034154",
"0.6028856",
"0.6008823",
"0.6006079",
"0.5994261",
"0.59707... | 0.0 | -1 |
return duration in ms | def EdTY(YKHO) -> int:
return int(YKHO._frame_count / YKHO._fps * 1000) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE():\n JRmW, WbTE = Jd2p()\n return WbTE",
"def WbTE(YKHO):\n return float('{0:.2f}'.format(YKHO.end_time - YKHO.start_time))",
"def WbTE(YKHO):\n YKHO._current_duration = ITS7.perf_counter() - YKHO._duration_start\n return round(YKHO._current_duration, 4)",
"def tHA7(YKHO):\n return... | [
"0.8198213",
"0.8135683",
"0.8001177",
"0.79982626",
"0.7969093",
"0.7958475",
"0.792942",
"0.7917078",
"0.7917078",
"0.78779304",
"0.7855336",
"0.77842885",
"0.7773819",
"0.777192",
"0.777192",
"0.77588755",
"0.77551085",
"0.7743518",
"0.77424026",
"0.7739521",
"0.7737986",
... | 0.7620283 | 38 |
Returns About US content from static JSON file '/api/resources/aboutus.json' | def ld7B(QePW):
try:
Ux0P = 'api/resources/about-us.json'
nUeQ = open(Ux0P, 'r')
nPrm = nUeQ.read()
nPrm = qQXR.loads(nPrm)
nUeQ.close()
except (IOError, ValueError):
nPrm = {'description': 'Error in fetching content.'}
return oGir(nPrm, status=jGRS.HTTP_5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n nPrm = []\n with open('data/company.json', 'r', encoding='utf-8') as zgjV:\n nPrm = qQXR.load(zgjV)\n return TvZl('about.html', page_title='About Us', company=nPrm)",
"def AGH9():\n return TvZl('about_us.html')",
"def AGH9():\n return TvZl('about_us.html')",
"def PzLT():\n... | [
"0.76732886",
"0.6446097",
"0.64255077",
"0.62863696",
"0.6154729",
"0.6136861",
"0.60952646",
"0.6062029",
"0.60210794",
"0.5977289",
"0.592536",
"0.58792615",
"0.5871299",
"0.586382",
"0.5852385",
"0.582388",
"0.5808138",
"0.58007264",
"0.57934916",
"0.57584137",
"0.5744753... | 0.853148 | 0 |
The command string formatted for the device | def N2an(YKHO):
return '%s %s' % (YKHO.locCmdID, YKHO.cmdStr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n0JH(oUZx):\n eH5C = ''\n G9jH.debug(repr(oUZx))\n for d7pR in oUZx:\n if ' ' in d7pR:\n eH5C = eH5C + ' \"' + d7pR + '\"'\n else:\n eH5C = eH5C + ' ' + d7pR\n return eH5C",
"def oUZx(YKHO):\n return YKHO.command_.format(YKHO.x)",
"def ihEb(YKHO) -> str:\n... | [
"0.7277228",
"0.6961077",
"0.690658",
"0.68924063",
"0.6887406",
"0.67349434",
"0.672448",
"0.67003304",
"0.66987664",
"0.6636662",
"0.65768224",
"0.65441066",
"0.6485929",
"0.6469022",
"0.6437063",
"0.6416468",
"0.6416421",
"0.6394368",
"0.63923866",
"0.63922817",
"0.6329665... | 0.7348314 | 0 |