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 |
|---|---|---|---|---|---|---|
Given a sentence (as a string or a list of words), return all ngrams of order n in a list of tuples [(w1, w2), (w2, w3), ... ] bounds=True includes and tags in the ngram list | def fQJN(UOrz, _dZy, exwG=2, X7zS=False, CZBi=False):
pCSA = []
V22M = _dZy.split()
if X7zS:
V22M = ['<start>'] + V22M + ['<end>']
ywwl = len(V22M)
for YRbF in range(exwG - 1, ywwl):
u8Mh = V22M[YRbF - exwG + 1:YRbF + 1]
if CZBi:
pCSA.append('_'.join(u8Mh))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RisN(_dZy, exwG=2, X7zS=False, CZBi=False):\n pCSA = []\n V22M = _dZy.split()\n if exwG == 1:\n return V22M\n if X7zS:\n V22M = ['<start>'] + V22M + ['<end>']\n ywwl = len(V22M)\n for YRbF in range(exwG - 1, ywwl):\n u8Mh = V22M[YRbF - exwG + 1:YRbF + 1]\n if CZBi:... | [
"0.7762685",
"0.752196",
"0.74809235",
"0.74123985",
"0.73960185",
"0.7333432",
"0.7308459",
"0.71867996",
"0.7145236",
"0.7145236",
"0.7145236",
"0.71401054",
"0.71329236",
"0.71224374",
"0.71095616",
"0.7098593",
"0.70962626",
"0.70814174",
"0.70684886",
"0.7056647",
"0.704... | 0.6787836 | 45 |
A view that streams a large CSV file. | def khN2(YKHO, QePW, *qIxc, **B2fa):
SR0I = YKHO.filter_queryset(YKHO.get_queryset())
B2Dn = YKHO.paginate_queryset(SR0I)
if B2Dn is not None:
ZMzz = YKHO.get_serializer(B2Dn, many=True)
return YKHO.get_paginated_response(ZMzz.data)
cIuE = A4sY
B2fa['context'] = YKHO.get_serializer_c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J6Ih(QePW):\n SR0I = owDy.objects.all()\n ZMzz = g8pK()\n return D7I_(SR0I, ZMzz)",
"def G1rZ(QePW):\n SR0I = oPx1.objects.all()\n ZMzz = M1cz()\n return D7I_(SR0I, ZMzz)",
"def z36O(pmON):\n with open(pmON, newline='') as eHNT:\n return GB8g(eHNT)",
"def bnFJ(QePW):\n Napc... | [
"0.6662013",
"0.6587355",
"0.64403766",
"0.63362163",
"0.60432744",
"0.59155834",
"0.5895472",
"0.5866759",
"0.5823763",
"0.5713033",
"0.56752133",
"0.5639227",
"0.561475",
"0.56117547",
"0.5606154",
"0.55895776",
"0.55800045",
"0.5575271",
"0.55703276",
"0.5561878",
"0.55525... | 0.5337375 | 44 |
Returns a list of all categories | def NMoC(YKHO):
return {'categories': LH1I()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LU07(Emd4):\n return LeZt",
"def rNmM():\n return qZuN.objects.all()",
"def LH1I(YKHO) -> x1iM[qZuN]:\n return YKHO.categories",
"def LQuW(YKHO):\n LeZt = ''\n for YRbF in YKHO.category.all():\n LeZt += YRbF.name + ' '\n return LeZt",
"def LQuW(YKHO):\n return YKHO.categorie... | [
"0.892473",
"0.86324286",
"0.86174405",
"0.8560628",
"0.8538839",
"0.8538839",
"0.8384292",
"0.83536774",
"0.83267784",
"0.82876456",
"0.8277616",
"0.82385725",
"0.8220602",
"0.81941247",
"0.81933695",
"0.8179727",
"0.8141349",
"0.81367254",
"0.8132877",
"0.8116395",
"0.81086... | 0.7683927 | 53 |
Returns N uniformly spread colors from the given colormap (specified by its name). | def mvm2(GwBX, ywwl, UZ9S=True):
iMGt = NCru(GwBX, return_rgb=UZ9S)
if ywwl < 2:
raise ValueError('N must be > 1')
if ywwl <= len(iMGt):
_0VL = oyIN.floor(oyIN.linspace(0, len(iMGt) - 1, num=min(len(iMGt), ywwl), endpoint=True)).astype(oyIN.int32)
return [iMGt[or8S] for or8S in _0VL]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fRt4(MYQr, exwG):\n iMGt = QrM1.get_cmap(MYQr)\n JnI8 = iMGt.N\n if exwG == 1:\n return [iMGt(int(0.5 * JnI8))]\n else:\n return [iMGt(int(G1Hx * JnI8 / (exwG - 1))) for G1Hx in range(exwG)]",
"def frP3(ywwl, em8M='Dark2'):\n YDzg = QrM1.get_cmap(em8M)\n return [YDzg(Z9rn) for... | [
"0.7482743",
"0.7388053",
"0.7069269",
"0.69963",
"0.69963",
"0.6858544",
"0.6658722",
"0.66094637",
"0.6582485",
"0.6554517",
"0.65471494",
"0.6543977",
"0.6511309",
"0.64961183",
"0.6484163",
"0.6401639",
"0.63705575",
"0.62898487",
"0.6281918",
"0.62561685",
"0.6240069",
... | 0.73757505 | 2 |
Send a DELETE request to a given endpoint. | def RoLj(YKHO, pmON):
YKHO.oauth.delete(url='%s%s' % (KzU8.ROOT, pmON), headers=YKHO._request_header(), auth=YKHO.oauth.auth) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RoLj(YKHO, w2IS: str) -> G4JS.Response:\n G9jH.debug(f'Deleting data at {w2IS}')\n return YKHO._make_request('DELETE', w2IS)",
"def PTpj(YKHO, w2IS: str, **B2fa) -> dict:\n return YKHO._request('DELETE', w2IS, **B2fa)",
"def PTpj(YKHO, w2IS: str, NArs: OptionalDict=None, **B2fa):\n return YKHO.... | [
"0.83143735",
"0.826719",
"0.8228184",
"0.81287944",
"0.7746109",
"0.77426356",
"0.7645275",
"0.7546355",
"0.74793714",
"0.74769175",
"0.74665177",
"0.7427402",
"0.74126667",
"0.7379253",
"0.7372886",
"0.7346337",
"0.72998136",
"0.72926664",
"0.72890264",
"0.72747314",
"0.721... | 0.0 | -1 |
returns paths of all datafiles within a directory (recursively) | def M40A(eHKs, TZvm=True):
ckRy = []
if TZvm:
for pmON, uRGD, Akyc in Hy7s.walk(eHKs):
ckRy += [Hy7s.path.join(pmON, nUeQ) for nUeQ in Akyc if not nUeQ.endswith('.DS_Store')]
else:
for nUeQ in Hy7s.listdir(eHKs):
XP5J = Hy7s.path.join(eHKs, nUeQ)
if Hy7s.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n7QW():\n YEHo = []\n for AQSv, bGrB, iumf in Hy7s.walk('data'):\n for Ux0P in iumf:\n YEHo.append(Hy7s.path.join(AQSv, Ux0P))\n return YEHo",
"def zQ3F(mSqg):\n Bq4s = []\n for pmON, eQqJ, RRlC in Hy7s.walk(mSqg):\n for mWFP in RRlC:\n if mWFP.endswith('run... | [
"0.8400079",
"0.78073144",
"0.7605273",
"0.7557829",
"0.74898726",
"0.74122167",
"0.7364796",
"0.729506",
"0.7285438",
"0.7276656",
"0.72494024",
"0.72417504",
"0.7233539",
"0.7215761",
"0.71687",
"0.7137972",
"0.7127938",
"0.7123643",
"0.70964104",
"0.70865095",
"0.70796496"... | 0.73479396 | 7 |
Tests that ConstantPressure.thermalize_barostat_dof can be called. | def aCkQ(YKHO, WN6g, cdbf):
vcEk = nScl.filter.All()
eQHC = nScl.md.methods.ConstantPressure(filter=vcEk, thermostat=nScl.md.methods.thermostats.Bussi(1.5), S=[1, 2, 3, 0.125, 0.25, 0.5], tauS=2.0, box_dof=[True, True, True, True, True, True], couple='xyz')
sg14 = WN6g(cdbf())
sg14.operations.integrator... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dt6f(_LTI):\n enxe = 2\n tpio = 10\n PFC2 = (2 * _LTI + 1) * oyIN.identity(tpio)\n wEf2 = u7Rs(PFC2, hbar=enxe)\n assert wEf2",
"def fJIw(YKHO, RFfN):\n cDK5 = 10000\n xeS3 = 0.5\n WTkW = (2 * xeS3 + 1) * oyIN.identity(2)\n gGnb = RFfN(WTkW, samples=cDK5)\n Pyrc = oyIN.arange(0,... | [
"0.60399973",
"0.60183996",
"0.6016423",
"0.58662456",
"0.5838805",
"0.5711621",
"0.56797546",
"0.5633519",
"0.5594674",
"0.54959154",
"0.54768336",
"0.5475109",
"0.54749584",
"0.54661596",
"0.5436099",
"0.5396413",
"0.53532153",
"0.5318022",
"0.5298656",
"0.52490366",
"0.521... | 0.75995564 | 0 |
Return the plugin manager, if there is one. | def OqXD() -> h8nf[p246.ArmiPluginManager]:
global _app
if wMcu is None:
return None
return wMcu.pluginManager | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p246(YKHO):\n return YKHO._pm",
"def ddDJ(Emd4):\n raise RuntimeError(Emd4.__name__ + ': must implement the class method get_plugin_manager.')",
"def Z_6v(YKHO):\n nDMj = gk2W.c_void_p()\n ZSvt = YKHO.mAPIContext.SDApplication_getPluginMgr(YKHO.mHandle, gk2W.byref(nDMj))\n if ZSvt != ll8f.No... | [
"0.8313428",
"0.77556956",
"0.7714734",
"0.7582108",
"0.7357924",
"0.7350042",
"0.72983295",
"0.7259794",
"0.71699256",
"0.7024991",
"0.6938219",
"0.6838613",
"0.67152774",
"0.66943",
"0.66680413",
"0.6614495",
"0.6600337",
"0.65908945",
"0.6559862",
"0.65540934",
"0.65268326... | 0.8245571 | 1 |
Set the plugin manager for the Framework and configure internals to those plugins. | def lWLw(P4t4: Optional[apps.App]=None):
global _app
global _ARMI_CONFIGURE_CONTEXT
if DX0k:
return
if wMcu is not None:
raise Bx6I.OverConfiguredError(UI_d)
assert not jx03.context.BLUEPRINTS_IMPORTED, 'ARMI can no longer be configured after blueprints have been imported. Blueprints... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRfg(YKHO):\n raise NotImplementedError",
"def lWLw(c4tt):\n global __plugins\n HiTe = c4tt\n G9jH.debug('plugins: %s', HiTe)",
"def p246(YKHO):\n return YKHO._pm",
"def ddDJ(Emd4):\n raise RuntimeError(Emd4.__name__ + ': must implement the class method get_plugin_manager.')",
"def U5... | [
"0.7110027",
"0.66824585",
"0.664053",
"0.6571709",
"0.6531332",
"0.6497812",
"0.64824915",
"0.64675707",
"0.6303692",
"0.62664044",
"0.6227594",
"0.6216894",
"0.6185257",
"0.61815286",
"0.6134232",
"0.6120767",
"0.60604614",
"0.6049042",
"0.6047365",
"0.6022545",
"0.6008372"... | 0.0 | -1 |
Tests the API endpoint to cancel margin order | def _caC():
x0hE = i9zE(H5ew, DXni)
geh0 = x0hE.cancel_margin_order('ETHBTC', orderId=cruO)
geh0.should.equal(eF9l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UJFK():\n x0hE = i9zE(H5ew, DXni)\n x0hE.cancel_margin_order.when.called_with('').should.throw(_bAh)",
"def RnPq():\n x0hE = i9zE(H5ew, DXni)\n x0hE.cancel_margin_order.when.called_with('ETHBTC', orderId='').should.throw(nheh)",
"def sKez():\n x0hE = i9zE(H5ew, DXni)\n geh0 = x0hE.cancel_... | [
"0.7038335",
"0.6724003",
"0.6548669",
"0.6329089",
"0.63062227",
"0.60577154",
"0.59606457",
"0.59606385",
"0.59606385",
"0.595203",
"0.5825244",
"0.5825244",
"0.5752617",
"0.5682893",
"0.568075",
"0.5658104",
"0.5633217",
"0.56330925",
"0.56236744",
"0.56115454",
"0.5604328... | 0.5972919 | 6 |
Get the value of changedtick for this buffer. | def CZmK(YKHO) -> int:
return YWvJ(int, YKHO.handler.vimvar('changedtick')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ueki(YKHO):\n return CKog.current_listener._value",
"def BWXx(YKHO):\n YKHO.check_change()\n return YKHO.val",
"def ymiv(YKHO):\n return YKHO.buffer.getvalue()",
"def HG2z(YKHO):\n return YKHO.clock_channel",
"def UnfG(YKHO):\n return oUZx._getAccel()",
"def UnfG(YKHO):\n return ... | [
"0.6012414",
"0.58566844",
"0.58474797",
"0.57582384",
"0.5746837",
"0.5741299",
"0.5691199",
"0.5669653",
"0.5658063",
"0.56408805",
"0.5579002",
"0.5570574",
"0.5510001",
"0.5502566",
"0.5489874",
"0.547375",
"0.5454525",
"0.54533386",
"0.5446055",
"0.5433704",
"0.5433031",... | 0.77077377 | 0 |
This test evaluates if a Profile proxy model is created when a user is created. | def wWIJ(YKHO) -> 'None':
PzM2 = SYRW.objects.filter(user=YKHO.user)
YKHO.assertTrue(PzM2.exists()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S7G8(YKHO):\n YKHO.assertTrue(SYRW.objects.exists())",
"def fk2r(YKHO):\n CBIr = mv1M.objects.create_user('auto_tester', 'auto_tester@example.com', 'auto_tester')\n z39Z = CBIr.get_profile()\n Ej5C(z39Z is not None)\n NaW5(False, z39Z.username_changes)",
"def hUHA(YKHO):\n CBIr = mv1M.obj... | [
"0.7724555",
"0.7606489",
"0.7496749",
"0.7490074",
"0.7480746",
"0.7417368",
"0.74007326",
"0.73245615",
"0.73022527",
"0.7292429",
"0.72620815",
"0.71893215",
"0.70666444",
"0.7044095",
"0.70073277",
"0.7000458",
"0.6950112",
"0.6943469",
"0.6926917",
"0.69104904",
"0.68942... | 0.7644979 | 1 |
This test evaluates if when we create an user the password is encrypted. | def tcYk(YKHO) -> 'None':
YKHO.assertNotEqual(YKHO.raw_password, YKHO.user.password) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDXr(YKHO):\n ye_1 = {'username': Edpv['username'], 'password': inZ1(Edpv['password'], E4Up), 'enabled': 'True'}\n YKHO.assertEqual(mv1M.get(Edpv['username']), ye_1)",
"def u8Ev(YKHO):\n D3lj = 'tanvirfaisaldev@gmail.com'\n jTXt = '123456'\n CBIr = egNl().objects.create_user(email=D3lj, passwo... | [
"0.7608316",
"0.74531823",
"0.7423579",
"0.7410538",
"0.73689336",
"0.7235277",
"0.7213616",
"0.71157986",
"0.71139646",
"0.7077184",
"0.7063231",
"0.7053249",
"0.7031901",
"0.7017117",
"0.69945216",
"0.69781154",
"0.6962679",
"0.6959324",
"0.69473684",
"0.6943415",
"0.693567... | 0.8227562 | 0 |
Checks that when we create a new user is not verified by default and need to confirm its email. | def ynNZ(YKHO) -> None:
YKHO.assertFalse(YKHO.user.is_email_verified) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rWOG(YKHO):\n CBIr = mv1M.objects.filter(username=oAlm['username']).first()\n CBIr.email_confirmed = True\n CBIr.save()",
"def sYud(YKHO):\n geh0 = YKHO._run_api_v2_user_register(YKHO.user_data)\n gtbI = _J2v.objects.get(user__username=geh0.data['username'])\n YKHO._check_response(geh0, {'f... | [
"0.7652184",
"0.7498697",
"0.74553525",
"0.7368301",
"0.7259998",
"0.72256905",
"0.7155112",
"0.7134867",
"0.71286523",
"0.7125184",
"0.71065646",
"0.7043353",
"0.7030181",
"0.7014153",
"0.6986469",
"0.69710803",
"0.6940481",
"0.6931809",
"0.6925242",
"0.6902191",
"0.6893428"... | 0.73416245 | 4 |
Creates six Movie objects, initialising these objects with title, storyline, poster image link, video trailer link and release date. | def b8V_():
Ys31 = qoQs.Movie('The Martian', 'A man is stuck on Mars', 'https://upload.wikimedia.org/wikipedia/en/c/cd/The_Martian_film_poster.jpg', 'https://www.youtube.com/watch?v=lQqhfq87FgY', 'October 2, 2015')
Mxk0 = qoQs.Movie('Contact', 'We make contact with aliens', 'https://upload.wikimedia.org/wikiped... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, EiNU, pTZR, GXjR, RUE3, jpt9):\n YKHO.title = EiNU\n YKHO.storyline = pTZR\n YKHO.poster_image_url = GXjR\n YKHO.trailer_youtube_url = RUE3\n YKHO.release_date = jpt9",
"def FIMM(YKHO, EiNU, pTZR, jpt9, GXjR, RUE3):\n YKHO.title = EiNU\n YKHO.storyline = pTZR\n YKHO.release... | [
"0.72464806",
"0.72348917",
"0.71340585",
"0.71033823",
"0.7097436",
"0.7086013",
"0.7082976",
"0.7073202",
"0.7066726",
"0.7066726",
"0.7066726",
"0.7066726",
"0.7066726",
"0.7066726",
"0.7066726",
"0.7056276",
"0.70536506",
"0.7028657",
"0.7028657",
"0.7028657",
"0.7000236"... | 0.6489647 | 51 |
Create a BQ table of invalid ISBNs for the ONIX feed that can be fed back to publishers. No attempt is made to normalise the string so we catch as many string issues as we can. | def CwTl(YKHO, Tl0b: OnixWorkflowRelease, **B2fa):
DbJC = n3pL(YKHO.cloud_workspace.project_id, YKHO.bq_onix_dataset_id, YKHO.bq_onix_table_name, Tl0b.onix_snapshot_date)
fV5K = 'onix_invalid_isbn'
GYJw = n3pL(YKHO.cloud_workspace.project_id, YKHO.bq_oaebu_data_qa_dataset, fV5K, Tl0b.snapshot_date)
jGRS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uL4r(LC9z):\n print('[ibs] fixing invalid nids (nids that are <= ibs.UKNOWN_NAME_ROWID)')\n bWBA = LC9z._get_all_known_name_rowids()\n pomt = LC9z.get_name_texts(bWBA, apply_fix=False)\n gmhT = [oWrg <= PtXs.UNKNOWN_NAME_ROWID for oWrg in bWBA]\n if any(gmhT):\n ptsO = Oa8f.compress(bWBA,... | [
"0.61812073",
"0.5365632",
"0.52755105",
"0.5245834",
"0.52189475",
"0.5193109",
"0.5184615",
"0.5181726",
"0.51731867",
"0.5157659",
"0.5142278",
"0.51365364",
"0.5130973",
"0.5129644",
"0.5080557",
"0.50665736",
"0.5064758",
"0.49982584",
"0.49914432",
"0.4990687",
"0.49748... | 0.4724578 | 53 |
Create a BQ table of invalid ISBNs for the ONIX feed that can be fed back to publishers. No attempt is made to normalise the string so we catch as many string issues as we can. | def dJMK(YKHO, *, DbJC: str, GYJw: str, Z5r0: str, itjy: str=None) -> bool:
ovN8(project_id=YKHO.cloud_workspace.project_id, dataset_id=YKHO.bq_oaebu_data_qa_dataset, location=YKHO.cloud_workspace.data_location, description='OAEBU Quality Analysis Tables')
Q0rt = Hy7s.path.join(aJB6(), 'validate_isbn.sql.jinja2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uL4r(LC9z):\n print('[ibs] fixing invalid nids (nids that are <= ibs.UKNOWN_NAME_ROWID)')\n bWBA = LC9z._get_all_known_name_rowids()\n pomt = LC9z.get_name_texts(bWBA, apply_fix=False)\n gmhT = [oWrg <= PtXs.UNKNOWN_NAME_ROWID for oWrg in bWBA]\n if any(gmhT):\n ptsO = Oa8f.compress(bWBA,... | [
"0.6180019",
"0.5364998",
"0.5275037",
"0.5244242",
"0.52184874",
"0.5192256",
"0.5183378",
"0.51820266",
"0.51715195",
"0.5156467",
"0.51391816",
"0.513444",
"0.51290715",
"0.50783056",
"0.50666815",
"0.5064272",
"0.49968863",
"0.49896017",
"0.49887174",
"0.49727723",
"0.495... | 0.51282084 | 13 |
Create a BQ table of invalid ISBNs for the Google Analytics feed. No attempt is made to normalise the string so we catch as many string issues as we can. | def qw8k(YKHO, Tl0b: OnixWorkflowRelease, kg23: OaebuPartner, GTA_: str, Z5r0: str, **B2fa):
if kg23.sharded:
DbJC = n3pL(YKHO.cloud_workspace.project_id, kg23.bq_dataset_id, kg23.bq_table_name, Tl0b.snapshot_date)
else:
DbJC = cLlZ(YKHO.cloud_workspace.project_id, kg23.bq_dataset_id, kg23.bq_ta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uL4r(LC9z):\n print('[ibs] fixing invalid nids (nids that are <= ibs.UKNOWN_NAME_ROWID)')\n bWBA = LC9z._get_all_known_name_rowids()\n pomt = LC9z.get_name_texts(bWBA, apply_fix=False)\n gmhT = [oWrg <= PtXs.UNKNOWN_NAME_ROWID for oWrg in bWBA]\n if any(gmhT):\n ptsO = Oa8f.compress(bWBA,... | [
"0.54908043",
"0.5370521",
"0.5278545",
"0.52004784",
"0.5154771",
"0.5144275",
"0.51426935",
"0.5059535",
"0.49712843",
"0.49298754",
"0.49259928",
"0.49201027",
"0.49144977",
"0.48952574",
"0.48891446",
"0.48595667",
"0.48514265",
"0.48442456",
"0.48370925",
"0.48264644",
"... | 0.0 | -1 |
Convert a memcache string into a displayable representation. Make a memcache string into a text string that can be displayed or edited. While called a string, it is technically just an array of bytes. Because we do not know what encoding the bytes are (and possibly they are not an encoded text string for example they c... | def Mtfr(l26N):
return l26N.encode('string-escape').decode('ascii') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PI6f(bF4J):\n return bF4J.encode('ascii').decode('string-escape')",
"def tprI(YKHO, vIwR, wyyA, q5ZJ):\n if T_fh(vIwR):\n return YKHO.parse_string(wyyA.decode(vIwR, q5ZJ), wyyA, q5ZJ)\n if uSKA(vIwR, q5ZJ):\n wyyA.encode(vIwR, q5ZJ)\n return YKHO.parse_string(vIwR, wyyA, q5ZJ)",
"... | [
"0.57373834",
"0.5596068",
"0.55804795",
"0.5257069",
"0.5246188",
"0.5196832",
"0.51910913",
"0.5162547",
"0.5157757",
"0.51524407",
"0.5137162",
"0.51256907",
"0.5116547",
"0.5096384",
"0.5087717",
"0.50795615",
"0.5061209",
"0.5059936",
"0.50568193",
"0.5054647",
"0.500169... | 0.7145898 | 0 |
Record the starting time | def QeRe(YKHO):
YKHO._start = ITS7.time() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4lU(YKHO):\n pass",
"def n5qL(YKHO):\n YKHO.START_TIME = '%s -:- %s' % (YKHO.get_current_date_str(), YKHO.get_current_time_str())",
"def SWox(YKHO) -> int:\n pass",
"def SWox(YKHO):\n raise NotImplementedError()",
"def yKcO(YKHO):\n YKHO.start_time = qcWV.now()",
"def Mo_l(YKHO) -> in... | [
"0.79389435",
"0.7889672",
"0.7706477",
"0.76150346",
"0.7611342",
"0.74582505",
"0.7452651",
"0.7364388",
"0.7364388",
"0.7360387",
"0.73099554",
"0.72860646",
"0.72768265",
"0.7258925",
"0.72547215",
"0.72303706",
"0.72140974",
"0.72069687",
"0.72011465",
"0.72011465",
"0.7... | 0.0 | -1 |
Returns the given HTML with all tags stripped. | def Xosv(BWXx):
l5Ny = _R2e.unescape(ZbWC.sub('<[^>]*?>', '', BWXx)).replace('\n', ' ')
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aAsi(_R2e):\n return ''.join(rKuS(_R2e).findAll(text=True))",
"def wWmY(YKHO, _R2e, raOZ=('img', 'a')):\n if FdPd is not None:\n WhY1 = raOZ\n l5Ny = FdPd(_R2e, ignore_tags=WhY1, indent_width=4, page_width=80)\n return l5Ny\n return _R2e",
"def PKBK(_R2e):\n KCHu = ugbK()\n... | [
"0.8452654",
"0.84039533",
"0.83036953",
"0.82644016",
"0.8156527",
"0.8120234",
"0.80437136",
"0.80396926",
"0.80318546",
"0.8023751",
"0.8011846",
"0.7975748",
"0.793794",
"0.7924657",
"0.79026854",
"0.7898923",
"0.78880346",
"0.78805935",
"0.78768563",
"0.78692776",
"0.786... | 0.0 | -1 |
Query a license which is upgraded from enteliWEB to enteliWEB_V2 | def N56n(YKHO):
ESjr = YKHO.lg
Lx3t = YKHO.put['product']
Pt6R = YKHO.put['serial']
AdfU = YKHO.put['lg']['query components']
xPxz = YKHO.put['lg']['site info']
nyyK = True
KhqK = "Query Upgraded License for %s '%s':\n" % (Lx3t, Pt6R)
nyyK = YKHO.command_Query_License(Lx3t, Pt6R, KhqK)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO):\n return YKHO._get('/showlicenseinfo')",
"def MHHJ(YKHO):\n pass",
"def GkVn(YKHO):\n geh0 = BDwY.get_license('015020')\n YKHO.assertEqual(type(geh0['results']), dict)\n YKHO.assertTrue('license_number' in geh0['results'].keys())",
"def license(YKHO, license):\n xDcj = YK... | [
"0.6535947",
"0.6526101",
"0.6449644",
"0.63137007",
"0.62387824",
"0.6211511",
"0.6143593",
"0.6142601",
"0.6125645",
"0.61200315",
"0.60993594",
"0.6077554",
"0.606761",
"0.6036515",
"0.6027047",
"0.59824157",
"0.59824157",
"0.5970747",
"0.59140486",
"0.58756524",
"0.583131... | 0.66554236 | 0 |
Generate sublists from an iterator >>> list(iterwindow(iter(range(10)),11)) [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]] >>> list(iterwindow(iter(range(10)),9)) [[0, 1, 2, 3, 4, 5, 6, 7, 8], [9]] >>> list(iterwindow(iter(range(10)),5)) [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]] >>> list(iterwindow(iter(range(10)),3)) [[0, 1, 2], [3, 4, 5]... | def MWYj(vC9B, slice=50):
assert slice > 0
jzdc = []
for WKvO in vC9B:
if len(jzdc) >= slice:
yield jzdc
jzdc = []
jzdc.append(WKvO)
if jzdc:
yield jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def THQj(OxJJ: Iterable[T], yMhW: int) -> bDy6[AzJI[Kt_s, ...]]:\n from collections import deque\n WhY1 = iter(OxJJ)\n assert yMhW > 0\n oXW8: Brvh[Kt_s] = deque()\n while len(oXW8) < yMhW:\n oXW8.append(next(WhY1))\n yield tuple(oXW8)\n for ZfUD in WhY1:\n oXW8.popleft()\n ... | [
"0.6904243",
"0.67266923",
"0.6663319",
"0.645589",
"0.61888635",
"0.6173533",
"0.6123793",
"0.60302263",
"0.60102344",
"0.60025537",
"0.59872186",
"0.5971564",
"0.5905327",
"0.58863974",
"0.5878944",
"0.584005",
"0.58389306",
"0.58358306",
"0.5820625",
"0.58104014",
"0.57963... | 0.6240789 | 4 |
This signifies the maximum value of TTL up to which the TTL will be incremented while sending echo request packets. | def wm3k(YKHO):
return YKHO._get_attribute('ttlLimit') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BRPb(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_ttl')",
"def BRPb(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_ttl')",
"def _JMi(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'maximum_ttl')",
"def KIZn(SbxQ):\n return max(3 * SbxQ / 1024 / 1024, 5)",
"def h9HD(YKHO) -> h8nf[float]:\... | [
"0.74095356",
"0.74095356",
"0.7063028",
"0.70580596",
"0.6893574",
"0.6893574",
"0.679735",
"0.67681426",
"0.6762419",
"0.6749318",
"0.66494274",
"0.6615774",
"0.6507582",
"0.64740366",
"0.6421767",
"0.6421767",
"0.6421767",
"0.6421767",
"0.6421767",
"0.63800395",
"0.6326402... | 0.7167296 | 2 |
Downloads a blob from the bucket. | def DPRZ(l7rj, JC20, AHTG):
ntiA = S8SU.Client()
WE7e = ntiA.bucket(l7rj)
vxw0 = WE7e.blob(JC20)
vxw0.download_to_filename(AHTG)
print('Blob {} downloaded to {}.'.format(JC20, AHTG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0",
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)",
"def DPRZ(... | [
"0.81216",
"0.7957541",
"0.77650166",
"0.76453996",
"0.7630873",
"0.7603773",
"0.75344056",
"0.7534157",
"0.75023687",
"0.7482801",
"0.7474071",
"0.7474071",
"0.7474071",
"0.7458533",
"0.74574214",
"0.74448717",
"0.7425158",
"0.7425142",
"0.740443",
"0.73784876",
"0.7373136",... | 0.73224795 | 25 |
Fourier Transformation to obtain Efield spectra | def VtXE(YKHO):
if not Hy7s.path.exists('field'):
Hy7s.mkdir('field')
IznC = 'field/Response.txt'
fvDH = 'Time(ps) Source'
for YRbF in range(len(YKHO.idetectors)):
fvDH = fvDH + ' Detector[' + str(YRbF) + ']'
BBBd = oyIN.arange(0, YKHO.mt) * YKHO.dt * 1000000000000.0
BBBd = oyIN.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOWo():\n BkYD, Ux0P = Lecy(['T', 'V'], 'Sweep_dat', 'Select data to be Fourier Transformed')\n BkYD['V'] = cRh5(BkYD['V'], 73, 1)\n jJC3 = 10\n AB03 = 4700\n BkYD = BkYD[jJC3:AB03]\n fQqb = round(1 / oyIN.mean(oyIN.diff(BkYD['T'])), 11)\n u54L = len(BkYD['T'])\n zu3G = R1oI.fft(BkYD['V... | [
"0.6844894",
"0.6706883",
"0.6675934",
"0.653867",
"0.64413637",
"0.6426593",
"0.63742316",
"0.6359775",
"0.63550574",
"0.6335102",
"0.6255531",
"0.6241997",
"0.6228772",
"0.61827576",
"0.6178814",
"0.6173256",
"0.61730903",
"0.6155955",
"0.6138753",
"0.6135606",
"0.6093265",... | 0.5934731 | 34 |
Check if the given node exists. Raises NodeInconsistency for inconsistencies of the internal node model. | def VjDw(YKHO, id):
if id in YKHO._nodes:
if id not in YKHO._tails:
raise YKHO.NodeInconsistency('ID {} in _nodes but not in _tails.'.format(id))
if id not in YKHO._heads:
raise YKHO.NodeInconsistency('ID {} in _nodes but not in _heads.'.format(id))
return True
el... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ux58(YKHO, Q6kx):\n if Q6kx not in YKHO._graph_dict:\n return False\n else:\n return True",
"def VjDw(YKHO, Lnes=None, p5ps=None):\n return naS9.nodes.node_exists(YKHO.khoros_object, Lnes, p5ps)",
"def VjDw(YKHO, Sn9t: str, FJhP: str) -> bool:\n pass",
"def Ierk(YKHO, Q6kx: str)... | [
"0.80466354",
"0.78616464",
"0.74481565",
"0.73966867",
"0.7308754",
"0.72811675",
"0.72757137",
"0.7225216",
"0.7224842",
"0.7223366",
"0.72176105",
"0.71586585",
"0.6993629",
"0.6982683",
"0.6940487",
"0.6832845",
"0.6832845",
"0.6782903",
"0.6725553",
"0.6670227",
"0.66582... | 0.72820944 | 5 |
Check if the given edge exists. Raises EdgeInconsistency for inconsistencies of the internal edge model. | def uFG0(YKHO, J3uN, sdCG):
if (J3uN, sdCG) in YKHO._edges:
if not YKHO.node_exists(J3uN):
raise YKHO.EdgeInconsistency('Edge ({}, {}) in _edges but tail {} does not exist.'.format(J3uN, sdCG, J3uN))
if not YKHO.node_exists(sdCG):
raise YKHO.EdgeInconsistency('Edge ({}, {}) i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipvr(YKHO, D70y):\n hQHm = D70y[0]\n jlSq = D70y[1]\n return [hQHm, jlSq] in YKHO.graph[YKHO.EDGES_KEY] or [jlSq, hQHm] in YKHO.graph[YKHO.EDGES_KEY]",
"def IWu0(YKHO, D70y):\n return YKHO._edges.has_key(D70y.handle)",
"def IWu0(YKHO, yGdP):\n return YKHO.edges_used[yGdP] == 1",
"def IWu0(... | [
"0.78706825",
"0.77046496",
"0.7479556",
"0.7446749",
"0.7432998",
"0.7278273",
"0.71249413",
"0.6947004",
"0.6906273",
"0.690608",
"0.69023395",
"0.6843759",
"0.6782066",
"0.67700183",
"0.6717634",
"0.66893864",
"0.66592133",
"0.66082585",
"0.658426",
"0.6580893",
"0.6568413... | 0.7165635 | 6 |
Check if tag exists in node. Raises NodeMissing if the node does not exist. | def ChdS(YKHO, id, mWFP):
if not YKHO.node_exists(id):
raise YKHO.NodeMissing('No node {}.'.format(id))
return mWFP in YKHO._nodes[id] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ierk(YKHO, Q6kx: str) -> bool:\n pass",
"def VjDw(YKHO, Lnes=None, p5ps=None):\n return naS9.nodes.node_exists(YKHO.khoros_object, Lnes, p5ps)",
"def vtfo(cwrj):\n print(cwrj)\n return True",
"def Ierk(YKHO, exwG):\n try:\n return exwG in YKHO._node\n except TypeError:\n r... | [
"0.70540476",
"0.68158007",
"0.68057287",
"0.6597322",
"0.6573257",
"0.65224576",
"0.65107954",
"0.6482928",
"0.643272",
"0.63490975",
"0.63442594",
"0.63088334",
"0.62907237",
"0.62883884",
"0.6265991",
"0.62618494",
"0.62490433",
"0.62490433",
"0.6242193",
"0.623666",
"0.62... | 0.76616496 | 0 |
Add an edge. Create nodes as necessary. | def bsXo(YKHO, J3uN, sdCG):
YKHO.create_node(J3uN)
YKHO.create_node(sdCG)
id = (J3uN, sdCG)
if not YKHO.edge_exists(J3uN, sdCG):
YKHO._edges[id] = dict()
YKHO._heads[sdCG].add(J3uN)
YKHO._tails[J3uN].add(sdCG)
YKHO.edge_exists(J3uN, sdCG)
return True
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n aF0O, Br5Q = D70y\n YKHO.add_node(aF0O)\n YKHO.add_node(Br5Q)\n YKHO.graph[aF0O].append(Br5Q)",
"def rz7z(YKHO, D70y):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, tTpl):\n pass",
"def rz7z(YKHO, D70y):\n if D... | [
"0.8212626",
"0.8136986",
"0.8136986",
"0.8078887",
"0.8013129",
"0.799031",
"0.7983502",
"0.79168475",
"0.790183",
"0.78994185",
"0.7893624",
"0.7832291",
"0.7827007",
"0.78138626",
"0.78047436",
"0.78023475",
"0.7796585",
"0.77882195",
"0.77874994",
"0.7772369",
"0.7759569"... | 0.0 | -1 |
Get the value of a node tag. Raises NodeMissing if the given node does not exist. Raises NodeTagMissing if the given tag does not exist. | def R8i3(YKHO, id, mWFP):
if not YKHO.node_exists(id):
raise YKHO.NodeMissing('No node {}.'.format(id))
if mWFP not in YKHO._nodes[id]:
raise YKHO.NodeTagMissing('No tag {} in node {}.'.format(mWFP, id))
return YKHO._nodes[id][mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnfG(Q6kx):\n if Q6kx is not None:\n return Q6kx['value']\n return Q6kx",
"def XOTR(Q6kx):\n return Q6kx.text if Q6kx is not None else None",
"def b0hm(YKHO) -> None:\n if YKHO.tag is not None:\n YKHO.value = YKHO.tag.value",
"def b0hm(YKHO) -> None:\n if YKHO.tag is not None... | [
"0.68336457",
"0.6786402",
"0.66689783",
"0.66689783",
"0.66097546",
"0.6604636",
"0.65963703",
"0.65631837",
"0.654124",
"0.6527824",
"0.65229386",
"0.64712405",
"0.64636475",
"0.64397097",
"0.64397097",
"0.64397097",
"0.64397097",
"0.64397097",
"0.64397097",
"0.64397097",
"... | 0.63335305 | 51 |
Get the value of an edge tag. Raises EdgeMissing if the given edge does not exist. Raises EdgeTagMissing if the given tag does not exist. | def wwQW(YKHO, J3uN, sdCG, mWFP):
if not YKHO.edge_exists(J3uN, sdCG):
raise YKHO.EdgeMissing('No edge ({}, {}).'.format(J3uN, sdCG))
if mWFP not in YKHO._edges[J3uN, sdCG]:
raise YKHO.EdgeTagMissing('No tag {} in edge ({}, {}).'.format(mWFP, J3uN, sdCG))
return YKHO._edges[J3uN, sdCG][mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SqrR(YKHO, D70y: Tuple[str, str]):\n if YKHO.digraph_link is not None and D70y in set(YKHO.digraph_link.keys()):\n return YKHO.digraph_link[D70y]\n else:\n return None",
"def qVuS(yvY1, nddV):\n if nddV is None:\n if yvY1.is_multigraph():\n\n def BWXx(P6bq, Ty9i):\n ... | [
"0.68462586",
"0.6244645",
"0.61968523",
"0.61603713",
"0.61260784",
"0.6088012",
"0.60503566",
"0.6038131",
"0.5937165",
"0.57936716",
"0.5774554",
"0.5737436",
"0.5644683",
"0.5641417",
"0.5626392",
"0.56254494",
"0.56036454",
"0.55810666",
"0.5576714",
"0.5576005",
"0.5563... | 0.6363989 | 1 |
Return the count of all nodes. | def bjrl(YKHO):
return len(YKHO._nodes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B7SB(YKHO):\n return sum(JaxB(lambda Q6kx: 1, YKHO.iterRegularNodes()))",
"def CYQC(YKHO):\n ewCu = 0\n for bGrB in YKHO:\n ewCu += 1\n return ewCu",
"def lU1W(YKHO):\n return len(YKHO.nodes)",
"def lU1W(YKHO):\n return len(YKHO.nodes.keys())",
"def tgFE(YKHO) -> int:\n kRap... | [
"0.83987916",
"0.8337553",
"0.833548",
"0.83223194",
"0.8299793",
"0.82549787",
"0.8233565",
"0.8213242",
"0.8185005",
"0.8164793",
"0.8133447",
"0.81292045",
"0.8119558",
"0.81109005",
"0.8091022",
"0.80670404",
"0.80628544",
"0.8027484",
"0.80103356",
"0.7998412",
"0.798954... | 0.85208815 | 0 |
Return the count of all edges. | def OgpV(YKHO):
return len(YKHO._edges) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vi4d(YKHO):\n return sum(map(len, YKHO._edges.values()))",
"def vi4d(YKHO):\n return YKHO._n",
"def DY3m(YKHO):\n return len(YKHO.getEdges())",
"def n8F9(YKHO):\n return len(YKHO.get_all_edges())",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
"def n8F9(YKHO):\n return len(tu... | [
"0.86364895",
"0.837554",
"0.83218455",
"0.83132625",
"0.81769407",
"0.81769407",
"0.8173567",
"0.81529754",
"0.81338185",
"0.8111804",
"0.809902",
"0.80649924",
"0.8038394",
"0.8027501",
"0.7983253",
"0.7983253",
"0.7977175",
"0.7952413",
"0.7943428",
"0.7914532",
"0.7913871... | 0.8383935 | 1 |
Decorator to add the function as a method to a class. | def NKcE(Emd4):
def mrMx(eHNT):
setattr(Emd4, eHNT.__name__, eHNT)
return eHNT
return mrMx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdM8(qgRY):\n\n def h3Xc(eHNT):\n setattr(qgRY, eHNT.__name__, BdN0.instancemethod(eHNT, None, qgRY))\n return h3Xc",
"def oZ2H(Emd4):\n\n def mrMx(JfyU):\n setattr(Emd4, JfyU.__name__, JfyU)\n return JfyU\n return mrMx",
"def classmethod(YKHO, JfyU):\n return YKHO._deco... | [
"0.82106966",
"0.81098896",
"0.792973",
"0.7910004",
"0.77786815",
"0.77018565",
"0.75293773",
"0.73913056",
"0.7311727",
"0.7276869",
"0.7194074",
"0.71547467",
"0.706514",
"0.7040996",
"0.702805",
"0.70269054",
"0.6929169",
"0.6880335",
"0.6827991",
"0.6799203",
"0.67841995... | 0.8114332 | 1 |
Add router to L3 agent. | def orR4(YKHO, vzUi, Mem1):
YKHO._rest_client.add_router_to_l3_agent(vzUi, {'router_id': Mem1}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uWdF(YKHO, oimG):\n YKHO.add_node(oimG, **{cJq3: URTI.ROUTER})",
"def uWdF(YKHO, Mem1):\n oimG = hPmM(YKHO, Mem1)\n YKHO.nodes[Mem1] = oimG",
"def JWdo(YKHO, lRYc):\n na1r.debug(\"Process router add, router_id: '%s'\", lRYc.router['id'])\n AM_a = []\n AM_a.append(lRYc.router)\n x9hS = ... | [
"0.7697476",
"0.68348986",
"0.6666034",
"0.65507823",
"0.64702916",
"0.64062285",
"0.6290825",
"0.6217596",
"0.612663",
"0.6126628",
"0.60383344",
"0.60161674",
"0.5997291",
"0.59816337",
"0.59786785",
"0.5976588",
"0.5959226",
"0.5905711",
"0.5902105",
"0.58965516",
"0.58885... | 0.7753156 | 0 |
Clears the screen in unix based or windows based systems. | def Y7Bk():
Hy7s.system('cls||clear') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1Av():\n if a9EH.system() == 'Linux':\n Oz1B('clear')\n elif a9EH.system() == 'Windows':\n Oz1B('cls')",
"def Y6_N():\n if Hy7s.name == 'posix':\n Hy7s.system('clear')\n elif Hy7s.name == 'nt':\n Hy7s.system('cls')",
"def yPVe():\n if mWFP == 'nt':\n bGrB ... | [
"0.9187529",
"0.9130545",
"0.9108158",
"0.90336305",
"0.8983171",
"0.89759094",
"0.89431846",
"0.89317566",
"0.89253056",
"0.8915763",
"0.8915763",
"0.8915763",
"0.8915763",
"0.889232",
"0.8881516",
"0.8876955",
"0.8847546",
"0.8845596",
"0.884051",
"0.88194925",
"0.870774",
... | 0.7676 | 87 |
Get notification aggregates as specified via JSON in request body. | def YjBw(YKHO: object, TBsA: dict=None, **B2fa) -> dict:
if not TBsA:
TBsA = BPXN(submitted_keywords=B2fa)
return gTY6(calling_object=YKHO, endpoints=ck73, operation_id='AggregateNotificationsV1', body=TBsA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pARY():\n return {'GET': cS2Z}",
"def MKw9(YKHO, *qIxc, **B2fa) -> cuzp[str, ImMB]:\n raise NotImplementedError()",
"def dYm9(YKHO: object, TBsA: list=None, **B2fa) -> cuzp[str, uLKX[int, dict]]:\n if not TBsA:\n TBsA = [BPXN(submitted_keywords=B2fa)]\n return gTY6(calling_object=YKHO, e... | [
"0.6492511",
"0.64140457",
"0.6285453",
"0.6119804",
"0.6013397",
"0.58318293",
"0.58316165",
"0.5761867",
"0.5761635",
"0.57141197",
"0.5711352",
"0.5701572",
"0.5688774",
"0.5686321",
"0.5615644",
"0.5598327",
"0.55555433",
"0.55174845",
"0.5513447",
"0.5512213",
"0.5510760... | 0.7061095 | 0 |
Get notification aggregates as specified via JSON in request body. | def yROD(YKHO: object, TBsA: dict=None, **B2fa) -> dict:
if not TBsA:
TBsA = TnC7(passed_keywords=B2fa)
return gTY6(calling_object=YKHO, endpoints=ck73, operation_id='PreviewRuleV1', body=TBsA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YjBw(YKHO: object, TBsA: dict=None, **B2fa) -> dict:\n if not TBsA:\n TBsA = BPXN(submitted_keywords=B2fa)\n return gTY6(calling_object=YKHO, endpoints=ck73, operation_id='AggregateNotificationsV1', body=TBsA)",
"def pARY():\n return {'GET': cS2Z}",
"def MKw9(YKHO, *qIxc, **B2fa) -> cuzp[st... | [
"0.7061567",
"0.6491846",
"0.64133865",
"0.6286084",
"0.61191446",
"0.6012669",
"0.58317596",
"0.5831243",
"0.5761964",
"0.57618636",
"0.5713535",
"0.57117003",
"0.57003546",
"0.56892794",
"0.5686516",
"0.5615394",
"0.55978924",
"0.5555797",
"0.5517491",
"0.5513245",
"0.55121... | 0.0 | -1 |
Get notifications based on their IDs. IDs can be retrieved using query_notifications. This endpoint will return translated notification content. The only target language available is English. | def cxrj(YKHO: object, *qIxc, SGPK: dict=None, **B2fa) -> dict:
return gTY6(calling_object=YKHO, endpoints=ck73, operation_id='GetNotificationsTranslatedV1', keywords=B2fa, params=ok2G(qIxc, SGPK, 'ids')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bgNo(YKHO: object, *qIxc, SGPK: dict=None, **B2fa) -> dict:\n return gTY6(calling_object=YKHO, endpoints=ck73, operation_id='GetNotificationsV1', keywords=B2fa, params=ok2G(qIxc, SGPK, 'ids'))",
"def z2_L(YKHO, MZKG):\n xDcj = 'SELECT * FROM notifications WHERE notification_id=%s'\n geh0 = FfT0().fe... | [
"0.78418905",
"0.7272435",
"0.6991041",
"0.6982018",
"0.6921366",
"0.68709266",
"0.686197",
"0.6829666",
"0.6760175",
"0.67363644",
"0.67157274",
"0.66549367",
"0.6634785",
"0.6622584",
"0.6599596",
"0.65847135",
"0.65792537",
"0.6576671",
"0.65716124",
"0.6507614",
"0.648734... | 0.75067633 | 1 |
Query monitoring rules based on provided criteria. Use the IDs from this response to fetch the rules with get_rules. | def p3kG(YKHO: object, SGPK: dict=None, **B2fa) -> dict:
return gTY6(calling_object=YKHO, endpoints=ck73, operation_id='QueryRulesV1', keywords=B2fa, params=SGPK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ddaj(YKHO: object, *qIxc, SGPK: dict=None, **B2fa) -> dict:\n return gTY6(calling_object=YKHO, endpoints=ck73, operation_id='GetRulesV1', keywords=B2fa, params=ok2G(qIxc, SGPK, 'ids'))",
"def list(YKHO, **B2fa):\n\n def roPg(NArs):\n \"\"\"Paginate rules, even if more than API limit.\"\"\"\n ... | [
"0.66164386",
"0.6352758",
"0.6307431",
"0.61919785",
"0.6182746",
"0.6081501",
"0.6015119",
"0.59878033",
"0.59603643",
"0.58725524",
"0.58266747",
"0.577915",
"0.57752764",
"0.57467216",
"0.57327706",
"0.57167506",
"0.5681344",
"0.56619626",
"0.56586283",
"0.564282",
"0.558... | 0.71092355 | 0 |
Most parts are copied from torch.nn.modules.batchnorm._BatchNorm. | def FIMM(YKHO, HhVR, BcCR, SGf8=1e-05, rnv5=True):
super(h5Mj, YKHO).__init__()
YKHO.num_features = HhVR
YKHO.max_length = BcCR
YKHO.affine = rnv5
YKHO.eps = SGf8
YKHO.N = 0
YKHO.register_persistent('N')
YKHO.decay = 0.9
with YKHO.init_scope():
if rnv5:
YKHO.gamma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lS53():\n return _w_u(op_name='BatchNorm', transforms={'epsilon': 'eps'}, extras={'cudnn_off': 1}, ignores=['spatial', 'is_test', 'consumed_inputs'])",
"def tO_r(YKHO, _0VL, L2Za, mWFP):\n if 'layer' in mWFP:\n if 'downsample' in mWFP:\n oBmh = [wEf2 for H5ew, wEf2 in YKHO.model.named... | [
"0.7648521",
"0.72726953",
"0.7256971",
"0.7246097",
"0.7143808",
"0.70767707",
"0.6917555",
"0.6894812",
"0.6890558",
"0.67964834",
"0.67406213",
"0.673049",
"0.6674816",
"0.6635125",
"0.6635125",
"0.6631138",
"0.66216683",
"0.66166776",
"0.6589479",
"0.65842927",
"0.6566341... | 0.0 | -1 |
The default constructor which requires the root address. | def FIMM(YKHO, O9sF, TNQd):
assert isinstance(O9sF, xUoy), 'The register_address is no MIPAddress'
YKHO._register_ip_address = O9sF
YKHO.service_descriptions = dict()
YKHO.__RetargetingService = None
YKHO.__PathPlanningService = None
YKHO.__BlendingService = None
YKHO.loadedServices = {}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, tk5Y=None):\n YKHO.root = tk5Y",
"def FIMM(YKHO, tk5Y=None):\n YKHO.root = tk5Y",
"def FIMM(YKHO, tk5Y=None):\n YKHO.root = tk5Y",
"def FIMM(YKHO, tk5Y, GikI=None):\n YKHO.root = tk5Y\n YKHO.environment = GikI",
"def FIMM(YKHO, _AKB, UTX6=None):\n super(X1CD, YKHO).__init__... | [
"0.6829993",
"0.6829993",
"0.6828162",
"0.68213665",
"0.6762696",
"0.6734441",
"0.66638345",
"0.6633473",
"0.6624657",
"0.6561609",
"0.6525559",
"0.6525559",
"0.65218246",
"0.64789176",
"0.64588946",
"0.64363045",
"0.6433801",
"0.6429569",
"0.6425448",
"0.63835865",
"0.634994... | 0.0 | -1 |
Represent this object as a humanreadable string. | def zAg0(YKHO):
return 'HttpMessage()' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.human_format()",
"def zAg0(YKHO):\n return YKHO.pretty()",
"def zAg0(YKHO):\n return YKHO.get_short_representation()",
"def zAg0(YKHO):\n return str(YKHO.__repr__())",
"def zAg0(YKHO):\n return YKHO.repr()",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"... | [
"0.85649747",
"0.82704115",
"0.82683516",
"0.820486",
"0.81732875",
"0.8171612",
"0.8122473",
"0.81222165",
"0.81112933",
"0.81112933",
"0.81096494",
"0.81096494",
"0.81096494",
"0.8104401",
"0.8104401",
"0.8104401",
"0.8104401",
"0.8104401",
"0.8104401",
"0.8104401",
"0.8104... | 0.0 | -1 |
Get the mass balance at the requested height and time. Optimized so that no mb model call is necessary at each step. | def gh6K(YKHO, lO87=None):
if lO87 is None:
lO87 = YKHO.yr
if YKHO.mb_elev_feedback == 'always':
WoQW = YKHO._mb_call(YKHO.surface_h.flatten(), year=lO87)
WoQW = WoQW.reshape((YKHO.ny, YKHO.nx))
if YKHO.mb_filter is not None:
WoQW[~YKHO.mb_filter & (WoQW > 0)] = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z8Mw(YKHO):\n SayS = {}\n for U6D_ in YKHO.normalized_abundances.keys():\n zdvB = YKHO.normalized_abundances[U6D_] * (YKHO.total_pressure / (YKHO.R * YKHO.temperature))\n SayS.update({U6D_: zdvB})\n return SayS",
"def AnPN(YKHO, a1PO: float) -> float:\n return YKHO._base_mass + YKHO... | [
"0.6561346",
"0.6170277",
"0.5998013",
"0.59603834",
"0.5926274",
"0.5888619",
"0.5857366",
"0.58229023",
"0.5769873",
"0.5733583",
"0.57191515",
"0.56602055",
"0.56538224",
"0.5628031",
"0.5614543",
"0.560571",
"0.56052613",
"0.55913454",
"0.5580907",
"0.55701274",
"0.551180... | 0.5160314 | 78 |
Renders the index page. | def kZiy():
return TvZl('home.html', title='《中山國際轉運》', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return... | [
"0.8460725",
"0.8422471",
"0.8412602",
"0.8412602",
"0.8394903",
"0.8350434",
"0.8297754",
"0.82513165",
"0.8243571",
"0.8236985",
"0.8236985",
"0.8236985",
"0.8236985",
"0.8236985",
"0.8236985",
"0.816878",
"0.81433475",
"0.8121308",
"0.8121308",
"0.8121308",
"0.8121308",
... | 0.0 | -1 |
Renders the contact page. | def uiwX():
return TvZl('shopping.html', title='購物情報', year=qcWV.now().year, message='Your contact page.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
A human readable reason why the Study is inactive. This should be empty if a study is ACTIVE or COMPLETED. | def bs7w(YKHO) -> str:
return qe4Y.get(YKHO, 'inactive_reason') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AiUj(YKHO) -> str:\n return qe4Y.get(YKHO, 'status_reason')",
"def lo9Y(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'reason')",
"def lo9Y(YKHO) -> str:\n return qe4Y.get(YKHO, 'reason')",
"def lo9Y(YKHO) -> str:\n return qe4Y.get(YKHO, 'reason')",
"def lo9Y(YKHO) -> str:\n return ... | [
"0.7233251",
"0.684166",
"0.67696536",
"0.67696536",
"0.67696536",
"0.67696536",
"0.67696536",
"0.66706365",
"0.6659884",
"0.648686",
"0.64291304",
"0.64241993",
"0.64194953",
"0.64194953",
"0.64194953",
"0.64194953",
"0.64194953",
"0.64194953",
"0.64194953",
"0.64194953",
"0... | 0.81837726 | 0 |
Get the Signal's target entity. Returns EntityId EntityId of the target | def pan_(YKHO) -> Jyk4:
return YKHO._target | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v1SU(YKHO):\n return YKHO[YKHO._proto_state.target]",
"def v1SU(YKHO):\n return YKHO[YKHO._proto_state.target]",
"def pan_(YKHO):\n return YKHO.from_entity.entity_set.get_target(YKHO.name)",
"def MCsb(YKHO):\n return YKHO._relationship_instance.get('target_id')",
"def MCsb(YKHO):\n retur... | [
"0.76512545",
"0.76512545",
"0.7593678",
"0.72821116",
"0.72508687",
"0.6992098",
"0.68052834",
"0.6785156",
"0.6784103",
"0.6767223",
"0.6757985",
"0.66293424",
"0.6521495",
"0.6501084",
"0.6501084",
"0.6477048",
"0.64674735",
"0.64674735",
"0.64674735",
"0.64674735",
"0.646... | 0.79456896 | 0 |
Get the current configuration instance. | def NMoC():
return dJsK() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zKPb(YKHO):\n return YKHO._config",
"def tgzD(YKHO):\n return YKHO.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n ... | [
"0.8264733",
"0.81815606",
"0.8179568",
"0.8179568",
"0.8179568",
"0.8172407",
"0.8172407",
"0.8172407",
"0.8172407",
"0.8148891",
"0.81073964",
"0.80894464",
"0.8009892",
"0.7916907",
"0.7916907",
"0.7916907",
"0.7916907",
"0.7916907",
"0.7916907",
"0.7916907",
"0.7916907",
... | 0.0 | -1 |
Plot training loss points (maximum four sets of points) and save as a figure. | def YNID(pmON, nPrm, aMlA=1):
nPrm = list(zip(*nPrm))
assert len(nPrm) < 5
if len(nPrm) == 4:
rAZn = ['train_acc', 'train_loss', 'val_acc', 'val_loss']
Jw9H = ['blue', 'red']
SGf8 = list(range(aMlA, aMlA + len(nPrm[0])))
LZpg = QcNK.figure()
LZpg, aNZO = QcNK.subplots()
for Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PsiR(YKHO):\n QrM1.plot(YKHO.trainLossList)\n QrM1.show()",
"def VJ37(YKHO):\n WKvO = range(len(YKHO.last_train_losses))\n LVAh = YKHO.last_train_losses\n QrM1.figure()\n QrM1.plot(WKvO, LVAh, label='Training loss')\n QrM1.xlabel('Epochs')\n QrM1.ylabel('Loss')\n QrM1.title('Traini... | [
"0.81857926",
"0.8175011",
"0.8000116",
"0.7959848",
"0.7925661",
"0.7915421",
"0.78794634",
"0.78681755",
"0.7830721",
"0.7827149",
"0.78215474",
"0.7803826",
"0.7777015",
"0.77622116",
"0.77545047",
"0.7750546",
"0.7750071",
"0.77416176",
"0.77245015",
"0.7694483",
"0.76924... | 0.0 | -1 |
returns a string of length length with random alphanumeric characters | def eHHU(u54L):
gLiZ = vIwR.ascii_letters + vIwR.digits
Wxnj = ''
for bGrB in range(u54L):
Wxnj += gLiZ[tuKI.randint(0, len(gLiZ) - 1)]
return Wxnj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drFW(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)))",
"def drFW(u54L=24):\n return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_letters + vIwR.digits) for YRbF in range(u54L)))",
"def gSN1(u54L):\n return ''.join((tuKI.choice(H_Aw) for bGrB in ra... | [
"0.87654537",
"0.8635032",
"0.86169934",
"0.85691273",
"0.8540995",
"0.85005903",
"0.8499377",
"0.84945387",
"0.84843844",
"0.84730285",
"0.84545875",
"0.8450151",
"0.8393495",
"0.83861476",
"0.83843505",
"0.8372155",
"0.83687973",
"0.83573806",
"0.83573806",
"0.8326195",
"0.... | 0.8253349 | 28 |
returns whether a user has completed the chapters in a set (according to order) | def r7Fl(CBIr, V_9M):
set = fHNa.objects.get(pk=V_9M)
T4Wy = set.order.split(',')
QfO8 = []
for SA6m in T4Wy:
SA6m = int(SA6m)
PNgP = ILfX.objects.get(pk=SA6m)
QfO8.append(_mS2(CBIr, PNgP))
return QfO8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rMbN(cgAD):\n for PNgP in cgAD:\n for glFP in PNgP.split(';'):\n if glFP not in egmG:\n return False\n return True",
"def hnEp(jI4j, CBIr):\n ScHw = N041(jI4j, CBIr)\n DumB = jI4j.item_set.filter(item_type='h1', _order__lte=ScHw._order)\n return DumB",
"def Z... | [
"0.6118076",
"0.6093343",
"0.5965482",
"0.5844974",
"0.5785402",
"0.5763407",
"0.56340194",
"0.56259084",
"0.56196713",
"0.5558971",
"0.55321765",
"0.5498926",
"0.5472904",
"0.5454134",
"0.54460955",
"0.543205",
"0.54272205",
"0.5427109",
"0.5403713",
"0.5399022",
"0.5384535"... | 0.6649842 | 0 |
initializes the selenium webdriver | def FIMM(YKHO):
YKHO.__driver = YKHO.__get_driver() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlk0(YKHO):\n YKHO.driver = cSpz.Chrome(YKHO.driver_path, chrome_options=YKHO.chop)",
"def DbxN():\n E_qD = cSpz.Firefox()\n return E_qD",
"def sGb7(YKHO):\n YKHO.getStopWords()\n YKHO._install_adblock()\n YKHO.driver = cSpz.Firefox(YKHO.profile)\n YKHO.mainWindowHandle = YKHO.driver.c... | [
"0.82068014",
"0.80915314",
"0.794202",
"0.779891",
"0.77416813",
"0.7696749",
"0.75936747",
"0.7483912",
"0.74505997",
"0.7439399",
"0.74274033",
"0.7403718",
"0.7398412",
"0.73391956",
"0.7321528",
"0.7298926",
"0.7288951",
"0.7287888",
"0.7225329",
"0.72002757",
"0.7194517... | 0.7502423 | 7 |
removes ',', "Cr", "L", "K", '.' from the numbers of all states and returns the values as integers | def ceHY(YKHO, nPrm):
iL5V = 7
vKlF = 5
HQ0s = 3
Cc00 = []
for ZfUD in nPrm:
if 'Cr' in ZfUD:
if '.' in ZfUD:
RYPm = ZfUD.index('.') + 1
r6SS = iL5V - len(ZfUD.replace('Cr', '')[RYPm:])
Cc00.append(int(ZfUD.replace('.', '').replace(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t1o_(ZqXe):\n QTBn = list(map(int, ZbWC.findall('\\\\d+', ZqXe)))\n return QTBn",
"def Pm3z(YKHO, wspz, yvT9=None):\n raise NotImplementedError()",
"def KaST(QTBn: str) -> x1iM[int]:\n Aofo = []\n for d6pt, hcXw in enumerate(QTBn):\n if hcXw != 'x':\n Aofo.append(d6pt)\n ... | [
"0.70573884",
"0.59962887",
"0.58545357",
"0.5842471",
"0.5828727",
"0.56488883",
"0.56097454",
"0.56026274",
"0.5602585",
"0.5582196",
"0.5573059",
"0.5568701",
"0.55603385",
"0.5559663",
"0.5553108",
"0.55467105",
"0.54374963",
"0.5406612",
"0.54022354",
"0.53895414",
"0.53... | 0.5578547 | 10 |
See documentation of forward. Concatenates state and action before forwarding. | def sNVR(YKHO, QTBn, XeOP):
pKvt = ht2j.cat((QTBn, XeOP), dim=-1)
hlel = YKHO.forward(pKvt)
hlel = ht2j.squeeze(hlel)
if hlel.dim() == 1:
return (hlel[:-1], hlel[-1])
else:
return (hlel[:, :-1], hlel[:, -1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, QTBn, XeOP):\n TEmr = YKHO._q_state_net(QTBn)\n return YKHO._q_net(ht2j.cat((TEmr, XeOP), dim=1))",
"def KVH6(YKHO, QTBn, XeOP):\n WKvO = ht2j.cat((QTBn, XeOP), dim=1)\n WKvO = vuvg.relu(YKHO.fc1(WKvO))\n WKvO = vuvg.relu(YKHO.fc2(WKvO))\n return YKHO.fc3(WKvO)",
"def KVH6(YKHO... | [
"0.74750835",
"0.73354816",
"0.7293424",
"0.72482985",
"0.72306854",
"0.7187165",
"0.7160754",
"0.71480757",
"0.7131758",
"0.7097438",
"0.70818156",
"0.7081762",
"0.707917",
"0.7052416",
"0.7030572",
"0.6995856",
"0.69942075",
"0.6985588",
"0.69399345",
"0.6937309",
"0.691144... | 0.0 | -1 |
A neural network parameterized to model an OpenAI Gym environments state transition. | def FIMM(YKHO, IFSb, Y5Rl, Y3Wb, YoQM, idFg=True, OpaC=True):
fhcK = [IFSb + Y5Rl] + Y3Wb + [IFSb]
super(gY8F, YKHO).__init__(fhcK, YoQM)
YKHO.predicts_delta = OpaC
YKHO.probabilistic = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y55D(vVLY, TcwO):\n mHXv = X6a0(shape=[vVLY])\n hftd = l6ZH(400, activation='relu')(mHXv)\n oVJE = l6ZH(400, activation='relu')(hftd)\n BWXx = l6ZH(TcwO, activation='linear')(oVJE)\n C3ST = ZylS.keras.Model(inputs=mHXv, outputs=BWXx)\n return (C3ST, C3ST.trainable_weights, mHXv)",
"def a3Mg... | [
"0.70757663",
"0.69446987",
"0.6821625",
"0.6810746",
"0.6810137",
"0.67799824",
"0.67368853",
"0.6721578",
"0.671272",
"0.6662448",
"0.66155916",
"0.65761554",
"0.64755535",
"0.64612633",
"0.6456112",
"0.64485985",
"0.64219576",
"0.6419128",
"0.6398186",
"0.63941026",
"0.637... | 0.6165954 | 58 |
Tests get request for views with no restrictions. | def pjVN(x0hE, bD7m, aEqx):
geh0 = x0hE.get(gxEw(bD7m))
assert geh0.status_code == aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dGyC(YKHO):\n hGN5 = YKHO.unique()\n YKHO.assertViewBehavior({'get': hGN5, 'http_method_names': ()}, status_code=200, content=hGN5)",
"def xDaz(fiHr):\n from .views.default import create_view\n Aofo = create_view(fiHr)\n assert Aofo == {}",
"def PYde(YKHO):\n YKHO.assertViewBehavior({'get... | [
"0.71548",
"0.6850817",
"0.68354905",
"0.68203354",
"0.68149227",
"0.67816997",
"0.6750329",
"0.6731168",
"0.66847575",
"0.6678584",
"0.6608803",
"0.6590636",
"0.65782255",
"0.65723395",
"0.6560206",
"0.6557386",
"0.6536599",
"0.6483636",
"0.6454995",
"0.643648",
"0.6427663",... | 0.0 | -1 |
Return a sequence containing the fields to be displayed on the changelist. | def Bu5K(YKHO, QePW):
return YKHO.list_display | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nQuP(YKHO):\n tTee = ZZSa.ListView(YKHO.model)\n return tTee.table_info['fields_list']",
"def AE9D(YKHO):\n LSCv = YKHO.cert_as_of_request()\n for Jyyj in YKHO.changed_fields():\n Pf76 = f'get_{Jyyj.name}_display'\n ppNb = Pf76 if hasattr(YKHO, Pf76) else Jyyj.name\n Ab9M = g... | [
"0.7099747",
"0.69821125",
"0.6710457",
"0.64987874",
"0.6476458",
"0.6474186",
"0.6433401",
"0.64304614",
"0.6427666",
"0.63821447",
"0.6369601",
"0.6369601",
"0.63675463",
"0.63411206",
"0.63380754",
"0.6337134",
"0.6286398",
"0.6286398",
"0.62797517",
"0.6239216",
"0.62392... | 0.0 | -1 |
r""" Convert input_ids to inputs_embeds for normal tokens, use the embedding layer of PLM for new tokens, use a brand new embedding layer, with MLP or LSTM head | def oDTn(YKHO, Wc9F: Union[Dict, InputFeatures]) -> uLKX[cuzp, NMrr]:
ThNW = YKHO.raw_embedding(Wc9F['input_ids'])
if YKHO.num_soft_token != 0:
j9q2 = YKHO.new_embedding(YKHO.new_ids).unsqueeze(0)
if YKHO.prompt_encoder_type == 'lstm':
j9q2 = YKHO.new_lstm_head(j9q2)[0]
j9q2 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def twi8(YKHO, Pha6, h6bD, blF9, ThNW, Y9ns=False):\n assert not (Pha6 is None and ThNW is None)\n if Pha6 is not None:\n GhuM = ihqc(Pha6)\n else:\n GhuM = ihqc(ThNW)[:-1]\n q4aw = GhuM[1]\n if h6bD is None:\n h6bD = ZylS.range(q4aw, dtype=ZylS.int32)[ZylS.newaxis, :]\n if b... | [
"0.719198",
"0.68425316",
"0.6834992",
"0.6727651",
"0.6687247",
"0.6669333",
"0.65783906",
"0.6573864",
"0.6553155",
"0.6525578",
"0.6494564",
"0.6482921",
"0.64723825",
"0.64398986",
"0.6423446",
"0.63976693",
"0.63815993",
"0.6363068",
"0.6354066",
"0.63448495",
"0.6326451... | 0.6525108 | 10 |
Returns the count of all model parameters, or just trainable ones. | def shd9(YKHO, gEmA, GnzJ=True):
if not GnzJ:
return gEmA.count_params()
else:
return int(oyIN.sum([ZylS.keras.backend.count_params(XP5J) for XP5J in gEmA.trainable_weights])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VgCS(C3ST):\n i5MP = sum((XP5J.numel() for XP5J in C3ST.parameters()))\n wbg2 = sum((XP5J.numel() for XP5J in C3ST.parameters() if XP5J.requires_grad))\n print('Parameter Count: all {:,d}; trainable {:,d}'.format(i5MP, wbg2))\n return (i5MP, wbg2)",
"def VgCS(C3ST):\n return sum((XP5J.numel() ... | [
"0.8642379",
"0.8300545",
"0.82832533",
"0.8199599",
"0.81680995",
"0.8134689",
"0.8134689",
"0.8093164",
"0.8090289",
"0.8049215",
"0.7991461",
"0.7969844",
"0.79620737",
"0.7940345",
"0.7905867",
"0.7894151",
"0.78290874",
"0.7800436",
"0.77625287",
"0.7733287",
"0.76932806... | 0.8157581 | 5 |
Filter examples whose sequence length is over than the max | def Bqru(kVzY, YQqM):
def YNSV(__n6):
@ZylS.function
def S86P(D8Si, l5Ny):
return ZylS.math.logical_and(ZylS.shape(D8Si)[0] <= kVzY, ZylS.size(l5Ny) <= YQqM)
return __n6.filter(S86P)
return YNSV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qZuF(jQ3Z, ZM6q):\n AtyE = len(jQ3Z)\n jQ3Z = jQ3Z[jQ3Z.seq_len < ZM6q - 2]\n dhaj = len(jQ3Z)\n print(f'dropping {AtyE - dhaj} out of {AtyE} questions which exceed max sequence length')\n return jQ3Z",
"def yYJe(min, max, FGW3, Rhv4):\n YRbF = LVAh = 0\n Aofo = list()\n while YRbF < ... | [
"0.74862385",
"0.6759121",
"0.6753448",
"0.6637621",
"0.650537",
"0.6454232",
"0.6325979",
"0.6322982",
"0.62728375",
"0.6271131",
"0.6242418",
"0.6241338",
"0.6212215",
"0.6178339",
"0.6068907",
"0.60607743",
"0.60582006",
"0.605438",
"0.6047402",
"0.60473603",
"0.60446113",... | 0.66944134 | 3 |
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. | def qUJm(IH42):
if not isinstance(IH42, jKi7.string_types):
return IH42
if not IH42:
return None
u_ln = IH42.lower()
if u_ln == 'linear':
return None
elif u_ln == 'relu':
return ZylS.nn.relu
elif u_ln == 'gelu':
return Vmco
elif u_ln == 'tanh':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UBsp(mWFP: str) -> YrBT:\n if mWFP == 'to_tanh':\n return Br5Q.tanh\n elif mWFP == 'to_relu':\n return Br5Q.relu\n elif mWFP == 'to_sigmoid':\n return Br5Q.sigmoid\n elif mWFP == 'pd_linear':\n return F02M\n elif mWFP == 'pd_cubic':\n return f3U8\n elif mWFP... | [
"0.7076436",
"0.6938998",
"0.6613563",
"0.6566016",
"0.6469519",
"0.63722384",
"0.6268414",
"0.6202757",
"0.61914897",
"0.61855334",
"0.61469215",
"0.60528773",
"0.60204387",
"0.60141844",
"0.60094583",
"0.59684944",
"0.59536266",
"0.5932508",
"0.5919821",
"0.5894436",
"0.584... | 0.6613098 | 3 |
Escape |\| and |"| in registry file. | def rAYW(FUjE):
return FUjE.replace('\\', '\\\\').replace('"', '\\"') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TSQ_(wEf2):\n return wEf2.replace('\\\\', '\\\\\\\\')",
"def a_4o(BWXx):\n return GSRe.escape_re.sub('\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\1', ZbWC.escape(BWXx))",
"def Q_NC(KCHu):\n return KCHu.replace('(', '\\\\(').replace(')', '\\\\)').replace(' ', '\\\\ ')",
"def m_Hn(d7pR):\n d7pR = d7pR.... | [
"0.7055048",
"0.68269074",
"0.68192554",
"0.6804273",
"0.66679645",
"0.6579352",
"0.6518592",
"0.6462401",
"0.6440424",
"0.6425425",
"0.6397568",
"0.63173854",
"0.62970614",
"0.6279806",
"0.6253266",
"0.6206484",
"0.6190221",
"0.61868364",
"0.617349",
"0.6169114",
"0.6153371"... | 0.75682205 | 0 |
Given an id candidate string, return a valid GML id attribute value by removing forbidden characters. | def ImYH(id):
return ZbWC.sub('\\W|^(?=\\d)', '_', id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IIcw(YKHO, id):\n return YKHO.wsid_regex.sub('', id.replace(' ', '_'))",
"def PudR(WKvO):\n return ZbWC.sub('[^-\\\\w ]', '', WKvO.replace('.', '-'), ZbWC.U).replace(' ', '-')",
"def PudR(id):\n return ZbWC.sub(pwJT, '', id)",
"def WC4k(vIwR):\n return ZbWC.sub('\\\\W', '', vIwR).lower()",
... | [
"0.71151066",
"0.68850416",
"0.6873651",
"0.67345494",
"0.6704881",
"0.6693244",
"0.6562447",
"0.65274316",
"0.6525507",
"0.63146305",
"0.6305586",
"0.6260424",
"0.6223371",
"0.62214386",
"0.6207217",
"0.6207119",
"0.61312413",
"0.61252993",
"0.6074619",
"0.60221785",
"0.6009... | 0.657346 | 6 |
r"""The CDF of the TMRCA at each change point in ``eta`` | def D5ee(YKHO, RHJb: hst.eta=None) -> SeJT.ndarray:
if RHJb is None:
YKHO._check_eta()
RHJb = YKHO.η
a1PO, LVAh = RHJb.arrays()
return 1 - BfDw.tmrca_sf(a1PO, LVAh, YKHO.n)[1:-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xMvy(YKHO, *qIxc):\n return gQS9.sys_dynamic_Ceta(YKHO, *qIxc)",
"def A62f(jzdc, Nq1b, tTpl, naMm=1):\n return Nq1b * (tTpl / naMm) ** (-jzdc)",
"def YzER(WKvO):\n return (WKvO - XTiz.sin(WKvO)) / XTiz.pi",
"def NFei(YKHO, WKvO):\n a1PO = (WKvO - YKHO._mean) / YKHO.stdev\n jzdc = m6J4(YKHO... | [
"0.65542656",
"0.6250412",
"0.623512",
"0.6214805",
"0.60329825",
"0.5977223",
"0.5924317",
"0.5919841",
"0.5909137",
"0.5908289",
"0.58895403",
"0.5877642",
"0.5862193",
"0.5858141",
"0.58569366",
"0.5844058",
"0.58250624",
"0.5808538",
"0.57903606",
"0.5781767",
"0.57810324... | 0.73976016 | 0 |
Initializes a dict indexed by message delivery statuses. | def kVgu(YKHO):
YKHO._st = {'pending': [], 'sent': [], 'error': [], 'failed': []} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZUXd(YKHO):\n YKHO.received_messages = oRi_(set)\n YKHO.sent_messages = oRi_(set)",
"def FIMM(YKHO):\n YKHO.messages = {'deleted': 'Incident successfully deleted', 'created': 'Incident successfully created', 'updated': 'Incident successfully updated', 'read': 'Incident(s) successfully retrieved'}\n ... | [
"0.6544856",
"0.59467727",
"0.5871846",
"0.57698095",
"0.5622426",
"0.5542049",
"0.5531529",
"0.5519154",
"0.545211",
"0.5427726",
"0.54166484",
"0.5407093",
"0.54058224",
"0.5341198",
"0.52836734",
"0.5259575",
"0.52421224",
"0.5238989",
"0.5216364",
"0.5214893",
"0.5177524"... | 0.8737711 | 0 |
Gets the total amount to try to calculate a match for. | def h4aS() -> str:
return input('\nWhat is the total amount?: ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hcbc(YKHO):\n return YKHO._metadata['total_matches']",
"def ne9N(YKHO):\n return YKHO.calculate_regular_pay() + YKHO.calculate_overhour_bonus() + YKHO.calculate_distance_bonus()",
"def wjRY(YKHO):\n return 10.0",
"def GiNc(YKHO, geh0):\n hcbc = FBfn(geh0.xpath('//div[@class=\"recordCount\"]/s... | [
"0.7153097",
"0.71051633",
"0.70483977",
"0.69464046",
"0.6901345",
"0.68811774",
"0.6874627",
"0.6862322",
"0.6854731",
"0.6817547",
"0.67807335",
"0.6780236",
"0.67606115",
"0.6748908",
"0.674413",
"0.6724142",
"0.66970867",
"0.6645639",
"0.66168505",
"0.65952325",
"0.65841... | 0.0 | -1 |
Flighing distance in km between two locations. | def wZC2(jzdc: geopy.Location, Fg_i: geopy.Location) -> float:
return jLKC.distance.distance((jzdc.latitude, jzdc.longitude), (Fg_i.latitude, Fg_i.longitude)).km | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjqF(qqsd):\n O3Ka = FMwV.location.global_relative_frame\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5",
"def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + ... | [
"0.77496934",
"0.7719393",
"0.7682783",
"0.7648636",
"0.76307845",
"0.7616366",
"0.76050127",
"0.75941765",
"0.75941765",
"0.75941765",
"0.75941765",
"0.75941765",
"0.75941765",
"0.75941765",
"0.7581045",
"0.75526476",
"0.7541582",
"0.74570227",
"0.73685145",
"0.73530436",
"0... | 0.78968114 | 0 |
Create tuple from the given values. | def FIMM(YKHO, *qIxc):
YKHO._stored_data = tuple(qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMpf(UqER):\n return S6ol(tuple, UqER)",
"def tuple(Emd4, *hkxX, **YYj2):\n lUpd = Emd4.tuple_class()\n try:\n return lUpd(*hkxX, **YYj2)\n except TypeError:\n J8oL = Emd4._make_checked_mapping(*hkxX, **YYj2)\n return lUpd(**J8oL)",
"def XMpf(*qIxc):\n return tuple(qIxc)... | [
"0.7883579",
"0.766685",
"0.73782176",
"0.713979",
"0.7025525",
"0.6943371",
"0.6858806",
"0.6825779",
"0.67647225",
"0.67557555",
"0.6722996",
"0.6710223",
"0.6710223",
"0.6668952",
"0.6630506",
"0.65524733",
"0.6527842",
"0.6524533",
"0.6518754",
"0.6500132",
"0.64667004",
... | 0.0 | -1 |
Return intersectionoverunion (Jaccard index) of boxes. | def r9es(YKHO, rRRx, wGB6, SGf8=1e-05):
VQA9 = oyIN.maximum(rRRx[..., :2], wGB6[..., :2])
aKwN = oyIN.minimum(rRRx[..., 2:], wGB6[..., 2:])
WP1B = YKHO.area_of(VQA9, aKwN)
pbNT = YKHO.area_of(rRRx[..., :2], rRRx[..., 2:])
bzU2 = YKHO.area_of(wGB6[..., :2], wGB6[..., 2:])
return WP1B / (pbNT + bz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nsm1(sOrw, sxK1, _0VL=[]):\n YrCQ = (sOrw[2] - sOrw[0]) * (sOrw[3] - sOrw[1])\n YrSr = (sxK1[2] - sxK1[0]) * (sxK1[3] - sxK1[1])\n FJ23 = max(sOrw[0], sxK1[0])\n cpky = max(sOrw[1], sxK1[1])\n lCRk = min(sOrw[2], sxK1[2])\n w871 = min(sOrw[3], sxK1[3])\n iQin = (lCRk - FJ23) * (w871 - cpky... | [
"0.71602577",
"0.6957717",
"0.6749637",
"0.65974027",
"0.6518084",
"0.65006983",
"0.64534324",
"0.6425979",
"0.6407825",
"0.6354954",
"0.63128614",
"0.6239861",
"0.6228952",
"0.6215442",
"0.620504",
"0.61835617",
"0.61665916",
"0.6158602",
"0.6144812",
"0.61249137",
"0.612491... | 0.55976856 | 96 |
Generates a random string of a given length. | def GLL2(u54L):
return ''.join([tuKI.choice(CKEA) for bGrB in range(u54L)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def YzjY(YKHO, u54L):\n zZas = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.sample(zZas, u54L))",
"def MiNk(u54L):\n gLiZ = vIwR.ascii_... | [
"0.89185286",
"0.8872763",
"0.8851659",
"0.88422084",
"0.8757568",
"0.8747066",
"0.87313133",
"0.8702518",
"0.8650812",
"0.86430186",
"0.8631336",
"0.8631336",
"0.8626017",
"0.8616522",
"0.861278",
"0.8607954",
"0.86016744",
"0.8588218",
"0.8573021",
"0.8572902",
"0.85715413"... | 0.8330903 | 52 |
Sets the IAM policy of a given resource. | def oH0T(mS46, Tf5Y, Co34, fxE9, ekCf):
lNC_ = GLL2(Yt7M)
krED = Ha6K(mS46, Tf5Y)
A4YY = CknR(Co34)
if Co34 == 'bucket':
C9U5 = {'bucket': fxE9, 'project': ekCf, 'bindings': krED}
else:
C9U5 = {'resource': fxE9, 'policy': {'bindings': krED}}
JKCy = [{'name': 'set-iam-policy-' + l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pOmo(YKHO, Eorv, Qabx, xAU6=None):\n QePW = N1Ai.SetIamPolicyRequest(resource=Eorv, policy=Qabx)\n return YKHO._set_iam_policy(QePW, xAU6)",
"def pOmo(YKHO, Eorv, Qabx, ZFzw=yszQ.api_core.gapic_v1.method.DEFAULT, vYBr=yszQ.api_core.gapic_v1.method.DEFAULT, yIVm=None):\n if 'set_iam_policy' not in YK... | [
"0.80078787",
"0.7791636",
"0.7379343",
"0.71000475",
"0.69881856",
"0.68386626",
"0.6837802",
"0.6826926",
"0.6731224",
"0.6729783",
"0.66907877",
"0.6531665",
"0.6520205",
"0.65145177",
"0.65145177",
"0.642094",
"0.6382242",
"0.63745105",
"0.6351021",
"0.6325788",
"0.632478... | 0.0 | -1 |
Reorganizes the policy patches so they don't affect the same resource more than once, thus avoiding the race condition. | def vGRc(mhES, pg8h):
drp0 = mhES.resources + pg8h.resources
som_ = [Qabx for Qabx in drp0 if 'action' in Qabx]
XnTX = SAGC(som_)
c1yB = H59Q(self_link=None, resources=[], outputs=[])
for bGrB, cNpy in XnTX.items():
qFaa = next((XP5J for XP5J in cNpy if yWyC(XP5J)), None)
if qFaa:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dD81(qLuC, rAB8):\n if qLuC:\n GOut = qLuC[0]\n XhMD = GOut['properties']['gcpIamPolicyPatch']\n for Elif in qLuC[1:]:\n vOrS = Elif['properties']['gcpIamPolicyPatch']\n for XeOP in vOrS:\n if not XeOP in XhMD:\n XhMD[XeOP] = vOrS[... | [
"0.61923563",
"0.61143565",
"0.5719274",
"0.56656027",
"0.56656027",
"0.5470628",
"0.5427654",
"0.5422902",
"0.53752744",
"0.53715146",
"0.53363013",
"0.53357863",
"0.5318524",
"0.5312623",
"0.5306489",
"0.52814895",
"0.52650857",
"0.524406",
"0.52375406",
"0.5225083",
"0.521... | 0.4994254 | 45 |
Gets a Deployment Manager reference link. | def Jpfi(xYqm, QWcs='selfLink'):
return '$(ref.{}.{})'.format(xYqm, QWcs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZnA(YKHO):\n return YKHO.container['link']",
"def QZnA(YKHO):\n return YKHO.container['link']",
"def HYjU(YKHO):\n return YKHO.__link",
"def HYjU(YKHO):\n return YKHO.__link",
"def HYjU(YKHO):\n return YKHO.link",
"def HYjU(YKHO):\n return YKHO.link",
"def HYjU(YKHO):\n return... | [
"0.65760285",
"0.65760285",
"0.6545431",
"0.6545431",
"0.64702183",
"0.64702183",
"0.64702183",
"0.64702183",
"0.62275934",
"0.6186799",
"0.6154248",
"0.6144732",
"0.6144732",
"0.6144732",
"0.6115282",
"0.6112578",
"0.6088655",
"0.60733",
"0.6061449",
"0.59183294",
"0.5888426... | 0.0 | -1 |
Updates a single product | def z_bY(Ii1o):
L03z = zDQO(QePW.form)
if L03z.validate():
Lx3t = msfn.query.filter_by(id=Ii1o).first()
Lx3t.name = L03z.name.data
Lx3t.price = L03z.price.data
Lx3t.quantity = L03z.quantity.data
Lx3t.description = L03z.description.data
NCls.session.commit()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, Lx3t):\n YKHO.product_repository.update(Lx3t)",
"def QdZT(YKHO):\n return YKHO._api.update_product(**MNRr(YKHO))",
"def QdZT(YKHO, id: int, QePW: Request) -> 'Response':\n try:\n nPrm = QePW.get_json()\n Iwge = msfn.query.get(id)\n if Iwge:\n Iwge.name = ... | [
"0.8255747",
"0.79956",
"0.79896295",
"0.79409415",
"0.7920678",
"0.7846098",
"0.77943563",
"0.7763587",
"0.7717825",
"0.76788384",
"0.7678245",
"0.76565963",
"0.7647162",
"0.76405257",
"0.7615762",
"0.7610936",
"0.7565253",
"0.7528114",
"0.7500619",
"0.74973196",
"0.7458133"... | 0.7687066 | 9 |
Get parser for command line arguments. | def EpPs():
wvEv = j1Jz.ArgumentParser(description='Tool for exporting existing users from old Parse backend to new API.')
wvEv.add_argument('-d', '--delete', action='store_true', help='Delete all previously uploaded users')
wvEv.add_argument('--parse-api-root', action='store', default=Hy7s.environ.get('PAR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EpPs():\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n wvEv.add_argument('--commit', type=str, help='Specify the commit to validate.')\n wvEv.add_argument('project_dir')\n wvEv.add_argument('files', nargs='+')\n return wvEv",
"def EpPs():\n from argparse import ArgumentParser, Argument... | [
"0.7876164",
"0.7846425",
"0.78400844",
"0.7809157",
"0.77785856",
"0.7752358",
"0.7726245",
"0.77166533",
"0.7714964",
"0.77127355",
"0.77048945",
"0.76940465",
"0.76865375",
"0.7677954",
"0.7663539",
"0.7661022",
"0.76510197",
"0.76474184",
"0.7643203",
"0.76377237",
"0.762... | 0.0 | -1 |
return tuple of max val in dict, assumes vals are >= 0 | def vzRO(Csk6):
JCoA = (-1, -1)
for G1Hx, Ty9i in Csk6.items():
if Ty9i > JCoA[1]:
JCoA = (G1Hx, Ty9i)
return JCoA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4zA(Csk6):\n yew8 = float('-inf')\n for H5ew, wEf2 in Csk6.items():\n if wEf2 > yew8:\n yew8 = wEf2\n xCk5 = H5ew\n return (xCk5, yew8)",
"def SU_z(dict):\n Ty9i = list(dict.values())\n G1Hx = list(dict.keys())\n return G1Hx[Ty9i.index(max(Ty9i))]",
"def uS3X... | [
"0.7972819",
"0.7832684",
"0.7823388",
"0.77453184",
"0.77453184",
"0.7737494",
"0.7734035",
"0.7734035",
"0.77094483",
"0.76706916",
"0.76599663",
"0.76527095",
"0.7646256",
"0.7640858",
"0.7638684",
"0.7605021",
"0.75922567",
"0.75699365",
"0.7535518",
"0.7535059",
"0.74604... | 0.8251249 | 0 |
Returns a QuerySet of all Assets. | def NMoC() -> 'QuerySet[Asset]':
return dv6U.objects | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ffmk(YKHO):\n return YKHO._assets",
"def Ffmk(YKHO):\n return YKHO._assets",
"def Ffmk(YKHO):\n return YKHO._assets",
"def cxjK(YKHO):\n return",
"def Fere(YKHO):\n SR0I = dv6U.objects.all()\n return SR0I",
"def Ffmk(YKHO):\n from .assessment_asset_connection import AssessmentAss... | [
"0.7048188",
"0.7048188",
"0.7048188",
"0.6868327",
"0.67995024",
"0.6708752",
"0.66956854",
"0.6682277",
"0.6673108",
"0.6585487",
"0.6554539",
"0.62523425",
"0.6245348",
"0.6229638",
"0.61700153",
"0.61078507",
"0.61078507",
"0.60712767",
"0.6017664",
"0.59960806",
"0.59218... | 0.76318777 | 0 |
Returns the unique object identifier for the Asset. | def unpH(YKHO) -> str:
return str(YKHO.pk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J5tT(YKHO):\n return YKHO._assetId.get_waarde()",
"def J5tT(YKHO):\n return YKHO._assetId.get_waarde()",
"def tGYK(YKHO):\n return YKHO._payload.get_asset_id()",
"def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')",
"def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object... | [
"0.7678871",
"0.7678871",
"0.75367504",
"0.751639",
"0.751639",
"0.7255",
"0.7255",
"0.71481144",
"0.7054584",
"0.7027362",
"0.6807624",
"0.6807624",
"0.6807624",
"0.6807624",
"0.6803853",
"0.68001926",
"0.67719424",
"0.672045",
"0.6683512",
"0.6680376",
"0.6678813",
"0.666... | 0.0 | -1 |
Returns the last candle for the asset on the given interval. | def LMBJ(YKHO, VOlW: int=E7YM, ByMx: bool=False) -> 'Candle':
return SbXB.get_asset_last_candle(YKHO, VOlW, ByMx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WjCJ(YKHO, o61b, VOlW):\n raise NotImplementedError",
"def PVs8(VOlW=60 * 60):\n return hCrA(ITS7.time(), VOlW)",
"def M4A5(YKHO, VOlW: int=E7YM) -> 'Candle':\n return SbXB.get_asset_first_candle(YKHO, VOlW)",
"def WjCJ(YKHO, mLGw, o61b, VOlW):\n E1PQ = YKHO.client.get_historical_klines(o61b,... | [
"0.75207376",
"0.7316801",
"0.72241604",
"0.67930466",
"0.6343374",
"0.6216649",
"0.6191517",
"0.61782575",
"0.6146153",
"0.61055845",
"0.6104326",
"0.6082636",
"0.60282195",
"0.60221225",
"0.60221225",
"0.60221225",
"0.59929687",
"0.5940509",
"0.5908446",
"0.59011483",
"0.58... | 0.84997374 | 0 |
Returns the most recently updated price for the Asset. | def N_Zi(YKHO) -> float:
return YKHO.price | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_Zi(YKHO):\n return YKHO.__last_price",
"def XXon(o61b):\n geh0 = PBIJ(endpoint='stock/{}/quote/latestPrice'.format(o61b))\n return float(geh0.text)",
"def gxV2(YKHO, o61b):\n return lWPh(YKHO.client.fetchTicker(o61b['symbol'])['last'])",
"def kv6I(o61b):\n QuDu = M5BQ.stocks.get_latest_p... | [
"0.7637035",
"0.7300889",
"0.7242841",
"0.7165299",
"0.7101012",
"0.7054102",
"0.70356244",
"0.70153475",
"0.69225824",
"0.6883669",
"0.6699679",
"0.66971165",
"0.66887885",
"0.66705894",
"0.66585886",
"0.66585886",
"0.6656293",
"0.6637698",
"0.6617405",
"0.6616193",
"0.66015... | 0.64416724 | 35 |
Returns the symbol representing the Asset. | def kWfe(YKHO) -> str:
return YKHO.ticker | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o61b(YKHO):\n o61b = YKHO._revit_object.Symbol\n return wZLS(o61b)",
"def o61b(YKHO):\n return YKHO.get_symbol(YKHO.code)",
"def o61b(YKHO):\n return YKHO._symbol",
"def o61b(YKHO):\n return YKHO._symbol",
"def o61b(YKHO):\n return YKHO._symbol",
"def o61b(YKHO):\n return YKHO._s... | [
"0.7361957",
"0.7322423",
"0.7203202",
"0.7203202",
"0.7203202",
"0.7203202",
"0.7203202",
"0.7203202",
"0.7203202",
"0.718994",
"0.7054473",
"0.7047566",
"0.7046792",
"0.70415306",
"0.69544685",
"0.69290817",
"0.6911522",
"0.6902689",
"0.68891686",
"0.68732053",
"0.6871946",... | 0.0 | -1 |
returns the number of seconds since the epoch(according the the datetime module) | def LTeJ(y6Fc):
qtWj = qcWV.datetime.fromtimestamp(0)
return (y6Fc - qtWj).total_seconds() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Vy8():\n return int(ITS7.time())",
"def qtWj():\n return int(ITS7.time())",
"def IMJE(Csk6=None):\n if not Csk6:\n Csk6 = qcWV.utcnow()\n return int((Csk6 - qcWV.utcfromtimestamp(0)).total_seconds())",
"def IMJE(Csk6=None):\n if not Csk6:\n Csk6 = qcWV.utcnow()\n return i... | [
"0.8723406",
"0.8275846",
"0.825879",
"0.825879",
"0.8222532",
"0.8200361",
"0.8200361",
"0.8125925",
"0.8115776",
"0.8003072",
"0.79965085",
"0.78655434",
"0.7824294",
"0.7779738",
"0.7689993",
"0.76523423",
"0.76355577",
"0.75956887",
"0.75612473",
"0.7555881",
"0.7523947",... | 0.7885909 | 11 |
draws gridlines, axes, labels, and title | def VtqC(YKHO, leAC, aZ2y):
FBbd = int((DHo2 - 50) / 24)
jpWF = 24
for r845 in range(jpWF):
if r845 == 0:
YKHO.view_canvas.create_line(50, 40, 50, gOVk[1] - 5, fill='black')
continue
QOxj = r845 * FBbd + 50
YKHO.view_canvas.create_line(QOxj, 40, QOxj, gOVk[1] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlUU(YKHO, aNZO):\n aNZO.grid(color='lightgrey', linestyle='-', linewidth=0.1)",
"def FIMM(YKHO):\n YKHO.figure, YKHO.axes = QrM1.subplots()\n YKHO.axes.set_facecolor('#E6E6E6')\n YKHO.axes.grid(linestyle='-', linewidth='0.5', color='white')",
"def SewJ(YKHO):\n try:\n LZpg, aNZO = Qr... | [
"0.7165683",
"0.68582296",
"0.68274766",
"0.6808706",
"0.6749449",
"0.6738443",
"0.6684665",
"0.6644817",
"0.66285133",
"0.6560159",
"0.6541339",
"0.65339273",
"0.6496258",
"0.6493677",
"0.6485096",
"0.646825",
"0.64657515",
"0.6449077",
"0.64483607",
"0.6438042",
"0.63910395... | 0.63984835 | 20 |
Reads a dotted file path and returns the file path. | def F28p(YKHO, Jcsk, Fst3='json'):
if Hy7s.sep in Jcsk or '/' in Jcsk:
return Jcsk
SQ3m = Jcsk.split('.')
if SQ3m[0] == 'chatterbot':
SQ3m.pop(0)
SQ3m[0] = YKHO.data_directory
EiQe = Hy7s.path.join(*SQ3m)
if Hy7s.path.exists(EiQe + '.{}'.format(Fst3)):
EiQe += '.{}'.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F28p(Jcsk, Fst3='json'):\n if Hy7s.sep in Jcsk or '/' in Jcsk:\n return Jcsk\n SQ3m = Jcsk.split('.')\n if SQ3m[0] == 'chatterbot':\n SQ3m.pop(0)\n SQ3m[0] = Ygf3\n EiQe = Hy7s.path.join(*SQ3m)\n if Hy7s.path.exists(EiQe + '.{}'.format(Fst3)):\n EiQe += '.{}'.format(F... | [
"0.65242857",
"0.6334639",
"0.62690586",
"0.6153249",
"0.60782087",
"0.5953367",
"0.5943807",
"0.59323496",
"0.59161407",
"0.5914376",
"0.5914317",
"0.5906507",
"0.58860594",
"0.58858436",
"0.58786136",
"0.5862642",
"0.5824953",
"0.5818613",
"0.58140934",
"0.57897884",
"0.573... | 0.66107166 | 0 |
Returns the string representation in binary of the number with left padding. | def dIKj(YKHO, FGW3, dvgN=0):
jbXL = bin(FGW3)[2:]
if dvgN < len(jbXL):
return jbXL
else:
ZiMX = dvgN - len(jbXL)
return ZiMX * '0' + jbXL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lWTP(YKHO, YRbF, Fg_i=8):\n KCHu = bin(YRbF)[2:]\n return ''.join(['0'] * (Fg_i - len(KCHu)) + list(KCHu))",
"def aHw9(BWXx):\n return '{:032b}'.format(BWXx)",
"def neaT(kAne, u54L=-1):\n Fg_i = f'{kAne:b}'\n YBcr = 0\n if u54L == -1:\n YBcr = (len(Fg_i) // 8 + 1 if len(Fg_i) % 8 !... | [
"0.7331833",
"0.7095591",
"0.70801115",
"0.7026226",
"0.6955327",
"0.692797",
"0.6898776",
"0.68550646",
"0.68393564",
"0.68322647",
"0.6749807",
"0.6738445",
"0.67285943",
"0.6716641",
"0.6708329",
"0.6654243",
"0.6631356",
"0.66239476",
"0.6615737",
"0.6612167",
"0.6606889"... | 0.7828556 | 0 |
take 1D float array of rewards and compute discounted reward | def AC1_(Mkmy):
g2lU = oyIN.zeros_like(Mkmy)
S8qo = 0
for a1PO in reversed(range(0, Mkmy.size)):
S8qo = Mkmy[a1PO] + S8qo * KMvS ** a1PO
g2lU[a1PO] = S8qo
return g2lU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AC1_(cAvO):\n g2lU = oyIN.zeros_like(cAvO)\n S8qo = 0\n for d6pt in reversed(range(cAvO.size)):\n S8qo = S8qo * BR4e + cAvO[d6pt]\n g2lU[d6pt] = S8qo\n return g2lU",
"def AC1_(ezWE):\n bnZy = oyIN.zeros_like(ezWE)\n vOGg = 0\n for YRbF in reversed(range(ezWE.size)):\n ... | [
"0.8228387",
"0.8101504",
"0.794589",
"0.79116005",
"0.78897405",
"0.78536695",
"0.7846898",
"0.7795935",
"0.77391535",
"0.77332956",
"0.7728408",
"0.7695219",
"0.7656278",
"0.75764155",
"0.75764155",
"0.7554488",
"0.7541471",
"0.75083315",
"0.7498441",
"0.74695385",
"0.74671... | 0.73629445 | 29 |
Preprocess image for inference. | def biH0(U5Jc):
bySB = {}
if vPBo.data_type == 'tfrecord':
LNo8 = ZylS.image.decode_jpeg(U5Jc['image/encoded'], channels=3)
bySB['image'] = ZvG6.preprocess_image(LNo8, is_training=False, image_size=vPBo.input_image_size, use_bfloat16=vPBo.use_bfloat16, is_image_bytes=False)
return bySB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(YKHO, LNo8):\n raise NotImplementedError",
"def biH0(YKHO, LNo8):\n return LNo8",
"def biH0(YKHO, LNo8):\n if YKHO.subset == 'train' and YKHO.use_distortion:\n return j9DC(LNo8, 224, 224, 256, None, None, 0.25, 1, 0, True)\n else:\n return j9DC(LNo8, 224, 224, 256, None, None... | [
"0.830456",
"0.8001761",
"0.78812945",
"0.78731096",
"0.7806856",
"0.78037935",
"0.7715312",
"0.7699884",
"0.7638644",
"0.76214725",
"0.7573671",
"0.7572442",
"0.757188",
"0.75684",
"0.75046253",
"0.747062",
"0.74689263",
"0.74624765",
"0.74609804",
"0.7460491",
"0.74600583",... | 0.0 | -1 |
Create a microscope object with a number of components already attached. This is useful for initializing a microscope to attach to objects from samples.py | def R9lq(YKHO, XvID='data/preferences_ZSD_test.yml'):
loy0 = 'Marzhauser'
lE4_ = 'MotorizedFocus'
KjrO = 500
vxnn = 100
SxvX = 'DefiniteFocus2'
Yrwa = '6xMotorizedNosepiece'
zPKn = [(-1, -1), (108400, -1), (108400, 71200), (-1, 71200)]
KJKU = 9900
Lfbk = 'StageArea'
iZvK = {'Plan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, AdfU):\n global _next_device_number, _next_device_number_lock\n YKHO.components = tuple(AdfU)\n OaeV = QpfX.context()\n with FUnO:\n YKHO.name = '{}/device:CUSTOM:{}'.format(OaeV.host_address_space(), _ZPB)\n _ZPB += 1\n begE, GWuV = h34n.GetParallelDeviceCapsules(YKHO.n... | [
"0.5679411",
"0.55941147",
"0.558575",
"0.5541424",
"0.5403415",
"0.5403415",
"0.53830516",
"0.53674066",
"0.5343777",
"0.5322477",
"0.5295527",
"0.52909994",
"0.52828664",
"0.526326",
"0.5253112",
"0.5232944",
"0.5231775",
"0.5214193",
"0.5195331",
"0.5194128",
"0.51882946",... | 0.0 | -1 |
return whether this question was published with 1 day | def WC1_(YKHO):
return rIAI.now() - qcWV.timedelta(days=1) <= YKHO.pub_date <= rIAI.now() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FhQf(YKHO):\n wzkt = rIAI.now()\n return wzkt >= YKHO.pub_date",
"def FhQf(YKHO):\n wzkt = rIAI.now()\n return wzkt >= YKHO.pub_date",
"def FhQf(YKHO):\n wzkt = rIAI.now()\n if wzkt >= YKHO.pub_date:\n return True\n return False",
"def FhQf(YKHO):\n return YKHO.publish_time... | [
"0.8182696",
"0.8182696",
"0.81358767",
"0.80382895",
"0.7836607",
"0.76702994",
"0.76593864",
"0.76593864",
"0.76593864",
"0.76593864",
"0.7586566",
"0.75788224",
"0.7522708",
"0.74099606",
"0.7344768",
"0.7324692",
"0.7316059",
"0.73025215",
"0.72600764",
"0.7249931",
"0.72... | 0.7687403 | 5 |
Stores artifacts for prediction. Only initialized via `from_path`. | def FIMM(YKHO, C3ST, qR6U):
YKHO._model = C3ST
YKHO._preprocessor = qR6U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n if 'metadata' in YKHO.artifact_config:\n print('SAVING METADATA')\n eEg2(YKHO.metadata, YKHO.artifact_config['metadata_path'])\n if 'model_path' in YKHO.artifact_config:\n print('SAVING MODEL')\n eEg2(YKHO.automl_pipeline, YKHO.artifact_config['model_path'])",
... | [
"0.6556663",
"0.5959246",
"0.5883894",
"0.5869441",
"0.5868788",
"0.58589554",
"0.58589554",
"0.58474493",
"0.58134484",
"0.5798324",
"0.57761806",
"0.5772521",
"0.57579774",
"0.57505834",
"0.5732315",
"0.5722602",
"0.57084817",
"0.5699972",
"0.56980807",
"0.5680247",
"0.5669... | 0.0 | -1 |
Creates an instance of YourPredictor using the given path. This loads artifacts that have been copied from your model directory in Cloud Storage. YourPredictor uses them during prediction. | def M_9t(Emd4, eG0V):
uqvc = Hy7s.path.join(eG0V, 'model.joblib')
C3ST = k6eJ.load(uqvc)
OumA = Hy7s.path.join(eG0V, 'preprocessor.joblib')
qR6U = k6eJ.load(OumA)
return Emd4(C3ST, qR6U) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO, pmON):\n YKHO.strategy = YKHO._get_distributed_strategy()\n with YKHO.strategy.scope():\n YKHO.initialise_models()\n YKHO.model = AzIx.from_pretrained(pmON)\n YKHO.trained_ = True",
"def tyeH(YKHO, pmON):\n OuMq = YKHO._get_distributed_strategy()\n with OuMq.scope():\n... | [
"0.6671635",
"0.6539024",
"0.632351",
"0.63192016",
"0.6303314",
"0.6266852",
"0.62310076",
"0.6126034",
"0.6121135",
"0.60829127",
"0.60296345",
"0.60019517",
"0.59877515",
"0.59806174",
"0.59668636",
"0.59455514",
"0.58947223",
"0.5873364",
"0.5864174",
"0.58621305",
"0.585... | 0.0 | -1 |
Creates rand dense or nested tensor with given shape and type. | def EsNR(ROpF: Tuple[Union[int, List[int]]], begE: str, yDqo: torch.dtype, type: str, _6Ge: bool=False, HNC5: bool=False) -> ht2j.Tensor:
Wc9F, tsWk, hC9O, V5Fy = ROpF
if type == 'nested':
if isinstance(tsWk, list):
def t_lK(YRbF):
return (tsWk[YRbF], hC9O, V5Fy) if not HNC5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ADdS(*ROpF: int, si3H: Optional[bool]=None) -> llWB:\n return llWB(oyIN.random.rand(*ROpF), constant=si3H, copy=False)",
"def vWdF(ROpF):\n return ht2j.rand(ROpF).float()",
"def tuKI(ROpF: Optional[Shape]=None, *, si3H: Optional[bool]=None) -> llWB:\n return llWB(oyIN.random.random(ROpF), constant... | [
"0.6893906",
"0.6626855",
"0.6624806",
"0.66015947",
"0.6566327",
"0.6510704",
"0.64825076",
"0.646985",
"0.64312387",
"0.64173424",
"0.6390368",
"0.6323624",
"0.62675935",
"0.62655467",
"0.6261402",
"0.62570006",
"0.6252494",
"0.6223445",
"0.61638784",
"0.61584455",
"0.61414... | 0.7060557 | 0 |
Dropout for sparse tensors. | def zSpM(WKvO, sMyr, ZqPb):
FzVw = sMyr
FzVw += ZylS.random.uniform(ZqPb)
Vwv8 = ZylS.cast(ZylS.floor(FzVw), dtype=ZylS.bool)
TYvy = ZylS.sparse_retain(WKvO, Vwv8)
return TYvy * (1.0 / sMyr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T7wl(YKHO, EcVT, sMyr, f3d9):\n ZqPb = [f3d9]\n FzVw = sMyr\n FzVw += ZylS.random_uniform(ZqPb)\n Vwv8 = ZylS.cast(ZylS.floor(FzVw), dtype=ZylS.bool)\n TYvy = ZylS.sparse_retain(EcVT, Vwv8)\n return TYvy * ZylS.div(1.0, sMyr)",
"def zSpM(WKvO, TyPQ, ZqPb):\n sMyr = 1 - TyPQ\n FzVw = s... | [
"0.73814416",
"0.72638047",
"0.71138567",
"0.70432353",
"0.70432353",
"0.70432353",
"0.7024422",
"0.70228106",
"0.70217985",
"0.7003882",
"0.6717129",
"0.6705799",
"0.6619567",
"0.66143274",
"0.66085285",
"0.6560995",
"0.65493375",
"0.6496815",
"0.63351077",
"0.6226428",
"0.6... | 0.7038412 | 6 |
This method uses the embed() function to display a list of Smorg's public commands. It is this bot's basic help display. | async def support(YKHO, OaeV: commands.Context) -> None:
OUQc: list = sorted(YKHO.bot.commands, key=lambda ALZf: ALZf.name)
IZ8l: dict = {'items': 'commands', 'color': ZoLb.VIBRANT_PURPLE}
oVWr: dict = {'current_prefix': OaeV.prefix}
await YKHO.embed(OaeV.channel, OUQc, initialize_embed=YKHO.initialize_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def help(YKHO, OaeV):\n Q1PJ = ZOrr.Embed(title='Help', description='RUCS24 Commands', color=16711680)\n Tvvc = {}\n for JfyU in YKHO.bot.walk_commands():\n try:\n Tvvc[JfyU.cog_name].append((JfyU.name, JfyU.help))\n except:\n Tvvc[JfyU.cog_name] = [(JfyU.name, Jf... | [
"0.7852091",
"0.7700327",
"0.7607656",
"0.75836",
"0.7569854",
"0.7542037",
"0.75326973",
"0.7522969",
"0.7507204",
"0.7506071",
"0.7480157",
"0.74703264",
"0.74376667",
"0.74283785",
"0.742256",
"0.7403571",
"0.7377875",
"0.73735386",
"0.73420644",
"0.73051167",
"0.730296",
... | 0.0 | -1 |
Get full data periods. These are the periods for which there is data on all channels. Preliminary forward filling of the data is used to fill small periods of missing data where padding values is advantageous for examplem the majority of missing data periods are less than 15 minutes (3 message intervals). The remaining... | def rejz(yYDK, OeWS, KX7r='300S', Nifu='7D'):
if yYDK.empty:
return []
ezF6 = yYDK.dropna(axis='rows', subset=OeWS.full.null_check_columns)[OeWS.datetime_column].diff()
RuO6 = ezF6[ezF6 > rLdf.to_timedelta(KX7r)].reset_index()
RuO6['start'] = yYDK.loc[RuO6['index'], OeWS.datetime_column].reset_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def foSh(yYDK, OeWS, KX7r, qoqK=3, NKcE='ffill'):\n if yYDK.empty:\n return yYDK\n emKZ = {'M': 'T', 'S': 'S'}\n EnM9 = KX7r[0:-1] + emKZ[KX7r[-1]]\n yYDK = yYDK.set_index(OeWS.datetime_column)\n yYDK = yYDK.resample(EnM9).asfreq()\n yYDK = yYDK.reset_index()\n ezF6 = yYDK.dropna(axis='... | [
"0.6300277",
"0.5568441",
"0.55097544",
"0.54608977",
"0.5413706",
"0.53745383",
"0.5371702",
"0.5338772",
"0.53258544",
"0.5291276",
"0.5261719",
"0.52454495",
"0.5239254",
"0.51930714",
"0.51905745",
"0.51827174",
"0.51709586",
"0.5124491",
"0.51101804",
"0.51101804",
"0.51... | 0.71722555 | 0 |
Fill periods of missing data within limit using method. Periods larger than limit will not be partially filled. | def foSh(yYDK, OeWS, KX7r, qoqK=3, NKcE='ffill'):
if yYDK.empty:
return yYDK
emKZ = {'M': 'T', 'S': 'S'}
EnM9 = KX7r[0:-1] + emKZ[KX7r[-1]]
yYDK = yYDK.set_index(OeWS.datetime_column)
yYDK = yYDK.resample(EnM9).asfreq()
yYDK = yYDK.reset_index()
ezF6 = yYDK.dropna(axis='rows', subset... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXGx(YKHO: T_Dataset, tpio: Hashable, qoqK: int | None=None) -> rBI9:\n from xarray.core.missing import _apply_over_vars_with_dim, MXGx\n BdN0 = _apply_over_vars_with_dim(MXGx, YKHO, dim=tpio, limit=qoqK)\n return BdN0",
"def hVLt(YKHO, qoqK=None):\n return YKHO._fill('ffill', limit=qoqK)",
"de... | [
"0.71329814",
"0.6980307",
"0.65288806",
"0.6505704",
"0.6166306",
"0.6129757",
"0.6060821",
"0.60559577",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",
"0.605081",... | 0.76493436 | 0 |
Get List input Return List of unique element with same order as input | def wdli(IqQl):
b7mR = {}
for YRbF, wEf2 in enumerate(IqQl):
b7mR[wEf2] = b7mR.get(wEf2, YRbF)
return sorted(b7mR, key=b7mR.get) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DV61(vC9B):\n return list(set(vC9B))",
"def kcwm(IqQl):\n B6x2 = set(IqQl)\n vaOw = list(B6x2)\n return vaOw",
"def DV61(mZmz):\n uED7 = []\n for YRbF in mZmz:\n if not YRbF in uED7:\n uED7.append(YRbF)\n return uED7",
"def vaOw(YKHO, zXzD):\n Aofo = []\n PwWw... | [
"0.7799717",
"0.77890724",
"0.7733547",
"0.7610909",
"0.7610236",
"0.75972486",
"0.7586499",
"0.7540693",
"0.7534462",
"0.74673426",
"0.7466642",
"0.74541074",
"0.74181",
"0.74177206",
"0.74177206",
"0.7415508",
"0.7395626",
"0.73566765",
"0.73566765",
"0.7333981",
"0.7311297... | 0.0 | -1 |
Return an iterator yielding the chunks. | def dlVb(YKHO, P0cK: int | None=None) -> iu5r[YiYM]:
if P0cK and P0cK > 1:
zNig = len(YKHO._df)
YPaw = zNig // P0cK
if zNig % P0cK != 0:
YPaw += 1
for yKcO in range(0, YPaw * P0cK, YPaw):
yield YiYM(YKHO._df.iloc[yKcO:yKcO + YPaw, :], YKHO._nan_as_null, YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WaSS(YKHO, iz5W=None):\n return otEp(YKHO, iz5W)",
"def aNpr(YKHO, ztRo=dVY5):\n otbn = YKHO.calculate_chunks_number()\n for YRbF in range(otbn):\n nPrm = YKHO.file.read(ztRo)\n yield nPrm",
"def dlVb() -> bDy6[bytes]:\n for YRbF in range(0, vvjl, Bk3d):\n yield WAlC[YRbF:Y... | [
"0.81081134",
"0.7964189",
"0.76777494",
"0.7499942",
"0.73893434",
"0.7353607",
"0.73503715",
"0.7308597",
"0.7184173",
"0.717657",
"0.7150799",
"0.7148833",
"0.71452487",
"0.71418184",
"0.7141161",
"0.7131522",
"0.7053004",
"0.701591",
"0.70084697",
"0.700104",
"0.7001002",... | 0.0 | -1 |