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
Django User model allows duplicate emails. We want emails to be unique
def Bt7w(BWXx): if mv1M.objects.filter(email__iexact=BWXx).exists(): raise sUXu('email already exists') return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zm8X(D3lj):\n if TQW7.get_user(D3lj) is not None:\n raise sUXu(Eair('EMAIL_ALREADY_ASSOCIATED', email=D3lj)[0])", "def SB6C(YKHO, DNHh: None) -> None:\n super().validate_unique(exclude=DNHh)\n if YKHO.email and egNl().objects.exclude(id=YKHO.id).filter(is_active=True, email__iexact=YKHO.email...
[ "0.75038356", "0.73963153", "0.7335375", "0.7216391", "0.715406", "0.7152958", "0.7130461", "0.70914793", "0.70697194", "0.7054771", "0.70544267", "0.7036604", "0.70223725", "0.7003918", "0.70038617", "0.6997255", "0.6965009", "0.69464236", "0.69388497", "0.6938669", "0.69292...
0.69091
24
Discover hooks from "hookclassnames' property. This property is deprecated but we should support it in Airflow 2. The hookclassnames array contained just Hook names without connection type, therefore we need to import all those classes immediately to know which connection types are supported. This makes it impossible t...
def hAXn(YKHO, LzmV: set[str], ONWF: set[str], hxGQ: str, kT1P: ProviderInfo, Re0p: bool): q9Jd = kT1P.data.get('hook-class-names') if q9Jd: for UeVn in q9Jd: if UeVn in LzmV: continue P0Tc = YKHO._import_hook(connection_type=None, provider_info=kT1P, hook_class_n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EdZ3(YKHO, LzmV: set[str], ONWF: set[str], hxGQ: str, kT1P: ProviderInfo):\n Re0p = False\n vHSi = kT1P.data.get('connection-types')\n if vHSi:\n for MauH in vHSi:\n Xixj = MauH['connection-type']\n UeVn = MauH['hook-class-name']\n LzmV.add(UeVn)\n bE...
[ "0.65660596", "0.6345069", "0.61770624", "0.6123527", "0.591215", "0.58642983", "0.5840167", "0.5791368", "0.56417114", "0.56242394", "0.5607818", "0.558492", "0.5504467", "0.5503401", "0.5503401", "0.54983217", "0.54780716", "0.54780716", "0.5463624", "0.5458208", "0.5422442...
0.7015821
0
This function uses the train and test indices of each sliding window returned by return_walkforward_indices() to slice the dataframe, creating n separate sliding windows. For each sliding window, there is now X_train, y_train, X_test, y_test. e.g. X_train_0, y_train_0, X_test_0, y_test_0 is for the first sliding window...
def y1oA(EcVT, LVAh): PqZA, ukh_ = PNf9(EcVT) lNWu = {} Y5YY = txNa() yikj = len(PqZA) for YRbF in oyIN.arange(yikj): set = {'X_train_' + str(YRbF): rLdf.DataFrame(EcVT.values[PqZA[YRbF]]), 'y_train_' + str(YRbF): rLdf.DataFrame(LVAh.values[PqZA[YRbF]]), 'X_test_' + str(YRbF): rLdf.DataFrame...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZHHa(Tura, Kp9U, Cqt0, VeUe, E2NE, Zj1Z, D7W0, LO9R, tsWk, X2rP):\n r3bO = []\n for YRbF, H9hC in enumerate(Zj1Z):\n z_bm, DVEJ = lY6z(Tura, H9hC, Kp9U, 'booking_start_datetime', tsWk, X2rP, 0, E2NE)\n z_bm = z_bm.reset_index()\n DVEJ = DVEJ.drop_duplicates([Kp9U])\n z_bm = z_...
[ "0.67038935", "0.6153779", "0.60984707", "0.6032662", "0.603107", "0.6005987", "0.5940047", "0.59269017", "0.5923628", "0.59168905", "0.5882464", "0.5880029", "0.5866984", "0.58546674", "0.579435", "0.57801867", "0.5770909", "0.57610303", "0.5748996", "0.5744383", "0.5717359"...
0.7239998
0
Creates a simple Keras Sequential model that will be passed to KerasClassifier object.
def LQs7(K0do='adam', vNnt=1, Xsfr=0.01, H0zq=0, RG9Q='normal', lo24=0.0, Gzv5=None): with ZylS.device('/device:GPU:0'): C3ST = ileL() C3ST.add(l6ZH(vNnt, input_dim=Gzv5, activation='relu', kernel_initializer=RG9Q)) C3ST.add(lARV(lo24)) C3ST.add(l6ZH(vNnt, activation='relu')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FGiJ() -> ileL:\n return ileL()", "def LQs7():\n C3ST = ileL()\n C3ST.add(l6ZH(units=128, activation='relu', input_shape=(784,)))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=10, activation='softmax'))\n C3ST.compile(...
[ "0.78268886", "0.782047", "0.7545403", "0.7529066", "0.7507581", "0.7426692", "0.7361053", "0.72851443", "0.72545123", "0.7250027", "0.71896344", "0.71755743", "0.7149736", "0.71452546", "0.7139477", "0.7092834", "0.7079254", "0.70749974", "0.7067056", "0.70445544", "0.703922...
0.6693161
52
When passed a dict containing X_train and X_test sets of the sliding windows, this will remove features that aren't important, as determined by extract_imp_features().
def kmp4(lNWu, j0Y5): bfXN = [] for set in oyIN.arange(0, len(lNWu), 2): bfXN.append(list(lNWu.keys())[set]) for set in enumerate(bfXN): Csa0 = int(str(set[1])[-1]) lNWu[set[1]] = lNWu[set[1]].iloc[:, list(j0Y5.values())[Csa0]] return lNWu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZr(YKHO, bySB):\n PTpj = []\n for eHNT, Ty9i in bySB.iteritems():\n if Ty9i < YKHO.min_freq:\n PTpj.append(eHNT)\n for eHNT in PTpj:\n del bySB[eHNT]\n return bySB", "def nrfY(YKHO, hiNg=woWm):\n YKHO.df.drop(woWm, axis=1, inplace=True)", "def F5E2(YKHO, bySB):\n ...
[ "0.63685614", "0.6113741", "0.5979592", "0.58696884", "0.5833377", "0.5720768", "0.5638711", "0.56051403", "0.5560039", "0.5471029", "0.5458227", "0.5446285", "0.5412656", "0.5412254", "0.540626", "0.5403164", "0.53782475", "0.5366331", "0.5335808", "0.53349537", "0.5329471",...
0.64314795
0
True, as all users are active.
def ksfB(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO):\n return True", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBI...
[ "0.75308377", "0.7392309", "0.7392309", "0.7392309", "0.7392309", "0.73852575", "0.73056287", "0.7290842", "0.7230901", "0.72114825", "0.71813864", "0.714781", "0.714781", "0.7117796", "0.7107901", "0.70613724", "0.7053262", "0.7051632", "0.70370287", "0.70316494", "0.7010118...
0.71019155
23
False, as anonymous users aren't supported.
def wDqn(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return True", "def ...
[ "0.84041584", "0.84041584", "0.8380213", "0.8380213", "0.8380213", "0.8377405", "0.83305264", "0.82501274", "0.8244858", "0.81436765", "0.8103119", "0.80954605", "0.807159", "0.7877262", "0.7874819", "0.7860086", "0.7859498", "0.77627987", "0.7724922", "0.76033795", "0.757673...
0.8359979
10
For meaning of each variable, please refer to the documentation in the "conv_layer" function. They're the same. "out_channels" is just "num_filters". This function initializes variables for the convolution networks.
def XGtL(Zxma, tYiq, QJWG, ZqW4=True, l7uB=False, mWFP='', CJGY=False): with ZylS.variable_scope('conv_init_vars' + mWFP, reuse=CJGY): bGrB, usx6, WfCS, DYuh = [YRbF.value for YRbF in Zxma.get_shape()] if not l7uB: bCyF = [QJWG, QJWG, DYuh, tYiq] else: bCyF = [QJWG, Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J2K6(YKHO, YDR7, h9bi, TFPw, Cb9n):\n YKHO.conv_center = U78l.Conv3d(YDR7, 1, 3, padding=1, bias=False)\n YKHO.conv_reg = U78l.Conv3d(YDR7, h9bi, 3, padding=1, bias=False)\n YKHO.conv_cls = U78l.Conv3d(YDR7, TFPw, 3, padding=1)\n YKHO.scales = U78l.ModuleList([bi20(1.0) for bGrB in range(Cb9n)])", ...
[ "0.70857424", "0.7043272", "0.6927547", "0.684612", "0.6814521", "0.68110394", "0.6781806", "0.67376614", "0.672612", "0.6693732", "0.66673076", "0.66627014", "0.66230655", "0.65899336", "0.6588429", "0.65752983", "0.65617466", "0.6548697", "0.65478975", "0.653259", "0.651293...
0.7039691
2
Checks if product exist return list with boolean value and product object if exist
def pMK_(n8KJ): Lx3t = _hSU.query(_kXF).filter_by(name=n8KJ).first() if Lx3t is None: return [False] return [True, Lx3t]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, Lx3t):\n return Lx3t in YKHO.products", "def FYXB(YKHO, Lx3t):\n return Lx3t in YKHO.products", "def pMK_(id):\n geh0 = G4JS.get(f'http://localhost:{Z6sM}/v1.0/invoke/product/method/products/{id}')\n if geh0.status_code == 200:\n return True\n return False", "def D1C6(YKH...
[ "0.6910577", "0.6910577", "0.6629504", "0.6605318", "0.6438845", "0.6433484", "0.6373545", "0.63678575", "0.6365451", "0.6339108", "0.6263926", "0.6254371", "0.62530345", "0.62483305", "0.6180454", "0.6176619", "0.60737264", "0.60722196", "0.60430807", "0.6024594", "0.6020328...
0.7646122
0
Return all products which belongs to given category
def BUTj(ipek): LeZt = _hSU.query(qZuN).order_by(MqDc(qZuN.name)) Ghho = _hSU.query(qZuN).filter_by(name=ipek).one() nLHR = _hSU.query(_kXF).filter_by(category_id=Ghho.id) Ldyl = nLHR.all() eonp = nLHR.count() return TvZl('catagoryProducts.html', total=eonp, category=Ghho, products=Ldyl, categor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HdRD(YKHO, Ghho):\n vW2y = YKHO.session.query(msfn).filter(msfn.categories.ilike(f'%{Ghho}%'))\n return [Lx3t for Lx3t in vW2y]", "def hNMh(jvqk):\n return msfn.query(msfn.product_categories == jvqk).all()", "def PZdU(YKHO, Ghho):\n ACia = YKHO.conn_user.query(' SELECT product.barcode, product....
[ "0.8304329", "0.7935212", "0.7880393", "0.7804237", "0.76550686", "0.75463617", "0.7334611", "0.7199015", "0.71962726", "0.7185666", "0.7155167", "0.713881", "0.710686", "0.7094807", "0.70684505", "0.70519215", "0.6990903", "0.6939148", "0.69259536", "0.68968666", "0.6895584"...
0.63997126
40
Returns json endpoint for all items with all categories
def rIsN(): LeZt = _hSU.query(qZuN).all() VJUP = [] for Ghho in LeZt: Ldyl = _hSU.query(_kXF).filter_by(category_id=Ghho.id).all() CqMj = Ghho.serialize VJUP.append(CqMj) C76W = [Lx3t.serialize for Lx3t in Ldyl] CqMj.update({'items': C76W}) return pz3A(category=VJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XQnR():\n cC5s = cuiw.query(qZuN).all()\n GtGV = []\n for YRbF in cC5s:\n ACia = YRbF.serialize\n RZ9F = cuiw.query(l7Mk).filter_by(category_id=YRbF.id)\n DumB = []\n for WKvO in RZ9F:\n DumB.append(WKvO.serialize)\n ACia['items'] = DumB\n GtGV.appe...
[ "0.7825477", "0.7720379", "0.7576986", "0.75501937", "0.7477936", "0.7432488", "0.73750436", "0.7280896", "0.7277254", "0.7258299", "0.7253238", "0.7245456", "0.72304446", "0.7230392", "0.7191588", "0.7189156", "0.7184218", "0.7178628", "0.71559674", "0.71446484", "0.71373814...
0.72719127
9
Convert an expression into its LaTeX representation for displaying.
def _svw(YKHO): raise Exception('latex not implemented for %s' % YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TnQa(lsX7):\n owmC = MiUm()\n owmC.generic_visit(lsX7)\n return owmC.result", "def eMsG(YKHO):\n from sage.misc.latex import latex\n return latex(YKHO.equation)", "def ykcg(VN2L):\n return _svw(VN2L)", "def Ne1c(YKHO):\n return YKHO._str", "def eMsG(YKHO):\n return _svw(YKHO.__o...
[ "0.8088749", "0.7343687", "0.7051831", "0.7020346", "0.70096767", "0.69117963", "0.6892173", "0.6765859", "0.67105836", "0.66304547", "0.66180074", "0.6616558", "0.660498", "0.65381706", "0.65307206", "0.6519037", "0.6518791", "0.6518414", "0.6512202", "0.64952976", "0.647560...
0.61298805
46
Get the symbol of the variable. For example, 'x'.
def o61b(YKHO): return YKHO.vset.symbol_for(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LRuN(YKHO):\n return YKHO.__sym", "def DUQK(YKHO):\n return YKHO.symbol", "def o61b(YKHO) -> str:\n return YKHO.value[0]", "def DUQK(YKHO):\n return YKHO.__symbol", "def o61b(YKHO):\n return YKHO._symbol", "def o61b(YKHO):\n return YKHO._symbol", "def o61b(YKHO):\n return YKHO....
[ "0.7635607", "0.75830215", "0.7581293", "0.7476245", "0.7436847", "0.7436847", "0.7436847", "0.7436847", "0.7436847", "0.7436847", "0.7436847", "0.7426587", "0.7399114", "0.73208153", "0.7309398", "0.72258997", "0.7185953", "0.7132517", "0.7056026", "0.7014317", "0.6992653", ...
0.6993009
20
Create the fraction (numr / denr).
def FIMM(YKHO, nz65, ukWG): YKHO.numr = nz65 YKHO.denr = ukWG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wA3x(YKHO, M6pt, UUZ1):\n H5ew = f'{M6pt}/{UUZ1}'\n return hE8O.EncTbls.getmapped(YKHO.encoding, 'frac', str(H5ew))", "def wA3x(pan_, M6pt, UUZ1):\n WKvO = pan_[M6pt]\n LVAh = pan_[UUZ1]\n return WKvO / LVAh", "def B8u7(mLGw, OCOs):\n Oa1e = ML2l(mLGw, OCOs)\n return [mLGw // Oa1e, OCO...
[ "0.72613627", "0.7150422", "0.70622796", "0.70433897", "0.703572", "0.7018821", "0.69046456", "0.6819176", "0.67712504", "0.6683994", "0.66709536", "0.66677654", "0.66611314", "0.6655143", "0.6633963", "0.6526446", "0.6449785", "0.64428926", "0.6412603", "0.63734734", "0.6359...
0.0
-1
`base` to the power `exponent`.
def FIMM(YKHO, P8oC, w520): YKHO.base = P8oC YKHO.exponent = w520
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naF9(P8oC, w520):\n if w520 == 0:\n return 1\n return P8oC * naF9(P8oC, w520 - 1)", "def naF9(P8oC, w520):\n if w520 == 0:\n return 1\n wjRY = P8oC * naF9(P8oC, w520 - 1)\n return wjRY", "def kLQb(naF9, P8oC):\n if P8oC == 0:\n return 0\n elif naF9 == 0:\n r...
[ "0.85452193", "0.80428946", "0.77881604", "0.7778271", "0.7569515", "0.7351717", "0.7140679", "0.705199", "0.7050487", "0.70116454", "0.6879223", "0.6821592", "0.68022823", "0.6740527", "0.673253", "0.66698784", "0.66187704", "0.65388435", "0.6532282", "0.6448013", "0.6437295...
0.58506364
57
MSE loss scaled so that it usually lies in 0.1 100 range. This cannot be converted to a lambda, because it needs to be pickleable.
def ul07(LVAh, uN02): return 10000 * vuvg.mse_loss(LVAh, uN02)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, nvEb, pan_, *qIxc, **B2fa):\n return oyIN.sqrt(q79E()(nvEb, pan_, *qIxc, **B2fa))", "def jJuB(LVAh, UShr, yzQ0, w4rS=0):\n tTpl = LVAh - UShr.dot(yzQ0)\n return 1 / 2 * oyIN.mean(tTpl ** 2) + w4rS / 2 * oyIN.dot(yzQ0, yzQ0)", "def _NM_(YKHO, o4Jx, x6A0):\n return ht2j.sqrt(U78l.MSELo...
[ "0.69842434", "0.6871012", "0.6790951", "0.6768858", "0.67527354", "0.6736", "0.6724451", "0.6664576", "0.6541266", "0.64894927", "0.64500207", "0.6411489", "0.63711745", "0.63639444", "0.63596505", "0.6338944", "0.6327998", "0.632204", "0.632204", "0.6294619", "0.62857497", ...
0.706634
0
Restores the weights of a model saved to `model_fn` to the model of the Learner `learn`.
def wBIE(v5Xw, JnVv, Qdji=False): qtWj = None if JnVv is not None: try: QTBn = ht2j.load(JnVv, map_location=v5Xw.data.device) C3ST = v5Xw.model if isinstance(C3ST, UPDZ): C3ST = C3ST.module C3ST.load_state_dict(QTBn['model'], strict=False) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FaSl(YKHO):\n YKHO.target_model.set_weights(YKHO.model.get_weights())", "def hx0A(YKHO):\n YKHO.target_model.set_weights(YKHO.model.get_weights())", "def UMkV(C3ST, vauY=None):\n\n def fAZZ(r8hN):\n if hasattr(r8hN, 'reset_parameters'):\n r8hN.reset_parameters()\n if vauY is N...
[ "0.681031", "0.6807278", "0.67912424", "0.6685069", "0.6652517", "0.656922", "0.6544735", "0.64688", "0.64688", "0.64688", "0.64688", "0.64509344", "0.64345", "0.6385905", "0.6325265", "0.6300365", "0.627287", "0.6261528", "0.6260546", "0.62353337", "0.6203816", "0.619618",...
0.6636749
5
Returns the x_train and x_test split of the MNIST dataset, reshaped into flat np arrays of float32, normalized into [0.0, 1.0].
def jEop(YKHO): (cC56, SBxS), (sAoX, Yc8x) = w37D.load_data() ndi4 = (28, 28, 1) cC56 = oyIN.reshape(cC56, [-1, *ndi4]) sAoX = oyIN.reshape(sAoX, [-1, *ndi4]) cC56 = cC56.astype('float32') / 255.0 sAoX = sAoX.astype('float32') / 255.0 return (cC56, sAoX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0Mn(Lcqa, Z5wO, kvqa):\n Lcqa = Lcqa.reshape((-1, kvqa))\n eRPr, JvQp = (Lcqa.min(0), Lcqa.max(0))\n Lcqa = (Lcqa - eRPr) / (JvQp - eRPr + 1e-06)\n Z5wO = Z5wO.reshape((-1, kvqa))\n Z5wO = (Z5wO - eRPr) / (JvQp - eRPr + 1e-06)\n return (Lcqa, Z5wO)", "def dG2h(cC56, VJv0, sAoX, H96n, HdOj)...
[ "0.70106786", "0.68694735", "0.6709587", "0.6702821", "0.6680723", "0.66554755", "0.66375715", "0.661456", "0.65962315", "0.657123", "0.65493613", "0.65344584", "0.65159047", "0.65100443", "0.65068156", "0.65035236", "0.6471209", "0.6465268", "0.6444169", "0.6422262", "0.6393...
0.7053357
0
FireModule Fire module for the SqueezeNet model. Implements the expand layer, which has a mix of 1x1 and 3x3 filters, by using two conv layers concatenated in the channel dimension.
def Ym2b(sxnV, ETwR, geQj, mWFP): if nMvt.image_dim_ordering() == 'tf': iXOV = 3 else: iXOV = 1 def gEmA(WKvO): MZMe = yHwh(filters=sxnV, kernel_size=1, activation='relu', kernel_initializer='glorot_uniform', name=mWFP + '/squeeze1x1')(WKvO) MZMe = GVKG(name=mWFP + '/squeeze...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OUa6(WKvO, U7Y9, MZMe=16, lHli=64):\n Ns3P = f'fire{str(U7Y9)}/'\n if nMvt.image_data_format() == 'channels_first':\n UJgg = 1\n else:\n UJgg = 3\n WKvO = Ofph(MZMe, (1, 1), padding='valid', name=Ns3P + RdZe)(WKvO)\n WKvO = MroH('relu', name=Ns3P + QZir + RdZe)(WKvO)\n LFlW = Of...
[ "0.74047536", "0.700801", "0.6709121", "0.6590387", "0.65668917", "0.6410283", "0.63504195", "0.6279326", "0.62619305", "0.62316513", "0.61852866", "0.6127859", "0.6124005", "0.61140376", "0.61089796", "0.60783905", "0.6075493", "0.60738266", "0.6042815", "0.6041143", "0.6032...
0.71760935
1
Function to extract normalized eigenvector.
def E7Yq(EcVT, Z6Bj: float=5.0, f_W5: int=3, EGaf: bool=True, npij: str='foa', Vb5F: int=None, yeE7: int=None, X360: int=None): KQ7o, rpgT, VAjL = EcVT.shape TeOj = 3 reXe = TeOj * oyIN.ones((KQ7o,), dtype=int) Cwt5 = 0.02 dlMh = 0.1 KBf5 = 1 + Cwt5 xPXF = 1 + dlMh * Cwt5 zXXR = 1 - Cwt5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IFfJ(WKvO: torch.Tensor):\n jzdc = WKvO[..., 0, 0].double()\n Z9rn = WKvO[..., 0, 1].double()\n Fg_i = WKvO[..., 1, 1].double()\n RA_F = ht2j.sqrt(jzdc * jzdc + 4 * Z9rn * Z9rn - 2 * jzdc * Fg_i + Fg_i * Fg_i)\n hQHm = (jzdc - Fg_i - RA_F) / 2.0 / Z9rn\n hQHm = ht2j.stack([hQHm, ht2j.ones_lik...
[ "0.72927666", "0.71581143", "0.68742514", "0.6839458", "0.67306286", "0.6702995", "0.6702673", "0.6621646", "0.6541516", "0.6538464", "0.6534906", "0.65327173", "0.65045923", "0.6476057", "0.6474374", "0.646101", "0.64558434", "0.64336705", "0.64327496", "0.64064616", "0.6401...
0.0
-1
Initialize the board of a list containing 3 other lists of empty strings representing the game rows.
def FIMM(YKHO): YKHO._board = [['', '', ''], ['', '', ''], ['', '', '']] YKHO._current_state = 'UNFINISHED' YKHO._move_counter = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KFny():\n return [[Oc7B for bGrB in range(3)] for bGrB in range(3)]", "def Y_l3():\n return [[' ', ' ', ' '], [' ', ' ', ' '], [' ', ' ', ' ']]", "def FIMM(YKHO, JnVq):\n YKHO.board = []\n JnVq = JnVq.strip()\n assert len(JnVq) == 9\n YRbF = -1\n for r845, Z9rn in enumerate(JnVq):\n ...
[ "0.80852294", "0.781604", "0.7684351", "0.7582857", "0.75798595", "0.7456211", "0.7441946", "0.7379126", "0.7359127", "0.7336466", "0.729423", "0.7290215", "0.7268063", "0.7218641", "0.7193009", "0.7134212", "0.71035606", "0.71035606", "0.70889777", "0.70676714", "0.7062073",...
0.6300687
94
Helper method to check if the given symbol is an x or o. Returns True or False.
def vWJI(YKHO, o61b): return o61b == 'x' or o61b == 'o'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GoVZ(input):\n return isinstance(input, nAhC)", "def QQ_a(d7pR):\n return isinstance(d7pR, wZLS) or isinstance(d7pR, FCE9.Basic)", "def GoVZ(KCHu):\n return uVSs(KCHu) or qv_Q(KCHu)", "def My_c(YKHO, mWFP):\n return mWFP in YKHO.symbols", "def GoVZ(Z9rn):\n return Z9rn in {'{', '}', '(',...
[ "0.7746921", "0.73223954", "0.7256208", "0.7064679", "0.6830596", "0.6773153", "0.6729702", "0.6726761", "0.66921854", "0.66674817", "0.6636877", "0.66314834", "0.66314834", "0.66314834", "0.66200113", "0.6557232", "0.6551789", "0.652371", "0.649185", "0.64541227", "0.6437543...
0.86199915
0
Takes a dataframe of closes changes and slopes and create batches of the slopes of the batch_count
def u6b4(jQ3Z, GzWM, a6UK, E7UX): MQdM = list(u0Ks(jQ3Z[GzWM].tolist(), a6UK)) return MQdM[:E7UX]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dcil(jQ3Z, GzWM, a6UK, E7UX):\n MQdM = list(LZRv(jQ3Z[GzWM].tolist(), a6UK))\n return MQdM[:E7UX]", "def KhUu(jQ3Z, GzWM, a6UK, E7UX, OCOF):\n MQdM = list(u0Ks(jQ3Z[GzWM].tolist(), a6UK))\n QFJe = []\n for yOAJ in MQdM:\n QFJe.append(ZCKv(yOAJ, OCOF))\n return QFJe[:E7UX]", "def Kh...
[ "0.7454105", "0.6868612", "0.68221545", "0.62044096", "0.6146371", "0.6080855", "0.60063314", "0.58903986", "0.5838622", "0.58232206", "0.58004016", "0.5737551", "0.5693449", "0.5670008", "0.5660064", "0.5643643", "0.5601544", "0.5587645", "0.55668056", "0.5549467", "0.550742...
0.75825
0
Convert a list to string. Elements are separated by comma, without any spaces inserted in between
def tkx1(yv6U): if type(yv6U) is not list: return str(yv6U) return '[' + ','.join((tkx1(LihS) for LihS in yv6U)) + ']'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kRAs(ybN4):\n return ','.join(ybN4)", "def sA23(YKHO, list):\n if not list:\n return ''\n return ','.join(list)", "def D6RL(yv6U):\n return ','.join(yv6U)", "def D6RL(yv6U):\n return ','.join(yv6U)", "def QuWA(vC9B):\n KCHu = ''\n for YRbF in vC9B:\n KCHu = KCHu + YRb...
[ "0.8744004", "0.8602031", "0.8600617", "0.8600617", "0.8535131", "0.8485561", "0.845142", "0.83544385", "0.8296398", "0.82522684", "0.8116274", "0.796964", "0.79362416", "0.7872571", "0.78631884", "0.7862695", "0.7859545", "0.7837884", "0.78328156", "0.78235215", "0.77386475"...
0.799821
11
Computes the binary mask of the detected Page from the probabilities output by network.
def iVDL(BFeB: np.ndarray, gwAu: float=-1) -> oyIN.ndarray: if gwAu < 0: BFeB = oyIN.uint8(BFeB * 255) BFeB = XC5k.GaussianBlur(BFeB, (5, 5), 0) WWyx, llUt = XC5k.threshold(BFeB, 0, 255, XC5k.THRESH_BINARY + XC5k.THRESH_OTSU) ZHfW = oyIN.uint8(llUt / 255) else: ZHfW = oyI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQSB(BFeB: np.ndarray, gwAu: float=-1) -> oyIN.ndarray:\n ZHfW = XQXy.thresholding(BFeB, gwAu)\n ZHfW = XQXy.cleaning_binary(ZHfW, kernel_size=5)\n return ZHfW", "def Es5c(JxU2, gwAu):\n return JxU2 > gwAu", "def RltG(YKHO, vTBz: np.ndarray) -> oyIN.ndarray:\n ZHfW = oyIN.zeros_like(vTBz[0],...
[ "0.7269165", "0.61837655", "0.6094691", "0.60483915", "0.5924331", "0.5855593", "0.5783433", "0.5775559", "0.5747744", "0.5675762", "0.5668923", "0.566794", "0.5622005", "0.5611005", "0.55849016", "0.55822605", "0.55568606", "0.5550728", "0.5520731", "0.5520346", "0.551881", ...
0.5291221
44
Filters out some punctuations, then casefolds to lowercase and then returns the result array of terms
def NBjn(ezWE): return [hbIm(OXAZ) for OXAZ in ezWE if OXAZ != ' ']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biH0(V22M):\n vMJ9 = '!\"#$%&\\'()*+,-./:;<=>/?@[\\\\]^_`{|}~«» '\n return ' '.join([yzQ0.strip(vMJ9).lower() for yzQ0 in V22M.split()])", "def biH0(YKHO, l5Ny):\n l5Ny = l5Ny.lower()\n V22M = l5Ny.split()\n tyNF = str.maketrans('', '', vIwR.punctuation)\n EESs = [yzQ0.translate(tyNF) for y...
[ "0.7667998", "0.7217219", "0.71114707", "0.70857567", "0.700481", "0.69924223", "0.68602425", "0.6704834", "0.67003965", "0.6665301", "0.66389114", "0.6611874", "0.65918577", "0.6581925", "0.6575338", "0.6566123", "0.6561671", "0.6556895", "0.6529196", "0.650531", "0.6501397"...
0.7319115
1
Returns a set of synonyms for the given query word
def g9Na(xDcj, ShNj): lMSW = set() for KCHu in WnSJ.synsets(xDcj): for vC9B in KCHu.lemmas(): if vC9B.name() not in ShNj: lMSW.add(vC9B.name()) return lMSW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZKLx(YKHO, GIN8):\n return X1AK.synsets(GIN8)", "def onZO(GIN8):\n if not xrnL(GIN8):\n PVn9 = [GIN8]\n for H9lX in WnSJ.synsets(GIN8):\n for vC9B in H9lX.lemmas():\n PVn9.append(vC9B.name())\n return set(PVn9)", "def iK5n(YKHO, GIN8):\n odDj = WnSJ.s...
[ "0.85976994", "0.806013", "0.7984733", "0.79803526", "0.77541107", "0.767604", "0.7651934", "0.7433392", "0.74308217", "0.7400071", "0.72900784", "0.7248519", "0.72301203", "0.7175187", "0.71709925", "0.7135199", "0.70857275", "0.7046119", "0.70434797", "0.6978467", "0.696546...
0.64110374
41
Validate that a datetime is not naive.
def _7k0(BWXx: datetime) -> None: if not BWXx.tzinfo: raise rDSL('Invalid datetime format', detail='Naive datetime is disallowed')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mH81(JRYC):\n if JRYC is None:\n return True\n if JRYC.tzinfo is None:\n return True\n else:\n return False", "def xZCQ(YKHO):\n JRYC = qcWV(2018, 2, 20, 13, 42, 0)\n YKHO.assertTrue(rIAI.is_naive(JRYC))\n wr44 = FXGE.timezone('US/Pacific')\n with rIAI.override(wr44)...
[ "0.75640273", "0.74428", "0.7389691", "0.7384361", "0.72007936", "0.7146358", "0.7057212", "0.7051169", "0.696359", "0.6918123", "0.68952733", "0.68245625", "0.67440665", "0.67294663", "0.67209876", "0.66990215", "0.6648701", "0.6630078", "0.66005176", "0.6559791", "0.6549128...
0.6978811
8
Calculate candle reaction high
def eEPO(ODP9, dir): zNig = ODP9.shape[0] Aofo = oyIN.zeros(zNig, dtype=oyIN.bool_) for YRbF in range(3, zNig - 3): tj0V = ODP9[YRbF] KBgZ = 0 EzjL = 0 for r845 in range(1, max(65, YRbF)): if YRbF - r845 < 0 or YRbF + r845 >= zNig: break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HOTf(YKHO):\n return aM69.GetUnit(YKHO.ask('FETC:CURR:HIGH?'), 'A')", "def KlUA(YKHO, vwe5: int):\n B0z8 = False\n YRbF = vwe5\n while not B0z8:\n if YKHO.df.loc[YKHO.df.index[YRbF], 'close_h'] < YKHO.df.loc[YKHO.df.index[YRbF], 'open_h']:\n B0z8 = True\n else:\n ...
[ "0.61703086", "0.6074336", "0.5965999", "0.59480864", "0.59342766", "0.5925121", "0.5852226", "0.58490694", "0.58490694", "0.5750165", "0.57373655", "0.5670287", "0.566597", "0.56634724", "0.5649111", "0.56287867", "0.56286335", "0.56045187", "0.56045187", "0.5585537", "0.556...
0.66778237
0
Indicates whether or not is single project.
def rPXb(YKHO): if len(YKHO.selected) != 1: return False else: return isinstance(YKHO.data[YKHO.selected[0]], CT3v.InstallerProject)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znPe(YEnM, mWFP=None):\n return mWFP == 'prj'", "def tr85(YKHO, xtX7):\n if Hy7s.path.isdir(xtX7) and Hy7s.path.exists(xtX7 + Hy7s.sep + 'setup.py'):\n return True\n return False", "def Rw7a(NCls=None):\n if not NCls.name in NCls:\n return False\n vb_s = NCls[NCls.name]\n if...
[ "0.7906333", "0.7026958", "0.6924084", "0.6850922", "0.68006533", "0.6636852", "0.6483192", "0.6471294", "0.6423684", "0.6413408", "0.6400681", "0.6365946", "0.6342753", "0.6289215", "0.62847877", "0.62752277", "0.621161", "0.621161", "0.621161", "0.621161", "0.621161", "0....
0.8594563
0
This function validates the email input by a new user signing up It ensures that the email being used for signing up was not already used by another user.
def Bt7w(YKHO, D3lj): WIr9 = mv1M.objects.filter(email=D3lj) if WIr9.exists(): raise IyFz.ValidationError('Email already exists.') return D3lj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YBiq(YKHO):\n Hhdg = YKHO.cleaned_data['email'].split('@')[1]\n if Hhdg in YKHO.bad_domains:\n raise H6V6.ValidationError(bGrB('You can only register with your student email'))\n if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):\n raise H6V6.ValidationError(bGrB('This ema...
[ "0.8033221", "0.79721314", "0.7960496", "0.79292", "0.7926636", "0.79209363", "0.7919896", "0.7917167", "0.7890544", "0.7887567", "0.7880434", "0.78725046", "0.7870876", "0.7870245", "0.78693545", "0.78693545", "0.78693545", "0.7863687", "0.7850877", "0.78486955", "0.7831869"...
0.7358413
74
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.8011412", "0.7760833", "0.7760833", "0.76863474", "0.76712537", "0.76611257", "0.7657704", "0.7657704", "0.7657704", "0.7657704", "0.7657704", "0.7657704", "0.7657704", "0.7640335", "0.7627424", "0.75514656", "0.7532562", "0.7457792", "0.73241115", "0.73168015", "0.7298793...
0.70920354
60
Deletes entries which are empty strings in an array.
def A_wV(jzdc): return [tTpl for tTpl in jzdc if tTpl != '']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V0Bq(YKHO, qw7D):\n return [WKvO for WKvO in qw7D if WKvO != '']", "def V0Bq(wDWA):\n while '' in wDWA:\n wDWA.remove('')\n return wDWA", "def n5Tp(YKHO, nPrm):\n Cj2W = []\n for YRbF in range(0, len(nPrm)):\n if type(nPrm[YRbF]) == str:\n if nPrm[YRbF] != '':\n ...
[ "0.8239618", "0.7073632", "0.70026106", "0.698827", "0.6971098", "0.6727543", "0.66158295", "0.65147823", "0.6512588", "0.6427002", "0.63994646", "0.6351123", "0.63158095", "0.62443197", "0.6242046", "0.6222193", "0.61832774", "0.61416876", "0.6140688", "0.6116007", "0.604899...
0.71280354
1
Tells if a character from charSet appears in a string s.
def THqj(KCHu, e_aN): for Z9rn in e_aN: if Z9rn in KCHu: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FatI(vIwR, zZas):\n return 1 in [Z9rn in vIwR for Z9rn in zZas]", "def Jmar(vIwR, A3mT):\n return all((Z9rn in A3mT for Z9rn in vIwR))", "def sjXf(KCHu, Z9rn):\n for YRbF in KCHu:\n if YRbF == Z9rn:\n return True\n return False", "def KkBg(KCHu):\n return len(set(KCHu)) =...
[ "0.770918", "0.71956325", "0.7189106", "0.70452046", "0.69692224", "0.6965525", "0.6944252", "0.6944252", "0.67747486", "0.6707637", "0.66969204", "0.6617903", "0.6584312", "0.6529494", "0.6494616", "0.64294446", "0.64231116", "0.6362996", "0.62980413", "0.62556046", "0.62544...
0.7561669
1
Finds all ints in a string
def gXtX(KCHu: str) -> x1iM[int]: return XqC_(int, ZbWC.findall('-?\\d+', KCHu))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKqX(WKvO: str) -> list[int]:\n aTqo = '(?:(?<!\\\\d)-)?\\\\d+'\n return gXtX(ZbWC.findall(aTqo, WKvO))", "def KKqX(WKvO: str) -> list[int]:\n aTqo = '(?:(?<!\\\\d)-)?\\\\d+'\n return gXtX(ZbWC.findall(aTqo, WKvO))", "def ryAO(vIwR):\n import re\n mSrU = re.findall('\\\\d+', vIwR)\n fo...
[ "0.76231444", "0.76231444", "0.7602561", "0.7026178", "0.6947304", "0.68276155", "0.6793195", "0.6729709", "0.66923916", "0.6637421", "0.6609729", "0.6574619", "0.6557877", "0.65236837", "0.6488119", "0.64564806", "0.6393297", "0.6389942", "0.6355455", "0.63284826", "0.632771...
0.7929559
0
converts numpy array x to homogeneous coordinates by adding an extra row to the vector with a value 1.
def bqqj(WKvO): MKlR = oyIN.ones(shape=WKvO.shape[0] + 1) MKlR[:WKvO.shape[0]] = WKvO[:] return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfel(EcVT):\n kkJZ = oyIN.zeros([len(EcVT), 1]) + 1\n return oyIN.hstack((kkJZ, EcVT))", "def u3Ip(WKvO):\n return oyIN.concatenate((WKvO, oyIN.ones((WKvO.shape[0], 1))), axis=1)", "def kFkV(WKvO):\n assert 2 == len(WKvO), 'The argument is not a 2D Point'\n WKvO = oyIN.append(WKvO, 1)\n r...
[ "0.6907369", "0.68433255", "0.68018633", "0.6630872", "0.6624317", "0.660172", "0.65068895", "0.64893925", "0.64604557", "0.6434307", "0.6391599", "0.63121516", "0.6277637", "0.6275331", "0.6239769", "0.6219121", "0.6179466", "0.615735", "0.61334646", "0.6119904", "0.6057714"...
0.6929063
0
Compute the jacobian matrix for a given vector x, using the passed list of matrices to compute the columns of J.
def EHzC(WKvO, *gCxj): G0xr = [] for jKA7 in gCxj: G0xr.append(oyIN.dot(jKA7, bqqj(WKvO))) return oyIN.vstack(tuple(G0xr)).T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oa10(WKvO):\n T2My = oyIN.array([[0, 0, 0, 1.004], [0, 0, 0, -0.004], [0, 0, 0, 0]])\n VUK5 = oyIN.array([[0, 0, -1000, 0], [0, 60, 1000, 1], [0, -60, 0, 0]])\n YvgZ = oyIN.array([[0, -1000, 0, 0], [0, 1000, 0, 0], [0, 0, 0, 1]])\n return EHzC(WKvO, T2My, VUK5, YvgZ)", "def v8WM(vuvg, WKvO):\n ...
[ "0.76191026", "0.7522165", "0.7303473", "0.72096837", "0.720495", "0.71750194", "0.7136949", "0.705559", "0.704438", "0.7020706", "0.7020706", "0.70010954", "0.69906867", "0.69216365", "0.68866193", "0.6825246", "0.6803555", "0.6797039", "0.67346907", "0.6683742", "0.66199636...
0.65898055
21
Compute Jacobian Matrix for Question 4 given an x vector.
def Oa10(WKvO): T2My = oyIN.array([[0, 0, 0, 1.004], [0, 0, 0, -0.004], [0, 0, 0, 0]]) VUK5 = oyIN.array([[0, 0, -1000, 0], [0, 60, 1000, 1], [0, -60, 0, 0]]) YvgZ = oyIN.array([[0, -1000, 0, 0], [0, 1000, 0, 0], [0, 0, 0, 1]]) return EHzC(WKvO, T2My, VUK5, YvgZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v8WM(YKHO, WKvO):\n raise NotImplementedError('jacobian has not been defined')", "def v8WM(YKHO, WKvO):\n rdlD, fvDH = YKHO.jacobianstructure()\n return YKHO._cc.T[rdlD, fvDH]", "def v8WM(vuvg, WKvO):\n Oa10 = aLMY([[yk4i(vuvg[0], WKvO[0]), yk4i(vuvg[0], WKvO[1])], [yk4i(vuvg[1], WKvO[0]), yk4i...
[ "0.7635879", "0.7632503", "0.73783886", "0.7374624", "0.736529", "0.736529", "0.7267258", "0.7016367", "0.6985892", "0.6960407", "0.6958798", "0.69437003", "0.6942073", "0.68798345", "0.683152", "0.67964727", "0.67857337", "0.67773086", "0.67029625", "0.6695014", "0.6668592",...
0.7318376
6
Return the length of the list.
def zNig(YKHO): return len(YKHO.children)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfF0(YKHO):\n u54L = 0\n for F6AI in YKHO.tl:\n u54L += 1\n return u54L", "def u54L(YKHO):\n return YKHO._list.__len__()", "def u54L(YKHO):\n return YKHO.list.size", "def u54L(YKHO):\n return YKHO.list.size", "def u54L(YKHO):\n return YKHO.list.size", "def u54L(YKHO):\n ...
[ "0.8868848", "0.8858188", "0.88000274", "0.88000274", "0.88000274", "0.87949026", "0.8723443", "0.86047405", "0.8597627", "0.8589008", "0.8570042", "0.8534768", "0.85284173", "0.8498125", "0.8452699", "0.8394284", "0.8389202", "0.8364367", "0.8346928", "0.833", "0.82595116", ...
0.0
-1
Initialize 5 high scores.
def gUw5(): for YRbF in range(5): Cc7P = jaz6(score=0, timestamp=qcWV.now(), name='Balloonicorn') NCls.session.add(Cc7P) NCls.session.commit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kh_n(YKHO):\n Aqj7 = []\n for YRbF in range(1, 11):\n mWFP = tuKI.choice(vIwR.ascii_uppercase) + tuKI.choice(vIwR.ascii_uppercase) + tuKI.choice(vIwR.ascii_uppercase)\n jawa = {'name': mWFP, 'best_credits': YRbF * 20, 'best_double_win': YRbF * 10, 'best_double_streak': YRbF}\n Aqj7.a...
[ "0.7695995", "0.6688798", "0.66325384", "0.660645", "0.6546451", "0.6482136", "0.6478662", "0.63837165", "0.6374924", "0.6374924", "0.63686764", "0.63611186", "0.6345896", "0.62435067", "0.6239172", "0.6236405", "0.62222916", "0.61320287", "0.6087448", "0.6072847", "0.5970678...
0.78465974
0
Return index if vertex is in lookup_table, else None.
def ms1k(B66D, SLBp): iXlf = B66D['vertices'] nMvt = len(iXlf) d6pt = None for G1Hx in range(nMvt): IzcV = oyIN.sum(iXlf[G1Hx] != SLBp) == 0 if IzcV: d6pt = G1Hx break return d6pt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gycv(B66D, SLBp):\n d6pt = ms1k(B66D, SLBp)\n if d6pt is None:\n Aofo = None\n else:\n Aofo = B66D['fun_values'][d6pt]\n return Aofo", "def hDX3(YKHO, mWFP: str) -> uLKX[None, int]:\n AIu6 = YKHO.table.get(mWFP, None)\n if not AIu6:\n return None\n return AIu6.index"...
[ "0.6475678", "0.6466943", "0.63296616", "0.6303698", "0.6251791", "0.6239212", "0.6214126", "0.61438036", "0.6076691", "0.6076691", "0.6062972", "0.6040712", "0.59799886", "0.5957991", "0.593746", "0.5920749", "0.5893134", "0.58866894", "0.5870422", "0.58688366", "0.5852776",...
0.80826825
0
Initializes an gait diagnostic which analyzes gait and subgait states.
def FIMM(YKHO, rNkx): YKHO._goal_sub = sQC5.Subscriber('/march/gait_selection/current_gait', m7tS, YKHO._cb_goal) YKHO._gait_msg = None YKHO._updater = rNkx YKHO._updater.add('Gait', YKHO._diagnostics)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Gtt9, MQnf, mHXv, jVWY):\n YKHO._gait_selection = Gtt9\n YKHO._trajectory_scheduler = MQnf\n YKHO._input = mHXv\n YKHO._update_rate = jVWY\n YKHO._home_gaits = {}\n YKHO._idle_transitions = {}\n YKHO._gait_transitions = {}\n YKHO._generate_graph()\n YKHO._transition_callba...
[ "0.6445319", "0.63833207", "0.6156168", "0.6148934", "0.6126503", "0.5936457", "0.59118176", "0.5841714", "0.58181673", "0.57900524", "0.5783939", "0.5754204", "0.5731019", "0.5694664", "0.56911576", "0.5684432", "0.5674635", "0.56488174", "0.56385183", "0.56230444", "0.56148...
0.66269416
0
Tests if class inherits from BaseModel
def PFh0(YKHO): P7td = HvY3() YKHO.assertTrue(issubclass(P7td.__class__, KcDH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PFh0(YKHO):\n YKHO.assertTrue(issubclass(mv1M, KcDH))", "def wdfw(YKHO):\n YKHO.assertTrue(issubclass(FYrf.Place, FYrf.BaseModel))", "def ogW8(YKHO):\n YKHO.assertTrue(issubclass(type(YKHO.place1), KcDH))", "def I_4h(YKHO):\n YKHO.assertTrue(issubclass(E1cg, KcDH))", "def ogW8(YKHO):\n Y...
[ "0.816835", "0.81435424", "0.8088734", "0.80576706", "0.8027944", "0.79282916", "0.79256165", "0.78764784", "0.7761788", "0.7761788", "0.7728177", "0.76965344", "0.76555413", "0.7641586", "0.7641586", "0.7641586", "0.76275074", "0.7621193", "0.7584622", "0.75307816", "0.74861...
0.7592526
18
test if created_at is datetime format
def yuoQ(YKHO): _c1T = KcDH() YKHO.assertIsInstance(_c1T.created_at, qcWV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XS0p(YKHO):\n YKHO.assertIsInstance(YKHO.obj.created_at, qcWV)", "def XS0p(YKHO):\n YKHO.assertIsInstance(YKHO.obj.created_at, qcWV)", "def XS0p(YKHO):\n YKHO.assertIsInstance(YKHO.obj.created_at, qcWV)", "def XS0p(YKHO):\n YKHO.assertIsInstance(YKHO.obj.created_at, qcWV)", "def XS0p(YKHO):...
[ "0.79685605", "0.79685605", "0.79685605", "0.79685605", "0.79685605", "0.79685605", "0.79685605", "0.79685605", "0.7829482", "0.7816538", "0.7816538", "0.7816538", "0.77151674", "0.7680483", "0.7530937", "0.7358159", "0.71226233", "0.7091325", "0.69832397", "0.68202454", "0.6...
0.78533095
8
Server mute the mentioned user(only text channels), requires you to have manage roles permission
async def mute(YKHO, OaeV, mS46: discord.Member, *, lo9Y: str=None): QTBn = QUPV.get_state(OaeV.guild.id) zNrl = OaeV.guild.text_channels Hgfs = None if await w0rQ.check_priv(OaeV, mS46): return if QTBn.mute_exists: Hgfs = NMoC(OaeV.guild.roles, name='Muted') else: Hgfs =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def mute(YKHO, OaeV, mS46: discord.Member, *, lo9Y: str=None):\n await OaeV.message.add_reaction('🔨')\n Ol8d = []\n for LmAn in OaeV.guild.roles:\n if LmAn.name == 'Muted':\n Ol8d.append(LmAn.id)\n try:\n b57a = ZOrr.Object(id=Ol8d[0])\n except IndexError:\n re...
[ "0.7883881", "0.78435594", "0.782233", "0.78100103", "0.7757931", "0.77316386", "0.7693666", "0.7665838", "0.7605285", "0.7590932", "0.75805223", "0.7558897", "0.7555611", "0.7470883", "0.74581474", "0.74442685", "0.7400297", "0.73952913", "0.73432165", "0.73330855", "0.73321...
0.77339286
5
Queuelike get This will remove the "first" element from the database and return it. The first element is the row with the lowest {ratelimit_reset} time.
def NMoC(YKHO, XkN1=True, vYBr=None): xDcj = 'SELECT * FROM queue ORDER BY ratelimit_reset ASC' rdlD = YKHO._db.execute(xDcj).fetchone() if not rdlD: if XkN1: if vYBr is None or vYBr < 0: bo34.id(bo34.debug, YKHO, 'Waiting for elements ...'.join(tO9_)) yKcO = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN(YKHO):\n if not YKHO.cache.keys():\n return None\n pqwE = min(YKHO.cache.values(), key=lambda WKvO: WKvO.created)\n del YKHO.cache[pqwE.bds_id]\n YKHO.zeo.pack()\n return pqwE", "def tlxW(YKHO):\n if YKHO.cache:\n return YKHO.cache[0]\n else:\n return YKHO.queue...
[ "0.63772583", "0.6255867", "0.62488544", "0.6247056", "0.62361485", "0.6212803", "0.6187946", "0.6147136", "0.61428505", "0.6129872", "0.61067855", "0.6100388", "0.60999733", "0.6085114", "0.6084556", "0.60549164", "0.6054301", "0.6038619", "0.603809", "0.6030753", "0.6024692...
0.6377057
1
x = Conv2D(32, (3, 3), strides = (2, 2), activation = 'relu', padding = 'same', name = 'sep_conv1', data_format = 'channels_last')(x) x = SeparableConv2D(64, (3, 3), strides = (2, 2), activation = 'relu', padding = 'same', name = 'sep_conv2')(x) x = SeparableConv2D(128, (3, 3), strides = (2, 2), activation = 'relu', pa...
def e5ko(YKHO, WKvO): WKvO = yHwh(32, (3, 3), strides=(2, 2), padding='same', name='sep_conv1', data_format='channels_last')(WKvO) WKvO = GVKG()(WKvO) WKvO = MroH(V1sF)(WKvO) WKvO = Ow7g(64, (3, 3), strides=(2, 2), padding='same', name='sep_conv2')(WKvO) WKvO = GVKG()(WKvO) WKvO = MroH(V1sF)(WKv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, DYuh, tYiq, Ot1W=3, _0fC=1):\n super(QXTR, YKHO).__init__()\n dvgN = Ot1W // 2\n YKHO.depthwise = U78l.Conv1d(in_channels=DYuh, out_channels=DYuh, kernel_size=Ot1W, padding=dvgN, stride=_0fC, groups=DYuh)\n YKHO.pointwise = U78l.Conv1d(in_channels=DYuh, out_channels=tYiq, kernel_size=1, ...
[ "0.72013533", "0.70552176", "0.6970438", "0.6970438", "0.6943916", "0.69158894", "0.68888366", "0.685878", "0.6837963", "0.6836666", "0.67329925", "0.67261696", "0.67250234", "0.669996", "0.6698178", "0.66891325", "0.66779286", "0.6675317", "0.66735655", "0.6659002", "0.66436...
0.7319154
0
Returns all the MovieIDs a customer rated.
def JiSm(YKHO, Bu5i): r8hN = [] Z9rn = YKHO.conn.cursor() Z9rn.execute('SELECT MovieID FROM Ratings\n WHERE customerID = %d' % Bu5i) for rdlD in Z9rn: r8hN.append(rdlD[0]) return r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a5tL(YKHO, Bu5i):\n r8hN = []\n Z9rn = YKHO.conn.cursor()\n Z9rn.execute('SELECT movieID, Rating, RatingDate FROM Ratings\\n WHERE customerID = %d' % Bu5i)\n for rdlD in Z9rn:\n r8hN.append(rdlD)\n return r8hN", "def MDfn(YKHO, dWdB, t0o2):\n r8hN = []\n Z9rn =...
[ "0.7598763", "0.744485", "0.7074343", "0.7073337", "0.69174236", "0.6629214", "0.65195876", "0.6456586", "0.64553946", "0.6211646", "0.61268353", "0.60987073", "0.60676825", "0.6014439", "0.6004276", "0.5993016", "0.59917414", "0.5983309", "0.5978696", "0.5971195", "0.5970435...
0.7477313
1
Returns the average of the ratings made by a customer from the stats table
def UNcq(YKHO, Bu5i): Z9rn = YKHO.conn.cursor() Z9rn.execute('SELECT Average FROM CustomerStats\n WHERE customerID = %d' % Bu5i) a1PO = Z9rn.fetchone() if a1PO is None: return -1 return a1PO[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YF_V(YKHO):\n Z9rn = YKHO.conn.cursor()\n Csk6 = YKHO.conn.cursor()\n Z9rn.execute('SELECT DISTINCT CustomerID FROM Ratings')\n for rdlD in Z9rn:\n Csk6.execute('SELECT AVG(Rating)\\n FROM Ratings WHERE CustomerID=%s' % rdlD[0])\n aUKP = Csk6.fetchone()\n ...
[ "0.76516265", "0.67133516", "0.6504307", "0.647586", "0.64585924", "0.64395666", "0.64335215", "0.6431783", "0.6425464", "0.64045405", "0.6382018", "0.63739246", "0.63695663", "0.6349953", "0.6341518", "0.6335066", "0.6306008", "0.629907", "0.62754315", "0.62623376", "0.62224...
0.6783827
1
Creates a hash based on password and salt.
def xPb7(jTXt, NTfD): lpha = len(NTfD) / 2 jTXt = NTfD[:lpha] + jTXt + NTfD[lpha:] jTXt = fY9n(xORj(jTXt).digest()).strip() return jTXt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXlE(jTXt, NTfD=None):\n if not NTfD:\n NTfD = Hy7s.urandom(8)\n else:\n NTfD = bytes.fromhex(NTfD)\n return {'hash': HBct.pbkdf2_hmac('sha256', jTXt.encode('utf-8'), NTfD, 100000, dklen=128).hex(), 'salt': NTfD.hex()}", "def vhgk(jTXt, NTfD):\n return B2KD(jTXt + NTfD).hexdigest()"...
[ "0.8073119", "0.792855", "0.779714", "0.7704489", "0.76976967", "0.76729685", "0.7672711", "0.7668396", "0.7615976", "0.75602156", "0.75257576", "0.7517611", "0.75156915", "0.74988306", "0.749266", "0.74874973", "0.7468394", "0.7409286", "0.7406934", "0.73438895", "0.7300993"...
0.8093159
0
Generates a 100 character long salt.
def zB84(): NTfD = ''.join((Acvy(inyE) for YRbF in range(100))) return NTfD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I83C():\n return ''.join((chr(tuKI.randint(33, 127)) for bGrB in Ni9Y(64)))", "def Vost():\n gLiZ = []\n for YRbF in range(8):\n gLiZ.append(tuKI.choice(P4t4.config['ALPHABET']))\n return ''.join(gLiZ)", "def Vost():\n return WR89.b64encode(Hy7s.urandom(32)).decode('utf-8')", "def V...
[ "0.83026636", "0.828164", "0.8190825", "0.8186175", "0.81745154", "0.8171902", "0.8168147", "0.81674135", "0.81492054", "0.81445503", "0.8129924", "0.8104524", "0.8055439", "0.80074507", "0.79800093", "0.7951185", "0.79450667", "0.7869154", "0.7851122", "0.77672106", "0.76539...
0.8837685
0
Test that stories are showing on page and are being filtered correctly by category
def WpXA(YKHO): with YKHO.client as Z9rn: _hkX = Z9rn.get('/home/category/topstories') _R2e = _hkX.get_data(as_text=True) YKHO.assertEqual(_hkX.status_code, 200) YKHO.assertIn('Top Stories', _R2e)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q4TP(YKHO):\n with YKHO.client as Z9rn:\n with Z9rn.session_transaction() as cb_Q:\n cb_Q[tQkc] = YKHO.testuser.id\n _hkX = Z9rn.get('/home/category/topstories')\n _R2e = _hkX.get_data(as_text=True)\n YKHO.assertEqual(_hkX.status_code, 200)\n YKHO.assertIn('Canada', _R2...
[ "0.7008781", "0.67683107", "0.6635018", "0.6583739", "0.655659", "0.65357393", "0.65240014", "0.6520004", "0.6499036", "0.64970696", "0.6447977", "0.64473397", "0.6440318", "0.6403733", "0.6381201", "0.63744414", "0.6367473", "0.6321566", "0.6316296", "0.6301864", "0.62870073...
0.74056715
0
Computes the adversarial loss for `model` given `features` and `labels`. This utility function adds adversarial perturbations to the input `features`, runs the `model` on the perturbed features for predictions, and returns the corresponding loss `loss_fn(labels, model(perturbed_features))`. This function can be used in...
def nggV(bySB, Crrw, C3ST, GT2U, rbjf=None, f0vP=None, N6Z1=None, kEKb=None, j_VY=None, J4Uw=None): if f0vP is None: f0vP = yWyb.AdvRegConfig() if J4Uw is not None: C3ST = xBlr.partial(C3ST, **J4Uw) if kEKb is None: j_VY = j_VY or ZylS.GradientTape() with j_VY: j_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nggV(rWrZ, N77f, GT2U):\n Ro40, = ZylS.gradients(N77f, rWrZ, aggregation_method=ZylS.AggregationMethod.EXPERIMENTAL_ACCUMULATE_N)\n Ro40 = ZylS.stop_gradient(Ro40)\n jT0y = rlGE(Ro40, vPBo.perturb_norm_length)\n return GT2U(rWrZ + jT0y)", "def GT2U(dyeT: ml_collections.FrozenConfigDict, t9eR: Dic...
[ "0.6217625", "0.6120524", "0.6048295", "0.60071135", "0.59297854", "0.59295374", "0.5820194", "0.5810772", "0.57530373", "0.56893086", "0.56619084", "0.56254935", "0.56177664", "0.55858576", "0.5558642", "0.5543644", "0.55213004", "0.5499402", "0.5494886", "0.548324", "0.5480...
0.82710254
0
Converts `loss_weights` to a list of float values.
def Kz8K(FlI7, OnZF): if FlI7 is None: return [1.0] * len(OnZF) if isinstance(FlI7, g760.Sequence): if len(FlI7) != len(OnZF): raise ValueError('`loss_weights` should have the same number of elements as model output') return list(map(float, FlI7)) if isinstance(FlI7, g760...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OddC(YKHO) -> x1iM[float]:\n return list(map(lambda WKvO: WKvO / YKHO.total_weight, YKHO.weights))", "def xSOB(YKHO, _mSQ, Crrw):\n if not type(_mSQ) == oyIN.ndarray:\n _mSQ = oyIN.array(_mSQ)\n if not type(Crrw) == oyIN.ndarray:\n _mSQ = oyIN.array(Crrw)\n if len(_mSQ) != len(Crrw)...
[ "0.68781906", "0.63541776", "0.61974573", "0.6068232", "0.5973866", "0.59401065", "0.59048605", "0.5872709", "0.58721757", "0.5843431", "0.5808842", "0.5806347", "0.5769765", "0.5724968", "0.57210004", "0.5718644", "0.5630859", "0.5608359", "0.55893177", "0.5564887", "0.55642...
0.75288707
0
Converts `metrics` into a list of peroutput list of metrics.
def PFyX(Wbxz, OnZF, TBct): if Wbxz is None: return [[] for bGrB in OnZF] if not isinstance(Wbxz, (list, g760.Mapping)): raise TypeError('`metrics` must be a list or a dict, got {}'.format(str(Wbxz))) mFWN = lambda WKvO: WKvO if isinstance(WKvO, list) else [WKvO] if isinstance(Wbxz, g760...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JKWI(o4Jx, x6A0, Wbxz, A07C=None):\n assert len(o4Jx) == len(x6A0), 'len(outputs):{} != len(targets):{}'.format(len(o4Jx), len(x6A0))\n assert isinstance(Wbxz, dict), 'Provide metrics as a dictionary containing {metric_name: metric_function}'\n J3TB = []\n for exwG, (hlel, pan_) in enumerate(zip(o4...
[ "0.66640294", "0.65736055", "0.64415437", "0.63788944", "0.6336318", "0.63223785", "0.62595344", "0.6242085", "0.6137953", "0.61360705", "0.6099946", "0.60992545", "0.6068025", "0.5985491", "0.5955419", "0.594002", "0.5921376", "0.58971447", "0.58768934", "0.58407336", "0.583...
0.70127165
0
Runs the usual forward pass to compute outputs, loss, and metrics.
def VOkC(YKHO, g4y1, Crrw, rbjf, gLP0): with ZylS.GradientTape() as J4QZ: J4QZ.watch(ZylS.nest.flatten(g4y1)) o4Jx = YKHO._call_base_model(g4y1, **gLP0) YKHO._build_loss_and_metric_fns(YKHO._get_or_create_base_output_names(o4Jx)) kEKb, Wbxz = qE1A(YKHO._labeled_losses, YKHO._labeled_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kibC(YKHO):\n YCHL, FYHN = YKHO.find_input()\n with ZylS.control_dependencies([YCHL, FYHN]):\n YKHO.calculate_output(YCHL, FYHN)", "def pftB(YKHO, kdJa):\n W7EH = [YKHO.model.total_loss, YKHO.model.logits, YKHO.model.labels]\n z_k3, nvEb, Crrw = YKHO.sess.run(W7EH, feed_dict=kdJa)\n ass...
[ "0.75452876", "0.7237149", "0.7201102", "0.71334004", "0.7086539", "0.70144767", "0.70144767", "0.6950122", "0.6904084", "0.686854", "0.6749516", "0.67462057", "0.67117864", "0.6699757", "0.66986245", "0.669794", "0.6682444", "0.66806936", "0.661968", "0.6619225", "0.66175663...
0.6629198
18
Indent each line in a string by prepending whitespace
def MnRD(l5Ny, ABDL): return '\n'.join([' ' * (4 * ABDL) + zFiD for zFiD in l5Ny.split('\n')])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MnRD(KCHu):\n return '\\t' + KCHu.replace('\\n', '\\n\\t')", "def eHkq(KCHu, TVTK=4, q67w=False):\n Nqlg = KCHu.splitlines(1)\n f_ux = ' ' * TVTK\n if q67w:\n return f_ux.join(Nqlg)\n else:\n return f_ux + f_ux.join(Nqlg)", "def MnRD(YKHO, l5Ny, oi6k):\n Nqlg = l5Ny.strip()....
[ "0.7897192", "0.787327", "0.7690474", "0.7667283", "0.7637221", "0.7599525", "0.75347537", "0.75299037", "0.75025785", "0.74942315", "0.74634296", "0.74282694", "0.74218315", "0.7388459", "0.7366244", "0.73614097", "0.73304844", "0.72938305", "0.7282568", "0.7233263", "0.7233...
0.73247737
17
Recursively iterate over a dictionary and remove keys whose value is Falsy (empty list, empty dict, None etc)
def xnx3(Csk6): XNv5 = {} for G1Hx, Ty9i in Csk6.items(): if isinstance(Ty9i, dict): Ty9i = xnx3(Ty9i) if Ty9i: XNv5[G1Hx] = Ty9i return XNv5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xnx3(tbx9):\n return {G1Hx: Ty9i for G1Hx, Ty9i in list(tbx9.items()) if Ty9i is not None}", "def xnx3(Csk6):\n return {G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items() if bool(Ty9i)}", "def iNs_(Csk6: dict):\n KuU0 = []\n for H5ew, wEf2 in Csk6.items():\n if isinstance(wEf2, dict):\n ...
[ "0.79692143", "0.79114765", "0.7818135", "0.7774045", "0.764188", "0.7621325", "0.7574768", "0.75577986", "0.7552801", "0.7541167", "0.75248516", "0.752341", "0.74677026", "0.74578154", "0.7435715", "0.7382206", "0.73798233", "0.73753375", "0.7369997", "0.73330307", "0.733053...
0.77657956
4
Function to clear the Terminal (Console), works under Windows, Mac OS, Unix
def Y7Bk(): Hy7s.system(['clear', 'cls'][Hy7s.name == 'nt'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KnLO():\n if mWFP == 'nt':\n bGrB = Oz1B('cls')\n else:\n bGrB = Oz1B('clear')", "def cDHD() -> None:\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def cDHD() -> None:\n bGrB = Hy7s.system('cls') if Hy7s.name == 'nt' else Hy7s.system('clear')", "def cDHD():\n Hy7s...
[ "0.92261994", "0.9146694", "0.9132785", "0.9050284", "0.878335", "0.8730884", "0.86992085", "0.8695915", "0.8635311", "0.8493079", "0.8464688", "0.84361315", "0.8433687", "0.8430592", "0.84081966", "0.8403363", "0.8367197", "0.8348412", "0.83345217", "0.83310354", "0.8325224"...
0.80515176
58
Find all the position for a char in string, and return them in a list
def jore(vIwR, hcXw): return [dQgj for dQgj, sZqf in enumerate(vIwR) if sZqf == hcXw]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a7yY(vIwR, hcXw):\n assert len(hcXw) == 1\n YRbF = []\n for QJlQ, KCHu in enumerate(vIwR):\n if KCHu == hcXw:\n YRbF.append(QJlQ)\n return YRbF", "def neBz(vIwR, hcXw):\n return [d6pt for d6pt, sZqf in enumerate(vIwR) if sZqf == hcXw]", "def hs7P(hcXw, GIN8):\n return [k...
[ "0.8002123", "0.79021883", "0.79006773", "0.7728379", "0.76227576", "0.73686445", "0.7216403", "0.6973438", "0.6911958", "0.6805681", "0.6664629", "0.6659753", "0.6571587", "0.65510476", "0.64985025", "0.64764565", "0.64026284", "0.63743544", "0.6359705", "0.630961", "0.62966...
0.8373224
0
If the form is invalid, rerender the context data with the datafilled forms and errors.
def ee9W(YKHO, L03z): return YKHO.render_to_response(YKHO.get_context_data(active_form=L03z))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))", "def ee9W(YKHO, *qIxc, **B2fa):\n QpfX = YKHO.get_context_data()\n QpfX.update(B2fa)\n return YKHO.render_to_response(QpfX)", "def ee9W(YKHO, L03z, ...
[ "0.78096694", "0.7489505", "0.7457899", "0.7455491", "0.7365753", "0.73251325", "0.73155767", "0.73155767", "0.73155767", "0.73155767", "0.73155767", "0.73155767", "0.73155767", "0.7300956", "0.72458273", "0.7215321", "0.72076476", "0.7200589", "0.7185162", "0.71584684", "0.7...
0.72251517
15
Returns Name Field value Returns None in case of failure.
def bXNp(YKHO): try: U6D_ = cFlk(YKHO.driver, YKHO.explicit_wait_time, vOR5.NAME_INPUT) FUjE = U6D_.element_value return FUjE except WxwH: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q8R2(YKHO, mWFP):\n BWXx = YKHO.__dict__.get(mWFP, None)\n if not BWXx or not YKHO._is_field(BWXx):\n return None\n return BWXx", "def mWFP(YKHO):\n if YKHO._name_present:\n return YKHO._name_value\n else:\n raise AttributeError(\"missing required field 'name'\")", "def ...
[ "0.7722148", "0.76269346", "0.76269346", "0.76269346", "0.76269346", "0.76269346", "0.76269346", "0.76269346", "0.74989766", "0.74199194", "0.74199194", "0.7383796", "0.7313968", "0.72438693", "0.7220358", "0.71715266", "0.7139801", "0.71063614", "0.70950305", "0.7075837", "0...
0.7761165
0
Converts a string to a date type
def RpRn(mbyn): rv3_ = '%d-%b-%Y' cnXg = qcWV.datetime.strptime(mbyn, rv3_).date() return cnXg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JDE9(YKHO, Ht4_, TRCX):\n return YKHO.convert(Ht4_, TRCX)", "def BOAD(vIwR):\n NArs = vIwR.strip().split('(')\n e27C = NArs[1][:-1]\n BHGE = e27C.strip().split(',')\n Csk6 = _c1T(int(BHGE[0]), int(BHGE[1]), int(BHGE[2]))\n return Csk6", "def BOAD(JvEs):\n return JRYC.datetime.strptime(...
[ "0.77719396", "0.76981544", "0.76975113", "0.76791483", "0.7559655", "0.7555674", "0.75354135", "0.75086445", "0.74563974", "0.7446899", "0.72802943", "0.72785246", "0.7256549", "0.7219219", "0.720305", "0.7185289", "0.7181145", "0.7181145", "0.7181145", "0.7181145", "0.71714...
0.70007306
32
Add number copies of symbol to string Returns modified string.
def HH9L(vIwR, o61b, FGW3): for YRbF in range(FGW3): vIwR += o61b vIwR += ' ' return vIwR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VpWv(YKHO, GIN8, exwG=1):\n if GIN8 in YKHO.indices:\n or8S = YKHO.indices[GIN8]\n YKHO.count[or8S] = YKHO.count[or8S] + exwG\n return or8S\n else:\n or8S = len(YKHO.symbols)\n YKHO.indices[GIN8] = or8S\n YKHO.symbols.append(GIN8)\n YKHO.count.append(exwG)...
[ "0.6613042", "0.6613042", "0.65077865", "0.6137226", "0.60745376", "0.60425365", "0.58906555", "0.58266777", "0.58153117", "0.5756857", "0.5750547", "0.57237774", "0.5721081", "0.5655724", "0.56517076", "0.56466347", "0.5646605", "0.562764", "0.56255555", "0.5622493", "0.5595...
0.6903576
0
This is a helper function for consistent_player. This function takes a dataframe and a LOL position as parameters and group all the players within that position. It returns a new dataframe with columns named Player, Gold and Damage.
def jduN(jQ3Z, dQgj): _lYe = jQ3Z[[dQgj + '_B', dQgj + '_B_Gold', dQgj + '_B_Damage']] _lYe = _lYe.rename(columns={dQgj + '_B': 'Player', dQgj + '_B_Gold': 'Gold', dQgj + '_B_Damage': 'Damage'}) qaAi = jQ3Z[[dQgj + '_R', dQgj + '_R_Gold', dQgj + '_R_Damage']] qaAi = qaAi.rename(columns={dQgj + '_R': 'Pl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ppss(jQ3Z, LZbL) -> rLdf.DataFrame:\n oeNL = jQ3Z.loc[LZbL]['Position']\n if oeNL in u05w:\n return BfDw.get_rows_with_col_val(jQ3Z, 'Position', u05w)\n elif oeNL in yIKZ:\n return BfDw.get_rows_with_col_val(jQ3Z, 'Position', yIKZ)\n elif oeNL in JVMV:\n return BfDw.get_rows_wi...
[ "0.5966044", "0.5934448", "0.5792726", "0.57365835", "0.5725045", "0.5699276", "0.5687759", "0.568668", "0.560056", "0.55626106", "0.5533579", "0.5504319", "0.549455", "0.54906094", "0.54889554", "0.5482629", "0.5481948", "0.5480167", "0.547103", "0.54621345", "0.54258454", ...
0.69237185
0
Parse and return commandline arguments
def dCXb(): wvEv = FCn1.OptionParser(description='HMM for Tmrca') wvEv.add_option('-d', '--dif_fasta_filename', type='string', help='path to input difference sequence') wvEv.add_option('-b', '--num_bins', type='string', help='number of bins desired') wvEv.add_option('-p', '--param_filename', type='strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dCXb():\n return wvEv.parse_args()", "def gGZX():\n return (HwRy.argv[1:-1], Hy7s.path.abspath(HwRy.argv[-1]))", "def uvp4(E0cB):\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n Ltpw = wvEv.parse_args(E0cB[1:])\n return Ltpw", "def uvp4():\n wvEv = j1Jz.ArgumentParser(description='T...
[ "0.79487866", "0.7892349", "0.78617513", "0.77578264", "0.7711305", "0.7700627", "0.770003", "0.76735", "0.7644329", "0.7609093", "0.7600906", "0.75920933", "0.75738186", "0.75687474", "0.7568035", "0.7549821", "0.7543286", "0.75402737", "0.7539919", "0.752907", "0.751638", ...
0.0
-1
Implements Python iterator interface. This should return an object implementing a `next` method which steps through a sequence returning one element at a time and raising `StopIteration` when at the end of the sequence. Here the object returned is the DataProvider itself.
def Vs4Q(YKHO): return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDAb(YKHO):\n if YKHO.itercount >= len(YKHO.data):\n raise StopIteration\n rKoN = list(YKHO.data)[YKHO.itercount]\n YKHO.itercount += 1\n return YKHO.data[rKoN]", "def UDAb(YKHO):\n if YKHO._curr_iter is None:\n raise StopIteration\n CO4T = YKHO._curr_iter.data\n YKHO._curr...
[ "0.7516896", "0.7325754", "0.7263786", "0.7029302", "0.69582164", "0.6917323", "0.6782823", "0.67657906", "0.67657906", "0.67657906", "0.67657906", "0.6752651", "0.67366016", "0.6727449", "0.6727449", "0.66835266", "0.66465116", "0.66366863", "0.66279995", "0.66170084", "0.66...
0.0
-1
Normalise X and Y according to the mean and standard deviation of the X values only.
def NkkI(EcVT, fuBA=None): JBMS = oyIN.expand_dims(oyIN.average(EcVT, axis=1) + 1e-05, axis=1) z2bo = oyIN.expand_dims(oyIN.std(EcVT, axis=1) + 1e-05, axis=1) EcVT = EcVT - JBMS EcVT = EcVT / (2.5 * z2bo) if fuBA is not None: assert fuBA.shape == EcVT.shape, (fuBA.shape, EcVT.shape) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OEry(YKHO):\n YKHO.mean = oyIN.mean(YKHO.x_train)\n YKHO.std = oyIN.std(YKHO.x_train)\n YKHO.max = oyIN.max(YKHO.x_train)\n YKHO.min = oyIN.min(YKHO.x_train)\n YKHO.x_train = (YKHO.x_train - YKHO.mean) / YKHO.std\n YKHO.x_test = (YKHO.x_test - YKHO.mean) / YKHO.std\n YKHO.mean = oyIN.mean(...
[ "0.78769743", "0.7869152", "0.77677274", "0.76991785", "0.7653201", "0.75762236", "0.7492057", "0.74910116", "0.74704146", "0.74613845", "0.74512553", "0.74196357", "0.7416646", "0.73762685", "0.7357845", "0.73380476", "0.733607", "0.7309818", "0.7301294", "0.72738814", "0.72...
0.7959498
0
Returns randomly an aligned batch_size of X and Y among all examples.
def vZoD(EcVT, fuBA, Ep8u): assert EcVT.shape == fuBA.shape, (EcVT.shape, fuBA.shape) k52S = oyIN.random.randint(EcVT.shape[0], size=Ep8u) rTfk = oyIN.array(EcVT[k52S]).transpose((1, 0, 2)) o0nT = oyIN.array(fuBA[k52S]).transpose((1, 0, 2)) return (rTfk, o0nT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MFHF(EcVT, fuBA, Ep8u):\n ghxo = fuBA.shape[1]\n if Ep8u:\n Bugx = int(ghxo / Ep8u)\n NH5d = ghxo % Ep8u\n EcVT = EcVT.T\n fuBA = fuBA.T\n oyIN.random.shuffle(EcVT)\n oyIN.random.shuffle(fuBA)\n EcVT = EcVT.T\n fuBA = fuBA.T\n ya9a = [Ep8u] *...
[ "0.6626465", "0.6558649", "0.651266", "0.6339333", "0.6319901", "0.62939644", "0.6222989", "0.61945283", "0.61901504", "0.6177851", "0.61614406", "0.61221135", "0.6121458", "0.61138034", "0.6089225", "0.60891795", "0.60796875", "0.60781586", "0.60699135", "0.60495675", "0.604...
0.75301623
0
Generate file md5 hash
def sKcI(YKHO, pmON): cgAf = 2 ** 20 if Hy7s.path.getsize(pmON) > 2 ** 20 else 128 dQiW = HBct.md5() with open(pmON, 'rb') as eHNT: while True: LaVg = eHNT.read(cgAf) if not LaVg: break dQiW.update(LaVg) return dQiW.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vkAf(Ux0P):\n return vFhS(Ux0P, 'md5')", "def pQm7(pmON):\n HBct.md5(open(pmON, 'rb').read()).hexdigest()", "def pQm7(gIsw):\n with open(gIsw, 'rb') as eHNT:\n OZKa = eHNT.read()\n dQiW = HBct.md5(OZKa).hexdigest()\n return dQiW", "def OFjX(Ux0P):\n pFtS = HBct.md5()\n wit...
[ "0.8469927", "0.8444986", "0.8327148", "0.8314673", "0.8313283", "0.8233629", "0.8194438", "0.8153819", "0.81453013", "0.81238043", "0.80891234", "0.8071582", "0.8068048", "0.8064221", "0.80593264", "0.80565286", "0.80556864", "0.80451924", "0.80427015", "0.80398595", "0.8039...
0.8083414
11
Find if there exists any pair of numbers which sum is equal to the value.
def neBz(YKHO, BWXx): for exwG in YKHO.lookup.keys(): yk4i = BWXx - exwG if yk4i in YKHO.lookup and (yk4i != exwG or YKHO.lookup[yk4i] > 1): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JQW5(mSrU, WjrA):\n for MxXY in mSrU:\n for cWFu in mSrU:\n if MxXY + cWFu == WjrA:\n return True\n return False", "def fDqS(ezWE, sum):\n for YRbF in range(0, len(ezWE) - 1):\n for r845 in range(len(ezWE)):\n if ezWE[YRbF] + ezWE[r845] == sum:\n ...
[ "0.77442986", "0.76204896", "0.7413616", "0.7362159", "0.72808427", "0.71782744", "0.70277184", "0.70250964", "0.70080066", "0.68966067", "0.68518955", "0.68386465", "0.68127775", "0.6806989", "0.6799336", "0.66677845", "0.6647333", "0.6628675", "0.6603409", "0.65381575", "0....
0.61232346
44
Updates the coordinates according to the direction.
def CfxS(YKHO, jvSB, d6pt): JBU2, R6RG = jvSB XSoh = YKHO.path[d6pt] if XSoh == 'Up': JBU2 += 1 elif XSoh == 'Down': JBU2 -= 1 elif XSoh == 'Left': R6RG -= 1 else: R6RG += 1 return (JBU2, R6RG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yFkN(YKHO):\n cviu = YKHO.shape.elem.bbox_int()\n Y7fn, O5iP = YKHO.COORD_MAP[YKHO.tag]\n WKvO = (cviu[0] + cviu[2]) / 2 if Y7fn is None else cviu[Y7fn]\n LVAh = (cviu[1] + cviu[3]) / 2 if O5iP is None else cviu[O5iP]\n with YKHO.shape.draw_space() as qQTo:\n WKvO, LVAh = qQTo.transform(W...
[ "0.7270438", "0.7210719", "0.7160157", "0.7149942", "0.6976569", "0.69404095", "0.69234824", "0.6921962", "0.6831767", "0.6778076", "0.66978055", "0.66810155", "0.66663426", "0.66350156", "0.6599107", "0.65414", "0.65047485", "0.64899117", "0.64895284", "0.64851767", "0.64851...
0.6704669
10
Construct full name from first and last.
def eHMM(cntZ, XVAW): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO, cntZ=None, XVAW=None):\n if cntZ == None and XVAW == None:\n return YKHO.first_name + ' ' + YKHO.last_name\n else:\n return cntZ + ' ' + XVAW", "def eHMM(cntZ, XVAW):\n return cntZ + ' ' + XVAW", "def kaIN(cntZ, XVAW):\n eHMM = f'{cntZ} {XVAW}'\n return eHMM", "def...
[ "0.8527429", "0.85108256", "0.8450472", "0.83110476", "0.8310408", "0.8188667", "0.8181339", "0.81681", "0.8107013", "0.8070821", "0.8064157", "0.80521995", "0.80077845", "0.79870385", "0.79870385", "0.7986007", "0.79457915", "0.79379034", "0.79364234", "0.79364234", "0.79347...
0.8590216
0
Resets the env and returns observations from ready agents.
def SiRx(YKHO, *, yokr=None, xAU6=None): YKHO.resetted = True YKHO.episodes += 1 YKHO.steps = 0 if YKHO.simulation: del YKHO.simulation YKHO.simulation = OWao(YKHO._config['scenario_config']['sumo_config']) pIIS = list() for YWSi in YKHO.agents.values(): ILdH, yKcO = YWSi.res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n uX8I, OMAa = YKHO._env.reset()\n SB8x = {}\n for YRbF, W061 in enumerate(uX8I):\n SB8x[YRbF] = {'action_mask': oyIN.array(YKHO._env.get_avail_agent_actions(YRbF)), 'obs': W061}\n YKHO._ready_agents = list(range(len(uX8I)))\n return SB8x", "def SiRx(YKHO):\n sQC5.loginfo...
[ "0.8147591", "0.7607842", "0.7470891", "0.73953295", "0.7388952", "0.73857343", "0.7326123", "0.73033994", "0.7293094", "0.727612", "0.7263858", "0.7238185", "0.720486", "0.720486", "0.720486", "0.720486", "0.720486", "0.7183581", "0.7061239", "0.70234156", "0.7022637", "0....
0.0
-1
Returns the size of the observation space.
def erOh(YKHO, YWSi): return (YKHO.agents[YWSi].config['max_speed'] + 1) * (YKHO._config['scenario_config']['misc']['max_distance'] + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OEiy(YKHO):\n return YKHO.obs_size", "def OEiy(YKHO):\n return YKHO.obs_size", "def sBSv(YKHO):\n return YKHO._observation_size * YKHO._history_size", "def DeoW(YKHO, qnkS=True):\n return int(oyIN.prod(YKHO.observation_space.shape)) if qnkS else YKHO.observation_space.shape", "def OEiy(YKHO...
[ "0.8371582", "0.8371582", "0.82311714", "0.8003376", "0.7951208", "0.7950883", "0.78695923", "0.7840723", "0.77885294", "0.7761228", "0.7696562", "0.7656627", "0.7594527", "0.75406456", "0.7499759", "0.7483608", "0.74742115", "0.7441167", "0.74229294", "0.74026495", "0.740252...
0.0
-1
Update the interactables on the screen. If the player is within interaction range of an interaction, it will highlight in yellow. If the player is interacting with the interactable it will update accordingly. If the player moves out of range, the interactable will dehighlight itself.
def QdZT(YKHO, Vjhr, oyg0): if YKHO.collide(oyg0): YKHO.highlight() if oyg0.interacting(): YKHO.interact() else: YKHO.un_highlight() Vjhr.blit(YKHO._surf, YKHO._rect)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khpC(YKHO) -> None:\n for YRbF in range(len(vwY9.ACTIONS)):\n if YKHO._choice == YRbF:\n YKHO._actions[YRbF].get(vwY9.SELECTED_SPRITE).visible = True\n else:\n YKHO._actions[YRbF].get(vwY9.SELECTED_SPRITE).visible = False", "def QdZT(YKHO):\n YKHO.state.transfer_to_n...
[ "0.5727921", "0.57030815", "0.55838454", "0.5548969", "0.5513757", "0.550596", "0.54708016", "0.54423517", "0.5440194", "0.54238594", "0.53932494", "0.53789496", "0.53583497", "0.53536785", "0.5322322", "0.5319753", "0.5303354", "0.52511847", "0.52034134", "0.5184034", "0.515...
0.6619073
0
Tests that `get_charts` method returns correct number of valid charts.
def yeyO(YKHO, f70d): FL53 = ovzv(filters=['sh_curvol_o20000', 'ta_highlow52w_b0to10h', 'ind_stocksonly', 'sh_outstanding_o1000']) UHFx = 0 for bGrB in FL53: UHFx += 1 FL53.get_charts() for pOv4 in f70d.call_args_list: assert pOv4.kwargs['URL'] assert pOv4.args[0] assert ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GdPB(YKHO):\n pass", "def uBTp(YKHO):\n YKHO.driver.get(YKHO.url_ + s8Wl)\n c0yN = YKHO.driver.find_elements(Q71O.XPATH, '//*[@id=\"chart-region\"]/div[@class=\"chart\"]')\n YKHO.assertEqual(len(c0yN), 0)\n YKHO.assertEqual(len(c0yN), 0)", "def r_zN(YKHO):\n CSaw = YKHO._create_merged_dat...
[ "0.7479159", "0.69447213", "0.64262587", "0.6345895", "0.6115099", "0.6038951", "0.5963246", "0.58939", "0.5868498", "0.5739141", "0.56589156", "0.5629708", "0.55506617", "0.5535058", "0.55208415", "0.5518115", "0.5508804", "0.55043864", "0.54926527", "0.5480351", "0.54458016...
0.63376445
4
Ensures correct output from _bias_from_sr_and_pod.
def Cf7u(YKHO): wz4x = RqMQ._bias_from_sr_and_pod(success_ratio_array=MRqk, pod_array=yXGF) YKHO.assertTrue(XTiz.allclose(wz4x, tVyk, atol=ANWk))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwym(YKHO):\n return tuKI.uniform(*YKHO.BIASRANGE)", "def OXEH(I8oI, YBcV):\n return YBcV / I8oI", "def Exaq():\n nPrm = oyIN.random.random((4, 4))\n C3ST = pPQk()\n pj9U.bias_correct(C3ST, nPrm)", "def GeEp(VXjJ, ZHfW=None, NXpY=0.2, VOxb=128, kRDj=4, DOvZ=[50, 50, 50, 50], p3b6=[5, 5, 5]...
[ "0.6617516", "0.6495408", "0.64389807", "0.6188903", "0.61690366", "0.6112502", "0.6035358", "0.59725", "0.59432787", "0.5906351", "0.58888274", "0.58582586", "0.58357507", "0.5827474", "0.5786673", "0.578293", "0.5777426", "0.57518363", "0.57423425", "0.570494", "0.5686016",...
0.7957457
0
Return copy of agent.
def jth9(YKHO): return _qLf(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO, *qIxc):\n return qG0X.Agent_copy(YKHO, *qIxc)", "def Pi8e(YKHO, YWSi):\n jzdc = jth9.deepcopy(YWSi)\n jzdc.fill_with_uniform()\n return jzdc", "def i3ak(YKHO) -> 'LearningAgentBase':\n YKHO.rlk_agent.unready()\n i3ak = jth9.deepcopy(YKHO)\n YKHO.rlk_agent.check_ready()\n ...
[ "0.7328843", "0.6957444", "0.68372107", "0.67329913", "0.6663834", "0.662333", "0.65944487", "0.65893847", "0.6397801", "0.6328435", "0.62996876", "0.62729377", "0.62530327", "0.62487966", "0.62486404", "0.62486404", "0.62486404", "0.62486404", "0.62486404", "0.6240982", "0.6...
0.5995111
94
Tests posting new parkspots
def CPG0(YKHO, rO1E): with P4t4.test_client() as Z9rn: Z9rn.post('/', data={'lat': 0.1, 'lng': 2.3}) rO1E.assert_called_with(lat=0.1, lng=2.3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W41V(YKHO):\n R9U6 = eo18(user=YKHO.user, name='Surf')\n GTT9 = eo18(user=YKHO.user, name='Swim')\n pB3N = {'name': 'Stand Up Paddleboarding', 'tags': [R9U6.id, GTT9.id], 'time_minutes': 60, 'price': 20.0}\n Ylbp = YKHO.client.post(rmWA, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_C...
[ "0.6837747", "0.6781059", "0.6781059", "0.6558611", "0.65279406", "0.64583206", "0.64078057", "0.6397671", "0.6390275", "0.63435733", "0.62831515", "0.6279298", "0.627726", "0.62718457", "0.6233443", "0.62273234", "0.62273234", "0.621577", "0.62019515", "0.6199278", "0.619443...
0.62708044
14
Saves the checkpoint to the desired file.
def IRyE(YKHO): print('Saving checkpoint...') ht2j.save(YKHO.state_dict(), YKHO.checkpoint_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IRyE(YKHO):\n YKHO.save_to_file(YKHO.checkpoint_file, 'checkpoint file')", "def IRyE(YKHO, Ux0P):\n Bicb = Hy7s.getcwd()\n yXHZ = Hy7s.path.join(Bicb, Ux0P)\n YKHO.saver.save(YKHO.sess, yXHZ)", "def IRyE(YKHO, vauY, Ux0P):\n YKHO.call_async(0, '_async_save_checkpoint', checkpoint=vauY, filen...
[ "0.8280568", "0.82051504", "0.8144029", "0.7897232", "0.78851664", "0.7770287", "0.77232397", "0.7722021", "0.7706464", "0.77059704", "0.77059704", "0.766121", "0.7607386", "0.7580285", "0.7577472", "0.7567912", "0.7567912", "0.75537306", "0.7508111", "0.748214", "0.74504554"...
0.75731844
15
Implements `str(self)`. Returns '[]' if the list is empty, else returns `str(x)` for all values `x` in this list, separated by commas and enclosed by square brackets. E.g., for a list containing values 1, 2 and 3, returns '[1, 2, 3]'.
def zAg0(YKHO): if YKHO.length == 1: return '[' + str(YKHO.head.next.val) + ']' elif YKHO.length == 0: return '[]' else: cF9J = '' ZbOB = YKHO.head.next for YRbF in range(YKHO.length - 1): cF9J += str(ZbOB.val) + ', ' ZbOB = ZbOB.next c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '[' + ', '.join((str(WKvO) for WKvO in YKHO)) + ']'", "def zAg0(YKHO):\n KCHu = '['\n for WKvO in YKHO:\n KCHu += '{}, '.format(repr(WKvO))\n if len(YKHO) > 0:\n KCHu = KCHu[0:-2] + ']'\n else:\n KCHu += ']'\n return KCHu", "def zAg0(YKHO):\n r...
[ "0.75165", "0.7401673", "0.7379542", "0.7324605", "0.7222835", "0.7199125", "0.7176145", "0.7176145", "0.7111115", "0.7110683", "0.70964926", "0.7068607", "0.7059515", "0.7056521", "0.7017237", "0.6983157", "0.69799197", "0.69375753", "0.6902135", "0.689298", "0.6879011", "...
0.676376
30
Returns True if this LinkedList contains the same elements (in order) as other. If other is not an LinkedList, returns False.
def xa14(YKHO, Elif): InF8 = True if YKHO.length != Elif.length: InF8 = False for YRbF in range(YKHO.length): if YKHO[YRbF] != Elif[YRbF]: InF8 = False return InF8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if isinstance(Elif, _sfu) == False:\n return False\n if YKHO.length != Elif.length:\n return False\n UHFx = 0\n csTO = False\n EPPc = YKHO.head\n kK6f = Elif.head\n for WKvO in range(YKHO.length):\n EPPc = EPPc.next\n kK6f = kK6f.next\n ...
[ "0.8578439", "0.81307864", "0.79095143", "0.78856796", "0.7858322", "0.78262085", "0.7782348", "0.77399665", "0.77268255", "0.7517908", "0.7507319", "0.74793184", "0.7347423", "0.734274", "0.734274", "0.7302482", "0.73015946", "0.7257312", "0.724368", "0.7239776", "0.72334", ...
0.70252407
48
Returns the maximum value in this list.
def max(YKHO): ZbOB = YKHO.head.next max = ZbOB.val for YRbF in range(YKHO.length): if max < ZbOB.val: max = ZbOB.val ZbOB = ZbOB.next return max
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max(YKHO):\n return max(YKHO.lst)", "def qfB5(YKHO):\n return YKHO.maximum", "def qQji(YKHO):\n return YKHO.maximum", "def qfB5(YKHO):\n return YKHO.max", "def max(YKHO):\n PtQX = YKHO.data[0]\n oHE7 = iter(YKHO)\n while True:\n try:\n ZfUD = next(oHE7)\n ...
[ "0.87774247", "0.8444532", "0.8424304", "0.8421314", "0.842122", "0.8402552", "0.8400132", "0.83819497", "0.8378863", "0.83456886", "0.8295896", "0.8295896", "0.8295896", "0.8295896", "0.8295896", "0.8295896", "0.8295896", "0.82814854", "0.8281017", "0.8281017", "0.8279274", ...
0.79786724
37
Returns the index of the first instance of value encountered in this list between index i (inclusive) and j (exclusive). If j is not specified, search through the end of the list for value. If value is not in the list, raise a ValueError.
def d6pt(YKHO, BWXx, YRbF=0, r845=None): EmMj = False zu_J = YKHO._normalize_idx(YRbF) if r845 == None and (not EmMj): for YRbF in range(zu_J, YKHO.length): if YKHO[YRbF] == BWXx: EmMj = True return YRbF elif r845 != None and (not EmMj): ED8a =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO, BWXx, YRbF=0, r845=None):\n if r845 is None:\n r845 = len(YKHO)\n RMvl = YKHO._normalize_idx(YRbF)\n d9Qd = YKHO._normalize_idx(r845)\n for or8S in range(RMvl, d9Qd):\n if YKHO.data[or8S] == BWXx:\n return or8S\n raise ValueError()", "def d6pt(YKHO, BWXx, YR...
[ "0.7600994", "0.7439392", "0.69821763", "0.6967973", "0.69430524", "0.6683689", "0.6665371", "0.6597554", "0.6582212", "0.6568793", "0.6557995", "0.65279037", "0.6489489", "0.6466946", "0.64024484", "0.63953584", "0.6380782", "0.63584507", "0.6317847", "0.6315899", "0.6264103...
0.7680121
0
Returns a new LinkedList instance (with separate Nodes), that contains the same values as this list.
def jth9(YKHO): sEWD = _sfu() for BWXx in YKHO: sEWD.append(BWXx) return sEWD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO) -> 'LinkedList':\n BdN0 = _sfu()\n jvSB = YKHO.front\n while jvSB != None:\n BdN0.front = LEY5(jvSB.value, jvSB.next_)\n jvSB = jvSB.next_\n BdN0.size += 1\n return BdN0", "def jth9(YKHO):\n return _sfu([YRbF for YRbF in YKHO])", "def jth9(YKHO):\n kdJ9 = _...
[ "0.8006112", "0.781944", "0.78028136", "0.7089177", "0.7012969", "0.6933172", "0.6786803", "0.6628306", "0.65783006", "0.64541376", "0.63790375", "0.63649255", "0.6359245", "0.63579535", "0.6236639", "0.6222247", "0.6211604", "0.62034065", "0.6182265", "0.61351204", "0.613122...
0.8107984
0
Every tree in the forest is fed with a df in order to generate predictions for the samples it contains. The predictions are stored in a data frame, where each column represents a tree with its predictions. Afterwards, we combine the results into a single column by taking the mode of each row (most repeating value)
def EU8f(jQ3Z, AKOQ): eLX4 = {} for YRbF in range(len(AKOQ)): z0q4 = 'tree_'.format(YRbF) N6Z1 = JRYC.generate_predictions(jQ3Z, tree=AKOQ[YRbF]) eLX4[z0q4] = N6Z1 qafu = rLdf.DataFrame(eLX4) csXs = qafu.mode(axis=1)[0] return csXs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oS9e(hN4D, AKOQ):\n N6Z1 = [J_Es.predict_instance(hN4D) for J_Es in AKOQ]\n return max(set(N6Z1), key=N6Z1.count)", "def zW5M(d_Yd):\n Q6uT = d_Yd[['label', 'sequence']].drop_duplicates().iloc[:, 1:]\n Ocz_ = rLdf.DataFrame()\n aZK_ = ['level_1_seq', 'level_1_p_seq', 'level_2_seq', 'level_2_p_...
[ "0.7380289", "0.6448257", "0.6168121", "0.61128336", "0.6096196", "0.60502374", "0.59878767", "0.5984392", "0.5964238", "0.59532017", "0.5944731", "0.5910783", "0.5895881", "0.58935493", "0.58623993", "0.58503586", "0.5847517", "0.58246094", "0.5801197", "0.5774622", "0.57671...
0.8391866
0
Wrapper for inserting int64 features into Example proto.
def Oety(BWXx): if not isinstance(BWXx, list): BWXx = [BWXx] return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wgnv(PU1l, BZ2A, kAne):\n PU1l.features.feature[BZ2A].int64_list.value.append(kAne)", "def Oety(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))", "def Oety(BWXx):\n BWXx = int(BWXx)\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))", ...
[ "0.73725885", "0.73480105", "0.7317908", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.73005474", "0.72992593", "0.729916", "0.72952837", "0.72952837", ...
0.7179888
57
Wrapper for inserting bytes features into Example proto.
def NhGy(BWXx): return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[BWXx]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mJtR(PU1l, BZ2A, I3mI):\n PU1l.features.feature[BZ2A].bytes_list.value.append(I3mI)", "def NhGy(BWXx):\n BWXx = BWXx.encode('utf8')\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[BWXx]))", "def r2_2(BWXx):\n if isinstance(BWXx, jKi7.string_types):\n BWXx = jKi7.binary...
[ "0.70967346", "0.68787324", "0.6869317", "0.68549395", "0.6852209", "0.684546", "0.684546", "0.68439454", "0.68434113", "0.6842389", "0.68284506", "0.68284506", "0.68284506", "0.6820086", "0.6816939", "0.6813042", "0.6811964", "0.6811572", "0.68086994", "0.680173", "0.680173"...
0.6783487
40
Creates a matrix with values between + n
def FIMM(YKHO, ROpF, exwG): YKHO.matrix = [[js4S(-exwG, exwG) for WKvO in range(ROpF[1])] for LVAh in range(ROpF[0])] YKHO.shape = ROpF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mJad(YKHO, exwG, wEf2):\n SppC = []\n for YRbF in range(exwG):\n SppC += [[wEf2 for r845 in range(exwG)]]\n return SppC", "def mJad(YKHO, exwG, wEf2):\n SppC = []\n for YRbF in range(exwG):\n SppC += [[wEf2 for r845 in range(exwG)]]\n return SppC", "def pdhd(Emd4, exwG: int)...
[ "0.6930159", "0.6930159", "0.6924658", "0.691025", "0.6897577", "0.66798306", "0.66608775", "0.658149", "0.6576217", "0.65642196", "0.6545396", "0.64735425", "0.64735425", "0.6455182", "0.644903", "0.6430173", "0.6419629", "0.6403336", "0.6401084", "0.63427836", "0.6334123", ...
0.57613295
80
Draw a normalized PDF of the given data, according to the visual custom of the fluid dynamics community, and possibly with logarithmic bins.
def vKys(nPrm, rebk, RKD7=False, gXdX=False): if RKD7: XLKX = oyIN.min(nPrm) Pyrc = oyIN.logspace(oyIN.log10(XLKX), oyIN.log10(nPrm.max()), rebk + 1) QrM1 = cf3u.semilogx else: Pyrc = rebk QrM1 = cf3u.semilogy if gXdX else cf3u.plot QzFq, DSUy = oyIN.histogram(nPrm, b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzAT(YKHO, Cs6h, u95t):\n Mkmy = Cs6h[0]\n KCHu = Cs6h[1]\n FCpD = KCHu * oyIN.sqrt(1 - Mkmy ** 2.0)\n return oyIN.exp(-(u95t[1] - Mkmy * u95t[0]) ** 2.0 / (2.0 * FCpD ** 2.0) - 0.5 * oyIN.log(2.0 * oyIN.pi * FCpD ** 2.0))", "def kzAT(nPrm):\n JIEM = mBkc(nPrm)\n WKvO = oyIN.array(sorted(NB...
[ "0.65906346", "0.6581194", "0.6555213", "0.6444084", "0.64297867", "0.64168805", "0.64072096", "0.63974404", "0.6315001", "0.62528443", "0.62312776", "0.6230879", "0.6227974", "0.62139773", "0.61147213", "0.61061335", "0.6101679", "0.60816675", "0.60816675", "0.60816675", "0....
0.6686514
0
Test whether we can update a company.
def Wrdq(YKHO): if YKHO.__class__.company1 is None: YKHO.testCreateCompanies() hEAh = ' Corp.' YKHO.__class__.company1['name'] = YKHO.__class__.company1['name'] + hEAh q9zX = YKHO.__class__.service.UpdateCompany(YKHO.__class__.company1) YKHO.assert_(isinstance(q9zX, tuple)) YKHO.assertTr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSE7(YKHO, q9zX, j83k, PDjX):\n return q9zX.one_list_tier_id != j83k or q9zX.one_list_account_owner_id != PDjX", "def vDIx(YKHO, PObu: Optional[str], gZ75: Optional[str]) -> bool:\n pass", "def JzzE(pwoj):\n return True", "def Z_Ct(YKHO):\n return YKHO.unique_id is not None", "def kaP2(YKHO...
[ "0.71534586", "0.69198763", "0.66763306", "0.6533009", "0.6522331", "0.63814044", "0.63814044", "0.63374734", "0.63214785", "0.63195884", "0.62647235", "0.6235168", "0.6235168", "0.6235168", "0.6235168", "0.6234332", "0.62047875", "0.6179522", "0.6153379", "0.611415", "0.6060...
0.6267056
11
Test whether we can update a list of companies.
def lHrl(YKHO): if YKHO.__class__.company1 is None or YKHO.__class__.company2 is None: YKHO.testCreateCompanies() hEAh = ' LLC' YKHO.__class__.company1['name'] = YKHO.__class__.company1['name'] + hEAh YKHO.__class__.company2['name'] = YKHO.__class__.company2['name'] + hEAh dEPy = YKHO.__clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSE7(YKHO, q9zX, j83k, PDjX):\n return q9zX.one_list_tier_id != j83k or q9zX.one_list_account_owner_id != PDjX", "def Z_Ct(YKHO):\n KzJa = set(YKHO._meta.list_allowed_methods + YKHO._meta.detail_allowed_methods)\n return 'put' in KzJa", "def enzY(YKHO):\n M6tS = YKHO.sessions.all()\n if not ...
[ "0.70826644", "0.6435418", "0.63063294", "0.6171948", "0.6085341", "0.6024099", "0.59917593", "0.596348", "0.5957681", "0.59395576", "0.58968574", "0.58968574", "0.58754015", "0.58453405", "0.58374953", "0.58365226", "0.583507", "0.5823582", "0.5814915", "0.5806106", "0.58061...
0.6522549
3
Test whether we can update a company.
def Wrdq(YKHO): if YKHO.__class__.company1 is None: YKHO.testCreateCompanies() hEAh = ' Corp.' YKHO.__class__.company1['name'] = YKHO.__class__.company1['name'] + hEAh q9zX = YKHO.__class__.service.UpdateCompany(YKHO.__class__.company1) YKHO.assert_(isinstance(q9zX, tuple)) YKHO.assertTr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSE7(YKHO, q9zX, j83k, PDjX):\n return q9zX.one_list_tier_id != j83k or q9zX.one_list_account_owner_id != PDjX", "def vDIx(YKHO, PObu: Optional[str], gZ75: Optional[str]) -> bool:\n pass", "def JzzE(pwoj):\n return True", "def Z_Ct(YKHO):\n return YKHO.unique_id is not None", "def kaP2(YKHO...
[ "0.715544", "0.6920233", "0.66751045", "0.65357375", "0.65216005", "0.63841647", "0.63841647", "0.63379806", "0.63214123", "0.63196117", "0.6265735", "0.6236273", "0.6236273", "0.6236273", "0.6236273", "0.62346935", "0.62071157", "0.61787355", "0.61530066", "0.61116534", "0.6...
0.6267925
10
Test whether we can update a list of companies.
def lHrl(YKHO): if YKHO.__class__.company1 is None or YKHO.__class__.company2 is None: YKHO.testCreateCompanies() hEAh = ' LLC' YKHO.__class__.company1['name'] = YKHO.__class__.company1['name'] + hEAh YKHO.__class__.company2['name'] = YKHO.__class__.company2['name'] + hEAh dEPy = YKHO.__clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSE7(YKHO, q9zX, j83k, PDjX):\n return q9zX.one_list_tier_id != j83k or q9zX.one_list_account_owner_id != PDjX", "def Z_Ct(YKHO):\n KzJa = set(YKHO._meta.list_allowed_methods + YKHO._meta.detail_allowed_methods)\n return 'put' in KzJa", "def enzY(YKHO):\n M6tS = YKHO.sessions.all()\n if not ...
[ "0.7082644", "0.643519", "0.6305893", "0.6170927", "0.60851836", "0.60233516", "0.5990873", "0.59618294", "0.5958376", "0.59401846", "0.5895526", "0.5895526", "0.5874392", "0.584448", "0.58377385", "0.58370936", "0.583397", "0.58241236", "0.58148587", "0.5806543", "0.5806543"...
0.6523022
1
Test whether we can update a company.
def Wrdq(YKHO): if YKHO.__class__.company1 is None: YKHO.testCreateCompanies() hEAh = ' Corp.' YKHO.__class__.company1['name'] = YKHO.__class__.company1['name'] + hEAh q9zX = YKHO.__class__.service.UpdateCompany(YKHO.__class__.company1) YKHO.assert_(isinstance(q9zX, tuple)) YKHO.assertTr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSE7(YKHO, q9zX, j83k, PDjX):\n return q9zX.one_list_tier_id != j83k or q9zX.one_list_account_owner_id != PDjX", "def vDIx(YKHO, PObu: Optional[str], gZ75: Optional[str]) -> bool:\n pass", "def JzzE(pwoj):\n return True", "def Z_Ct(YKHO):\n return YKHO.unique_id is not None", "def kaP2(YKHO...
[ "0.71534586", "0.69198763", "0.66763306", "0.6533009", "0.6522331", "0.63814044", "0.63814044", "0.63374734", "0.63214785", "0.63195884", "0.62647235", "0.6235168", "0.6235168", "0.6235168", "0.6235168", "0.6234332", "0.62047875", "0.6179522", "0.6153379", "0.611415", "0.6060...
0.6267056
13
Test whether we can update a list of companies.
def lHrl(YKHO): if YKHO.__class__.company1 is None or YKHO.__class__.company2 is None: YKHO.testCreateCompanies() hEAh = ' LLC' YKHO.__class__.company1['name'] = YKHO.__class__.company1['name'] + hEAh YKHO.__class__.company2['name'] = YKHO.__class__.company2['name'] + hEAh dEPy = YKHO.__clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSE7(YKHO, q9zX, j83k, PDjX):\n return q9zX.one_list_tier_id != j83k or q9zX.one_list_account_owner_id != PDjX", "def Z_Ct(YKHO):\n KzJa = set(YKHO._meta.list_allowed_methods + YKHO._meta.detail_allowed_methods)\n return 'put' in KzJa", "def enzY(YKHO):\n M6tS = YKHO.sessions.all()\n if not ...
[ "0.70826644", "0.6435418", "0.63063294", "0.6171948", "0.6085341", "0.6024099", "0.59917593", "0.596348", "0.5957681", "0.59395576", "0.58968574", "0.58968574", "0.58754015", "0.58453405", "0.58374953", "0.58365226", "0.583507", "0.5823582", "0.5814915", "0.5806106", "0.58061...
0.6522549
2
Test whether we can update a company.
def Wrdq(YKHO): if YKHO.__class__.company1 is None: YKHO.testCreateCompanies() hEAh = ' Corp.' YKHO.__class__.company1['name'] = YKHO.__class__.company1['name'] + hEAh q9zX = YKHO.__class__.service.UpdateCompany(YKHO.__class__.company1) YKHO.assert_(isinstance(q9zX, tuple)) YKHO.assertTr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSE7(YKHO, q9zX, j83k, PDjX):\n return q9zX.one_list_tier_id != j83k or q9zX.one_list_account_owner_id != PDjX", "def vDIx(YKHO, PObu: Optional[str], gZ75: Optional[str]) -> bool:\n pass", "def JzzE(pwoj):\n return True", "def Z_Ct(YKHO):\n return YKHO.unique_id is not None", "def kaP2(YKHO...
[ "0.715544", "0.6920233", "0.66751045", "0.65357375", "0.65216005", "0.63841647", "0.63841647", "0.63379806", "0.63214123", "0.63196117", "0.6265735", "0.6236273", "0.6236273", "0.6236273", "0.6236273", "0.62346935", "0.62071157", "0.61787355", "0.61530066", "0.61116534", "0.6...
0.6267925
12
Test whether we can update a list of companies.
def lHrl(YKHO): if YKHO.__class__.company1 is None or YKHO.__class__.company2 is None: YKHO.testCreateCompanies() hEAh = ' LLC' YKHO.__class__.company1['name'] = YKHO.__class__.company1['name'] + hEAh YKHO.__class__.company2['name'] = YKHO.__class__.company2['name'] + hEAh dEPy = YKHO.__clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSE7(YKHO, q9zX, j83k, PDjX):\n return q9zX.one_list_tier_id != j83k or q9zX.one_list_account_owner_id != PDjX", "def Z_Ct(YKHO):\n KzJa = set(YKHO._meta.list_allowed_methods + YKHO._meta.detail_allowed_methods)\n return 'put' in KzJa", "def enzY(YKHO):\n M6tS = YKHO.sessions.all()\n if not ...
[ "0.7082644", "0.643519", "0.6305893", "0.6170927", "0.60851836", "0.60233516", "0.5990873", "0.59618294", "0.5958376", "0.59401846", "0.5895526", "0.5895526", "0.5874392", "0.584448", "0.58377385", "0.58370936", "0.583397", "0.58241236", "0.58148587", "0.5806543", "0.5806543"...
0.6523022
4
Get extremes of a countour.
def lV3G(r9Hf): YCjO = tuple(r9Hf[r9Hf[:, :, 0].argmin()][0]) JTIU = tuple(r9Hf[r9Hf[:, :, 0].argmax()][0]) JdhD = tuple(r9Hf[r9Hf[:, :, 1].argmin()][0]) eydk = tuple(r9Hf[r9Hf[:, :, 1].argmax()][0]) return (YCjO, JdhD, JTIU, eydk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUe5(YKHO):\n if not YKHO.points:\n return (0.0, 0.0)\n VMGv = [Rci7.elevation for Rci7 in YKHO.points]\n return (max(VMGv), min(VMGv))", "def lmk2(YKHO) -> tuple[WPjr, WPjr]:\n if YKHO._sorted is None:\n YKHO._sorted = sorted(YKHO._members)\n return (YKHO._sorted[0], YKHO._sorte...
[ "0.71937424", "0.70592237", "0.7048389", "0.68978614", "0.684913", "0.67200685", "0.6688071", "0.6580434", "0.65741295", "0.65458477", "0.64137936", "0.6389853", "0.63704336", "0.62274295", "0.62251353", "0.6213673", "0.6210106", "0.62044007", "0.6181459", "0.6178498", "0.614...
0.71410143
1