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
Returns a random string of len n alphabets
def L3fi(exwG): zrIJ = 'abcdefghijklmnopqrstuvwxyz' ycBG = '' for YRbF in range(0, exwG): ycBG += zrIJ[tuKI.randrange(0, 26)] return ycBG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hcjz(exwG):\n return ''.join((tuKI.choice(vIwR.ascii_letters) for bGrB in range(exwG)))", "def j9F_(exwG):\n k6Di = vIwR.digits + vIwR.letters\n return ''.join((tuKI.choice(k6Di) for YRbF in Ni9Y(exwG)))", "def Kp52(exwG=8):\n return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_letters) for b...
[ "0.866959", "0.86474377", "0.8476402", "0.84470123", "0.82001007", "0.8176532", "0.81700337", "0.8145675", "0.8053305", "0.7971005", "0.79663837", "0.7958915", "0.7939521", "0.7881841", "0.7871715", "0.7871162", "0.78622895", "0.78410995", "0.78336436", "0.7829303", "0.780922...
0.0
-1
Renders home Page via get request to server/short
def kZiy(): Vq3K = Q082() BdQM, LDBY, ISUs = r2Q1() bKeo, c8fo, kq72 = pVzt() return WsL5.render_template('home.html', tc=Vq3K, tl1=BdQM, tl2=LDBY, tl3=ISUs, bl1=bKeo, bl2=c8fo, bl3=kq72)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n YKHO.response.out.write(rPXJ.render('templates/home.html', None))", "def NMoC(YKHO):\n if YKHO.logged_in:\n YKHO.render('home.html', {'name': YKHO.current_user.name, 'server': YKHO.current_user.server, 'faction': mAA4.get(YKHO.current_user.faction), 'home': True, 'page_id': 'home'}...
[ "0.79069793", "0.78249097", "0.7647826", "0.7595297", "0.7578243", "0.7519296", "0.75190306", "0.7499392", "0.74986225", "0.74476576", "0.7447526", "0.74466145", "0.7434499", "0.7421663", "0.7421282", "0.7403467", "0.7392529", "0.7383648", "0.73749393", "0.73742604", "0.73733...
0.0
-1
Get root directory for ACIS load review data.
def Afr4(): _PL9 = GkAb('data', 'acis', 'LoadReviews') pmON = '/' / _PL9 if not pmON.exists(): pmON = Hy7s.environ['SKA'] / _PL9 if not pmON.exists(): raise FileNotFoundError('no available ACIS load review directory') return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rip8():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))", "def sc0A() -> str:\n return '{}/../'.format(_0jb(xAKo))", "def jNha():\n return GkAb(xAKo).parent.parent", "def jNha():\n return TLI7(TLI7(xAKo))", "def tTqh():\n return gnPz.path(xAKo).parent.parent.abspath()", "def rXG2(Y...
[ "0.68795156", "0.68111616", "0.67836326", "0.6776731", "0.6758963", "0.67408526", "0.67155176", "0.6695734", "0.6695734", "0.6682036", "0.66381526", "0.66070306", "0.65366346", "0.65323985", "0.65298766", "0.651896", "0.651377", "0.649836", "0.6481465", "0.64255357", "0.64240...
0.8542885
0
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.7605524", "0.74488467", "0.7404089", "0.7280915", "0.72097343", "0.7165874", "0.7157609", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.71317255", "0.71007556", "0.70663655", "0.7064473", "0.70627505", "0.70627505", "0.70627505", "0.70627...
0.70970625
28
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.74895597", "0.7288002", "0.7157488", "0.7152486", "0.7064426", "0.69853395", "0.6965261", "0.6953886", "0.6911727", "0.6832038", "0.6816865", "0.6808645", "0.6804309", "0.6804309", "0.6804309", "0.6804309", "0.6804309", "0.6804309", "0.678481", "0.67567295", "0.67567295", ...
0.6754354
40
return the row indices for columns values that match a list
def g5X0(jQ3Z, fvDH, T6S7): return list(jQ3Z[jQ3Z[fvDH].isin(T6S7)].index)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DzXR(FHs4, BPzD):\n io7Q = rLdf.DataFrame(BPzD, columns=['value'])\n kNqy = rLdf.DataFrame(list(zip(FHs4, oyIN.arange(len(FHs4)))), columns=['value', 'index'])\n bS0K = rLdf.merge(kNqy, io7Q, on='value', how='inner')['index'].values\n return bS0K", "def tzve(D4K0, ZLJ_):\n D4K0 = IPDI.parse_li...
[ "0.70611346", "0.6631404", "0.6606466", "0.64161843", "0.63754165", "0.6358775", "0.6354408", "0.63298845", "0.63192666", "0.63010293", "0.6225213", "0.6114995", "0.6109566", "0.603413", "0.5984162", "0.59210813", "0.5906775", "0.58362526", "0.58006567", "0.57381606", "0.5693...
0.64672875
3
Sigmoid function >>> _sigmoid(0) 0.5 >>> _sigmoid(1) 0.7310585786300049 >>> _sigmoid(1) 0.2689414213699951
def rh78(WKvO): tTpl = 0 try: tTpl = uxwj(-1 * WKvO) except OverflowError: return 0 return 1.0 / (1.0 + tTpl)
{ "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 rh78(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1.0 / (1.0 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + r8hN.exp(-WKvO))", "def m1Hg(WKvO):\n return ...
[ "0.8867749", "0.8867749", "0.8820854", "0.8809468", "0.879854", "0.87923795", "0.8770231", "0.87543714", "0.8750382", "0.87457734", "0.8743967", "0.8743967", "0.8743967", "0.8743967", "0.8743967", "0.8743967", "0.874201", "0.8739485", "0.8728379", "0.87266994", "0.87216115", ...
0.8325343
48
Returns the dot product of 2 lists >>> _mulVectors([1,2,3],[1,2,3]) 14
def neKu(mSn1, IP77): NUTV(mSn1, IP77) return sum([mSn1[YRbF] * IP77[YRbF] for YRbF in range(len(mSn1))])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pxL1(lSjb, v8Fa):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(lSjb, v8Fa)))", "def pxL1(lSjb, v8Fa):\n import operator\n return sum(map(operator.mul, lSjb, v8Fa))", "def uYbU(ENWa, ZoT5):\n return [gs46(q2Xo) for q2Xo in zip(ENWa, ZoT5)]", "def pxL1(hQHm, jlSq):\n return sum(JaxB(seET....
[ "0.82830745", "0.8274705", "0.81603265", "0.8138286", "0.8128611", "0.7960473", "0.7894801", "0.78153235", "0.77994186", "0.7692198", "0.7660522", "0.7660259", "0.7646072", "0.759312", "0.75843084", "0.7575049", "0.7569205", "0.75353223", "0.753392", "0.7532339", "0.7513424",...
0.8231128
2
Returns multiplication the scalor(S) and the list(X) >>> _scalorTimesVectors(10,[1,2,3]) [10, 20, 30]
def YLPB(o4sw, EcVT): return [o4sw * WKvO for WKvO in EcVT]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zerF(E3D9, WKvO):\n return [BJ1H(r8hN, WKvO) for r8hN in E3D9]", "def Fh_f(WKvO, E3D9):\n return [BJ1H(r8hN, WKvO) for r8hN in l7uB(E3D9)]", "def ywW_(KCHu, Ty9i):\n AW02 = []\n for YRbF in range(len(Ty9i)):\n AW02 += [KCHu * Ty9i[YRbF]]\n print(AW02)", "def i6vy(KCHu: float, Ty9i: ...
[ "0.71496856", "0.64839834", "0.64722633", "0.6362707", "0.6230986", "0.6097502", "0.6097502", "0.60940933", "0.60169995", "0.59929883", "0.59902364", "0.59613544", "0.5954022", "0.59226525", "0.5910791", "0.5821028", "0.5761365", "0.5758822", "0.5741302", "0.5741302", "0.5724...
0.89016265
0
Same as _propagateInput; but applies softMax
def bjqc(YKHO, input): fuBA, Nk6w = YKHO._propagateInputRegression(input) try: C4WX = [uxwj(LVAh) for LVAh in fuBA] except OverflowError: C4WX = fuBA gqey = sum(C4WX) fuBA = [LVAh / gqey for LVAh in fuBA] return (fuBA, Nk6w)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(input, tpio, LpaZ=False):\n return o8DQ.apply('Softmax', input.device, [input], outputs=[input if LpaZ else None], axis=tpio)", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.expand_dims(oyIN.max(WKvO, axis=-1), axis=-1))\n return uw5A / oyIN.expand_dims(uw5A.sum(axis=-1), axis=-1)", "def c2K...
[ "0.7358187", "0.733919", "0.7335135", "0.7213284", "0.7121872", "0.7059022", "0.6995092", "0.69889367", "0.69882023", "0.69850385", "0.69782764", "0.69782764", "0.69633996", "0.6953128", "0.69064337", "0.6903798", "0.6893908", "0.6893709", "0.6890392", "0.6884067", "0.6876516...
0.0
-1
Returns the object as formatted machine tag string
def zAg0(YKHO): return YKHO.as_string()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.tag)", "def wHJl(YKHO):\n Kt_s = type(YKHO)\n yR_P = Kt_s.__name__\n R9U6 = '<%s object at %s> ' % (yR_P, hex(id(YKHO)))\n GTT9 = '%s %s' % (str(YKHO.Extnum).zfill(3), YKHO.Busnam)\n return R9U6 + GTT9", "def wHJl(YKHO):\n XP5J = YKHO\n return f'<tag_na...
[ "0.7103871", "0.6827557", "0.6750508", "0.66216487", "0.65445375", "0.6510715", "0.64833546", "0.6481327", "0.64623463", "0.6390252", "0.6380036", "0.63550663", "0.6253432", "0.6245985", "0.62190235", "0.618715", "0.61832076", "0.6156475", "0.6152409", "0.61367357", "0.613614...
0.0
-1
Returns the object as formatted machine tag string
def Ku9n(YKHO): return YKHO.as_string()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.tag)", "def wHJl(YKHO):\n Kt_s = type(YKHO)\n yR_P = Kt_s.__name__\n R9U6 = '<%s object at %s> ' % (yR_P, hex(id(YKHO)))\n GTT9 = '%s %s' % (str(YKHO.Extnum).zfill(3), YKHO.Busnam)\n return R9U6 + GTT9", "def wHJl(YKHO):\n XP5J = YKHO\n return f'<tag_na...
[ "0.7103871", "0.6827557", "0.6750508", "0.66216487", "0.65445375", "0.6510715", "0.64833546", "0.6481327", "0.64623463", "0.6390252", "0.6380036", "0.63550663", "0.6253432", "0.6245985", "0.62190235", "0.618715", "0.61832076", "0.6156475", "0.6152409", "0.61367357", "0.613614...
0.0
-1
Returns the object as formatted machine tag string
def CZBi(YKHO): if YKHO.is_machinetag(): return '%s:%s=%s' % (YKHO.namespace(), YKHO.predicate(), YKHO.value())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.tag)", "def wHJl(YKHO):\n Kt_s = type(YKHO)\n yR_P = Kt_s.__name__\n R9U6 = '<%s object at %s> ' % (yR_P, hex(id(YKHO)))\n GTT9 = '%s %s' % (str(YKHO.Extnum).zfill(3), YKHO.Busnam)\n return R9U6 + GTT9", "def wHJl(YKHO):\n XP5J = YKHO\n return f'<tag_na...
[ "0.71001315", "0.6824062", "0.67462415", "0.6617398", "0.65402365", "0.65108865", "0.6480036", "0.6478072", "0.64599264", "0.6386173", "0.637718", "0.63531446", "0.62520564", "0.62446433", "0.621494", "0.6183751", "0.6180092", "0.61537206", "0.614988", "0.61344665", "0.613154...
0.0
-1
Return the total of additional charges.
def _JkJ(YKHO) -> int: wjRY = 0 fEb7 = YKHO.additional_charges if fEb7: for WJkG in fEb7: wjRY += WJkG['amount'] return wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5kt(YKHO):\n return YKHO.subtotal + YKHO.tax_subtotal + YKHO.shipping", "def WJkG(YKHO):\n return sum(YKHO.charges)", "def zSxe(YKHO) -> ZjSO:\n return YKHO.total_principal + YKHO.total_interest", "def h4aS(YKHO):\n wjRY = 0.0\n for AliE in YKHO.drinks:\n wjRY = wjRY + AliE.get_pri...
[ "0.71277267", "0.6898946", "0.686973", "0.68688905", "0.6762035", "0.67555", "0.67554235", "0.6713518", "0.6709337", "0.66825026", "0.66805965", "0.6660872", "0.6645491", "0.6633959", "0.6617896", "0.6608641", "0.65867007", "0.6585712", "0.65786225", "0.65693843", "0.65225285...
0.8809694
0
Calculate the total order price.
def hGE6(YKHO, hX5H: int): hX5H = hX5H if hX5H else 0 _JkJ = YKHO.total_additional_charges YKHO.total_order_price = hX5H + _JkJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def woGg(YKHO) -> ZjSO:\n woGg: ZjSO = F7ib\n bSsb: diXh\n for bSsb in YKHO.orderitem_set.all():\n woGg += bSsb.total_price\n return woGg", "def OCe_(YKHO):\n woGg = 0.0\n for G1Hx, Ty9i in YKHO.order.product_orders.items():\n woGg += Ty9i.quantity * Ty9i.product.price\n return...
[ "0.83223325", "0.82050586", "0.7994789", "0.7868834", "0.7810966", "0.7788873", "0.7599784", "0.75187224", "0.745326", "0.73647016", "0.72929054", "0.72782385", "0.71961635", "0.7182522", "0.7109604", "0.70727783", "0.70621794", "0.7007578", "0.7005158", "0.70008516", "0.6957...
0.79973507
2
Update timezone on this object.
def bhL2(YKHO, rIAI): if rIAI: YKHO.timezone = rIAI for TMbP in YKHO.assignments: TMbP.timezone = rIAI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIAI(YKHO, rIAI):\n YKHO._timezone = rIAI", "def rIAI(YKHO, rIAI):\n YKHO._timezone = rIAI", "def rIAI(YKHO, rIAI):\n YKHO._timezone = rIAI", "def rIAI(YKHO, rIAI):\n YKHO._timezone = rIAI", "def rIAI(YKHO, rIAI):\n YKHO._timezone = rIAI", "def D1G8(YKHO, wnl6):\n YKHO.startdate = w...
[ "0.7293421", "0.7293421", "0.7293421", "0.7293421", "0.7293421", "0.7084848", "0.6954386", "0.68341845", "0.67567706", "0.6608798", "0.650565", "0.6438456", "0.6384529", "0.63625956", "0.6343353", "0.62989914", "0.6144597", "0.6111283", "0.6052086", "0.59976226", "0.5967071",...
0.67165744
9
Return a summarized version of the dict representation of this Class. Used to serialize this object within a parent object serialization.
def xm2u(YKHO) -> dict: nPrm = super().to_summary_dict() return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n nPrm = {}\n for G1Hx, Ty9i in YKHO.__dict__.items():\n if not G1Hx.startswith('__'):\n nPrm[G1Hx] = Ty9i\n return nPrm", "def xCw4(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YKHO.__dict__", "def d...
[ "0.7485321", "0.7435844", "0.7396368", "0.7396368", "0.7396368", "0.7396368", "0.7396368", "0.7396368", "0.7396368", "0.7373088", "0.7370362", "0.73304975", "0.7199172", "0.71921366", "0.71906865", "0.71906865", "0.71895695", "0.71789163", "0.7176082", "0.71306425", "0.713057...
0.73290676
12
Return a summarized version of the dict representation of this Class. Used to serialize this object within a parent object serialization.
def ib3W(YKHO) -> dict: nPrm = super().to_listing_dict() return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n nPrm = {}\n for G1Hx, Ty9i in YKHO.__dict__.items():\n if not G1Hx.startswith('__'):\n nPrm[G1Hx] = Ty9i\n return nPrm", "def xCw4(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YKHO.__dict__", "def d...
[ "0.74855953", "0.7438117", "0.7397653", "0.7397653", "0.7397653", "0.7397653", "0.7397653", "0.7397653", "0.7397653", "0.73732865", "0.73712736", "0.733187", "0.73316944", "0.7199134", "0.7193921", "0.71912485", "0.71912485", "0.71898353", "0.7178618", "0.7177354", "0.7132634...
0.0
-1
Return a dict representation of this object.
def MNRr(YKHO, j28w: list=None, YBft: list=None): nPrm = super().to_dict(excludes=j28w, includes=YBft) nPrm['assignments'] = [] for TMbP in YKHO.assignments: knHb = TMbP.to_summary_dict() knHb = TMbP._apply_actors_info(knHb) nPrm['assignments'].append(knHb) if nPrm['assignments']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n return MNRr(YKHO.__dict__)", "def MNRr(YKHO):\n return dict(YKHO)", "def _fYl(YKHO):\n return YKHO.__dict__", "def lKKu(YKHO) -> dict:\n return YKHO.__asdict(YKHO)", "def _fYl(YKHO):\n return lKKu(YKHO)", "def _fYl(YKHO):\n return dict(YKHO.as_OD())", "def MNRr(YKHO)...
[ "0.87598675", "0.87571734", "0.87526554", "0.8736366", "0.868089", "0.86781913", "0.86670786", "0.86670786", "0.86670786", "0.86670786", "0.86670786", "0.86670786", "0.86561584", "0.8653764", "0.86528087", "0.8652068", "0.8648578", "0.8631791", "0.8631791", "0.8631791", "0.86...
0.0
-1
Returns the os_path.getsize for the file. Raises an exception if this file does not match the ContentLength stored in the metadata, or if self.data_file does not exist.
def uSdi(YKHO): if YKHO._is_dir: return 0 try: mfF2 = 0 if YKHO.data_file: def wq89(): mfF2 = JakV.getsize(YKHO.data_file) if hRKQ in YKHO.metadata: Vqke = int(YKHO.metadata[hRKQ]) if mfF2 != Vqke: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZkV(YKHO):\n try:\n return Hy7s.path.getsize(YKHO.get_full_path())\n except Exception as e:\n raise SystemExit(f'Could not complete operation: {tTpl}')", "def cZkV(YKHO) -> int:\n return YKHO.get_main_information()['FileSize']", "def mfF2(YKHO):\n if YKHO.fn is not None:\n ...
[ "0.79786485", "0.7814883", "0.7777612", "0.77536684", "0.77322346", "0.7623396", "0.75644994", "0.75169563", "0.7512192", "0.7489603", "0.74549216", "0.7409969", "0.73295546", "0.73295546", "0.7328553", "0.72921497", "0.7287917", "0.7287917", "0.72554785", "0.7225872", "0.722...
0.8455884
0
Convert a python datetime to DateTime. >>> import time, os >>> oldtz = os.environ['TZ'] >>> os.environ['TZ'] = 'Brazil/East' >>> time.tzset() >>> brt = gettz('Brazil/East') No timezone information, assume local timezone at the time. >>> dt2DT(datetime.datetime(2005, 11, 07, 18, 0, 0))
def tfkx(JRYC, tAkU=None): if tAkU is None and JRYC.tzinfo is None: yl4j = wn9J() elif tAkU is not None: yl4j = wn9J(tAkU) else: yl4j = None if yl4j is not None: JRYC = JRYC.replace(tzinfo=yl4j) return cJ1g(JRYC.isoformat())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bjbe(JRYC):\n yl4j = wn9J(JRYC.timezone())\n BWXx = qcWV.datetime(JRYC.year(), JRYC.month(), JRYC.day(), JRYC.hour(), JRYC.minute(), int(JRYC.second()), int(JRYC.second() * 1000000) % 1000000, tzinfo=yl4j)\n return BWXx", "def eBl_(eGVy):\n if eGVy.tzinfo is None:\n return eGVy\n return...
[ "0.6768728", "0.6215494", "0.61177415", "0.60828674", "0.60801417", "0.5969062", "0.5876153", "0.5874887", "0.5826399", "0.57556826", "0.57460254", "0.57046556", "0.57025987", "0.5630298", "0.559434", "0.5585297", "0.5543213", "0.5537942", "0.5535058", "0.55152464", "0.546690...
0.79371905
0
Convert a DateTime to python's datetime in UTC.
def Bjbe(JRYC): yl4j = wn9J(JRYC.timezone()) BWXx = qcWV.datetime(JRYC.year(), JRYC.month(), JRYC.day(), JRYC.hour(), JRYC.minute(), int(JRYC.second()), int(JRYC.second() * 1000000) % 1000000, tzinfo=yl4j) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S0gT(JRYC):\n Z2iF = ITS7.gmtime(ITS7.mktime(JRYC.timetuple()))\n return qcWV.datetime(*Z2iF[0:6])", "def S0gT(JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=FXGE.utc)\n else:\n return JRYC.astimezone(FXGE.utc)", "def s6Dy(JRYC: datetime) -> qcWV:\n if JRYC.tzinf...
[ "0.75905657", "0.7460992", "0.74251246", "0.73484915", "0.72705597", "0.72705597", "0.72705597", "0.7159778", "0.7100077", "0.7096452", "0.7045675", "0.7035341", "0.69898105", "0.68818486", "0.68598443", "0.68475384", "0.6834485", "0.68181765", "0.67373836", "0.6729912", "0.6...
0.0
-1
Return the index if the item is present, return 1 otherwish
def NMoC(YKHO, ZfUD): YKHO._probeCount = 0 YKHO._homeIndex = abs(YKHO._hash(ZfUD)) % len(YKHO._table) Ayfi = 1 d6pt = YKHO._homeIndex while (YKHO._table[d6pt] != H8Ru.EMPTY or YKHO._table[d6pt] == H8Ru.DELETED) and YKHO._table[d6pt] != ZfUD: if YKHO._liner: EAdr = d6pt + 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TeMz(YKHO, ZfUD):\n for YRbF, KCHu in enumerate(YKHO._data):\n if ZfUD in KCHu:\n return YRbF\n return None", "def Vn7Z(YKHO, ZfUD: _T) -> int:\n if ZfUD not in YKHO.item_to_index and YKHO.unknown is not None:\n return YKHO.item_to_index[YKHO.unknown]\n return YKHO.item_t...
[ "0.78644097", "0.76158994", "0.7590267", "0.74010223", "0.73388886", "0.730615", "0.72583723", "0.7257682", "0.7204417", "0.71522105", "0.7140542", "0.70622754", "0.70417935", "0.7019898", "0.6964048", "0.69144756", "0.6903728", "0.685975", "0.68492013", "0.68218356", "0.6796...
0.63831353
42
Saves json file constructed from some analysis results. The json will be used later to create a figure. File can be saved to an arbitrary location, but by default is saved to the current directory
def qBTF(): LZpg = {'data': [{'x': ['giraffes', 'orangutans', 'monkeys'], 'y': [20, 14, 23], 'type': 'bar'}]} mWFP = d4r9.output_dir + '/zoo_barchart.json' with open(mWFP, 'w') as _RR0: qQXR.dump(LZpg, _RR0) _IBM = {'name': mWFP, 'short_caption': 'A shortened caption', 'caption': 'A longer capti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHFl(nPrm):\n try:\n UXEK = open('output.json', 'w')\n UXEK.write(qQXR.dumps(nPrm))\n except:\n print(rUyw.GREEN + 'File not found or path is incorrect')\n finally:\n print(rUyw.GREEN + 'Success go to output.json to look at the json')", "def MB0I(YKHO, Ux0P='UQModelTest.j...
[ "0.74676186", "0.7340532", "0.73331106", "0.7328075", "0.72201496", "0.7210493", "0.7205602", "0.71725076", "0.717184", "0.71270937", "0.70982176", "0.70752877", "0.706435", "0.7041606", "0.7031623", "0.69831055", "0.69801015", "0.69684196", "0.696613", "0.69521713", "0.69465...
0.0
-1
How many masters the cluster has. This normally just equals 1, but in cases where the cluster master has been destroyed this should return 0. Providers must override this property.
def cUi3(YKHO) -> int: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FH_K(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'master_count')", "def o_ia(YKHO):\n return len(YKHO.clusters)", "def EbBV(YKHO) -> int:\n raise NotImplementedError", "def H8Ca(YKHO) -> int:\n return len(YKHO.get_all_cluster_ids())", "def o_ia(YKHO):\n return YKHO.model.n_cl...
[ "0.7022151", "0.6695419", "0.6564641", "0.65161854", "0.65141857", "0.6474415", "0.6264279", "0.6163578", "0.60960096", "0.6094295", "0.6062396", "0.6033843", "0.6031867", "0.6012577", "0.5948901", "0.5948901", "0.5945717", "0.5930184", "0.59178764", "0.5892504", "0.58862484"...
0.79978013
0
How many slaves the cluster has. This is typically just len(self.slave_ips), but we need a separate property because slave IPs are not available when the cluster is stopped, and sometimes in that situation we still want to know how many slaves there are. Providers must override this property.
def EbBV(YKHO) -> int: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_ia(YKHO):\n return len(YKHO.clusters)", "def cUi3(YKHO) -> int:\n raise NotImplementedError", "def EKkU(YKHO) -> int:\n return qe4Y.get(YKHO, 'num_nodes')", "def Ziit(YKHO):\n return len(YKHO._server_list)", "def o_ia(YKHO):\n return YKHO.model.n_clusters", "def H8Ca(YKHO) -> int:\n ...
[ "0.6956174", "0.6842812", "0.6730109", "0.6670596", "0.66681576", "0.6590625", "0.6556057", "0.6464329", "0.6440334", "0.6435928", "0.64263785", "0.63495606", "0.6342302", "0.6342302", "0.6342302", "0.6342302", "0.6342302", "0.63227606", "0.6318898", "0.6315905", "0.6314671",...
0.85318273
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in Ni9Y(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.80388075", "0.7924573", "0.79226995", "0.788447", "0.7877021", "0.781505", "0.7764907", "0.77549165", "0.7743869", "0.7731126", "0.77281487", "0.77241385", "0.77024275", "0.7688614", "0.7688614", "0.7663561", "0.7656419", "0.76552874", "0.76552874", "0.76452404", "0.764524...
0.0
-1
Close the connection to the database. It is important to call this method after you are done using the DatabaseConnectionApp. In particular, if you create multiple instances of the DatabaseConnectionApp without closing them, you may run into errors where there are too many open connections to the database.
def DDI8(YKHO): YKHO.db.remove() YKHO.engine.dispose()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZlT(Emd4):\n NCls.close()", "def EM8p(YKHO):\n qLrr.debug('Closing database connection')\n YKHO.db.close()", "def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None", "def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()", "def DDI...
[ "0.83485955", "0.8111377", "0.8054819", "0.8004254", "0.7850042", "0.7778653", "0.77655923", "0.7657", "0.7654053", "0.762978", "0.75831896", "0.75831896", "0.75831896", "0.75683075", "0.75624627", "0.75431126", "0.75207716", "0.7477181", "0.74383205", "0.740144", "0.737922",...
0.70698816
35
Returns the HMACHASH of 'value', using a key generated from key_salt and a secret (which defaults to settings.SECRET_KEY). A different key_salt should be passed in for every application of HMAC.
def qAUk(CH5O, BWXx, DXni=None): if DXni is None: DXni = gCuF.SECRET_KEY CH5O = Fb0K(CH5O) DXni = Fb0K(DXni) dKPB = zr4t.Hash(gCuF.CRYPTOGRAPHY_DIGEST, backend=gCuF.CRYPTOGRAPHY_BACKEND) dKPB.update(CH5O + DXni) H5ew = dKPB.finalize() MKlR = iqPu(H5ew, gCuF.CRYPTOGRAPHY_DIGEST, backe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vfCG(BWXx):\n e9r0 = gCuF.CC_PROCESSOR['CyberSource'].get('SHARED_SECRET', '')\n PrxR = W7gX.new(e9r0.encode('utf-8'), BWXx.encode('utf-8'), B2KD)\n return MRxC.b2a_base64(PrxR.digest())[:-1]", "def MoRU(H5ew, BWXx):\n MKlR = W7gX.new(H5ew, BWXx, digestmod=CMTP)\n return MKlR.digest()", "def...
[ "0.68427604", "0.6830125", "0.63883483", "0.63880825", "0.611976", "0.6026554", "0.59682614", "0.5881646", "0.5830251", "0.58141154", "0.5790671", "0.5789109", "0.578052", "0.5775786", "0.5765492", "0.5759221", "0.57204187", "0.5694122", "0.5694122", "0.56788504", "0.5671105"...
0.80568504
0
Create fake filesystem and flask app.
def LUif(YKHO): YKHO.setUpPyfakefs() YKHO.fake_os = jYbH.FakeOsModule(YKHO.fs) q1Eh(YKHO) P4t4 = nP_C('MDWeb', app_options={}) YKHO.fs.add_real_directory(P4t4.config['PARTIALS_TEMPLATE_PATH']) P4t4.start() return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif():\n CMqF = GPtr.INSTANCE_PATH\n if not Hy7s.path.exists(CMqF):\n Hy7s.makedirs(CMqF)\n P4t4 = L2w0(__name__, instance_path=CMqF)\n if P4t4.config['ENV'] == 'development' or P4t4.config['DEBUG'] is True:\n wiAm = G9jH.DEBUG\n elif hasattr(G9jH, GPtr.DEBUG_LOG_LEVEL):\n ...
[ "0.7283725", "0.72802067", "0.72710675", "0.71540165", "0.715258", "0.71176285", "0.7104267", "0.70851594", "0.70844847", "0.70841163", "0.7077864", "0.7073691", "0.7067809", "0.7047708", "0.70442647", "0.7040676", "0.70239615", "0.7016241", "0.6996569", "0.6962295", "0.69580...
0.73683697
0
Missing content assets should be returned with a 404 status.
def W1fZ(YKHO): with YKHO.app.test_client() as x0hE: geh0 = x0hE.get('/contentassets/missing_logo.png') YKHO.assert404(geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(QePW):\n return oGir(TvZl('core/not_found.html'), status=404, mimetype='text/html')", "def RriS(YKHO):\n YKHO.set_status(404)\n YKHO.write('Not found')", "def bsmZ():\n return oGir(content=bytes('%s not found' % (qxOF or '<nothing>'), 'utf-8'), status='404 Not Found')", "def m7kB(tTpl):\...
[ "0.68677723", "0.6863011", "0.6834376", "0.6755695", "0.6643564", "0.6573527", "0.6558913", "0.65571225", "0.6545343", "0.65427774", "0.6520674", "0.64922357", "0.64748275", "0.6466511", "0.6448024", "0.64182585", "0.63868666", "0.6376903", "0.63726264", "0.6361399", "0.63593...
0.80387706
0
Create fake filesystem and flask app.
def FCbF(YKHO): YKHO.setUpPyfakefs() YKHO.fake_os = jYbH.FakeOsModule(YKHO.fs) q1Eh(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(YKHO):\n YKHO.setUpPyfakefs()\n YKHO.fake_os = jYbH.FakeOsModule(YKHO.fs)\n q1Eh(YKHO)\n P4t4 = nP_C('MDWeb', app_options={})\n YKHO.fs.add_real_directory(P4t4.config['PARTIALS_TEMPLATE_PATH'])\n P4t4.start()\n return P4t4", "def LUif():\n CMqF = GPtr.INSTANCE_PATH\n if not Hy...
[ "0.7369482", "0.72860086", "0.7282669", "0.72737354", "0.7156784", "0.7155232", "0.711928", "0.7106406", "0.708762", "0.7087317", "0.70866114", "0.7080722", "0.7076514", "0.70699173", "0.7050852", "0.70469594", "0.7043855", "0.702638", "0.7018177", "0.6999603", "0.69648635", ...
0.0
-1
Missing content directory should raise FileExistsError.
def ahcu(YKHO): YKHO.assertRaises(FileExistsError, HaHz, 'MDWeb')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HoEO(YKHO):\n pass", "def wSwd(YKHO):\n YKHO.assertFalse(Hy7s.path.exists('/'))", "def fpaN(YKHO):\n YKHO.assertRaises(OSError, LhPB, 'no_such_directory')", "def gn2Q(YKHO):\n tTpl = YKHO.assertRaises(IOError, ojRq.LogFile, YKHO.name, 'this_dir_does_not_exist')\n YKHO.assertEqual(tTpl.errn...
[ "0.7543506", "0.7368105", "0.7248981", "0.7056842", "0.70441145", "0.6898858", "0.6878514", "0.6876698", "0.67740375", "0.6706945", "0.66979283", "0.6690011", "0.6631263", "0.66140795", "0.66111237", "0.6604554", "0.6585691", "0.65856755", "0.658445", "0.6554409", "0.6536629"...
0.82788646
0
This function gets the color of the center petal
def yh54(): return input('What color do you want the center color to be?')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xIWr():\n RlGD = input('What color should the center of the flower be?')\n return RlGD", "def PICn(YKHO):\n return YKHO._io.last_state['color']['front-center']", "def cQ0Y(YKHO):\n return YKHO.pluma.conseguir_color()", "def KGGj(YKHO):\n return YKHO.color", "def PICn(YKHO):\n return '...
[ "0.7443732", "0.72704333", "0.6890196", "0.67407113", "0.6731603", "0.67171526", "0.67090034", "0.66526455", "0.6636125", "0.6636125", "0.6636125", "0.6636125", "0.66143125", "0.65934044", "0.6591336", "0.6558018", "0.65353006", "0.65120196", "0.65088624", "0.6499785", "0.649...
0.73833144
1
This function gets the color for each petal
def JNmk(): return input('What color do you want the petals to be?')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kg6m():\n kFfr = input('What color should the flower petals be?')\n return kFfr", "def KGGj(G1Hx):\n Jw9H = ['#862B59', '#A10000', '#0A6308', '#123677', '#ff8100', '#F28686', '#6adf4f', '#58ccdd', '#3a3536', '#00ab7c']\n return Jw9H[G1Hx]", "def Jw9H(YKHO):\n return [(0, 30, 255), (0, 30, 12...
[ "0.66976774", "0.65681195", "0.65080804", "0.6335929", "0.6334034", "0.63315976", "0.63271004", "0.6270256", "0.6201761", "0.61972415", "0.6196385", "0.61886203", "0.61886203", "0.61739", "0.61739", "0.61739", "0.61739", "0.6152066", "0.6144015", "0.6127042", "0.61138517", ...
0.68258554
0
This function defines the turtle used for drawing the petals
def xMlt(zNig, CL9U): ZbiO.color(CL9U) ZbiO.begin_fill() for WKvO in range(6): ZbiO.forward(zNig) ZbiO.left(60) ZbiO.end_fill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DRUf():\n ZbiO.forward(30)\n ZbiO.left(45)\n ZbiO.forward(30)\n ZbiO.left(135)\n ZbiO.forward(30)\n ZbiO.left(45)\n ZbiO.forward(30)\n ZbiO.left(135)", "def DRUf():\n ZbiO.forward(30)\n ZbiO.left(45)\n ZbiO.forward(30)\n ZbiO.left(135)\n ZbiO.forward(30)\n ZbiO.left(...
[ "0.83980864", "0.83980864", "0.7732547", "0.7442261", "0.7235207", "0.70870876", "0.70790666", "0.7029867", "0.69549674", "0.68823236", "0.6854187", "0.6842113", "0.67714375", "0.66764754", "0.6663192", "0.66429704", "0.6600653", "0.6566045", "0.65505266", "0.6541462", "0.652...
0.7785198
2
Return the actor representing this module in a rendering scene.
def _Ufm(YKHO): return YKHO.vtk_act
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ehDb(YKHO) -> iwtH:\n return YKHO.__actor", "def gNbh(YKHO):\n raise NotImplementedError('The getActor method must be overridden to\\n return vtkActor object.')", "def ehDb():\n return Zrzj()", "def ehDb(YKHO):\n raise NotImplementedError()", "def ehDb(YKHO):\n return YKHO.pro...
[ "0.746911", "0.73185354", "0.6696679", "0.6678901", "0.6600943", "0.6399228", "0.61419314", "0.6047183", "0.60138744", "0.5965007", "0.5798978", "0.5757287", "0.56453305", "0.5611815", "0.5597894", "0.5569658", "0.55480844", "0.545711", "0.5453477", "0.5453477", "0.54482824",...
0.7110259
2
Adjust quantiles array so that last axis labels the components of each data point.
def PLwG(WKvO, tpio): WKvO = oyIN.asarray(WKvO, dtype=float) if WKvO.ndim == 0: WKvO = WKvO[oyIN.newaxis] elif WKvO.ndim == 1: if tpio == 1: WKvO = WKvO[:, oyIN.newaxis] else: WKvO = WKvO[oyIN.newaxis, :] return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KduP(EcVT, *, jDK_=..., Xqiw=..., uamv=..., dve0=..., U1hP=..., t3eI=..., jth9=...):\n ...", "def oX78(ezWE, o7bE):\n return bCYe(zip(ezWE, o7bE), jqqY(lambda WKvO: oyIN.quantile(*WKvO, axis=-1, interpolation='nearest').T), oyIN.stack)", "def jviO(nPrm):\n vexM = oyIN.percentile(nPrm, [25, 50, 75]...
[ "0.63025475", "0.6192949", "0.6023752", "0.60009724", "0.59093165", "0.5868786", "0.5847202", "0.5836669", "0.58037055", "0.5722725", "0.5662372", "0.56352705", "0.56286263", "0.55743194", "0.5511481", "0.5503057", "0.5471478", "0.54647976", "0.5455615", "0.5443686", "0.54408...
0.67671436
0
Create a frozen multivariate normal distribution. See `multivariate_normal_frozen` for more information.
def nrOS(YKHO, JBMS=None, PFC2=1): return wTGm(JBMS, PFC2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, yGTL, WTkW, rUrJ=False, fdIe=True, mWFP='MultivariateNormalFull'):\n SGPK = locals()\n SGPK.pop('self')\n with IPme.name_scope(mWFP, values=[WTkW]) as PCpl:\n PFC2 = NVZP.OperatorPDFull(WTkW, verify_pd=rUrJ)\n super(eeim, YKHO).__init__(yGTL, PFC2, allow_nan_stats=fdIe, validate_a...
[ "0.5980134", "0.5963932", "0.59250677", "0.59105575", "0.5874803", "0.58535403", "0.583271", "0.5821564", "0.57510257", "0.5748976", "0.5745554", "0.57115275", "0.5700141", "0.5696144", "0.5679424", "0.56625056", "0.56391287", "0.5637974", "0.55918294", "0.55470127", "0.55365...
0.6602165
0
Log of the multivariate normal probability density function.
def QF3p(YKHO, WKvO, JBMS, PFC2): tpio, JBMS, PFC2 = vpxk(None, JBMS, PFC2) WKvO = PLwG(WKvO, tpio) gzaO, PJVf = lckm(PFC2) yvT9 = YKHO._logpdf(WKvO, JBMS, gzaO, PJVf) return gknU(yvT9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXk3(WKvO: torch.Tensor, yGTL: torch.Tensor, XO02: torch.Tensor):\n CkYf = -0.5 * (epAf.log(2 * epAf.pi) + XO02)\n gXdX = CkYf - 0.5 * ((WKvO - yGTL) ** 2 * ht2j.exp(-XO02))\n return gXdX", "def aXk3(WKvO, yGTL, XO02):\n CkYf = -0.5 * (epAf.log(2 * epAf.pi) + XO02)\n gXdX = CkYf - 0.5 * ((WKvO...
[ "0.74887073", "0.74279535", "0.73005456", "0.71797556", "0.71393716", "0.71152455", "0.71103704", "0.705593", "0.70316786", "0.70059514", "0.6890823", "0.6890823", "0.68871516", "0.6846683", "0.6843563", "0.6843563", "0.68430215", "0.68100864", "0.6778498", "0.6749448", "0.67...
0.64847547
45
Multivariate normal probability density function.
def kzAT(YKHO, WKvO, JBMS, PFC2): tpio, JBMS, PFC2 = vpxk(None, JBMS, PFC2) WKvO = PLwG(WKvO, tpio) gzaO, PJVf = lckm(PFC2) yvT9 = oyIN.exp(YKHO._logpdf(WKvO, JBMS, gzaO, PJVf)) return gknU(yvT9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V5Uq(YKHO, WKvO, r7V4, ZfCB):\n return nSzW.pdf(WKvO, r7V4, ZfCB)", "def PUBY(JBMS, PFC2, EcVT):\n dug5, PDSy = oyIN.linalg.eigh(PFC2)\n J69x = PDSy.dot(oyIN.diag(dug5 ** (-0.5))).dot(PDSy.T)\n CDWB = oyIN.dot(EcVT - JBMS, J69x)\n B0Iw = oyIN.sum(CDWB ** 2, 1)\n t5Ky = oyIN.exp(-0.5 * B0Iw)...
[ "0.73178667", "0.71835786", "0.70131534", "0.6985002", "0.69657755", "0.6815292", "0.68136567", "0.6805757", "0.67742074", "0.6755629", "0.6660387", "0.6635969", "0.65877235", "0.65769094", "0.656567", "0.656506", "0.6548055", "0.6519452", "0.65179646", "0.65038335", "0.65034...
0.0
-1
Draw random samples from a multivariate normal distribution.
def rk2X(YKHO, JBMS=None, PFC2=1, zNig=1): tpio, JBMS, PFC2 = vpxk(None, JBMS, PFC2) yvT9 = oyIN.random.multivariate_normal(JBMS, PFC2, zNig) return gknU(yvT9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xEcM(YKHO):\n B9EC, NXpY = YKHO.get_means_and_scales()\n return oyIN.random.normal(B9EC, NXpY, size=[YKHO.sims, B9EC.shape[0]]).T", "def S3VX(ryEI, PFC2, VRbV):\n gGnb = oyIN.random.multivariate_normal(ryEI, PFC2, VRbV)\n return gGnb", "def goqB(yGTL, WTkW):\n return yGTL + WTkW * ht2j.randn...
[ "0.7020903", "0.6883893", "0.6803882", "0.6768237", "0.67335993", "0.6722228", "0.671693", "0.66195154", "0.6615192", "0.6601058", "0.6599514", "0.6582228", "0.65699863", "0.65699863", "0.65699863", "0.65699863", "0.65699863", "0.64762336", "0.63881916", "0.6337996", "0.63127...
0.5498338
93
Create a frozen multivariate normal distribution.
def FIMM(YKHO, JBMS=None, PFC2=1): YKHO.dim, YKHO.mean, YKHO.cov = vpxk(None, JBMS, PFC2) YKHO.prec_U, YKHO._log_det_cov = lckm(YKHO.cov) YKHO._mnorm = PobP()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhAC(exwG):\n r8hN = oyIN.zeros((exwG, exwG))\n for YRbF, r845 in Hs6x.product(range(exwG), range(exwG)):\n r8hN[YRbF][r845] = FqQG(0, 1)\n return r8hN", "def nrOS(YKHO, JBMS=None, PFC2=1):\n return wTGm(JBMS, PFC2)", "def iJeW(fHXl, Md2Z):\n Mkmy = []\n for yGTL, WTkW in zip(fHXl,...
[ "0.6570486", "0.65666693", "0.6533315", "0.64900917", "0.6485892", "0.6452156", "0.644945", "0.6441919", "0.6414445", "0.6329137", "0.6321813", "0.6308404", "0.6306628", "0.6291525", "0.6290236", "0.62793684", "0.62735546", "0.61701685", "0.6143851", "0.6141189", "0.6104085",...
0.0
-1
The forward vector of the transform. Forward points along the zaxis.
def ofmy(YKHO): return TlDD.datatypes.Vector(0, 0, 1).rotateBy(YKHO.rotation)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBDG(JLR5: GameObject) -> gWiK:\n return gWiK.from_vector3(JLR5.forward)", "def KVH6(YKHO):\n YKHO.linearVector = SZ2k(x=1.0, y=0.0, z=0.0)\n YKHO.angularVector = SZ2k(x=0.0, y=0.0, z=0.0)", "def KVH6(YKHO):\n print('forward')\n YKHO.linearVector = SZ2k(x=1.0, y=0.0, z=0.0)\n YKHO.angular...
[ "0.7252753", "0.7172635", "0.71689117", "0.69192654", "0.6874508", "0.6808977", "0.67507046", "0.67247164", "0.6721772", "0.66750234", "0.65421253", "0.65292895", "0.65157294", "0.65126294", "0.6400166", "0.62937814", "0.62841403", "0.6246992", "0.6231776", "0.62201816", "0.6...
0.81256294
0
The world position of the transform.
def dQgj(YKHO): return TlDD.datatypes.Point(YKHO.transform.getTranslation(ws=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BHsk(YKHO):\n return YKHO.model.coord", "def dQgj(YKHO):\n return YKHO.base_platform.position", "def k6eu(YKHO, BoQm):\n return YKHO.obj.matrix_world @ BoQm", "def MZFS(YKHO):\n return YKHO.ray.position", "def Iuzb(YKHO):\n return YKHO._position", "def Iuzb(YKHO):\n return YKHO.__po...
[ "0.71364063", "0.70733637", "0.7064138", "0.70613736", "0.70599985", "0.7046842", "0.70291597", "0.70291597", "0.6997913", "0.6997913", "0.6997913", "0.695894", "0.6940133", "0.6940133", "0.6940133", "0.6933182", "0.6933182", "0.6923044", "0.6920705", "0.6920705", "0.6920705"...
0.7404848
0
The current rotation of the transform in euler angles.
def DWJ0(YKHO): return YKHO.transform.getRotation() + [0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AXOJ(YKHO):\n return YKHO.container['rotation_angle']", "def DWJ0(YKHO):\n return YKHO._rotation", "def DWJ0(YKHO):\n return YKHO._rotation", "def DWJ0(YKHO):\n return YKHO._rotation", "def DWJ0(YKHO):\n return YKHO._rotation", "def DWJ0(YKHO):\n return YKHO._rotation", "def DWJ0(...
[ "0.7925619", "0.7917136", "0.7917136", "0.7917136", "0.7917136", "0.7917136", "0.7917136", "0.7917136", "0.7917136", "0.7917136", "0.7917136", "0.7917136", "0.7850295", "0.7700404", "0.7644668", "0.7376972", "0.7244155", "0.71309394", "0.7129365", "0.7068736", "0.70530176", ...
0.7967917
0
[up, down, left, right] num_room [1, 1] room = num_wall_moves 2[1,+1] + 4uplr room = 4 2 + 4 = 12
def YPaw(YKHO, LAOT, XeOP, ZfUD, W7ci=None): npAD = ZfUD // YKHO.num_move n_Lg = ZfUD - npAD * YKHO.num_move d6pt = n_Lg if n_Lg < YKHO.num_move // 2 else n_Lg // 2 Zihr = 1 if n_Lg < YKHO.num_move // 2 else -1 XIAj = LAOT[npAD].name NArs = dict(room=XIAj, item=d6pt, mag=1, sign=Zihr) t0Kv =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def awDp(YKHO, DFSo: List[List[int]]) -> None:\n if DFSo == []:\n return\n SS5c = len(DFSo)\n ttw0 = len(DFSo[0])\n Ravf = [(YRbF, r845) for YRbF in range(len(DFSo)) for r845 in range(len(DFSo[0])) if DFSo[YRbF][r845] == 0]\n XSoh = [(0, 1), (1, 0), (0, -1), (-1, 0)]\n kvYd = 1\n while ...
[ "0.6929311", "0.69218886", "0.6850273", "0.6836812", "0.6796616", "0.66367865", "0.6596703", "0.6573686", "0.653267", "0.6440016", "0.64081603", "0.63777184", "0.6310191", "0.62624633", "0.607653", "0.6050495", "0.5982715", "0.59809256", "0.5913876", "0.5913562", "0.58962035"...
0.0
-1
Scatter plot of data with estimates computed by norms.
def zeXv(jQ3Z, vXfG): aNZO = jQ3Z.plot.scatter('x', 'y') for mWFP, CkYf in vXfG.items(): C3ST = vg0C.RLM(LVAh, EcVT, M=CkYf) dixj = C3ST.fit() bbTD = dixj.params vc5o(params=bbTD, label=mWFP, range_=(jQ3Z['x'].min(), jQ3Z['x'].max())) QrM1.rcParams['figure.figsize'] = (15.0, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aY66(nPrm):\n vELP = nPrm[nPrm.columns[0]]\n Ayfi = nPrm[nPrm.columns[1]]\n QrM1.scatter(vELP, Ayfi)\n QrM1.title('Minimum vs Total distance', fontweight='bold', fontsize='large')\n QrM1.xlabel('Minimun Bound', fontsize='large')\n QrM1.gca().invert_xaxis()\n QrM1.ylabel('Total Distance', f...
[ "0.6694264", "0.6283854", "0.62149847", "0.6201265", "0.6131213", "0.608715", "0.6081281", "0.6073397", "0.6020319", "0.5999375", "0.59988016", "0.5997095", "0.5976106", "0.5974476", "0.5965404", "0.59534806", "0.5938065", "0.59266406", "0.59171295", "0.59121144", "0.5903311"...
0.72779584
0
This property manage the position x of the rectangle
def WKvO(YKHO): return YKHO.__x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YH9x(YKHO):\n return YKHO.rect.x", "def nIKw(YKHO):\n return YKHO.posX", "def nIKw(YKHO):\n return YKHO._collision_rect.x + 14", "def Aco_(YKHO):\n return YKHO.__pos_x", "def vAgg(YKHO):\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.position.x", "def cizC(YKHO, *qIxc, ...
[ "0.8094796", "0.75956845", "0.7526323", "0.7254682", "0.72355705", "0.72139394", "0.7063485", "0.70254636", "0.7015101", "0.6948734", "0.69090015", "0.68522674", "0.68509287", "0.6834504", "0.6832298", "0.68166494", "0.6784804", "0.6755806", "0.67333215", "0.6705055", "0.6702...
0.0
-1
This property manage the position y of the rectangle
def LVAh(YKHO): return YKHO.__y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boAb(YKHO):\n return YKHO.rect.y", "def yDCK(YKHO):\n return YKHO.posY", "def LVAh(YKHO):\n return YKHO.position.y", "def BBTF(YKHO):\n return YKHO.position.y", "def yDCK(YKHO):\n return YKHO._collision_rect.y + 25", "def HQQh(YKHO):\n return YKHO.y", "def lcEV(YKHO, fuBA):\n Y...
[ "0.83626735", "0.77175444", "0.765391", "0.76485145", "0.75694126", "0.7545628", "0.7528195", "0.7514096", "0.74848086", "0.74703515", "0.73517656", "0.73134494", "0.7310516", "0.72915375", "0.7278858", "0.727038", "0.7263653", "0.7227975", "0.7227975", "0.72180814", "0.71732...
0.6332691
92
This method return the str representation of the instance
def zAg0(YKHO): mWFP = YKHO.__class__.__name__ id = YKHO.id WKvO = YKHO.x LVAh = YKHO.y w7g_ = YKHO.width JKue = YKHO.height return '[{}] ({}) {}/{} - {}/{}'.format(mWFP, id, WKvO, LVAh, w7g_, JKue)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.as_string()", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def zAg0(YKHO):\n return repr(YKHO)", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str...
[ "0.8708052", "0.8640336", "0.86329794", "0.8622881", "0.85513806", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.8533527", "0.85162723", "0.85162723", "0.85162723"...
0.0
-1
The minimum distance between agents at which Cohesion force will continue to be applied to them.
def DYG_(YKHO, uw4w): return YKHO._cohesionPositionThreshold_Random.valueForIntegerId(uw4w.agentId)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y38k(YKHO):\n return round(min(YKHO.combined_euclidian_distance))", "def i1HD(YKHO):\n return YKHO._args.min", "def dgz9(YKHO, oeNL):\n HtXM = 10000\n for XP5J in YKHO.ghostLandPositions:\n HtXM = min(HtXM, YKHO.getMazeDistance(oeNL, XP5J))\n return HtXM", "def h87b(YKHO, d7YE):\n ...
[ "0.70423424", "0.6361152", "0.63221353", "0.6303824", "0.61921144", "0.6182308", "0.6172141", "0.6113895", "0.6088835", "0.60884947", "0.6054407", "0.60476637", "0.5997712", "0.5929155", "0.59215236", "0.5916439", "0.590486", "0.5880558", "0.5872826", "0.5848058", "0.584319",...
0.0
-1
Convert pandas to numpy and make type 'float32'.
def jIDu(UrXw: list) -> list: sL7f = len(UrXw) for YRbF in range(sL7f): UrXw[YRbF] = UrXw[YRbF].values.astype('float32') return UrXw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dmRd(YKHO, nPrm):\n nPrm = nPrm.astype(oyIN.float32)\n return nPrm", "def RTLV(SppC):\n return SppC.astype(oyIN.float64) if SppC.dtype != oyIN.float64 else SppC", "def S6TF(wEf2):\n return oyIN.float64(wEf2)", "def dU9Z(LihS):\n return LihS.astype(oyIN.float32)", "def oKpa(bOBl):\n bO...
[ "0.69673973", "0.68146473", "0.66961205", "0.657789", "0.64063495", "0.6201809", "0.61772823", "0.6148752", "0.6144046", "0.61049205", "0.6057269", "0.59902483", "0.595813", "0.5933026", "0.58986044", "0.5866927", "0.5858693", "0.58343685", "0.5822936", "0.58161354", "0.58088...
0.7447224
0
Get SQLalchemy engine using credentials.
def PWOV(a8la): bD7m = 'postgresql://{user}:{passwd}@{host}:{port}/{db}'.format(user=a8la['user'], passwd=a8la['pwd'], host=a8la['host'], port=a8la['port'], db=a8la['db']) eHpk = y2U9(bD7m, pool_size=50) return eHpk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tktc() -> cGGv:\n return eHpk", "def i4ns():\n TLmj = eHDE()\n eHpk = y2U9(TLmj)\n return eHpk", "def PWOV(zk0k: Dict[str, str]) -> RyuO.engine:\n cmRX = zFcP(zk0k)\n return RyuO.create_engine(cmRX)", "def PWOV(gCuF: dict) -> i48E.engine.base.Engine:\n eHpk = y2U9(gCuF['sqlalchemy.ur...
[ "0.7736465", "0.77179945", "0.7659842", "0.7645725", "0.75911057", "0.7288396", "0.7288396", "0.7288396", "0.7288396", "0.7257823", "0.72494555", "0.7230081", "0.71337336", "0.71157867", "0.70651376", "0.7051799", "0.70391107", "0.6883271", "0.68726164", "0.68438196", "0.6798...
0.8048837
0
MainWindow constructor. This widget will be our main window. We'll define all the UI components in here.
def FIMM(YKHO): super().__init__() TEdI = IB0w.QWidget(minimumWidth=600) YKHO.setCentralWidget(TEdI) TEdI.setLayout(IB0w.QVBoxLayout()) YKHO.url = IB0w.QLineEdit() YKHO.table = IB0w.QTableWidget(columnCount=2, rowCount=5) YKHO.table.horizontalHeader().setSectionResizeMode(IB0w.QHeaderView.St...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, _AKB=None):\n super(Cvzl, YKHO).__init__(_AKB)\n YKHO.setupUi(YKHO)", "def FIMM(YKHO, _AKB=None):\n super(Cvzl, YKHO).__init__(_AKB)\n YKHO.setupUi(YKHO)", "def FIMM(YKHO, _AKB=None):\n super(Cvzl, YKHO).__init__(_AKB)\n YKHO.setupUi(YKHO)", "def FIMM(YKHO, _AKB=None):\n s...
[ "0.76260144", "0.76260144", "0.76260144", "0.76260144", "0.76260144", "0.7478847", "0.73637223", "0.72616804", "0.7229805", "0.71999645", "0.7199054", "0.7174981", "0.7120554", "0.71148974", "0.710717", "0.7079177", "0.702354", "0.7003943", "0.69791836", "0.6962518", "0.69221...
0.0
-1
This function returns a string with 3 decimal places, given the input x
def hRcM(WKvO, oeNL): return '%.2f' % WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F3w9(WKvO):\n WKvO = WKvO % 1\n wA3x = kteF(WKvO).limit_denominator(8)\n if oyIN.allclose(WKvO, 1):\n auXY = '0'\n elif not oyIN.allclose(WKvO, float(wA3x)):\n WKvO = oyIN.around(WKvO, decimals=2)\n auXY = f'{WKvO:.3g}'\n else:\n auXY = str(wA3x)\n return auXY", ...
[ "0.7433454", "0.7323446", "0.7136587", "0.7104594", "0.688239", "0.68148726", "0.67920035", "0.67920035", "0.67920035", "0.6770508", "0.6757583", "0.67197406", "0.6632719", "0.6577749", "0.65644825", "0.653247", "0.65225375", "0.64993256", "0.6474347", "0.6464643", "0.6402216...
0.6513934
20
This function returns a string with 3 decimal places, given the input x
def OBkE(WKvO, oeNL): return '%.7f' % WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F3w9(WKvO):\n WKvO = WKvO % 1\n wA3x = kteF(WKvO).limit_denominator(8)\n if oyIN.allclose(WKvO, 1):\n auXY = '0'\n elif not oyIN.allclose(WKvO, float(wA3x)):\n WKvO = oyIN.around(WKvO, decimals=2)\n auXY = f'{WKvO:.3g}'\n else:\n auXY = str(wA3x)\n return auXY", ...
[ "0.7433174", "0.7323813", "0.7135859", "0.71048325", "0.6882904", "0.68145263", "0.67692286", "0.6758125", "0.67195195", "0.66319686", "0.65783006", "0.65646285", "0.65349853", "0.65235424", "0.6515146", "0.6515146", "0.6515146", "0.6515146", "0.6500868", "0.6474393", "0.6466...
0.67925525
8
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None CdtT = cmPJ.get('backupFilePath') Kx8S = cmPJ.get('excludedFilePaths') HbZU = cmPJ.get('skipNestedVolumes') return Emd4(CdtT, Kx8S, HbZU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.7491968
85
Make a square gaussian kernel. size is the length of a side of the square sigma is fullwidthhalfmaximum, which can be thought of as an effective radius.
def YVhi(H2v2, TVTK, WTkW=3, hgjH=None): WKvO = oyIN.arange(0, TVTK, 1, float) LVAh = oyIN.arange(0, H2v2, 1, float)[:, oyIN.newaxis] if hgjH is None: nJ9F = TVTK // 2 nxyw = H2v2 // 2 else: nJ9F = hgjH[0] nxyw = hgjH[1] return oyIN.exp(-4 * oyIN.log(2) * ((WKvO - nJ9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jKuA(zNig, WTkW=1):\n cM2k.info(f'Creating gaussian kernel of size {zNig} with sigma of {WTkW}')\n zNig = int(zNig) // 2\n WKvO, LVAh = oyIN.mgrid[-zNig:zNig + 1, -zNig:zNig + 1]\n mhAC = 1 / (2.0 * oyIN.pi * WTkW ** 2)\n Oa1e = oyIN.exp(-((WKvO ** 2 + LVAh ** 2) / (2.0 * WTkW ** 2))) * mhAC\n ...
[ "0.77208084", "0.7587945", "0.7548043", "0.7533773", "0.7420347", "0.7417534", "0.7408084", "0.7379982", "0.7154051", "0.71003413", "0.70063967", "0.6965621", "0.6957081", "0.6950103", "0.693124", "0.6929196", "0.6927758", "0.6864715", "0.6797153", "0.67613155", "0.66919154",...
0.62399364
45
{ pre n >= 0 post ans == 2 n return ans }
def aj0M(exwG): if exwG == 0: TK2h = 0 '{1. n == 0\tpremise\n\t\t\t2. ans == 0\tpremise\n\t\t\t3. ans == 2*n\talgebra 1 2\n\t\t}' else: DFrR = aj0M(exwG - 1) TK2h = DFrR + 2 '{1. not(n == 0)\tpremise\n\t\t\t2. n >=0\tpremise\n\t\t\t3. n > 0\talgebra 1 2\n\t\t\t4. subans =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSz9(exwG):\n pSfY = 0\n while exwG > 0:\n if exwG & 1:\n pSfY += 1\n exwG = exwG >> 1\n return 0 if pSfY % 2 == 0 else 1", "def uuvQ(exwG):\n return exwG * (exwG - 1) // 2", "def arPZ(exwG):\n for jzdc in range(4, exwG, 4):\n for Fg_i in range(3, exwG - jzdc)...
[ "0.7202392", "0.7198786", "0.71719754", "0.6965999", "0.68125933", "0.68012565", "0.676054", "0.67576087", "0.6754657", "0.6750336", "0.67432845", "0.6717569", "0.66649425", "0.65918076", "0.65225464", "0.6519586", "0.6509439", "0.6476019", "0.64661455", "0.6458696", "0.64279...
0.73465455
0
Reset the specific workspace. Remove all resources of given workspace. If workspace name is empty, the current workspace will be modified.
def W0g0(vSUp=''): KupS.ResetWorkspace(vSUp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0g0(vSUp=''):\n feCB(vSUp)", "def ey5R(vSUp=''):\n KupS.ClearWorkspace(vSUp)", "def ey5R(vSUp=''):\n k6mJ(vSUp)", "def Mxtu(x0hE, HUs2=None, iumf=None):\n zJNP = x0hE.windchill_get_workspace()\n nPrm = {'workspace': zJNP}\n if HUs2 is not None:\n nPrm['workspace'] = HUs2\n if...
[ "0.7912847", "0.7576467", "0.74971074", "0.7385986", "0.65266645", "0.6210413", "0.62101", "0.59802896", "0.5946357", "0.5909171", "0.5861294", "0.58433056", "0.57771504", "0.57509047", "0.57023746", "0.5670598", "0.55394864", "0.5528475", "0.5427279", "0.542515", "0.5358168"...
0.79673105
0
Query the name represented in current workspace.
def W0kj(vhpA): return KupS.GetTensorName(KuYZ(vhpA))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vSUp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'workspace_name')", "def vSUp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'workspace_name')", "def vSUp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'workspace_name')", "def mWFP(YKHO):\n return YKHO.attributes.workspace.name",...
[ "0.70040315", "0.70040315", "0.70040315", "0.6709334", "0.61963445", "0.6164209", "0.6080685", "0.5957407", "0.5957407", "0.5957407", "0.5957407", "0.59215426", "0.5820483", "0.577272", "0.5765387", "0.5765387", "0.5765387", "0.5765387", "0.5765387", "0.5765387", "0.5765387",...
0.0
-1
Constructor for the LunarAscentProblem class.
def FIMM(YKHO, dcLO: tudatpy.kernel.simulation.environment_setup.SystemOfBodies, c0on: tudatpy.kernel.simulation.propagation_setup.integrator.IntegratorSettings, k08t: tudatpy.kernel.simulation.propagation_setup.propagator.MultiTypePropagatorSettings, GUfB: float, BcMA: float): YKHO.bodies = dcLO YKHO.integrato...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, aPd6, nJ9F):\n YKHO.L = aPd6\n YKHO.x0 = nJ9F\n YKHO.passage_times = None\n YKHO.dt = None\n YKHO.sigma = None\n YKHO.trajectories = []", "def FIMM(YKHO, erK7: np.ndarray=oyIN.array([0, 0, 0]), xJtk: float=1.0, AznW: float=0, xMgP: np.ndarray=oyIN.array([0, 1, 0]), Lz6s: Airfoil=...
[ "0.61324954", "0.6056476", "0.59302807", "0.58841336", "0.5878046", "0.58567804", "0.5855042", "0.5688272", "0.56732553", "0.55967134", "0.5582232", "0.55510795", "0.551664", "0.55161023", "0.5513487", "0.5513013", "0.54933184", "0.54923993", "0.5465218", "0.5460572", "0.5448...
0.0
-1
Constructor of the LunarAscentThrustGuidance class.
def FIMM(YKHO, C0uC: str, lJoy: float, RO35: list): print('Initializing guidance...') YKHO.vehicle_body = C0uC YKHO.initial_time = lJoy YKHO.parameter_vector = RO35 YKHO.thrust_magnitude = RO35[0] YKHO.time_interval = RO35[1] YKHO.thrust_angle_dict = {} vHj7 = lJoy for YRbF in range(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, yrqc, ZnpV, mWFP, c0s6, VvaF):\n YKHO._health = ZnpV\n YKHO.strength = yrqc\n YKHO.name = mWFP\n YKHO.chance_dodge = c0s6\n YKHO.chance_critical = VvaF", "def FIMM(YKHO):\n YKHO.last_reward_pos = 0\n super().__init__()\n YKHO.TERRAIN_VARIANCE = 0.0\n YKHO.stump_spacing =...
[ "0.5866922", "0.578728", "0.5659223", "0.5482749", "0.5471003", "0.5456738", "0.542443", "0.542066", "0.5420496", "0.5397718", "0.5384686", "0.5348846", "0.5337103", "0.53235835", "0.5315605", "0.5315061", "0.5273534", "0.52664745", "0.5253254", "0.5250097", "0.52456325", "...
0.5683185
2
Retrieves the direction of the thrust in the inertial frame. This function is needed to get the thrust direction at each time step of the propagation, based on the thrust parameters provided.
def CBC4(YKHO, ITS7: float) -> oyIN.array: YylR = YKHO.thrust_angle_interpolator.interpolate(ITS7) xiL8 = oyIN.array([[0, oyIN.sin(YylR), -oyIN.cos(YylR)]]).T YKHO.vehicle_body.flight_conditions.update_conditions(ITS7) jYY2 = YKHO.vehicle_body.flight_conditions.get_aerodynamic_angle_calculator() DqY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IShi(tvqc):\n return tvqc['result']['parameters']['direction']", "def IShi(YKHO):\n return YKHO.actual_coordinates[2]", "def tS9C(HFhL: Dict[str, float]) -> int:\n cwWy, xTkQ, uIJb = (HFhL['surge'], HFhL['yaw'], HFhL['sway'])\n if cwWy and xTkQ:\n if cwWy < MGxA:\n BWXx = -cwW...
[ "0.6276446", "0.62155247", "0.61864215", "0.6178044", "0.6138319", "0.6135835", "0.60697466", "0.5979209", "0.5959194", "0.5931907", "0.5920144", "0.5917349", "0.58839804", "0.5832741", "0.58262116", "0.58082557", "0.57814956", "0.5746605", "0.5733347", "0.5724613", "0.572043...
0.72050625
0
Retrieves the magnitude of the thrust. This function is needed to get the thrust magnitude at each time step of the propagation, based on the thrust parameters provided. Currently, the thrust magnitude is constant.
def UT6c(YKHO, ITS7: float) -> float: return YKHO.thrust_magnitude
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(YKHO):\n return PZyS(YKHO.dot(YKHO))", "def YXbZ(YKHO):\n return epAf.sqrt(Pusg(lambda WKvO, LVAh: WKvO + LVAh, [WKvO ** 2 for WKvO in YKHO.vector]))", "def wjNy(YKHO, RFcK: Dict[str, Union[float, List[float]]], jIFO=None) -> AzJI[AzJI[float, None], AzJI[float, None]]:\n if 'teff' in RFcK and...
[ "0.6589054", "0.6449668", "0.6295594", "0.6244629", "0.61431277", "0.60655814", "0.5956749", "0.5948759", "0.5948759", "0.59411794", "0.59407496", "0.58943164", "0.5869348", "0.5860517", "0.5852178", "0.5830699", "0.58281964", "0.5708337", "0.5698168", "0.56786996", "0.567739...
0.72145724
0
Creates the thrust acceleration models from the LunarAscentThrustGuidance class and sets it in the propagator.
def JW1r(GSFM: list, dcLO: tudatpy.kernel.simulation.environment_setup.SystemOfBodies, lJoy: float, V6X3: float) -> KQmH.kernel.simulation.propagation_setup.acceleration.ThrustAccelerationSettings: jU4u = z8Hh(dcLO.get_body('Vehicle'), lJoy, GSFM) A1yX = jU4u.get_current_thrust_direction qyB_ = jU4u.get_cur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, C0uC: str, lJoy: float, RO35: list):\n print('Initializing guidance...')\n YKHO.vehicle_body = C0uC\n YKHO.initial_time = lJoy\n YKHO.parameter_vector = RO35\n YKHO.thrust_magnitude = RO35[0]\n YKHO.time_interval = RO35[1]\n YKHO.thrust_angle_dict = {}\n vHj7 = lJoy\n for ...
[ "0.52007926", "0.5141271", "0.5138577", "0.5121363", "0.5010593", "0.49965638", "0.48912236", "0.48764595", "0.48609746", "0.48241824", "0.47785723", "0.47368607", "0.47321242", "0.4723249", "0.47230604", "0.47143203", "0.4707249", "0.47051737", "0.46981522", "0.46902364", "0...
0.60445714
0
Merge two RGB tuples.
def J6TY(YKHO, VTC_, sMGd): J1b4, IZ6w, kYGz = YKHO._int_to_bin(VTC_) CYjz, E0Gw, ftz7 = YKHO._int_to_bin(sMGd) d7Eb = (J1b4[:4] + CYjz[:4], IZ6w[:4] + E0Gw[:4], kYGz[:4] + ftz7[:4]) return YKHO._bin_to_int(d7Eb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYHo(Z5Q9, jlxe, pPPK):\n return (Z5Q9 << 16) + (jlxe << 8) + pPPK", "def bb4A(*qIxc) -> tuple:\n if len(qIxc) == 1:\n Z5Q9 = qIxc[0][0]\n jlxe = qIxc[0][1]\n pPPK = qIxc[0][2]\n elif len(qIxc) == 3:\n Z5Q9 = qIxc[0]\n jlxe = qIxc[1]\n pPPK = qIxc[2]\n el...
[ "0.73768806", "0.68605113", "0.6847478", "0.68040514", "0.6661399", "0.66047245", "0.65366215", "0.6488804", "0.6323478", "0.6275577", "0.62141013", "0.6177352", "0.6173669", "0.61694735", "0.61416996", "0.6086507", "0.60767424", "0.6075502", "0.6049484", "0.6035401", "0.5995...
0.7531862
0
Convert kelvin to celcius.
def DKxY(WKvO): return WKvO - 273.15
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ijWW(ycBG):\n return ycBG - 273.15", "def Fc0V(yizX: float, LZhb=2) -> float:\n return round(float(yizX) - 273.15, LZhb)", "def FNsA(Hj9h: float, LZhb: int=2) -> float:\n return round(float(Hj9h) + 273.15, LZhb)", "def XEuz(YKHO):\n return YKHO.GetCelcius() + 273.15", "def loBy(WKvO):\n ...
[ "0.7975438", "0.7551087", "0.74725723", "0.7458292", "0.72936654", "0.726419", "0.7131983", "0.70970404", "0.70707303", "0.70591885", "0.70378", "0.70239884", "0.69731575", "0.69647515", "0.6919803", "0.69033015", "0.6843504", "0.68306845", "0.68278277", "0.6819296", "0.67487...
0.7150101
6
Convert celcius to kelvin.
def V4J1(WKvO): return WKvO + 273.15
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FNsA(Hj9h: float, LZhb: int=2) -> float:\n return round(float(Hj9h) + 273.15, LZhb)", "def ijWW(ycBG):\n return ycBG - 273.15", "def XEuz(YKHO):\n return YKHO.GetCelcius() + 273.15", "def loBy(WKvO):\n return WKvO + 273.15", "def Fc0V(yizX: float, LZhb=2) -> float:\n return round(float(y...
[ "0.8163538", "0.7870752", "0.7769568", "0.77016866", "0.7505873", "0.7443697", "0.7409282", "0.72250664", "0.7189411", "0.70492774", "0.70453554", "0.70422643", "0.700724", "0.68513936", "0.68371665", "0.6765495", "0.674363", "0.66032785", "0.65952694", "0.6576273", "0.657041...
0.69416314
13
Make sure that a long past date returns the appropriate error
def iXaq(YKHO): JvEs = '1899-12-12' x8us = gCuF.DATE_FORMATS['iso 8601'] isRP = 'dates before {} are not permitted' uZKv = '%Y-%m-%d' odUu = YKHO.menu.OPTIONS['earliest allowed date'] VFFU = odUu.strftime(uZKv) lYY4 = isRP.format(VFFU) Aofo = YKHO.menu.validate_date_entry(JvEs, x8us) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bEOU(YKHO):\n JvEs = '3018-01-21'\n x8us = gCuF.DATE_FORMATS['iso 8601']\n lYY4 = 'dates in the future are not permitted'\n Aofo = YKHO.menu.validate_date_entry(JvEs, x8us)\n Ggta = (lYY4, None)\n YKHO.assertEqual(Aofo, Ggta)", "def mQnp(YKHO, _c1T: datetime) -> bool:\n try:\n _c1...
[ "0.7094028", "0.6902343", "0.68786925", "0.68729395", "0.68215626", "0.67192334", "0.66143703", "0.65506846", "0.64799225", "0.6477162", "0.6331963", "0.6301461", "0.6246241", "0.6240586", "0.623969", "0.62263966", "0.619837", "0.6161011", "0.61141735", "0.6074533", "0.607448...
0.73237896
0
Maximum input length supported by the encoder.
def EAOo(YKHO): return int(100000.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BcCR(YKHO) -> int | None:\n return YKHO._underlying.max_length", "def BcCR(YKHO):\n return YKHO._max_length", "def FR_G(YKHO):\n return YKHO.__max_length", "def E0wO(YKHO):\n raise NotImplementedError()", "def zQxg(YKHO):\n return 16 + 16 + 8 + 8 + iK2A.bin_to_dec(YKHO.get_data_size()) +...
[ "0.79915965", "0.7968504", "0.7859362", "0.7662151", "0.7648042", "0.7555859", "0.74178326", "0.74056953", "0.73354554", "0.7186268", "0.71812737", "0.7144131", "0.7108449", "0.7098418", "0.70634687", "0.7029977", "0.7007656", "0.69750416", "0.69667345", "0.69460034", "0.6946...
0.0
-1
Similar to forward but only return features.
def carQ(YKHO, dZmY, E9hj, PCmQ=None): NqP3 = E9hj['encoder_padding_mask'] E9hj = E9hj['encoder_out'] if PCmQ is not None: dZmY = dZmY[:, -1:] K_dq, E0ZB = dZmY.size() WQ0k, cSp9, vuoF = E9hj[:3] OxIV = WQ0k.size(0) WKvO = YKHO.embed_tokens(dZmY) WKvO = vuvg.dropout(WKvO, p=YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = YKHO.features(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO):\n yvT9 = YKHO.features(WKvO)\n yvT9 = yvT9.view(yvT9.size(0), -1)\n yvT9 = YKHO.classifier(yvT9)\n return yvT9", "def fqku(YKHO, WKvO):\n raise NotImplementedError", "def KVH6(YKHO, pKvt):\n yvT9...
[ "0.79685736", "0.76057374", "0.75061923", "0.74989", "0.7416604", "0.7416604", "0.72430384", "0.72430384", "0.72344655", "0.708826", "0.7087115", "0.7075663", "0.7028135", "0.702447", "0.70182985", "0.69833726", "0.69588363", "0.6944338", "0.6908374", "0.68244886", "0.6801439...
0.0
-1
Maximum output length supported by the decoder.
def EAOo(YKHO): return int(100000.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zQxg(YKHO):\n return 16 + 16 + 8 + 8 + iK2A.bin_to_dec(YKHO.get_data_size()) + iK2A.bin_to_dec(YKHO.get_verification_size())", "def ULYe(YKHO, BWXx):\n return YKHO._set(maxOutputLength=BWXx)", "def ULYe(YKHO, BWXx):\n return YKHO._set(maxOutputLength=BWXx)", "def ULYe(YKHO, BWXx):\n return YK...
[ "0.7432182", "0.739371", "0.739371", "0.739371", "0.7161702", "0.7145069", "0.701258", "0.696493", "0.6954823", "0.6929437", "0.68695945", "0.68547714", "0.68416184", "0.6839447", "0.6802614", "0.67819893", "0.67704797", "0.6759785", "0.67525315", "0.67486465", "0.6746449", ...
0.0
-1
View function for home page of site.
def d6pt(QePW): kxye = hnIv.objects.all().order_by('-created') _fIj = hnIv.objects.all().count() QpfX = {'photos': kxye, 'no_of_photos': _fIj} return _1tc(QePW, 'photo/index.html', context=QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')", "def kZiy(QePW):\n return _1tc(QePW, 'home.html')", "def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')", "def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'...
[ "0.8493426", "0.84268916", "0.83415145", "0.83306193", "0.82976943", "0.8295291", "0.8276345", "0.82545686", "0.82155704", "0.8132563", "0.81246215", "0.81224865", "0.8121264", "0.81049734", "0.8098485", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0...
0.0
-1
Initializes the engine instance. Engine can be prebuilt, offering evaluation based on a particular JSON backend, or can be dynamic, building new logical components with each call.
def FIMM(YKHO, qQXR=None, PJWX=True): YKHO.verbose = PJWX if qQXR: YKHO.composite_ = YKHO.build_engine_from_json(json=qQXR, verbose=PJWX) YKHO.prebuilt_ = True else: YKHO.prebuilt_ = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TFVh(YKHO, eHpk: ExecutionEngine) -> None:\n I45O.debug('Middleware %r initialized with engine: %r', YKHO, eHpk)", "def FIMM(YKHO):\n YKHO._workload = None\n YKHO._engine = cGGv()", "def FIMM(YKHO, C9U5):\n super(cGGv, YKHO).__init__(YKHO, uwaB.SYSTEM_PLUGIN_NAME)\n YKHO.context._plugin_id =...
[ "0.66388524", "0.6585366", "0.6562431", "0.6463608", "0.6374987", "0.6249574", "0.6196951", "0.6192912", "0.6187051", "0.61233556", "0.60304344", "0.5985679", "0.5963483", "0.5952134", "0.5951983", "0.59495527", "0.5946662", "0.5886087", "0.5871995", "0.5870233", "0.58693796"...
0.6635185
1
Return Gaussian with given parameters. y = ampl exp(4ln2 (xx0)^2 / fwhm^2)
def IAWS(WKvO, nJ9F=0.0, rXfu=1.0, FdG5=1.0): return FdG5 * oyIN.exp(-4 * oyIN.log(2) * ((WKvO - nJ9F) / rXfu) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(Os_7, rXfu, JBMS, WKvO):\n return Os_7 * oyIN.exp(-4.0 * oyIN.log(2) * (WKvO - JBMS) ** 2 / rXfu ** 2)", "def IAWS(WKvO, LVAh, NArs):\n exwG = len(WKvO)\n Lcgb = oyIN.zeros((exwG,))\n aTqo = (WKvO - NArs[0]) ** 2 / (2.0 * NArs[2] ** 2)\n V0zD = (LVAh - NArs[1]) ** 2 / (2.0 * NArs[2] ** 2)...
[ "0.7207542", "0.7046463", "0.7029399", "0.69889027", "0.6976326", "0.69592756", "0.6916646", "0.6903662", "0.67467546", "0.67467546", "0.6703264", "0.66944724", "0.6617395", "0.65959877", "0.6550076", "0.6439049", "0.643874", "0.64093244", "0.6390287", "0.63803816", "0.637799...
0.72723794
0
Return PseudoVoigt with given parameters. y = frac gaussian(x, x0, fwhm) + (1frac) lorentzian(x, x0, fwhm)
def YG13(WKvO, nJ9F=0.0, rXfu=1.0, FdG5=1.0, oXaw=0.5): if not 0 <= oXaw <= 1: raise ValueError('frac must be 0 <= frac <= 1') return oXaw * IAWS(WKvO, nJ9F, rXfu, FdG5) + (1 - oXaw) * wX2U(WKvO, nJ9F, rXfu, FdG5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShtA(YKHO, EcVT, tdL7, Os_7, yzQ0, r8hN):\n return r8hN * YKHO.lorentz(EcVT, tdL7, Os_7, yzQ0) + (1 - r8hN) * YKHO.gauss(EcVT, tdL7, Os_7, yzQ0)", "def D2Rw(YKHO, WKvO, iuWz, pIeR, klRs=1, hgjH=0.0):\n WTkW = iuWz / oyIN.sqrt(2.0 * oyIN.log(2.0))\n return klRs * oyIN.real(uibV((WKvO - hgjH + 1j * pI...
[ "0.66173494", "0.6532243", "0.6532243", "0.65070736", "0.63796264", "0.63131636", "0.5970286", "0.5865352", "0.57675654", "0.56898254", "0.56426466", "0.5603627", "0.56001973", "0.55570996", "0.5538157", "0.55278784", "0.55265105", "0.5526035", "0.551107", "0.55082554", "0.54...
0.7046958
0
Sets the merchant_id of this PortfolioIdDelResponsePortfolioItem.
def aCFu(YKHO, aCFu): if aCFu is None: raise ValueError('Invalid value for `merchant_id`, must not be `None`') YKHO._merchant_id = aCFu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu", "def kPlE(YKHO, vkFH):\n YKHO.merchant_transaction_id = vkFH", "def Il2k(YKHO, Il2k):\n if Il2k is None:\n raise ValueError('Invalid value for `merchant`, must not be `None`')\n YKHO._merchant = Il2k", "def DkfO(YKHO, DkfO):\n YKHO._mer...
[ "0.73929584", "0.64807767", "0.6163476", "0.5330709", "0.520684", "0.51950353", "0.5121377", "0.5108566", "0.5025775", "0.49855316", "0.49788147", "0.4882717", "0.48812652", "0.47672012", "0.47672012", "0.4712832", "0.47085887", "0.4706784", "0.45794812", "0.45793927", "0.453...
0.7136936
1
Sets the action of this PortfolioIdDelResponsePortfolioItem.
def XeOP(YKHO, XeOP): if XeOP is None: raise ValueError('Invalid value for `action`, must not be `None`') YKHO._action = XeOP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XeOP(YKHO, XeOP):\n BbPm = ['DELETE', 'NONE']\n if XeOP not in BbPm:\n raise ValueError('Invalid value for `action` ({0}), must be one of {1}'.format(XeOP, BbPm))\n YKHO._action = XeOP", "def FGnS(YKHO, XeOP):\n YKHO.action = XeOP\n return YKHO", "def Ddsp(YKHO, XeOP):\n YKHO._acti...
[ "0.5731511", "0.53748775", "0.5340105", "0.5171771", "0.5158516", "0.5158516", "0.5101424", "0.5101424", "0.5101424", "0.5101424", "0.5101424", "0.5101424", "0.5064165", "0.506325", "0.50008786", "0.4998791", "0.49634352", "0.49520066", "0.49461424", "0.49049285", "0.49030674...
0.500939
14
Sets the gain_loss_dollars of this PortfolioIdDelResponsePortfolioItem.
def TIuC(YKHO, TIuC): if TIuC is None: raise ValueError('Invalid value for `gain_loss_dollars`, must not be `None`') YKHO._gain_loss_dollars = TIuC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pLeP(YKHO, pLeP):\n if pLeP is None:\n raise ValueError('Invalid value for `gain_loss_percentage`, must not be `None`')\n YKHO._gain_loss_percentage = pLeP", "def MAy9():\n try:\n with open(xtX7 + 'portfolio_balance.json', encoding='utf-8') as Nwr9:\n nPrm = qQXR.loads(Nwr9....
[ "0.5793073", "0.5137945", "0.51288927", "0.5122116", "0.5091791", "0.5090042", "0.5010013", "0.5008859", "0.49376446", "0.48808986", "0.4873786", "0.48318732", "0.47404653", "0.47381547", "0.4724406", "0.4718258", "0.4714019", "0.47136298", "0.46992344", "0.46863592", "0.4679...
0.78395325
0
Sets the matched_state of this PortfolioIdDelResponsePortfolioItem.
def OPC3(YKHO, OPC3): if OPC3 is None: raise ValueError('Invalid value for `matched_state`, must not be `None`') YKHO._matched_state = OPC3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hw9C(YKHO, Hw9C):\n YKHO._match_id = Hw9C", "def JRqp(YKHO, Hw9C):\n xDcj = bmQi.DELETE_FROM_MATCHES_WHERE_ID_.format(Hw9C)\n YKHO.execute_query(xDcj)", "def o9ng(YKHO, o9ng):\n YKHO._match_score = o9ng", "def xa14(YKHO, Elif):\n if not isinstance(Elif, Wtdo):\n return False\n re...
[ "0.55045295", "0.4942588", "0.47066778", "0.45807734", "0.44554827", "0.44428295", "0.4417907", "0.44098243", "0.43942627", "0.4361584", "0.4319382", "0.4285123", "0.4285123", "0.4265278", "0.42546338", "0.42480204", "0.41545513", "0.40974647", "0.40938342", "0.40886122", "0....
0.5878933
0
Sets the purchase_date of this PortfolioIdDelResponsePortfolioItem.
def a68P(YKHO, a68P): if a68P is None: raise ValueError('Invalid value for `purchase_date`, must not be `None`') YKHO._purchase_date = a68P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DmiH(YKHO, DmiH):\n YKHO._decommission_date = DmiH", "def v2_1(YKHO, v2_1):\n if v2_1 is None:\n raise ValueError('Invalid value for `purchase_date_time`, must not be `None`')\n YKHO._purchase_date_time = v2_1", "def AS9e(YKHO, AS9e):\n YKHO._dep_date = AS9e", "def Ywmj(YKHO, Ywmj):\n ...
[ "0.63222677", "0.6139121", "0.5844685", "0.5730579", "0.5730579", "0.5561338", "0.5561338", "0.5525089", "0.54284245", "0.53899187", "0.5386058", "0.5380716", "0.525117", "0.52415365", "0.5234184", "0.52250683", "0.52171373", "0.52097356", "0.52097356", "0.52097356", "0.52097...
0.6780696
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, Wtdo): 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.84568954", "0.83923674", "0.81447554", "0.81407183", "0.81326675", "0.80941343", "0.8092415", "0.8092415", "0.8092415", "0.8085536", "0.8085536", "0.8076502", "0.8076502", "0.8066026" ]
0.0
-1
Verify if a hash was generated by the password specified.
def sNjs(jTXt, hash): NKcE = KYb0(WsL5.current_app.config['HASH_ALGORITHM']) return NKcE.verify(jTXt, hash)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNjs(YKHO, hash, jTXt):\n try:\n ioxe().verify(hash, jTXt)\n return True\n except:\n return False", "def sNjs(YKHO, jTXt):\n return z8jj(YKHO.password_hash, jTXt)", "def sNjs(jTXt, vhgk):\n cgqW = qzFd(jTXt)\n return FXSn.compare_digest(cgqW, vhgk)", "def TGbE(YKHO, jT...
[ "0.81317127", "0.79918575", "0.7902963", "0.78909004", "0.76872784", "0.7662686", "0.76172304", "0.76172304", "0.76172304", "0.76172304", "0.76172304", "0.76172304", "0.76172304", "0.7615896", "0.7593239", "0.75342226", "0.75163007", "0.7505962", "0.7487259", "0.7478594", "0....
0.7885568
4
Test different shapes of input tensor. Mainly test different combinations of num_rows and num_cols.
def n92m(YKHO): ovVf = True aGjg = True for PmAP in [1, 3]: for Qi3c in [1, 3]: for NwL4 in [10, 20, 50]: for ulBT in [10, 20, 50]: qiip = (PmAP, NwL4, ulBT, Qi3c) spde = YKHO._PRNG.random_sample(qiip) * 1000 - 500 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rk2Q(cRc2):\n for vhpA in cRc2:\n vhpA = ZylS.convert_to_tensor(value=vhpA)\n vhpA.get_shape().assert_has_rank(2)\n vhpA.get_shape().assert_is_compatible_with(ZylS.convert_to_tensor(value=cRc2[0]).get_shape())", "def mFpD(YKHO, GhuM, _0fC, RndV, dvgN, oLRV):\n YKHO.assertEqual(yIp6...
[ "0.6771283", "0.6623845", "0.65825635", "0.63006365", "0.6260925", "0.62579334", "0.6221797", "0.62022156", "0.6196459", "0.61783963", "0.61779076", "0.61761034", "0.6161502", "0.61502683", "0.6134124", "0.6133079", "0.60900277", "0.60828644", "0.60824025", "0.60597074", "0.6...
0.65125096
3
Generate 'unique' random input tensor. 'Unique' means there's no collision values in the tensor, all elements are different. This is done by generating sequence of integers with step of 1 and then randomly shuffle these integers.
def wn9x(YKHO, ROpF): LyhY = 1 for zNig in ROpF: LyhY *= zNig WKvO = oyIN.arange(LyhY, dtype=oyIN.float32) YKHO._PRNG.shuffle(WKvO) return WKvO.reshape(ROpF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n9JX(vhpA):\n wRk_ = vhpA.size()\n o1Cz = vhpA.view(-1)\n OPKh = hXNa(o1Cz)\n return OPKh.view(wRk_)", "def gMlw(a1PO):\n return oyIN.unique(a1PO, return_counts=True)[1]", "def pqx5(*ROpF):\n return 2 * ADdS(*ROpF) - 1", "def hMU1(exwG):\n _ZiA = oyIN.arange(exwG)\n oyIN.random.sh...
[ "0.6420911", "0.60496885", "0.6042057", "0.5988617", "0.59506536", "0.594913", "0.59193707", "0.5886433", "0.5855505", "0.58377117", "0.57327443", "0.5690145", "0.56138015", "0.55772686", "0.5569318", "0.55650306", "0.55511075", "0.5549563", "0.55375504", "0.55340195", "0.553...
0.77469957
0
Sets the id of this IncidentTemplate.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX", "def id...
[ "0.74246585", "0.7320574", "0.72728455", "0.7267677", "0.69741964", "0.6881379", "0.6881379", "0.6881379", "0.6881379", "0.6881379", "0.68786645", "0.6867626", "0.6867626", "0.6867626", "0.6867626", "0.6867626", "0.6867626", "0.6867626", "0.6867626", "0.6867626", "0.6867626",...
0.6768028
91
Sets the name of this IncidentTemplate.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP...
[ "0.74746394", "0.7455473", "0.7415756", "0.7415756", "0.7415756", "0.7415756", "0.7415756", "0.7407989", "0.7381878", "0.7332634", "0.7332634", "0.73285013", "0.7325056", "0.722092", "0.72113734", "0.71872854", "0.71872854", "0.71872854", "0.71872854", "0.71872854", "0.718728...
0.71173644
100
Sets the group_id of this IncidentTemplate.
def hE03(YKHO, hE03): YKHO._group_id = hE03
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sv_3(YKHO, sv_3):\n YKHO._group_identifier = sv_3", "def hE03(YKHO, hE03: int):\n if hE03 is None:\n raise ValueError('Invalid value for `group_id`, must not be `None`')\n YKHO._group_id = hE03", "def scR9(YKHO, uOe2):\n YKHO._group = uOe2", "def LypM(YKHO, LypM):\n YKHO._group_oid ...
[ "0.7230241", "0.70719296", "0.70546216", "0.701649", "0.7008788", "0.69496334", "0.6833594", "0.6792657", "0.67621565", "0.67583644", "0.672879", "0.672879", "0.672879", "0.66904974", "0.66486627", "0.6630525", "0.65959513", "0.6466996", "0.6443987", "0.6428352", "0.63432276"...
0.80219275
3
Sets the update_status of this IncidentTemplate.
def uiXI(YKHO, uiXI): BbPm = ['investigating', 'identified', 'monitoring', 'resolved', 'scheduled', 'in_progress', 'verifying', 'completed'] if YKHO.local_vars_configuration.client_side_validation and uiXI not in BbPm: raise ValueError('Invalid value for `update_status` ({0}), must be one of {1}'.format...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, *, uiXI: str):\n qe4Y.set(Ro_8, 'update_status', uiXI)", "def AcvW(YKHO, jGRS):\n pass", "def izkL(YKHO, jGRS):\n YKHO.status.update(jGRS)", "def jGRS(YKHO, jGRS):\n YKHO._status = jGRS", "def jGRS(YKHO, jGRS):\n YKHO._status = jGRS", "def jGRS(YKHO, jGRS):\n YKHO._status...
[ "0.68230754", "0.65792245", "0.6313056", "0.60260785", "0.60260785", "0.60260785", "0.60260785", "0.60260785", "0.60260785", "0.60260785", "0.60099053", "0.60099053", "0.60099053", "0.60099053", "0.60099053", "0.60099053", "0.60099053", "0.60099053", "0.60099053", "0.60099053",...
0.7377901
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, xdWA): return False return YKHO.to_dict() == Elif.to_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.808826", "0.808826", "0.8054592", "0.79827315", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, xdWA): return True return YKHO.to_dict() != Elif.to_dict()
{ "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.8456082", "0.83912885", "0.81436425", "0.81406975", "0.8131807", "0.8093013", "0.80912536", "0.80912536", "0.80912536", "0.8084505", "0.8084505", "0.8075543", "0.8075543", "0.8065009", "0.80417395", "0.80417395", "0.80417395", "0.80417395", "0.80417395", "0.80417395", "0.8...
0.0
-1
generate CNN model given input size, channels, kernel_sizes and strides
def Qf5f(xMux=(4, 16, 32), _GHR=(8, 4), FEri=(4, 2), FtXE=84): dW8e = [] a6Jb = FtXE for YRbF in range(len(xMux) - 1): DYuh, tYiq = (xMux[YRbF], xMux[YRbF + 1]) Ot1W, _0fC = (_GHR[YRbF], FEri[YRbF]) yIp6 = U78l.Conv2d(DYuh, tYiq, Ot1W, _0fC) YDYE = U78l.ReLU() dW8e +=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yIp6(dc1B, bdDj, mx59, _0fC=2, hVLt=1, tF9S=True):\n fhcK = []\n fhcK.append(U78l.Conv2d(dc1B, bdDj, mx59, _0fC, hVLt, bias=True))\n if tF9S:\n fhcK.append(U78l.BatchNorm2d(bdDj))\n return U78l.Sequential(*fhcK)", "def yIp6(DYuh, tYiq, Ot1W, _0fC=2, dvgN=1, idFg=True):\n fhcK = []\n ...
[ "0.71356314", "0.70517457", "0.7017613", "0.7017011", "0.69211715", "0.69066066", "0.6898658", "0.6889347", "0.6887702", "0.6880089", "0.68388766", "0.6814131", "0.6803217", "0.67275405", "0.6720525", "0.669974", "0.6673476", "0.66316533", "0.66260815", "0.6616506", "0.658491...
0.78787047
0
Calculates the Hausdorff's distance [HD]_ of two needles. Both needles are truncated to start and end at the same slices.
def IHwN(YKHO, FJhS, Yk_P): Tq9Y() i4Va = R6Bn.mrmlScene.GetNodeByID(FJhS) Zkp4 = i4Va.GetPolyData() rUTj = R6Bn.mrmlScene.GetNodeByID(Yk_P) PZYY = rUTj.GetPolyData() v6SN = Zkp4.GetNumberOfPoints() dg8z = PZYY.GetNumberOfPoints() vELP = None PtQX = None ayqa, gDyN = (None, None)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JYgZ(aBQf, Y9dS, KVH6, dir):\n if KVH6 == None:\n return max(JYgZ(aBQf, Y9dS, True, dir), JYgZ(aBQf, Y9dS, False, dir))\n else:\n w3x8, dBbJ = (aBQf, Y9dS) if KVH6 else (Y9dS, aBQf)\n Jw7X, eUWA = dir if KVH6 else (-dir[0], -dir[1])\n return sum([min([Dy5h((EBgd[0] + Jw7X, EBg...
[ "0.6701674", "0.663564", "0.6625377", "0.65434706", "0.6493009", "0.6417718", "0.63626313", "0.6325076", "0.63013965", "0.62799823", "0.6230968", "0.617653", "0.6169091", "0.61599636", "0.6097466", "0.607543", "0.60736144", "0.6060494", "0.5937603", "0.59173405", "0.5889318",...
0.61212635
14
Returns the axial distance between the tip of two needles
def oC1D(YKHO, FJhS, Yk_P): Tq9Y() Q6kx = R6Bn.mrmlScene.GetNodeByID('vtkMRMLModelNode' + str(FJhS)) LpnT = Q6kx.GetPolyData() rUTj = R6Bn.mrmlScene.GetNodeByID('vtkMRMLModelNode' + str(Yk_P)) PZYY = rUTj.GetPolyData() XP5J, kiCr = ([0, 0, 0], [0, 0, 0]) HpuQ = [0, 0, 0] PvY8 = [0, 0, 0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pImw(WKvO, LVAh):\n Jw7X = WKvO[0] - LVAh[0]\n eUWA = WKvO[1] - LVAh[1]\n TK2h = Jw7X ** 2 + eUWA ** 2\n TK2h = TK2h ** 0.5\n return TK2h", "def pImw(WKvO, LVAh):\n Jw7X = WKvO[0] - LVAh[0]\n eUWA = WKvO[1] - LVAh[1]\n TK2h = Jw7X ** 2 + eUWA ** 2\n TK2h = TK2h ** 0.5\n return T...
[ "0.7024393", "0.7010588", "0.6866394", "0.68190604", "0.6804195", "0.67529464", "0.6703184", "0.66527224", "0.6644499", "0.66429156", "0.6597854", "0.659407", "0.6588388", "0.6574123", "0.655004", "0.6519588", "0.6510772", "0.6495006", "0.6483284", "0.64808416", "0.64763665",...
0.0
-1
Get a Qt bold font ??? Used?
def BgOT(YKHO): RovI() Jcbn = eA0O.QFont('Sans Serif', 12, eA0O.QFont.Bold) return Jcbn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BgOT(YKHO):\n RovI()\n Jcbn = eA0O.QFont('Sans Serif', 12, eA0O.QFont.Bold)\n return Jcbn", "def nzpg(YKHO):\n return I4qd(YKHO.name[0:2] + 'B', YKHO.size)", "def M60E(JSRs=False):\n o9av = fDEE()\n o9av.setPointSize(CjnN)\n o9av.setBold(JSRs)\n return o9av", "def EIZQ(YKHO):\n ...
[ "0.8531085", "0.7381077", "0.7377874", "0.7046928", "0.6864032", "0.6863521", "0.6856567", "0.6822501", "0.6730293", "0.66376287", "0.66372424", "0.65659153", "0.65659153", "0.65618026", "0.65618026", "0.65618026", "0.6469601", "0.6365785", "0.634718", "0.6324098", "0.6310631...
0.8658464
0
This data source provides the Vpc Peer Connections of the current Alibaba Cloud user.
def U27C(A07C: Optional[Sequence[str]]=None, fcPP: Optional[str]=None, UXEK: Optional[str]=None, b69f: Optional[str]=None, jGRS: Optional[str]=None, xOeT: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> ahKh: rYZf = dict() rYZf['ids'] = A07C rYZf['nameRegex'] = fcPP rYZf['outputFile'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_Mz(YKHO):\n return DW23.UserConnections(YKHO)", "def QrmI(YKHO):\n raise NotImplementedError()", "def k1xm(YKHO):\n return YKHO.client.call('GET', YKHO.name + 'peer-list/all')", "def k_m5(YKHO):\n Ylbp = []\n YKHO.AL.acquire()\n for Uqbu in YKHO.ls.keys():\n U34r = YKHO.ls[Uqbu...
[ "0.6309224", "0.57709324", "0.5683697", "0.5515731", "0.5461865", "0.5461865", "0.54432523", "0.54325545", "0.5421239", "0.54156554", "0.5405928", "0.5399641", "0.53758717", "0.5343734", "0.53213006", "0.5295045", "0.52940905", "0.5287351", "0.5267869", "0.52601004", "0.52538...
0.4837207
53
This data source provides the Vpc Peer Connections of the current Alibaba Cloud user.
def hJXo(A07C: Optional[pulumi.Input[Optional[Sequence[str]]]]=None, fcPP: Optional[pulumi.Input[Optional[str]]]=None, UXEK: Optional[pulumi.Input[Optional[str]]]=None, b69f: Optional[pulumi.Input[Optional[str]]]=None, jGRS: Optional[pulumi.Input[Optional[str]]]=None, xOeT: Optional[pulumi.Input[Optional[str]]]=None, V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_Mz(YKHO):\n return DW23.UserConnections(YKHO)", "def QrmI(YKHO):\n raise NotImplementedError()", "def k1xm(YKHO):\n return YKHO.client.call('GET', YKHO.name + 'peer-list/all')", "def k_m5(YKHO):\n Ylbp = []\n YKHO.AL.acquire()\n for Uqbu in YKHO.ls.keys():\n U34r = YKHO.ls[Uqbu...
[ "0.6308618", "0.57736284", "0.568641", "0.55183715", "0.54638785", "0.54638785", "0.5443154", "0.5430412", "0.54221624", "0.5418182", "0.54057753", "0.54030436", "0.53774244", "0.5342774", "0.5322539", "0.5296446", "0.52925545", "0.5288956", "0.5268953", "0.5262285", "0.52562...
0.0
-1