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
Given a list of ingredients from HTML form, searches for recipes that contain only these ingredients
def eSj2(): tl_G = QePW.args.get('b', 0, type=str) global current_user c5ow.fridge.make_fridge(tl_G) zuW9 = c5ow.get_timed_recipes(PryF) GXLe = [] vOQZ = [] ZarS = [] Qy6n = [] eS08 = [] for YRbF in range(len(zuW9)): GXLe.append(zuW9[YRbF]['recipeName'].encode('ascii', 'i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GhpB(zKHR):\n NArs = '+'.join(zKHR.split())\n JG8E = HNsl.format(NArs)\n geh0 = qv1X.get(JG8E)\n return geh0.content", "def j2aM(WsAm):\n hwHU = set(di0c.words('english'))\n THI6 = []\n mWv7 = 0\n for e1T3 in set(WsAm):\n for GIN8 in e1T3:\n if GIN8 in hwHU:\n ...
[ "0.7450567", "0.6925764", "0.6854179", "0.681462", "0.65662485", "0.6338314", "0.63351244", "0.61868715", "0.6160762", "0.61457604", "0.61334926", "0.61065423", "0.6079977", "0.6076349", "0.6063715", "0.6055607", "0.6018266", "0.6015794", "0.59557414", "0.59201854", "0.589096...
0.0
-1
Extract topk entities given seeds.
def S7Nn(YKHO, m1Py, Cwt5, hz5a): NLkb = FOB8(m1Py, YKHO.data.adj_mat_t_csr, Cwt5) r4jz = oyIN.argsort(NLkb)[::-1] dmcw = r4jz[:hz5a] c7z0 = NLkb[r4jz[:hz5a]] YE6s = oyIN.where(NLkb[dmcw] < 1e-06)[0] if YE6s.shape[0] > 0: dmcw = dmcw[:YE6s[0]] return (dmcw, c7z0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _kIN(tP_m, G1Hx):\n qPJi = tP_m.argsort(axis=1)[:, :G1Hx].tolist()\n return qPJi", "def hz5a(he6J, G1Hx):\n he6J = ht2j.topk(he6J, G1Hx)\n return he6J.view(-1).data.tolist()", "def R082(FGW3=5):\n return list(RAUw.published.filter(featured=True)[:FGW3])", "def H42b(YKHO, G1Hx=1):\n if Y...
[ "0.6067031", "0.59501433", "0.56342024", "0.56280166", "0.56253827", "0.5582722", "0.55795217", "0.55525213", "0.55328137", "0.5528902", "0.5520351", "0.54736173", "0.5471133", "0.54636014", "0.5440023", "0.5429825", "0.53809315", "0.5375162", "0.53751266", "0.533664", "0.532...
0.6884426
0
Returns the shortest first name (str). You can assume there is only one shortest name.
def zdTz(ZWCE): ZWCE = uGrO(ZWCE) return sorted([mWFP.split()[0] for mWFP in ZWCE], key=len)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zdTz(ZWCE):\n ZWCE = uGrO(ZWCE)\n mggN = [mWFP.split(' ') for mWFP in ZWCE]\n c9ua = [cntZ for cntZ, XVAW in mggN]\n gJUm = c9ua[0]\n for mWFP in c9ua:\n if len(mWFP) < len(gJUm):\n gJUm = mWFP\n return gJUm", "def zdTz(ZWCE):\n ZWCE = uGrO(ZWCE)\n ZoCV = [mWFP.split...
[ "0.8495962", "0.8405887", "0.8365317", "0.81789523", "0.78514916", "0.7568302", "0.7427178", "0.7414167", "0.741108", "0.72852665", "0.72852665", "0.72852665", "0.72852665", "0.72852665", "0.72852665", "0.72852665", "0.72852665", "0.72852665", "0.72852665", "0.72852665", "0.7...
0.84295845
1
Test that a channel axis is added when it doesn't exist in the input
def brXj(pf9y, a6Jb, UJgg): VZhH = QF3_((3, a6Jb), lambda WKvO: 1) hlel = VZhH(pf9y) wnIm = pf9y.axes + UJgg assert hlel.axes.is_equal_set(wnIm), 'Output axes are not input axes + channel axis:{} != {} + {}'.format(hlel.axes, pf9y.axes, UJgg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vvbq(xwZH, a6Jb, UJgg):\n UJgg.name = 'channel'\n assert len(xwZH.axes.find_by_name('channel')) == 1\n VZhH = QF3_((3, a6Jb), lambda WKvO: 1)\n with trZe.raises(MRFN):\n VZhH(xwZH)\n hlel = VZhH(xwZH, channel_axes='channel')\n assert hlel.axes == xwZH.axes", "async def test_skipped_m...
[ "0.68041444", "0.5978892", "0.59068304", "0.58510864", "0.5820264", "0.5708535", "0.5601582", "0.55839527", "0.55391574", "0.5538313", "0.5525261", "0.5506493", "0.5473106", "0.5469562", "0.5443375", "0.5383108", "0.53624815", "0.5343262", "0.5339166", "0.53092283", "0.527701...
0.71101326
0
Test that the dilated convolution layer output matches expected. This test compares the maximum output value to an expected max output value. The expected value is computed based on the dilation parameter. The test also checks that the output size matches the expected size based on the dilaton parameter value.
def gqsg(ivFb): N0ky = 3 Ep8u = 1 KneB = 0.1 HJLc = 3 hVLt = 3 sAgP = 1 VGt2 = 3 C3ST = ileL([QF3_((HJLc, HJLc, sAgP), filter_init=J_F_(val=KneB), padding=hVLt, dilation=ivFb)]) EcVT = oyIN.ones(shape=(Ep8u, 3, N0ky, N0ky)) nPrm = {'image': EcVT, 'iteration': 1} Zgof = U8Lr([...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oIoo(YKHO, yc4o=None, pVYu=None, FEri=None, mJgj=None, dvgN=None, tGrr='NHWC', Xv8J='NHWC', aEqx=None):\n cEUo = oyIN.prod(yc4o)\n jedx = oyIN.prod(pVYu)\n o4D3 = oyIN.arange(1, cEUo + 1, dtype=oyIN.float32).reshape(yc4o)\n ajwV = oyIN.arange(1, jedx + 1, dtype=oyIN.float32).reshape(pVYu)\n FEri...
[ "0.64663506", "0.6339015", "0.6257454", "0.61735374", "0.6152628", "0.61100185", "0.60942584", "0.60613877", "0.6036121", "0.5997487", "0.591609", "0.59005904", "0.58983564", "0.5894166", "0.58659226", "0.5855777", "0.583677", "0.5803536", "0.577784", "0.5746447", "0.57333267...
0.78776544
0
Store the receiver in database and return its ID.
def VUF1(YKHO, QpfX, QdZT=False): E3oo = TsP8.utcnow(True) YKHO.created_at = TsP8.utcnow(True) hkxX = {'id': YKHO.id, 'name': YKHO.name, 'type': YKHO.type, 'user': YKHO.user, 'project': YKHO.project, 'domain': YKHO.domain, 'created_at': YKHO.created_at, 'updated_at': YKHO.updated_at, 'cluster_id': YKHO.clus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h2p1(YKHO):\n return YKHO.__receivers_id", "def JPHp(YKHO):\n ZfUD = YKHO.create()\n return ZfUD.id", "def eLpg(Emd4, vC92, nG3o, TBsA, E3oo=None):\n if E3oo is None:\n E3oo = qcWV.datetime.utcnow()\n tO9_ = Emd4(vC92, nG3o, TBsA, E3oo)\n NCls.session.add(tO9_)\n try:\n N...
[ "0.6423932", "0.5876769", "0.5797933", "0.5710716", "0.5706996", "0.56506854", "0.5634671", "0.5573839", "0.5572288", "0.553507", "0.5532543", "0.5480858", "0.5480858", "0.5480858", "0.54778296", "0.5473655", "0.5473655", "0.54736364", "0.5444757", "0.5444757", "0.54426414", ...
0.69515216
0
Constructs a shortened representation of a PdObject.
def XVyo(YEnM: PdObject, n4TS: int=8) -> str: if isinstance(YEnM, list): L38p = (n4TS + 1) // 2 if len(YEnM) > 2 * n4TS: return '[{}, ({} more), {}]'.format(', '.join((XVyo(tTpl, L38p) for tTpl in YEnM[:n4TS])), len(YEnM) - 2 * n4TS, ', '.join((XVyo(tTpl, L38p) for tTpl in YEnM[-n4TS:]))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EyO9(object):\n return rMR2().pformat(object)", "def o0TR(YEnM):\n mWFP = YEnM.get_name()\n mWFP = YEnM._pid if mWFP is None else mWFP\n return 'pdg: ' + mWFP + ' E: ' + str(YEnM._E) + ' px: ' + str(YEnM._px) + ' py: ' + str(YEnM._py) + ' pz: ' + str(YEnM._pz) + ' mass: ' + str(YEnM._m)", "def ...
[ "0.5644744", "0.5611544", "0.5591873", "0.54736", "0.54563993", "0.53513646", "0.53206956", "0.53024477", "0.52644145", "0.5253599", "0.5235866", "0.52308536", "0.5215566", "0.52139914", "0.5204089", "0.51857984", "0.5153454", "0.5145673", "0.51341456", "0.5121201", "0.511272...
0.62185085
0
Calculate and return the illegal proposal rate of this proposal. (Proposing values outside the support of the parameter space e.g covariances < 0) Returns
def VyfR(YKHO): return YKHO.count_illegal / YKHO.count_proposed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YiU0(YKHO):\n assert len(YKHO.weights) == len(YKHO.means), 'Dimensions!'\n yvT9 = oyIN.exp(YKHO.data['riskfree'] * YKHO.data['maturity'])\n for upAO, JBMS in zip(YKHO.weights, YKHO.means):\n yvT9 -= upAO * oyIN.exp(JBMS * YKHO.data['maturity'])\n return (yvT9 ** 2).mean() ** 0.5", "def W2Z...
[ "0.61560255", "0.61219674", "0.60336506", "0.59619415", "0.5867981", "0.5866423", "0.5817501", "0.58053184", "0.5801318", "0.5792975", "0.57858485", "0.5781058", "0.57493556", "0.5713597", "0.5710124", "0.5701755", "0.5694844", "0.5671048", "0.56675017", "0.56662416", "0.5652...
0.6779935
0
Return True if the given element is in this view.
def dwiQ(YKHO, U6D_: Element) -> bool: return YKHO.find_element_view(element=U6D_) is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjXf(YKHO, U6D_) -> bool:\n return YKHO.__find_node(U6D_) is not None", "def FYXB(YKHO, ZfUD):\n if YKHO.is_view:\n return ZfUD in YKHO._view\n return ZfUD in YKHO._storage", "def sjXf(YKHO, U6D_):\n pass", "def qcAu(YKHO):\n if YKHO.web_element.is_displayed():\n return True\...
[ "0.72909355", "0.6978362", "0.6958688", "0.67255217", "0.6717766", "0.6496774", "0.64491296", "0.64290804", "0.6372613", "0.6279521", "0.6277805", "0.62600285", "0.6246147", "0.6245345", "0.6212836", "0.6174918", "0.6135724", "0.61295", "0.61222446", "0.61159575", "0.6111", ...
0.8923193
0
Splits a column of comma separated values into their own rows with values identical to the original.
def MOjr(jQ3Z, iVRZ='Members', VWe_=', '): bS0K = [] Dbmo = [] for YRbF, rEZ3 in enumerate(jQ3Z[iVRZ].astype(str)): for BWXx in rEZ3.split(VWe_): bS0K.append(YRbF) Dbmo.append(BWXx) lmpc = jQ3Z.iloc[bS0K, :].copy() lmpc[iVRZ] = Dbmo jQ3Z = lmpc.reset_index(drop=Tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dpwp(jQ3Z, AAHb, gxiP=',', uZq5=False):\n jQ3Z = jQ3Z.select(AAHb, IANU(lpha(AAHb, gxiP)).alias('pos', 'val')).select(AAHb, ENFq(MW_J(AAHb), fvDH('pos').cast('string')).alias('name'), 'val').groupBy(AAHb).pivot('name').agg(cntZ('val'))\n if uZq5:\n return jQ3Z\n else:\n return jQ3Z.drop(...
[ "0.64203936", "0.63070935", "0.61441594", "0.6137313", "0.5952938", "0.5780356", "0.57425", "0.5677074", "0.5605468", "0.544994", "0.5446234", "0.5424089", "0.53638244", "0.53548014", "0.53276426", "0.53026354", "0.52907306", "0.525217", "0.5158915", "0.51240396", "0.510114",...
0.66650534
0
Create a dataset from the given parameters. Note that despite the type hinting, ``domain`` is only semioptional, as a domain is required to create a
async def create_dataset(YKHO, j3aw: str, Ghho: DataCategory, zrIJ: Optional[DataDomain]=None, **B2fa) -> bool: if zrIJ is None: wH3T = B2fa.pop('data_format', None) if wH3T is None: tO9_ = "Client can't create dataset with `None` for {}, nor generate a default {} without a provided {}" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, s56f, l8Wi=True, gMbG=None):\n assert isinstance(s56f, list) or isinstance(s56f, str)\n if isinstance(s56f, list):\n YKHO.domain_keys = s56f\n elif isinstance(s56f, str):\n YKHO.domain_keys = [WKvO for WKvO in s56f.split(',')]\n YKHO.require_domain = l8Wi\n YKHO.domain_d...
[ "0.70908016", "0.6585426", "0.6346205", "0.6299749", "0.6184952", "0.6145635", "0.6139993", "0.61318284", "0.6127892", "0.6063784", "0.5988405", "0.59247696", "0.5912318", "0.5860009", "0.5854653", "0.5846334", "0.5820806", "0.58134025", "0.5787504", "0.577296", "0.57687443",...
0.68479204
1
Return a sequence with num equally spaced items from the sequence.
def gxXx(aWuw, mLGw): u54L = float(len(aWuw)) Q6uT = oyIN.array(aWuw) return Q6uT[oyIN.ceil(oyIN.arange(mLGw) * u54L / mLGw).astype(int)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zj7q(aWuw, mLGw):\n u54L = float(len(aWuw))\n for YRbF in range(mLGw):\n yield aWuw[int(oyIN.ceil(YRbF * u54L / mLGw))]", "def Zj7q(aWuw, mLGw):\n u54L = float(len(aWuw))\n for YRbF in range(mLGw):\n yield aWuw[int(lO1m(YRbF * u54L / mLGw))]", "def NFUi(Q6uT, mTYt):\n if len(Q6...
[ "0.7079229", "0.69849604", "0.6554045", "0.6446533", "0.62521", "0.62231594", "0.62126434", "0.6150865", "0.61437947", "0.6142398", "0.6108911", "0.60950077", "0.6078426", "0.6029814", "0.6026212", "0.6003211", "0.60010767", "0.59927523", "0.59927523", "0.5981187", "0.5978597...
0.6889098
2
Gets a QuerySet of current objects related to ``objs`` via the relation ``related``.
def xxpy(YKHO, NnTR, p9NO): from versions.models import Versionable FhhS = NnTR.related_model if issubclass(FhhS, Versionable): umWR = FhhS.objects.current else: umWR = FhhS._base_manager.all() return umWR.using(YKHO.using).filter(**{'%s__in' % NnTR.field.name: p9NO})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xxpy(YKHO, FhhS, UbeE, p9NO):\n lgNN = Pusg(seET.or_, (Umqt.Q(**{'%s__in' % rPlx.name: p9NO}) for rPlx in UbeE))\n return FhhS._default_manager.using(YKHO.using).filter(lgNN)", "def yJSk(YEnM, Ro5k=False):\n sBNq = sxdh(YEnM, Ro5k)\n xxpy = []\n for p_z1 in sBNq:\n xxpy += p_z1.all()\n ...
[ "0.7643895", "0.6433926", "0.62799156", "0.61716324", "0.60885555", "0.5964254", "0.5934872", "0.58134305", "0.5811461", "0.5781093", "0.57791954", "0.57010734", "0.5631755", "0.55931336", "0.55913925", "0.55770904", "0.5536853", "0.55321735", "0.5504152", "0.5481324", "0.544...
0.8107112
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.7448925
82
Compute the softmax nonlinear activation function.
def N93T(g4y1): BFeB = oyIN.exp(g4y1) BFeB /= oyIN.sum(BFeB, axis=0)[oyIN.newaxis, :] return BFeB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)", "def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)", "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=1, keepdims=True)", "def N93T(WKvO):\n return oyIN.exp(WKvO) / o...
[ "0.7768352", "0.77541727", "0.7747371", "0.7738893", "0.7731587", "0.77270156", "0.77237934", "0.77237934", "0.77237934", "0.77237934", "0.77237934", "0.77237934", "0.77237934", "0.77237934", "0.77112085", "0.7711048", "0.7692442", "0.76765347", "0.7640326", "0.7640326", "0.7...
0.0
-1
Return the route_path() of this instance.
def qvey(YKHO, QePW) -> str: return QePW.route_path(YKHO.url)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQC(YKHO):\n return YKHO._path", "def OyQC(YKHO):\n return YKHO.path", "def pmON(YKHO):\n return YKHO.__path", "def vcG3(YKHO):\n return YKHO.path", "def OyQC(YKHO) -> h8nf[str]:\n return YKHO.path", "def NVxF(YKHO):\n return YKHO.path_display", "def pmON(YKHO) -> str:\n retur...
[ "0.7054861", "0.6987979", "0.68065697", "0.6733239", "0.6719479", "0.6718167", "0.66832066", "0.66832066", "0.66832066", "0.66832066", "0.6546281", "0.65282416", "0.6494544", "0.6460639", "0.64459836", "0.64312774", "0.64189124", "0.64189124", "0.6403246", "0.6403246", "0.640...
0.6670355
10
sign(x) = 1 when x >=0, sign(x) = 1 when x < 0
def Zihr(WKvO): if WKvO >= 0: return 1 else: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n return -1", "def Zihr(jzdc):\n return (jzdc > 0) - (jzdc < 0)", "def Zihr(jzdc):\n return (jzdc > 0) - (jzdc < 0)", "def Zihr(mLGw: float):\n return 1 if mLGw >= 0 else -1", "def Zihr(WKvO):\n if WKvO < 0.0:\n Zihr = -1\n elif ...
[ "0.8934227", "0.8589877", "0.8557983", "0.84978384", "0.8455169", "0.82966465", "0.8226261", "0.8218827", "0.80557597", "0.7960639", "0.77862436", "0.7741318", "0.76713824", "0.74776924", "0.74519736", "0.74350107", "0.73274165", "0.73155457", "0.72797954", "0.7140799", "0.70...
0.89466614
0
vector dot product, return a scalar x and y are two vectors with same length
def QLUs(WKvO, LVAh): if len(WKvO) != len(LVAh): raise ValueError('vector lengths differ') else: return sum([WKvO[YRbF] * LVAh[YRbF] for YRbF in range(len(WKvO))])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yYJc(WKvO, LVAh):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))", "def lHyX(WKvO, LVAh):\n assert len(WKvO.shape) == 1\n assert len(LVAh.shape) == 1\n assert WKvO.shape[0] == LVAh.shape[0]\n epBp = 0\n for YRbF in range(WKvO.shape[0]):\n epBp += WKvO[YRbF] * LVAh[YRbF...
[ "0.86098886", "0.83120406", "0.8255133", "0.8179656", "0.80700606", "0.7998463", "0.79642713", "0.79305995", "0.7897161", "0.78932184", "0.78799474", "0.787511", "0.78657234", "0.7834769", "0.7806407", "0.7790224", "0.7761924", "0.7682441", "0.767671", "0.7645681", "0.7637908...
0.8495939
1
vector cross product, return a vector x and y are two vectors with same length returned vector z is the same length as well this time only with dim=3
def dcUW(WKvO, LVAh): if len(WKvO) != len(LVAh): raise ValueError('vector lengths differ') elif len(WKvO) > 3: raise ValueError('vector is more than 3D') else: KCHu = [WKvO[1] * LVAh[2] - WKvO[2] * LVAh[1], WKvO[2] * LVAh[0] - WKvO[0] * LVAh[2], WKvO[0] * LVAh[1] - WKvO[1] * LVAh[0]]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHx2(lSjb, v8Fa):\n Aofo = oyIN.zeros(3)\n return hmBT(lSjb, v8Fa, Aofo)", "def WHx2(WKvO, LVAh):\n WKvO = WKvO.reshape(3)\n LVAh = LVAh.reshape(3)\n epBp = oyIN.cross(WKvO, LVAh)\n epBp = epBp.reshape((3, 1))\n return epBp", "def vNib(jzdc, Fg_i):\n return [jzdc[1] * Fg_i[2] - jzdc...
[ "0.76212597", "0.74925447", "0.73110324", "0.7152654", "0.7140053", "0.71354425", "0.7123215", "0.71210593", "0.70858693", "0.7048258", "0.70462084", "0.7012079", "0.69709086", "0.69547546", "0.6936852", "0.69079554", "0.6902274", "0.68876064", "0.6840153", "0.6813516", "0.67...
0.76472753
0
Implements a polynomial learning rate of the form (1/nw)
def GBBL(exwG, yzQ0=0.5): assert exwG > 0, 'Make sure the number of times a state action pair has been observed is always greater than 0 before calling polynomial_learning_rate' return 1.0 / exwG ** yzQ0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0Ix(YKHO, a1PO):\n return YKHO.init_learning_rate / (1 + a1PO)", "def vYgO(P8oC):\n\n def m2Zb(a1PO):\n return P8oC ** (a1PO - 1)\n return m2Zb", "def cBsx(YKHO, yKTC, qtWj):\n \"\"\"\n Dan's Methos\n \"\"\"\n yj8H = yKTC * 0.001\n Z9rn = oyIN.power(yj8H / yKTC, 1.0 ...
[ "0.6654315", "0.66402304", "0.6613906", "0.6513235", "0.64861625", "0.64501995", "0.63714004", "0.6363292", "0.63441026", "0.62656987", "0.62390316", "0.62067163", "0.62067163", "0.62005514", "0.616968", "0.61533827", "0.6133514", "0.6133514", "0.6092227", "0.6049452", "0.604...
0.8037298
0
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a xavier initialization. A weight decay is added only if one is specified.
def xSbR(mWFP, ROpF, TI1B=0.0): SRYB = js1U(mWFP, ROpF, ZylS.contrib.layers.xavier_initializer()) if TI1B != 0.0: oNEO = ZylS.mul(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss') ZylS.add_to_collection('losses', oNEO) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSbR(mWFP, ROpF, z2bo, TI1B, gfK_=True):\n if gfK_:\n MuED = ZylS.initializers.glorot_uniform()\n else:\n MuED = ZylS.truncated_normal_initializer(stddev=z2bo)\n SRYB = js1U(mWFP, ROpF, MuED)\n if TI1B is not None:\n oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weigh...
[ "0.7241202", "0.71975875", "0.71188027", "0.70638335", "0.7054658", "0.7011236", "0.68975306", "0.68917346", "0.6887726", "0.6880515", "0.6873685", "0.6873685", "0.6855851", "0.6807256", "0.67553926", "0.67351", "0.62675095", "0.62666804", "0.6203097", "0.61477965", "0.612937...
0.7084271
3
Removes stopwords taken from NLTK website.
def aUcs(l5Ny): di0c = ['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself', 'yourselves', 'he', 'him', 'his', 'himself', 'she', 'her', 'hers', 'herself', 'it', 'its', 'itself', 'they', 'them', 'their', 'theirs', 'themselves', 'what', 'which', 'who', 'whom', 'this', 'that...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)", "def aUcs(V22M):\n di0c = Dhdw.corpus.stopwords.words('english')\n return [yzQ0 for yzQ0 in V22M if yzQ0 not in di0c]", "def aUcs(YKHO, l5Ny):\n...
[ "0.82163674", "0.77724355", "0.77685404", "0.7766371", "0.7763976", "0.7762143", "0.7725843", "0.7725843", "0.7725843", "0.7725843", "0.77016556", "0.7701282", "0.7697452", "0.76888573", "0.7688342", "0.7681032", "0.763926", "0.7639205", "0.7629822", "0.7618348", "0.7607955",...
0.7593453
24
Get all the sources of tokenized text we have in a language.
def Xsd5(DuqQ): return [WAlC + '/tokenized/{source}/{lang}.txt'.format(source=JZXy, lang=DuqQ) for JZXy in Z_1L[DuqQ] if JZXy in YiEl]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iS36(YKHO):\n Q4kH = [ZbWC.sub('[^a-zA-Z]', '', w2fL.text.lower().strip()) for w2fL in YKHO.doc]\n Q4kH = [w2fL for w2fL in Q4kH if len(w2fL) > 1 and w2fL in cTCw]\n Q4kH = sorted(set(Q4kH))\n return Q4kH", "def lUlK(YKHO):\n return ['en:' + YKHO.tag_manager.normalize_tag_wtokenization(a1PO, Y...
[ "0.6808751", "0.6602341", "0.65438026", "0.6541259", "0.6345355", "0.6345355", "0.62279546", "0.61624664", "0.6071694", "0.6071694", "0.6071694", "0.6071694", "0.60606", "0.6059048", "0.5987303", "0.59685606", "0.593609", "0.5931265", "0.5897387", "0.58759075", "0.5802738", ...
0.79785043
0
Retourne True si le personnage est noyable, False sinon.
def u0Ie(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eRwN(YKHO):\n return YKHO.__nonzero__()", "def ebnO(YKHO):\n return bool(QBs8(YKHO.obj, 'not %r' % YKHO.obj))", "def vnc6(YKHO):\n return True", "def eRwN(YKHO):\n return YKHO is wxy6", "def eRwN(YKHO):\n return not YKHO.undefine", "def eRwN(YKHO):\n return True if YKHO._name is not...
[ "0.6540811", "0.65173805", "0.6504292", "0.6462654", "0.6444503", "0.64119697", "0.635402", "0.63263655", "0.6298532", "0.6295683", "0.6285922", "0.6284034", "0.6282235", "0.6278732", "0.6273903", "0.6253428", "0.62380856", "0.6231243", "0.6231243", "0.6210731", "0.6136528", ...
0.7022764
0
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
def v0v7(ZHfW: torch.Tensor, yDqo: torch.dtype, _SUv: Optional[int]=None): K_dq, oe5C = ZHfW.size() _SUv = _SUv if _SUv is not None else oe5C XK0W = ZHfW[:, None, None, :].expand(K_dq, 1, _SUv, oe5C).to(yDqo) cdJb = 1.0 - XK0W return cdJb.masked_fill(cdJb.to(ht2j.bool), ht2j.finfo(yDqo).min)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a_TT(pKvt, Ufvr, yDqo=ZylS.float32):\n with ZylS.name_scope('encoder_mask'):\n ZHfW = ZylS.sequence_mask(Ufvr, dtype=yDqo, maxlen=ZylS.shape(pKvt)[1])\n return ZHfW[:, None, None, :]", "def TaYf(C3ST, WKvO):\n GPtr = C3ST.config\n qV0r = C3ST.inputs['input_mask']\n VGsW = C3ST.build...
[ "0.6627125", "0.64431953", "0.6341481", "0.61793864", "0.61158055", "0.6070189", "0.6019167", "0.5995747", "0.5981831", "0.59229624", "0.58860606", "0.58100045", "0.58093405", "0.578635", "0.5784919", "0.57751375", "0.5711562", "0.5703085", "0.570291", "0.57000095", "0.563281...
0.62160057
3
Returns the displacement texture, storing the 3D Displacement in the RGB channels
def gqP7(YKHO): return YKHO.displacement_tex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QnV5(YKHO):\n Exmq = YKHO.z[:, :, dxBm]\n return Exmq * YKHO.c", "def v9Pi(YKHO):\n ...", "def yuVB(WKvO, LVAh, epBp):\n return (WKvO * 16 + epBp) * aDh9 + LVAh", "def xfxF(YKHO):\n ...", "def QoC3(LNo8: tf.Tensor) -> ZylS.Tensor:\n Mkmy, Oa1e, Fg_i = ZylS.unstack(LNo8, axis=-1)\n ...
[ "0.57808304", "0.5724655", "0.5575158", "0.55007845", "0.5495631", "0.5442849", "0.53449386", "0.53127766", "0.52633506", "0.5257021", "0.52545923", "0.52391744", "0.5231013", "0.5198924", "0.51982945", "0.51770604", "0.51602405", "0.51500976", "0.5144836", "0.51301616", "0.5...
0.7183238
0
Returns the normal texture, storing the normal in world space in the RGB channels
def sd49(YKHO): return YKHO.normal_tex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0b2(YKHO):\n Z9rn, KCHu = (oyIN.cos(YKHO.eangles), oyIN.sin(YKHO.eangles))\n Mkmy = oyIN.array([[Z9rn, -KCHu], [KCHu, Z9rn]])\n P6bq = oyIN.array([1, 0])\n return oyIN.dot(Mkmy, P6bq)", "def mhAC(YKHO, NFIp):\n Ylbp = xQN8(YKHO.surface(), NFIp[0], NFIp[1], 1, 1e-09)\n if not Ylbp.IsNormalD...
[ "0.6566784", "0.6541615", "0.6512049", "0.64429337", "0.6339668", "0.6276351", "0.6200656", "0.6118488", "0.61088574", "0.607771", "0.60631305", "0.6046111", "0.6028556", "0.60196614", "0.60163665", "0.5973171", "0.5903069", "0.5851999", "0.58481455", "0.57989216", "0.5756422...
0.78915715
0
Convert (x, y) coordinates to raster column and row indices based on the affine transformation of the raster.
def SYZ2(WKvO, LVAh, rnv5): L1CZ = XTiz.array(rnv5).reshape(9) rnv5 = ~I0t_(*L1CZ[:6]) fxo8 = XTiz.floor(wfxF(LVAh, WKvO, rnv5)) M_DK = fxo8.astype(int)[::-1] return M_DK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BxLP(YKHO, WKvO, LVAh):\n jzdc, Fg_i, Z9rn, Csk6, tTpl, eHNT = YKHO.coordspace_transform\n nUPH = jzdc * tTpl - Fg_i * Csk6\n mw3d = 1 / float(nUPH)\n XdG6 = tTpl * mw3d\n FohR = -Fg_i * mw3d\n Zohj = -Csk6 * mw3d\n ZbWC = jzdc * mw3d\n oBL1 = WKvO * XdG6 + LVAh * FohR + (-Z9rn * XdG6 -...
[ "0.7161936", "0.6930285", "0.6911302", "0.6767629", "0.6755321", "0.6702426", "0.6593449", "0.6577924", "0.65381414", "0.64958143", "0.6494961", "0.6420091", "0.6297772", "0.62835073", "0.62815624", "0.62698585", "0.6257687", "0.62332827", "0.61786354", "0.61742276", "0.61528...
0.720692
0
Please make sure that `df` has been filtered percentile wise To do that, use filter_percentile method
def Atx3(YKHO, jQ3Z, cC9w, SGf8=10, zEe5=2): EcVT = jQ3Z[['latitude', 'longitude']].values ug3y = jQ3Z[cC9w].values AcYW = 'haversine' E91_ = 'ball_tree' zEe5 = 2 SGf8 = SGf8 / 6371 l2Zr = nCwK(eps=10 / 6371, min_samples=2, algorithm=E91_, metric=AcYW).fit(oyIN.radians(EcVT)) Crrw = l2Zr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgIE(jQ3Z, fvDH, vP2v=95, oTDq=5):\n ThQl = oyIN.percentile(jQ3Z[fvDH].values, vP2v)\n mLQx = oyIN.percentile(jQ3Z[fvDH].values, oTDq)\n KCHu = (jQ3Z[fvDH] < ThQl) & (jQ3Z[fvDH] > mLQx)\n qaAi = jQ3Z[KCHu]\n return qaAi", "def TUwu(yArv, SR0I):\n if yArv:\n SR0I = SR0I.annotate(gjQi(...
[ "0.78571683", "0.7292044", "0.72590977", "0.68510187", "0.6358147", "0.6341053", "0.63344765", "0.61990696", "0.6165741", "0.615586", "0.6101218", "0.6096214", "0.6054992", "0.6054992", "0.6024836", "0.6017268", "0.601104", "0.600272", "0.6002209", "0.599252", "0.59753734", ...
0.0
-1
Initializes flowcell statistic report.
def FIMM(YKHO, GPtr, TTYg=None, FGW3=None, H5ew=int(-1), m6LZ=None, _PLx=None, o6Of=None, kmfe=None, _c1T=F803('%Y%m%d', FdZ9()), ITS7=F803('%H:%M:%S', FdZ9()), iuWa='flowcell_report', i5Hb=None, **B2fa): if m6LZ is None: m6LZ = aEDa(GPtr, key='dummy_flowcell_key') if m6LZ.__class__.__name__ != 'Flowcel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQQ8(YKHO):\n YKHO._reporter.open(mode='w')\n YKHO._reporter.write_thermodynamic_states(YKHO._thermodynamic_states, YKHO._unsampled_states)\n YKHO._store_options()\n YKHO._reporter.write_dict('metadata', YKHO._metadata)\n YKHO._report_iteration()", "def S5IL(YKHO) -> None:\n YKHO.mass = oyI...
[ "0.64887726", "0.63885176", "0.6234261", "0.6205661", "0.6133604", "0.6078629", "0.6061767", "0.6043574", "0.6007101", "0.5986759", "0.59836006", "0.5968505", "0.59307855", "0.5928769", "0.59180045", "0.5911938", "0.5896176", "0.5877347", "0.58597475", "0.58466077", "0.581950...
0.56822574
30
DP Calculate the maximum total length of the fence that can be painted without allowing any two artists' work to overlap.
def oyuo(MOpQ): if not MOpQ: return 0 ai1B = [] for tJI3 in MOpQ: if tJI3[1] <= MOpQ[0][0] or tJI3[0] >= MOpQ[0][1]: ai1B.append(tJI3) BWXx = MOpQ[0][1] - MOpQ[0][0] del MOpQ[0] return max(BWXx + oyuo(ai1B), oyuo(MOpQ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y0LZ(YKHO):\n return BMOx.length(YKHO.atom1.position - YKHO.atom2.position)", "def qx2R(YKHO):\n if YKHO.edge_length_l is not None:\n return YKHO.edge_length_l\n else:\n YKHO.edge_length_l = 2 * YKHO.radius * epAf.sin(epAf.pi / YKHO.vert_count)\n return YKHO.edge_length_l", "d...
[ "0.63357764", "0.6172923", "0.61541736", "0.6139254", "0.61103475", "0.6040113", "0.60374016", "0.60359704", "0.597216", "0.5969269", "0.5934595", "0.59330595", "0.58951724", "0.5864641", "0.585913", "0.5847961", "0.58305764", "0.5827366", "0.5827093", "0.5824737", "0.5824531...
0.5762756
22
Returns a list of variables managed by this object.
def EKum(YKHO): return [YKHO.mu, YKHO.var]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kc1W(YKHO):\n return YKHO._.vars", "def jbKh(YKHO):\n return YKHO.variables", "def kc1W(YKHO):\n return YKHO._variables", "def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}", "def jbKh(YKHO):\n return YKHO.variables", "def EXYZ(YKHO):\n return list(YKHO._propert...
[ "0.8642703", "0.8473419", "0.84646976", "0.8429478", "0.84256244", "0.83732164", "0.8336629", "0.82757443", "0.8256269", "0.8236937", "0.8182239", "0.8157605", "0.8078099", "0.79914516", "0.79724437", "0.7954486", "0.79525644", "0.79498386", "0.78894144", "0.7888765", "0.7880...
0.7937009
18
Generates all kmers of size k for a string s and store them in a set
def Tw8l(KCHu, G1Hx): SOtT = set([]) exwG = len(KCHu) for WKvO in range(0, exwG - G1Hx + 1): SOtT.add(KCHu[WKvO:WKvO + G1Hx]) return SOtT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XFXy(vIwR, G1Hx, vC9B, a1PO):\n uYN0 = set()\n BWz1 = mBkc([SOtT for YRbF, SOtT in A0wy(vIwR[:vC9B], G1Hx)])\n uYN0 = IG65(BWz1, uYN0)\n for YRbF in range(1, len(vIwR) - vC9B + 1):\n BWz1[vIwR[YRbF - 1:YRbF - 1 + G1Hx]] -= 1\n BWz1[vIwR[YRbF + vC9B - G1Hx:YRbF + vC9B]] += 1\n u...
[ "0.76189435", "0.7363111", "0.6979085", "0.6867179", "0.6815722", "0.67906415", "0.67450863", "0.6658662", "0.66486514", "0.66284275", "0.6626568", "0.6619437", "0.6613662", "0.64602196", "0.6456886", "0.64392704", "0.6331464", "0.6325849", "0.63245183", "0.6272226", "0.62616...
0.76864225
0
Truncate the coefficients upto the given threshold
def G34s(GUUu, gwAu=99): plZb = oyIN.argsort(oyIN.abs(GUUu))[::-1] _yK9 = GUUu.shape[-1] tAX0 = oyIN.int(oyIN.round(_yK9 * gwAu / 100.0)) V4PK = GUUu.copy() V4PK[plZb[tAX0:]] = 0 return V4PK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G34s(YKHO, rhd_):\n rhd_ = YKHO.parent().action().filter(rhd_)\n Lv40 = min(YKHO.precision(), rhd_)\n pwIx = dict(((Npgh, jth9(YKHO.__coefficients[Npgh])) for Npgh in YKHO.__coefficients))\n return e2Qo(YKHO.parent(), pwIx, Lv40, cleanup_coefficients=True)", "def P48o(GUUu, gwAu, Tuqy='soft'):\n ...
[ "0.64514995", "0.6273887", "0.6269911", "0.62587625", "0.61372244", "0.6091238", "0.6072903", "0.5973585", "0.5852989", "0.5852989", "0.5834595", "0.5436423", "0.540269", "0.5387345", "0.5347651", "0.5327133", "0.53194124", "0.5311541", "0.53010476", "0.52519625", "0.524019",...
0.82398957
0
Validates the field and returns True or False. `self.errors` will contain any errors raised during validation. This is usually only called by `Form.validate`. Subfields shouldn't override this, but rather override either `pre_validate`, `post_validate` or both, depending on needs.
async def _field_validate(YKHO, L03z, fgL4=()): YKHO.errors = list(YKHO.process_errors) fkcM = False try: Ylbp = YKHO.pre_validate(L03z) if tq_1.isawaitable(Ylbp): Ylbp = await Ylbp except KgIg as e: if tTpl.args and tTpl.args[0]: YKHO.errors.append(tTpl.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(YKHO):\n if YKHO.validate_all_fields():\n return True\n return False", "def xzCw(YKHO):\n return YKHO.validator.validate(YKHO.fields)", "def xzCw(YKHO):\n if YKHO.id == None:\n return False\n return YKHO.validator.validate(YKHO.fields)", "def xzCw(YKHO):\n for Jyyj in...
[ "0.7482887", "0.7340466", "0.7098373", "0.6966863", "0.6826062", "0.68239903", "0.6790077", "0.67772603", "0.6690308", "0.66501015", "0.66279197", "0.6606551", "0.6576976", "0.65420115", "0.6461654", "0.6451994", "0.6381507", "0.6364916", "0.63434017", "0.6339148", "0.6332983...
0.6116695
41
This function linearly increases the perlayer momentum to a predefined ceiling over a set amount of epochs.
def _57L(YKHO, qtWj): if qtWj == 0: return YKHO.momentums = [WKvO + LVAh for WKvO, LVAh in zip(YKHO.momentums, YKHO.momentum_temper_rates)] for YRbF, Lwm5 in enumerate(YKHO.optimizer.param_groups): Lwm5['momentum'] = YKHO.momentums[YRbF]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eszp(qtWj: int, Vl8I: int) -> float:\n return 1 - qtWj / float(Vl8I)", "def QXaa(qtWj):\n tspZ = aF2y * 0.1 ** (qtWj // (hzfl * 0.5)) * 0.1 ** (qtWj // (hzfl * 0.75))\n return tspZ", "def L1GW(jEy1, ybL1, Sr5M, Pj5a):\n UMN4 = [int(ybL1 * qtWj) for qtWj in Sr5M]\n T6S7 = [jEy1 * WMj5 for WMj...
[ "0.65823615", "0.64823323", "0.62928027", "0.60715187", "0.60255474", "0.602073", "0.60084313", "0.59955114", "0.59843445", "0.5981576", "0.5970706", "0.5969533", "0.59523624", "0.5949384", "0.5948987", "0.59192854", "0.59192854", "0.59128803", "0.5909585", "0.5884095", "0.58...
0.5680063
67
This function linearly decays the perlayer lr over a set amount of epochs.
def fd7I(YKHO): YKHO.scheduler.step() for YRbF, Lwm5 in enumerate(YKHO.optimizer.param_groups): YKHO.lrs[YRbF] = Lwm5['lr']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXaa(qtWj):\n tspZ = aF2y * 0.1 ** (qtWj // (hzfl * 0.5)) * 0.1 ** (qtWj // (hzfl * 0.75))\n return tspZ", "def ZT_s(qtWj):\n tspZ = 0.001\n if qtWj > 180:\n tspZ *= 0.0005\n elif qtWj > 160:\n tspZ *= 0.001\n elif qtWj > 120:\n tspZ *= 0.01\n elif qtWj > 80:\n ...
[ "0.77847385", "0.76670074", "0.76423895", "0.76423895", "0.76423895", "0.76423895", "0.76047313", "0.7574088", "0.75406116", "0.753134", "0.7524865", "0.75063384", "0.7491736", "0.74604315", "0.74192005", "0.73771524", "0.73596483", "0.73521155", "0.7347699", "0.7335724", "0....
0.0
-1
Use this to do things like strip off EX at the end of the name, turn 'Bob' into 'Dark Confidant', etc.
def tfQR(YKHO, mWFP): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rXSE(mWFP):\n mWFP = mWFP.lower()\n mWFP = mWFP.replace('.', '')\n mWFP = mWFP.replace('-', '')\n mWFP = mWFP.replace(\"'\", '')\n return mWFP", "def pNkW(v7hv):\n ie3J = v7hv.find('(')\n if ie3J != -1:\n v7hv = v7hv[:ie3J]\n v7hv = v7hv.replace(',', ' ')\n v7hv = v7hv.repla...
[ "0.6861182", "0.68468434", "0.68080723", "0.67064315", "0.67064315", "0.67064315", "0.6674636", "0.6672139", "0.66402537", "0.6621842", "0.6604548", "0.659963", "0.65968686", "0.65703255", "0.65581053", "0.6545451", "0.6533998", "0.6511444", "0.64766306", "0.6454707", "0.6450...
0.0
-1
Return a scoped session (according to SQLAlchemy docs, this returns always the same object within a thread, and a different object in a different thread. Moreover, since we update the scopedsessionclass upon forking, also forks have different session objects.
def XexM(): if IjXH is None: KCHu = None else: KCHu = IjXH() return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KfiN():\n cuiw = oCsa(FJ3D(bind=eHpk))\n return cuiw", "def KfiN():\n return oCsa(FJ3D(autocommit=False, autoflush=False, bind=eHpk))", "def XexM():\n oCsa = _hSU()\n try:\n yield oCsa\n oCsa.commit()\n except Exception as e:\n oCsa.rollback()\n G9jH.error(str(...
[ "0.7187179", "0.71814144", "0.710347", "0.7078379", "0.7068919", "0.6859953", "0.67099005", "0.67088383", "0.6662891", "0.6648465", "0.6634474", "0.6613667", "0.6585746", "0.658351", "0.65781957", "0.65781957", "0.6575925", "0.6549415", "0.65426534", "0.65316164", "0.65285134...
0.7503224
0
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("\nHello! Let's explore some US bikeshare data!") j5sA = input('Which city would you like to explore new york city, chicago or washington? \n ').lower().strip() while j5sA not in ('new york city', 'chicago', 'washington'): j5sA = input('invalid city please enter a valid city \n ')....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.6672178", "0.65358925", "0.64600855", "0.6373334", "0.63493216", "0.6310637", "0.62873024", "0.6259576", "0.6230648", "0.6212208", "0.6205637", "0.6182021", "0.61714137", "0.6169872", "0.6159728", "0.61591697", "0.61540914", "0.6145264", "0.61325365", "0.61055607", "0.6103...
0.57750356
67
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time']) if x0eS != 'all': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.7889219", "0.78825...
0.797905
9
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() print('Most common month is ', jQ3Z['month'].mode()[0]) print('Most common day of week is ', jQ3Z['day_of_week'].mode()[0]) jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour print('Most common hour is ', jQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583...
0.7574127
22
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() print('Most commonly start station : ', jQ3Z['Start Station'].mode()[0]) print('Most commonly end station:', jQ3Z['End Station'].mode()[0]) jQ3Z['combination'] = jQ3Z['Start Station'] + ' ' + jQ3Z['End ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.71288455
60
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() print('Total travel time:', jQ3Z['Trip Duration'].sum()) print('Total mean travel time: ', jQ3Z['Trip Duration'].mean()) print('\nThis took %s seconds.' % (ITS7.time() - SWox)) print('-' * 40)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.7854893
27
Converts the given data frame into a list of lists. When the `row` paremeter is given with a value >= 0, only that row is extracted as list from the data frame.
def eK7y(jQ3Z: pandas.DataFrame, rdlD=-1) -> list: if jQ3Z is None: return [] if rdlD >= 0: ETu_ = [] for fvDH in range(0, 13): ETu_.append(jQ3Z.iat[rdlD, fvDH]) return ETu_ CksG = [] for rdlD in range(jQ3Z.shape[0]): CksG.append(eK7y(jQ3Z, row=rdlD))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pfsR(jQ3Z: pandas.DataFrame) -> list:\n return qQXR.loads(jQ3Z.to_json(orient='records'))", "def HfTe(nPrm, d6pt):\n return [zFiD[d6pt] for zFiD in nPrm]", "def NoU6(nPrm):\n return nPrm.tolist()", "def BNNj(Kiac, j5tF=False):\n dzye = []\n for zFiD in Kiac.geometry:\n Nqlg = []\n ...
[ "0.6662499", "0.6641174", "0.6313694", "0.6297723", "0.62273407", "0.6145791", "0.60353565", "0.60344374", "0.6024161", "0.60228693", "0.59896314", "0.59687847", "0.59476876", "0.5942627", "0.592644", "0.58992493", "0.5875752", "0.58308697", "0.58127946", "0.5726091", "0.5696...
0.83004636
0
basic test to facilitate db setup
def eUF7(YKHO): YKHO.assertEqual(YKHO.test_sample.sampleType, 'TUMOUR')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFTb(YKHO):\n NCls = _bE0()", "def FCbF(YKHO):\n NCls.create_all()", "def FCbF(YKHO):\n P4t4.config.from_object(GPtr['testing'])\n NCls.create_all()", "def FCbF(YKHO):\n YKHO.a = DDLl.dbconnection.DBConnect()", "def FCbF(YKHO):\n JawI()\n YKHO.client = i9zE(uPxI)", "def FCbF(YKHO...
[ "0.8709945", "0.81639904", "0.8133525", "0.80585164", "0.7992021", "0.79575616", "0.79575616", "0.79575616", "0.7955161", "0.79402524", "0.78764087", "0.78567004", "0.7828247", "0.78238297", "0.78132236", "0.7788099", "0.7788089", "0.77863306", "0.77846915", "0.7784647", "0.7...
0.0
-1
basic test to facilitate db setup
def v0IE(YKHO): YKHO.assertEqual(YKHO.test_sample.date, '2018-08-02 22:32:23')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFTb(YKHO):\n NCls = _bE0()", "def FCbF(YKHO):\n NCls.create_all()", "def FCbF(YKHO):\n P4t4.config.from_object(GPtr['testing'])\n NCls.create_all()", "def FCbF(YKHO):\n YKHO.a = DDLl.dbconnection.DBConnect()", "def FCbF(YKHO):\n JawI()\n YKHO.client = i9zE(uPxI)", "def FCbF(YKHO...
[ "0.8709945", "0.81639904", "0.8133525", "0.80585164", "0.7992021", "0.79575616", "0.79575616", "0.79575616", "0.7955161", "0.79402524", "0.78764087", "0.78567004", "0.7828247", "0.78238297", "0.78132236", "0.7788099", "0.7788089", "0.77863306", "0.77846915", "0.7784647", "0.7...
0.0
-1
basic test to facilitate db setup
def oP8M(YKHO): YKHO.assertEqual(YKHO.test_sample.quality, 'medium')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFTb(YKHO):\n NCls = _bE0()", "def FCbF(YKHO):\n NCls.create_all()", "def FCbF(YKHO):\n P4t4.config.from_object(GPtr['testing'])\n NCls.create_all()", "def FCbF(YKHO):\n YKHO.a = DDLl.dbconnection.DBConnect()", "def FCbF(YKHO):\n JawI()\n YKHO.client = i9zE(uPxI)", "def FCbF(YKHO...
[ "0.8709945", "0.81639904", "0.8133525", "0.80585164", "0.7992021", "0.79575616", "0.79575616", "0.79575616", "0.7955161", "0.79402524", "0.78764087", "0.78567004", "0.7828247", "0.78238297", "0.78132236", "0.7788099", "0.7788089", "0.77863306", "0.77846915", "0.7784647", "0.7...
0.0
-1
Instantiate the class with data. this class gets called from a PptxTable.
def FIMM(YKHO, nPrm): YKHO.data = nPrm YKHO.columns = mvUn(nPrm) YKHO.rows = qJ6w(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n PZpo.TTableRow_swiginit(YKHO, PZpo.new_TTableRow())", "def FIMM(YKHO, tyNF):\n YKHO.table = tyNF\n YKHO.client = YKHO.table.db.client\n YKHO.worksheet = YKHO.table.worksheet\n YKHO.worksheet_id = YKHO.table.worksheet_id\n YKHO.fields = YKHO.table.fields\n YKHO.row = None\n ...
[ "0.7175044", "0.7061784", "0.688019", "0.687335", "0.68206704", "0.68206704", "0.68206704", "0.68206704", "0.68206704", "0.68206704", "0.68206704", "0.68206704", "0.68206704", "0.68206704", "0.68206704", "0.6778853", "0.66937035", "0.6593775", "0.6545444", "0.6529477", "0.652...
0.7786698
0
Converges the keys for the n items received, performing the sum operation with all the values of the same key and returning a joined dictionary
def xM23(*DumB): XIcQ = dict() sjXb = set().union(*DumB) for H5ew in sjXb: XIcQ[H5ew] = sum([WKvO.get(H5ew, 0) for WKvO in DumB]) return XIcQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Ve2(FOzR: Dict[int, Tensor], HyjZ: Dict[int, Tensor]) -> cuzp[int, llWB]:\n for exwG in HyjZ:\n FOzR[exwG] += HyjZ[exwG]\n return FOzR", "def geDP(YKHO):\n cmPJ = {1: {2: {}, 3: {}}, 2: {4: {}, 6: {}}}\n n5sN = RcZu.reduce(lambda YAq3, H5ew, bGrB: YAq3 + H5ew, cmPJ, 0)\n YKHO.assertEqu...
[ "0.6865543", "0.650365", "0.6031485", "0.5964637", "0.5924674", "0.5908167", "0.5882371", "0.58400947", "0.58325106", "0.5811396", "0.57497364", "0.57354355", "0.5723935", "0.5708992", "0.568129", "0.5678631", "0.56552064", "0.5654967", "0.5622168", "0.5618621", "0.561248", ...
0.62753576
2
Given the path from the current working directory (cwd) to a root directory, and a path from that root directory to some file, derives the path from the cwd to that file.
def qpXS(tk5Y, pmON): return ENtY(gzes(tk5Y, ENtY(pmON)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _JVR():\n ...", "def qaEx(gIsw, pmON):\n return pmON.rstrip('\\\\/') + '/{0}'.format(gIsw) if pmON else Hy7s.getcwd() + '/{0}'.format(gIsw)", "def t_yv(jNha, pGQh, eHNT):\n vBWh = Hy7s.path.join(pGQh, eHNT)\n if not jNha:\n return vBWh\n if not vBWh.startswith(jNha):\n print('E...
[ "0.7066784", "0.6979399", "0.68085057", "0.6724433", "0.6708733", "0.66995543", "0.663998", "0.66332114", "0.6588345", "0.6575982", "0.652172", "0.643652", "0.6431836", "0.6407975", "0.6388555", "0.63809216", "0.6373353", "0.63663834", "0.6355308", "0.6333472", "0.632867", ...
0.77983445
0
Whether the given string is composed entirely of space characters.
def SA09(l5Ny): all([Z9rn.isspace() for Z9rn in l5Ny])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZezY(vIwR):\n ycBG = vIwR.split()\n return len(ycBG) > 1", "def B2ZZ(vIwR):\n if not isinstance(vIwR, SfON):\n print(str(vIwR) + ' (' + str(type(vIwR)) + ') is not a string!')\n return False\n R3Nt = False\n for hcXw in vIwR:\n R3Nt |= hcXw.isspace()\n return R3Nt", "...
[ "0.82716453", "0.7889526", "0.76030177", "0.757423", "0.75695306", "0.75018394", "0.7483149", "0.7222355", "0.71320814", "0.708367", "0.69815606", "0.68495876", "0.68402535", "0.67882246", "0.6773613", "0.6749679", "0.6746255", "0.66398174", "0.66205674", "0.6573165", "0.6555...
0.74663687
7
Returns the intent of the message, as defined by the Intent class
def zssN(tO9_): if ZbWC.search(Dibf.MAP_REGEX, tO9_.content) and x0hE.user.id in tO9_.raw_mentions: return FheU.MAP elif ZbWC.match(QRnd.KEY_REGEX, tO9_.content): return FheU.DIRECT else: return FheU.NONE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fw5l(YKHO) -> Vi07:\n pass", "def nVrR(YKHO, Ol8d: discord.Message, E2VF: Intent) -> h8nf[str]:\n pass", "def qhul(YKHO, Lo7B):\n pass", "def lX8O(Ol8d):\n Shb8 = Ol8d.data\n return FheU(Shb8.get('name'), Shb8.get('requires'), Shb8.get('at_least_one'), Shb8.get('optional'))", "def zssN(Y...
[ "0.7623119", "0.6905368", "0.6655187", "0.65414625", "0.63272935", "0.61630195", "0.61426914", "0.6030031", "0.5988024", "0.5958836", "0.5771847", "0.56992733", "0.5698487", "0.561783", "0.54841554", "0.5475818", "0.54735065", "0.5444824", "0.5429536", "0.5429536", "0.5413568...
0.72745353
1
Get the id of this map controller
def unpH(YKHO): if YKHO.mlat: return f'm{-YKHO.mlat}_{YKHO.mlng}' else: return f'{-YKHO.clat}_{YKHO.clng}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JqtQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'route_map_id')", "def JqtQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'route_map_id')", "def yRef(YKHO) -> str:\n return YKHO._depmap_id", "def mLJR(YKHO):\n return YKHO.session.request('id/')", "def unpH(YKHO):\n pass...
[ "0.72842723", "0.70707583", "0.6837728", "0.6825516", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228", "0.6735228...
0.0
-1
Perform stateful initialization before fitting. This function is for initialization that does not depend on the data, but still requires some processing and therefore should not happen in __init__. Examples include initialization of optimizers, construction of NeuralNetwork layers (if it can be done without knowledge o...
def uZYs(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kHAz(YKHO):\n YKHO.create_variables()\n YKHO.create_placeholders()\n YKHO.build_model()\n YKHO.reset_lr(None, True)\n YKHO.build_loss()\n YKHO.initialised = True", "def uIcm(YKHO):\n na1r.info('Initializing Model.')\n YKHO.model = YKHO.convert(df=YKHO.training_df)\n if YKHO.bootstr...
[ "0.76265585", "0.7314912", "0.720167", "0.70615774", "0.69451797", "0.691867", "0.68875957", "0.68585646", "0.6845803", "0.67859983", "0.67645854", "0.67483974", "0.6729417", "0.66961324", "0.66904867", "0.66830915", "0.66508514", "0.6648", "0.66455895", "0.66382176", "0.6632...
0.6731057
12
Return the init parameters for an attribute. This extends the ``get_params_for`` function from skorch to inject custom module parameters. This allows us to pass parameters that do not directly correspond to parameters of this estimator while also sticking to the scikitlearn estimator API. Overriding this function is pr...
def nnYy(YKHO, y0cW): NArs = super().get_params_for(y0cW) if y0cW == 'module': muwo = YKHO._get_extra_module_parameters() muwo.update(NArs) return muwo else: return NArs return NArs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U_sI(YKHO):\n UMV5 = super().getInitParams()\n UMV5['p'] = YKHO.p\n return UMV5", "def U_sI(YKHO):\n UMV5 = Y69N.getInitParams(YKHO)\n UMV5['strategy'] = YKHO.strategy\n UMV5['nPoints'] = YKHO.nPoints\n return UMV5", "def U_sI(YKHO):\n UMV5 = gDEm.getInitParams(YKHO)\n UMV5['p'] ...
[ "0.65362924", "0.6531523", "0.65000147", "0.65000147", "0.6471994", "0.6424887", "0.63971287", "0.6379458", "0.6364574", "0.63484323", "0.6333891", "0.6327582", "0.6262605", "0.62387484", "0.6233585", "0.61732525", "0.61732525", "0.6169874", "0.61388874", "0.6054147", "0.5940...
0.58375794
24
Returns the agents' neighbors from its environments.
def A_IW(YKHO, sEAN=None, Ayfi=1, **B2fa): if sEAN: if isinstance(sEAN, (list, tuple)): QUTX = [YKHO._find_env(_e0y) for _e0y in sEAN] else: return YKHO._find_env(sEAN).neighbors(YKHO, distance=Ayfi, **B2fa) elif len(YKHO.envs) == 0: return DASs() elif len(YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(YKHO):\n return YKHO._neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def A_IW(YKHO):\n return YKHO.mesh.neighbors()", "def A_IW(YKHO):\n ...
[ "0.7029478", "0.69849086", "0.69849086", "0.69849086", "0.69849086", "0.6956161", "0.6903547", "0.6894783", "0.67666906", "0.6735697", "0.6616413", "0.6603485", "0.65937454", "0.6580956", "0.65605927", "0.6545098", "0.6528773", "0.6499415", "0.6493673", "0.6465558", "0.634310...
0.7019928
1
Returns a deep copy of the Property instance. The clone attempts to
def i3ak(YKHO): def _9K6(BWXx): try: if hasattr(BWXx, 'clone'): BWXx.clone() except Exception: pass try: qQXR.loads(qQXR.dumps(BWXx)) except Exception: pass return BWXx yvT9 = KG2U() for G1Hx in Ccdr: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO):\n i3ak = super(KG2U, YKHO).clone()\n i3ak.fget = YKHO.fget\n i3ak.fset = YKHO.fset\n i3ak.cached = YKHO.cached\n return i3ak", "def jth9(YKHO):\n return C9U5.copy(YKHO)", "def i3ak(YKHO):\n return _VfD.ConversionProperties_clone(YKHO)", "def i3ak(YKHO, **hkS8):\n YEnM ...
[ "0.8501719", "0.7826852", "0.7311905", "0.7284388", "0.7240796", "0.72003424", "0.72003424", "0.72003424", "0.72003424", "0.71516335", "0.71035564", "0.706953", "0.7067994", "0.7059914", "0.6995763", "0.6975141", "0.6956973", "0.6949359", "0.6930484", "0.68937236", "0.688537"...
0.8122834
1
Create the organized store with items arranged by aisle uses a single list and a dictionary Assuming N items in inventory and G items in grocery_list Students don't implement it this way, I was having fun seeing how concise I could be (at the expense of understandability and efficiency)
def s3ho(CS5l, vvln, vtfo=set()): yv6U = sorted(CS5l, key=lambda WKvO: WKvO.aisle) hNCJ = [[] for LVAh in yv6U if not u38M(LVAh.aisle, vtfo)] [hNCJ[LVAh.aisle].append(LVAh.grocery) for LVAh in yv6U if LVAh.grocery in vvln] return hNCJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tYW7(rWx5, B6ie=True, L6AO=True, PA9h=False, hHld=None):\n Xzl2 = []\n ICP8 = 0\n HdiJ = []\n xJmm = {}\n for HQgd in rWx5['inventory']:\n if B6ie and M45m(rWx5, HQgd):\n HdiJ.append(HQgd)\n if L6AO:\n Ghgm = kJWD(rWx5, HQgd)\n if 'storing' in Ghgm:...
[ "0.6024047", "0.5998682", "0.5844901", "0.5823991", "0.56893134", "0.5671859", "0.55562484", "0.5544263", "0.5521425", "0.5519689", "0.5516972", "0.5503798", "0.54968417", "0.54603326", "0.5442683", "0.5417788", "0.5361586", "0.5347583", "0.53425723", "0.5332526", "0.5311254"...
0.7104384
0
A hook to the home page Context
def kZiy(QePW): rPXJ = 'index.html' return _1tc(QePW, rPXJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(YKHO, *qIxc, **B2fa):\n pass", "def bIYZ(YKHO, khtY, QpfX):\n YKHO.page = 'HOME'\n return {'FINISHED'}", "def kZiy(QpfX, QePW):\n return {}", "def kZiy(QePW):\n return QpfX()", "def kZiy(QePW):\n return SGJU('home.html', {}, K1Ja(QePW))", "def kZiy() -> ImMB:\n return vja_()...
[ "0.73858535", "0.71361005", "0.6944438", "0.66858155", "0.6647531", "0.65809596", "0.6568705", "0.64961594", "0.649494", "0.6463605", "0.64530367", "0.64331245", "0.6420558", "0.6402942", "0.6382065", "0.63791776", "0.6376593", "0.6370196", "0.6330374", "0.6319156", "0.631630...
0.0
-1
Returns an iterator over all words in "text"
def PuKl(l5Ny: Text): V22M = Dhdw.word_tokenize(l5Ny) return (yzQ0.lower().strip() for yzQ0 in V22M if Q5TB.match(yzQ0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K0sM(YKHO):\n njyT = '\\\\b\\\\w+\\\\b'\n for GIN8 in ZbWC.findall(njyT, YKHO.text):\n yield GIN8", "def l4Z4(l5Ny):\n return ZbWC.compile('\\\\w+').findall(l5Ny)", "def V22M(YKHO, l5Ny):\n return ZbWC.findall('\\\\w+', l5Ny)", "def TqNK(YKHO, l5Ny):\n for kUBT in YKHO.word_pattern....
[ "0.7876382", "0.77580315", "0.77133614", "0.77027535", "0.722049", "0.70725226", "0.7047197", "0.70101225", "0.67893445", "0.6782731", "0.6749469", "0.6733867", "0.6719985", "0.66881514", "0.66686654", "0.6655805", "0.6610849", "0.6587802", "0.6580478", "0.65765685", "0.65634...
0.64756715
27
Returns a list of tuples with hashtags and counts
def K21B(YKHO, qXU1, Phsf): return YKHO.session.query(grFq.text).filter("text like '%#%'").filter(grFq.created_at > qXU1).filter(grFq.created_at < Phsf).all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f636(aWDa):\n asgQ = mBkc()\n Ctck = mBkc()\n J7UI = mBkc()\n mXDZ = ZbWC.compile(\"[^#@\\\\w'-]+\")\n for a1PO in aWDa:\n V22M = mXDZ.split(a1PO.message)\n for GIN8 in V22M:\n if GIN8 and (not GIN8.startswith('-')):\n if GIN8.startswith('#'):\n ...
[ "0.7285111", "0.7012925", "0.68448496", "0.6812783", "0.6778561", "0.6395302", "0.6285859", "0.623535", "0.62299263", "0.6222173", "0.6209409", "0.620047", "0.6192568", "0.6163961", "0.6100687", "0.60955125", "0.6074586", "0.6063243", "0.6040972", "0.6012963", "0.5990756", ...
0.0
-1
Returns a list of tuples with hashtags and counts
def BvFW(YKHO, qXU1, Phsf): return YKHO.session.query(grFq.text).filter(grFq.created_at > qXU1).filter(grFq.created_at < Phsf).all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f636(aWDa):\n asgQ = mBkc()\n Ctck = mBkc()\n J7UI = mBkc()\n mXDZ = ZbWC.compile(\"[^#@\\\\w'-]+\")\n for a1PO in aWDa:\n V22M = mXDZ.split(a1PO.message)\n for GIN8 in V22M:\n if GIN8 and (not GIN8.startswith('-')):\n if GIN8.startswith('#'):\n ...
[ "0.7285111", "0.7012925", "0.68448496", "0.6812783", "0.6778561", "0.6395302", "0.6285859", "0.623535", "0.62299263", "0.6222173", "0.6209409", "0.620047", "0.6192568", "0.6163961", "0.6100687", "0.60955125", "0.6074586", "0.6063243", "0.6040972", "0.6012963", "0.5990756", ...
0.0
-1
Calculate the Hamming distance between two bit strings
def F4DB(j93S, Nqp_): assert len(j93S) == len(Nqp_) return sum((dg7v != iYf1 for dg7v, iYf1 in zip(j93S, Nqp_)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_DB(lULz, ChBB):\n if len(lULz) != len(ChBB):\n raise ValueError('Length of input1 and input2 are not equal.')\n lULz = Joh0(wD35(lULz))\n ChBB = Joh0(wD35(ChBB))\n hlel = EEU7(lULz, ChBB)\n Ayfi = 0\n for YB8B in hlel:\n for YRbF in range(8):\n jBIq = 1 << YRbF\n ...
[ "0.86581886", "0.8609805", "0.83848983", "0.8360063", "0.83254594", "0.8282518", "0.81959116", "0.815917", "0.8092042", "0.8089088", "0.80491406", "0.8044223", "0.8043047", "0.8019958", "0.8018021", "0.8009184", "0.7942804", "0.7872873", "0.782325", "0.77714366", "0.77687335"...
0.7611312
23
Bool, true if branch is the default branch for the project.
def WmM4(YKHO) -> bool: return qe4Y.get(YKHO, 'default')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XSrR(YKHO) -> str:\n return qe4Y.get(YKHO, 'default_branch')", "def gsc9(srZT):\n if srZT in txrA:\n return True\n return False", "def QvKl(YKHO, FzrA):\n return FzrA.startswith('refs/heads/') or FzrA.startswith('refs/remotes/')", "def ZVS0(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO...
[ "0.6986105", "0.693015", "0.68578935", "0.66695845", "0.6556435", "0.65081894", "0.6494147", "0.6494147", "0.6494147", "0.6457432", "0.6409059", "0.6338145", "0.6326562", "0.6321522", "0.6258638", "0.6242325", "0.6227051", "0.6227051", "0.6227051", "0.6227051", "0.6227051", ...
0.63698107
11
Bool, true if the branch has been merged into it's parent.
def XIcQ(YKHO) -> bool: return qe4Y.get(YKHO, 'merged')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hdkC(F_G6, _AKB):\n try:\n Yn3K.check_call(['git', 'merge-base', '--is-ancestor', F_G6, _AKB])\n return True\n except Yn3K.CalledProcessError:\n return False", "def kgXq(YKHO):\n return YKHO.parent != None", "def BHsn(YKHO):\n return YKHO.get_data('state') == YKHO.STATE_MER...
[ "0.7075676", "0.6833406", "0.67890143", "0.6764371", "0.6726826", "0.66487074", "0.6493714", "0.6418102", "0.6346954", "0.6315968", "0.6226936", "0.61832917", "0.616234", "0.6160166", "0.61332786", "0.611147", "0.6098897", "0.60797226", "0.6055989", "0.60341156", "0.6023276",...
0.68772745
1
Tests for class `RegionDimensionsSphere`.
def bhhW(YKHO): RxaA = A2GK.RegionDimensionsSphere() KNVe = 4 YKHO.assertEquals(KNVe, len(RxaA._keys)) zFiD = '500.000000 500.000000 300.000000 300.000000' RxaA.extractFromLineOldVersion(zFiD) YKHO.assertEquals(500.0, RxaA.positionX) YKHO.assertEquals(500.0, RxaA.positionY) YKHO.assertEq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neC0(YKHO):\n MCGS = hCWy('sphere', YKHO.dimension)\n YKHO.assertEqual(MCGS(YKHO.array), 0.0)", "def sBM3(YKHO):\n H4yH = L6OI.SphereSelection(GPal, radius=10)\n YKHO.assertEqual(H4yH.n, 9)", "def B6og(YKHO):\n H4yH = L6OI.SphereSelection(GPal, origin=[1, 1, 1])\n YKHO.assertEqual(H4yH.n,...
[ "0.7409547", "0.73903996", "0.7046658", "0.69355893", "0.68253917", "0.6764054", "0.67381215", "0.6562068", "0.62761146", "0.6246008", "0.6185566", "0.6173907", "0.61715746", "0.61471164", "0.6050073", "0.5990708", "0.59559196", "0.59052056", "0.5898389", "0.5895007", "0.5891...
0.6216632
10
Tests for class `RegionDimensionsSphere`.
def GVJ_(YKHO): RxaA = A2GK.RegionDimensionsSphere() KNVe = 4 YKHO.assertEquals(KNVe, len(RxaA._keys)) zFiD = 'RegionParameters=500.000000 500.000000 300.000000 300.000000' RxaA.extractFromLinesWithKey(zFiD) YKHO.assertEquals(500.0, RxaA.positionX) YKHO.assertEquals(500.0, RxaA.positionY) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neC0(YKHO):\n MCGS = hCWy('sphere', YKHO.dimension)\n YKHO.assertEqual(MCGS(YKHO.array), 0.0)", "def sBM3(YKHO):\n H4yH = L6OI.SphereSelection(GPal, radius=10)\n YKHO.assertEqual(H4yH.n, 9)", "def B6og(YKHO):\n H4yH = L6OI.SphereSelection(GPal, origin=[1, 1, 1])\n YKHO.assertEqual(H4yH.n,...
[ "0.7409547", "0.73903996", "0.7046658", "0.69355893", "0.68253917", "0.6764054", "0.67381215", "0.62761146", "0.6246008", "0.6216632", "0.6185566", "0.6173907", "0.61715746", "0.61471164", "0.6050073", "0.5990708", "0.59559196", "0.59052056", "0.5898389", "0.5895007", "0.5891...
0.6562068
7
Tests for class `RegionDimensionsSphere`.
def ZrGW(YKHO): CxAt = '500.000000 500.000000 300.000000 300.000000' RxaA = A2GK.RegionDimensionsSphere() RxaA.positionX = 500.0 RxaA.positionY = 500.0 RxaA.positionZ = 300.0 RxaA.radius = 300.0 zFiD = RxaA.createLineOldVersion() YKHO.assertEquals(CxAt, zFiD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neC0(YKHO):\n MCGS = hCWy('sphere', YKHO.dimension)\n YKHO.assertEqual(MCGS(YKHO.array), 0.0)", "def sBM3(YKHO):\n H4yH = L6OI.SphereSelection(GPal, radius=10)\n YKHO.assertEqual(H4yH.n, 9)", "def B6og(YKHO):\n H4yH = L6OI.SphereSelection(GPal, origin=[1, 1, 1])\n YKHO.assertEqual(H4yH.n,...
[ "0.7409547", "0.73903996", "0.7046658", "0.69355893", "0.68253917", "0.6764054", "0.67381215", "0.6562068", "0.62761146", "0.6246008", "0.6216632", "0.6185566", "0.6173907", "0.61715746", "0.61471164", "0.6050073", "0.5990708", "0.59559196", "0.59052056", "0.5898389", "0.5895...
0.53342104
72
Tests for class `RegionDimensionsSphere`.
def ItPp(YKHO): CxAt = 'RegionParameters=500.000000 500.000000 300.000000 300.000000' RxaA = A2GK.RegionDimensionsSphere() RxaA.positionX = 500.0 RxaA.positionY = 500.0 RxaA.positionZ = 300.0 RxaA.radius = 300.0 zFiD = RxaA.createLineWithKey() YKHO.assertEquals(CxAt, zFiD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neC0(YKHO):\n MCGS = hCWy('sphere', YKHO.dimension)\n YKHO.assertEqual(MCGS(YKHO.array), 0.0)", "def sBM3(YKHO):\n H4yH = L6OI.SphereSelection(GPal, radius=10)\n YKHO.assertEqual(H4yH.n, 9)", "def B6og(YKHO):\n H4yH = L6OI.SphereSelection(GPal, origin=[1, 1, 1])\n YKHO.assertEqual(H4yH.n,...
[ "0.7409547", "0.73903996", "0.7046658", "0.69355893", "0.68253917", "0.6764054", "0.67381215", "0.6562068", "0.62761146", "0.6246008", "0.6216632", "0.6185566", "0.6173907", "0.61715746", "0.61471164", "0.6050073", "0.5990708", "0.59559196", "0.59052056", "0.5898389", "0.5895...
0.58479017
25
Initialize with real y, predicted y, and probabilities y_proba should be a single column vector.
def FIMM(YKHO, M_NZ, lUHp, aMgO, BNgt): YKHO.clf = M_NZ YKHO.y_real = lUHp YKHO.y_pred = aMgO YKHO.y_proba = BNgt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR85(YKHO, Z5wO):\n if YKHO._fitted is False:\n raise WkL7\n if Z5wO.shape[1] != YKHO.theta.shape[0]:\n Z5wO = oyIN.hstack((oyIN.ones((Z5wO.shape[0], 1)), Z5wO))\n BNgt = YKHO._sigmoid(Z5wO @ YKHO.theta)\n return BNgt", "def KR85(YKHO):\n ...", "def KR85(YKHO, JTkl, PJWX=True):...
[ "0.69407153", "0.6790847", "0.67209333", "0.6692591", "0.66359365", "0.6487533", "0.644551", "0.6431803", "0.6424399", "0.63853794", "0.63811916", "0.6367134", "0.63636446", "0.6331281", "0.63171285", "0.62952566", "0.62726724", "0.62540257", "0.62525856", "0.61847705", "0.61...
0.6847743
1
The test duration in seconds.
def WbTE(YKHO): YKHO._duration = YKHO.lib.iperf_get_test_duration(YKHO._test) return YKHO._duration
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbTE(YKHO) -> int:\n return 0", "def WbTE(YKHO):\n pass", "def WbTE(YKHO):\n pass", "def EdTY(YKHO):\n try:\n if YKHO.is_skipped:\n return '00:00'\n assert YKHO.start_time\n assert YKHO.stop_time\n if YKHO.stop_time < YKHO.start_time:\n return...
[ "0.7883373", "0.7750263", "0.7750263", "0.7678744", "0.7383673", "0.7330992", "0.7328771", "0.7282695", "0.7278623", "0.72580075", "0.7154214", "0.7146179", "0.7112877", "0.71073246", "0.708255", "0.707991", "0.7078312", "0.7054944", "0.7027199", "0.69971526", "0.6994351", ...
0.8444397
0
GetString(n) > String Returns the label of the item with the given index.
def tsMp(YKHO, exwG): return YKHO.GetString(exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mKFv(YKHO, d6pt):\n return YKHO.choices[d6pt].GetLabel()", "def DeTJ(YKHO, d6pt, H5ew='Name'):\n return eval(YKHO.names[H5ew][d6pt])", "def xvgy(YKHO, d6pt):\n assert YKHO.labels is not None, 'Labels not processed'\n return YKHO.labels[d6pt]", "def xvgy(YKHO, d6pt):\n raise NotImplementedE...
[ "0.757612", "0.72174156", "0.671362", "0.66893935", "0.6440017", "0.6387719", "0.6372429", "0.6310176", "0.6171957", "0.6150542", "0.6073155", "0.5996782", "0.59937876", "0.5969363", "0.59649146", "0.59624845", "0.5953992", "0.5946173", "0.59319806", "0.59280974", "0.5923146"...
0.61306494
10
Return a list of all primes less than n
def KwQv(exwG): rPed = [False, False, True] + [True, False] * (exwG / 2) XP5J = 3 while XP5J * XP5J <= exwG: if rPed[XP5J]: Csk6 = XP5J * XP5J while Csk6 <= exwG: rPed[Csk6] = False Csk6 += XP5J XP5J += 2 return [YRbF for YRbF in ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rPed(exwG):\n return [YRbF for YRbF in Ni9Y(1, exwG + 1) if kU5Q(YRbF)]", "def _a2T(exwG):\n JscZ = []\n for YRbF in range(exwG):\n if T1qg(YRbF):\n JscZ.append(YRbF)\n return JscZ", "def VntY(exwG):\n if exwG <= 1:\n return []\n OMrD = [2]\n for YRbF in range(...
[ "0.86042696", "0.8369213", "0.82889706", "0.8250212", "0.81855386", "0.81599945", "0.8057329", "0.805507", "0.8004981", "0.7979233", "0.7955313", "0.78772587", "0.78654575", "0.78598934", "0.78583056", "0.7814833", "0.78013843", "0.7751896", "0.7719229", "0.76897174", "0.7654...
0.7220014
50
Returns the total for the given tenant.
def h4aS(YKHO, **B2fa): na1r.warning('WARNING: /v1/report/total/ endpoint is deprecated, please use /v1/report/summary instead.') WfsK = ['begin', 'end', 'tenant_id', 'service', 'all_tenants'] bD7m = YKHO.get_url('total', B2fa, WfsK) return YKHO.api_client.get(bD7m).json()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZ35(YKHO):\n wjRY = 0.0\n for m3Nh in YKHO.customers:\n wjRY = wjRY + m3Nh.get_total()\n return wjRY", "def qBlJ(YKHO):\n return sum(YKHO.paid)", "def h4aS(YKHO):\n NR94 = 5\n wjRY = (1 + int(YKHO.tax)) * int(YKHO.qty) * NR94\n return wjRY", "def xG7B(YKHO):\n return YKHO....
[ "0.62531126", "0.6162233", "0.61108077", "0.60956305", "0.6016143", "0.5912477", "0.5870869", "0.5847878", "0.5786993", "0.57543814", "0.57539463", "0.5750175", "0.57361287", "0.57264996", "0.5717916", "0.5709568", "0.5695177", "0.5694699", "0.5693841", "0.56890893", "0.56671...
0.6835537
0
Get the rightmost subtree. Returns Max value in tree
def aohu(YKHO): if YKHO.right is None: return YKHO.data return YKHO.right.getMaxValue()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqD_(YKHO):\n if YKHO.root:\n YKHO.max_val = YKHO.root.value\n else:\n return 'No tree found'\n\n def _gRY(tk5Y):\n if tk5Y.left:\n _gRY(tk5Y.left)\n if tk5Y.right:\n _gRY(tk5Y.right)\n if YKHO.max_val < tk5Y.value:\n YKHO.max_val = t...
[ "0.8557654", "0.8473722", "0.82796377", "0.8257174", "0.825662", "0.81699663", "0.8079723", "0.799689", "0.7985184", "0.7966924", "0.79573554", "0.7938735", "0.79376626", "0.7892704", "0.7860829", "0.7827642", "0.77914673", "0.7748221", "0.7746624", "0.7744519", "0.7728751", ...
0.77943695
16
Get the leftmost subtree. Returns Min value in tree.
def XaWZ(YKHO): if YKHO.left is None: return YKHO.data return YKHO.left.getMinValue()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rr1k(YKHO):\n ZbOB = YKHO\n while ZbOB.hasLeftChild():\n ZbOB = ZbOB.leftChild\n return ZbOB", "def ohV5(YKHO):\n if YKHO.left:\n return YKHO.left.get_min()\n return YKHO.value", "def min(YKHO):\n Q6kx = YKHO\n while Q6kx.left:\n Q6kx = Q6kx.left\n return Q6kx",...
[ "0.82564294", "0.823352", "0.81775767", "0.80998373", "0.8041522", "0.8033412", "0.80095875", "0.7989185", "0.7925415", "0.7885453", "0.77749646", "0.7765609", "0.77551806", "0.7677062", "0.7657029", "0.76159257", "0.7600756", "0.76004016", "0.7528457", "0.7445298", "0.744504...
0.8080847
4
Returns the angle from point_1 on a circle to point_2 on a circle. Circle is centered at the origin. Angle is positive if point_2 is counterclockwise from point_1 Angle is negative if point_2 is clockwise from point_1
def xNhS(YKHO, fJfP, hWOy): bS2e = epAf.atan2(fJfP.y, fJfP.x) bRDp = epAf.atan2(hWOy.y, hWOy.x) return bLm4.shortest_angular_distance(bS2e, bRDp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YylR(lCHq, ANJu):\n return vwZf(ANJu.y() - lCHq.y(), ANJu.x() - lCHq.x())", "def lyYO(lCHq, ANJu):\n tzp6 = ANJu[0] - lCHq[0]\n cMa8 = ANJu[1] - lCHq[1]\n if cMa8 == 0:\n HEbx = oyIN.sqrt(cMa8 ** 2 + tzp6 ** 2)\n q7In = oyIN.arcsin(tzp6 / HEbx)\n elif tzp6 == 0:\n HEbx = o...
[ "0.80957276", "0.7915116", "0.78434145", "0.7817022", "0.76840395", "0.7630344", "0.75476015", "0.7397519", "0.7338723", "0.7332764", "0.72714704", "0.7244359", "0.7223806", "0.72077715", "0.7201296", "0.72001654", "0.7196317", "0.71613544", "0.714921", "0.7147866", "0.713809...
0.73542243
8
Sort tags in view from left to right (by their x position in the camera frame). Removes/ignores tags close enough in the camera to likely be a block in the claw.
def Wwd6(YKHO, SVFM, id=0): b7cU = 0.22 EjpA = [] for xfCv in SVFM: if xfCv.id == id and xfCv.pose.pose.position.z > b7cU: EjpA.append(xfCv) return sorted(EjpA, key=lambda WKvO: WKvO.pose.pose.position.x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ydpe(YKHO, SVFM):\n EjpA = []\n for xfCv in SVFM:\n if xfCv.id == 256:\n EjpA.append(xfCv)\n return sorted(EjpA, key=lambda WKvO: abs(WKvO.pose.pose.position.x))", "def BA9O(YKHO):\n lY0q = []\n QZcN = []\n q9mE = []\n for YRbF in range(len(YKHO.contigs)):\n Z9rn...
[ "0.5948881", "0.59211606", "0.5505296", "0.54796255", "0.5224809", "0.51409453", "0.51296383", "0.51185745", "0.507329", "0.5059373", "0.50522685", "0.5020326", "0.49868953", "0.4957405", "0.4956648", "0.4945304", "0.49099445", "0.49099445", "0.49007258", "0.48856413", "0.488...
0.68595314
0
Turn right, then left, then back to start heading. Helps to clear and mark the map if in a difficult spot.
def Y7Bk(YKHO, YylR, PrmE=ArfL.IS_SONAR, J8kB=True, X9mD=False): AO5v = YKHO.swarmie.get_odom_location().get_pose().theta PrmE |= ArfL.SONAR_BLOCK try: YKHO.swarmie.set_heading(AO5v - YylR, ignore=PrmE) YKHO.swarmie.set_heading(AO5v + YylR, ignore=PrmE) if J8kB: YKHO.swar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ysM(YKHO, K3af):\n if K3af:\n YKHO.heading.rotate(1)\n else:\n YKHO.heading.rotate(-1)", "def _tIi(YKHO):\n if YKHO.head.heading() != pY1r and YKHO.last_direction != pY1r:\n YKHO.head.setheading(Ny9c)", "def LFlW(YKHO):\n if YKHO.head.heading() != Ny9c and YKHO.last_direct...
[ "0.68991685", "0.68686086", "0.6739887", "0.67155945", "0.66476077", "0.65854007", "0.65796304", "0.65705436", "0.65462583", "0.65273607", "0.65066653", "0.6468951", "0.64657867", "0.6435298", "0.64075226", "0.6393533", "0.6376692", "0.6362955", "0.63578445", "0.6320066", "0....
0.0
-1
Shoot a ray from an origin point in a given direction and find the first place it intersects a mesh, if anywhere.
def cf6j(rR8k: jnp.ndarray, hLRM: jnp.ndarray, XSoh: jnp.ndarray): fMy9, FBNX, TaUL = yOcR.vmap(lambda a1PO: MWcx(a1PO, hLRM, XSoh))(rR8k) or8S = oLG2.argmin(oLG2.where(fMy9, TaUL, oLG2.inf)) return (oLG2.any(fMy9), FBNX[or8S], J91l(rR8k[or8S]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P10m(YKHO, spHt):\n q7In = 45\n C7Ls = 512\n XcU5 = 512\n k0lF = YKHO.origin\n tjUW = PvyL(XcU5, k0lF.y, k0lF.z)\n Nq1b = PvyL(tjUW.x, int(C7Ls * epAf.sin(q7In * epAf.pi / 180)), int(C7Ls * epAf.cos(epAf.pi * q7In / 180)))\n lWPh = PvyL(k0lF.x, int(C7Ls * epAf.sin(q7In * epAf.pi / 180)), i...
[ "0.6328977", "0.6311272", "0.63029695", "0.61903316", "0.6177152", "0.61375874", "0.60943496", "0.60207874", "0.59388417", "0.5893612", "0.58412987", "0.57528913", "0.5724966", "0.5704529", "0.5689389", "0.567179", "0.56663096", "0.56171393", "0.5606271", "0.5578516", "0.5575...
0.7033451
0
Given a file path, it returns the parent directory of that file.
def siB6(nUeQ): return Hy7s.path.dirname(nUeQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmqI(pmON):\n return Hy7s.path.dirname(pmON)", "def su__(pmON):\n return SOoY(Hy7s.path.dirname(pmON))", "def gmqI(pmON):\n return Hy7s.path.abspath(Hy7s.path.join(pmON, Hy7s.pardir))", "def PAwq(pmON):\n _AKB = Hy7s.path.dirname(pmON)\n try:\n IE9V(_AKB)\n except:\n _AKB ...
[ "0.8710049", "0.8671962", "0.84711546", "0.84562033", "0.81613225", "0.8111954", "0.7666267", "0.76561385", "0.7514874", "0.7380682", "0.7348119", "0.7208113", "0.70832604", "0.70509714", "0.69705814", "0.6908172", "0.6890457", "0.6850834", "0.67569923", "0.6633027", "0.66175...
0.6757264
18
Takes a file path and returns the contents of that file as a string.
def z2Cs(nUeQ): with open(nUeQ, 'r') as lcLY: return lcLY.read()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RimK(WJHQ):\n with open(WJHQ, 'r') as eHNT:\n hGN5 = eHNT.read()\n return hGN5", "def Nwr9(pmON):\n eHNT = open(pmON, 'r')\n vIwR = eHNT.read()\n eHNT.close()\n return vIwR", "def wQpL(VqRE):\n with open(VqRE, 'r') as G6EG:\n kGys = G6EG.read()\n return kGys", "def _...
[ "0.83179075", "0.8151047", "0.8134509", "0.8105471", "0.80002606", "0.79376936", "0.78909034", "0.78593415", "0.78361714", "0.7832416", "0.78220797", "0.7774392", "0.77467716", "0.7731549", "0.77003115", "0.76696384", "0.7668756", "0.76412374", "0.76294947", "0.75795716", "0....
0.77455384
13
Get the length of the dataset.
def szAg(YKHO): return len(YKHO.list_sample)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO) -> int:\n return len(YKHO.data)", "def szAg(YKHO):\n return YKHO._dataset.size(dirs=YKHO._dirs)", "def nWMf(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", ...
[ "0.81695807", "0.8132053", "0.8120344", "0.8113011", "0.8113011", "0.8113011", "0.8095", "0.8090324", "0.8017467", "0.79916984", "0.79916984", "0.79916984", "0.79916984", "0.7965216", "0.7940359", "0.7929157", "0.79088104", "0.78975385", "0.78951997", "0.7878114", "0.78751826...
0.0
-1
Displays a custom error page when returning a 404 error
def Ni4Z(P1dF): return (TvZl('/error.html'), 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF():\n return TvZl('404.html')", "def o3cf(tTpl):\n return (TvZl('errors/404.html'), 404)", "def RQdI(P1dF):\n return '404 Error'", "def b3Ke(P1dF):\n return (TvZl('errors/404.html'), 404)", "def m7kB():\n return (TvZl('errors/404.html'), 404)", "def RQdI(P1dF):\n return 'Bummer,...
[ "0.86492556", "0.85913444", "0.8580295", "0.854521", "0.85064226", "0.8480788", "0.8473789", "0.84674686", "0.8443625", "0.8435984", "0.8434157", "0.8430222", "0.84054524", "0.8401293", "0.8397243", "0.8393867", "0.839259", "0.839259", "0.83886766", "0.83642703", "0.83563656"...
0.8704343
0
Displays a custom error page when returning a 404 error
def b6Nr(P1dF): return (TvZl('/error401.html'), 401)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ni4Z(P1dF):\n return (TvZl('/error.html'), 404)", "def P1dF():\n return TvZl('404.html')", "def o3cf(tTpl):\n return (TvZl('errors/404.html'), 404)", "def RQdI(P1dF):\n return '404 Error'", "def b3Ke(P1dF):\n return (TvZl('errors/404.html'), 404)", "def m7kB():\n return (TvZl('error...
[ "0.8704343", "0.86492556", "0.85913444", "0.8580295", "0.854521", "0.85064226", "0.8480788", "0.8473789", "0.84674686", "0.8443625", "0.8435984", "0.8434157", "0.8430222", "0.84054524", "0.8401293", "0.8397243", "0.8393867", "0.839259", "0.839259", "0.83886766", "0.83642703",...
0.0
-1
Returns the lengths of all edges in a triangulation.
def xtsr(LTIa: np.ndarray, EmSm: np.ndarray) -> oyIN.ndarray: mC4V, bGrB = zXh1(EmSm) return oyIN.linalg.norm(oyIN.diff(LTIa[mC4V], axis=1), axis=2).squeeze()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v0NU(YKHO, KWJt='boundary'):\n assert YKHO.points is not None\n assert YKHO.element_type is not None\n Fbjb = None\n if KWJt == 'boundary':\n if YKHO.edges is None:\n YKHO.GetBoundaryEdges()\n BQWW = YKHO.points[YKHO.edges[:, :2], :]\n Fbjb = oyIN.linalg.norm(BQWW[:,...
[ "0.73203355", "0.71601605", "0.7129149", "0.7090104", "0.6865497", "0.68333477", "0.6777454", "0.67209166", "0.6678222", "0.66413075", "0.661965", "0.65952957", "0.65821904", "0.65669715", "0.6552667", "0.65479076", "0.6495845", "0.640232", "0.6400356", "0.63793975", "0.63614...
0.6831387
6
Calculates the area of each triangle.
def AJgg(LTIa: np.ndarray, EmSm: np.ndarray) -> oyIN.ndarray: M_DK = LTIa[EmSm] KCHu = M_DK[:, [2, 0]] - M_DK[:, [1, 2]] jzdc = oyIN.linalg.det(KCHu) return jzdc * 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(EmSm):\n BA7i = T97B(EmSm, XTiz.roll(EmSm, 1, axis=1))\n assert XTiz.all(BA7i >= 0.0)\n KCHu = XTiz.sum(BA7i, axis=1) / 2.0\n Lx3t = Uyfy(KCHu / 2.0) * XTiz.prod(Uyfy((KCHu[:, XTiz.newaxis] - BA7i) / 2.0), axis=1)\n try:\n return 4.0 * Za1I(PZyS(Lx3t))\n except FloatingPointError:...
[ "0.8150476", "0.7862507", "0.7856542", "0.7823651", "0.7814551", "0.7719481", "0.7691595", "0.76806235", "0.7627593", "0.7575206", "0.7548901", "0.75445074", "0.7516754", "0.7482324", "0.7421109", "0.7374413", "0.72843087", "0.72584736", "0.7204859", "0.71738887", "0.7155678"...
0.61381984
100
Checks whether `node_a` is an instance of the same type as `node_b`, or if either `node_a`/`node_b` is a type and the other is an instance of that type. This is used in subgraph matching to allow the subgraph pattern to be either a graph of instantiated nodes, or node types.
def juuy(n0tA, THyE): if isinstance(THyE['node'], type): return issubclass(type(n0tA['node']), THyE['node']) elif isinstance(n0tA['node'], type): return issubclass(type(THyE['node']), n0tA['node']) elif isinstance(THyE['node'], e0kl.PatternNode): return isinstance(n0tA['node'], THyE[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILiT(a0GJ, TLv5):\n return isinstance(a0GJ, type(TLv5))", "def Q7BH(n30M, WJut):\n if isinstance(WJut['node'], e0kl.PatternNode):\n return isinstance(n30M['node'], WJut['node'].node)\n return isinstance(n30M['node'], type(WJut['node']))", "def iIoa(iXsv, R1nJ):\n return isinstance(iXsv, ...
[ "0.7246985", "0.6875418", "0.6746393", "0.66509914", "0.6645413", "0.64153445", "0.63544613", "0.6354311", "0.6345268", "0.6345268", "0.6300346", "0.6269791", "0.6268452", "0.6268452", "0.626733", "0.62422216", "0.62378544", "0.623251", "0.6231513", "0.62188184", "0.62145805"...
0.8616503
0
The name given to the new Role.
def UXqs(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'label')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q28X(YKHO):\n YKHO.name = YKHO.role_profile", "def FIMM(YKHO, LmAn):\n YKHO.name = LmAn", "def LmAn(YKHO) -> str:\n assert YKHO.data is not None\n return YKHO.data['role']['name']", "def W0tD(YKHO):\n return '-'.join(YKHO._name_parts + [YKHO.role.name, YKHO.scenario.name])", "def hqua(YK...
[ "0.76014084", "0.7298675", "0.7211555", "0.7203234", "0.6998517", "0.68832964", "0.6824219", "0.6820696", "0.6746396", "0.66966844", "0.6526202", "0.65143645", "0.6481994", "0.64733917", "0.64610755", "0.63807106", "0.6351706", "0.6329996", "0.6323037", "0.63158435", "0.63076...
0.0
-1
The name given to the new Role.
def UXqs(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'label')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q28X(YKHO):\n YKHO.name = YKHO.role_profile", "def FIMM(YKHO, LmAn):\n YKHO.name = LmAn", "def LmAn(YKHO) -> str:\n assert YKHO.data is not None\n return YKHO.data['role']['name']", "def W0tD(YKHO):\n return '-'.join(YKHO._name_parts + [YKHO.role.name, YKHO.scenario.name])", "def hqua(YK...
[ "0.76014084", "0.7298675", "0.7211555", "0.7203234", "0.6998517", "0.68832964", "0.6824219", "0.6820696", "0.6746396", "0.66966844", "0.6526202", "0.65143645", "0.6481994", "0.64733917", "0.64610755", "0.63807106", "0.6351706", "0.6329996", "0.6323037", "0.63158435", "0.63076...
0.0
-1
The name given to the new Role.
def UXqs(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'label')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q28X(YKHO):\n YKHO.name = YKHO.role_profile", "def FIMM(YKHO, LmAn):\n YKHO.name = LmAn", "def LmAn(YKHO) -> str:\n assert YKHO.data is not None\n return YKHO.data['role']['name']", "def W0tD(YKHO):\n return '-'.join(YKHO._name_parts + [YKHO.role.name, YKHO.scenario.name])", "def hqua(YK...
[ "0.76014084", "0.7298675", "0.7211555", "0.7203234", "0.6998517", "0.68832964", "0.6824219", "0.6820696", "0.6746396", "0.66966844", "0.6526202", "0.65143645", "0.6481994", "0.64733917", "0.64610755", "0.63807106", "0.6351706", "0.6329996", "0.6323037", "0.63158435", "0.63076...
0.0
-1
Create an onehot tensor
def X99x(YKHO, Crrw, TFPw, jDK_=-1): Jj9R = ZylS.one_hot(ZylS.squeeze(Crrw), depth=TFPw, axis=jDK_) return Jj9R
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAJt(vhpA, Crrw=10):\n KLLm = oyIN.zeros((vhpA.shape[0], Crrw))\n KLLm[range(vhpA.shape[0]), vhpA.astype(int)] = 1.0\n return KLLm", "def KLLm(Crrw, tpio):\n Ep8u = Crrw.size(0)\n yvT9 = ht2j.zeros(Ep8u, tpio)\n yvT9[oyIN.arange(Ep8u), Crrw.squeeze().long()] = 1\n return yvT9", "def KL...
[ "0.8210468", "0.8201671", "0.8077205", "0.805354", "0.7989695", "0.7980231", "0.79696697", "0.7950092", "0.7950092", "0.7948467", "0.7912533", "0.79025644", "0.78822047", "0.7878681", "0.7878665", "0.7847643", "0.7840364", "0.7837447", "0.78366977", "0.78201234", "0.77968866"...
0.7188955
92
Turn on the scene.
def iXC1(YKHO) -> None: YKHO._hass.turn_on('scene.{0}'.format(YKHO._args['scene']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jY15(YKHO) -> None:\n YKHO._state = YKHO._player.turn_on()", "def VCNZ(YKHO):\n YKHO.off = False\n YKHO.turnOnAnimation()", "def jY15(YKHO, **B2fa: Any) -> None:\n YKHO._set_light(tGqj)", "def jY15(YKHO, **B2fa):\n YKHO._state = True\n YKHO.update_switch(YKHO._initial_transition)\n Y...
[ "0.71402043", "0.71132696", "0.70279604", "0.6954936", "0.68721765", "0.68652636", "0.68229365", "0.67939657", "0.67710656", "0.6735029", "0.6730508", "0.6596266", "0.65804565", "0.6536582", "0.6518706", "0.6516858", "0.64804995", "0.64552146", "0.6397112", "0.63840973", "0.6...
0.7613048
0
Set the security system.
def iXC1(YKHO) -> None: YKHO._hass.security_manager.set_alarm(YKHO._hass.security_manager.AlarmStates[YKHO._args['state']])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mi51(YKHO, Mi51):\n YKHO._security = Mi51", "def Mi51(YKHO, Mi51: ModelDeploymentSecurityConfig):\n YKHO._security = Mi51", "def Oz1B(YKHO, Oz1B):\n YKHO._system = Oz1B", "def Oz1B(YKHO, Oz1B):\n YKHO._system = Oz1B", "def sXxG(YKHO, rAOY):\n with DyZS(YKHO.cloudant_database) as VnBq:\n ...
[ "0.70384496", "0.6453808", "0.63437", "0.63437", "0.630204", "0.6263157", "0.6199377", "0.61934114", "0.608844", "0.5802159", "0.5754248", "0.57243806", "0.56770456", "0.5674967", "0.56644505", "0.56538695", "0.56399906", "0.5632406", "0.5590807", "0.5584901", "0.55318826", ...
0.0
-1
Set the text of this label.
def eiHf(YKHO, FUjE): YKHO.value = FUjE YKHO.chsize()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eiHf(YKHO, l5Ny):\n YKHO._label.setText(l5Ny)", "def KfYz(YKHO, l5Ny):\n assert YKHO.isLabel(l5Ny)\n YKHO._text = l5Ny", "def eiHf(YKHO, l5Ny: str) -> seYU:\n YKHO.setText(l5Ny)\n return YKHO", "def mLog(YKHO, l5Ny: str) -> None:\n YKHO._label_text.set(l5Ny)\n YKHO.update_label_text(...
[ "0.8881065", "0.8824003", "0.8666323", "0.86477816", "0.857802", "0.8477054", "0.8196709", "0.81731737", "0.8168305", "0.81428933", "0.8101899", "0.80970854", "0.80940205", "0.7839607", "0.7772613", "0.7733791", "0.77274406", "0.7669161", "0.7621147", "0.75899833", "0.7570886...
0.7170519
44
Does Non Max Suppression given bboxes
def zh61(c8oy, PKpG, gwAu, s_HA='corners'): assert type(c8oy) == list c8oy = [FlUN for FlUN in c8oy if FlUN[1] > gwAu] c8oy = sorted(c8oy, key=lambda WKvO: WKvO[1], reverse=True) qIa5 = [] while c8oy: Nhh0 = c8oy.pop(0) KIsf = c8oy.copy() c8oy = [] for FlUN in KIsf: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ois2(_XyB, DXoC, JgLq, kVwb):\n DjQG = []\n Txr9 = DXoC\n c8oy = _XyB\n for YRbF in range(len(Txr9)):\n ITFt = 0\n OYgz = 0\n for r845 in range(len(c8oy)):\n Ef4U, SVKz = (Txr9[YRbF][0], Txr9[YRbF][1])\n b9xR, M9Rl = (Txr9[YRbF][2], Txr9[YRbF][3])\n ...
[ "0.7150832", "0.7069101", "0.68712294", "0.6653853", "0.65888387", "0.65339005", "0.64546716", "0.6423793", "0.6404525", "0.63950497", "0.6346387", "0.6314987", "0.63059807", "0.62732834", "0.62166923", "0.61743283", "0.607827", "0.60195446", "0.5984185", "0.5977257", "0.5976...
0.7529759
0
Plots predicted bounding boxes on the image
def DM2M(LNo8, oUSw, uiIQ, SEA9): Xn71 = oyIN.array(LNo8) print(Xn71.shape) H2v2, TVTK, bGrB = Xn71.shape LZpg = QrM1.figure() aNZO = LZpg.add_subplot(111, aspect='auto') aNZO.set_axis_off() LZpg.add_axes(aNZO) aNZO.imshow(Xn71) for FlUN in oUSw: vOsx = int(FlUN[0]) J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJx8(tNaI, VXjJ, oUSw, Crrw, cCrA, C7_O=None, wytA=(15, 15)):\n LZpg, (hh7H, fTVC) = QrM1.subplots(nrows=1, ncols=2, figsize=wytA)\n if C7_O is not None:\n LZpg.suptitle(C7_O)\n if isinstance(VXjJ, ht2j.Tensor):\n VXjJ = VXjJ.numpy().squeeze().transpose((1, 2, 0))\n hh7H.imshow(VXjJ)\...
[ "0.7221695", "0.70395166", "0.7036144", "0.6970583", "0.6917753", "0.68724614", "0.6755849", "0.668966", "0.66610396", "0.66610396", "0.6622663", "0.65560836", "0.6545348", "0.6522647", "0.6512622", "0.6504384", "0.65015507", "0.6500133", "0.6486647", "0.64641434", "0.6451028...
0.69319826
4
purity of density matrix
def Ud4l(Kxci): return oyIN.trace(oyIN.dot(Kxci, Kxci)).real
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MSMZ(SppC):\n return SppC.getnnz() / (SppC.shape[0] * SppC.shape[1])", "def InLe(YKHO):\n return YKHO.nnz / YKHO.dim", "def OMDI(vhpA):\n return 1 - XYvO(vhpA)", "def InLe(YKHO):\n return YKHO.nnz / YKHO.size", "def lRpO(vhpA):\n return 1 - UfKO(vhpA)", "def dEta(vhpA):\n return 1 -...
[ "0.73438895", "0.7259086", "0.7160841", "0.7130563", "0.7040095", "0.69233084", "0.68869364", "0.6794914", "0.6713435", "0.66814655", "0.6661546", "0.66090053", "0.65904367", "0.65904367", "0.65904367", "0.6590174", "0.6567534", "0.65476596", "0.6528517", "0.65232694", "0.651...
0.68341416
7
Adds the study to the user's wish list. Establishes a wish lists relationship between a study and a user.
def NMoC(YKHO, **B2fa): wvEv = s9u5.RequestParser(bundle_errors=True) wvEv.add_argument('study_id', type=int, required=True, help='The study ID of the study being wish listed is an integer.') reRI = wvEv.parse_args() uJjO = B2fa['user_id'] V6BW = reRI.get('study_id', None) Vxnn.addWishlist(uJjO,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hTOI(YKHO, uJjO, KzVY):\n with YKHO.connection:\n return YKHO.cursor.execute(\"INSERT INTO 'wish_list' (`user_id`, `wish_list`) VALUES(?,?)\", (uJjO, KzVY))", "def gUDo(YKHO, QePW):\n return YKHO._addSessionToWishlist(QePW)", "def Odja(YKHO, QePW):\n CBIr = wnQ_.get_current_user()\n if n...
[ "0.70670515", "0.63541037", "0.6194152", "0.612041", "0.59016776", "0.57341015", "0.5707533", "0.5693885", "0.5649836", "0.54972154", "0.5446288", "0.5422339", "0.540463", "0.5375156", "0.53356314", "0.53030115", "0.5291971", "0.52887017", "0.5284084", "0.5254901", "0.5238905...
0.56657994
8