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
ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newOb...
def EXZN(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']: return qe4Y.get(YKHO, 'object_selector')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EXZN(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']:\n return qe4Y.get(YKHO, 'object_selector')", "def EXZN(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']:\n return qe4Y.get(YKHO, 'object_selector')", "def EXZN(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']:\n return qe4Y.get(YKH...
[ "0.6504774", "0.6504774", "0.6504774", "0.46324268", "0.46075478", "0.45837897", "0.45533273", "0.45282823", "0.44923168", "0.4475264", "0.44605938", "0.4435445", "0.44078732", "0.43742326", "0.4373357", "0.43520212", "0.4286432", "0.42862844", "0.42757705", "0.42624018", "0....
0.64562577
4
NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.
def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']: return qe4Y.get(YKHO, 'namespace_selector')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'namespace_selector')", "def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'namespace_selector')", "def JYiG(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'names...
[ "0.61505044", "0.61505044", "0.61505044", "0.55928576", "0.55928576", "0.55928576", "0.5499146", "0.5499146", "0.5499146", "0.5199044", "0.5176694", "0.5031577", "0.49377888", "0.49080932", "0.4837504", "0.480669", "0.48050517", "0.47186306", "0.46861464", "0.46817052", "0.46...
0.6185619
1
ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newOb...
def EXZN(YKHO) -> h8nf['_meta.v1.outputs.LabelSelectorPatch']: return qe4Y.get(YKHO, 'object_selector')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EXZN(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'object_selector')", "def EXZN(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'object_selector')", "def EXZN(YKHO) -> h8nf['_meta.v1.outputs.LabelSelector']:\n return qe4Y.get(YKHO, 'object_sele...
[ "0.64562577", "0.64562577", "0.64562577", "0.46324268", "0.46075478", "0.45837897", "0.45533273", "0.45282823", "0.44923168", "0.4475264", "0.44605938", "0.4435445", "0.44078732", "0.43742326", "0.4373357", "0.43520212", "0.4286432", "0.42862844", "0.42757705", "0.42624018", ...
0.6504774
1
Compute a stoplist of `n` tokens.
def Inlj(YKHO, exwG, RDhP, rQow, SxVy='corpus'): nPIK = [{'$match': {'feature': RDhP, 'language': rQow}}] if SxVy == 'corpus': nPIK.append({'$project': {'_id': False, 'index': True, 'token': True, 'frequency': {'$reduce': {'input': {'$objectToArray': '$frequencies'}, 'initialValue': 0, 'in': {'$sum': ['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HyjZ(s2mk, exwG):\n return zip(*[s2mk[YRbF:] for YRbF in range(exwG)])", "def hbLe(qbSC: Iterable, exwG: int) -> list:\n return [qbSC[G1Hx:G1Hx + exwG] for G1Hx in range(0, len(qbSC), exwG)]", "def Lvzb(KCHu, exwG):\n return [KCHu[G1Hx:G1Hx + exwG] for G1Hx in range(0, len(KCHu), exwG)]", "def e...
[ "0.63319945", "0.62540734", "0.6011296", "0.5965497", "0.5937081", "0.5926734", "0.5925072", "0.588251", "0.58429164", "0.5829372", "0.5798192", "0.5786993", "0.5729767", "0.5718834", "0.5663768", "0.5632978", "0.5607424", "0.56007063", "0.5591931", "0.5591931", "0.5585464", ...
0.64984894
0
Calculates the distance between two positions
def cEyD(FBNX): yk4i = oyIN.abs(FBNX[0] - FBNX[1]) if yk4i: return yk4i + 1 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(gwqK, yCTS):\n return epAf.sqrt((gwqK[0] - yCTS[0]) ** 2.0 + (gwqK[1] - yCTS[1]) ** 2.0)", "def pImw(gwqK, yCTS):\n jzdc, Fg_i = gwqK\n Z9rn, Csk6 = yCTS\n return PZyS((jzdc - Z9rn) ** 2 + (Fg_i - Csk6) ** 2)", "def D0Sn(gwqK, yCTS):\n return ((gwqK[0] - yCTS[0]) ** 2 + (gwqK[1] - yCTS[...
[ "0.8428521", "0.8326586", "0.83080405", "0.808734", "0.77856445", "0.77551603", "0.7743387", "0.76857173", "0.7677639", "0.76744515", "0.760708", "0.76041555", "0.75843275", "0.75741565", "0.75730973", "0.7563276", "0.7540361", "0.7528646", "0.75231034", "0.75201976", "0.7515...
0.0
-1
A POST with invalid JSON is an error.
def je7T(YKHO, P4t4, hSLq, ZuOu): Ylbp = YKHO._call(P4t4, '®', method='post', status=400) aeup = "JSONDecodeError('Expecting value: line 1 column 1 (char 0)')" YKHO.check_response(hSLq, Ylbp, 'parse_error', details={'decode': aeup}) ZuOu.assert_incr_once(YKHO.metric_type + '.request', tags=[YKHO.metric_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rgJX(YKHO):\n geh0 = YKHO.client.post(gxEw('transcript:record_telegram'), content_type='application/json', data='{\"something\":')\n YKHO.assertEqual(geh0.status_code, 400)\n YKHO.assertEqual(geh0.content, b'Could not parse JSON')\n YKHO.assertEqual(LuKW.objects.count(), 0)", "def Ujd7(YKHO):\n ...
[ "0.78569204", "0.7748738", "0.77473855", "0.76111704", "0.7580805", "0.75174755", "0.7184666", "0.71757674", "0.71383077", "0.7041253", "0.70384777", "0.6982874", "0.6972615", "0.69343084", "0.69057626", "0.68960035", "0.68927073", "0.68500185", "0.6842608", "0.68354905", "0....
0.6766023
23
Omitting the API key is a 400 error.
def Rn14(YKHO, P4t4, hSLq, OeZe, ZuOu, nfqd): Ylbp = YKHO._call(P4t4, api_key=None, ip=YKHO.test_ip, status=400) YKHO.check_response(hSLq, Ylbp, 'invalid_key') ZuOu.assert_incr_once(YKHO.metric_type + '.request', tags=[YKHO.metric_path, 'key:none']) assert OeZe.keys('apiuser:*') == [] assert nfqd.on...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7R4(R_du: str=LvNm(iK6s)):\n if R_du != WXSU:\n raise pgG1(status_code=jGRS.HTTP_401_UNAUTHORIZED, detail='Invalid API Key')", "def NeLG(YKHO):\n with YKHO.subTest('Missing API key'):\n geh0 = YKHO.client.get(YKHO.url, HTTP_AUTHORIZATION=f'ApiKey {YKHO.web_user.username}:')\n YKHO...
[ "0.7391124", "0.70752287", "0.67565364", "0.67308754", "0.6723097", "0.6587633", "0.6580283", "0.651728", "0.64918995", "0.64464116", "0.64196974", "0.63978416", "0.6352706", "0.63420165", "0.63235754", "0.63078076", "0.629226", "0.6279587", "0.6222863", "0.6219825", "0.62156...
0.6108584
28
An invalid API key is sanitized to the same as no key.
def wyRX(YKHO, P4t4, hSLq, OeZe, ZuOu, nfqd): Ylbp = YKHO._call(P4t4, api_key='invalid_key', ip=YKHO.test_ip, status=400) YKHO.check_response(hSLq, Ylbp, 'invalid_key') ZuOu.assert_incr_once(YKHO.metric_type + '.request', tags=[YKHO.metric_path, 'key:none']) assert OeZe.keys('apiuser:*') == [] asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7R4(R_du: str=LvNm(iK6s)):\n if R_du != WXSU:\n raise pgG1(status_code=jGRS.HTTP_401_UNAUTHORIZED, detail='Invalid API Key')", "def thd8(wOGa):\n wOGa.api_key['apiKeyAuth'] = Hy7s.getenv('DD_TEST_CLIENT_API_KEY', 'fake')", "def f76g(YKHO):\n YKHO.geocoder = mh5t(api_key='bad key')\n wit...
[ "0.7216783", "0.6859832", "0.67122006", "0.6638784", "0.66364956", "0.66364956", "0.6544489", "0.6487009", "0.6426013", "0.6385455", "0.63412976", "0.6334017", "0.6317279", "0.6300673", "0.62709343", "0.6262382", "0.62359405", "0.62293065", "0.6160595", "0.6146745", "0.614294...
0.620479
18
r""" Attempt to parse ``text``. If it parses cleanly to a single string literal, return its value. Otherwise return ``None``. >>> _test_parse_string_literal(r'"foo\n" r"\nbar"', None) 'foo\n\\nbar'
def em2J(l5Ny, JbyC): l5Ny = JdwM(l5Ny) if VOoL: try: l5Ny.joined.encode('ascii') except UnicodeError: l5Ny = JdwM(u'# encoding: utf-8\n' + QMSQ(l5Ny), filename=l5Ny.filename) try: LBgm = VFQg(l5Ny, JbyC, False, 'eval') except SyntaxError: return N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QK7R(U6Xh):\n U5bT = ''\n if smfm and x0gw._disable_str_exceptions:\n U5bT = zhIp(U6Xh, 'ignore')\n else:\n U5bT = zhIp(U6Xh)\n return U5bT", "def f9JM(KCHu):\n return _Sr4(KCHu.split('\\n'))", "def ycP5(l5Ny):\n return str(str(l5Ny).encode('ascii', 'ignore')).replace('\\\\n...
[ "0.5842667", "0.5618485", "0.56167006", "0.5583283", "0.5542042", "0.54999197", "0.5475283", "0.543814", "0.541331", "0.5266765", "0.5242462", "0.5216988", "0.5193203", "0.51850575", "0.5164346", "0.5150462", "0.5112822", "0.5095806", "0.50734085", "0.50076634", "0.49420857",...
0.7277454
0
Create new r singlequbit gate.
def FIMM(YKHO, q7In: ParameterValueType, rVnq: ParameterValueType, UXqs: Optional[str]=None): super().__init__('r', 1, [q7In, rVnq], label=UXqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJVf(YKHO, x_QX) -> Rv0t:\n ewpR = kLP0(name=YKHO.__rabi_gate_name__, num_qubits=1, params=[x_QX])\n DPNn = Rv0t(1)\n DPNn.append(ewpR, (0,))\n DPNn.measure_active()\n return DPNn", "def MJVf(YKHO, x_QX) -> Rv0t:\n DPNn = Rv0t(1)\n DPNn.x(0)\n DPNn.append(kLP0(name=YKHO.__rabi_gate_na...
[ "0.62880856", "0.6281091", "0.6211601", "0.6173668", "0.6084045", "0.60125744", "0.597463", "0.5939833", "0.5913786", "0.590543", "0.58104956", "0.58021367", "0.5794017", "0.5630649", "0.5561157", "0.55341953", "0.5529456", "0.5522379", "0.55172116", "0.54558975", "0.545555",...
0.0
-1
Return a numpy.array for the R gate.
def uzII(YKHO, yDqo=None): q7In, rVnq = (float(YKHO.params[0]), float(YKHO.params[1])) YhSR = epAf.cos(q7In / 2) YUNn = epAf.sin(q7In / 2) rjHn = kLQb(-1j * rVnq) EFbp = kLQb(1j * rVnq) return XTiz.array([[YhSR, -1j * rjHn * YUNn], [-1j * EFbp * YUNn, YhSR]], dtype=yDqo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q3TB(bLm4):\n gtI8, KG9w = (oyIN.cos(bLm4), oyIN.sin(bLm4))\n VNqG, pSfY = (oyIN.zeros(len(gtI8)), oyIN.ones(len(gtI8)))\n an6U = oyIN.array([[gtI8, KG9w, VNqG], [-KG9w, gtI8, VNqG], [VNqG, VNqG, pSfY]], dtype=oyIN.float32)\n return an6U.transpose((2, 0, 1))", "def BGc_(YKHO):\n return XTiz.ar...
[ "0.64161867", "0.6314216", "0.62355024", "0.61247754", "0.61197245", "0.6112341", "0.6110332", "0.6077362", "0.60369945", "0.5988638", "0.5966489", "0.59268564", "0.5926733", "0.5922453", "0.5886348", "0.5868226", "0.583655", "0.58294815", "0.58294815", "0.58283305", "0.58252...
0.0
-1
Return the configuration data of the user.
def uBeC(YKHO): if YKHO._key not in YKHO._user_keys(): raise usbH(YKHO._key, YKHO._user_keys()) return next((nPrm for nPrm in YKHO.CONFIG_DATA if nPrm.key == YKHO._key))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LF7u(YKHO):\n return YKHO.__user_config", "def h4Rr(YKHO):\n return YKHO.user_data", "def h4Rr(YKHO):\n return YKHO.user_data", "def NMoC(YKHO):\n GPtr = YKHO.user_file.parseString(YKHO.content)\n return GPtr", "def gFsc(YKHO):\n return {'username': YKHO.username, 'email': YKHO.email,...
[ "0.82107943", "0.74919313", "0.74919313", "0.74144644", "0.7058112", "0.701797", "0.7009727", "0.69936085", "0.6965996", "0.6965826", "0.68877935", "0.68784714", "0.68647695", "0.68565", "0.68558943", "0.68555415", "0.68514436", "0.68341523", "0.6821567", "0.6804861", "0.6784...
0.78220844
1
Return the media path.
def zAg0(YKHO): return YKHO.video_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ADRz(YKHO):\n return YKHO._path", "def yxQq(YKHO) -> GkAb:\n return YKHO.path_supervisor / vNQk", "def uDqM():\n return fHZh[kaPC]", "def gF25(YKHO, Ux0P):\n return gzes(gCuF.CMS_PAGE_MEDIA_PATH, '%d' % YKHO.id, Ux0P)", "def Zg0d(YKHO):\n return Hy7s.path.join(gCuF.MEDIA_ROOT, YKHO.path)...
[ "0.9062577", "0.8385267", "0.82831967", "0.80998045", "0.7792922", "0.75078267", "0.7481333", "0.7335179", "0.72402334", "0.72402334", "0.72179145", "0.717697", "0.69695556", "0.6942414", "0.6928708", "0.6922968", "0.6892658", "0.6884245", "0.6854536", "0.6847473", "0.684152"...
0.0
-1
It creates a onehot vector with a 1.0 in position represented by index
def aFAW(d6pt): AdYp = 2 aFAW = oyIN.zeros(AdYp) aFAW[d6pt] = 1.0 return aFAW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(d6pt):\n hlel = oyIN.zeros(100)\n hlel[d6pt] = 1\n return hlel", "def HTA3(d6pt, exwG):\n WKvO = oyIN.zeros(exwG)\n WKvO[d6pt] = 1\n return WKvO", "def KLLm(d6pt, Htse, yDqo=oyIN.uint8):\n tsWk = len(d6pt)\n U5bT = oyIN.zeros((tsWk, Htse), yDqo)\n for YRbF in range(tsWk):\n ...
[ "0.9184559", "0.8825344", "0.85994714", "0.84946597", "0.83207494", "0.81589353", "0.8152737", "0.8073309", "0.8060789", "0.80439085", "0.7853966", "0.7841132", "0.7782498", "0.7770441", "0.77196914", "0.77196914", "0.77196914", "0.77196914", "0.7674075", "0.7671743", "0.7647...
0.90727466
1
Remove m from untried_moves and add a new child node for this move. Return the added child node.
def M4sg(YKHO, r8hN, KCHu): exwG = o7DN(move=r8hN, parent=YKHO, state=KCHu) YKHO.untried_moves.remove(r8hN) YKHO.child_nodes.append(exwG) return exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZIWp(YKHO, r8hN, KCHu):\n exwG = o7DN(move=r8hN, parent=YKHO, state=KCHu)\n YKHO.untriedMoves.remove(r8hN)\n YKHO.childNodes.append(exwG)\n return exwG", "def ZIWp(YKHO, r8hN, KCHu):\n exwG = o7DN(move=r8hN, parent=YKHO, state=KCHu)\n YKHO.untriedMoves.remove(r8hN)\n YKHO.childNodes.appe...
[ "0.7896557", "0.7896557", "0.7248093", "0.7072638", "0.7017592", "0.68352014", "0.68026847", "0.6385622", "0.60786456", "0.59329075", "0.56287676", "0.5617678", "0.55258834", "0.54593515", "0.54224527", "0.5306626", "0.5270355", "0.5252668", "0.52102196", "0.52102196", "0.521...
0.8113934
0
Compute the next indent.
def MnRD(YKHO): print(YKHO.indent_size * YKHO.n_indent * ' ', end='', flush=True, file=YKHO.fp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxAv(khtY):\n U5bT = ''\n for P2GO in range(khtY):\n U5bT += ' '\n return U5bT", "def MnRD(YKHO, EAdr=1):\n YKHO._level += EAdr\n YKHO.leader = YKHO._indenter * YKHO._level\n return YKHO", "def W4Fr(YKHO):\n YKHO._indentlist.append(YKHO._curindent)\n if not YKHO._equalsigns[...
[ "0.6588084", "0.65101653", "0.6506656", "0.6427669", "0.6427669", "0.62648153", "0.6157851", "0.610626", "0.60889804", "0.6059578", "0.6030092", "0.60117376", "0.5932191", "0.59064144", "0.59027904", "0.5884138", "0.5876161", "0.58736193", "0.5845099", "0.58375573", "0.577470...
0.58159393
20
Open a new indent bracket for the log.
def open(YKHO, tO9_): YKHO.unhang() YKHO.indent() print(tO9_, end='', flush=True, file=YKHO.fp) YKHO.hanging = True YKHO.n_indent += 1 YKHO.t_last = ITS7.time()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d5ak(YKHO):\n YKHO.indent += 1", "def MnRD(YKHO):\n return YKHO.__class__(YKHO.stream, YKHO.style, YKHO.dialect, YKHO.indentation_level + 1)", "def W4Fr(YKHO):\n YKHO._indentlist.append(YKHO._curindent)\n if not YKHO._equalsigns[-1]:\n YKHO._curindent = YKHO._curindent + YKHO._indent", ...
[ "0.63720626", "0.63553363", "0.63300574", "0.63167554", "0.6173447", "0.6121826", "0.6119627", "0.60854554", "0.60854554", "0.60370636", "0.58527756", "0.5806137", "0.57808965", "0.577337", "0.57444227", "0.57136214", "0.5688544", "0.56771344", "0.5639523", "0.5636844", "0.55...
0.51618654
49
export json file to Hard Disk
def g75F(YKHO, pmON): with open(pmON, 'w', encoding='utf-8') as eHNT: qQXR.dump(YKHO.data, eHNT, ensure_ascii=False) YKHO.path = pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYCN(pmON):\n CygE(pmON)", "def AHFl(nPrm):\n try:\n UXEK = open('output.json', 'w')\n UXEK.write(qQXR.dumps(nPrm))\n except:\n print(rUyw.GREEN + 'File not found or path is incorrect')\n finally:\n print(rUyw.GREEN + 'Success go to output.json to look at the json')", ...
[ "0.73209536", "0.7157034", "0.70314497", "0.692613", "0.692171", "0.684962", "0.6836541", "0.6827527", "0.682569", "0.6811672", "0.6795095", "0.6785412", "0.67660373", "0.67634755", "0.675192", "0.6746764", "0.6699262", "0.66979474", "0.6677845", "0.6677845", "0.667456", "0...
0.7359675
0
Apply BatchNorm, Relu, 3x3 Conv2D, optional bottleneck block and dropout.
def x9_l(D8Ke, mM8X, RzcG=False, lo24=None, oNEO=0.0001): iXOV = 1 if nMvt.image_data_format() == 'channels_first' else -1 WKvO = GVKG(axis=iXOV, epsilon=1.1e-05, fused=Ea_4)(D8Ke) WKvO = MroH('relu')(WKvO) if RzcG: VxXJ = mM8X * 4 WKvO = yHwh(VxXJ, (1, 1), kernel_initializer='he_normal'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x9_l(YKHO, WKvO, EtM5, jehQ, mM8X, lo24=None, oNEO=0.0001):\n SGf8 = 1.1e-05\n RmTP = 'conv' + str(EtM5) + '_' + str(jehQ)\n IlaS = 'relu' + str(EtM5) + '_' + str(jehQ)\n VxXJ = mM8X * 4\n WKvO = GVKG(epsilon=SGf8, axis=YKHO.concat_axis, name=RmTP + '_x1_bn')(WKvO)\n WKvO = bi20(axis=YKHO.con...
[ "0.6870552", "0.6617072", "0.65638894", "0.64518076", "0.6448735", "0.6413475", "0.6398698", "0.6394284", "0.6388518", "0.63775635", "0.6374446", "0.63673294", "0.6365973", "0.6362543", "0.6341161", "0.63305867", "0.62932247", "0.6292031", "0.6282075", "0.6273056", "0.6268018...
0.70604265
0
Build a dense_block where the output of each conv_block is fed to subsequent ones.
def Dgbe(WKvO, O7Wv, mM8X, bV3u, RzcG=False, lo24=None, oNEO=0.0001, PNjQ=True, lsSl=False): iXOV = 1 if nMvt.image_data_format() == 'channels_first' else -1 yqD4 = [WKvO] for YRbF in range(O7Wv): BBLH = x9_l(WKvO, bV3u, RzcG, lo24, oNEO) yqD4.append(BBLH) WKvO = MPiJ([WKvO, BBLH], a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggRs(WKvO):\n zhMh = cxer(WKvO, 32)\n zhMh = ZylS.keras.layers.Concatenate()([WKvO, zhMh])\n WL4f = cxer(zhMh, 32)\n WL4f = ZylS.keras.layers.Concatenate()([WKvO, zhMh, WL4f])\n digQ = cxer(WL4f, 32)\n digQ = ZylS.keras.layers.Concatenate()([WKvO, zhMh, WL4f, digQ])\n NhE7 = cxer(digQ, 32)...
[ "0.7320509", "0.73200613", "0.72024345", "0.697243", "0.6824698", "0.67776823", "0.6731264", "0.6731264", "0.6715076", "0.67008", "0.66734636", "0.6647114", "0.66404796", "0.65914774", "0.658613", "0.64910203", "0.6485165", "0.64833343", "0.6462071", "0.6458514", "0.64405066"...
0.6310679
28
Apply BatchNorm, Relu 1x1, Conv2D, optional compression, dropout and Maxpooling2D.
def RXWM(D8Ke, mM8X, Rrsh=1.0, oNEO=0.0001): iXOV = 1 if nMvt.image_data_format() == 'channels_first' else -1 WKvO = GVKG(axis=iXOV, epsilon=1.1e-05, fused=Ea_4)(D8Ke) WKvO = MroH('relu')(WKvO) WKvO = yHwh(int(mM8X * Rrsh), (1, 1), kernel_initializer='he_normal', padding='same', use_bias=False, kernel_r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lFeu(DYuh, tYiq, Ot1W, _0fC, dvgN, ykhl, zGSe, rnv5, Tq9k=False):\n if Tq9k:\n D7zl = wBOj(tYiq, 2)\n else:\n D7zl = ykhl(tYiq, affine=rnv5, track_running_stats=zGSe)\n return U78l.Sequential(U78l.Conv2d(in_channels=DYuh, out_channels=tYiq, kernel_size=Ot1W, stride=_0fC, padding=dvgN), D...
[ "0.66982466", "0.65911496", "0.63842136", "0.63681895", "0.63061404", "0.6221652", "0.62119734", "0.6202046", "0.61898035", "0.6180233", "0.61398166", "0.61282593", "0.607547", "0.60572475", "0.60393584", "0.60241413", "0.60209775", "0.59956324", "0.59935766", "0.59911615", "...
0.0
-1
Return the class of the device.
def rM2U(YKHO): return YKHO._device_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO.sensor_type['class']", "def rM2U(YKHO):\n return YKHO.type", "def rM2U(YKHO):\n return YKHO.type", "def rM2U(YKHO):\n return YKHO.type", "def rM2U(YKHO):\n return YKHO._device_class", "def ZvYj(YKHO):\n return YfpN.get_class(YKHO.type)", "def rM2U(YKHO):\...
[ "0.9065848", "0.90097666", "0.90097666", "0.90097666", "0.8984305", "0.8983965", "0.8975813", "0.8975813", "0.8975813", "0.8975813", "0.8975813", "0.8939265", "0.8904466", "0.88507956", "0.8705679", "0.870415", "0.870415", "0.8660871", "0.8659881", "0.85736346", "0.85736346",...
0.8966391
11
Get the state of this virus particle's resistance to a drug. This method is called by getResistPop() in Patient to determine how
def dZQV(YKHO, Sg6F): try: return YKHO.resistances[Sg6F] except: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B7qW(YKHO):\n return YKHO.resistence", "def bRed(YKHO, UB2V):\n FNKX = 0\n for lqcW in YKHO.viruses:\n Xf3j = 0\n for Sg6F in UB2V:\n if lqcW.isResistantTo(Sg6F):\n Xf3j += 1\n if len(UB2V) != 0 and Xf3j == len(UB2V):\n FNKX += 1\n return ...
[ "0.6702044", "0.6339946", "0.62971777", "0.61240363", "0.61240363", "0.59820527", "0.56072134", "0.5542137", "0.5485364", "0.54819393", "0.5475738", "0.54744315", "0.54487824", "0.54269034", "0.5425222", "0.5423521", "0.54153854", "0.541362", "0.54010385", "0.53608316", "0.53...
0.54758745
10
Returns a 2D image kernel for motion blur effect.
def ukbw(Ot1W, YylR): if Ot1W % 2 == 0: raise ValueError('kernel_size must be an odd number!') if YylR < 0 or YylR > oyIN.pi: raise ValueError('angle must be between 0 (including) and pi (not including)') VNtv = 2.0 * YylR / oyIN.pi if VNtv > 1: VNtv = 1 - VNtv vNTb = Ot1W //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bymt(VXjJ, WZcn):\n kECe = tzs0(WZcn)\n zr3f = XC5k.filter2D(VXjJ, -1, kECe)\n return zr3f", "def hOLw(VXjJ, WZcn=(5, 5)):\n jbXL = VXjJ.copy()\n G1Hx = oyIN.ones((WZcn[0], WZcn[1]), oyIN.float32) / (WZcn[0] * WZcn[1])\n zr3f = XC5k.filter2D(jbXL, -1, G1Hx)\n return zr3f", "def ddJo(ex...
[ "0.7283915", "0.7140816", "0.7023423", "0.70101225", "0.70101225", "0.6991672", "0.6846618", "0.66945076", "0.6636728", "0.66259897", "0.6605494", "0.6526139", "0.65212506", "0.64418656", "0.64344084", "0.6368762", "0.63521224", "0.6334014", "0.6283472", "0.62730896", "0.6266...
0.64234024
15
create a symbolic output tensor according to the input and num_channels.
def lDLZ(FRUf, Qi3c): ZUqR = yHwh(Qi3c, (3, 3), padding='same')(FRUf) V1jf = MroH('relu')(ZUqR) D9EO = yHwh(Qi3c, (3, 3), padding='same')(V1jf) hlel = XVRe()([FRUf, D9EO]) return MroH('relu')(hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p2G3(YKHO, DYuh):\n raise NotImplementedError", "def hlel(k3l6, I07O, mWFP='output'):\n with ZylS.name_scope(mWFP):\n return ZylS.layers.dense(k3l6, I07O)", "def J7Kx(input, xMux=3):\n if len(input.shape) == 2:\n input = input.unsqueeze(dim=0).unsqueeze(dim=0)\n if len(input.shape...
[ "0.6197386", "0.5951119", "0.58993644", "0.58042645", "0.5790721", "0.5775568", "0.5763804", "0.57286006", "0.5711782", "0.566964", "0.5665339", "0.56541854", "0.5632984", "0.56196564", "0.56024987", "0.55770755", "0.55770755", "0.55770755", "0.55740595", "0.55542624", "0.551...
0.5540199
20
Settings for ecommerce tests
def zg96(gCuF): gCuF.CYBERSOURCE_SECURITY_KEY = D40M gCuF.CYBERSOURCE_SECURE_ACCEPTANCE_URL = _tGt gCuF.CYBERSOURCE_REFERENCE_PREFIX = jkBB gCuF.ECOMMERCE_EMAIL = 'ecommerce@example.com'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO) -> None:\n YKHO.default = msfn('Test Product')\n YKHO.tester = msfn('Tester', price=15, weight=2)", "def DPQ2(YKHO):\n pass", "def DPQ2(YKHO):\n pass", "def MWDb():\n HYb3()", "def FCbF(YKHO):\n YKHO.driver.get('http://taqc-opencart.epizy.com/')", "def BD7c():\n kgRy.d...
[ "0.6596972", "0.6387029", "0.6387029", "0.6294741", "0.62926245", "0.6178814", "0.61680466", "0.6162457", "0.61512816", "0.61200273", "0.6050988", "0.603545", "0.60093886", "0.599446", "0.59902996", "0.59851176", "0.59034777", "0.5898435", "0.5878348", "0.5877592", "0.5866852...
0.7348304
0
If CyberSource POSTs with fields missing, we should at least save it in a receipt. It is very unlikely for Cybersource to POST invalid data but it also provides a way to test that we save a Receipt in the event of an error.
def hROt(x0hE, AZgw): nPrm = {} for bGrB in range(5): nPrm[SlId.text()] = SlId.text() AZgw.patch('ecommerce.views.IsSignedByCyberSource.has_permission', return_value=True) try: x0hE.post(gxEw('order-fulfillment'), data=nPrm) except KeyError: pass assert L9Jq.objects.count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UrQj(YKHO):\n YKHO.POST_list()\n OtVm = YKHO.GET_data('/api/list/' + YKHO.list_id)\n YKHO.assertTrue('receipts' not in OtVm or not len(OtVm['receipts']))\n YKHO.POST_receipt()\n OtVm = YKHO.GET_data('/api/list/' + YKHO.list_id)\n YKHO.assertTrue('receipts' in OtVm)\n YKHO.assertEqual([YKHO...
[ "0.6355556", "0.6241451", "0.6235465", "0.60819006", "0.6039528", "0.6026913", "0.60134166", "0.5994399", "0.5970237", "0.59693354", "0.59605694", "0.59394586", "0.59214956", "0.59057224", "0.5885579", "0.5864299", "0.58319306", "0.58186555", "0.5802582", "0.57921714", "0.574...
0.72392446
0
Test if a request is made for a not existing bootcamp run
def h9jJ(Zwka, x0hE): CBIr, bGrB, bGrB = Zwka RqI6 = gxEw('bootcamp-run-detail', kwargs={'username': CBIr.username, 'run_key': 123456789}) x0hE.force_login(CBIr) assert x0hE.get(RqI6).status_code == kL40.HTTP_404_NOT_FOUND
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G1kx(YFQb, mhza):\n return not (YFQb and mhza)", "def yWbd(YKHO):\n cdj0 = YKHO.context.get_personal_fundraising_campaign_url()\n g057 = cdj0 == YKHO.context.absolute_url()\n rnmk = 'create-personal-campaign-page' in YKHO.request.URL\n return not g057 and (not rnmk)", "def ju8b():\n geh0 ...
[ "0.61426", "0.58326644", "0.5812619", "0.578944", "0.5771344", "0.5764883", "0.57473797", "0.57418466", "0.57273436", "0.5710144", "0.5705302", "0.56915516", "0.56696975", "0.56621456", "0.5659947", "0.5647635", "0.5645536", "0.5633153", "0.5612597", "0.5603417", "0.55997324"...
0.5677895
12
Get a user by id or slug
def TKWP(YKHO, uJjO): j8eK = 'users/' + uJjO return YKHO.make_request(j8eK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(id):\n pass", "def eG0a(YKHO, s5ru):\n DW23 = YKHO.get_users({'profile_url': s5ru})\n if len(DW23) > 0:\n return DW23[0]", "def NMoC(id):\n return mv1M.query.filter_by(id=id).first()", "def jRq6(uJjO: int) -> h8nf[mv1M]:\n CBIr = mv1M.query.filter_by(id=uJjO).first()\n retur...
[ "0.8035785", "0.7991731", "0.77811617", "0.76520264", "0.7636256", "0.76316124", "0.7606467", "0.7601722", "0.75807446", "0.75596803", "0.75213355", "0.7516144", "0.7511616", "0.7511616", "0.7511616", "0.7511616", "0.7508023", "0.74741817", "0.74545884", "0.74407727", "0.7438...
0.7279362
29
Read textfile line by line Reads textfile with splitlines attribute. Returns a list with the contents of the textfile, every row contains one entry.
def UsVE(pmON): with open(pmON, 'r') as eHNT: NRcB = eHNT.read().splitlines() eHNT.close() return NRcB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kRUF(Ux0P):\n eHNT = open(Ux0P)\n Kt9y = []\n while 1:\n KCHu = eHNT.readline()\n if KCHu == '':\n break\n KCHu = vIwR.replace(KCHu, '\\n', '')\n if KCHu == '':\n continue\n Kt9y.append(KCHu)\n eHNT.close()\n return Kt9y", "def ZLVQ(Ux0P...
[ "0.7453147", "0.7359046", "0.73428", "0.728118", "0.7247222", "0.7196997", "0.71782666", "0.7177947", "0.7116076", "0.7109894", "0.7107066", "0.71024007", "0.7051611", "0.7045261", "0.6933051", "0.69276714", "0.689581", "0.6882676", "0.68765837", "0.6848725", "0.68406165", ...
0.7096376
12
Calculate yaw from quaternion
def _3EA(jCyH, PMVZ, MDnR, zDbD): tjON = mM0K / 180 gZUC = PMVZ * PMVZ ux4C = MDnR * MDnR dwyc = 2 * (zDbD * MDnR + jCyH * PMVZ) ve1H = 1 - 2 * (PMVZ * PMVZ + MDnR * MDnR) xTkQ = int(vwZf(dwyc, ve1H) / tjON) return xTkQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BhOM(YKHO):\n YKHO._normalise()\n xTkQ = oyIN.arctan2(2 * (YKHO.q[0] * YKHO.q[3] - YKHO.q[1] * YKHO.q[2]), 1 - 2 * (YKHO.q[2] ** 2 + YKHO.q[3] ** 2))\n H2HG = oyIN.arcsin(2 * (YKHO.q[0] * YKHO.q[2] + YKHO.q[3] * YKHO.q[1]))\n rKSe = oyIN.arctan2(2 * (YKHO.q[0] * YKHO.q[1] - YKHO.q[2] * YKHO.q[3]), ...
[ "0.783125", "0.7745037", "0.7661946", "0.75522274", "0.74395573", "0.7401408", "0.7311998", "0.73104393", "0.72531104", "0.7094526", "0.6944425", "0.69329786", "0.69141245", "0.6913764", "0.68724704", "0.68664414", "0.68565625", "0.68238753", "0.6806968", "0.6756935", "0.6734...
0.784347
0
Get the front element.
def T7C_(YKHO): if len(YKHO.popStack) != 0: return YKHO.popStack[-1] if len(YKHO.pushStack) == 0: return while YKHO.pushStack != []: ycBG = YKHO.pushStack.pop(-1) YKHO.popStack.append(ycBG) return YKHO.popStack[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.0
-1
Returns whether the queue is empty.
def lsmZ(YKHO): if len(YKHO.pushStack) == len(YKHO.popStack) == 0: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.8835949", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462...
0.0
-1
Provide a friendly representation
def wHJl(YKHO) -> str: QpfX = ' '.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._solution.items())) return '<Twilio.Taskrouter.V1.WorkflowInstance {}>'.format(QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.76010835", "0.7571921", "0.7230172", "0.7216933", "0.7194604", "0.71428955", "0.714158", "0.71369046", "0.7134454", "0.7134454", "0.7131177", "0.7104331", "0.70761895", "0.70686626", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70311874", "0.701...
0.0
-1
Provide a friendly representation
def wHJl(YKHO) -> str: QpfX = ' '.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._solution.items())) return '<Twilio.Taskrouter.V1.WorkflowContext {}>'.format(QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.76010835", "0.7571921", "0.7230172", "0.7216933", "0.7194604", "0.71428955", "0.714158", "0.71369046", "0.7134454", "0.7134454", "0.7131177", "0.7104331", "0.70761895", "0.70686626", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70311874", "0.701...
0.0
-1
Provide a friendly representation
def wHJl(YKHO) -> str: return '<Twilio.Taskrouter.V1.WorkflowPage>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.76010835", "0.7571921", "0.7230172", "0.7216933", "0.7194604", "0.71428955", "0.714158", "0.71369046", "0.7134454", "0.7134454", "0.7131177", "0.7104331", "0.70761895", "0.70686626", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70311874", "0.701...
0.0
-1
Provide a friendly representation
def wHJl(YKHO) -> str: return '<Twilio.Taskrouter.V1.WorkflowList>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.76010835", "0.7571921", "0.7230172", "0.7216933", "0.7194604", "0.71428955", "0.714158", "0.71369046", "0.7134454", "0.7134454", "0.7131177", "0.7104331", "0.70761895", "0.70686626", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70311874", "0.701...
0.0
-1
Given a cloud id as stored in `self.cloud_ids`, return the path (relative to `self.raw_dir`) of the corresponding raw cloud.
def OMXE(YKHO, id): return BKva.join(YKHO.id_to_base_id(id) + '.ply')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wYrZ(YKHO, kYkA):\n EtM5, fIGi, l222 = BKva.splitext(kYkA)[0].split('/')[-3:]\n zxda = YKHO.id_to_base_id(l222)\n Qw0T = BKva.splitext(YKHO.raw_file_names_3d[0])[1]\n MJ48 = BKva.join(YKHO.raw_dir, zxda + Qw0T)\n return MJ48", "def TB7M(YKHO):\n return [YKHO.id_to_relative_raw_path(WKvO) fo...
[ "0.6120425", "0.5900228", "0.5594266", "0.55325145", "0.55314106", "0.5480562", "0.5472034", "0.53768766", "0.53605086", "0.52571714", "0.5213335", "0.51456136", "0.504145", "0.50242543", "0.50029874", "0.49535552", "0.49527803", "0.49491975", "0.49378446", "0.49378446", "0.4...
0.61298406
0
Return whether MNPuzzle self is equivalent to other.
def xa14(YKHO, Elif): return type(YKHO) == type(Elif) and YKHO.from_grid == Elif.from_grid and (YKHO.to_grid == Elif.to_grid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n for YRbF in range(len(YKHO.puzzle)):\n for r845 in range(len(YKHO.puzzle[0])):\n if YKHO.puzzle[YRbF][r845] != Elif.puzzle[YRbF][r845]:\n return False\n return True", "def aPi6(YKHO, Elif: InputTransform) -> bool:\n return super().equals(other=Eli...
[ "0.7884084", "0.7809546", "0.7805344", "0.7694956", "0.75914407", "0.7474761", "0.7468896", "0.74044824", "0.7375316", "0.73414105", "0.73191506", "0.73190105", "0.7264524", "0.7263841", "0.7250105", "0.7250105", "0.7229176", "0.72085124", "0.71788704", "0.7175089", "0.717454...
0.70519614
33
Return a userfriendly string representation of MNPuzzle self.
def zAg0(YKHO): GuB2 = 'From:' for rdlD in YKHO.from_grid: GuB2 += '\n' + ' '.join(rdlD) GuB2 += '\nTo:' for rdlD in YKHO.to_grid: GuB2 += '\n' + ' '.join(rdlD) return GuB2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n norg = '—' * 13 + '\\n'\n for YRbF in range(YKHO.PUZZLE_NUM_ROWS):\n for r845 in range(YKHO.PUZZLE_NUM_COLUMNS):\n norg += '│{0: >2}'.format(str(YKHO.position[YRbF][r845]))\n if r845 == YKHO.PUZZLE_NUM_COLUMNS - 1:\n norg += '│\\n'\n norg += '—...
[ "0.7900187", "0.7732959", "0.7619398", "0.7501598", "0.7330119", "0.72773033", "0.71929115", "0.7189792", "0.7189489", "0.7182761", "0.7174535", "0.71411514", "0.71378136", "0.713304", "0.7124015", "0.71098524", "0.7104289", "0.7038175", "0.7021828", "0.7021828", "0.7021828",...
0.0
-1
Test asserts that the dataframe made from the read_commandline function is identical to the test dataframe from which the .csv file was created.
def E7Fu(bOBl): nzu_ = gbPf.gettempdir() bOBl.to_csv(f'{nzu_}/dataframe.csv', index=0) if HwRy.platform in ['win32']: jQ3Z = unwe.io.read_commandline(f'type {nzu_}\\dataframe.csv') else: jQ3Z = unwe.io.read_commandline(f'cat {nzu_}/dataframe.csv') assert jQ3Z.equals(bOBl) Hy7s.un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AxjR(YKHO):\n with bxBA() as jbXL:\n ytgA, af07 = kO5Q(jbXL, 'test.csv')\n YOlb = HyUK.from_file(ytgA).df\n YKHO.assertEqual(rLdf.testing.assert_frame_equal(af07, YOlb), None)", "def yEkz(bf9h):\n jQ3Z = yNt6()\n ZLJ_ = bf9h.all_fields_except(['random'])\n bf9h.assertDataFram...
[ "0.70678663", "0.6973909", "0.68561196", "0.6809812", "0.65900654", "0.65708643", "0.6538297", "0.64942354", "0.64647907", "0.6437283", "0.638025", "0.6336569", "0.6325615", "0.6294349", "0.6272604", "0.6226562", "0.62224954", "0.6213068", "0.6208523", "0.61556876", "0.613355...
0.82945
0
Selects a color from the matplotlib css color database.
def iEy4(wYYS=10): Jw9H = list(Ka7R.CSS4_COLORS) for yKcO in Hs6x.cycle(range(20, 20 + wYYS)): for YRbF in range(yKcO, len(Jw9H), wYYS): yield Jw9H[YRbF]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7W8(YKHO, Z9rn):\n return YKHO.colorlist[Z9rn % len(YKHO.colorlist)]", "def AG_p():\n qfpW = gmYn(CX4A.askcolor)\n if qfpW[0] != None:\n return HRmL(qfpW[0][0], qfpW[0][1], qfpW[0][2])", "def foA9(YKHO):\n Aofo = XW6u.colorchooser.askcolor(YKHO.center['bg'])\n if Aofo:\n YKHO....
[ "0.6730433", "0.6686478", "0.6650432", "0.64860964", "0.640928", "0.63835466", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", "0.6332146", ...
0.0
-1
Set the value and update the color. Notes valmin/valmax are set on the parent to 0 and len(depths).
def Uq4p(YKHO, wEf2): wEf2 = int(wEf2) if wEf2 < YKHO.valmin or wEf2 >= YKHO.valmax: return YKHO.updatePageDepthColor(wEf2) myzH.set_val(YKHO, wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kk8S(YKHO, BWXx):\n YKHO.politics = BWXx if type(BWXx) is int else int(BWXx[1:], 16)\n YKHO.canvas.itemconfig('node_' + YKHO.identifier, fill=YKHO.toRGB())", "def Uq4p(YKHO, wEf2):\n wEf2 = oyIN.sort(wEf2)\n km9X.check_shape((2,), val=wEf2)\n YKHO.val = (YKHO.valmin, YKHO.valmax)\n MynD, n4...
[ "0.6640877", "0.6548799", "0.6307354", "0.62737453", "0.6163058", "0.61619", "0.607332", "0.60614914", "0.6049167", "0.6023975", "0.5941608", "0.58719933", "0.5844159", "0.57223743", "0.571449", "0.5702216", "0.5687083", "0.5661152", "0.5626655", "0.56171894", "0.56026465", ...
0.79558706
0
Initialize this dataset class.
def FIMM(YKHO, y7GR): x_b5.__init__(YKHO, y7GR) YKHO.data_folder = Hy7s.path.join(y7GR.dataroot, y7GR.phase) YKHO.image_file_names = sorted(Hy7s.listdir(YKHO.data_folder)) YKHO.batch_size = y7GR.batch_size YKHO.z_dim = y7GR.z_dim YKHO.imsize = y7GR.crop_size YKHO.transform = YKHO.get_transfo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.__dataset = None", "def FIMM(YKHO, __n6):\n YKHO._dataset = __n6", "def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6", "def FIMM(YKHO, GPtr):\n bo34.info(f'{YKHO.__class__.__name__}: Dataset initializing ...')\n super().__init__(GPtr)", "def FIMM(YKHO, **B2fa):\n ...
[ "0.816631", "0.81641185", "0.8013762", "0.76137954", "0.7422038", "0.7393049", "0.7352237", "0.73437655", "0.7111143", "0.71019876", "0.7099074", "0.7096382", "0.70223516", "0.696418", "0.6961817", "0.6889772", "0.6879775", "0.68740934", "0.68599087", "0.68520594", "0.6842619...
0.6730716
35
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, ldFr): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "...
0.80920255
7
Check the object permission.
def m4il(YKHO, QePW, tTee, YEnM): if TbPK.objects.filter(project=YEnM, user=QePW.user): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dKp0(Uvf2, QePW, tTee, YEnM):\n if not Uvf2().has_object_permission(QePW, tTee, YEnM):\n tTee.permission_denied(QePW, message=getattr(Uvf2, 'message', None))", "def hSlh(YKHO, QePW, YEnM):\n for Uvf2 in YKHO.get_permissions():\n if not Uvf2.has_object_permission(QePW, YKHO, YEnM):\n ...
[ "0.819445", "0.81272614", "0.80648726", "0.80339557", "0.7997648", "0.79193723", "0.7913107", "0.79067785", "0.7887055", "0.7887055", "0.7885634", "0.788116", "0.7873367", "0.7826268", "0.7817024", "0.78163", "0.781547", "0.78135246", "0.7799382", "0.77802294", "0.77571464", ...
0.74095666
39
Check the object permission.
def m4il(YKHO, QePW, tTee, YEnM): if TbPK.objects.filter(project=YEnM, user=QePW.user): Uvf2 = TbPK.objects.filter(project=YEnM, user=QePW.user)[0] return Uvf2.permission == 'author' else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dKp0(Uvf2, QePW, tTee, YEnM):\n if not Uvf2().has_object_permission(QePW, tTee, YEnM):\n tTee.permission_denied(QePW, message=getattr(Uvf2, 'message', None))", "def hSlh(YKHO, QePW, YEnM):\n for Uvf2 in YKHO.get_permissions():\n if not Uvf2.has_object_permission(QePW, YKHO, YEnM):\n ...
[ "0.819445", "0.81272614", "0.80648726", "0.80339557", "0.7997648", "0.79193723", "0.7913107", "0.79067785", "0.7887055", "0.7887055", "0.7885634", "0.788116", "0.7873367", "0.7826268", "0.7817024", "0.78163", "0.781547", "0.78135246", "0.7799382", "0.77802294", "0.77571464", ...
0.7328788
41
Check the object permission.
def m4il(YKHO, QePW, tTee, YEnM): return not YEnM.permission == 'author'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dKp0(Uvf2, QePW, tTee, YEnM):\n if not Uvf2().has_object_permission(QePW, tTee, YEnM):\n tTee.permission_denied(QePW, message=getattr(Uvf2, 'message', None))", "def hSlh(YKHO, QePW, YEnM):\n for Uvf2 in YKHO.get_permissions():\n if not Uvf2.has_object_permission(QePW, YKHO, YEnM):\n ...
[ "0.819445", "0.81272614", "0.80648726", "0.80339557", "0.7997648", "0.79193723", "0.7913107", "0.79067785", "0.7887055", "0.7887055", "0.7885634", "0.788116", "0.7873367", "0.7826268", "0.7817024", "0.78163", "0.781547", "0.78135246", "0.7799382", "0.77802294", "0.77571464", ...
0.7474281
36
Check the object permission.
def qHTF(YKHO, QePW, tTee): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dKp0(Uvf2, QePW, tTee, YEnM):\n if not Uvf2().has_object_permission(QePW, tTee, YEnM):\n tTee.permission_denied(QePW, message=getattr(Uvf2, 'message', None))", "def hSlh(YKHO, QePW, YEnM):\n for Uvf2 in YKHO.get_permissions():\n if not Uvf2.has_object_permission(QePW, YKHO, YEnM):\n ...
[ "0.819445", "0.81272614", "0.80648726", "0.80339557", "0.7997648", "0.79193723", "0.7913107", "0.79067785", "0.7887055", "0.7887055", "0.7885634", "0.788116", "0.7873367", "0.7826268", "0.7817024", "0.78163", "0.781547", "0.78135246", "0.7799382", "0.77802294", "0.77571464", ...
0.6930524
68
Clip and convert an image to np.uint8. Args
def IzGo(LNo8): return oyIN.clip(LNo8, 0, 255).astype(oyIN.uint8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcmC(LNo8):\n oyIN.clip(LNo8, 0, 255, out=LNo8)\n return LNo8.astype(oyIN.uint8)", "def vcmC(eHNT):\n from numpy import array, clip, uint8\n VXjJ = array(clip(eHNT, 0, 255), uint8)\n return VXjJ", "def WzPG(LNo8):\n return ZylS.cast(ZylS.math.multiply(LNo8, 255), ZylS.uint8)", "def psm6...
[ "0.73004645", "0.64434946", "0.63479", "0.63420886", "0.5932686", "0.5874442", "0.5867836", "0.58601403", "0.5803097", "0.5790521", "0.5748678", "0.5711535", "0.56931335", "0.568761", "0.5683812", "0.5664944", "0.56201494", "0.5617284", "0.5581774", "0.55719745", "0.5566959",...
0.7418486
0
Compute the total score for a player's game of bowling.
def aQGe(DeuS): UM46 = [] YRbF = 0 while len(UM46) < 10: EB5i = DeuS[YRbF] if EB5i == 10: NaKJ = DeuS[YRbF + 1] jjvh = DeuS[YRbF + 2] UM46.append(EB5i + NaKJ + jjvh) YRbF += 1 elif EB5i < 10: NaKJ = DeuS[YRbF + 1] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yFnZ(r_P0):\n p1kx = sum(r_P0)\n return p1kx", "def p1kx(YKHO, oyg0, iBIi):\n kgrb = 0\n SiwD = 0\n for YRbF in YKHO.squares():\n if iBIi[YRbF] == oyg0:\n kgrb += yQki[YRbF]\n else:\n SiwD += yQki[YRbF]\n return kgrb - SiwD", "def pHjC(YKHO):\n retur...
[ "0.7650006", "0.7633847", "0.7527698", "0.7469793", "0.7452517", "0.7387711", "0.71954083", "0.718596", "0.7141511", "0.7030778", "0.6992324", "0.6973871", "0.69504803", "0.6932902", "0.6905502", "0.6903267", "0.688952", "0.6878671", "0.68137366", "0.6786484", "0.6777656", ...
0.0
-1
Calculate the heuristic value of a game state from the point of view of the given player.
def CDl2(BH3N, oyg0): if BH3N.is_loser(oyg0): return float('-inf') if BH3N.is_winner(oyg0): return float('inf') return dHVm(BH3N, oyg0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7Dd(YKHO, QTBn, oyg0):\n if QTBn.isWin() or QTBn.isLose():\n return QTBn.getScore()\n if oyg0 == z5IR:\n return r51j\n else:\n return -r51j", "def tL3w(QTBn, oyg0):\n Vyql = oyg0\n if QTBn.winner() == (not Vyql):\n return -_6fB\n if QTBn.winner() == Vyql:\n ...
[ "0.7160031", "0.7126443", "0.6840133", "0.6816918", "0.67986786", "0.65901345", "0.6581988", "0.6449993", "0.6436957", "0.6435461", "0.6433362", "0.6419876", "0.64143103", "0.6406242", "0.6401132", "0.63523954", "0.63402605", "0.6339346", "0.6311418", "0.6307777", "0.6277502"...
0.64499426
8
Calculate the heuristic value of a game state from the point of view of the given player. Uses the parameters provided in weights[]
def H6oC(YKHO, BH3N, oyg0): if BH3N.is_loser(oyg0): return float('-inf') if BH3N.is_winner(oyg0): return float('inf') NE4c = len(BH3N.get_legal_moves(oyg0)) HJCe = len(BH3N.get_legal_moves(BH3N.get_opponent(oyg0))) if BH3N.move_count < BH3N.height * BH3N.width / 2: return flo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hJd1(YKHO, YimI, oyg0, _mSQ):\n t0yA = [XP5J for XP5J in YimI.players if XP5J != oyg0]\n lIVl = oyg0.num_walls\n xV8y = max([XP5J.num_walls for XP5J in t0yA])\n TUk5 = lIVl - xV8y\n YgTF = len(YimI.get_shortest_path_player(oyg0))\n Hlip = min([len(YimI.get_shortest_path_player(XP5J)) for XP5J...
[ "0.7177373", "0.68247616", "0.64440054", "0.6387609", "0.6283614", "0.6247294", "0.6201958", "0.6201958", "0.6201958", "0.6201958", "0.6201958", "0.6201958", "0.6201958", "0.61478233", "0.6127142", "0.61173964", "0.60248256", "0.60247", "0.59869456", "0.59860605", "0.5977224"...
0.6346142
4
Default home page display when user enters the url
def nspo(QePW): Ol8d = "GET / - The base API route\nPOST /api/v1/auth/ - for registering a new account and signing up\nGET /api/v1/portfolio/{id}/ - for retrieving a user's portfolio\nPOST /api/v1/stock/ - for creating a new company record\nGET /api/v1/stock/{id}/ - for retrieving a companies information\nDELETE /a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUar(YKHO):\n if YKHO.home_url is not None:\n YKHO.set_url(YKHO.home_url)", "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def kZiy():\n bpFo = ''\n Wkxa = cuiw.get('UserType', None)\n if Wkxa == None:\n bpFo = 'anonHome.jade'\n elif Wkxa == 'Seeker':\n b...
[ "0.7668816", "0.7577727", "0.75730103", "0.7525394", "0.7522126", "0.7496628", "0.74945855", "0.7466226", "0.7451552", "0.74181354", "0.74171096", "0.7408227", "0.73769134", "0.7376027", "0.7376027", "0.73559433", "0.735086", "0.7345017", "0.7345017", "0.7340173", "0.73274153...
0.0
-1
Delete a scaling group if there are no entities belonging to the scaling group. If successful, no response body will be returned.
def VtTk(YKHO, QePW): uOe2 = YKHO.store.get_scaling_group(YKHO.log, YKHO.tenant_id, YKHO.group_id) DHvX = HsHy(QePW, 'force', False) return Z7L0.delete_group(YKHO.dispatcher, RKD7, vkFH(QePW), uOe2, DHvX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj():\n mWFP = QePW.json['name']\n uOe2 = FYrf.user.Group.get(mWFP)\n if not uOe2:\n raise E3Cy('Group does not exists.', deletion=False)\n else:\n FYrf.db.session.delete(uOe2)\n FYrf.db.session.commit()\n return geh0(200, deletion=True)", "def PTpj(YKHO, pfzK=False)...
[ "0.67925584", "0.6676837", "0.6622869", "0.6583672", "0.65556115", "0.6447706", "0.6446245", "0.64028823", "0.63720226", "0.6365238", "0.6305437", "0.6258469", "0.6244676", "0.61977446", "0.61608195", "0.61599296", "0.61253375", "0.61201614", "0.61199766", "0.6067289", "0.605...
0.79625654
0
Pause a scaling group. This means that no scaling policies will get executed (execution will be rejected). This is an idempotent operation pausing an already paused group does nothing.
def XmdE(YKHO, QePW): uOe2 = YKHO.store.get_scaling_group(YKHO.log, YKHO.tenant_id, YKHO.group_id) return Z7L0.pause_scaling_group(YKHO.log, vkFH(QePW), uOe2, YKHO.dispatcher)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XmdE(RKD7, vkFH, ACe_, qAYJ):\n if not BQK_(ACe_.tenant_id, x0PB):\n raise NotImplementedError('Pause is not implemented for legay groups')\n return JE1Y(qAYJ, P25N(ACe_, vkFH))", "def P25N(uOe2, vkFH):\n iwvD = vfuS([I3ma(cX5O(uOe2, True)), a1oD(uOe2.tenant_id, uOe2.uuid, -1)])\n return k...
[ "0.7695504", "0.7276188", "0.7137577", "0.61898124", "0.61122686", "0.603153", "0.58547", "0.5822203", "0.5817363", "0.5803151", "0.57746464", "0.57746464", "0.5751726", "0.56664234", "0.5643777", "0.55803317", "0.5575569", "0.5559275", "0.5553459", "0.55483395", "0.55279815"...
0.7803774
0
Return a participant in this conference.
def zAlC(YKHO, Wswm): return c9Kx(YKHO, Wswm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPfk(YKHO, F1kd):\n if F1kd in v_U2:\n return v_U2[F1kd]\n else:\n return None", "def zAlC(YKHO, Wswm):\n return c9Kx(YKHO, Wswm)", "def JYl0(YKHO):\n return YKHO.data['id']", "def zAlC(YKHO) -> taV9:\n return YKHO._participant", "def ye3v(YKHO):\n return YKHO._speaker",...
[ "0.72046083", "0.703881", "0.67052925", "0.6300894", "0.6294788", "0.62100816", "0.6181115", "0.6156547", "0.6144625", "0.60970587", "0.60328543", "0.59512925", "0.589766", "0.5822871", "0.58099806", "0.5790752", "0.57761496", "0.5708563", "0.55543476", "0.5511341", "0.549857...
0.7080376
1
Creates a random Bezier curve of degree deg between points st and end. Used for developing purposes.
def CMfs(mghH, aevO, Os4s): if mghH == 0: print('ERROR: The bezier curve degree has to be greater than 0') return rH5Y = pImw(aevO[0], aevO[1], Os4s[0], Os4s[1]) YrCr = rH5Y / mghH DtpS = oyIN.zeros((mghH + 1, 2)) DtpS[0] = oyIN.asarray(aevO) for YRbF in range(mghH - 1): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l6R8(mghH, aevO, Os4s):\n if mghH == 0:\n print('ERROR: The bezier curve degree has to be greater than 0')\n return\n DtpS = oyIN.zeros((mghH + 1, 2))\n DtpS[0] = oyIN.asarray(aevO)\n for YRbF in range(mghH - 1):\n AU8u = DtpS[YRbF] + 1 / mghH * (oyIN.asarray(Os4s) - oyIN.asarr...
[ "0.6735812", "0.62409556", "0.6128898", "0.59693897", "0.58591384", "0.58243567", "0.57288355", "0.56791764", "0.56591725", "0.5613972", "0.56002206", "0.5586161", "0.55115736", "0.548937", "0.5426974", "0.53957564", "0.5360223", "0.5346464", "0.5339668", "0.5326595", "0.5281...
0.81868535
0
Find the set of nodes reachable from this node (including the node). Return is a set of integers.
def LUIX(YKHO, Q6kx, WgyR, r1Bb=None): azXi = set() def K2kF(G8_M): if G8_M not in azXi: azXi.add(G8_M) list(map(K2kF, WgyR[G8_M])) if r1Bb is not None: list(map(K2kF, r1Bb[G8_M])) K2kF(Q6kx) return azXi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ldIi(YKHO, JZXy: Node) -> fHNa[o7DN]:\n GHRF: fHNa[o7DN] = {JZXy}\n gGq6 = [JZXy]\n while gGq6:\n Ty9i = gGq6.pop()\n for tTpl in Ty9i.outgoing_edges:\n if tTpl.node_to not in GHRF:\n GHRF.add(tTpl.node_to)\n gGq6.append(tTpl.node_to)\n return ...
[ "0.7296934", "0.7092169", "0.70596015", "0.7005512", "0.7000364", "0.69020015", "0.6899064", "0.6848201", "0.6847079", "0.683086", "0.6689352", "0.6687347", "0.664796", "0.66347694", "0.66301626", "0.6509228", "0.650443", "0.6480518", "0.6434538", "0.63981146", "0.6397733", ...
0.0
-1
Returns true if there are any cycles in the graph, which is represented as an adjacency list.
def HnG1(YKHO, WgyR): def U4NF(G8_M, azXi, E5BI): if G8_M not in azXi: azXi.add(G8_M) assert G8_M not in E5BI E5BI.append(G8_M) for Okv8 in WgyR[G8_M]: if U4NF(Okv8, azXi, E5BI): return True assert E5BI.pop() ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HzZv(YKHO):\n DemM = dict()\n for YRbF in YKHO.adj_list:\n DemM[YRbF] = False\n for YRbF in YKHO.adj_list:\n if not DemM[YRbF]:\n if YKHO.has_cycle_helper(YRbF, DemM, -1):\n return True\n return False", "def ZTM3(pNZh):\n azXi = []\n d7CQ = cH4a(pNZh)...
[ "0.79342306", "0.78799105", "0.7653055", "0.7563285", "0.7180815", "0.71524304", "0.7145887", "0.7013198", "0.69577783", "0.6809838", "0.67981017", "0.6736561", "0.6720564", "0.6707665", "0.6696526", "0.6678177", "0.6646088", "0.66392225", "0.663645", "0.66328865", "0.6611120...
0.7528858
4
This is an abstract class used to instantiate a database given a folder containing various file resources. When creating a Database class, the load_data function is called where the file resources are load as a DataFrame and performs necessary processings. This class provides an interface for RNA classes to annotate va...
def FIMM(YKHO, pmON, Pf87: Dict, wFGl: str=None, bKn7: str=None, Hvip: str=None, Gkwc: str=None, nddV: List[str]=None, KUnM: dict=None, Zh7o: bool=True, MPlU: dict=None, PJWX: bool=False): YKHO.validate_file_resources(pmON, Pf87, verbose=PJWX) YKHO.data_path = pmON YKHO.file_resources = Pf87 YKHO.source...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, i0XC='data', zk0k=MjyI):\n YgTF = pmON.abspath(i0XC)\n YKHO.path = YgTF\n YKHO.db_params = zk0k\n YKHO.db = GGod(YKHO.db_params)", "def FIMM(YKHO, jNha, xcKT, SZFh=None):\n YKHO.root_dir = jNha\n YKHO.annotations = rLdf.read_csv(xcKT)\n YKHO.transform = SZFh", "def FIMM(YKHO...
[ "0.6647819", "0.6397069", "0.6354014", "0.6218223", "0.61998284", "0.6086568", "0.6061298", "0.6009826", "0.59659237", "0.59281945", "0.5909195", "0.58908904", "0.5875746", "0.5859631", "0.5843262", "0.5827883", "0.58244896", "0.58155924", "0.5815304", "0.5805956", "0.5804437...
0.53747773
75
Convert matrix of token ids into strings
def tfTs(YKHO, SppC, NAnm=True): Nqlg = [] for ZfhG in map(list, SppC): if NAnm: if ZfhG[0] == YKHO.bos_ix: ZfhG = ZfhG[1:] if YKHO.eos_ix in ZfhG: ZfhG = ZfhG[:ZfhG.index(YKHO.eos_ix)] zFiD = ' '.join((YKHO.tokens[YRbF] for YRbF in ZfhG)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mslD(SppC):\n Ylbp = []\n for rdlD in SppC:\n Ylbp.append(''.join(rdlD))\n return '\\n'.join(Ylbp)", "def dYMh(SppC):\n KS8l = '['\n for YRbF in SppC:\n KS8l += '['\n for r845 in YRbF:\n KS8l += str(r845) + ', '\n KS8l = KS8l[:-2] + '], '\n KS8l = KS8l...
[ "0.6612506", "0.6504981", "0.6298419", "0.6298419", "0.628061", "0.62243813", "0.6204719", "0.6183098", "0.61808413", "0.6170656", "0.6130394", "0.6124223", "0.6028791", "0.5953577", "0.58969325", "0.58903843", "0.5822055", "0.58115304", "0.57968414", "0.57855535", "0.5784645...
0.0
-1
Switch on the LED.
def jM2h(YKHO): if T6FA.current_thread() != YKHO._blinking_thread: YKHO._blinking_thread.unregister(YKHO) xi8C.output(YKHO.pin, xi8C.HIGH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jY15(YKHO):\n xi8C.output(YKHO.gpio, True)", "def LciP(YKHO):\n d6Md = 0\n while d6Md != '':\n d6Md = input('Enter 0 or 1 to turn LED on or off or enter to exit.\\n')\n if d6Md == '0':\n YKHO.board.write(b'0')\n ITS7.sleep(1)\n elif d6Md == '1':\n ...
[ "0.8169446", "0.80078214", "0.78626806", "0.77106386", "0.7581997", "0.7579719", "0.74839616", "0.7457253", "0.7394008", "0.73702383", "0.7356243", "0.7353404", "0.7313382", "0.726793", "0.7227901", "0.7201615", "0.7120204", "0.71123457", "0.7079622", "0.7055739", "0.70464486...
0.78942364
2
Switch off the LED.
def y_Rs(YKHO): if T6FA.current_thread() != YKHO._blinking_thread: YKHO._blinking_thread.unregister(YKHO) xi8C.output(YKHO.pin, xi8C.LOW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_rv(YKHO):\n print('Turning the lights off')\n YKHO.led.all_off()\n YKHO.client.publish(uf2Z, nGxz)", "def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)", "def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK", "def Z_rv(YKHO, **B2fa):\n YKHO._brightness = 0\n YKHO._state =...
[ "0.8566237", "0.8554572", "0.82871026", "0.81795263", "0.8168383", "0.81602025", "0.8151963", "0.8091471", "0.7998849", "0.7984244", "0.79522836", "0.7872218", "0.78054094", "0.7803678", "0.7792981", "0.7756382", "0.77311605", "0.77235824", "0.77206516", "0.77036095", "0.7686...
0.8332468
2
Switch off and stop the blinking thread.
def quit(YKHO): YKHO.switch_off() YKHO._blinking_thread.stop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y_Rs(YKHO):\n if T6FA.current_thread() != YKHO._blinking_thread:\n YKHO._blinking_thread.unregister(YKHO)\n xi8C.output(YKHO.pin, xi8C.LOW)", "def dNOs(YKHO):\n YKHO._switch_callback = None", "def Z_rv(YKHO, **B2fa):\n YKHO.robot.pause_cleaning()\n ITS7.sleep(1)\n YKHO.robot.send_t...
[ "0.828817", "0.7239973", "0.7199364", "0.7198174", "0.7182316", "0.7133912", "0.71314734", "0.71077996", "0.71077996", "0.70924217", "0.7086729", "0.70526946", "0.7050104", "0.7048751", "0.7043728", "0.7038531", "0.70182234", "0.69688004", "0.69668037", "0.69494116", "0.69445...
0.8257933
1
Tests whether ``RoleManagerMetadataApplicationRoleConnection.from_data`` works as intended.
def pDAR(): EbWs = 202301150005 nPrm = {'integration_id': str(EbWs)} yIVm = HDOf.from_data(nPrm) lgGV(yIVm) Qg87.assert_eq(yIVm.integration_id, EbWs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EsX6():\n EbWs = 202301150006\n yIVm = HDOf(integration_id=EbWs)\n AZHA = {'integration_id': str(EbWs), 'guild_connections': None}\n Qg87.assert_eq(yIVm.to_data(defaults=True), AZHA)", "def XqRz():\n A3l8 = 202212160004\n nPrm = {'bot_id': str(A3l8)}\n yIVm = lIvI.from_data(nPrm)\n lg...
[ "0.72700346", "0.67431384", "0.57812655", "0.5577804", "0.5289391", "0.5229587", "0.52133775", "0.519593", "0.5076414", "0.49436608", "0.4906069", "0.48754257", "0.48150232", "0.47816363", "0.47616816", "0.47108835", "0.4678398", "0.46730247", "0.46708363", "0.46526524", "0.4...
0.8163409
0
C = (g^(M^(e mod n)))((r^m)mod (m^2))
def mmG7(k8re, aETf, M5_I, xlFA, fR9w): Mkmy = XD3u.xmpz(1) Oa1e = XD3u.xmpz(k8re) KCHu = XD3u.xmpz(aETf) tTpl = XD3u.xmpz(M5_I) exwG = XD3u.xmpz(xlFA) r8hN = XD3u.xmpz(fR9w) kYGz = AssB(tTpl, exwG) kYGz = pow(Oa1e, pow(KCHu, kYGz)) kYGz = AdrB(kYGz, AssB(pow(Mkmy, r8hN), pow(r8hN, 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4nG(exwG, KwQv, qoqK, WXkz):\n for bGrB in range(WXkz):\n Oa1e = exwG\n while Oa1e == exwG:\n AdZ9, AU8u = I5Mx(exwG)\n Oa1e = ML2l(exwG, AdZ9.discriminant().remainder())\n if Oa1e > 1:\n return Oa1e\n for ffYW in KwQv:\n QRFO = ffYW\n...
[ "0.7037409", "0.7007121", "0.67641306", "0.6752192", "0.6738003", "0.6726312", "0.6647986", "0.6633587", "0.6574364", "0.6542397", "0.64660656", "0.64597243", "0.644045", "0.64177483", "0.63950163", "0.6387623", "0.63871264", "0.63725555", "0.63536185", "0.63476896", "0.63234...
0.6425005
13
This function reads SQL database through sqlalchemy and loads database table into Pandas dataframe extracting feature values and target values
def UlWi(NK1P): eHpk = y2U9('sqlite:///{}'.format(NK1P)) jQ3Z = rLdf.read_sql('SELECT * from messages', eHpk) EcVT = jQ3Z['message'] MGkr = jQ3Z.drop(['id', 'message', 'original', 'genre'], axis=1).columns fuBA = jQ3Z[MGkr] return (EcVT, fuBA, MGkr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bdJp(HrP9):\n return rLdf.read_sql('select * from churn_model.churn_data;', HrP9)", "def NRiO(w2B8):\n return pcoD.get_table_into_pandas('target_info', w2B8)", "def UlWi(OfqK):\n try:\n eHpk = y2U9(f'sqlite:///{OfqK}')\n jQ3Z = rLdf.read_sql_table(table_name='disaster_data'.lower(), ...
[ "0.70252293", "0.6982166", "0.68791294", "0.65387046", "0.6474624", "0.64607066", "0.64592546", "0.64498615", "0.64391613", "0.6424813", "0.6390264", "0.6381552", "0.63677883", "0.6362419", "0.6353745", "0.6300753", "0.62926835", "0.6241063", "0.6161258", "0.6154829", "0.6154...
0.6243174
17
Simple image plotting wrapper
def KwM3(VXjJ, CqeB='test.png', **B2fa): QrM1.figure() if VXjJ.ndim > 2: QrM1.imshow(XC5k.cvtColor(VXjJ.astype(oyIN.uint8), XC5k.COLOR_BGR2RGB), **B2fa) else: QrM1.imshow(VXjJ.astype(oyIN.uint8), **B2fa) QrM1.axis('off') if CqeB: XC5k.imwrite(CqeB, VXjJ.astype(oyIN.uint8))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(nPrm, sXTW=False):\n if sXTW:\n QrM1.ion()\n LZpg = QrM1.figure()\n LZpg.canvas.draw()\n LNo8 = GRIQ(nPrm)\n else:\n LZpg = QrM1.figure()\n LNo8 = GRIQ(nPrm)\n QrM1.show()\n return (LZpg, LNo8)", "def DM2M(VXjJ, UXqs=''):\n if VXjJ.shape[0] ==...
[ "0.722285", "0.7139101", "0.7127996", "0.711136", "0.70447594", "0.703394", "0.69963914", "0.6929877", "0.6929877", "0.6929877", "0.69226825", "0.6869958", "0.67979544", "0.67860055", "0.6781733", "0.6771797", "0.6771162", "0.6728001", "0.6702688", "0.66706306", "0.662369", ...
0.67218447
18
Determines patch masks and match centers for both source and target patches
def Ct7C(YKHO): YKHO.get_source_patch_masks() YKHO.get_target_patch_masks() YKHO.get_source_patches()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OXQM(YKHO):\n YKHO.target_patch_masks = {l6IM: YKHO.get_patch_mask(l6IM) for l6IM in YKHO.anchor_points}\n for Po4F in YKHO.target_patch_masks:\n YKHO.updated_structure_mask[YKHO.target_patch_masks[Po4F]] = True", "def _Ni4(YKHO):\n YKHO.source_patch_masks = {l6IM: YKHO.get_patch_mask(l6IM) f...
[ "0.72775877", "0.71869683", "0.6329769", "0.6109868", "0.5946034", "0.58988786", "0.5833438", "0.5783357", "0.57539546", "0.56932914", "0.5683626", "0.56612754", "0.56517494", "0.5602133", "0.55849206", "0.55780846", "0.55373704", "0.55333847", "0.5509592", "0.5497487", "0.54...
0.6374971
2
Initialize the first row of the cost matrix, M (1) from white board drawing
def Dr0F(YKHO): YKHO.cost_matrix = oyIN.zeros((len(YKHO.anchor_points), len(YKHO.patch_centers)), dtype=oyIN.float64) Yz1f = YKHO.anchor_points[0] for YRbF in range(len(YKHO.patch_centers)): R0rN = YKHO.patch_centers[YRbF] dX86 = YKHO.get_Es_point(R0rN, Yz1f) hu6x = YKHO.get_Ei_point...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M46D(YKHO):\n SRP_ = oyIN.zeros((YKHO.N + YKHO.M, YKHO.N + YKHO.M))\n for YRbF in range(YKHO.N):\n for r845 in range(YKHO.M):\n SRP_[YRbF, r845] = YKHO.substitute_cost(YRbF, r845)\n for YRbF in range(YKHO.M):\n for r845 in range(YKHO.M):\n SRP_[YRbF + YKHO.N, r845] ...
[ "0.6778801", "0.6502844", "0.63555235", "0.6186499", "0.61482126", "0.60644877", "0.60593796", "0.6013477", "0.5955823", "0.57806474", "0.57806474", "0.5724883", "0.57155377", "0.57113713", "0.5698522", "0.5662982", "0.5650547", "0.56478083", "0.5647795", "0.56431234", "0.564...
0.671456
1
Return this LocNode's value
def eXSS(YKHO) -> laHg.Optional[dict]: return YKHO.val
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO.node_value", "def oYJd(YKHO):\n return YKHO._loc_value[1]", "def UnfG(YKHO):\n return _VfD.ASTNode_getValue(YKHO)", "def BWXx(YKHO):\n return YKHO.get_attribute('value', str(YKHO.children))", "def eXSS(YKHO):\n return YKHO.value", "def xdKy(YKHO):\n return ...
[ "0.8031546", "0.77826613", "0.7465206", "0.7234131", "0.70805246", "0.70354545", "0.7032114", "0.699002", "0.69704956", "0.69698685", "0.6968212", "0.6968212", "0.6968212", "0.696381", "0.69408774", "0.69345343", "0.69345343", "0.6929328", "0.6929328", "0.6927064", "0.6915589...
0.0
-1
Return a list of all reagent item statuses.
def WklX(YKHO) -> NwHe: raise NotImplementedError('not implemented')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kL40(YKHO):\n return YKHO._get_paged('statuses')", "def kL40(YKHO):\n qAoR = ZI6n()\n geh0 = qAoR.get('orderstatuses')\n return geh0.text", "def PA4A(YKHO):\n return YKHO.statuses", "def pi1E(YKHO) -> x1iM[EloR]:\n return YKHO.__mapper.map_all(YKHO.__repository.get_all(), EloR)", "def...
[ "0.70572025", "0.68753785", "0.6789352", "0.67099434", "0.65530634", "0.65277624", "0.6363759", "0.6321006", "0.63142306", "0.6250614", "0.6250614", "0.6200735", "0.61752236", "0.61752236", "0.6167747", "0.6167586", "0.61452305", "0.61122316", "0.60808724", "0.60225064", "0.5...
0.7845527
0
List payouts. Returns a [cursorpaginated](apiusagecursorpagination) list of your payouts.
def list(YKHO, NArs=None, MOPg=None): pmON = '/payouts' geh0 = YKHO._perform_request('GET', pmON, NArs, MOPg, retry_failures=True) return YKHO._resource_for(geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVWp():\n wlOd = 'Y'\n OHpH = zRan.get_list_of_checkouts(wlOd)\n return TvZl('hold_list.html', list_of_books=OHpH, what='checkout')", "def YNRZ():\n KCHu = FCLS(wk5E.config['rpc_signature'])\n KCHu.loads(QePW.data)\n OTqy = aToE.query.filter_by(transaction_id=None).join(aToE.block, aliased=...
[ "0.6320229", "0.6241012", "0.5917347", "0.55352646", "0.52601737", "0.5076912", "0.50157565", "0.50087124", "0.50021195", "0.4996705", "0.49791443", "0.4974983", "0.4970509", "0.49375552", "0.49313858", "0.48553878", "0.48523268", "0.48517752", "0.4844017", "0.48370248", "0.4...
0.7446098
0
Get a single payout. Retrieves the details of a single payout. For an example of how to reconcile the transactions in a payout, see [this guide](eventsreconcilingpayoutswithevents).
def NMoC(YKHO, _E99, NArs=None, MOPg=None): pmON = YKHO._sub_url_params('/payouts/:identity', {'identity': _E99}) geh0 = YKHO._perform_request('GET', pmON, NArs, MOPg, retry_failures=True) return YKHO._resource_for(geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list(YKHO, NArs=None, MOPg=None):\n pmON = '/payouts'\n geh0 = YKHO._perform_request('GET', pmON, NArs, MOPg, retry_failures=True)\n return YKHO._resource_for(geh0)", "def NMoC(YKHO, rpdr):\n return rpdr", "async def get(YKHO, QePW, q7dD, q0JL):\n rpdr = await QqNj(q7dD, q0JL)\n vznG.send...
[ "0.59275705", "0.5628925", "0.5618046", "0.5596309", "0.558108", "0.5541119", "0.5478816", "0.54574823", "0.5217998", "0.52085954", "0.51963013", "0.5195348", "0.50894785", "0.5029707", "0.50150126", "0.49570936", "0.4941692", "0.49182224", "0.48873544", "0.48731235", "0.4863...
0.6470658
0
Sets the learning rate to the initial LR decayed by 10 every args.lr_drop epochs
def e_63(K0do, qtWj): tspZ = qIxc.lr * 0.1 ** (qtWj // qIxc.lr_drop) print('lr= ' + str(tspZ), flush=True) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.3 ** (qtWj // qIxc.lr_decay)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def e_63(K0do, qtWj, qIxc):\...
[ "0.7352336", "0.7333978", "0.72885704", "0.7282347", "0.72648644", "0.726462", "0.7256753", "0.7253272", "0.72382236", "0.72373194", "0.72373194", "0.72373194", "0.72340554", "0.7228736", "0.72230136", "0.7220188", "0.7210714", "0.7208806", "0.72068775", "0.72039914", "0.7187...
0.75878245
0
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True) Ylbp.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R...
[ "0.76427615", "0.74189496", "0.7418079", "0.72710466", "0.72456723", "0.72446615", "0.7237539", "0.72213703", "0.7210107", "0.7058935", "0.6852219", "0.6786084", "0.67836976", "0.6768417", "0.67273885", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0....
0.0
-1
Return a sum total of several dictionaries.
def qntw(*qIxc): Aofo = dict() for d7pR in qIxc: Aofo.update(d7pR) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YGp_(fgcx: dict):\n\n def qC24(alQJ, U6D_):\n for H5ew, BWXx in U6D_.items():\n alQJ[H5ew] = alQJ.get(H5ew, 0) + BWXx\n return alQJ\n return Pusg(qC24, fgcx, {})", "def sum(YKHO):\n return sum(YKHO.items())", "def _Ve2(FOzR: Dict[int, Tensor], HyjZ: Dict[int, Tensor]) -> c...
[ "0.7690904", "0.73174846", "0.73051286", "0.72677666", "0.716861", "0.7052999", "0.69231606", "0.6882448", "0.6847206", "0.6804574", "0.67773473", "0.6701605", "0.6701533", "0.66912395", "0.66120344", "0.660227", "0.66002333", "0.6530555", "0.6473131", "0.6434731", "0.6411104...
0.72450846
4
Create a random hex color
def pph3(): Mkmy = lambda: tuKI.randint(0, 255) qfpW = '%02X%02X%02X' % (Mkmy(), Mkmy(), Mkmy()) return qfpW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skAh():\n Mkmy = ajWY(0, 255)\n Oa1e = ajWY(0, 255)\n Fg_i = ajWY(0, 255)\n return '#%x%x%x' % (Mkmy, Oa1e, Fg_i)", "def ooqv(WKvO):\n tuKI.seed(WKvO)\n qfpW = (tuKI.randint(0, 255), tuKI.randint(0, 255), tuKI.randint(0, 255))\n qfpW = '#%02x%02x%02x' % qfpW\n return qfpW", "def pRv...
[ "0.8972932", "0.81565833", "0.8070119", "0.8046609", "0.7978272", "0.78821385", "0.7880014", "0.783659", "0.78061885", "0.7778768", "0.776845", "0.76735973", "0.7561245", "0.7314368", "0.7228979", "0.72285986", "0.7185438", "0.71798426", "0.7157546", "0.7154343", "0.7099737",...
0.83276933
1
Inserts a value to the heap.
def JPHp(YKHO, BWXx): YKHO.heap.append(BWXx) YKHO._shiftUp()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, BWXx):\n YKHO.heap.append(BWXx)\n d6pt = len(YKHO.heap) - 1\n YKHO._percolate_up(d6pt)", "def JPHp(YKHO, H5ew, BWXx):\n YKHO.heap.append(None)\n ekgN = _LuP(H5ew, BWXx)\n YKHO.siftup(ekgN, len(YKHO.heap) - 1)\n return ekgN", "def JPHp(YKHO, H5ew, BWXx):\n if H5ew in YKHO....
[ "0.88196313", "0.82914025", "0.82426745", "0.82133466", "0.81545436", "0.81498545", "0.80577403", "0.7922794", "0.7849871", "0.7674401", "0.76577246", "0.7655261", "0.7616019", "0.7521071", "0.75024974", "0.74980086", "0.74963194", "0.7463579", "0.74433964", "0.74140525", "0....
0.8886361
0
The indicated value for the VPLS Id Assigned Number attribute. The default is 0.
def o8st(YKHO): return YKHO._get_attribute('vplsIdAssignedNumber')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gtz2(YKHO):\n return YKHO._get_attribute('vsiIdAssignedNumber')", "def gcsP(YKHO):\n return YKHO._get_attribute('vplsIdAsNumber')", "def WT05(YKHO):\n return YKHO._get_attribute('vplsIdAssignedNumberStep')", "def _FRU(YKHO):\n return YKHO._get_attribute('vplsIdType')", "def dJHF(YKHO):\n ...
[ "0.76749665", "0.7372743", "0.7046495", "0.6611994", "0.6417205", "0.63544697", "0.633049", "0.6116104", "0.5928075", "0.59177536", "0.5909815", "0.5770851", "0.57539123", "0.57042104", "0.56712717", "0.56116766", "0.5538851", "0.5513119", "0.55040973", "0.5503051", "0.549345...
0.8216867
0
The VPLS ID type, one of AS and IP. Default is AS.
def _FRU(YKHO): return YKHO._get_attribute('vplsIdType')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tJPR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ip_type')", "def gcsP(YKHO):\n return YKHO._get_attribute('vplsIdAsNumber')", "def tJPR(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ip_type')", "def type(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityType']]:\n return qe4Y.get(...
[ "0.617248", "0.6131267", "0.6048633", "0.59055555", "0.58932656", "0.58127064", "0.58113873", "0.58039254", "0.5783582", "0.5771179", "0.57523865", "0.57469696", "0.573458", "0.5708333", "0.5701703", "0.5684939", "0.5661624", "0.5643624", "0.56361705", "0.56361705", "0.563488...
0.7176309
0
Retrieves a single instance of bgp4VpnBgpAdVplsRange data from the server.
def Ueki(YKHO, qvey): return YKHO._read(qvey)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KHUb(YKHO, j8eK=None, xqoZ='', nNXP=None, MOPg=None):\n return YKHO.ipv4range.get(uri=j8eK, api=nNXP, headers=MOPg, param=xqoZ)", "def BUlE(YKHO):\n return YKHO._ip_range", "def Fanc(YKHO):\n return YKHO.range", "def ngo1(YKHO, j8eK=None, xqoZ='', nNXP=None, MOPg=None):\n return YKHO.vsnrange...
[ "0.5818055", "0.563778", "0.5499236", "0.54218036", "0.5256655", "0.52278125", "0.5220286", "0.5218447", "0.5195881", "0.5110039", "0.5105795", "0.50950694", "0.5068814", "0.506147", "0.5060568", "0.50443", "0.5030232", "0.5030232", "0.50281316", "0.5003587", "0.49711668", ...
0.0
-1
Get the value of the card for the purposes of the count.
def dMj6(YKHO, dxhl): if dxhl >= 10: return 10 if dxhl == 1: return 11 return dxhl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO, dxhl):\n return YKHO.valores[YKHO.deck.index(dxhl)]", "async def get_card_value(dxhl):\n return aTqo.first_result(await aTqo.conn.fetchrow('SELECT value FROM blackjack.cards WHERE id = $1', dxhl))", "def Zmkp(YKHO):\n BWXx = 0\n rVFi = False\n for dxhl in YKHO.hand:\n BWXx ...
[ "0.80048424", "0.7558608", "0.7213102", "0.7182821", "0.7171359", "0.7035289", "0.6992966", "0.69261545", "0.68542933", "0.6762942", "0.6658885", "0.6554658", "0.65510786", "0.648137", "0.6425735", "0.6400239", "0.6273015", "0.62284356", "0.62059027", "0.6165098", "0.61159074...
0.762364
1
Opens a new database connection if there is none yet for the current application context.
def GGod(QOGf): aL7g = 'DATABASE' + str(QOGf) print(aL7g) U_Xg = rwhr.top if not hasattr(U_Xg, 'track_db0') and QOGf == 0: U_Xg.track_db0 = iHv3.connect(P4t4.config[aL7g], detect_types=iHv3.PARSE_DECLTYPES) U_Xg.track_db0.row_factory = iHv3.Row if not hasattr(U_Xg, 'track_db1') and Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db", "def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)", "def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)", "def W...
[ "0.7737639", "0.7582971", "0.73180443", "0.71693045", "0.70220166", "0.6966687", "0.6954785", "0.69486743", "0.6897534", "0.6842663", "0.68292314", "0.68191963", "0.680592", "0.67950195", "0.67697805", "0.6762173", "0.6751266", "0.6746273", "0.67316663", "0.670031", "0.668866...
0.0
-1
Shift input ids one token to the right, and wrap the last non pad token (usually ).
def DynO(Pha6, AhI9): dZmY = Pha6.clone() bhDt = (Pha6.ne(AhI9).sum(dim=1) - 1).unsqueeze(-1) dZmY[:, 0] = Pha6.gather(1, bhDt).squeeze() dZmY[:, 1:] = Pha6[:, :-1] return dZmY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DynO(YKHO, Pha6, AhI9):\n dZmY = Pha6.clone()\n bhDt = (Pha6.ne(AhI9).sum(dim=1) - 1).unsqueeze(-1)\n dZmY[:, 0] = Pha6.gather(1, bhDt).squeeze()\n dZmY[:, 1:] = Pha6[:, :-1]\n return dZmY", "def DynO(YKHO, Pha6: torch.Tensor, AhI9: int, ba7w: int):\n nAJP = Pha6.new_zeros(Pha6.shape)\n ...
[ "0.8141209", "0.7356376", "0.7302423", "0.62760633", "0.5989989", "0.5901887", "0.57361895", "0.5569694", "0.55039227", "0.5472055", "0.5472055", "0.5472055", "0.5459301", "0.5419903", "0.53397924", "0.53197056", "0.5286252", "0.52811766", "0.5208013", "0.51893353", "0.518071...
0.8175183
0
Prepare masks that ignore padding tokens in the decoder and a causal mask for the decoder if none are provided. This mimics the default behavior in fairseq. To override it pass in masks.
def sixI(GPtr, Pha6, Cq3Q=None, SwJF=None, NNbz=ht2j.float32): AhI9 = GPtr.pad_token_id if Cq3Q is None: Cq3Q = DynO(Pha6, AhI9) K_dq, _SUv = Cq3Q.size() if SwJF is None: SwJF = lNta(Cq3Q, AhI9) else: SwJF = SdDB(SwJF) if SwJF is not None and SwJF.shape[1] > 1: Sw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmrP(YKHO, oGem):\n YKHO.masks = oGem", "def VDKW(YKHO, ZHfW):\n try:\n ZHfW, qQTo = VsGh.resample(ZHfW, YKHO.shape[:3], dtype=oyIN.float32, order=0)\n except ValueError:\n raise T6g5('Mask has wrong number of dimensions')\n if not uz0N.Image(ZHfW, xform=qQTo).sameSpace(YKHO):\n ...
[ "0.66787624", "0.5992953", "0.59493387", "0.5806535", "0.5670196", "0.56646276", "0.56476253", "0.5622995", "0.5621455", "0.55875957", "0.5529941", "0.5492848", "0.5470644", "0.54528314", "0.54391444", "0.54390395", "0.54333967", "0.5423804", "0.5418299", "0.54100585", "0.537...
0.6272836
1
Return nan instead (more robust) of nothing (loss of index parity). Median is more robust than mean.
def AWN4(ezWE, CK7z=True, knl1=0.05, nUHY=False, u3tA=False): if len(ezWE) < 3: return ezWE if nUHY: QrM1.subplot(1, 2, 1) QrM1.plot(oyIN.random.random(len(ezWE)), gDcL, 'o', color='blue', markeredgecolor='none', alpha=0.4) QrM1.title('With outliers') IlFX = [(oyIN.median(ezW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4yP(ezWE, **B2fa):\n return fHeP.median(fHeP.masked_where(ezWE != ezWE, ezWE), **B2fa)", "def XHCY(LVAh):\n if len(LVAh) == 0:\n return 0.0\n return oyIN.mean(oyIN.abs(LVAh - oyIN.median(LVAh)))", "def LGX7(WKvO: torch.FloatTensor):\n Civ8 = ht2j.isnan(WKvO)\n UUZ1 = (~Civ8).sum()\n ...
[ "0.7277392", "0.69705164", "0.68347484", "0.67609304", "0.67459476", "0.6598331", "0.659477", "0.6577432", "0.65659493", "0.6561792", "0.6551442", "0.65445304", "0.6514302", "0.65127885", "0.65127885", "0.6505533", "0.6500362", "0.6458916", "0.6438456", "0.6398109", "0.634112...
0.0
-1
Calculate interburst interval coefficient of variation.
def Fqv3(iQU0, _Y6s): q_Rr = [] for Fg_i in range(len(iQU0) - 1): if iQU0[Fg_i + 1] > _Y6s[Fg_i]: q_Rr.append(iQU0[Fg_i + 1] - _Y6s[Fg_i]) else: print(' In %s, %.2f starts before burst ends at %.2f' % (IGdj, iQU0[Fg_i + 1], _Y6s[Fg_i])) return (oyIN.mean(q_Rr), oyI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rS6g(WKvO):\n dQqG = 0\n for YRbF, Y7fn in enumerate(WKvO[:-1], 1):\n dQqG += oyIN.sum(oyIN.abs(Y7fn - WKvO[YRbF:]))\n return dQqG / (len(WKvO) ** 2 * oyIN.mean(WKvO))", "def RcjL(YKHO):\n M1Jx, JBMS = YKHO.std()\n RcjL = M1Jx / JBMS\n print(f'Coefficient of Variation is: {RcjL}')\n ...
[ "0.6393203", "0.6207591", "0.6195008", "0.5875815", "0.57561606", "0.57197726", "0.56928813", "0.56749415", "0.56507593", "0.5567023", "0.5557998", "0.54877394", "0.5456385", "0.54320294", "0.5416997", "0.5385559", "0.5382477", "0.53780407", "0.53671503", "0.53364134", "0.533...
0.0
-1
Write the new df (with the clust_inds column) to a new csv file, but use all the columns from the original csv.
def HGCa(jQ3Z, alNz, Dokz): try: zXzD = rLdf.read_csv(alNz) except: print('Could not find or load %s' % alNz) sfda = [] Of2p, aISc = (list(zXzD.times.values), list(jQ3Z.times.values)) for YRbF in range(zXzD.shape[0]): if Of2p[YRbF] in aISc: sfda.append(jQ3Z.clust_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AuEX(YKHO, gIsw):\n YKHO.df_index.to_csv(gIsw, sep='\\t')", "def ka97(zkvu, Pjr8):\n TLI7 = Hy7s.path.dirname(xAKo)\n xtX7 = Hy7s.path.join(TLI7, '../Clusters/')\n qaEx = xtX7 + 'Bus_' + str(Pjr8) + '.csv'\n zkvu.to_csv(qaEx, sep=',', encoding='utf-8', index=False)", "def SNNG(YKHO, wVUH, oJ...
[ "0.6270441", "0.6233784", "0.6230068", "0.59784067", "0.5845556", "0.58446866", "0.58254105", "0.57847196", "0.5775274", "0.57743657", "0.57593477", "0.57382405", "0.5719709", "0.57143116", "0.5713007", "0.5660907", "0.56608474", "0.5646629", "0.5639858", "0.56334585", "0.562...
0.66875494
0
Checks if the queue is full. If length of the array = capacity
def Yykn(YKHO): return YKHO.size == YKHO.capacity
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yykn(YKHO):\n if len(YKHO.queue) == YKHO.maxlen:\n return True\n else:\n return False", "def Yykn(YKHO):\n return len(YKHO.queue) == YKHO.size", "def Yykn(YKHO) -> bool:\n return YKHO.count == YKHO.capacity", "def Yykn(YKHO) -> bool:\n return YKHO.count == YKHO.capacity", "...
[ "0.8243399", "0.8116667", "0.7512367", "0.7512367", "0.7481536", "0.74761736", "0.7446499", "0.7412954", "0.7412954", "0.7376846", "0.73320967", "0.722053", "0.72035635", "0.71983624", "0.71550983", "0.7147962", "0.71364105", "0.71245646", "0.7121453", "0.71193403", "0.70688"...
0.77101356
2
Checks if the queue is empty. Front and Rear are at the same position.
def A4KR(YKHO): if YKHO.size == 0: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(YKHO) -> bool:\n if YKHO.queue is not None and len(YKHO.queue) > 0:\n print('len > 0')\n return False\n else:\n print('len = 0')\n return True", "def A4KR(YKHO) -> bool:\n if YKHO.front == YKHO.rear:\n return True\n else:\n return False", "def FBfn...
[ "0.802168", "0.80206406", "0.80157465", "0.7984915", "0.7976422", "0.78603065", "0.78595746", "0.7837328", "0.7835442", "0.78305703", "0.78305703", "0.78277683", "0.7788282", "0.77881783", "0.7783926", "0.7769781", "0.7739886", "0.7732143", "0.7722253", "0.76707864", "0.76635...
0.0
-1
Gets the element at the front of the queue
def uW34(YKHO): VnzS = YKHO.queue[YKHO.front] return VnzS pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def VnzS(gGq6):\n if _OiT(gGq6):\n raise IndexError('Queue is empty!')\n else:\n return gGq6.front.value", "def y9BR(YKHO):\n if len(YKHO.queue) >= 1:\n return YKHO.queue[0]\n else:\n return -1", ...
[ "0.863565", "0.85876423", "0.8262497", "0.8199349", "0.8142919", "0.8119887", "0.8119887", "0.81194574", "0.81194574", "0.8095368", "0.8071027", "0.8029827", "0.8023997", "0.8023762", "0.80135787", "0.8007365", "0.7980079", "0.79781455", "0.79189056", "0.7881961", "0.78775406...
0.8828211
0
Gets the element at the rear of the queue
def Ugyj(YKHO): FZ77 = YKHO.queue[YKHO.rear] return FZ77
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kITm(YKHO):\n if len(YKHO.queue) >= 1:\n return YKHO.queue[-1]\n else:\n return -1", "def kITm(YKHO):\n if YKHO.isEmpty():\n return -1\n else:\n return YKHO.queue[YKHO.rear - 1]", "def kITm(YKHO):\n if YKHO.isEmpty():\n return -1\n else:\n return ...
[ "0.79273635", "0.7885271", "0.7885271", "0.78627443", "0.78627443", "0.78563255", "0.7839446", "0.7763032", "0.7737314", "0.7728852", "0.7726813", "0.7685761", "0.7663426", "0.7656322", "0.7647468", "0.76411307", "0.7617875", "0.7602192", "0.7591403", "0.75396156", "0.7529405...
0.7950408
0
Draw a sample from the normal distribution based on the mean and std pairs values a vector containing mean and standard deviation pairs pairs how many pairs the vector contains randomize boolean for really drawing a random sample instead of using the maximum likelihood values
def hyMS(YKHO, hkxX, kgDL, rJrZ): mvm2 = [None for YRbF in range(len(kgDL) - 1)] for YRbF in range(len(kgDL)): cmJd = kgDL[YRbF] JBMS = hkxX[2 * YRbF] M1Jx = hkxX[2 * YRbF + 1] if M1Jx > 0.0 and rJrZ: QmqT = tuKI.gauss(JBMS, M1Jx) else: QmqT = JBMS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhAC(JBMS, M1Jx):\n return tuKI.gauss(JBMS, M1Jx)", "def JmFt(YKHO, pUuX):\n if YKHO.dist == 'normal':\n JBMS = YKHO.mean\n ifkm = YKHO.sd\n YKHO.sample = ifkm * oyIN.random.randn(pUuX) + JBMS\n elif YKHO.dist == 'poisson':\n EhIg = YKHO.lam\n YKHO.sample = oyIN.ra...
[ "0.7447999", "0.7197481", "0.6864649", "0.6820152", "0.6783022", "0.6781596", "0.6633428", "0.6585596", "0.6565232", "0.63914496", "0.6378227", "0.6376844", "0.6367755", "0.63280845", "0.629468", "0.62851274", "0.6271981", "0.6258002", "0.62300134", "0.621335", "0.6199399", ...
0.62722933
16
sets mute to specific value
def LWOP(Emd4, KkzS: bool): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkzS(YKHO, BWXx: bool) -> None:\n YKHO.audio_mixer.setmute(BWXx)\n YKHO.update_status()", "def YAvG(YKHO, KkzS):\n g7yF = '1' if KkzS else '0'\n YKHO._lms.query(YKHO._id, 'mixer', 'muting', g7yF)\n YKHO.update_ha_state()", "def LWOP(YKHO, A6b2, xQqe, vEq1, BWXx=None):\n if A6b2 in YKHO.so...
[ "0.82080686", "0.8040739", "0.7972243", "0.7928214", "0.7918955", "0.7626789", "0.7612275", "0.7486662", "0.73271835", "0.73062056", "0.72171974", "0.7142333", "0.7094243", "0.7056901", "0.70527345", "0.7005203", "0.69862056", "0.6986194", "0.6978512", "0.69333375", "0.689570...
0.77314484
5
returns the mute status
def KiJy(Emd4) -> bool: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KiJy(YKHO):\n return sqQp(YKHO.get(J1jo, 'GetMute')['mute'])", "def KkzS(YKHO) -> bool:\n return bool(YKHO.audio_mixer.getmute()[0])", "def Trfs(YKHO, lCeJ=0):\n _hkX = YKHO.XAPCommand('SFTYMUTE', unitCode=lCeJ)\n return bool(int(_hkX))", "async def get_mute(YKHO) -> bool:\n return await Y...
[ "0.81131196", "0.75747645", "0.7535899", "0.7334661", "0.7321568", "0.73022544", "0.7295821", "0.70787257", "0.70787257", "0.70787257", "0.7027964", "0.6937151", "0.69201064", "0.6892316", "0.68694514", "0.6846512", "0.6839677", "0.6812334", "0.6803103", "0.67730725", "0.6758...
0.70603335
10
Flask decorator that allow to set Expire and Cache headers.
def rahp(O66n=5, m5r4='application/json; charset=utf-8'): def bvfT(eHNT): @zaGL(eHNT) def clfy(*qIxc, **B2fa): Mkmy = eHNT(*qIxc, **B2fa) suE3 = qcWV.now() + fCoM(minutes=O66n) uDyx = oGir(Mkmy, content_type=m5r4) uDyx.headers.add('Expires', suE3.str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGHp(CBJb, fyhN):\n\n @xBlr.wraps(CBJb)\n def SzLu(*qIxc, **B2fa):\n geh0 = WsL5.make_response(CBJb(*qIxc, **B2fa))\n if geh0.status_code == 200:\n geh0.headers['Cache-Control'] = ', '.join(fyhN)\n return geh0\n return SzLu", "def vlYJ(YKHO, _vrk):\n uqEL = YKHO.MA...
[ "0.7566276", "0.69809616", "0.69809616", "0.69174796", "0.6915464", "0.6883607", "0.68154144", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055", "0.6784055",...
0.719012
1
Plot confusion matrix using provided sklearn metrics.confusion_matrix values
def eMz8(SppC, KndY, wytA=(8, 4.5), leAC='', **B2fa): pWm4, ytgA, FYKK, HRJ_ = SppC.ravel() Crrw = oyIN.array([['TP = {}'.format(HRJ_), 'FP = {}'.format(ytgA), 'Precision = {:.2f}%'.format(HRJ_ / (HRJ_ + ytgA) * 100)], ['FN = {}'.format(FYKK), 'TN = {}'.format(pWm4), ''], ['TPR = {:.2f}%'.format(HRJ_ / (HRJ_ + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()", "def YsYU(Y8eF, aMgO):\n uN_p.plot_confusion_matrix(Y8eF, aMgO, normalize=True)\n QrM1.show()", "def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cm...
[ "0.85292625", "0.8358722", "0.83164454", "0.83113015", "0.8297132", "0.8239064", "0.8210537", "0.8208425", "0.81997687", "0.8187058", "0.8185418", "0.8180164", "0.8152549", "0.8149543", "0.8149024", "0.81246525", "0.81169707", "0.8116899", "0.81074977", "0.8107005", "0.810671...
0.0
-1