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
The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
def TRLE(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(Y...
[ "0.7226661", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "0.6973292", "...
0.6767823
65
Adds a suffix to staging and development values.
def ZI14(vIwR, ZI14, VWe_='_'): if ZI14 == 'production': BqoV = vIwR else: BqoV = vIwR + VWe_ + ZI14 return BqoV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yJjD(mWFP: str, ZI14: str):\n return f'{mWFP}_{ZI14}'", "def yJjD(GIN8, ZI14):\n ZI14, VWe_, wOmD = ZI14.partition(' ')\n Tdem = DDAp(GIN8, ZI14)\n return Tdem + VWe_ + wOmD", "def ZI14(YKHO, ZI14):\n YKHO._suffix = ZI14", "def ZI14(YKHO, ZI14):\n YKHO._suffix = ZI14", "def ZI14(YKHO,...
[ "0.68501705", "0.65921366", "0.61370754", "0.61370754", "0.61370754", "0.61370754", "0.6071173", "0.6018203", "0.5981132", "0.59731644", "0.5944371", "0.5835993", "0.575423", "0.575423", "0.57105756", "0.5707032", "0.55977184", "0.55886215", "0.55409336", "0.55144596", "0.549...
0.70712113
0
Writes JSON representation of the ordered dictionary preserving the order of the keys
def Bpko(YKHO): l5Ny = '{' if len(YKHO._sequence): for H5ew in YKHO._sequence: l5Ny += '"%s":%s,' % (H5ew, qQXR.dumps(YKHO.dictionary[H5ew])) l5Ny = l5Ny[:-1] l5Ny += '}' return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO, *qIxc, **B2fa):\n if 'sortorder' in B2fa:\n B2fa['sort_keys'] = False\n Oyik = B2fa['sortorder']\n del B2fa['sortorder']\n YEnM = U8Lr()\n for G1Hx in Oyik:\n if G1Hx in YKHO:\n YEnM[G1Hx] = YKHO[G1Hx]\n for G1Hx in sorted(YKHO.k...
[ "0.6786466", "0.6704306", "0.66707903", "0.6640456", "0.64944774", "0.6305722", "0.6264041", "0.61754274", "0.6169123", "0.6127872", "0.6107136", "0.60845405", "0.60734487", "0.604723", "0.6027462", "0.60065955", "0.5995343", "0.5985601", "0.59842795", "0.5980031", "0.5976199...
0.5628555
92
Given user_id, return the associated User object.
def GYAu(uJjO): return mv1M.query.get(uJjO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def NMoC(YKHO, uJjO):\n return mv1M.get(uJjO)", "def B9ST(uJjO):\n return YJv1.query.filter_by(id=uJjO).first()", "def TKWP(YKHO, uJjO):\n mv1M = egNl()\n try:\n return mv1M.objects.get(pk=uJjO)\n except mv1M.DoesNotExist:\n ret...
[ "0.8470548", "0.8392397", "0.8368338", "0.82840234", "0.8246376", "0.824378", "0.82422614", "0.8225579", "0.8178128", "0.8178128", "0.8177786", "0.8150401", "0.8150401", "0.8150401", "0.8150401", "0.7942767", "0.7908402", "0.7871334", "0.78454524", "0.7819107", "0.77851176", ...
0.0
-1
Return the number of seconds represented by this instance
def bQkZ(YKHO): return YKHO.hours * 3600 + YKHO.minutes * 60 + YKHO.seconds
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C6wh(YKHO):\n return int(YKHO)", "def C6wh(YKHO):\n return YKHO._seconds", "def C6wh(YKHO):\n return YKHO._seconds", "def C6wh(YKHO):\n Os4s = YKHO.end or rIAI.now()\n Aofo = Os4s - YKHO.start\n return Aofo.seconds", "def z0YJ(YKHO):\n return 0", "def eO3_(YKHO):\n return YKHO...
[ "0.9011046", "0.86127627", "0.86127627", "0.83609205", "0.82136047", "0.7992389", "0.795224", "0.7924782", "0.79148555", "0.7886629", "0.7763954", "0.7749396", "0.76207286", "0.7509158", "0.7506567", "0.7494706", "0.7494352", "0.7492711", "0.7470637", "0.7468545", "0.74481237...
0.7580618
13
Return True if I am strictly greater than time2
def DOuq(YKHO, nEj9): return YKHO.to_seconds() > nEj9.to_seconds()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOuq(YKHO, nEj9):\n return YKHO.to_seconds() > nEj9.to_seconds()", "def jmxi(YKHO, Elif):\n return YKHO.to_seconds() > Elif.to_seconds()", "def jmxi(YKHO, Elif):\n return YKHO.to_seconds() > Elif.to_seconds()", "def uBEl(cViv, T_R4=None) -> bool:\n if T_R4 is None:\n T_R4 = JUFO()\n ...
[ "0.7845175", "0.7456088", "0.7456088", "0.71889436", "0.7070054", "0.70096356", "0.69865257", "0.6856543", "0.6851539", "0.68224585", "0.6813712", "0.6745095", "0.6632427", "0.6596037", "0.6557212", "0.6427977", "0.6314521", "0.63109756", "0.6293565", "0.6285244", "0.62758315...
0.79369086
0
Returns yaw of tello.
def U0Pj(YKHO): return YKHO.state['yaw']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xTkQ(YKHO):\n return YKHO._yaw", "def tUhF(YKHO):\n return YKHO._yawAngle", "def BE_w(YKHO) -> float:\n return YKHO._state[5]", "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 H2...
[ "0.8058127", "0.74816555", "0.70126164", "0.6869275", "0.67675924", "0.66052693", "0.65671396", "0.6518231", "0.6497515", "0.6393872", "0.63558275", "0.630903", "0.6298739", "0.6291687", "0.62529606", "0.6251937", "0.62275285", "0.61687493", "0.6057177", "0.60497236", "0.6042...
0.77702296
1
Obtain one batch of episodes.
def UqXh(Qabx, *, sEAN, Ep8u, YPuQ=4): RFg8 = vHuM(Qabx, env=sEAN, n_workers=YPuQ) qHC8 = Qabx.get_param_values() KULu = RFg8.obtain_samples(0, Ep8u, qHC8) return KULu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yEmi(YKHO, Ep8u):\n J1hN = oyIN.zeros([Ep8u] + list(YKHO.example_shape))\n for YRbF in range(Ep8u):\n d6pt = YKHO.q.pop()\n J1hN[YRbF, ...] = YKHO.data[d6pt]\n if len(YKHO.q) == 0:\n YKHO.__new_epoch()\n return J1hN", "def yEmi(YKHO, Ep8u):\n assert Ep8u == 1\n ...
[ "0.5775431", "0.5752162", "0.5737229", "0.5647322", "0.5641418", "0.5577668", "0.5576429", "0.557314", "0.55596435", "0.5549813", "0.5538726", "0.5518864", "0.5510035", "0.55075294", "0.5502222", "0.5501887", "0.5494666", "0.5462133", "0.5452544", "0.5452544", "0.5448642", ...
0.63889444
0
An operator that performs an arbitrary (userdefined) function on items of a stream.
def bCYe(*qIxc, **B2fa): return wvEv(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wvEv(wOb_, q39y, SqIz, **B2fa):\n return map(B2fa['func'], wOb_)", "def bCYe(*ZZSa):\n return Pusg(capf, ZZSa, _E99)", "def iV65(wEf2, *FSYx, **B2fa):\n YSA3 = B2fa\n C0kC = wEf2\n for FYKK in FSYx:\n C0kC = FYKK(C0kC, **YSA3)\n return C0kC", "def map(OxJJ, m2Zb):\n for WKvO i...
[ "0.63373715", "0.58867866", "0.57664835", "0.5719077", "0.56753117", "0.5665952", "0.56323695", "0.5591342", "0.5582847", "0.5574816", "0.5525541", "0.5491133", "0.54297334", "0.53983706", "0.5379057", "0.53118664", "0.5285642", "0.5278786", "0.5274747", "0.52652615", "0.5256...
0.0
-1
Gets the duration_bin of this InlineResponse20023. Lower bound of number of seconds the match lasted
def GEO9(YKHO): return YKHO._duration_bin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbTE(YKHO):\n return YKHO._get('duration')", "def WbTE(YKHO):\n return YKHO._get('duration')", "def uefC(YKHO) -> 'outputs.DurationResponse':\n return qe4Y.get(YKHO, 'run_duration')", "def I_X0(YKHO) -> str:\n return qe4Y.get(YKHO, 'lookback_duration')", "def AR9O(YKHO):\n if 'duration' ...
[ "0.6292436", "0.62761927", "0.6248562", "0.6116954", "0.6111447", "0.6072243", "0.60611916", "0.603508", "0.59833705", "0.59833705", "0.59833705", "0.59833705", "0.59833705", "0.59833705", "0.59833705", "0.59833705", "0.59819955", "0.59782547", "0.596437", "0.5934116", "0.588...
0.7012631
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, bKhk): 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.8457167", "0.8393036", "0.81455255", "0.8139734", "0.81333447", "0.8094964", "0.8093362", "0.8093362", "0.8093362", "0.80863476", "0.80863476", "0.8077286", "0.8077286", "0.806682" ]
0.0
-1
Test case for delete_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource
def x9E7(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7nD(YKHO):\n pass", "def eoIB(YKHO):\n pass", "def QHZo(YKHO):\n pass", "def PMMV(YKHO):\n pass", "def pDn1(YKHO):\n pass", "def U202(YKHO):\n pass", "def TeJu(YKHO):\n pass", "def HyEv(YKHO):\n pass", "def QrYo(YKHO):\n pass", "def OjLc(YKHO):\n pass", "def I...
[ "0.9055788", "0.79201555", "0.76813954", "0.74651873", "0.74061143", "0.7332813", "0.7134756", "0.69760406", "0.6917734", "0.6707609", "0.6524485", "0.63648224", "0.6312147", "0.6218006", "0.61093134", "0.5976504", "0.5791378", "0.57193226", "0.57078564", "0.5620841", "0.5511...
0.9601569
0
Return an ordered list of indices. Batches will be constructed based on this order.
def oKXt(YKHO): return YKHO.base_dataset.ordered_indices()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKXt(YKHO):\n return oyIN.arange(len(YKHO), dtype=oyIN.int64)", "def DzXR(YKHO):\n bS0K = []\n for Z9rn in YKHO.components:\n bS0K.extend(Z9rn.get_indexes())\n return bS0K", "def lvRE(YKHO):\n return [tTFA(mWFP, d6pt) for mWFP, d6pt in YKHO._data['indices'].iteritems()]", "def oKXt(...
[ "0.78777957", "0.7394045", "0.73657113", "0.7307805", "0.7235391", "0.7089839", "0.70796317", "0.7079322", "0.70746034", "0.7031149", "0.7029713", "0.69848675", "0.69450635", "0.69399405", "0.6898343", "0.6898284", "0.6883149", "0.68633986", "0.68050504", "0.6696233", "0.6590...
0.78239244
1
Returns the value of the distribution `rv`'s cdf at the physical boundaries in the requested dimension (e.g., coszen or energy)
def IQKI(im04, tpio): fLGD, zWIP = SraP(dim=tpio) SVFF = im04.cdf(fLGD) if fLGD is not None else 0.0 vaz9 = im04.cdf(zWIP) if zWIP is not None else 1.0 return (SVFF, vaz9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzER(YKHO, WKvO):\n if YKHO.base == 'natural':\n FK4A = (epAf.log(WKvO) - YKHO.lowerBound) / (YKHO.upperBound - YKHO.lowerBound)\n else:\n FK4A = (epAf.log10(WKvO) - YKHO.lowerBound) / (YKHO.upperBound - YKHO.lowerBound)\n return FK4A", "def YzER(YKHO, WKvO):\n if YKHO.method == 'sp...
[ "0.6267399", "0.6257863", "0.6124699", "0.60731983", "0.60438824", "0.6042075", "0.59981596", "0.59470475", "0.59470475", "0.59368235", "0.59342027", "0.5912595", "0.5860004", "0.58467084", "0.5839231", "0.5823932", "0.5816488", "0.5798018", "0.57554287", "0.57454383", "0.572...
0.67278033
0
Checks if agent can perform function for object
def Q4Vi(YKHO, RKN_, uY1h): return YKHO._can_for_object(RKN_, uY1h, 'get_repository_ids_for_asset')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def callable(YEnM):\n return bool(HZRT(Wzky(YEnM)))", "def GRll(YKHO, **B2fa):\n return True", "def callable(YEnM):\n return bool(_DG6(lPcV(YEnM)))", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return fAV7(YEnM.user, QePW)", "def m4il(YKHO...
[ "0.6584413", "0.6569731", "0.6554303", "0.6234831", "0.6221521", "0.6213265", "0.62034136", "0.62007624", "0.61898196", "0.61593145", "0.61191446", "0.61087525", "0.6092017", "0.6082001", "0.6073203", "0.6073203", "0.60713905", "0.60696673", "0.6050383", "0.6036749", "0.59975...
0.0
-1
Checks if agent can perform function for object
def f0bp(YKHO, RKN_, URHp): return YKHO._can_for_object(RKN_, URHp, 'get_repository_ids_for_composition')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def callable(YEnM):\n return bool(HZRT(Wzky(YEnM)))", "def GRll(YKHO, **B2fa):\n return True", "def callable(YEnM):\n return bool(_DG6(lPcV(YEnM)))", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return fAV7(YEnM.user, QePW)", "def m4il(YKHO...
[ "0.6583134", "0.6572348", "0.6553039", "0.6236116", "0.62234074", "0.6215932", "0.6205267", "0.6203405", "0.61915296", "0.6161733", "0.6120615", "0.61102647", "0.6093958", "0.6081199", "0.607463", "0.607463", "0.60730535", "0.6068198", "0.6052449", "0.60382694", "0.5999123", ...
0.0
-1
Performs a local (numpy) calculation of the PERR.
def mfIN(N6Z1, nswj): e3Wx = 0.0 oM76 = nswj.shape[0] for rdlD in oyIN.arange(oM76): svPB = int(oyIN.sum(nswj[rdlD])) SbUR = oyIN.argpartition(N6Z1[rdlD], -svPB)[-svPB:] YJwx = 0.0 for mbWt in SbUR: if N6Z1[rdlD][mbWt] > 0: YJwx += nswj[rdlD][mbWt]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlcE(YKHO, rVnq, P6bq):\n with oyIN.errstate(all='ignore'):\n return 1 / P6bq[0] - YKHO.Rs", "def UKy8(YKHO, NArs):\n nPrm = YKHO.F ** 2\n C3ST = oyIN.absolute(YKHO._model()) ** 2\n WTkW = YKHO.sigma\n return (nPrm[YKHO.mask] - C3ST[YKHO.mask]) / WTkW[YKHO.mask]", "def y17k(YKHO, XP5J...
[ "0.6274424", "0.6254192", "0.62139803", "0.61871874", "0.61234605", "0.5976498", "0.5916309", "0.58709174", "0.57511616", "0.57511616", "0.57174593", "0.570606", "0.56922114", "0.5655125", "0.56417197", "0.5621845", "0.56072056", "0.56039804", "0.5578275", "0.55507386", "0.55...
0.0
-1
Clear the evaluation metrics and reset the EvaluationMetrics object.
def Y7Bk(YKHO): YKHO.sum_hit_at_one = 0.0 YKHO.sum_perr = 0.0 YKHO.sum_loss = 0.0 YKHO.map_calculator.clear() YKHO.global_ap_calculator.clear() YKHO.num_examples = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaSP(YKHO):\n YKHO.metrics['loss'] = 0.0\n YKHO.metrics['num_tokens'] = 0\n YKHO.metrics['correct_tokens'] = 0\n YKHO.metrics['correct_pred'] = 0\n YKHO.metrics['pred_count'] = 0", "def SiRx(YKHO):\n YKHO.sum_metric = 0.0\n YKHO.num_inst = 0.0\n YKHO.metrics.reset_stats()", "def SiR...
[ "0.7331311", "0.69290507", "0.6841959", "0.68257946", "0.67987525", "0.67758185", "0.66918826", "0.666724", "0.6645745", "0.6589855", "0.6499612", "0.6499612", "0.64207226", "0.6392772", "0.6356073", "0.63542366", "0.633912", "0.62911403", "0.62889814", "0.62866", "0.6284122"...
0.66543615
8
Unmapped model property for average rating of game
def Z70p(YKHO): kSgn = YKHO.gamereview_set.all() try: return JBMS([Slbv.rating for Slbv in kSgn]) except fuW8: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z70p(YKHO):\n mwlV = t0o2.objects.filter(game=YKHO)\n if len(mwlV):\n UOzm = 0\n for RrWF in mwlV:\n UOzm += RrWF.value\n S8vG = UOzm / len(mwlV)\n return S8vG\n return 0", "def lqWM(YKHO):\n SR0I = _8pN.objects.filter(article_id=YKHO.get_object())\n retu...
[ "0.75269234", "0.7108122", "0.709028", "0.69843864", "0.69826597", "0.68777335", "0.678841", "0.66425586", "0.66110647", "0.6531666", "0.65083975", "0.6465322", "0.6358872", "0.6330752", "0.63009137", "0.6252159", "0.6237771", "0.61960155", "0.6176452", "0.6119526", "0.605772...
0.68180996
6
Returns the last value of the current blockchain.
def POIE(): if len(P2Mq) < 1: return None return P2Mq[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def POIE():\n return P2Mq[-1]", "def CUs1():\n return P2Mq[-1]", "def ryl4(YKHO):\n if len(YKHO.__chain) < 1:\n return None\n return YKHO.__chain[-1]", "def POIE(YKHO):\n if len(YKHO.__chain) < 1:\n return None\n return YKHO.__chain[-1]", "def POIE(YKHO):\n if len(YKHO.__...
[ "0.93852717", "0.9372048", "0.9113195", "0.9109386", "0.9109386", "0.9109386", "0.9109386", "0.9109386", "0.90086985", "0.89820707", "0.81745803", "0.8166603", "0.8075334", "0.7772074", "0.7757982", "0.7621899", "0.7564715", "0.75502884", "0.7514232", "0.7455249", "0.7415701"...
0.90047807
9
Verify a transaction by checking whether the sender has sufficient coins.
def Fc4F(Kh6j): GTJd = rCkj(Kh6j['sender']) return GTJd >= Kh6j['amount']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fc4F(Kh6j: SignedRawTransaction, rCkj: Callable, SDFu: Callable, U6Ui: bool=True) -> bool:\n if U6Ui:\n bo34.debug(\"Checking the sender's balance can cover the amount being transferred\")\n GTJd = rCkj(Kh6j.details.sender)\n if GTJd >= Kh6j.details.amount:\n bo34.info('Sende...
[ "0.74869204", "0.72842675", "0.6665725", "0.6661393", "0.664886", "0.64767253", "0.6388629", "0.63101035", "0.62947595", "0.6268109", "0.61552846", "0.6086223", "0.6020964", "0.6014358", "0.6013245", "0.59876275", "0.59845376", "0.5978551", "0.596343", "0.5951069", "0.5939104...
0.7515717
0
All open transactions taken, added to a new block, then added to blockchain. Can invalidate following block if hash does not match previous.
def yHl3(): pZbc = P2Mq[-1] gEWo = jGTY(pZbc) XwK4 = V9xh() QL3w = U8Lr([('sender', 'MINING'), ('recipient', qsJ6), ('amount', JgF6)]) hpG9 = _z2k[:] hpG9.append(QL3w) XkN1 = {'previous_hash': gEWo, 'index': len(P2Mq), 'transactions': hpG9, 'proof': XwK4} P2Mq.append(XkN1) return Tru...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def blEJ(YKHO, XkN1, mAJQ):\n if YKHO.isValidBlock(XkN1, mAJQ):\n YKHO.chain[XkN1.currHash] = XkN1\n YKHO.tailBlockHash = XkN1.currHash\n return True\n return False", "def fVHX(YKHO, XkN1):\n gQVK = [T74E(UShr['sender'], UShr['recipient'], UShr['signature'], UShr['amount']) for UShr...
[ "0.7299239", "0.697445", "0.6936649", "0.6864879", "0.68612957", "0.6861291", "0.6836973", "0.67552066", "0.67429435", "0.67392534", "0.667231", "0.6576803", "0.6533263", "0.65226805", "0.65224403", "0.64510244", "0.6425288", "0.64222014", "0.6411214", "0.6393698", "0.6372051...
0.6466925
15
Test reporting of an article that does not exist
def faND(YKHO): from rest_framework.test import APIClient x0hE = APIClient() geh0 = x0hE.post('/api/report/spoon/', YKHO.report, HTTP_AUTHORIZATION='Token ' + YKHO.token_1, format='json') Aofo = qQXR.loads(geh0.content) YKHO.assertEqual(Aofo['error_message'], 'The article you are reporting does not ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nJLN(YKHO):\n YKHO.client.credentials(HTTP_AUTHORIZATION='Bearer ' + YKHO.token)\n YKHO.rate_details['user']['slug'] = '-ss-dd-dd-ff'\n geh0 = YKHO.client.post(YKHO.rate_url, YKHO.rate_details, format='json')\n YKHO.assertIn('Article not found', str(geh0.data))\n YKHO.assertEqual(geh0.status_cod...
[ "0.7283493", "0.71171564", "0.695727", "0.69475085", "0.69136393", "0.6837442", "0.68372315", "0.6657535", "0.65150505", "0.64166903", "0.63671476", "0.63273185", "0.6298003", "0.6290093", "0.62636065", "0.625549", "0.62228197", "0.62222844", "0.62222844", "0.6148152", "0.613...
0.78766966
0
Sets the node knowledge_source value for the current node.
def TcGh(YKHO, tckm: Dict): YKHO.set_provenance('provided_by', tckm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xUuB(YKHO, JZXy):\n YKHO.data['source'] = JZXy", "def aIBJ(YKHO, E6wR):\n YKHO._bld.Addreference(YKHO.get_sobj(), E6wR.get_sobj())", "def yAvQ(YKHO, mWFP, QTBn):\n YKHO.source_net.nodes[mWFP] = QTBn", "def xUuB(YKHO, KoHv):\n YKHO.source = KoHv", "def yAvQ(YKHO, Q6kx):\n YKHO.__node = Q6...
[ "0.65061307", "0.6417278", "0.63754386", "0.6263851", "0.62089854", "0.6073915", "0.6073915", "0.6073915", "0.6073915", "0.6073915", "0.6073915", "0.6073915", "0.6041957", "0.59914553", "0.5975039", "0.58851427", "0.582757", "0.57991904", "0.57767886", "0.56857675", "0.557627...
0.5046243
64
Sets the edge knowledge_source value for the current edge. Edge knowledge_source properties include the 'knowledge_source' related properties.
def TwOx(YKHO, GRLv: Dict): i9s9 = list(GRLv.keys()) for GjNN in i9s9: if GjNN in pJJJ: YKHO.set_provenance(GjNN, GRLv) for GjNN in YKHO.mapping: if GjNN != 'provided_by': YKHO.set_provenance(GjNN, GRLv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D70y(YKHO, D70y: EdgeConfig):\n YKHO._edge = D70y", "def RDpV(YKHO, *qIxc):\n return _VfD.ExternalModelDefinition_setSource(YKHO, *qIxc)", "def aIBJ(YKHO, E6wR):\n YKHO._bld.Addreference(YKHO.get_sobj(), E6wR.get_sobj())", "def xUuB(YKHO, KoHv):\n YKHO.source = KoHv", "def xUuB(YKHO, JZXy):...
[ "0.62508196", "0.57065916", "0.5530068", "0.54177684", "0.54154164", "0.52718985", "0.5243277", "0.52162755", "0.52013206", "0.5134606", "0.51154166", "0.51154166", "0.51154166", "0.51154166", "0.51154166", "0.51154166", "0.51154166", "0.50501686", "0.50395364", "0.5021171", ...
0.5068716
17
AWS healtcheck expects 200 status on root url
def NMoC(YKHO, QePW, *qIxc, **B2fa): return igJ6("It's working ✨")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YDR7():\n return ('', 200)", "def wP_p():\n return 'OK'", "def OYWx():\n return ('', 200)", "def Ze0G(YKHO):\n YKHO.url = gxEw('health-check')\n geh0 = YKHO.client.get(YKHO.url, **YKHO.auth_headers)\n YKHO.assertEqual(200, geh0.status_code)", "def OYWx(QePW):\n return oGir('OK', st...
[ "0.75829935", "0.7139423", "0.7089537", "0.6906219", "0.68725795", "0.6721617", "0.67154694", "0.66651255", "0.6633958", "0.6595418", "0.6577928", "0.6535786", "0.6529145", "0.65202874", "0.65103686", "0.64997905", "0.645079", "0.6445831", "0.64388096", "0.6427025", "0.639492...
0.0
-1
Store the fact that a scheduled message was unsent.
def YtsZ(YKHO, CBle): for uJjO in YKHO.user_id_to_scheduled_message_ts: for GKH3 in list(YKHO.user_id_to_scheduled_message_ts[uJjO]): if GKH3 >= CBle: if GKH3 in YKHO.user_id_to_scheduled_message_ts[uJjO]: YKHO.user_id_to_scheduled_message_ts[uJjO].remove(GKH3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EoOC(Emd4, OaeV, CBIr, pan_, Dfxc, EbXr, xzld):\n return", "def jl7F(YKHO, uJjO, GKH3):\n if uJjO not in YKHO.user_id_to_scheduled_message_ts:\n YKHO.user_id_to_scheduled_message_ts[uJjO] = set()\n YKHO.user_id_to_scheduled_message_ts[uJjO].add(GKH3)", "def LXdB(YKHO):\n YKHO.sent = True...
[ "0.6281566", "0.6062708", "0.59902596", "0.5865085", "0.57213324", "0.56656295", "0.5647895", "0.5647895", "0.56224066", "0.54500836", "0.5444862", "0.5393879", "0.5379537", "0.5338373", "0.53230965", "0.53176296", "0.5287505", "0.5284822", "0.5284822", "0.52847815", "0.52596...
0.55489004
9
Check if datetime dates are the same.
def v4yV(oF7G, tOwQ): return oF7G.year == tOwQ.year and oF7G.month == tOwQ.month and (oF7G.day == tOwQ.day)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4Jp(YKHO):\n GN9A = TY75('2015-11-03 13:21:02.071381', '03.11.2015', '20.11.2015')\n vLpG = TY75('2015-11-03 13:21:02.071381', '01.11.2015', '02.11.2015')\n YKHO.assertTrue(GN9A)\n YKHO.assertFalse(vLpG)", "def XUet(YKHO):\n Ilc0 = qcWV.date(2014, 11, 29)\n w0do = qcWV.date(2014, 11, 29)\n...
[ "0.7406846", "0.73458844", "0.73046005", "0.6966629", "0.6849388", "0.6791419", "0.67734766", "0.6743858", "0.673997", "0.67293555", "0.6710147", "0.6682322", "0.66746116", "0.6660897", "0.6622947", "0.66100264", "0.6599583", "0.6520754", "0.64506376", "0.6448551", "0.6427077...
0.813794
0
Returns center cropped image
def HK1Q(VXjJ, tpio): H2v2, TVTK = (VXjJ.shape[0], VXjJ.shape[1]) LbxQ = tpio[1] if tpio[1] < VXjJ.shape[1] else VXjJ.shape[1] Pqyv = tpio[0] if tpio[0] < VXjJ.shape[0] else VXjJ.shape[0] kEK1, OPNK = (int(TVTK / 2), int(H2v2 / 2)) zx4H, tGgy = (int(LbxQ / 2), int(Pqyv / 2)) tdFs = VXjJ[OPNK - t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def imIE(LNo8, ou4I, vkEG):\n WKvO, LVAh = LNo8.shape\n WcFg = WKvO // 2 - ou4I // 2\n N5og = LVAh // 2 - vkEG // 2\n return LNo8[WcFg:WcFg + ou4I, N5og:N5og + vkEG]", "def fJ2F(YKHO):\n VXjJ = YKHO.data\n vIvi = oyIN.copy(VXjJ)\n tpio = 128\n NAnm = tpio // 2\n yKcO = NAnm - NAnm // 2...
[ "0.7963459", "0.7638151", "0.76044345", "0.74087983", "0.740208", "0.7284791", "0.728289", "0.7279314", "0.7261671", "0.72432995", "0.7205581", "0.72042626", "0.7200235", "0.7156868", "0.7101748", "0.70445836", "0.696327", "0.69575727", "0.6903975", "0.69010776", "0.68450946"...
0.6660887
34
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8040086", "0.79256725", "0.7923959", "0.78855336", "0.78781366", "0.7816429", "0.7766289", "0.7756418", "0.7744994", "0.77324396", "0.77295053", "0.77257586", "0.77034765", "0.7690202", "0.7690202", "0.7664886", "0.7657751", "0.7656609", "0.7656609", "0.7646568", "0.764656...
0.74497783
72
Escape problematic characters for RTF. Returns a cleanedup version of the passed string, converted to 7bit ASCII, suitable for insertion into an RTF document.
def yhqV(l5Ny): l5Ny = l5Ny.replace('\\', '\\\\') l5Ny = l5Ny.replace('{', '\\{').replace('}', '\\}') l5Ny = RM2w.sub(fXiu, l5Ny) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxXx(P6bq):\n\n def QzZI(ejss):\n if ord(ejss.group(1)) == 127:\n return '\\\\x7f'\n if ord(ejss.group(1)) == 92:\n return '\\\\\\\\'\n return DhIX[ord(ejss.group(1))]\n return ZbWC.sub('([\\\\000-\\\\037\\\\134\\\\177])', QzZI, P6bq)", "def I150(vIwR):\n r...
[ "0.6638866", "0.65845484", "0.62748605", "0.610262", "0.6100276", "0.60689026", "0.6063311", "0.6022153", "0.59766936", "0.5971409", "0.59683627", "0.59496856", "0.59364694", "0.5932294", "0.5929602", "0.592675", "0.5912138", "0.5910917", "0.59015197", "0.58791673", "0.585418...
0.67479604
0
Creates a new list type. Pass in List.NONE for an unnumbered list, or a real number type (e.g., List.ARABIC). Typically, user code will invoke this indirectly, through the Document.addList() method (q.v.).
def FIMM(YKHO, FTDB): YKHO.id = x1iM.__getNextId() YKHO.__numberType = FTDB if YKHO.__numberType != x1iM.NONE: YKHO.__levelText = "\\'02\\'00." YKHO.__levelNumbers = "\\'01" else: YKHO.__levelText = "\\'01\\u8226 *" YKHO.__levelNumbers = ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jeSh(YKHO, Nazj, st2H):\n global last_added_list_type_id\n _4uV += 1\n x6_c = _4uV\n a_8Z = 'ListOf' + st2H + 's'\n y5tR = InQz()\n y5tR.set_name(a_8Z)\n y5tR.class_id = str(x6_c)\n azoT = []\n SU8C = _ofE()\n SU8C.set_name(a_8Z.lower() + '_name')\n TyEd = etO7('String')\n i...
[ "0.706224", "0.706224", "0.67515886", "0.6415258", "0.5961175", "0.57241756", "0.57237995", "0.5665359", "0.5633094", "0.56301224", "0.5582019", "0.55509025", "0.5530938", "0.545514", "0.5439083", "0.5439083", "0.5417483", "0.5362759", "0.5356182", "0.53456825", "0.52998185",...
0.62718654
4
Returns the default collector settings
def yDgW(YKHO): GPtr = super(iwOa, YKHO).get_default_config() GPtr.update({'url': lMln, 'path': 'dropwizard'}) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDgW(YKHO):\n GPtr = super(leyK, YKHO).get_default_config()\n GPtr.update({'enabled': 'True', 'fs': ',', 'timeout': 300})\n return GPtr", "def qimH():\n return {}", "def yDgW(YKHO):\n GPtr = super(mn2k, YKHO).get_default_config()\n GPtr.update({'path': 'vms'})\n return GPtr", "def WF...
[ "0.70514023", "0.7008024", "0.6713433", "0.65743333", "0.65309024", "0.6521635", "0.6515402", "0.6466526", "0.6447688", "0.641337", "0.6397818", "0.6380512", "0.63683224", "0.6357208", "0.63517016", "0.6331759", "0.63120294", "0.62353724", "0.6231899", "0.62074906", "0.620161...
0.69490683
2
Sends a 401 response that enables basic auth
def NLCy(): return 'Please log in... Log in page'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7843114", "0.7824419", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", ...
0.0
-1
Returns a boolean indicating if the password is strong Strong passwords are 8 characters or longer, contain at least one uppercase letter, lowercase letter and digit.
def JM9u(l5Ny): ZMbc = ZbWC.compile('[A-Z]') AyiC = ZbWC.compile('[a-z]') ETZg = ZbWC.compile('.{8,}') GLux = ZbWC.compile('\\d') if not ZMbc.search(l5Ny): return False elif not AyiC.search(l5Ny): return False elif not ETZg.search(l5Ny): return False elif not GLux...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def COHM(jTXt):\n if len(jTXt) < 8:\n return False\n CN9P = ZbWC.compile('[A-Z]')\n vP2v = CN9P.search(jTXt)\n LSh8 = ZbWC.compile('[a-z]')\n gqRb = LSh8.search(jTXt)\n Ko6S = ZbWC.compile('[0-9]')\n rOzm = Ko6S.search(jTXt)\n if vP2v is None or gqRb is None or rOzm is None:\n ...
[ "0.8663722", "0.75587124", "0.72078776", "0.7196853", "0.7176138", "0.7115806", "0.71134627", "0.7087266", "0.70488226", "0.70135796", "0.6969454", "0.69403523", "0.69234264", "0.6874378", "0.68543565", "0.68320864", "0.67779094", "0.6757781", "0.6703692", "0.6696325", "0.668...
0.67354107
18
Returns a tag, which may be start time of this test run. This tag is identical across the test runner's worker processes.
def FXDL(): return Hy7s.environ.get('RUINER_TEST_START_TIME', 'latest')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWox(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_time')", "def SWox(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_time')", "def lAAs(YKHO):\n assert not YKHO.isWaitingToStart(), 'Too early to tell: %s' % YKHO\n return '%s' % YKHO.__jobInfo.startTime", "def SWox(YKHO) -> str:\n return YKHO....
[ "0.6283497", "0.6283497", "0.6277567", "0.62729317", "0.62515754", "0.6248598", "0.61785764", "0.6171838", "0.6163418", "0.61497474", "0.61011755", "0.6072867", "0.6044303", "0.6038727", "0.6017822", "0.59328866", "0.5908952", "0.59056944", "0.5905075", "0.5905075", "0.590507...
0.8001191
0
Strip all ansi escape codes
def YL5r(hGN5): return dTEX.sub('', hGN5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YL5r(l5Ny):\n return JNWq.sub('', l5Ny)", "def YL5r(l5Ny: str):\n return JmRi.sub('', l5Ny)", "def Dr6F(KCHu):\n if isinstance(KCHu, str):\n return STgU.sub('\\\\4', KCHu)\n else:\n return nUnE.sub('\\\\4', KCHu)", "def V9Zy(nPrm):\n if isinstance(nPrm, bytes):\n nPrm ...
[ "0.8682332", "0.83025575", "0.8297623", "0.82542694", "0.7964481", "0.7932828", "0.78513604", "0.768965", "0.75720173", "0.756677", "0.75487787", "0.7260478", "0.7085713", "0.7008547", "0.6988856", "0.69182104", "0.6716041", "0.66886145", "0.6680426", "0.66245204", "0.6604268...
0.858079
1
Compute the distance between 2 bounding boxes
def zG70(YKHO, CYwQ, q1ub): Jw7X = max(max(0, CYwQ[1] - q1ub[3]), max(0, q1ub[1] - CYwQ[3])) eUWA = max(max(0, CYwQ[0] - q1ub[2]), max(0, q1ub[0] - CYwQ[2])) return max(Jw7X, eUWA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gFD0(MErA, ZnGJ):\n Csk6 = 0.0\n Jfo9 = lKXT(MErA)\n YCpZ = lKXT(ZnGJ)\n for YRbF in range(2):\n Csk6 += (Jfo9[YRbF] - YCpZ[YRbF]) ** 2\n Csk6 = oyIN.sqrt(Csk6)\n return Csk6", "def TRk9(kYGz, ftz7):\n return max(0, oyIN.max(oyIN.hstack((kYGz.l - ftz7.u, ftz7.l - kYGz.u))))", "d...
[ "0.79955995", "0.75176734", "0.72025377", "0.7184925", "0.71459496", "0.7116346", "0.7005331", "0.69272166", "0.69012177", "0.68160224", "0.6803914", "0.6742389", "0.66856384", "0.66558456", "0.6637974", "0.6632439", "0.66309494", "0.6559493", "0.65449345", "0.65399456", "0.6...
0.0
-1
Check that there are still surviving ships
def utVN(YKHO): if len(YKHO.ships) > 0: geh0 = False for C7MP in YKHO.ships: if C7MP.afloat == True: geh0 = True return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8Nm(YKHO):\n for mrj1 in YKHO.pieces:\n if not mrj1.destroyed:\n return False\n print('Signal.END')\n return True", "def UZ_k(YKHO):\n YKHO.units.pop()\n return len(YKHO.units) == 0", "def l01t(YKHO):\n if YKHO.mark == uwaB.DEAD_SHIP_MARK:\n return True\n retu...
[ "0.6768147", "0.66486454", "0.6641144", "0.6333098", "0.6238693", "0.61549944", "0.6092869", "0.6067527", "0.6065381", "0.6049714", "0.6021803", "0.6015942", "0.5995482", "0.5933524", "0.5903855", "0.5867603", "0.5847981", "0.58386475", "0.5838318", "0.5830238", "0.5809827", ...
0.0
-1
A view that will return the index.html template.
def d6pt(QePW): return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZ...
[ "0.8954126", "0.8953713", "0.8946297", "0.8933021", "0.8933021", "0.8896368", "0.8896368", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0.88458806", "0....
0.0
-1
A view that will return to the about.html template.
def vsuQ(QePW): return _1tc(QePW, 'about.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('/home/about.html')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ(QePW):\n return TvZl('core/about.html')", "def vsuQ():\n return TvZl('about.html')", "def vsuQ():\n return T...
[ "0.8657666", "0.8654846", "0.86494917", "0.86154366", "0.8607712", "0.8587782", "0.85710955", "0.8550439", "0.854989", "0.8545402", "0.8541093", "0.8541093", "0.8541093", "0.8541093", "0.8541093", "0.8541093", "0.8541093", "0.8541093", "0.8541093", "0.85380125", "0.85186124",...
0.84747577
27
A view that will return to the contact.html template.
def Mxk0(QePW): return _1tc(QePW, 'contact.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n return TvZl('contact.html')", "def Mxk0(QePW):\n return _1tc(QePW, 'home/contact.html')", "def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='My contact page.')", "def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year,...
[ "0.87275285", "0.85623634", "0.83891225", "0.83853567", "0.835942", "0.8348642", "0.8348642", "0.8348642", "0.8348642", "0.8348642", "0.8348642", "0.8348642", "0.8348642", "0.834425", "0.8342942", "0.8342942", "0.8269166", "0.81857646", "0.81837237", "0.81811655", "0.81615585...
0.85719264
1
A view that will return a list of cakes to the weddingcakes.html template.
def HnFm(QePW): Ldyl = msfn.objects.all() return _1tc(QePW, 'weddingcakes.html', {'products': Ldyl})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSwY():\n KYGS = thws.query.order_by('name').all()\n return TvZl('cafe/list.html', cafes=KYGS)", "def Euuq():\n Ih6K = FB0C.query.all()\n oAiD = [Napc(t5Qd) for t5Qd in Ih6K]\n return pz3A(cupcakes=oAiD)", "def _Z1k(QePW):\n UrgQ = pKeM.objects.all().order_by('title')\n return _1tc(QeP...
[ "0.6764154", "0.6590569", "0.6529792", "0.62766933", "0.62275034", "0.62184834", "0.6130166", "0.60844857", "0.6077805", "0.60669076", "0.6065775", "0.6045268", "0.602269", "0.6002405", "0.5950898", "0.5928992", "0.5907874", "0.58995223", "0.5835869", "0.5831679", "0.5814352"...
0.718781
0
A view that will return a list of birthday cakes to the birthdaycakes.html template.
def VlSf(QePW): Ldyl = msfn.objects.all() return _1tc(QePW, 'birthdaycakes.html', {'products': Ldyl})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSwY():\n KYGS = thws.query.order_by('name').all()\n return TvZl('cafe/list.html', cafes=KYGS)", "async def birthdaylist(YKHO, OaeV):\n await Gb_R.birthday_info(OaeV)", "def d6pt(QePW):\n try:\n MzZt = WDsN.objects.get(user=QePW.user)\n except WDsN.DoesNotExist:\n raise uhgT('D...
[ "0.6172296", "0.6135843", "0.6091858", "0.5974001", "0.5815637", "0.5812576", "0.5792597", "0.5779868", "0.5736192", "0.5683933", "0.56755096", "0.5644524", "0.5611166", "0.5607934", "0.5599547", "0.5591209", "0.55896664", "0.5587035", "0.5577466", "0.55613345", "0.5512725", ...
0.7414948
0
A view that will return a list of sheetcakes to the sheetcakes.html template.
def gqcB(QePW): Ldyl = msfn.objects.all() return _1tc(QePW, 'sheetcakes.html', {'products': Ldyl})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSwY():\n KYGS = thws.query.order_by('name').all()\n return TvZl('cafe/list.html', cafes=KYGS)", "def gs93():\n return TvZl('list_of_stories.html', stories=cepN.values())", "def _Z1k(QePW):\n UrgQ = pKeM.objects.all().order_by('title')\n return _1tc(QePW, 'lakes/listing.html', {'lakes': UrgQ...
[ "0.6229192", "0.61509186", "0.6025846", "0.5932279", "0.59009314", "0.5870074", "0.5794099", "0.57722735", "0.57498497", "0.56898165", "0.56718445", "0.564996", "0.5644606", "0.5608243", "0.56081337", "0.555043", "0.55415154", "0.5512649", "0.5510938", "0.55083203", "0.548114...
0.7386663
0
A view that will return the testimonials.html template.
def vVhO(QePW): return _1tc(QePW, 'testimonials.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVhO(YKHO):\n return YKHO._get_child_page_of_type(E8dn)", "def vVhO(YKHO):\n return YKHO._get_child_page_of_type(E8dn)", "def d80a():\n return TvZl('portfolio/portfolio.html')", "def A0Gq(QePW):\n return _1tc(QePW, 'coreapp/story.html')", "def JbmN(QePW):\n return _1tc(QePW, 'home/meet_t...
[ "0.6440264", "0.6440264", "0.62551194", "0.62105566", "0.6202186", "0.6111025", "0.60678613", "0.6062352", "0.5989167", "0.59329116", "0.59191036", "0.58942693", "0.5865982", "0.5806878", "0.5788199", "0.57860357", "0.57579136", "0.5745933", "0.5745238", "0.5745238", "0.57197...
0.8700251
0
Returns a list of valid words. Words are strings of lowercase letters.
def CJFM(): nW2s = open(KvIa, 'r') zFiD = nW2s.readline() cfuW = zFiD.split() return cfuW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4Z4(eHNT: str, KoG3: List[str]) -> x1iM[str]:\n PWnE = [YRbF for YRbF in vIwR.ascii_lowercase]\n for YRbF in KoG3:\n try:\n PWnE.remove(YRbF)\n except:\n pass\n qUrp = open(eHNT)\n vwCE = []\n EeTl = ''\n for YRbF in KoG3:\n EeTl += YRbF\n for GI...
[ "0.74141264", "0.7316963", "0.71649086", "0.7083956", "0.7075021", "0.70583266", "0.70583266", "0.70572466", "0.701335", "0.7008619", "0.7007723", "0.69712204", "0.6958952", "0.6958382", "0.6941486", "0.6941275", "0.6916614", "0.6858929", "0.6823021", "0.6822135", "0.6820978"...
0.0
-1
take 1D float array of rewards and compute discounted reward
def AC1_(Mkmy): g2lU = oyIN.zeros_like(Mkmy) S8qo = 0 for a1PO in reversed(range(0, Mkmy.size)): S8qo = S8qo * KMvS + Mkmy[a1PO] g2lU[a1PO] = S8qo return g2lU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n return g2lU", "def AC1_(vwlo, KMvS):\n AFmI = vwlo.shape\n if len(AFmI) == 1:\n g2lU = oyIN.zeros(shape=(*AFmI, 1),...
[ "0.8100446", "0.7839692", "0.779265", "0.77411646", "0.7653726", "0.7597975", "0.75828975", "0.7581594", "0.7579058", "0.7535841", "0.751882", "0.7504493", "0.7467504", "0.74343014", "0.7426615", "0.74061066", "0.7394629", "0.73702496", "0.73562455", "0.7328596", "0.7201555",...
0.7456529
13
Get the list of all nodes in the graph.
def CDNe(YKHO): return YKHO.__allNodes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyQV(YKHO):\n return list(YKHO.graph.nodes)", "def vTxU(YKHO):\n return [[Q6kx] for Q6kx in YKHO.graph.nodes]", "def Ziit(YKHO):\n return list(YKHO.__graph.keys())", "def qmh8(YKHO):\n return YKHO._get_all_nodes()", "def Ziit(YKHO):\n Ziit = list()\n for Q6kx in YKHO._nodes:\n ...
[ "0.85697395", "0.8516235", "0.83069646", "0.8289322", "0.82169616", "0.82070625", "0.81972146", "0.81449574", "0.81319046", "0.8104505", "0.80961007", "0.800618", "0.7982536", "0.7982536", "0.788919", "0.78725296", "0.7834642", "0.78113556", "0.7781186", "0.7747402", "0.76825...
0.82738733
4
Get the name of the currently selected node.
def tOE3(YKHO): return YKHO.__selectedNode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AwDt(YKHO):\n return YKHO._node_name", "def W0tD(YKHO):\n return YKHO.tagnode", "def CUOW(YKHO, Q6kx):\n return Q6kx.name", "def W0tD(YKHO):\n return YKHO.children[0]", "def CUOW(YKHO):\n return gnPz.join_names_underscore(YKHO.name, str(YKHO.as_pointer()))", "def lbQU(YKHO):\n retur...
[ "0.80392283", "0.79532605", "0.7841116", "0.77826786", "0.77112156", "0.7666512", "0.7666512", "0.7666512", "0.7666512", "0.7427819", "0.7388148", "0.734379", "0.729248", "0.729143", "0.729141", "0.7156889", "0.7147383", "0.711365", "0.7090674", "0.70897114", "0.70676506", ...
0.0
-1
Get the distance above the node that is being displayed.
def osAx(YKHO): return YKHO.__aboveDistance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Duo(YKHO):\n return YKHO.y", "def fKRT(YKHO):\n return YKHO.__belowDistance", "def zG70(YKHO, Q6kx):\n return oyIN.sqrt((YKHO.x - Q6kx.x) ** 2 + (YKHO.y - Q6kx.y) ** 2)", "def zG70(YKHO) -> int:\n return YKHO.get_measurement_data().distance", "def Ayfi(YKHO):\n return YKHO._distance", ...
[ "0.7222821", "0.71368724", "0.69738525", "0.6769557", "0.6647744", "0.6600473", "0.65055746", "0.64567316", "0.6449563", "0.644421", "0.64156026", "0.641031", "0.63718027", "0.6370833", "0.6331696", "0.632832", "0.6326339", "0.6326339", "0.6326339", "0.6326339", "0.6326339", ...
0.76243824
0
Get the distance below the node that is being displayed.
def fKRT(YKHO): return YKHO.__belowDistance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v2(YKHO):\n return YKHO.i_node.distance(YKHO.n_node)", "def _Duo(YKHO):\n return YKHO.y", "def osAx(YKHO):\n return YKHO.__aboveDistance", "def zG70(YKHO, Q6kx):\n return oyIN.sqrt((YKHO.x - Q6kx.x) ** 2 + (YKHO.y - Q6kx.y) ** 2)", "def zG70(YKHO) -> int:\n return YKHO.get_measurement_...
[ "0.70612484", "0.69837356", "0.6900154", "0.68536454", "0.68156075", "0.67329437", "0.66154844", "0.65944964", "0.65942335", "0.6567826", "0.65518767", "0.6523599", "0.6504559", "0.64094913", "0.62892777", "0.6251985", "0.6219749", "0.62019897", "0.6192968", "0.61922884", "0....
0.74886084
0
Probability density function for uniform semimajor axis distribution in AU
def s5GY(YKHO, jzdc): return YKHO.uniform(jzdc, YKHO.arange.to('AU').value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbaW(WKvO, jzdc):\n return jzdc * WKvO", "def kzAT(WKvO, yGTL, M1Jx):\n if M1Jx == 0:\n return 0\n return 1.0 / (M1Jx * PZyS(2 * mM0K)) * oyIN.exp(-(WKvO - yGTL) ** 2 / (2 * M1Jx ** 2))", "def Eo2K(YKHO, EcVT):\n raise NotImplementedError", "def NXCA(YKHO):\n g2VT = kuG0(C77I)\n ...
[ "0.69303334", "0.6818437", "0.68084055", "0.6746853", "0.66229695", "0.6593313", "0.65365404", "0.651651", "0.6502097", "0.64832777", "0.64654124", "0.6455742", "0.6444512", "0.6442557", "0.64206487", "0.6408499", "0.63383675", "0.6328811", "0.6313404", "0.63095045", "0.62974...
0.0
-1
Delete a comment in a post. Only the author of a comment or the owner of a resub can delete the comment.
async def delete_comment(aM_I: models.Comment=JHvC(lMHq), NCls: Session=JHvC(GGod)): UXsa.delete_comment(NCls, aM_I.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZBqo(QePW, pQGt):\n raise NotImplementedError", "def ac1o(x0hE, qIxc):\n ZBqo = x0hE.delete_comment(qIxc.comment_id)\n Qwwm({'delete_comment': ZBqo})", "def R4in(QePW, _sei):\n aM_I = Iofl(jY1u, pk=_sei)\n m3Ns = aM_I.post.pk\n aM_I.delete()\n return vKnz('post_detail', pk=m3Ns)", "d...
[ "0.71567506", "0.70379335", "0.68949413", "0.68340385", "0.6823589", "0.68172073", "0.67659277", "0.6680487", "0.66638416", "0.65956354", "0.65643597", "0.6516853", "0.6507571", "0.6456063", "0.6417316", "0.6358114", "0.63370985", "0.6307334", "0.62630486", "0.6127596", "0.61...
0.73769075
0
Convert default service account to account email.
def U25k(bNKA): vG33 = cnJe(['gcloud', 'iam', 'service-accounts', 'list', '--project', bNKA]) for os3x in vG33: if 'compute@developer' in os3x['email']: return os3x['email'] jjPY.YL('Could not find compute default service account!') jjPY.YL('See `gcloud iam service-accounts list`.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s_B7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_account_email_address')", "def s_B7(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_account_email_address')", "def s_B7(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_account_email_address')", "def CWxg(YKHO) -> h8...
[ "0.6715278", "0.6700822", "0.6628977", "0.6562429", "0.6562429", "0.6465216", "0.6396426", "0.6125913", "0.6021179", "0.59912086", "0.59912086", "0.5959284", "0.59316605", "0.5904003", "0.5891224", "0.5876859", "0.5866315", "0.5849906", "0.5798227", "0.5798227", "0.5798227", ...
0.7228228
0
Validate service account, and SA keys, rewriting email if needed.
def iaQc(zOZf, bNKA): jjPY.GN('Validating service account and keys.') if zOZf == 'default': zOZf = U25k(bNKA) try: ibAR = cnJe(['gcloud', 'iam', 'service-accounts', 'keys', 'list', '--iam-account', zOZf, '--managed-by=user']) except Yn3K.CalledProcessError: jjPY.YL('Could not lis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n nPrm = tbC6().load(QePW.json)\n WrCt = nPrm['email'].lower()\n UETc = nPrm['verificationToken']\n MamA.validate_email_address_verification_token(WrCt, UETc)", "def xzCw(Emd4, H5ew):\n Kt_s = jvSB.T\n\n def T8uS(L03z):\n Wxnj = L03z.vars.get('code')\n ZrNc = Emd4....
[ "0.5763259", "0.554804", "0.53703517", "0.53526074", "0.5324196", "0.5302309", "0.5282969", "0.519255", "0.5183283", "0.51717764", "0.516484", "0.5151231", "0.5149192", "0.51301616", "0.51300055", "0.5125551", "0.5110303", "0.5101654", "0.5092259", "0.50743043", "0.50578415",...
0.5329634
4
Empty dummy layer to serve as placeholder for shortcut and route layers, which provide connections to previous layers. Actual logic is handled in Darknet.forward().
def FIMM(YKHO): super().__init__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zTd5(YKHO):\n gEmA = {ug3y.questionWord: '', ug3y.pronoun: '', ug3y.verb: '', ug3y.websiteName: '', ug3y.timeWord: '', ug3y.about: '', ug3y.weather: '', ug3y.when: '', ug3y.keywords: [], ug3y.courseID: '', ug3y.structureUnitCode: '', ug3y.sentence: [], ug3y.hangman: '', ug3y.what: ''}\n return gEmA", "...
[ "0.6661153", "0.6490303", "0.6232783", "0.6221655", "0.5946437", "0.594271", "0.59382886", "0.5890493", "0.5887442", "0.5840491", "0.58024573", "0.57472515", "0.57430995", "0.57235676", "0.5696434", "0.5647566", "0.5645178", "0.56379694", "0.56197906", "0.55343336", "0.552417...
0.0
-1
Process input tensor and produce bounding box coordinates, class probability, and class index.
def KVH6(YKHO, WKvO): HT_T = len(YKHO.anchors) Ep8u, N8hd, MKlR, yzQ0 = WKvO.shape jTqs = int(N8hd / HT_T) - 5 WKvO = WKvO.reshape((Ep8u, HT_T, jTqs + 5, MKlR, yzQ0)) MXSN = WKvO[:, :, 0:4, :, :] akzG = WKvO[:, :, 4:5, :, :] qCjZ = WKvO[:, :, 5:, :, :] Vokc = MXSN.clone().detach() UV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7As(YKHO, o4Jx, N0ky):\n oUSw = []\n eyKn = []\n sepv = []\n for hlel in o4Jx:\n oUSw.append(hlel[..., 0:4])\n eyKn.append(YKHO.sig(hlel[..., 4, oyIN.newaxis]))\n sepv.append(YKHO.sig(hlel[..., 5:]))\n for YRbF in range(len(oUSw)):\n h8lR = oUSw[YRbF].shape[0]\n ...
[ "0.6706056", "0.65239096", "0.62652785", "0.6218411", "0.61396897", "0.61283857", "0.6122238", "0.611993", "0.61045426", "0.6103687", "0.6064496", "0.60588264", "0.6027531", "0.59847194", "0.5966662", "0.59279644", "0.586214", "0.5801339", "0.57982415", "0.5781957", "0.577820...
0.0
-1
List of all the explicit and implied data requirements for this request, as needed for creating a job object. Returns List[DataRequirement] List of all the explicit and implied data requirements for this request.
def IchE(YKHO) -> x1iM[cb0j]: return [YKHO.bmi_cfg_data_requirement, YKHO.forcing_data_requirement, YKHO.hydrofabric_data_requirement, YKHO.partition_cfg_data_requirement, YKHO.realization_cfg_data_requirement]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTAV(YKHO):\n f9mM = {'requires_partial_lc': True, 'metric': YKHO.metric, 'requires_hyperparameters': False, 'hyperparams': None, 'unlabeled': False, 'unlabeled_factor': 0}\n return f9mM", "def fA3L(YKHO):\n fA3L = []\n return fA3L", "def fA3L(YKHO):\n jeGQ = set()\n for P6bq in YKHO.upda...
[ "0.7399392", "0.6757007", "0.6298203", "0.59120965", "0.58829975", "0.5852859", "0.57605505", "0.5758578", "0.5730543", "0.57006925", "0.5682317", "0.56804734", "0.5628312", "0.56186134", "0.56152946", "0.56106013", "0.5610255", "0.55861616", "0.5585712", "0.5531084", "0.5506...
0.85020816
0
The index value of ``data_id`` to uniquely identify sets of BMI module config data that are otherwise similar. Returns str Index value of ``data_id`` to uniquely identify sets of BMI module config data that are otherwise similar.
def HXBR(YKHO) -> str: return YKHO._bmi_config_data_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smJ7(YKHO, mWFP):\n or8S = -1\n if type(mWFP) is str:\n xjDy = YKHO.data_list()\n if mWFP in xjDy:\n or8S = xjDy.index(mWFP)\n return or8S", "def hY1T(YKHO) -> str:\n return YKHO.config_data_id", "def mLJR(YKHO):\n return '%s%08X' % (YKHO.id, YKHO.index)", "def BNa...
[ "0.6216138", "0.58915424", "0.5877848", "0.566948", "0.5658639", "0.56280905", "0.55710214", "0.55339956", "0.5516464", "0.5487767", "0.54839426", "0.5452809", "0.5375143", "0.53696126", "0.5366345", "0.5353029", "0.5341586", "0.53280956", "0.5319926", "0.5319926", "0.5307271...
0.66749483
0
A requirement object defining of the BMI configuration data needed to execute this request. Returns DataRequirement A requirement object defining of the BMI configuration data needed to execute this request.
def dKjA(YKHO) -> cb0j: if YKHO._bmi_cfg_data_requirement is None: jX8O = [SKed(variable='data_id', values=[YKHO._bmi_config_data_id])] lHoB = OwEs(data_format=vu2q.BMI_CONFIG, discrete_restrictions=jX8O) YKHO._bmi_cfg_data_requirement = cb0j(lHoB, True, p_jU.CONFIG) return YKHO._bmi_cfg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0pN(YKHO) -> cb0j:\n if YKHO._hydrofabric_data_requirement is None:\n yOsB = [SKed(variable='hydrofabric_id', values=[YKHO._hydrofabric_uid]), SKed(variable='data_id', values=[YKHO._hydrofabric_data_id])]\n DTHH = OwEs(data_format=vu2q.NGEN_GEOJSON_HYDROFABRIC, discrete_restrictions=yOsB)\n ...
[ "0.6452344", "0.61670595", "0.61638826", "0.6128956", "0.60974234", "0.57616895", "0.5329206", "0.5039065", "0.5002695", "0.4939127", "0.49187788", "0.48541144", "0.48475865", "0.48267353", "0.48071423", "0.4777065", "0.47014198", "0.46792993", "0.467474", "0.46577188", "0.46...
0.8191051
0
A requirement object defining of the forcing data needed to execute this request. Returns DataRequirement A requirement object defining of the forcing data needed to execute this request.
def aZXF(YKHO) -> cb0j: if YKHO._forcing_data_requirement is None: Hnqk = OwEs(data_format=vu2q.AORC_CSV, continuous_restrictions=[YKHO._time_range], discrete_restrictions=[YKHO._gen_catchments_domain_restriction()]) YKHO._forcing_data_requirement = cb0j(domain=Hnqk, is_input=True, category=p_jU.FOR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0pN(YKHO) -> cb0j:\n if YKHO._hydrofabric_data_requirement is None:\n yOsB = [SKed(variable='hydrofabric_id', values=[YKHO._hydrofabric_uid]), SKed(variable='data_id', values=[YKHO._hydrofabric_data_id])]\n DTHH = OwEs(data_format=vu2q.NGEN_GEOJSON_HYDROFABRIC, discrete_restrictions=yOsB)\n ...
[ "0.7167389", "0.6622867", "0.63169146", "0.62775666", "0.5754902", "0.56679356", "0.55585635", "0.5285966", "0.51847655", "0.51163375", "0.50830495", "0.5072645", "0.50726414", "0.50674707", "0.5050114", "0.5044926", "0.49724722", "0.49594453", "0.49417934", "0.49417934", "0....
0.80969536
0
A requirement object defining the hydrofabric data needed to execute this request. Returns DataRequirement A requirement object defining the hydrofabric data needed to execute this request.
def _0pN(YKHO) -> cb0j: if YKHO._hydrofabric_data_requirement is None: yOsB = [SKed(variable='hydrofabric_id', values=[YKHO._hydrofabric_uid]), SKed(variable='data_id', values=[YKHO._hydrofabric_data_id])] DTHH = OwEs(data_format=vu2q.NGEN_GEOJSON_HYDROFABRIC, discrete_restrictions=yOsB) YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LGG8(YKHO) -> cb0j:\n if YKHO._partition_cfg_data_requirement is None:\n Qrw6 = []\n Qrw6.append(SKed(variable='hydrofabric_id', values=[YKHO.hydrofabric_uid]))\n Qrw6.append(SKed(variable='length', values=[YKHO.cpu_count]))\n if YKHO.partition_cfg_data_id is not None:\n ...
[ "0.6787229", "0.67788893", "0.61636657", "0.6025319", "0.5768143", "0.56299055", "0.5516795", "0.55032426", "0.5409377", "0.53630954", "0.53078556", "0.52778864", "0.5185936", "0.51387703", "0.51206166", "0.50780064", "0.5045509", "0.50188434", "0.5002105", "0.49975094", "0.4...
0.8381505
0
The data format ``data_id`` for the hydrofabric dataset to use in requested modeling. This identifier is needed to distinguish the correct hydrofabric dataset, and thus the correct hydrofabric, expected for this modeling request. For arbitrary hydrofabric types, this may not be possible with the unique id of the hydrof...
def Qhko(YKHO) -> str: return YKHO._hydrofabric_data_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwEa(YKHO):\n return YKHO.unpack_string(4, 2)", "def c55i(YKHO) -> str:\n return YKHO._dataset_id", "def BlS9(YKHO) -> h8nf[str]:\n return YKHO._generated_data_id", "def c55i(YKHO) -> str:\n return qe4Y.get(YKHO, 'dataset_id')", "def c55i(YKHO) -> str:\n return qe4Y.get(YKHO, 'dataset_id...
[ "0.6602505", "0.6537788", "0.6456604", "0.6410008", "0.6410008", "0.6410008", "0.63690454", "0.6231081", "0.62167346", "0.61841124", "0.6151895", "0.6112876", "0.61104673", "0.6096965", "0.60433245", "0.60189515", "0.5904478", "0.58916736", "0.5846801", "0.5816432", "0.574085...
0.7605217
0
The unique id of the hydrofabric for this modeling request. Returns str The unique id of the hydrofabric for this modeling request.
def iPQD(YKHO) -> str: return YKHO._hydrofabric_uid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qhko(YKHO) -> str:\n return YKHO._hydrofabric_data_id", "def ShR8(YKHO) -> str:\n return f'{YKHO._host}_{YKHO._name}_{YKHO._unique_id}'", "def ShR8(YKHO):\n return YKHO._uuid", "def ShR8(YKHO):\n return YKHO._uuid", "def ShR8(YKHO):\n return f'{YKHO.device.id}-{YKHO.key}'", "def ShR8(Y...
[ "0.76448876", "0.7108294", "0.70984775", "0.70984775", "0.7009763", "0.6986668", "0.6979647", "0.6956512", "0.6956512", "0.6956512", "0.6956512", "0.6956512", "0.6956512", "0.6956512", "0.6956512", "0.6920794", "0.6916433", "0.6909974", "0.68713135", "0.6844287", "0.6819783",...
0.766789
0
The ``data_id`` for the partition config dataset to use in requested modeling. This identifier is needed to distinguish the correct specific partition config dataset, and thus the correct partition config, expected for this modeling request. However, this may not always be necessary, as it should be possible to find a ...
def rgrZ(YKHO) -> h8nf[str]: return YKHO._part_config_data_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DkZ8(YKHO) -> 'outputs.PreventionJobTriggerInspectJobStorageConfigDatastoreOptionsPartitionId':\n return qe4Y.get(YKHO, 'partition_id')", "def c55i(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'dataset_id')", "def Qhko(YKHO) -> str:\n return YKHO._hydrofabric_data_id", "def hY1T(YKHO)...
[ "0.6641666", "0.6637607", "0.6272348", "0.6272189", "0.6205243", "0.6205243", "0.6205243", "0.60910755", "0.60485655", "0.5829867", "0.58218056", "0.56978405", "0.5673452", "0.5643621", "0.5586364", "0.55681723", "0.5535753", "0.5469309", "0.5446034", "0.5386966", "0.53774095...
0.81040806
0
A requirement object defining of the partitioning configuration data needed to execute this request. Returns DataRequirement A requirement object defining of the partitioning configuration data needed to execute this request.
def LGG8(YKHO) -> cb0j: if YKHO._partition_cfg_data_requirement is None: Qrw6 = [] Qrw6.append(SKed(variable='hydrofabric_id', values=[YKHO.hydrofabric_uid])) Qrw6.append(SKed(variable='length', values=[YKHO.cpu_count])) if YKHO.partition_cfg_data_id is not None: Qrw6.app...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0pN(YKHO) -> cb0j:\n if YKHO._hydrofabric_data_requirement is None:\n yOsB = [SKed(variable='hydrofabric_id', values=[YKHO._hydrofabric_uid]), SKed(variable='data_id', values=[YKHO._hydrofabric_data_id])]\n DTHH = OwEs(data_format=vu2q.NGEN_GEOJSON_HYDROFABRIC, discrete_restrictions=yOsB)\n ...
[ "0.7100639", "0.66819", "0.6378112", "0.61715674", "0.6142692", "0.5281486", "0.5260798", "0.50124", "0.4985995", "0.49736303", "0.49723744", "0.49531448", "0.49437967", "0.4938578", "0.4931926", "0.49203426", "0.49138469", "0.48987493", "0.48796716", "0.4870465", "0.48703337...
0.83387774
0
The index value of ``data_id`` to uniquely identify sets of realization config data that are otherwise similar. For example, two realization configs may apply to the same time and catchments, but be very different. The nature of the differences is not necessarily even possible to define generally, and certainly not thr...
def hY1T(YKHO) -> str: return YKHO.config_data_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c55i(YKHO) -> str:\n return YKHO._dataset_id", "def msbF(YKHO) -> str:\n return YKHO.__data_set_id", "def smJ7(YKHO, mWFP):\n or8S = -1\n if type(mWFP) is str:\n xjDy = YKHO.data_list()\n if mWFP in xjDy:\n or8S = xjDy.index(mWFP)\n return or8S", "def c55i(YKHO) ->...
[ "0.5906265", "0.58740586", "0.58686537", "0.58409125", "0.58409125", "0.58409125", "0.58183324", "0.5810139", "0.573511", "0.5713862", "0.56794393", "0.5643375", "0.5568151", "0.5507479", "0.5465332", "0.541492", "0.5406673", "0.5343021", "0.53146416", "0.52843493", "0.528049...
0.7141302
0
A requirement object defining of the realization configuration data needed to execute this request. Returns DataRequirement A requirement object defining of the realization configuration data needed to execute this request.
def IKTd(YKHO) -> cb0j: if YKHO._realization_cfg_data_requirement is None: Mtkw = [YKHO._gen_catchments_domain_restriction(), SKed(variable='data_id', values=[YKHO.realization_config_data_id])] g1Kr = OwEs(data_format=vu2q.NGEN_REALIZATION_CONFIG, continuous_restrictions=[YKHO.time_range], discrete_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0pN(YKHO) -> cb0j:\n if YKHO._hydrofabric_data_requirement is None:\n yOsB = [SKed(variable='hydrofabric_id', values=[YKHO._hydrofabric_uid]), SKed(variable='data_id', values=[YKHO._hydrofabric_data_id])]\n DTHH = OwEs(data_format=vu2q.NGEN_GEOJSON_HYDROFABRIC, discrete_restrictions=yOsB)\n ...
[ "0.72139984", "0.7128334", "0.7094481", "0.6395429", "0.62972754", "0.59896845", "0.57582146", "0.5580275", "0.54701006", "0.5332864", "0.53096044", "0.5291085", "0.52241236", "0.51713294", "0.5163806", "0.5134517", "0.5063458", "0.50514644", "0.50514644", "0.5027643", "0.502...
0.78063565
0
The time range for the requested model execution. Returns TimeRange The time range for the requested model execution.
def iBFX(YKHO) -> dg3y: return YKHO._time_range
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zpIh(YKHO):\n return wYcQ(YKHO.get_time())", "def iBFX(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'time_range')", "def iBFX(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'time_range')", "def iBFX(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'time_range')", ...
[ "0.7430795", "0.73937994", "0.7353925", "0.7353925", "0.71835655", "0.6716699", "0.6540193", "0.6520157", "0.63728553", "0.6252574", "0.6242362", "0.6106308", "0.60347825", "0.60261065", "0.6023762", "0.59920084", "0.58939207", "0.5864677", "0.5770926", "0.5726301", "0.571052...
0.78510463
0
Get a list of models in model zoo.
def DLGb(Wc9F: int=1): Wc9F = str(Wc9F) YXxD = 'Batch {} is not yet optimized.'.format(Wc9F) assert Wc9F in GEfc.keys(), YXxD return list(GEfc[Wc9F].keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YSnU(YKHO) -> x1iM:\n FYrf = list(YKHO.meta.name)\n print(FYrf)\n return FYrf", "def DLGb():\n with open(Hy7s.path.join(Szm_, 'models.json'), 'r') as SkYi:\n zk3X = qQXR.load(SkYi)\n return zk3X", "def FYrf(YKHO):\n return YKHO.config.models()", "def EQMx(YKHO):\n wvEv = idzt(...
[ "0.6992904", "0.67451334", "0.6694033", "0.66928583", "0.6624113", "0.65980107", "0.6594745", "0.6587399", "0.6558596", "0.65421385", "0.65250117", "0.6492301", "0.64787614", "0.6434414", "0.63837016", "0.6349985", "0.6349985", "0.632745", "0.6306835", "0.6291476", "0.6265060...
0.5531619
76
Returns semester start date in form yyyydd i.e. 201208, 201601
def nUNa(YKHO): return '%d%02d' % (YKHO.year, YKHO.term)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUNa(lO87, x0eS):\n kepv = _c1T(lO87, x0eS, 1).strftime('%Y-%m-%d')\n return kepv", "def Kx9c(YKHO):\n return qcWV.date(2016, 1, 4)", "def uwR8(Csk6):\n return _c1T(Csk6.year, Csk6.month, 1)", "def ROpO(oxOY):\n return qcWV.strptime(oxOY, '%B %Y').strftime('%Y-%m-%d')", "def tK9m(YKHO):\...
[ "0.7199725", "0.7079765", "0.6590601", "0.65203524", "0.6392222", "0.63878745", "0.63366205", "0.62193346", "0.621797", "0.6200114", "0.6161047", "0.6161047", "0.61384165", "0.61282766", "0.6126273", "0.61065817", "0.607368", "0.6072346", "0.60117626", "0.59925467", "0.598995...
0.7532529
0
Returns true if course has student
def hjwB(YKHO, CBIr, keBP=True): return CBIr.is_superuser and keBP or len(YKHO.students.filter(id=CBIr.id)) > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brCH(YKHO):\n return bool(LZrk[ZCV6] & YKHO.roles)", "def Ettf():\n return osSi('uw_affiliation_extension-student')", "def CJP3(YKHO):\n VLXD = G8qb.query.filter_by(class_id=YKHO.id).first()\n iEVg = None\n iUvc = None\n if YKHO.student_on_class != None:\n iEVg = G8qb.query.filter_...
[ "0.71209717", "0.7019764", "0.6961854", "0.6958923", "0.6924965", "0.69076675", "0.69059694", "0.6788597", "0.6757258", "0.6672615", "0.667184", "0.6642762", "0.65137285", "0.64584666", "0.64223605", "0.6378117", "0.636403", "0.6346648", "0.62971133", "0.62501436", "0.6223687...
0.6727482
9
Returns true if user is a student, instructor, or TA in the course
def BYM_(YKHO, CBIr, keBP=True): return YKHO.has_student(CBIr, keBP) or YKHO.has_ta(CBIr, False) or YKHO.has_instructor(CBIr, False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z9x6():\n return osSi('uw_affiliation_tacoma-student')", "def ThNd(YKHO):\n return bool(LZrk[rFtz] & YKHO.roles)", "def kzJU(Zgw8):\n from .assignment_group import AssignmentGroup\n return AssignmentGroup.published_where_is_candidate(Zgw8).exists()", "def hl0A(Emd4, uJjO, S7Jr):\n return E...
[ "0.72055805", "0.71850854", "0.69868726", "0.69824886", "0.6963467", "0.68859684", "0.6807471", "0.6781184", "0.6743564", "0.66523254", "0.65662855", "0.6482974", "0.64740014", "0.6287183", "0.6237474", "0.6221776", "0.6206598", "0.61709535", "0.6169735", "0.61420554", "0.614...
0.63123786
13
Returns the filename of the submission. Use get_directory() to get the path to this file.
def yFjF(YKHO): for eHNT in Hy7s.listdir(YKHO.get_directory()): if Hy7s.path.isfile(Hy7s.path.join(YKHO.get_directory(), eHNT)): return eHNT return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g_2H(YKHO):\n return str(YKHO.get_file())", "def yFjF(YKHO):\n return YKHO.filename", "def yFjF(YKHO) -> str:\n return YKHO._filename", "def g_2H(YKHO):\n return YKHO.file_name", "def yFjF(YKHO):\n return YKHO._filename", "def yFjF(YKHO):\n return YKHO.__filename", "def g_2H(YKHO)...
[ "0.7730678", "0.7619063", "0.76091427", "0.75316316", "0.7490227", "0.7489141", "0.7477875", "0.7447406", "0.74409646", "0.74136066", "0.74056846", "0.73689955", "0.73390937", "0.73288506", "0.7304497", "0.7289233", "0.72790104", "0.72790104", "0.72790104", "0.72790104", "0.7...
0.7256689
27
Import data from JSON file. File must contain single dictionary on single row for each song.
def V9dS(Ux0P, F1V2=True): with open(Ux0P) as apum: for aPtQ in apum.readlines(): r__M().insert(_1kr(aPtQ)) BzJF = [('title', tc7y), ('artist', tc7y)] if F1V2: r__M().create_index(BzJF, default_language='none')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Sqs(DpUl, VqRE):\n jQ3Z = rLdf.read_json(VqRE, lines=True)\n QRIA = jQ3Z[['song_id', 'title', 'artist_id', 'year', 'duration']].values[0]\n DpUl.execute(G0Dc, QRIA)\n rLJz = jQ3Z[['artist_id', 'artist_name', 'artist_location', 'artist_latitude', 'artist_longitude']].values[0]\n DpUl.execute(Xcx...
[ "0.7096663", "0.70849717", "0.700879", "0.69973725", "0.69747627", "0.69136375", "0.69119555", "0.6850115", "0.68446517", "0.6830215", "0.682027", "0.67841035", "0.6691523", "0.6655029", "0.6637783", "0.66297126", "0.6580391", "0.6568912", "0.6565538", "0.6552895", "0.6546255...
0.7611846
0
Returns an array of zeros with the same shape and type as the input. It's also a scalar if the input is a scalar.
def sbx9(WKvO): return WKvO * 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WrHL(yDqo):\n return oyIN.zeros((), dtype=yDqo)", "def WrHL(yDqo):\n return oyIN.zeros((), dtype=yDqo)", "def VNqG(ROpF, yDqo=None):\n return vBWh(ROpF, 0, yDqo)", "def bfyX(pKvt) -> oyIN.ndarray:\n return oyIN.array([None, pKvt], dtype=object)[[1]].reshape([])", "def VNqG(ROpF, yDqo=None):...
[ "0.7685601", "0.7685601", "0.74982744", "0.74880177", "0.74315387", "0.74073005", "0.7350435", "0.73385525", "0.731737", "0.72537047", "0.7251449", "0.7223648", "0.71793944", "0.7177599", "0.7144379", "0.713774", "0.710387", "0.710387", "0.7048264", "0.6991514", "0.69805145",...
0.66374564
38
Returns an array of ones with the same shape and type as the input. It's also a scalar if the input is a scalar.
def a0GJ(WKvO): return sbx9(WKvO) + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PMWp(WKvO):\n if WKvO.get_shape().is_fully_defined():\n return _WqI.ones(WKvO.get_shape().as_list(), dtype=WKvO.dtype)\n return _WqI.ones_like(WKvO)", "def pSfY(ROpF, yDqo=None):\n raise NotImplementedError", "def pSfY(ROpF, yDqo=None):\n return vBWh(ROpF, 1, yDqo)", "def pSfY(ROpF, yD...
[ "0.7662596", "0.76247525", "0.7460353", "0.73407924", "0.71340084", "0.70367914", "0.70091367", "0.69979167", "0.69794905", "0.69794905", "0.690926", "0.6881283", "0.6806493", "0.6736797", "0.6678277", "0.6658882", "0.66454256", "0.66448563", "0.65974736", "0.65550995", "0.64...
0.5434131
77
Stops computing gradients during back propagation.
def iUcx(WKvO): wdfw().prog.current_ast_builder().stop_grad(WKvO.snode.ptr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZD5u(YKHO, ICX2):\n pass", "def ZD5u(YKHO, ICX2):\n pass", "def ZD5u(YKHO, ICX2):\n raise NotImplementedError()", "def fIbT(YKHO, Ro40):\n pass", "def ZD5u(YKHO):\n ICX2 = MrDr\n return ICX2", "def ZD5u(YKHO):\n ICX2 = MrDr\n return ICX2", "def u97B(YKHO):\n YKHO.loss_G.b...
[ "0.7607569", "0.7607569", "0.73023933", "0.7051164", "0.70306116", "0.70306116", "0.6847789", "0.68288726", "0.6790999", "0.6790999", "0.6720263", "0.6717395", "0.66867167", "0.6658791", "0.6633585", "0.66208655", "0.66191477", "0.66122675", "0.65764815", "0.654124", "0.65407...
0.6838095
7
Converts a datetime to some arbitrary and unspecified format appropriate for putting in a query and roundtripping. This format happens to be a UTC Unix timestamp with fractional seconds. The returned value is a string, to avoid stupid float weirdness.
def mX9H(JRYC): E3oo = XbVV(JRYC.timetuple()) return u'{whole}.{part:06d}'.format(whole=E3oo, part=JRYC.microsecond)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLAQ(JRYC):\n return JRYC.replace(microsecond=0).isoformat()", "def hLAQ(JRYC: Union[str, datetime]) -> str:\n if isinstance(JRYC, qcWV):\n JRYC = JRYC.replace(tzinfo=rIAI.utc).isoformat(' ').replace('+00:00', 'Z')\n return JRYC", "def hLAQ(ITS7):\n return '{hour}:{min}:{second}:{millise...
[ "0.77046627", "0.7150771", "0.69562626", "0.6737727", "0.66724247", "0.66338336", "0.66338336", "0.66292375", "0.65687037", "0.65685", "0.65478057", "0.6525653", "0.6518266", "0.65135354", "0.64929557", "0.6475553", "0.6471868", "0.6455217", "0.6453492", "0.64129233", "0.6392...
0.6124532
41
Returns the name of the security group from its id
def wMWV(qFXZ, cuiw): return cuiw.resource('ec2').SecurityGroup(qFXZ).group_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VxmC(cUW3, Ns3P):\n mWFP = ''\n try:\n ANtU = cUW3.SecurityGroup(Ns3P)\n mWFP = ANtU.group_name\n except:\n mWFP = Ns3P\n return mWFP", "def AxQu(zZ1q):\n return 'Group name'", "def XZ_F(YKHO, hE03):\n uOe2 = YKHO.table.query.filter_by(group_id=hE03).first()\n retu...
[ "0.7855197", "0.7839829", "0.77106595", "0.7545373", "0.7477008", "0.7305087", "0.72627914", "0.72627914", "0.7200689", "0.7188735", "0.7117418", "0.7078469", "0.7077535", "0.7068865", "0.7068865", "0.697779", "0.697779", "0.6952421", "0.69315714", "0.69315714", "0.69169134",...
0.70908403
11
A unicode aware version of urllib.unquote. Take `str` value previously obtained by `unicode_quote`.
def ZTra(BWXx): return rtow(BWXx).decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tnoA(KCHu, tZ2K='utf-8'):\n return uRlK.unquote(KCHu).decode(tZ2K)", "def tnoA(zZcM, tZ2K='utf-8'):\n return uRlK.unquote(zZcM).decode(tZ2K)", "def rtow(j8eK):\n j8eK = j8eK.encode('ascii')\n P5wc = XZu5(j8eK)\n return P5wc.decode('utf-8')", "def sUVX(vIwR, p4k2='utf-8', UAju='replace', oV...
[ "0.81841207", "0.75159836", "0.7121042", "0.704444", "0.7036177", "0.6865811", "0.65967625", "0.653975", "0.64833635", "0.6470386", "0.63675755", "0.63546556", "0.6278126", "0.61924624", "0.61790395", "0.61526614", "0.6122402", "0.6085202", "0.6066467", "0.60517645", "0.60416...
0.78107417
1
Create an annotated confusion matrix by adding label annotations and formatting to sklearn's `confusion_matrix`.
def xb9i(dmd0, bYxV): WBPg = sorted(list(set(dmd0 + bYxV))) SppC = YsYU(dmd0, bYxV, labels=WBPg) u_fu = [WBPg[YRbF] + '\t' + str(rdlD) for YRbF, rdlD in enumerate(SppC)] hGN5 = '\t' + ' '.join(WBPg) + '\n' + '\n'.join(u_fu) return hGN5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RRX_(H96n, aTLP, SoKf):\n Crrw = list(set(H96n))\n fHMk = [CLNC + ' (' + str(vC9B) + ')' for CLNC, vC9B in zip(SoKf, Crrw)]\n Bcwd = YsYU(H96n, aTLP, labels=Crrw)\n LZpg = QrM1.figure(figsize=(20, 20))\n aNZO = LZpg.add_subplot(111)\n k13D = aNZO.matshow(Bcwd)\n QrM1.title('Confusion matri...
[ "0.74431473", "0.73193806", "0.7093408", "0.7092514", "0.70693564", "0.706353", "0.7062197", "0.7057164", "0.7053998", "0.70467997", "0.70467997", "0.70467997", "0.70467997", "0.70467997", "0.70467997", "0.70426863", "0.70396966", "0.7038413", "0.7036621", "0.703483", "0.7033...
0.7482808
0
A generator of filter_size x filter_size patches from the input images
def tMiA(YKHO, LNo8): H2v2, TVTK = LNo8.shape YKHO.current_image = LNo8 XHuv, oRHo = oLRV(H2v2, TVTK, YKHO.filter_size, YKHO.padding, YKHO.stride) for r845 in range(XHuv): for G1Hx in range(oRHo): tMiA = LNo8[r845 * YKHO.stride:r845 * YKHO.stride + YKHO.filter_size, G1Hx * YKHO.strid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UehI(eK5b, FTrt=128, kho3=1):\n for xkjI, oGem in eK5b:\n e5N9 = []\n kcsN = []\n for YRbF in range(0, xkjI.shape[0]):\n oWOB = v1NS(xkjI[YRbF], (FTrt, FTrt, xkjI[YRbF].shape[-1]), step=FTrt)\n VR7D = oWOB.reshape(-1, *oWOB.shape[-3:])\n e5N9.append(VR7D...
[ "0.7352859", "0.6926747", "0.67323333", "0.66842306", "0.6676392", "0.6472619", "0.6422902", "0.63768595", "0.63502824", "0.6283506", "0.6246085", "0.62162703", "0.61970764", "0.6156886", "0.6155508", "0.61371356", "0.61209923", "0.6101028", "0.6055743", "0.60552937", "0.6010...
0.74587655
0
Initialize or reset the instance to yield a new iterator from zero.
def SiRx(YKHO) -> None: YKHO.is_run = False YKHO.env_step = 0 if YKHO.resume_from_log: YKHO.start_epoch, YKHO.env_step, YKHO.gradient_step = YKHO.logger.restore_data() YKHO.last_rew, YKHO.last_len = (0.0, 0) YKHO.start_time = ITS7.time() if YKHO.train_collector is not None: YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n YKHO.iterator = 0\n return YKHO", "def Vs4Q(YKHO):\n YKHO.iterator = 0\n return YKHO", "def Vs4Q(YKHO):\n YKHO.iterator = 0\n return YKHO", "def Vs4Q(YKHO):\n YKHO.iterator = 0\n return YKHO", "def Vs4Q(YKHO):\n YKHO.count = 0\n return YKHO", "def Vs4Q(YKHO...
[ "0.77757174", "0.77757174", "0.77757174", "0.77757174", "0.7275725", "0.72478557", "0.72478557", "0.72478557", "0.721383", "0.7157337", "0.71496683", "0.6947955", "0.6924827", "0.68129325", "0.68129325", "0.6733835", "0.6729113", "0.671245", "0.666939", "0.6666317", "0.655417...
0.0
-1
Given transitions, returns a time stacked `Trajectory`. The tensors of the produced `Trajectory` will have a time dimension added (i.e., a shape of `[B, T, ...]` where T = 2 in this case). The `Trajectory` can be used when calling `agent.train()` or passed directly to `to_transition` without the need for a `next_trajec...
def mu0s(XA7I, oOoW, Z3m7): niqP = Hydg.from_transition(XA7I, oOoW, Z3m7) PvZS = Hydg.from_transition(Z3m7, oOoW, Z3m7) return ZylS.nest.map_structure(lambda WKvO, LVAh: ZylS.stack([WKvO, LVAh], axis=1), niqP, PvZS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hydg(YKHO, QTBn, Kt_s=1, YUjG=200):\n QTBn = QTBn.to(begE)\n a1PO = ht2j.linspace(0, Kt_s, YUjG).to(begE)\n dlZb = YKHO.model_of_dyn_system.trajectory(QTBn, a1PO)\n return dlZb.detach().cpu()[:, 0, :]", "def WUxq(sequ, TfKw, begv=0):\n Q6uT = VNqG(TfKw)\n ZbOB = begv\n AU9z = sequ.shape[...
[ "0.55376565", "0.54614097", "0.54272187", "0.54254943", "0.53131664", "0.5288642", "0.5252784", "0.51649725", "0.5123772", "0.50909686", "0.50837016", "0.5077783", "0.5075004", "0.50670207", "0.5064855", "0.5044619", "0.50440705", "0.5040611", "0.503416", "0.4994389", "0.4973...
0.7769187
0
Get the challenge code as part of the request.
def XHkI(YKHO): return YKHO._ping_data_raw['challenge']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tkO8(YKHO):\n return YKHO._challenge_id", "def z1BW(YKHO, YEnM):\n return YEnM.challenge_phase.challenge", "def e6Mp(YKHO, nPrm) -> int:\n return int(YKHO._request_code)", "def ksg3(YKHO):\n return None", "def xyNV(YKHO):\n return YKHO._challenge_name", "def z1BW(YKHO, YEnM):\n retu...
[ "0.6763375", "0.6594989", "0.65758306", "0.6562436", "0.6436856", "0.6429208", "0.64251035", "0.6215292", "0.6205906", "0.601385", "0.5962471", "0.59252965", "0.59252965", "0.59252965", "0.59252965", "0.59252965", "0.59252965", "0.59252965", "0.59252965", "0.59133214", "0.580...
0.638079
7
Store those words only in cadidate_pos
def o9hH(YKHO, A97Q, Exp3, LSh8): Rhv4 = [] for _dZy in A97Q.sents: P3xj = [] for eOtH in _dZy: if eOtH.pos_ in Exp3 and eOtH.is_stop is False: if LSh8 is True: P3xj.append(eOtH.text.lower()) else: P3xj.append(eO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q9B3(YKHO):\n vC9B = len(YKHO._words)\n for YRbF in range(vC9B):\n YKHO._words[YRbF]['pos'] = kdPk([YKHO._words[YRbF]['word']])[0][1]", "def MGIz(YKHO):\n pass", "def a3lQ(YKHO, Novh):\n Novh = Novh.strip()\n vwCE = []\n Hn_9 = []\n Wb7G = Hwkv.posseg.cut(Novh, HMM=False)\n f...
[ "0.6313715", "0.6032558", "0.60120255", "0.5993958", "0.5989751", "0.5950847", "0.5927919", "0.57849723", "0.57830197", "0.57597053", "0.5696669", "0.56333035", "0.56061155", "0.5596007", "0.55601776", "0.55532134", "0.5547649", "0.552179", "0.55212325", "0.5519369", "0.55169...
0.6076473
1
Returns the operation type from the message.
def c_t8(oPhP): if oPhP == iSD8.QUERY: return 'QUERY' if oPhP == iSD8.DEPOSIT: return 'DEPOSIT' if oPhP == iSD8.WITHDRAW: return 'WITHDRAW'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MV0m(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'operation_type')", "def T3Ul(YKHO):\n return YKHO.op_type", "def Yyrw(YKHO, hTqE):\n evLG = YKHO.operations_map\n if not hTqE and len(evLG) == 1:\n return next(iter(evLG.values()))\n return evLG.get(hTqE)", "def Logs(YKH...
[ "0.7274859", "0.6981731", "0.6853061", "0.666931", "0.6561505", "0.6561505", "0.6552215", "0.65170413", "0.6507768", "0.64999974", "0.64732456", "0.6465173", "0.644767", "0.6362257", "0.63052267", "0.63052267", "0.63052267", "0.63052267", "0.63037723", "0.62938905", "0.629389...
0.5876898
33
Make a GET request to the OCUM API method with an optional filter.
def qhe0(YKHO, pmON, NArs={}): lWQw = 'https://{0}:{1}/rest/{2}'.format(YKHO.settings.api_host, YKHO.settings.api_port, pmON) geh0 = G4JS.get(lWQw, auth=(YKHO.settings.api_user, YKHO.settings.api_password), verify=YKHO.settings.verify_ssl, headers=YKHO.settings.headers, params=NArs) if not int(geh0.status_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QePW, gfr8, format=None):\n dUF5 = SwP_.objects.filter(sector=gfr8)\n ZMzz = B69r(dUF5, many=True)\n return oGir(data=ZMzz.data, status=jGRS.HTTP_200_OK)", "def NMoC(YKHO, *qIxc, **YSA3):\n YSA3['method'] = 'GET'\n return YKHO.open(*qIxc, **YSA3)", "def kcRE(YKHO, NKcE, xAU6=None)...
[ "0.5556942", "0.55412465", "0.54999053", "0.5495995", "0.5487847", "0.5435009", "0.5430004", "0.5428564", "0.5423031", "0.54207397", "0.54108864", "0.54008585", "0.540083", "0.540083", "0.540083", "0.540083", "0.540083", "0.540083", "0.540083", "0.540083", "0.540083", "0.54...
0.0
-1
The primary view of the IMDProfileXBlock.
def IZ1U(YKHO, QpfX=None): QpfX = {'student_view_data': qQXR.dumps(YKHO.student_view_data()), 'id': YKHO.location.name.replace('.', '_')} if YKHO.show_staff_ui: QpfX['show_staff_ui'] = True YKHO.update_staff_debug_context(QpfX) _R2e = YKHO.render_template('static/html/imdprofile.html', QpfX)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tTee(YKHO, O4Fb):\n return Rv6M(YKHO, O4Fb)", "def Fo4j(YKHO):\n return YKHO.parent", "def HYC1(YKHO):\n return YKHO._current_block[0]", "def x8Wr(YKHO, XkN1, QpfX):\n return eFo5(YKHO.FRAG_CONTENT)", "def Lm_X(YKHO):\n return YKHO._block", "def lBnh(YKHO):\n YKHO.outline.visit()\n ...
[ "0.5602022", "0.5488123", "0.54387707", "0.54120886", "0.5379465", "0.5235485", "0.5170562", "0.5122266", "0.5102193", "0.5097705", "0.5094012", "0.50916034", "0.50834495", "0.50711226", "0.5043043", "0.50425315", "0.5035233", "0.501403", "0.50133514", "0.497389", "0.49722967...
0.4968459
21
Check if user is course staff.
def hKBB(YKHO): return getattr(YKHO.xmodule_runtime, 'user_is_staff', False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO) -> bool:\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n retu...
[ "0.7812888", "0.7812888", "0.7812888", "0.77043736", "0.75808585", "0.74982476", "0.74982476", "0.74835616", "0.7433671", "0.7433608", "0.7419011", "0.7370185", "0.7277466", "0.7176093", "0.7100349", "0.70355904", "0.69785076", "0.6971723", "0.69194937", "0.68560183", "0.6839...
0.8251043
0
Returns True if current user is staff and not in studio.
def ufJA(YKHO): return YKHO.is_course_staff and (not YKHO.in_studio_preview)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO) -> bool:\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n retu...
[ "0.79906446", "0.78967124", "0.7875991", "0.7861846", "0.7861846", "0.7861846", "0.78592956", "0.78592956", "0.76533175", "0.7475163", "0.7475163", "0.74568665", "0.7451172", "0.7321006", "0.7252022", "0.70269454", "0.702485", "0.6869117", "0.68188494", "0.67960364", "0.67743...
0.7366562
13
Find out equality of two SQL items.
def tHvF(Hq2U, uHP7): YS4H = isinstance(Hq2U, (list, tuple)) neyL = isinstance(uHP7, (list, tuple)) if not YS4H: Hq2U = (Hq2U,) if not neyL: uHP7 = (uHP7,) if len(Hq2U) != len(uHP7): return False for JWEF, pTwA in zip(Hq2U, uHP7): JWEF, Su87 = KkrL(JWEF) p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LJaa(YKHO, zFur, JWEF, qtI5, pTwA):\n for rdlD in YKHO.get_query_results(zFur, JWEF):\n AX4T = rdlD[0]\n for rdlD in YKHO.get_query_results(qtI5, pTwA):\n D0IF = rdlD[0]\n YKHO.log.info('cmpEquals:: task: {}, value1: {}, value2: {}'.format(YKHO.task_id, str(AX4T), str(D0IF)))\n if AX4...
[ "0.72058487", "0.713274", "0.69424504", "0.6901998", "0.67543185", "0.6731083", "0.6669991", "0.66623795", "0.66196704", "0.6610867", "0.65645105", "0.6549154", "0.64819735", "0.6469222", "0.64510655", "0.6435281", "0.6398511", "0.6393961", "0.6382533", "0.63806325", "0.63656...
0.6470574
13
Constructs and returns the Resource specification for Job.
def ODe_(): return RvYX.ResourceSpec('transcoder.projects.locations.jobs', resource_name='job', jobsId=gov5(), projectsId=RvYX.DEFAULT_PROJECT_ATTRIBUTE_CONFIG, locationsId=haZm(), disable_auto_completers=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upaU(YKHO, rjee: Text, ibS3: Dict[Text, Any], aJHm: Optional[Dict[Text, Text]]=None) -> cuzp[I2jr, ImMB]:\n rzqr = {'display_name': rjee, 'job_spec': ibS3, 'labels': aJHm}\n return rzqr", "def upaU(YKHO, rjee: Text, ibS3: Dict[Text, Any], aJHm: Optional[Dict[Text, Text]]=None) -> cuzp[I2jr, ImMB]:\n ...
[ "0.6955378", "0.69095653", "0.6903996", "0.6666785", "0.65318686", "0.65144813", "0.64716077", "0.6461381", "0.64574796", "0.6406098", "0.6383242", "0.6349475", "0.62298", "0.62255585", "0.6091057", "0.596617", "0.59617835", "0.59389067", "0.5914529", "0.5883165", "0.58783543...
0.83145744
0
Constructs and returns the Location Resource Argument.
def KhFB(wvEv): return Bx3Z.ConceptParser.ForResource('--location', Rk39(), 'Transcoder location', required=True).AddToParser(wvEv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ALTw(YKHO, Rci7: str) -> _JMH:\n return _JMH({'location': Rci7, '': 'Location'})", "def FIMM(Ro_8, *, Rci7: pulumi.Input[str]):\n qe4Y.set(Ro_8, 'location', Rci7)", "def FIMM(YKHO, Rci7):\n YKHO.location = Rci7", "def KhFB(wvEv, b7IC):\n Bx3Z.ConceptParser.ForResource('--location', Rk39(), 'G...
[ "0.7093596", "0.6935495", "0.69322425", "0.67237437", "0.6674017", "0.65902025", "0.65902025", "0.65902025", "0.6464628", "0.6395458", "0.6347191", "0.6324593", "0.6319056", "0.63185483", "0.6302648", "0.6290051", "0.6282335", "0.6282335", "0.6282335", "0.6282335", "0.6282335...
0.70098424
1
Constructs and returns the Job Resource Argument.
def uMxg(wvEv): return Bx3Z.ConceptParser.ForResource('job_name', ODe_(), 'Transcoder Job name', required=True).AddToParser(wvEv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, jth9: Optional[pulumi.Input[pulumi.InputType['JobCopyArgs']]]=None, JDhM: Optional[pulumi.Input[pulumi.InputType['JobExtractArgs']]]=None, rjee: Optional[pulumi.Input[str]]=None, L4_m: Optional[pulumi.Input[str]]=None, Crrw: Optional[pulumi.Inp...
[ "0.69206184", "0.6386816", "0.6372518", "0.6289271", "0.6259405", "0.6192683", "0.6158288", "0.6158288", "0.61329836", "0.61063856", "0.6102167", "0.610027", "0.60962725", "0.6088601", "0.6079827", "0.6079358", "0.6063962", "0.60390806", "0.6031915", "0.6007343", "0.59889936"...
0.6779319
1
Constructs and returns Job Template Resource Argument.
def h9vA(wvEv): return Bx3Z.ConceptParser.ForResource('template_id', h59H(), 'Transcoder job template id', required=True).AddToParser(wvEv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: ProvisioningTemplateArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIxc: WorkbookTemplateArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, jth9: Option...
[ "0.6476952", "0.6341375", "0.62523276", "0.6168798", "0.61044526", "0.60185146", "0.6010929", "0.58726627", "0.5866239", "0.5838961", "0.5822505", "0.5817104", "0.58144724", "0.5778014", "0.57233566", "0.57186306", "0.5715411", "0.57138664", "0.57138664", "0.5690226", "0.5680...
0.6865925
0
Return the formal charge of the atom. Returns
def JJVa(YKHO): return YKHO._charge
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVVj(YKHO, RR8p):\n if 'charges' in YKHO.results:\n return YKHO.results['charges']\n else:\n return None", "def Fehu(YKHO):\n return _VfD.Species_getCharge(YKHO)", "def Fehu(YKHO):\n return _VfD.FbcSpeciesPlugin_getCharge(YKHO)", "def WJkG(YKHO):\n return YKHO._charge", "de...
[ "0.65921676", "0.6480362", "0.6326302", "0.6322137", "0.62564534", "0.611431", "0.605492", "0.59702843", "0.58818704", "0.57437885", "0.5686103", "0.56282187", "0.5620057", "0.5620057", "0.56146234", "0.56070817", "0.55312276", "0.5499543", "0.5479982", "0.54717684", "0.54691...
0.5953874
8