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
Return the external surface area of the pellet
def cxVB(YKHO, DhFM, JXDU): _P6x = 6.0 / (JXDU * DhFM) return _P6x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B7Mv(YKHO):\n return YKHO._surface_area", "def ivpi(YKHO) -> float:\n return YKHO.area()", "def tGq1(YKHO):\n tGq1 = YKHO.sideLength ** 2 * 6\n return tGq1", "def B7Mv(YKHO) -> float:\n return 4 * oyIN.pi * YKHO.radius ** 2", "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_area...
[ "0.7772343", "0.7727901", "0.7684873", "0.74368155", "0.7350132", "0.70398146", "0.7031911", "0.6880375", "0.6826012", "0.67985076", "0.6782684", "0.6760408", "0.6744692", "0.6731239", "0.66464466", "0.6613434", "0.66047347", "0.6579136", "0.65604836", "0.654483", "0.6541671"...
0.6580192
17
Remove protected fields from object (dict or list).
def bipm(YEnM): if isinstance(YEnM, list): return [bipm(ZfUD) for ZfUD in YEnM] if isinstance(YEnM, dict): guY0 = {H5ew: bipm(BWXx) for H5ew, BWXx in YEnM.items() if not H5ew.startswith('_')} return guY0 return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLDW(jxGD, hkxX):\n for hkS8 in jxGD.__protected_attributes__:\n if hkS8 in hkxX:\n del hkxX[hkS8]", "def IZ4H(YKHO, nPrm, fzsM, **B2fa):\n OdMx = ['resource_type']\n for Jyyj in OdMx:\n if Jyyj in nPrm:\n nPrm.pop(Jyyj)\n return nPrm", "def qsj2(YKHO):\n ...
[ "0.73466676", "0.6300492", "0.6233149", "0.6173888", "0.6129625", "0.6091405", "0.6074838", "0.59453696", "0.59296423", "0.57935745", "0.5789426", "0.5781288", "0.5778098", "0.57723516", "0.57266027", "0.57174355", "0.5685181", "0.5677998", "0.5615463", "0.5601841", "0.560116...
0.6255143
2
Function takes in a list of ints, compares them to a single int and returns the index value at which the list encounters a value greater than, or equal to, the value of interest.
def zXyc(qQiX, XfE8): try: for LihS in qQiX: if LihS >= XfE8: Vo7f = qQiX.index(LihS) return Vo7f except ValueError: return 'None. Try a value contained within the list.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jZnZ(wEf2, yv6U):\n d6pt = 0\n for ZfUD in yv6U:\n if ZfUD > wEf2:\n return d6pt\n d6pt += 1\n return d6pt - 1", "def i9jg(list, FGW3):\n for YRbF, U6D_ in enumerate(list):\n if U6D_ >= FGW3:\n return YRbF - 1", "def UR92(BWXx, bCES):\n if BWXx <= b...
[ "0.746532", "0.7328806", "0.7101292", "0.70529854", "0.70351714", "0.6980567", "0.6962992", "0.6925573", "0.68856275", "0.68856275", "0.6882159", "0.6855916", "0.6841852", "0.6802597", "0.6790609", "0.6789923", "0.6781714", "0.676327", "0.6739212", "0.66578895", "0.66387284",...
0.69324523
7
Function takes in a list of ints, compares them to a single int and returns the index value at which the list encounters a value greater than, or equal to, the value of interest.
def ZkJ9(qQiX, XfE8): try: for LihS in qQiX: if LihS <= XfE8: Vo7f = qQiX.index(LihS) return Vo7f except ValueError: return 'None. Try a value contained within the list.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jZnZ(wEf2, yv6U):\n d6pt = 0\n for ZfUD in yv6U:\n if ZfUD > wEf2:\n return d6pt\n d6pt += 1\n return d6pt - 1", "def i9jg(list, FGW3):\n for YRbF, U6D_ in enumerate(list):\n if U6D_ >= FGW3:\n return YRbF - 1", "def UR92(BWXx, bCES):\n if BWXx <= b...
[ "0.7464263", "0.7328147", "0.71001375", "0.70483917", "0.7034782", "0.6980818", "0.69644755", "0.69319695", "0.69241714", "0.6884466", "0.6884466", "0.6880314", "0.6854844", "0.6838808", "0.6803329", "0.6791891", "0.67863107", "0.67801815", "0.676073", "0.6659436", "0.6635483...
0.6737784
19
Visualizes input image, segmentation map and overlay view.
def QQJV(LNo8, _W71, bD7m, b2n0): QrM1.figure(figsize=(15, 5)) V0Tl = Klo7.GridSpec(1, 4, width_ratios=[6, 6, 6, 6]) QrM1.subplot(V0Tl[0]) QrM1.imshow(LNo8) QrM1.axis('off') QrM1.title('input image') QrM1.subplot(V0Tl[1]) nUnz = VC8e(_W71).astype(oyIN.uint8) nUnz = oyIN.where(nUnz !=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QQJV(LNo8, _W71):\n QrM1.figure(figsize=(15, 5))\n V0Tl = Klo7.GridSpec(1, 4, width_ratios=[6, 6, 6, 1])\n QrM1.subplot(V0Tl[0])\n QrM1.imshow(LNo8)\n QrM1.axis('off')\n QrM1.title('input image')\n QrM1.subplot(V0Tl[1])\n nUnz = VC8e(_W71).astype(oyIN.uint8)\n QrM1.imshow(nUnz)\n ...
[ "0.6990848", "0.6975726", "0.69608253", "0.6958933", "0.69530576", "0.687038", "0.68683505", "0.68540424", "0.6674954", "0.6645975", "0.66438764", "0.6633382", "0.6621907", "0.66138", "0.6602533", "0.6570072", "0.64627975", "0.645434", "0.6397248", "0.6393414", "0.63874334", ...
0.6665718
9
Convenience function for adding artifacts. The current artifact values are only an example. Should be manually edited for different worlds.
def GIqA(U6Xi): U6Xi[1, 0].add_artifact('Extinguisher@2.1 2.1 0.004 0 0 0') U6Xi[1, 14].add_artifact('Extinguisher@2.1 -2.1 0.004 -90 0 90') U6Xi[7, 6].add_artifact('Extinguisher@2.1 -3 0.004 0 0 0') U6Xi[7, 0].add_artifact('Extinguisher@-5 0 5.004 -90 0 300') U6Xi[8, 3].add_artifact('Phone@-2.1 3 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NAPt(qIxc, dIeA: Artifact):\n if dIeA.producing_task_name not in qIxc._artifacts:\n qIxc._artifacts[dIeA.producing_task_name] = []\n for l34Y in qIxc._artifacts[dIeA.producing_task_name]:\n if l34Y.name == dIeA.name:\n l34Y = dIeA\n return\n qIxc._artifacts[dIeA.pro...
[ "0.71734387", "0.693994", "0.6601801", "0.6547209", "0.6507709", "0.64302945", "0.6300197", "0.62197524", "0.6194309", "0.6169765", "0.6084588", "0.6057944", "0.5933684", "0.5890478", "0.5890478", "0.5890478", "0.5890478", "0.5825959", "0.5811488", "0.57861865", "0.5757485", ...
0.5741648
21
Add blockers to cells where appropriate
def Urjq(U6Xi): KeVO = (tG45.INTR, tG45.INTR_DEB) rsAY = {} for H5ew, V3h_ in U6Xi.items(): if V3h_ is None: rsAY[H5ew] = '' continue rdlD, fvDH = H5ew for avWu in V3h_.end_faces: if avWu == 0: WpSC = (rdlD, fvDH + 1) el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyHa(YKHO):\n CtTt = []\n if YKHO.state == 'resting' or YKHO.state == 'autoresting':\n CtTt.append(g74T.Rect(YKHO.rect.x, YKHO.rect.y, 32, 32))\n elif YKHO.state == 'moving' or YKHO.state == 'automoving':\n if YKHO.rect.x % 32 == 0:\n bdPN = YKHO.rect.y / float(32)\n ...
[ "0.6404504", "0.6141503", "0.58528054", "0.58091587", "0.57064474", "0.5655872", "0.56188303", "0.55906427", "0.5568895", "0.55570704", "0.5476506", "0.5420456", "0.54127187", "0.5404694", "0.5381889", "0.5364611", "0.5338512", "0.5329922", "0.52618676", "0.52474326", "0.5223...
0.7166973
0
Formats a date into a string representing the time of the date that can be included in a sentence. For example, time_format_time(datetime(hour=15, minute=14)) would
def ct8j(ITS7): ROt1, yVtz = (ITS7.hour, ITS7.minute) pQ4c = 'am' if ROt1 < 12 or ROt1 == 24 else 'pm' ROt1 = ROt1 % 12 if ROt1 == 0: ROt1 = 12 return ':t:' + str(ROt1) + ':' + str(yVtz).rjust(2, '0') + pQ4c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zb98(ppPa):\n return ppPa.strftime('%Y-%m-%d %H:%M:%S')", "def ct8j(a1PO):\n JRYC = GuLU(2000, 1, 1, a1PO.hour, a1PO.minute, a1PO.second)\n return V8MO.format(JRYC, 'H:i:s O')", "def pbww(_c1T, mZOz='23:59:59Z'):\n x8us = '%Y-%m-%dT{time}'.format(time=mZOz)\n return _c1T.strftime(x8us)", "...
[ "0.7485179", "0.74553084", "0.72549623", "0.71170133", "0.6866325", "0.6784639", "0.673472", "0.67283106", "0.6702937", "0.6700654", "0.6685791", "0.6673576", "0.6671937", "0.66485274", "0.6580954", "0.6576182", "0.6568013", "0.6566315", "0.65335995", "0.65332717", "0.6525373...
0.71403825
3
Formats a date into a string representing the month and day of the date that can be included in a sentence. For example, time_format_month_day(datetime(month=3, day=14)) would
def KLIi(ITS7): x0eS = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'][ITS7.month - 1] CjKC = str(ITS7.day) return x0eS + ' :n:' + CjKC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eDGe(_c1T):\n return _c1T.strftime(str(x0eS(_c1T.month)) + ' ' + str(_c1T.day) + ', %Y')", "def Aryd(Csk6, a1PO=None):\n if Csk6 is None:\n return ''\n FUjE = pbww(Csk6, 'EE ')\n FUjE += I1iR.fds(Csk6)\n if a1PO is not None:\n FUjE += ' (%s)' % a1PO.strftime(gCuF.SITE.time_format...
[ "0.730893", "0.72433585", "0.69493955", "0.6885138", "0.6871063", "0.6861595", "0.6826973", "0.67573786", "0.67381275", "0.67021096", "0.6673206", "0.6552698", "0.651386", "0.6494735", "0.64793587", "0.6458117", "0.6424651", "0.6418195", "0.64011586", "0.6395268", "0.6388781"...
0.7085073
2
Allow ``Users`` to authenticate by email in addition to username. Be very careful if you allow atsigns in usernames as this backend will treat anything containing an atsign as an email address. Proper measures should also be taken to ensure the uniqueness of email addresses as this is not done by Django.
def NLCy(YKHO, NtEF=None, jTXt=None): if '@' in NtEF: ccBJ = {'email__iexact': NtEF} else: ccBJ = {'username': NtEF} B5mP = [] for CBIr in mv1M.objects.filter(**ccBJ): if CBIr.check_password(jTXt): B5mP.append(CBIr) if len(B5mP) == 1: return B5mP[0] el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, BWXx):\n if not mv1M.objects.filter(email=BWXx).exists():\n raise IyFz.ValidationError('User with this email does not exist.')\n return BWXx", "def Bt7w(YKHO, BWXx):\n if not mv1M.objects.filter(email=BWXx).exists():\n raise IyFz.ValidationError('User with this email does no...
[ "0.6654309", "0.6654309", "0.6588625", "0.6501224", "0.64859474", "0.6483729", "0.6468589", "0.6450045", "0.644504", "0.64140254", "0.63905126", "0.63477093", "0.6333435", "0.6319003", "0.6318372", "0.6317752", "0.6293327", "0.62817657", "0.6279704", "0.6279704", "0.6258608",...
0.5999359
39
Residual BC network in Sonnet, equivalent to residual policy network.
def m3aR(vHPW, Yv2t=(256, 256, 256), c53g=1e-09, KVtr=False): ymBG = oyIN.prod(vHPW.shape, dtype=int) if Yv2t: Tlei = NXYx.Sequential([jPbk.batch_concat, UziS.LayerNormMLP([int(vC9B) for vC9B in Yv2t]), UziS.MultivariateNormalDiagHead(ymBG, init_scale=c53g, min_scale=1e-10)]) else: Tlei = NX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mBEO(YKHO, WKvO):\n MKlR = WKvO\n MKlR = YKHO.c1(MKlR)\n MKlR = YKHO.activation(MKlR)\n MKlR = YKHO.c2(MKlR)\n MKlR = vuvg.avg_pool2d(MKlR, 2)\n return MKlR", "def mBEO(YKHO, WKvO):\n MKlR = WKvO\n MKlR = YKHO.b1(MKlR)\n MKlR = YKHO.activation(MKlR)\n MKlR = YKHO._upsample_conv(...
[ "0.6312862", "0.61547756", "0.6074767", "0.60610604", "0.6033894", "0.59667933", "0.58933", "0.5885936", "0.58756286", "0.5851993", "0.5851631", "0.585133", "0.5827894", "0.58015406", "0.57912004", "0.578732", "0.57828486", "0.5782244", "0.5766512", "0.5764347", "0.5751768", ...
0.0
-1
Get the prediction as the class name from trained model.
def YEmv(C3ST, WKvO): C3ST.eval() WKvO = zubz(WKvO) amiz = C3ST(WKvO) bGrB, TZ9E = amiz.max(1) return TZ9E.data.cpu().numpy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return 'Predict model (classification map)'", "def YEmv(C3ST, EcVT):\n C3ST.eval()\n cCrA = C3ST.forward(EcVT)\n BBqg = cCrA.argmax(dim=-1)\n return BBqg", "def lhbG(YKHO, o3Uj):\n d6pt = oyIN.argmax(o3Uj)\n ELIW = {Ty9i: G1Hx for G1Hx, Ty9i in YKHO.class_index.items()}\n...
[ "0.71154845", "0.6432133", "0.63170284", "0.62641156", "0.62177086", "0.6201655", "0.61879426", "0.618479", "0.6184252", "0.6177435", "0.61362827", "0.6134041", "0.61289924", "0.6114938", "0.6113953", "0.6095195", "0.60919523", "0.6056852", "0.6020343", "0.6008221", "0.600307...
0.0
-1
Mutate given individuals with some probability
def gnk4(YKHO, xRqF): for DpUl in xRqF: if tuKI.random() < YKHO.mutation_probability: YKHO.op.mutate(DpUl['individual']) DpUl['fitness'] = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def awvB(YKHO, Q7Be):\n for YRbF in range(YKHO.number_of_transitions):\n ROpF = oyIN.shape(YKHO.weights[YRbF])\n zNig = YKHO.weights[YRbF].size\n _mSQ = YKHO.weights[YRbF].flatten()\n for r845 in range(len(_mSQ)):\n if oyIN.random.uniform(0, 1) < Q7Be:\n _mS...
[ "0.7026635", "0.69632226", "0.68725437", "0.66308904", "0.660976", "0.65976524", "0.65768373", "0.6520392", "0.6505777", "0.64324313", "0.63923305", "0.63178074", "0.629649", "0.6178893", "0.6173577", "0.61732405", "0.61587286", "0.61531484", "0.610842", "0.6084726", "0.60345...
0.7389409
0
Reduce BERT output to a single document embedding depending on pooling strategy.
def Vvg4(YKHO, TCvQ, OuMq: Optional[PoolingStrategy]=None): if OuMq is None: OuMq = YKHO.pooling_strategy if OuMq == lmIL.CLS: return TCvQ.last_hidden_state[:, 0, :] elif OuMq == lmIL.MEAN: return ht2j.mean(TCvQ.last_hidden_state[:, :, :], dim=1) elif OuMq == lmIL.CONCAT: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1PJ(ol4k, NwjJ, RxGZ, begE):\n Pha6 = RxGZ(ol4k['title'], ol4k['text'], truncation=True, padding='longest', return_tensors='pt')['input_ids']\n KTQ3 = NwjJ(Pha6.to(device=begE), return_dict=True).pooler_output\n return {'embeddings': KTQ3.detach().cpu().numpy()}", "def kBmF(YKHO):\n Pha6 = ZylS....
[ "0.5833425", "0.57311535", "0.5543497", "0.5352152", "0.534469", "0.5341967", "0.5270668", "0.5253457", "0.5247286", "0.5236442", "0.5152077", "0.5149258", "0.5139233", "0.5135812", "0.51014996", "0.50941086", "0.5090539", "0.5085752", "0.5066375", "0.50635767", "0.50415945",...
0.5964784
0
Initializes the weights of a model in place.
def sTi3(C3ST: nn.Module, d1bu: bool=False) -> None: for xqoZ in C3ST.parameters(): if xqoZ.dim() == 1: if d1bu: U78l.init.constant_(xqoZ, 0.01) else: U78l.init.constant_(xqoZ, 0) else: U78l.init.xavier_normal_(xqoZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(C3ST):\n ...", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or_model(YKHO._batch)", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vJuA(YKHO):\n raise ...
[ "0.8876495", "0.85241234", "0.8506802", "0.84758335", "0.84584105", "0.8176034", "0.8142834", "0.8037715", "0.8013496", "0.7943779", "0.7936361", "0.7913588", "0.7913588", "0.7913588", "0.7904003", "0.7854628", "0.7834638", "0.7821252", "0.7821252", "0.7812618", "0.77866375",...
0.72430027
68
Loads the IMDB train/test datasets from a folder path.
def VsAR(h_xa): print('... IMDB loading \t\n') nPrm = {} for lpha in ['train', 'test']: nPrm[lpha] = [] for El7S in ['neg', 'pos']: p1kx = 1 if El7S == 'pos' else 0 pmON = Hy7s.path.join(h_xa, lpha, El7S) gFok = Hy7s.listdir(pmON) for knSv in g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(pmON='./data/train'):\n print('Loading IMDB Data...')\n nPrm = []\n dir = Hy7s.path.dirname(xAKo)\n MVVZ = SC2F.glob(Hy7s.path.join(dir, pmON + '/pos/*'))\n MVVZ.extend(SC2F.glob(Hy7s.path.join(dir, pmON + '/neg/*')))\n print('Parsing %s files' % len(MVVZ))\n for YRbF, eHNT in enumera...
[ "0.73538184", "0.6987929", "0.6802678", "0.6745866", "0.6584659", "0.65519303", "0.6512844", "0.6485132", "0.6423616", "0.64122844", "0.6398312", "0.6391403", "0.6369378", "0.63365614", "0.6331135", "0.63181895", "0.6300329", "0.62802756", "0.6279003", "0.6268812", "0.625715"...
0.6989267
1
Red getter. Checks if square is red
def Z5Q9(YKHO): return YKHO._red
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B0z8(YKHO):\n return 'red' == YKHO.color", "def B0z8(YKHO):\n return YKHO.color == HRmL.RED", "def olbR(YKHO):\n return YKHO.__red", "def olbR(YKHO):\n return YKHO.__red", "def olbR(YKHO):\n return YKHO.__red", "def Z5Q9(YKHO, Qj8D):\n if YKHO.empty is True and YKHO.yellow is False ...
[ "0.7640465", "0.75501317", "0.74309474", "0.74309474", "0.74309474", "0.72531843", "0.7075118", "0.70237", "0.70123446", "0.69881505", "0.6782467", "0.6712581", "0.67056036", "0.6658898", "0.6605079", "0.66030437", "0.6562053", "0.65043294", "0.6460107", "0.6427777", "0.63875...
0.72696733
5
Yellow getter. Checks if square is yellow
def dfSN(YKHO): return YKHO._yellow
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dfSN(YKHO, Qj8D):\n if YKHO.empty is True and YKHO.yellow is False and (YKHO.red is False) and (Qj8D is True):\n YKHO._yellow = Qj8D\n YKHO.empty = False\n else:\n raise Hw2k('Square already full! ')", "def ySjh(YKHO, Fyji):\n bo34.debug(u'dark_square({})'.format(Fyji))\n rdl...
[ "0.74757993", "0.7121159", "0.6810648", "0.66788447", "0.6648902", "0.65221745", "0.6442578", "0.63538617", "0.63475204", "0.6290597", "0.6263106", "0.62426656", "0.62196636", "0.6194233", "0.6127966", "0.6127966", "0.6127966", "0.61247724", "0.611893", "0.60984313", "0.60911...
0.7448547
1
Gets the object_type of this AssetContractInformation. The concrete type of this complex type. The ObjectType property must be set explicitly by API clients when the type is ambiguous. In all other cases, the ObjectType is optional. The type is ambiguous when a managed object contains an array of nested documents, and ...
def vcaS(YKHO): return YKHO._object_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcaS(YKHO):\n if not YKHO.Flags & i8Ys.ACE_OBJECT_TYPE_PRESENT:\n return None\n return YKHO.ObjectType", "def vcaS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'object_type')", "def vcaS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'object_type')", "def vcaS(YKHO) -> str:\n return qe4...
[ "0.704317", "0.6918762", "0.6918762", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.68990946", "0.6839837", "...
0.70399654
3
Sets the object_type of this AssetContractInformation. The concrete type of this complex type. The ObjectType property must be set explicitly by API clients when the type is ambiguous. In all other cases, the ObjectType is optional. The type is ambiguous when a managed object contains an array of nested documents, and ...
def vcaS(YKHO, vcaS): YKHO._object_type = vcaS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcaS(YKHO, vcaS: str):\n BbPm = ['actuator', 'sensor', 'human', 'service', 'skill', 'task', 'action', 'healthdata', 'humanrole', 'message', 'permission', 'preference', 'property']\n if vcaS not in BbPm:\n raise ValueError('Invalid value for `object_type` ({0}), must be one of {1}'.format(vcaS, BbP...
[ "0.70631874", "0.5755296", "0.5719337", "0.5663921", "0.56559736", "0.56221604", "0.5571315", "0.5571315", "0.55533206", "0.54762447", "0.54762447", "0.54762447", "0.54762447", "0.54762447", "0.54762447", "0.54762447", "0.54762447", "0.54762447", "0.54762447", "0.54762447", "...
0.7454179
3
Gets the bill_to of this AssetContractInformation. BillTo address of listed for the contract.
def D7lp(YKHO): return YKHO._bill_to
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D7lp(YKHO, D7lp):\n YKHO._bill_to = D7lp", "def ttZQ(YKHO):\n return YKHO._bcc_recipients", "def Br5Q(YKHO) -> EDCT:\n return YKHO._to", "def zm7J(YKHO):\n Cqok = {'owner': TjNJ(YKHO.collection_name, YKHO._id)}\n return fExc.collection.find(Cqok)", "def fe4_(YKHO):\n return YKHO.__ban...
[ "0.5997391", "0.5492604", "0.5428989", "0.5316452", "0.52660596", "0.5259536", "0.5166623", "0.5036077", "0.5036077", "0.5036077", "0.5029496", "0.50041676", "0.4938565", "0.49068496", "0.48920402", "0.48642504", "0.4826543", "0.482006", "0.47910878", "0.47763047", "0.4727087...
0.7730394
0
Sets the bill_to of this AssetContractInformation. BillTo address of listed for the contract.
def D7lp(YKHO, D7lp): YKHO._bill_to = D7lp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D7lp(YKHO):\n return YKHO._bill_to", "def eEqM(YKHO, zx_I):\n YKHO.multiple_items_selection_from_kendo_dropdown(YKHO.bill_account_kendo_dropdown_locator, zx_I)\n uAXy = YKHO.wait().until(i1TH.element_to_be_clickable(YKHO.page_header_locator), 'page header locator not found before specified time out'...
[ "0.6622299", "0.5472589", "0.53921884", "0.5228487", "0.5146901", "0.5046447", "0.496614", "0.49546304", "0.49082676", "0.49066508", "0.48790646", "0.486337", "0.48164213", "0.4807188", "0.47398406", "0.47232476", "0.4711835", "0.47056603", "0.46733794", "0.46711746", "0.4666...
0.8090133
0
Gets the bill_to_global_ultimate of this AssetContractInformation. BillToGlobalUltimate information listed in the contract.
def Ri9I(YKHO): return YKHO._bill_to_global_ultimate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ri9I(YKHO, Ri9I):\n YKHO._bill_to_global_ultimate = Ri9I", "def D7lp(YKHO):\n return YKHO._bill_to", "def eeLO(YKHO):\n return YKHO.get_dim_attribute('upper')", "def K_kG(YKHO) -> None:\n JtWs = un_K()\n nPrm = dyqv(sQQF, JtWs, JtWs)\n YKHO.eur_gbp_last_month = xsEE(nPrm)", "def I2yj(...
[ "0.6892778", "0.48896882", "0.48835945", "0.47585672", "0.47350633", "0.46606815", "0.46538147", "0.4642403", "0.45811716", "0.4571031", "0.45653877", "0.45432332", "0.45143822", "0.45100954", "0.44714588", "0.44690955", "0.44609243", "0.44471198", "0.44380367", "0.44187826", ...
0.7950199
0
Gets the contract_number of this AssetContractInformation. Contract number for the Cisco support contract purchased for the Cisco device.
def Lpu6(YKHO): return YKHO._contract_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TMOE(YKHO):\n YKiD = YKHO.acm_obj.Trade().Instrument()\n fIQ3 = YKiD.Oid()\n VIXL = YKiD.Currency().Name()\n Lpu6 = '{instrument_id}-{currency}'.format(instrument_id=fIQ3, currency=VIXL)\n return Lpu6", "def Y9p9(YKHO):\n return YKHO._transaction_currency_code", "def SzUL(YKHO):\n retu...
[ "0.59258217", "0.584531", "0.5640801", "0.5450351", "0.54406613", "0.54225516", "0.5410251", "0.5410251", "0.5388157", "0.53817827", "0.53759074", "0.5293066", "0.52914536", "0.5276952", "0.5253492", "0.5230767", "0.5157721", "0.51468384", "0.50585556", "0.5055464", "0.505286...
0.8110814
0
Sets the contract_number of this AssetContractInformation. Contract number for the Cisco support contract purchased for the Cisco device.
def Lpu6(YKHO, Lpu6): YKHO._contract_number = Lpu6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLKG(YKHO, hLKG):\n YKHO._contract = hLKG", "def d1aB(YKHO, SzUL):\n YKHO.contract_balance = SzUL", "def Lpu6(YKHO):\n return YKHO._contract_number", "def CbGb(YKHO, rRzo):\n YKHO.contract_addr = rRzo\n YKHO._bank_inst = YKHO._w3.eth.contract(address=YKHO.contract_addr, abi=YKHO._iface['ab...
[ "0.6741479", "0.62899786", "0.59026676", "0.58867043", "0.55965984", "0.5590048", "0.53946733", "0.5357157", "0.5251647", "0.5251647", "0.5219463", "0.51607794", "0.51578164", "0.51300824", "0.51289797", "0.50343776", "0.5025832", "0.50000995", "0.4977413", "0.4977023", "0.49...
0.8434056
0
Gets the line_status of this AssetContractInformation. Contract status as per the Cisco Contract APIx.
def fYd2(YKHO): return YKHO._line_status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HfOl(YKHO) -> gbFB:\n if not YKHO.cfg.is_attached:\n return gbFB.UNENTITLED\n Iry7 = YKHO.cfg.entitlements.get(YKHO.name, {})\n if Iry7 and Iry7['entitlement'].get('entitled'):\n return gbFB.ENTITLED\n return gbFB.UNENTITLED", "def bzYp(YKHO):\n return f'{str(YKHO.protocol)} {int...
[ "0.66290027", "0.56924903", "0.5377987", "0.535771", "0.5295297", "0.5259196", "0.52107644", "0.5189223", "0.51714134", "0.51402825", "0.50830877", "0.50828904", "0.5060169", "0.50471246", "0.5029664", "0.5007104", "0.5005772", "0.50049436", "0.49931568", "0.49786314", "0.497...
0.7191819
0
Sets the line_status of this AssetContractInformation. Contract status as per the Cisco Contract APIx.
def fYd2(YKHO, fYd2): YKHO._line_status = fYd2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w8Lw(YKHO, Q74b):\n if Q74b == YKHO.status:\n return\n MwGg = YKHO.status\n if Q74b not in YKHO.available_statuses():\n raise Bx6I.InvalidLineStatus(bGrB(\"'%(new_status)s' is not a valid status (current status: '%(status)s')\") % {'new_status': Q74b, 'status': YKHO.status})\n YKHO.st...
[ "0.6037366", "0.5846891", "0.5759345", "0.56974405", "0.56711024", "0.5607109", "0.5487611", "0.5487611", "0.5487611", "0.54532564", "0.54065496", "0.53897524", "0.5376416", "0.5367098", "0.53363335", "0.5331669", "0.530693", "0.530147", "0.526819", "0.52601427", "0.5242032",...
0.7671556
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, BTej): 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.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Compute the density of traj in atoms/nm^3
def osUp(dlZb, f0tD, lZh5=2, NaqS=0.0, aq_o=1.0, jtTA=0.01): TaUL = dlZb.xyz[:, :, lZh5] - NaqS SjYH = [] InLe = [] for VrU4 in oyIN.arange(-aq_o, aq_o, jtTA): ZHfW = oyIN.logical_and(TaUL > VrU4 - 0.5 * jtTA, TaUL < VrU4 + 0.5 * jtTA) SjYH.append(VrU4) InLe.append(10 ** 2 * ZHfW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wYgR(YKHO):\n return YKHO.electron_density * 1000000.0", "def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.temperature)", "def BOU9(YKHO):\n return NVY8 * YKHO.num_electrons * YKHO.density / YKHO.molar_mass", "def Z42X(YKHO) -> P6bq.m ** (-3):\n return YKHO._num...
[ "0.69847125", "0.66880167", "0.6444939", "0.64008796", "0.63585484", "0.6358287", "0.6272691", "0.6254376", "0.6202966", "0.61552936", "0.61232495", "0.610893", "0.609129", "0.6069121", "0.6060912", "0.59814245", "0.59663284", "0.59616756", "0.58860856", "0.585174", "0.581968...
0.6014862
15
Bin reward to {+1, 0, 1} by its sign.
def vOGg(YKHO, vOGg): return oyIN.sign(vOGg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg):\n return float(oyIN.sign(vOGg))", "def Zihr(WKvO):\n return tBeC(1, WKvO)", "def Zihr(YKHO):\n return 1 - 2 * YKHO._ltz()", "def Zihr(YKHO, g4y1):\n pass", "def Zihr(YKHO, g4y1):\n pass", "def Zihr(WKvO):\n if ...
[ "0.7170663", "0.6652758", "0.6516397", "0.61955494", "0.60499823", "0.60499823", "0.6048698", "0.60147136", "0.5961627", "0.5949438", "0.59057444", "0.5822291", "0.5816496", "0.57978296", "0.57128024", "0.5707449", "0.56889117", "0.56587505", "0.5643741", "0.56297874", "0.562...
0.70812565
3
Computation of encodings has to be done in batches due to the large size of the dataset. Otherwise the kernel will die! For downscaling pick np.mean (average pooling) or np.max (max pooling) respectively. If downscaling is not required choose downscale_factor=1. Keep in mind the network expects an input image size of 6...
def Vmr2(Ep8u, TsEM, __n6, ytlm): exwG, vC9B = oyIN.shape(__n6) eHNT = TsEM fO_R = exwG // Ep8u nJ0e = oyIN.linspace(1, fO_R, fO_R, dtype=int) * Ep8u z0aI = czc_(image_size=1.0, method='summation') print('Encoding started...') for XP5J in range(fO_R): if XP5J == 0: GLx6 =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZMb(YKHO, xkjI):\n WKvO = ZylS.layers.conv2d(xkjI, filters=32, kernel_size=3, strides=1, padding='same', activation=ZylS.nn.relu)\n IQuB = WKvO.shape\n WKvO = ZylS.layers.max_pooling2d(WKvO, pool_size=2, strides=2)\n WKvO = ZylS.layers.conv2d(WKvO, filters=64, kernel_size=3, strides=1, padding='sa...
[ "0.58314115", "0.5685731", "0.56497496", "0.56484973", "0.5554049", "0.55209684", "0.5485943", "0.54627454", "0.54137504", "0.5396578", "0.53885907", "0.5366336", "0.5357764", "0.53196335", "0.5313715", "0.5311812", "0.5310088", "0.5306535", "0.53041184", "0.5299925", "0.5294...
0.6929917
0
Construct the resource manager.
def FIMM(YKHO, PPGD, bo34): super(sxKA, YKHO).__init__() YKHO.logger = bo34 YKHO._requests = [] YKHO.request_queue = g5js() YKHO._reactor = PPGD YKHO._stop_flag = False YKHO._requests_handlers = {rllc: YKHO.stop_test, y6oI: YKHO.start_test, fHCK: YKHO.should_skip, znbt: YKHO.cleanup_user, YA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRfg(YKHO):\n YKHO._manager = lyqD(YKHO, resource_class=Sbpi, response_key='instance', uri_base='instances')\n YKHO._flavor_manager = dbyW(YKHO, resource_class=qKi8, response_key='flavor', uri_base='flavors')\n YKHO._backup_manager = lRtw(YKHO, resource_class=R5Ux, response_key='backup', uri_base='bac...
[ "0.6268288", "0.6262003", "0.61965317", "0.6191669", "0.6174097", "0.61394644", "0.6089736", "0.59159756", "0.58417094", "0.5840344", "0.58061874", "0.57950366", "0.57855695", "0.57750463", "0.5771833", "0.5764935", "0.57622284", "0.57540655", "0.5752814", "0.5748506", "0.574...
0.5890053
8
Returns the suitable request handler.
def XFgb(YKHO, QePW): try: Logs = type(QePW.message) return YKHO._requests_handlers[Logs] except KeyError: raise g8kN('Invalid message type %r' % Logs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6mG(YKHO, MOPg):\n clva = YKHO.get_api_version(MOPg)\n if clva == '1.0.0':\n Ym16 = MHAm()\n else:\n Ym16 = MHAm()\n return Ym16", "def oQJz(YKHO, qv1X):\n if qv1X.path in YKHO.explicit_url_map:\n return YKHO.explicit_url_map[qv1X.path]\n or8S = qv1X.path.rfind(b'/') +...
[ "0.75433934", "0.7513775", "0.7414342", "0.72202986", "0.716436", "0.6982843", "0.6956317", "0.6880665", "0.6838173", "0.6739354", "0.6524218", "0.6508437", "0.63846564", "0.6342752", "0.6265904", "0.61902636", "0.61887336", "0.6188333", "0.61220944", "0.6119327", "0.59964764...
0.7682702
0
Find least common multiple of multiple numbers >>> lcm(range(1, 4)) 6 >>> lcm(2,3,4) 12
def BsJX(*xYvp): aLXh = [Llmz(YRbF) for YRbF in xYvp] fTEX = set(eNCK(*aLXh)) cv0o = [{exwG: PFCt.count(exwG) for exwG in set(PFCt)} for PFCt in aLXh] Aofo = 1 for aM8h in fTEX: FpjG = max([FBfN.get(aM8h, 0) for FBfN in cv0o]) Aofo *= aM8h ** FpjG return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BsJX(DcNY):\n Ylbp = 1\n for exwG in DcNY:\n if Ylbp % exwG != 0:\n Ylbp *= exwG // nN76.gcd(Ylbp, exwG)\n return Ylbp", "def BsJX(*mSrU):\n\n def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)\n return Pusg(BsJX, mSrU, 1)", "def BsJX(mSrU: List[int]) -> ...
[ "0.82370895", "0.8139086", "0.8112922", "0.8094182", "0.80820936", "0.8077356", "0.80414236", "0.80167836", "0.799231", "0.7961098", "0.7961098", "0.7961098", "0.7961098", "0.7961098", "0.7961098", "0.7961098", "0.7961098", "0.7961098", "0.7956724", "0.79299915", "0.7926433",...
0.71793056
66
True/False list of primes from 0 to n1 >>> prime_cache(10) [False, False, True, True, False, True, False, True, False, False]
def Cts7(exwG): wyyA = [False, False] + [True] * (exwG - 2) wyyA[4::2] = [False] * ((exwG - 3) // 2) for YRbF in range(3, int(exwG ** 0.5) + 1, 2): if wyyA[YRbF]: wyyA[YRbF * YRbF::2 * YRbF] = [False] * ((exwG - YRbF * YRbF - 1) // (2 * YRbF) + 1) return wyyA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rPed(exwG):\n return [YRbF for YRbF, Ty9i in enumerate(Cts7(exwG)) if Ty9i]", "def _a2T(exwG):\n ezWE = [True] * exwG\n ezWE[0] = False\n ezWE[1] = False\n for YRbF in range(2, int(epAf.sqrt(exwG)) + 1):\n if T1qg(YRbF):\n for r845 in range(2 * YRbF, exwG, YRbF):\n ...
[ "0.7786344", "0.7479495", "0.7283646", "0.72117764", "0.7081768", "0.7051076", "0.70361274", "0.70210874", "0.6971093", "0.6968755", "0.68762267", "0.68680173", "0.6826943", "0.68215346", "0.6818231", "0.6800172", "0.6800172", "0.6782817", "0.6766824", "0.6764123", "0.674851"...
0.80716157
0
Returns number of natural numbers which are less than and relatively prime to n. >>> phi(2) 1 >>> phi(7) 6
def rVnq(exwG, wyyA=None): if exwG == 1: return 1 elif exwG < 1: raise AssertionError('Please enter an int > 0') else: return int(exwG * QRFO([1 - 1 / XP5J for XP5J in set(Llmz(exwG, wyyA))]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVnq(exwG: int) -> int:\n Aofo = 1\n for YRbF in range(2, exwG):\n if ML2l(YRbF, exwG) == 1:\n Aofo += 1\n return Aofo", "def rVnq(exwG):\n KwQv = [YRbF if YRbF & 1 else YRbF // 2 for YRbF in range(exwG + 1)]\n for YRbF in range(3, exwG + 1, 2):\n if KwQv[YRbF] == YRbF...
[ "0.7770902", "0.7068459", "0.6984532", "0.6903707", "0.68247056", "0.68076813", "0.67985", "0.678393", "0.6774111", "0.67077446", "0.670429", "0.6633385", "0.6526214", "0.6457188", "0.64528984", "0.64256597", "0.6412896", "0.6411824", "0.6406967", "0.63579386", "0.6336251", ...
0.6964897
3
n = (3 x2 x)/2 for x to be int, (1 + sqrt(24n + 1)/2 must be int >>> is_pent(5) True >>> is_pent(6) False
def mr6_(exwG): ydff = (1 + PZyS(24 * exwG + 1)) / 6 if ydff == int(ydff): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W1zZ(exwG):\n if (1 + (24 * exwG + 1) ** 0.5) / 6 % 1 == 0:\n return True\n return False", "def W1zZ(exwG: int) -> bool:\n tk5Y = (1 + 24 * exwG) ** 0.5\n return (1 + tk5Y) / 6 % 1 == 0", "def kh87(exwG):\n bGrB, WKvO = vTAe.solve(3, -1, -2 * exwG)\n return ye72(WKvO) and WKvO.is_i...
[ "0.76181537", "0.7594795", "0.7569422", "0.7541353", "0.7057518", "0.70542014", "0.7038212", "0.68479776", "0.67720413", "0.67626107", "0.6677112", "0.66408694", "0.6466515", "0.6408253", "0.63678056", "0.6362122", "0.6309668", "0.6235348", "0.6193418", "0.61733454", "0.61711...
0.8513671
0
get the balance of the wallet address
def YPCa(YKHO, UTX6): wMl7 = 0 for XkN1 in YKHO.chain: for Kh6j in XkN1.transactions: if Kh6j.walletoffrom == UTX6: wMl7 -= Kh6j.amount if Kh6j.walletofto == UTX6: wMl7 += Kh6j.amount return wMl7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rCkj(UTX6: str) -> int:\n return P8oC.Balances(mP7D).get(UTX6)", "def rCkj(YKHO, UTX6):\n wMl7 = 0\n for XkN1 in YKHO.chain:\n for a1PO in XkN1['transactions']:\n if a1PO['recipient'] == UTX6:\n wMl7 += a1PO['amount']\n elif a1PO['sender'] == UTX6:\n ...
[ "0.8287113", "0.80935556", "0.79650754", "0.7763347", "0.77534664", "0.7689457", "0.76580805", "0.75750595", "0.75557035", "0.7478612", "0.7470099", "0.7393678", "0.7393145", "0.7377592", "0.7367802", "0.73228997", "0.73216796", "0.7254056", "0.72263384", "0.7220544", "0.7217...
0.7729702
5
Actually create a ResolverOp instance with JSON properties.
def lUPU(Emd4, If_q: str) -> 'ResolverOp': return Emd4.create(**vk_W.loads(If_q))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(Emd4, **lhy8: Any) -> 'ResolverOp':\n PHY4 = super().__call__()\n Emd4._check_kwargs(lhy8)\n for mWFP, BWXx in lhy8.items():\n setattr(PHY4, mWFP, BWXx)\n return PHY4", "def eLpg(Emd4, **lhy8: Any) -> 'ResolverOp':\n PHY4 = super().__call__()\n Emd4._check_kwargs(lhy8)\n for ...
[ "0.6811909", "0.6811909", "0.59342283", "0.5440334", "0.52872497", "0.5275193", "0.5216687", "0.5179934", "0.5133534", "0.51172435", "0.5096819", "0.50834227", "0.5080239", "0.5080239", "0.50634116", "0.5060461", "0.50579053", "0.5044059", "0.5029246", "0.5028303", "0.5025152...
0.7118747
0
Custom isinstance() that supports Generic types as well.
def RH_m(YKHO, BWXx: Any, cM24: Any) -> bool: zl6T = getattr(cM24, '__args__', ()) if hasattr(cM24, '__origin__'): cM24 = cM24.__origin__ if cM24 == uLKX: return any((YKHO._isinstance(BWXx, a1PO) for a1PO in zl6T)) else: return isinstance(BWXx, cM24)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH_m(Emd4, WKvO):\n return isinstance(WKvO, Emd4.PYTHON_TYPE_CHECK)", "def JxS3(BWXx, kN9s):\n try:\n return isinstance(BWXx, kN9s)\n except TypeError:\n return False", "def RH_m(YEnM, Emd4, R7TM=None, _stK=None, zhjW=False, gElq=True, r9Al=None):\n if _stK is None:\n _stK ...
[ "0.78249437", "0.75625736", "0.7124543", "0.70815945", "0.7045748", "0.6844922", "0.6786576", "0.67683727", "0.6756633", "0.6647368", "0.66187394", "0.65770924", "0.6531242", "0.6418529", "0.6407348", "0.64029634", "0.6393635", "0.6391096", "0.6391096", "0.6391096", "0.639109...
0.77370906
1
Gets the subject field
def LZJ7(YKHO): return YKHO.msg['Subject']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4ZT(YKHO):\n return YKHO.get('subject')", "def mUtM(YKHO):\n return YKHO._subject", "def U4ZT(YKHO):\n if 'subject' in YKHO._prop_dict:\n return YKHO._prop_dict['subject']\n else:\n return None", "def U4ZT(YKHO):\n return YKHO.properties.get('subject', None)", "def U4ZT(YK...
[ "0.8546978", "0.8421207", "0.82273424", "0.81908196", "0.809099", "0.8078224", "0.8078224", "0.7975218", "0.7774466", "0.7695352", "0.7694589", "0.7672639", "0.7185678", "0.7185678", "0.7149557", "0.7146025", "0.7026891", "0.70241207", "0.6989606", "0.6841878", "0.6841451", ...
0.8022054
7
Gets the ReturnPath field
def fAGF(YKHO): return YKHO.msg['Return-Path']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQC(YKHO):\n return YKHO.path", "def vcG3(YKHO):\n return YKHO.path", "def pmON(YKHO):\n return YKHO._path", "def pmON(YKHO):\n return YKHO._path", "def pmON(YKHO):\n return YKHO._path", "def pmON(YKHO):\n return YKHO._path", "def pmON(YKHO):\n return YKHO._path", "def pmON(...
[ "0.77010435", "0.7643022", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.7491303", "0.74904346", "0.74675363", "0.7466091", "0.74599016", "0.7452162", "0.7429111", "0.7370727",...
0.8237621
0
Search or self for the specified Python version and return the first match.
def Wp5k(YKHO, IJ4N, cbKy=None, Po4F=None, uv6v=None, M4N3=None): oB_b = seET.methodcaller('matches', IJ4N, minor=cbKy, patch=Po4F, pre=uv6v, dev=M4N3) JbSL = seET.attrgetter('is_python') lwQm = seET.attrgetter('as_python') if not YKHO.is_dir: if YKHO.is_python: return YKHO if oB_b(Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KWSI(BmFE):\n zbb0 = GDH0(BmFE)\n for e8uP, U34r in ygOa():\n oA6a = GDH0(U34r[2])\n if oA6a >= zbb0:\n return e8uP\n return None", "def Nygx(YKHO, mWFP):\n if not len(YKHO):\n YKHO.update()\n try:\n return [DpZH for DpZH in YKHO if Hy7s.path.basename(DpZ...
[ "0.66143304", "0.6599875", "0.6301774", "0.6229755", "0.6012448", "0.5920252", "0.5911101", "0.5869988", "0.5861554", "0.5848118", "0.58446807", "0.5824409", "0.58117074", "0.5803315", "0.5795893", "0.5772869", "0.5723488", "0.57016146", "0.5671283", "0.56623363", "0.5646084"...
0.6995244
0
Reads, converts and returns the dataset_part in numpy format.
def u5U3(YKHO, cC56, VJv0, oYP1, B9Au, sAoX, H96n, ROpF, hU8i, jTqs, IEZB, aFAW): if oYP1 is None and sAoX is None: input = cC56 Crrw = VJv0 elif oYP1 is None: input = oyIN.concatenate((cC56, sAoX), axis=0) Crrw = oyIN.concatenate((VJv0, H96n), axis=0) else: input = o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ywsl(YKHO):\n YKHO.featureNumpy = oyIN.asarray(YKHO.feature)\n YKHO.ClassNumpy = oyIN.asarray(YKHO.Class)", "def UlWi(cJUo):\n nPrm = oyIN.recfromtxt(cJUo)\n nPrm = oyIN.asarray(nPrm)\n return nPrm", "def Gph9(YKHO):\n JRYC = oyIN.dtype('(3,)f8')\n tgCD = YKHO.f.create_dataset('x', (10...
[ "0.64081466", "0.6149978", "0.613725", "0.6133393", "0.61110336", "0.60563695", "0.6039322", "0.5997475", "0.5976839", "0.59523314", "0.59523314", "0.592794", "0.59222144", "0.59132695", "0.58542794", "0.5848898", "0.5839309", "0.583343", "0.5831749", "0.58311224", "0.5826216...
0.0
-1
Returns the path to the "raw" data of the dataset.
def HAn4(YKHO): return YKHO.__dataset_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YCtt(YKHO):\n return ''", "def pmON(YKHO):\n return YKHO._data_file", "def i0XC(YKHO):\n raise NotImplementedError", "def wlYV(YKHO):\n return YKHO.raw_img_path", "def YCtt(YKHO):\n return PFCt.File(YKHO._path + '/renderLayerData.data')", "def s8df():\n return Hy7s.getcwd() + '/data...
[ "0.7656258", "0.740497", "0.7395588", "0.70975006", "0.70782423", "0.7063438", "0.70100456", "0.70041394", "0.7002504", "0.6907189", "0.68645567", "0.68163466", "0.6640086", "0.6612662", "0.6595232", "0.65896946", "0.64992857", "0.64818364", "0.6454146", "0.6444598", "0.64216...
0.7168106
3
Find the unique elements of an array. Returns the sorted unique elements of an array. There are three optional
def kcwm(wc14, oQ6S=False, jcN9=False, DHOZ=False, jDK_=None): wc14 = oyIN.asanyarray(wc14) if jDK_ is None: U5bT = e1hg(wc14, oQ6S, jcN9, DHOZ) return zl4W(U5bT) try: wc14 = oyIN.moveaxis(wc14, jDK_, 0) except oyIN.AxisError: raise oyIN.AxisError(jDK_, wc14.ndim) from No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcUH(VosJ):\n yp4p = VosJ.copy()\n P6bq = []\n for YRbF in range(yp4p.shape[0]):\n for r845 in range(yp4p.shape[1]):\n if yp4p[YRbF][r845] not in P6bq:\n P6bq.append(yp4p[YRbF][r845])\n return sorted(P6bq)", "def Gat1(qw7D):\n SUko = []\n for U6D_ in qw7D:\n...
[ "0.77543914", "0.7670805", "0.74704456", "0.74485576", "0.71950716", "0.6994082", "0.6824562", "0.6817919", "0.6748691", "0.6729596", "0.6593372", "0.65626484", "0.6488506", "0.6486476", "0.6483136", "0.6474781", "0.63803935", "0.6358661", "0.6348984", "0.6347082", "0.6325797...
0.56109124
61
Find the unique elements of an array, ignoring shape.
def e1hg(wc14, oQ6S=False, jcN9=False, DHOZ=False): wc14 = oyIN.asanyarray(wc14).flatten() tp_y = oQ6S or jcN9 if tp_y: IuXB = wc14.argsort(kind='mergesort' if oQ6S else 'quicksort') p06G = wc14[IuXB] else: wc14.sort() p06G = wc14 ZHfW = oyIN.empty(p06G.shape, dtype=o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcUH(VosJ):\n yp4p = VosJ.copy()\n P6bq = []\n for YRbF in range(yp4p.shape[0]):\n for r845 in range(yp4p.shape[1]):\n if yp4p[YRbF][r845] not in P6bq:\n P6bq.append(yp4p[YRbF][r845])\n return sorted(P6bq)", "def Gat1(qw7D):\n SUko = []\n for U6D_ in qw7D:\n...
[ "0.7753883", "0.7658077", "0.72149765", "0.7067209", "0.7036766", "0.6949334", "0.6934617", "0.69215995", "0.6761227", "0.6736673", "0.6652539", "0.6556754", "0.65484476", "0.6543439", "0.6540323", "0.6481448", "0.6480239", "0.6419212", "0.6361706", "0.635556", "0.63507366", ...
0.6057915
31
Returns the model's attributes as a dictionary. We override the standard method in order to hide the id column, since this only exists to provide the table with a primary key.
def MNRr(YKHO): Csk6 = {} for hkS8 in YKHO.__class__.attributes: Csk6[hkS8] = getattr(YKHO, hkS8) return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return {Z9rn.key: getattr(YKHO, Z9rn.key) for Z9rn in tq_1(YKHO).mapper.column_attrs}", "def azoT(YKHO):\n return {G1Hx: getattr(YKHO, G1Hx) for G1Hx in YKHO.__class__.columns().keys()}", "def MNRr(YKHO):\n if isinstance(YKHO, NCls.Model):\n Ao4k = {Z9rn.name: getattr(YKHO, Z9...
[ "0.7592019", "0.7496649", "0.7437434", "0.7398515", "0.7329788", "0.7329788", "0.7329788", "0.72838235", "0.72838235", "0.72838235", "0.72838235", "0.72838235", "0.7246838", "0.7246838", "0.7246838", "0.7246838", "0.7215808", "0.71539736", "0.71409357", "0.71232826", "0.71226...
0.6935873
27
Convert the spaces in any keyword with '_', so they can be treated as a single word by the algorithm.
def viIj(YKHO, l5Ny: str) -> str: for YSA3 in YKHO.spaces: if YSA3 in l5Ny: l5Ny = l5Ny.replace(YSA3, YKHO.spaces[YSA3]) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNLf(GIN8: str) -> str:\n return ZbWC.compile('[\\\\W_]+').sub('', GIN8.lower())", "def Nwrl(peBr):\n jbXL = ZbWC.sub('[^0-9a-zA-Z]', '_', peBr).strip('_')\n return ZbWC.sub('_+', ' ', jbXL).lower()", "def QoZA(l5Ny):\n return l5Ny.replace(' ', '__')", "def bOQt(KCHu):\n return KCHu.replac...
[ "0.7375396", "0.7207189", "0.7205651", "0.6996784", "0.6988654", "0.69130224", "0.67588764", "0.67115027", "0.66977113", "0.6663665", "0.66399133", "0.6634489", "0.6634096", "0.6625953", "0.66021514", "0.6558772", "0.65455896", "0.6536678", "0.6520544", "0.64475626", "0.64465...
0.61668664
43
A list of the "target words" which are the key words but with the filtering/preprocessing applied.
def DtxK(YKHO) -> x1iM[str]: return list(map(lambda yzQ0: YKHO.spaces[yzQ0.lower()] if yzQ0.lower() in YKHO.spaces else yzQ0.lower(), YKHO.keywords))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QPxx(rrSk, H5ew, SR8T=YhvP):\n return list(set(eNCK.from_iterable((V22M(Z9rn, H5ew, SR8T) for Z9rn in rrSk))))", "def AWWK(YKHO):\n YKHO.filter_words = YKHO.read_word_file(YKHO.filter_word_file)", "def TUDJ(YKHO):\n V22M = set([])\n for eOtH in YKHO.importantTokenList():\n if eOtH.isStop...
[ "0.682682", "0.6811436", "0.6803833", "0.67600375", "0.673478", "0.67239624", "0.6700556", "0.66194886", "0.65833056", "0.65680504", "0.6558761", "0.6506947", "0.63702095", "0.63696253", "0.63618857", "0.63268524", "0.6326281", "0.63234484", "0.6318066", "0.6290989", "0.62801...
0.83127296
0
Dictionary that maps the original key words onto their "encoded" equivalent (i.e., with lower case, with spaces replaced with '_')
def Sgd0(YKHO) -> cuzp[str, str]: return {YKHO.target_words[YRbF]: YKHO.keywords[YRbF] for YRbF in range(len(YKHO.keywords))}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZFh(F79k: dict) -> dict:\n return {Ty9i.lower(): H5ew for H5ew, BWXx in F79k.items() for Ty9i in BWXx}", "def VExw(z1HH: str, mk5w: str) -> cuzp[str, str]:\n xvT_ = {}\n tkEA = z1HH.split()\n ng0v = mk5w.split()\n for rWUe, OfOv in zip(tkEA, ng0v):\n if rWUe != OfOv.lower():\n ...
[ "0.65383524", "0.64053553", "0.6347604", "0.6275971", "0.6270091", "0.626951", "0.625333", "0.6150934", "0.60922694", "0.60567355", "0.60436726", "0.6030458", "0.60149914", "0.5999181", "0.5995143", "0.59917426", "0.59843", "0.5973049", "0.5960603", "0.5959533", "0.59392214",...
0.6009112
13
The important sigmoid function for squashing the values between 0 and 1.
def m1Hg(WKvO: np.ndarray) -> oyIN.ndarray: return 1 / (1 + oyIN.exp(-WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))", "def m1Hg(WKvO):\n return ...
[ "0.8307103", "0.8307103", "0.82910836", "0.8268776", "0.8266369", "0.8264087", "0.8232575", "0.8232575", "0.822608", "0.8220571", "0.8220571", "0.8220571", "0.8220571", "0.8220571", "0.8220571", "0.82194525", "0.82156944", "0.82127756", "0.8202055", "0.81971574", "0.81926733"...
0.7612219
77
apply gaussian blur on the image.
def pUkU(Xn71): bT7f = XC5k.GaussianBlur(Xn71, (5, 5), 0) return bT7f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xsYF(YKHO, VXjJ):\n return XC5k.GaussianBlur(VXjJ, (YKHO.kernel_size, YKHO.kernel_size), 0)", "def IgYM(YKHO, VXjJ, Ot1W=3):\n return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0)", "def xsYF(YKHO, VXjJ):\n Ot1W = YKHO.gaussian_blur_params['kernel_size']\n return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W)...
[ "0.84170055", "0.8351707", "0.829353", "0.81630987", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81620103", "0.81185824", ...
0.770138
26
Save best model weights in SegmentationTrainTask.
def lac1(YKHO, Iq_3: ModelEntity): bo34.info('called save_model') NRcB = xDSY.BytesIO() UZGV = JXr0(ASpI.convert(YKHO._hyperparams, dict, enum_to_str=True)) Crrw = {UXqs.name: UXqs.color.rgb_tuple for UXqs in YKHO._labels} ip9Q = ht2j.load(YKHO._model_ckpt) By2t = {'model': ip9Q, 'config': UZGV,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lac1(YKHO, xWf0, QTBn, qtWj):\n pmON = Hy7s.path.join(YKHO.logpath_models, 'model-%d.pth.tar' % qtWj)\n ht2j.save(QTBn, pmON)\n if xWf0:\n RDuA.copyfile(pmON, pmON + 'model_best.pth.tar')", "def lac1(YKHO):\n UWda = Hy7s.path.join(YKHO.log_path, 'models', 'weights_{}'.format(YKHO.epoch))\n...
[ "0.6650038", "0.6643347", "0.6598322", "0.6518796", "0.6507951", "0.6491708", "0.64696395", "0.64233774", "0.63872117", "0.6382903", "0.63751495", "0.6360432", "0.6342814", "0.633039", "0.6327655", "0.6308364", "0.62994194", "0.62989074", "0.62692106", "0.62669325", "0.625638...
0.5797751
92
return parsed dic of attributes
def Y5NC(YKHO): return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uGTm(o8Kj):\n if o8Kj.getLength() == 0:\n return {}\n Nws4 = {}\n for mWFP in o8Kj.getNames():\n Nws4[mWFP] = o8Kj.getValue(mWFP)\n return Nws4", "def h6gc(YKHO) -> cuzp[str, str]:\n pass", "def bjmO(YKHO, o8Kj):\n zyX_ = {}\n for J2gq in o8Kj:\n zyX_[J2gq[0]] = J2...
[ "0.78939116", "0.78733903", "0.7617347", "0.7591473", "0.7510816", "0.7366241", "0.73438156", "0.7340827", "0.72419924", "0.7192755", "0.7143592", "0.7062585", "0.70397705", "0.7024373", "0.7017498", "0.69949126", "0.6984929", "0.6918649", "0.69153214", "0.69153214", "0.69153...
0.63478583
57
Returns boolean value depending on whether the aggregation method requires server data or not.
def zfi1(): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VHLk(YKHO) -> MH_9:\n return YKHO._query_aggregation", "def A4Wh(YKHO):\n return bool(YKHO.data.get('dynamic') == 'true')", "def HLXZ(YKHO) -> bool:\n return YKHO.graph_count and (not YKHO.data_flow_null_count)", "def U25W(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'statistics_enabled')", ...
[ "0.6899004", "0.5701535", "0.56353027", "0.55603594", "0.5503864", "0.54962474", "0.54927695", "0.54514027", "0.5426389", "0.5426389", "0.54034734", "0.5399808", "0.5397731", "0.538908", "0.5370074", "0.5338207", "0.532616", "0.53131884", "0.53120226", "0.5305916", "0.5304717...
0.0
-1
Reads an image, decodes, and pads its spatial dimensions, all in TensorFlow
def d9JI(up6f, dCQw=ZylS.image.decode_image, xMux=3, KPVE=500): hGN5 = ZylS.io.read_file(up6f) _uhB = xBlr.partial(dCQw, channels=xMux)(hGN5) fQhk = ZylS.shape(_uhB) LkVj = [[0, KPVE - fQhk[0]], [0, KPVE - fQhk[1]], [0, 0]] return (fQhk[:2], ZylS.pad(_uhB, LkVj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biH0(LNo8, AHxV, H2v2, TVTK):\n if LNo8.dtype != ZylS.float32:\n LNo8 = ZylS.image.convert_image_dtype(LNo8, dtype=ZylS.float32)\n if AHxV.dtype != ZylS.int32:\n AHxV = ZylS.image.convert_image_dtype(AHxV, dtype=ZylS.int32)\n '# Compute number of pixels needed to pad images\\n # in or...
[ "0.6252908", "0.62050575", "0.6179051", "0.61633486", "0.6159363", "0.61564153", "0.6126811", "0.61189336", "0.6110866", "0.60893", "0.6087152", "0.60381603", "0.60061234", "0.5960366", "0.59399766", "0.59102744", "0.5910235", "0.5882494", "0.58616", "0.5856179", "0.58486575"...
0.60109043
12
Given tf.int Tensor matrix with shape [N, 2], make N 2D binary masks. These binary masks will be used "to mask the loss". Specifically, if the image is shaped as (300 x 400) and therefore so its labels, we only want to penalize the model for misclassifying within the image boundary (300 x 400) and ignore values outside...
def yBYN(N8OZ): oGem = ZylS.sequence_mask(N8OZ, 500) oGem.set_shape([None, 2, 500]) crlQ = ZylS.shape(N8OZ)[0] hQHm = ZylS.cast(ZylS.broadcast_to(ZylS.expand_dims(oGem[:, 0, :], 2), (crlQ, 500, 500)), ZylS.float32) jlSq = ZylS.cast(ZylS.broadcast_to(ZylS.expand_dims(oGem[:, 1, :], 2), (crlQ, 500, 50...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gUaB(aTLP, Crrw, ZHfW, yn07):\n N77f = ZylS.nn.sigmoid_cross_entropy_with_logits(logits=aTLP, labels=Crrw)\n ZHfW += yn07\n ZHfW = ZylS.cast(ZHfW, dtype=ZylS.float32)\n ZHfW = ZylS.reshape(ZHfW, shape=[79924])\n N77f *= ZHfW\n return ZylS.reduce_mean(N77f)", "def exY5(Crrw):\n MKlR, yzQ0...
[ "0.6790927", "0.645134", "0.6316921", "0.6236827", "0.621911", "0.62181616", "0.61947864", "0.6192165", "0.6186134", "0.6169222", "0.6165109", "0.6130671", "0.6121818", "0.6119625", "0.6089915", "0.6089915", "0.6089915", "0.6087548", "0.6074675", "0.6045873", "0.6040182", "...
0.638773
2
Upsamples an input. Conv2DTranspose => Batchnorm => Dropout => Relu
def ZQBP(KUnM, zNig, J1Nm='batchnorm', Qakw=False): MuED = ZylS.random_normal_initializer(0.0, 0.02) Aofo = ZylS.keras.Sequential() Aofo.add(ZylS.keras.layers.Conv2DTranspose(KUnM, zNig, strides=2, padding='same', kernel_initializer=MuED, use_bias=False)) if J1Nm.lower() == 'batchnorm': Aofo.add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZQBP(WKvO, KUnM):\n WKvO = ZylS.keras.layers.Conv2DTranspose(KUnM, kernel_size=3, strides=2, padding='same', use_bias=True)(WKvO)\n WKvO = ZylS.keras.layers.LeakyReLU(alpha=0.2)(WKvO)\n return WKvO", "def W7ED():\n g4y1 = ZylS.keras.Input(shape=(8, 8, 3))\n WKvO = ZylS.keras.layers.Conv2D(8, (...
[ "0.7356043", "0.70594096", "0.7051095", "0.68866855", "0.6857871", "0.68239325", "0.6801166", "0.6719487", "0.66626257", "0.6577877", "0.65380526", "0.6507813", "0.649182", "0.64477557", "0.6435186", "0.6398476", "0.63846356", "0.63844824", "0.6378015", "0.63583744", "0.63358...
0.65413594
10
r""" Load slow weights from Lookahead optimizer. Useful for performing evaluation on the slow weights (which typically generalize better). This method backs up fast weights to load them after evaluation. No need to call this method if evaluation happens just after a lookahead step.
def zdNP(YKHO): for uOe2 in YKHO.optimizer.param_groups: for XP5J in uOe2['params']: G1SI = YKHO.state[XP5J] G1SI['backup_params'] = ht2j.zeros_like(XP5J.data) G1SI['backup_params'].copy_(XP5J.data) XP5J.data.copy_(G1SI['slow_params'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jV1N(C3ST: torch.nn.Module, y7GR: argparse.ArgumentParser) -> ht2j.nn.Module:\n C3ST.optimize_for_inference(fuse_all_layers=False)\n a9Cf = SUd8(y7GR.weights)\n a9Cf = dlHm(a9Cf, C3ST.state_dict())\n C3ST.load_state_dict(a9Cf)\n return C3ST", "def S5FN(YKHO):\n for uOe2 in YKHO.optimizer.pa...
[ "0.6219279", "0.6157501", "0.6107372", "0.60793597", "0.6042776", "0.6017316", "0.5927115", "0.5865936", "0.5856344", "0.58440804", "0.58319896", "0.57923555", "0.57865983", "0.57641697", "0.57228976", "0.57228976", "0.5722838", "0.5689933", "0.5689933", "0.5684171", "0.56768...
0.7571822
0
Finds the language to use.
def L5PF(YKHO): lhy8 = OZpC(YKHO.context, 'portal_properties') return lhy8.site_properties.getProperty('default_language') or 'en'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L5PF(YKHO):\n pmON = YKHO.get_lang_path()\n for rQow in YKHO.languages:\n if rQow in pmON:\n return rQow", "def rQow(YKHO, pan_):\n YKHO._check_target(pan_)\n return pan_.language or YKHO._default_language", "def Bmkt(YKHO, GIN8, DuqQ=None):\n DuqQ = DuqQ or YKHO.cfg.get('l...
[ "0.7614697", "0.7256594", "0.7068705", "0.7020586", "0.6923419", "0.690966", "0.6863909", "0.6860054", "0.68478864", "0.68461674", "0.68394077", "0.68213046", "0.68182886", "0.6799507", "0.6795163", "0.67949075", "0.6787875", "0.67871153", "0.6756067", "0.6755635", "0.6741693...
0.64463913
47
Returns the currently loggedin user's fullname.
def Q1ao(YKHO): mS46 = YKHO.get_user() if mS46: return mS46.getProperty('fullname')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1ao(YKHO):\n return YKHO.applicant.userprofile.display_name()", "def eHMM(YKHO):\n return YKHO.user.get_full_name() or None", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.user.first_name.strip(), YKHO.user.last_name.strip())\n if len(eHMM.strip()) == 0:\n eHMM = YKHO.user.username\n ret...
[ "0.8744586", "0.85566866", "0.85148585", "0.8471631", "0.8471631", "0.84389234", "0.8413501", "0.83892184", "0.8317775", "0.82832503", "0.82324886", "0.8129175", "0.80030346", "0.7898646", "0.7864632", "0.7841731", "0.77861416", "0.7778589", "0.7774969", "0.77318317", "0.7729...
0.8931949
0
Returns the currently loggedin user's email.
def bzh1(YKHO): mS46 = YKHO.get_user() if mS46: return mS46.getProperty('email')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N2Ic(YKHO):\n return YKHO.user.email", "def cHyp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'user_email')", "def wj8F(YKHO, QePW):\n return QePW.session.get(gnZR, not QePW.user.is_anonymous() and QePW.user.email)", "def D3lj(YKHO, KAOR):\n return KAOR.user.email", "def RC0X(YKHO):\n...
[ "0.8379027", "0.81323075", "0.80568236", "0.7832865", "0.76932305", "0.76874566", "0.76799136", "0.75456905", "0.74209106", "0.7403161", "0.7397628", "0.7372335", "0.7372335", "0.7372335", "0.73187095", "0.72495985", "0.7246041", "0.72017705", "0.7191343", "0.7191343", "0.719...
0.8816536
0
Check that the filename given in the request can be accessed by the user.
def cmLW(YKHO): if not 'pdf_name' in YKHO.request.form: YKHO.errors.append('file_not_specified') return Ux0P = YKHO.request.form['pdf_name'] y0cW = YKHO.generate_filename_prefix() if not Ux0P.startswith(y0cW): YKHO.errors.append('file_unauthorized') return if not Ux0P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8dv(YKHO, Ux0P):\n return False", "def MHor(BWXx: str) -> bool:\n uiVx = Hy7s.path.expanduser(BWXx)\n return Hy7s.path.isfile(uiVx) and Hy7s.access(uiVx, Hy7s.R_OK)", "def XT0o(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in P4t4.config['ALLOWED_EXTENSIONS']", "def XT0o(Ux0P):\n ...
[ "0.6892758", "0.6466298", "0.6337543", "0.63061893", "0.62859195", "0.62746865", "0.62479365", "0.6225352", "0.6225166", "0.62169814", "0.6212721", "0.6203378", "0.61763483", "0.6169834", "0.6159644", "0.61447984", "0.6123333", "0.61109895", "0.6104643", "0.60899186", "0.6060...
0.65723616
1
Return the logging level from the config
def ZkgV(): try: ABDL = Elhn.get('logging', 'level').upper() return qfxQ(ABDL) except: G9jH.warning('[logging] section of the config malformed.') return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZkgV(YKHO):\n return YKHO.logging_level", "def wiAm(YKHO) -> str:\n return qe4Y.get(YKHO, 'log_level')", "def rgx4(mWFP):\n try:\n wiAm = PSrQ.get('logs', 'level.{}'.format(mWFP))\n except enR0.NoSectionError:\n return ZV3T\n except enR0.NoOptionError:\n try:\n ...
[ "0.7806044", "0.77202046", "0.76625264", "0.75131935", "0.7480852", "0.74385816", "0.7420677", "0.72653157", "0.71835965", "0.7169424", "0.71563476", "0.71133", "0.70998436", "0.70287544", "0.7022276", "0.69687706", "0.680321", "0.67957276", "0.6791889", "0.67572546", "0.6754...
0.79857594
0
Initialize customized collater for PyTorch DataLoader.
def FIMM(YKHO, cUtG=20480, Fmaf=1, M_Qc=256, yQ6k=2, A2XL=False, Sf3c=False, HLMD=False): if cUtG % M_Qc != 0: cUtG += -(cUtG % M_Qc) assert cUtG % M_Qc == 0 YKHO.batch_max_steps = cUtG YKHO.out_dim = Fmaf YKHO.batch_max_frames = cUtG // M_Qc YKHO.hop_size = M_Qc YKHO.aux_context_win...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **B2fa):\n super(KVdc, YKHO).__init__(*qIxc, **B2fa)\n YKHO.collate_fn = KbW8", "def i0HP(YKHO, gGnb):\n raise NotImplementedError", "def tTee(YKHO, QxcP: Union[callable, str]='batch_of_g_and_y', *qIxc, **B2fa):\n if isinstance(QxcP, str):\n QxcP = getattr(YKHO, QxcP)\n...
[ "0.6804272", "0.66190547", "0.6598865", "0.6449612", "0.61927533", "0.60146725", "0.58487827", "0.5788716", "0.5761844", "0.5754699", "0.5736155", "0.57300377", "0.57117707", "0.56966656", "0.5690784", "0.56643194", "0.5622481", "0.56123805", "0.5607976", "0.5525408", "0.5514...
0.0
-1
Initialize customized collater for PyTorch DataLoader.
def FIMM(YKHO, cUtG=20480, Fmaf=1, M_Qc=256, yQ6k=2, A2XL=False, Sf3c=False, HLMD=False): if cUtG % M_Qc != 0: cUtG += -(cUtG % M_Qc) assert cUtG % M_Qc == 0 YKHO.batch_max_steps = cUtG YKHO.out_dim = Fmaf YKHO.batch_max_frames = cUtG // M_Qc YKHO.hop_size = M_Qc YKHO.aux_context_win...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **B2fa):\n super(KVdc, YKHO).__init__(*qIxc, **B2fa)\n YKHO.collate_fn = KbW8", "def i0HP(YKHO, gGnb):\n raise NotImplementedError", "def tTee(YKHO, QxcP: Union[callable, str]='batch_of_g_and_y', *qIxc, **B2fa):\n if isinstance(QxcP, str):\n QxcP = getattr(YKHO, QxcP)\n...
[ "0.6804272", "0.66190547", "0.6598865", "0.6449612", "0.61927533", "0.60146725", "0.58487827", "0.5788716", "0.5761844", "0.5754699", "0.5736155", "0.57300377", "0.57117707", "0.56966656", "0.5690784", "0.56643194", "0.5622481", "0.56123805", "0.5607976", "0.5525408", "0.5514...
0.0
-1
Get the current player.
def _ysM(YKHO): return YKHO._turn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mCd_(YKHO):\n return YKHO.current_player", "def mCd_(YKHO):\n return YKHO.current_player", "def mCd_(YKHO):\n return YKHO._current_player", "def vevC(YKHO):\n return YKHO.currentPlayer", "def GFCh(YKHO):\n return YKHO.currentPlayer", "def nAM4(YKHO):\n return YKHO.player_control.get...
[ "0.9140813", "0.91059935", "0.9081512", "0.90577304", "0.90299124", "0.8836855", "0.8741567", "0.8701439", "0.8701439", "0.86955357", "0.86725014", "0.8656731", "0.8586361", "0.8550054", "0.8250051", "0.8232484", "0.812834", "0.7939426", "0.7906533", "0.7892074", "0.7610969",...
0.0
-1
Get the valid actions for the current player.
def xAU6(YKHO): if YKHO._state == Cu_3.PLAY_OR_DRAW: return [K3ZA(), KZ5Q()] + YKHO._play_options() elif YKHO._state == Cu_3.PLAY: return [K3ZA()] + YKHO._play_options() elif YKHO._state == Cu_3.PLAY_DRAWN: Ylbp = [K3ZA()] if YKHO._can_play(YKHO._current_hand()[-1]): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7yi(YKHO):\n return YKHO.game.get_legal_actions()", "def xlpn(YKHO, oyg0):\n return [r8hN for r8hN in QBON if r8hN.norm() == 1]", "def hOfQ(YKHO) -> x1iM[str]:\n return list(YKHO.action_map().keys())", "def ovgf(YKHO):\n if YKHO.player == vMjN:\n return []\n elif YKHO.player == K5h...
[ "0.7698183", "0.7369443", "0.73172694", "0.72736067", "0.7273271", "0.7182354", "0.69626474", "0.69124615", "0.68962735", "0.688576", "0.6878289", "0.6873924", "0.67958814", "0.6751898", "0.6748659", "0.6728603", "0.6649211", "0.6624239", "0.66022456", "0.65996534", "0.659965...
0.5854239
85
This function checks to see if the zip code string is valid by seeing if it has at least 5 digits. If any of the characters are not numbers, it will be classified as bad.
def pNU4(DD6W): if len(DD6W) >= 5: try: int(DD6W) return True except: return False else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A1mY(zFiD):\n DD6W = zFiD.o_zip_code\n bdIj = len(DD6W) not in [5, 9] and DD6W.isdigit()\n if bdIj:\n eD8c = 'Zipcode length'\n gAQa = xxyF(e_name=eD8c, order_key=zFiD.primary_key)\n zFiD.errors.append(gAQa)\n return False\n return True", "def dfsZ(vrnM):\n jLqg = N...
[ "0.74941456", "0.70066833", "0.6883973", "0.6880193", "0.6817789", "0.6730279", "0.6673749", "0.6639829", "0.64391536", "0.6405675", "0.6404798", "0.6402405", "0.63738847", "0.63609207", "0.621709", "0.61623204", "0.60969347", "0.60953027", "0.60707206", "0.60619885", "0.6022...
0.84120035
0
converts single dict to YAML, and iterable of dicts to YAML stream
def e0s9(Emd4, YEnM): if isinstance(YEnM, dict): return eJb6.dump(YEnM, default_flow_style=False) else: return eJb6.dump_all(YEnM, default_flow_style=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BONs(yYx7):\n for H5ew in yYx7:\n wOb_ = kJm3()\n nPrm = {}\n nPrm[H5ew] = yYx7[H5ew]\n XN37.dump_yaml(nPrm, wOb_, typ='rt')\n wOb_ = wOb_.getvalue()\n hGN5 = ZbWC.sub(j9KE, '<b>\\\\1</b>\\\\2', wOb_)\n yYx7[H5ew] = hGN5\n return yYx7", "def _e4D(hBFO):\...
[ "0.6725231", "0.66849774", "0.65306723", "0.6498946", "0.63987565", "0.62410545", "0.62367934", "0.6232669", "0.6141377", "0.6114527", "0.6101865", "0.6099311", "0.609121", "0.6087621", "0.6074702", "0.60311085", "0.60041046", "0.5974798", "0.59002495", "0.5862261", "0.584754...
0.67671245
0
Crop im patches in roi to roi_shape, for roi exceed the image border, the exceeded part will be padded with CONSTANT
def q7d4(Xn71, Zmw9, Czcj): Zmw9 = [int(Ty9i) for Ty9i in Zmw9] YVc1 = nDUm(Zmw9, Xn71.shape[0], Xn71.shape[1]) if len(Xn71.shape) == 3: KuWE = Xn71[YVc1[1]:YVc1[3] + 1, YVc1[0]:YVc1[2] + 1, :] else: KuWE = Xn71[YVc1[1]:YVc1[3] + 1, YVc1[0]:YVc1[2] + 1] KuWE = XC5k.copyMakeBorder(KuW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGwo(LNo8, VoQr=5):\n YkMR = oyIN.min(LNo8.shape[:-1]) / 3\n YkMR = 1250 / 3040 * LNo8.shape[0]\n Kw0q = 1400 / 3040 * LNo8.shape[0]\n yi61 = 5\n rVPs = oyIN.arange(YkMR / yi61, Kw0q / yi61, dtype=int)\n st9R = O_21(XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY), block_size=(yi61, yi61), func=oyIN....
[ "0.68385917", "0.66451854", "0.6622556", "0.6521294", "0.643662", "0.6343203", "0.63340867", "0.6326632", "0.6288151", "0.624164", "0.6209751", "0.6176221", "0.6164662", "0.6159501", "0.61467105", "0.612943", "0.61096877", "0.6103646", "0.60849315", "0.60848236", "0.6033581",...
0.73100436
0
Open the folder where the user can find the index.html
def p_Rw(): Rci7 = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'Overlay') Hy7s.startfile(Rci7) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n pmON = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo))))\n return WsL5.send_from_directory(pmON, 'index.html')", "def XnFF() -> None:\n pmON = Hy7s.path.abspath(Hy7s.path.join('docs', '_build', 'html', 'index.html'))\n HywK.open('file:{}'.format(Mbjs(pmON)))...
[ "0.719159", "0.709692", "0.70734644", "0.70467585", "0.6931037", "0.68601835", "0.6748647", "0.6679702", "0.66267544", "0.65869564", "0.65509415", "0.65325326", "0.6487669", "0.64654833", "0.6386996", "0.6386996", "0.6382093", "0.6362538", "0.6344262", "0.63437283", "0.634191...
0.0
-1
Return the next incoming message, or None.
def NMoC(YKHO) -> h8nf[LuKW]: YKHO._recv() if not YKHO.inq: return None return YKHO.inq.popleft()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SniP(YKHO) -> h8nf[vM0C]:\n if YKHO._message_queue:\n return YKHO._message_queue[0]\n return None", "def next(YKHO):\n return YKHO.read_message()", "def WDI7(YKHO):\n tO9_ = (yield YKHO._read_message())\n Ol8d = YKHO._slack_to_chat(tO9_)\n raise eK5b.Return(Ol8d)", "def j13D(YKHO...
[ "0.76224434", "0.7564444", "0.73862785", "0.73065007", "0.7271155", "0.6760277", "0.6714227", "0.6644705", "0.6556972", "0.65248907", "0.65015286", "0.64481586", "0.64481586", "0.6423073", "0.64031965", "0.6354807", "0.6292259", "0.62855977", "0.62801737", "0.6219951", "0.621...
0.6633631
8
Returns a list with tangents.
def jpPz(Z5kt, yKcO, JCyR, tpM7, aWuw): for WKvO in range(yKcO, Z5kt): LVAh = abs(round(JCyR * epAf.tan(WKvO))) if tpM7 and LVAh >= JCyR: aWuw.append(JCyR) elif LVAh < yKcO: aWuw.append(yKcO) else: aWuw.append(LVAh) return aWuw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LrGa(YKHO):\n Uyfy = []\n for gEmA in YKHO.structure:\n Uyfy.append(gEmA.losstangent)\n Uyfy = oyIN.asarray(Uyfy)\n return Uyfy", "def v1J5(YKHO) -> x1iM[wQrk]:\n v1J5 = []\n YKHO.lattice.to_node(YKHO._root)\n GDCu = YKHO.lattice.tone\n v1J5.append(GDCu)\n for Q6kx in YKHO._...
[ "0.63627243", "0.6088749", "0.6019941", "0.60162455", "0.5794604", "0.57543457", "0.5738281", "0.5691239", "0.5656807", "0.56420535", "0.5641739", "0.5607816", "0.56041116", "0.559891", "0.55412775", "0.55209935", "0.5512424", "0.5488213", "0.5480994", "0.54768986", "0.546889...
0.6897741
0
Method to price the title whose price is greater than 10
def s6gO(qoqK): for ZfUD in nPrm: if ZfUD['price'] > qoqK: print(f'{ZfUD['title']} - ${ZfUD['price']}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Crw3():\n EiNU = QePW.args.get('title', type=str)\n hI0L = nxE7().get_cheapest_price(EiNU)\n if hI0L is None:\n return qQXR.dumps({'Message': 'Movie: {} not found in Database'.format(EiNU)})\n return qQXR.dumps({'Cheapest Price': hI0L})", "def VEot(hI0L):\n if hI0L == 0:\n return...
[ "0.6196011", "0.57131463", "0.5539565", "0.5521254", "0.5416705", "0.5416705", "0.54031914", "0.5355749", "0.5255636", "0.5178842", "0.51746535", "0.51074684", "0.50964427", "0.5087415", "0.50726736", "0.5067845", "0.5049526", "0.5046129", "0.50360125", "0.50360125", "0.50159...
0.62904495
0
Get all data out of a given window and specified datatype as one concatenated numpy array
def yLtf(w_5H, SLLj='eeg', qPJ2=1, nrYB='end', vgR6=True, o7sj=1): print('Assembling %s-data...' % SLLj) nPrm = None beOw = None NG7L = None jEa4 = 0 for tZuJ, ufJO in enumerate(w_5H): if tZuJ + 1 >= qPJ2 and (nrYB == 'end' or tZuJ + 1 <= nrYB): FoVN = ufJO.get(SLLj + '_t') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def klkb(oxOY, KnxT):\n VXjJ = oxOY.read(window=KnxT)\n VXjJ = oyIN.nan_to_num(VXjJ)\n return oyIN.dstack(VXjJ)", "def NxrV(EcVT, XfQO):\n return EcVT[int(len(EcVT) / 2 - XfQO / 2):int(len(EcVT) / 2 + XfQO / 2)]", "def q4_r(jQ3Z, WEZm=30, J5Cg=True):\n NxrV = []\n for or8S in range(len(jQ3Z) ...
[ "0.64554316", "0.63469887", "0.6268066", "0.61989725", "0.6115951", "0.60341376", "0.6033179", "0.58277965", "0.58127755", "0.58004457", "0.5738708", "0.5728878", "0.57101095", "0.568578", "0.56524074", "0.5640277", "0.55730796", "0.55456245", "0.55336714", "0.54446507", "0.5...
0.6122942
4
Return a random item from objects, with the weighting defined by weights (which must sum to 1).
def h4vZ(_mSQ, ei4T, jjAE=False, Cwt5=None): if jjAE: _mSQ = N93T(_mSQ) if Cwt5: _mSQ = NkkI([yzQ0 ** Cwt5 for yzQ0 in _mSQ]) gtI8 = oyIN.cumsum(_mSQ) or8S = sum(gtI8 < oyIN.random.rand()) or8S = min(or8S, len(ei4T) - 1) return ei4T[or8S]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KsS5(DumB, upAO):\n if not DumB:\n return None\n r8o1 = sum((upAO(ZfUD) for ZfUD in DumB))\n if r8o1 <= 0:\n return None\n Acvy = tuKI.random() * r8o1\n for ZfUD in DumB:\n Acvy -= upAO(ZfUD)\n if Acvy < 0:\n return (ZfUD, upAO(ZfUD) / r8o1)\n return (Du...
[ "0.8232875", "0.8023901", "0.7976897", "0.7829642", "0.74939483", "0.73604226", "0.72422147", "0.72010034", "0.70591706", "0.7030185", "0.69868577", "0.694016", "0.6894556", "0.68806297", "0.67831165", "0.6754186", "0.671347", "0.661183", "0.65937495", "0.65907925", "0.657915...
0.79973876
2
Branch (add value to PC) iff reg.V is 0 Value in this case should be an actual signed Python integer! ("relative" addressing)
def Meh2(YKHO, BWXx): if not YKHO.reg.V: YKHO.reg.PC += BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Udcw(YKHO):\n rRzo = YKHO.opcode & 4095\n YKHO.pc = rRzo + YKHO.registers[0]\n bo34.info('Jumped to {} + V0 = {}'.format(hex(rRzo), hex(YKHO.pc)))", "def JrAl(YKHO, BWXx):\n if YKHO.reg.V:\n YKHO.reg.PC += BWXx", "def K7io(YKHO, d7pR):\n YKHO.pc += d7pR if not YKHO.p & PtXs.FLAG_OVERF...
[ "0.695059", "0.66901183", "0.64954895", "0.63175493", "0.59379774", "0.58913374", "0.57707363", "0.5744501", "0.5618458", "0.56126374", "0.55065113", "0.5506359", "0.5483078", "0.5482279", "0.5463976", "0.5438677", "0.5381537", "0.5365968", "0.5348135", "0.5345493", "0.533532...
0.6949504
1
Subtract value from A with borrow. There is no "subtract without carry" instruction. The result depends on the C flag, so when performing single precision math, or just before the first operation of multi precision math, the C flag must be set with SEC before this operation. The D flag changes the behavior of this oper...
def Ka2Z(YKHO, BWXx): if YKHO.reg.D: Aofo = EMt1(YKHO.reg.A) - WMHk(BWXx) - 1 if not YKHO.reg.C else 0 YKHO.reg.V = Aofo > 99 or Aofo < 0 else: Aofo = YKHO.reg.A - BWXx - 1 if not YKHO.reg.C else 0 YKHO.reg.V = Aofo > 127 or Aofo < 128 YKHO.reg.C = Aofo >= 0 YKHO.reg.N = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wncN(YKHO):\n return YKHO._do_calc(YKHO.subtracter)", "def wncN(YKHO):\n return YKHO._do_calc(YKHO.subtracter)", "def wncN(YKHO):\n return YKHO._do_calc(YKHO.subtracter)", "def wncN(YKHO, BWXx):\n return YKHO.number - BWXx", "def wncN(yLHq, RKYb):\n return sfxH.subtract(yLHq, RKYb)", "...
[ "0.6452207", "0.6452207", "0.6452207", "0.62459534", "0.6044543", "0.5926639", "0.5926639", "0.5880037", "0.5836115", "0.583594", "0.5803806", "0.57861006", "0.5756675", "0.56939757", "0.5678376", "0.5666259", "0.56644523", "0.56499827", "0.5639662", "0.5623465", "0.55997086"...
0.0
-1
Initializes a new environment from a Markov Decision Process. Here, the environment is simply a wrapper around the MDP, to avoid modelfree agents from accessing the mdp.
def FIMM(YKHO, _2J8): YKHO._mdp = _2J8 YKHO._prev_state = None YKHO._cur_state = None YKHO.reset()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, _2J8: MDP, KMvS: float):\n YKHO.mdp: _EA5 = _2J8\n YKHO.gamma: float = KMvS\n YKHO.action_dim: int = len(YKHO.mdp.actions)\n YKHO.state_dim: int = len(YKHO.mdp.states)", "def FIMM(YKHO, _omM, Mwgh, ouh5, CGbr, Q1EH):\n YKHO.latent_variable_markov_chain = hL9B(transition_matrix=CGbr,...
[ "0.63633066", "0.5757695", "0.5756405", "0.57562727", "0.56806624", "0.5668479", "0.5593309", "0.5574381", "0.55500495", "0.55363524", "0.5524511", "0.5509023", "0.55053985", "0.5485119", "0.5463489", "0.54363626", "0.5436168", "0.5435984", "0.5420028", "0.54045576", "0.53939...
0.5553192
8
Gets the id of this BundleData.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO):\n return YKHO.data.id", "def id(YKHO):\n return YKHO.get_data('id')", "def id(YKHO):\n return YKHO.cached_data['id']", "def id(YKHO):\n return YKHO.data['id']", "def mLJR(YKHO):\n return YKHO.__id", "def mLJR(YKHO):\n return YKHO.identifier", "def id(YKHO):\n return s...
[ "0.7993542", "0.78020614", "0.7697586", "0.7644942", "0.7557508", "0.754782", "0.753856", "0.75210863", "0.75117254", "0.75117254", "0.75117254", "0.75117254", "0.75117254", "0.75117254", "0.75058424", "0.74651766", "0.74651766", "0.7458155", "0.7399949", "0.7399949", "0.7373...
0.0
-1
Sets the id of this BundleData.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: i...
[ "0.80261594", "0.76955223", "0.7620066", "0.7560615", "0.7512953", "0.73404366", "0.7221408", "0.7221408", "0.7221408", "0.7221408", "0.7221408", "0.7221408", "0.7221408", "0.7221408", "0.7221408", "0.7221408", "0.72040695", "0.72040695", "0.72040695", "0.72040695", "0.720406...
0.0
-1
Gets the name of this BundleData.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._data.get('name')", "def mWFP(YKHO):\n return YKHO._data.get('name')", "def mWFP(YKHO) -> str:\n return YKHO.data['name']", "def mWFP(YKHO):\n return YKHO._data['name']", "def W0tD(YKHO):\n return YKHO._assets[0].get_name()", "def mWFP(YKHO):\n return YKHO....
[ "0.78380805", "0.78380805", "0.77565706", "0.76592207", "0.7658586", "0.75244033", "0.74948406", "0.7459877", "0.72983783", "0.7269484", "0.7269484", "0.72646105", "0.72646105", "0.72646105", "0.7263745", "0.7263745", "0.7260355", "0.7260355", "0.7260355", "0.7260355", "0.726...
0.0
-1
Sets the name of this BundleData.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n Csk6 = WmlO(mWFP, canonical=0)\n YKHO.data.update(Csk6)", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP):...
[ "0.7634631", "0.75935215", "0.75935215", "0.75646794", "0.7558559", "0.7533571", "0.7533571", "0.7533571", "0.7533571", "0.7533571", "0.7512393", "0.7501782", "0.74841654", "0.7484142", "0.74551815", "0.7428904", "0.7364356", "0.7364356", "0.7310273", "0.729297", "0.72824687"...
0.0
-1
Gets the fragment of this BundleData.
def vBtp(YKHO): return YKHO._fragment
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PfzJ(YKHO):\n return YKHO.fragment", "def vBtp(YKHO, YRbF):\n return YKHO.__fragments[YRbF]", "def SKf7(YKHO):\n return YKHO.atom2.fragment", "def fpU_(YKHO):\n return YKHO.atom1.fragment", "def vBtp(YKHO):\n U5bT = L3iJ.xmlURIGetFragment(YKHO._o)\n return U5bT", "def PfzJ(YKHO, GWK...
[ "0.8382749", "0.7109965", "0.70525736", "0.70437914", "0.69657123", "0.6365712", "0.6173683", "0.6054858", "0.60012895", "0.5999351", "0.5891066", "0.58721024", "0.5869638", "0.5759417", "0.5730933", "0.5730933", "0.5695475", "0.56554663", "0.5653807", "0.5630593", "0.561723"...
0.8277337
2
Gets the state_raw of this BundleData.
def kFZ8(YKHO): return YKHO._state_raw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Go7Q(YKHO):\n return YKHO.state.read()", "def SwtT(YKHO):\n return YKHO.__data", "def ja6o(YKHO, PWgb=True):\n if PWgb:\n return YKHO.data.flatten()\n return YKHO.data", "def WPdU(YKHO):\n return YKHO._raw_data", "def WPdU(YKHO):\n return YKHO._raw_data", "def m6Me(YKHO):\n ...
[ "0.6994774", "0.6834259", "0.68261534", "0.6793049", "0.6793049", "0.6771857", "0.6771857", "0.6767914", "0.67132974", "0.67132974", "0.67132974", "0.67063105", "0.6705976", "0.6693949", "0.6693949", "0.665564", "0.665564", "0.665564", "0.665564", "0.665564", "0.6640231", "...
0.8296527
0
Gets the state of this BundleData.
def QTBn(YKHO): return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GBfH(YKHO):\n return YKHO._state", "def GBfH(YKHO):\n return YKHO._state", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def QTBn(YKHO):\n return ja6o(YKHO.context)", ...
[ "0.7211643", "0.7211643", "0.71866286", "0.71866286", "0.71866286", "0.71478736", "0.71189123", "0.7111284", "0.7111284", "0.7108327", "0.70718616", "0.7062254", "0.70592684", "0.70592684", "0.70592684", "0.70592684", "0.70592684", "0.70095944", "0.7002295", "0.70010406", "0....
0.6889595
92
Gets the version of this BundleData.
def DpZH(YKHO): return YKHO._version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpZH(YKHO):\n YKHO._get_latest_content()\n return YKHO._data.get('version', None)", "def NMoC(YKHO):\n return YKHO._version", "def kaPv(YKHO):\n return YKHO.bot_data_file['version']", "def kaPv(YKHO):\n return YKHO.version", "def kaPv(YKHO):\n return YKHO._version", "def kaPv(YKHO):...
[ "0.7986123", "0.7842065", "0.78287953", "0.7810673", "0.7808112", "0.7808112", "0.77169", "0.7612671", "0.7504083", "0.74991596", "0.74904627", "0.744253", "0.7440762", "0.74134725", "0.7407533", "0.7395193", "0.7395193", "0.7385138", "0.7369674", "0.7328445", "0.73139316", ...
0.73966914
24
Gets the symbolic_name of this BundleData.
def HxsK(YKHO): return YKHO._symbolic_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO._assets[0].get_name()", "def Q0HP(YKHO):\n return _VfD.SBase_getName(YKHO)", "def Q0HP(YKHO):\n N8fB = YKHO.__dict__\n Aofo = YKHO.varName\n if Aofo is None:\n Aofo = YKHO.chemComp.name\n return Aofo", "def mWFP(YKHO) -> 'Literal[\"Dynamic Reverse Addres...
[ "0.69435036", "0.680412", "0.680226", "0.6674899", "0.6644658", "0.6644658", "0.6644658", "0.6628439", "0.6628439", "0.6628439", "0.6628439", "0.6628439", "0.6628439", "0.6628439", "0.6628439", "0.6628439", "0.6628439", "0.6617772", "0.657846", "0.6565835", "0.6563871", "0....
0.8044188
0
Sets the symbolic_name of this BundleData.
def HxsK(YKHO, HxsK): YKHO._symbolic_name = HxsK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n Csk6 = WmlO(mWFP, canonical=0)\n YKHO.data.update(Csk6)", "def HxsK(YKHO):\n return YKHO._symbolic_name", "def mWFP(YKHO, mWFP):\n YKHO.__name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP)...
[ "0.64977175", "0.62238514", "0.62230414", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.62172896", "0.6214377", "0.6200131", "0.6196828", "0.6196828", "0.6196828", "...
0.8104645
0
Sets the category of this BundleData.
def Ghho(YKHO, Ghho): YKHO._category = Ghho
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ials(YKHO, Ghho):\n if Ghho is not None and (not isinstance(Ghho, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: category EXPECTED TYPE: str', None, None)\n YKHO.__category = Ghho\n YKHO.__key_modified['category'] = 1", "def Ghho(YKHO, Ghho: str):\n YKHO._category = Ghho", "async def se...
[ "0.7663887", "0.75193095", "0.7253486", "0.721092", "0.6711975", "0.66497165", "0.65914714", "0.6495867", "0.6369205", "0.6305242", "0.6304786", "0.61549175", "0.6100933", "0.60296327", "0.5979948", "0.5969043", "0.596822", "0.5872289", "0.5727447", "0.5719059", "0.56897515",...
0.749508
6
Deprecated. For large values of (ba), this algorithm does not produce integers uniformly at random. Generate random integers between a (inclusive) and b (exclusive). size controls the number of ints generated. If size=None, just one is produced. >>> r = SHA256(12345678901234567890) >>> r.randint_trunc(0, 5, size=3) arr...
def mLpQ(YKHO, jzdc, Fg_i, zNig=None): assert jzdc <= Fg_i, 'lower and upper limits are switched' if zNig == None: return jzdc + YpmE(YKHO.nextRandom()) % (Fg_i - jzdc) else: return oyIN.reshape(oyIN.array([jzdc + YpmE(YKHO.nextRandom()) % (Fg_i - jzdc) for YRbF in range(oyIN.prod(zNig))]), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOJX(jzdc=0, Fg_i=0, zNig=None):\n return oyIN.random.randint(jzdc, Fg_i + 1, zNig)", "def zdx3(max, zNig):\n DNs0 = set()\n rbcR = zNig - len(DNs0)\n while rbcR > 0:\n DNs0 = DNs0.union(set(oyIN.random.random_integers(0, max, size=rbcR)))\n rbcR = zNig - len(DNs0)\n return DNs0"...
[ "0.7028638", "0.6232695", "0.621887", "0.6110286", "0.60755926", "0.6027315", "0.60070103", "0.59265006", "0.58912647", "0.5865617", "0.5823179", "0.5817858", "0.5789675", "0.57682735", "0.5765373", "0.5760699", "0.57520103", "0.5747073", "0.57384336", "0.5712901", "0.5711520...
0.7679753
0
Loads the experiment from the last checkpoint saved on disk.
def tyeH(YKHO): vauY = ht2j.load(YKHO.checkpoint_path, map_location=YKHO.device) YKHO.load_state_dict(vauY) del vauY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO, V1C0):\n SWox = ITS7.time()\n ZhT8 = OLsO.get_latest_chekpoint(V1C0)\n if ZhT8 is not None:\n vauY = ZylS.train.Checkpoint(model=YKHO)\n vauY.restore(ZhT8).expect_partial()\n G9jH.info('Loaded checkpoint %s', ZhT8)\n G9jH.info('Loading model took %.1f seconds', I...
[ "0.7074558", "0.69380623", "0.6897599", "0.6731044", "0.67247134", "0.6719498", "0.67053634", "0.66839665", "0.66660076", "0.66653275", "0.66326165", "0.6632461", "0.6618413", "0.6605635", "0.6596994", "0.65559614", "0.654627", "0.654627", "0.6541026", "0.65285873", "0.652751...
0.65949893
15
Filters out the noningredient text from ingredient_list
def j2aM(WsAm): hwHU = set(di0c.words('english')) THI6 = [] mWv7 = 0 for e1T3 in set(WsAm): for GIN8 in e1T3: if GIN8 in hwHU: e1T3.replace(GIN8, '') for GIN8 in dFss(e1T3): R8gZ = JWIz(GIN8) if R8gZ == True: mWv7 = 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V2U6(YKHO):\n zKHR = YKHO.cleaned_data['ingredients']\n if len(zKHR) < 1:\n iaxi('no_ing')\n return zKHR", "def etG6(YKHO, zKHR):\n hpNA = {'cointreau': 'triple sec', '&': 'and'}\n y4ba = []\n for YRbF in zKHR:\n YRbF = YRbF.lower().strip()\n if YRbF in hpNA:\n ...
[ "0.6433739", "0.6341366", "0.6117501", "0.6065277", "0.6030242", "0.6029495", "0.59791374", "0.5891693", "0.58692497", "0.58037376", "0.57633567", "0.5692679", "0.56882447", "0.56532246", "0.56524545", "0.56494087", "0.5577311", "0.557316", "0.5557149", "0.5539052", "0.553758...
0.82023585
0
Either get the nonempty string from the given arg or None if it is not a nonempty string.
def hKOG(d7pR: Any) -> h8nf[str]: if isinstance(d7pR, str): if len(d7pR) > 0: return str(d7pR) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dQKU(wEf2):\n return str(wEf2) if wEf2 is not None else None", "def kuUd(I_Ra):\n if I_Ra is None:\n return ''\n else:\n return str(I_Ra)", "def yjsX(BWXx):\n return str(BWXx) if BWXx is not None else None", "def clZj(KCHu):\n if KCHu is None:\n return ''\n else:\n ...
[ "0.7335188", "0.6678961", "0.665863", "0.66474926", "0.6614511", "0.65398073", "0.65166414", "0.65152097", "0.6483067", "0.6417797", "0.6320014", "0.6248574", "0.6188248", "0.6172345", "0.61203074", "0.60948366", "0.6094116", "0.60602725", "0.60536414", "0.60196376", "0.60143...
0.90577847
0
Return the mapping of valid actions > functions for each action of the commandline driver.
def Icqw(YKHO) -> cuzp[str, jxQk]: return JBVv({'dump': YKHO.dump_action, 'dump-macrosizes': YKHO.dump_macrosizes_action, 'dump_macrosizes': YKHO.dump_macrosizes_action, 'synthesis': YKHO.synthesis_action, 'syn': YKHO.synthesis_action, 'par': YKHO.par_action, 'synthesis_to_par': YKHO.synthesis_to_par_action, 'synth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mPuu():\n xASv = {'interact': LBV6, 'countdata': Fk58, 'filter': pq5f, 'explain': oZ4f, 'predict': vQCi, 'self': RSF7, 'previousfilter': TAlw, 'previousoperation': qbM2, 'data': UcF4, 'followup': nYhK, 'important': sar7, 'show': lgWf, 'change': BoFi, 'likelihood': RRUJ, 'model': GYa2, 'function': qvxi, 'sco...
[ "0.7790003", "0.7093", "0.70017946", "0.68463665", "0.6616161", "0.65874755", "0.6495295", "0.64654446", "0.6436248", "0.64319164", "0.6387486", "0.6387062", "0.63831264", "0.63044566", "0.62964267", "0.62928563", "0.62753963", "0.6253231", "0.6249312", "0.6233403", "0.623294...
0.7570941
1
Get the action associated with hierarchical synthesis for the given module (in hierarchical flows).
def d6y0(YKHO, yR_P: str) -> C0e6: return YKHO.hierarchical_synthesis_actions[yR_P]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tK07(YKHO, yR_P: str) -> C0e6:\n return YKHO.hierarchical_synthesis_par_actions[yR_P]", "def CrPO(YKHO, yR_P: str) -> C0e6:\n return YKHO.hierarchical_par_actions[yR_P]", "def c7XA(YKHO, yR_P: str) -> C0e6:\n return YKHO.hierarchical_lvs_actions[yR_P]", "def f4M1(YKHO, yR_P: str) -> C0e6:\n r...
[ "0.7943216", "0.69501436", "0.69203", "0.6841573", "0.68044233", "0.6352806", "0.527317", "0.5265334", "0.5186572", "0.51720726", "0.5132428", "0.5107374", "0.5105747", "0.5105747", "0.50707525", "0.50657314", "0.50553584", "0.50553584", "0.50553584", "0.50553584", "0.5054452...
0.839434
0
convert the str to idx
def yv7R(Nqlg): for or8S, vC9B in enumerate(Nqlg): nYgI = [] for Ty9i in vC9B: try: nYgI.append(tTI1[Ty9i]) except KeyError: nYgI.append(tTI1['<unk>']) Nqlg[or8S] = nYgI return Nqlg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rk5C(YKHO, str):\n return YKHO._tokens.get(str)", "def sDB2(KCHu):\n KCHu = CBky(KCHu)\n if KCHu == '.':\n return ()\n return tuple(KCHu.split('/'))", "def Vn7Z(KCHu):\n return int(KCHu[KCHu.find('[') + 1:KCHu.find(']')])", "def UnoO(Oz57):\n vSkR = {}\n for yp32 in Oz57:\n ...
[ "0.72031957", "0.69162637", "0.69039434", "0.63824725", "0.6349515", "0.63313925", "0.6326018", "0.6311505", "0.62847304", "0.62830055", "0.62416375", "0.62346184", "0.61912984", "0.6161285", "0.61554456", "0.6149349", "0.6138915", "0.6112269", "0.61050415", "0.6065613", "0.6...
0.0
-1