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
Find largest 2^n that is <= given number.
def GjfU(YRbF): exwG = 1 while 2 * exwG <= YRbF: exwG *= 2 return exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DxTY(YRbF, exwG):\n WKvO = 1\n while YRbF ** WKvO <= exwG:\n WKvO += 1\n WKvO -= 1\n print(YRbF, WKvO, YRbF ** WKvO)\n return YRbF ** WKvO", "def hzxu(WKvO: int) -> int:\n LVAh = 2\n while LVAh < WKvO:\n LVAh *= 2\n return LVAh", "def Pd1t(exwG):\n assert exwG >= 1\...
[ "0.7364856", "0.7220699", "0.71639603", "0.71285456", "0.71056217", "0.70454973", "0.70280796", "0.6953697", "0.69153583", "0.69078165", "0.6884936", "0.68798625", "0.686944", "0.68523663", "0.685187", "0.6785887", "0.67648023", "0.67581284", "0.6746755", "0.6734345", "0.6685...
0.0
-1
Pads the edges of an ndimensional input array with a constant value across all of its dimensions.
def lzQn(jzdc, hHtn=None, zkt_=0): if hHtn == None: hHtn = oyIN.ones(jzdc.ndim) elif oyIN.isscalar(hHtn): hHtn = (hHtn,) * jzdc.ndim elif len(hHtn) != jzdc.ndim: raise Exception('Length of npad (%i) does not match the dimensionality of the input array (%i)' % (len(hHtn), jzdc.ndim)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c2_m(ezWE, jHsn, pvd3):\n cpz0, SzIz = ezWE.shape\n for exwG in [jHsn, pvd3, cpz0, SzIz]:\n if not XHAY(exwG):\n raise Exception('[pad_edge_to_shape] only accept odd-number-length arrays')\n if jHsn > cpz0:\n Jw7X = (jHsn - cpz0) / 2\n ezWE = oyIN.pad(ezWE, ((int(Jw7X),...
[ "0.70748633", "0.6740863", "0.66968995", "0.66164505", "0.6341354", "0.6333178", "0.6298866", "0.6266749", "0.6240734", "0.6142749", "0.61150956", "0.6076388", "0.6069231", "0.6006855", "0.599805", "0.5995245", "0.5971221", "0.59542406", "0.594628", "0.59075075", "0.59069514"...
0.52360415
92
return the indices for he unique rows of matrix (data)
def _NJ_(nPrm): Ix4h = dict() for rdlD in range(len(nPrm)): yL5a = tuple(nPrm[rdlD, :]) if not yL5a in Ix4h: Ix4h[yL5a] = rdlD OsCc = Ix4h.values() Meu5 = oyIN.c_[Ix4h.keys()] return (OsCc, Meu5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _NJ_(vb7U, jcN9=False):\n Fg_i = oyIN.ascontiguousarray(vb7U).view(oyIN.dtype((oyIN.void, vb7U.dtype.itemsize * vb7U.shape[1])))\n if not jcN9:\n bGrB, or8S = oyIN.unique(Fg_i, return_index=True)\n else:\n bGrB, or8S = oyIN.unique(Fg_i, return_inverse=True)\n return or8S", "def iTyp...
[ "0.7141886", "0.6757034", "0.67283213", "0.6579893", "0.6348019", "0.62737936", "0.6192369", "0.6148231", "0.6143522", "0.6118104", "0.6085444", "0.60841966", "0.6032499", "0.59927875", "0.59516716", "0.5946568", "0.59439254", "0.59393436", "0.5928374", "0.59168315", "0.59092...
0.75071067
0
Return the current user data or redirect to /login
def CBIr(YKHO): CBIr = None if not 'user' in YKHO.session and Hy7s.environ['APPLICATION_ID'].startswith('dev'): if YKHO.request.get('paToken'): CBIr = bs5z({'paToken': YKHO.request.get('paToken')}).user() if CBIr: G9jH.info('Read user data %s' % qQXR.dumps(CBIr)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KacQ(YKHO):\n CBIr = DW23.get_current_user()\n if not CBIr:\n YKHO.redirect(DW23.create_login_url(YKHO.request.uri))\n else:\n return CBIr", "def d6pt(YKHO):\n CBIr = bUpI()\n if not CBIr:\n return _1tc('/login_form.html')\n vKnz('/')", "def kZiy(QePW):\n CBIr = Qe...
[ "0.77440953", "0.7385087", "0.7254302", "0.7151339", "0.71150273", "0.7096179", "0.70940703", "0.7076556", "0.7071419", "0.7068162", "0.7036085", "0.70170254", "0.6947696", "0.6947696", "0.6947696", "0.6928699", "0.69211274", "0.690957", "0.68713444", "0.6862259", "0.6838694"...
0.7382352
2
Test retrieving a list of recipes
def GKeA(YKHO): VHaa(name='Avocado toast') VHaa(name='Baklava') Ylbp = YKHO.client.get(tQ6t) AHLC = LC16.objects.all() ZMzz = azWq(AHLC, many=True) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(len(Ylbp.data), 2) YKHO.assertEqual(Ylbp.data, ZMzz.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h8CT(YKHO):\n pass", "def jc7k(YKHO):\n pass", "def xtxm(YKHO):\n pass", "def kqLA(YKHO):\n VHaa(user=YKHO.user)\n VHaa(user=YKHO.user)\n Ylbp = YKHO.client.get(tQ6t)\n AHLC = LC16.objects.all().order_by('-id')\n ZMzz = azWq(AHLC, many=True)\n YKHO.assertEqual(Ylbp.status_code,...
[ "0.81033486", "0.79804796", "0.79704607", "0.7895004", "0.78925663", "0.78374314", "0.76769125", "0.767323", "0.74180543", "0.73952913", "0.73141986", "0.72933966", "0.7182399", "0.71717864", "0.7072997", "0.70101357", "0.6926858", "0.6895275", "0.689", "0.6882748", "0.687709...
0.79853475
1
Test creating a recipe without ingredients
def HBOQ(YKHO): pB3N = {'name': 'Focaccia', 'description': 'Detailed description'} Ylbp = YKHO.client.post(tQ6t, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED) YSCM = LC16.objects.get(id=Ylbp.data['id']) YKHO.assertEqual(pB3N['name'], YSCM.name) YKHO.assertEqual(pB3N['descriptio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fFuT(YKHO):\n pB3N = {'name': '', 'description': 'Detailed description'}\n Ylbp = YKHO.client.post(tQ6t, pB3N, format='json')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def f1hb(YKHO):\n KZtG = jRmL(user=YKHO.user, name='Prawns')\n ciPx = jRmL(user=YKHO.user, name='Garl...
[ "0.7708326", "0.7443987", "0.7335176", "0.7308571", "0.7274586", "0.72403127", "0.72294104", "0.719718", "0.7191069", "0.7180229", "0.7140219", "0.71174973", "0.7011941", "0.69898486", "0.6964708", "0.6949731", "0.69417", "0.6928444", "0.69159746", "0.6894708", "0.68790495", ...
0.7214119
7
Test creating a recipe without a name fails
def fFuT(YKHO): pB3N = {'name': '', 'description': 'Detailed description'} Ylbp = YKHO.client.post(tQ6t, pB3N, format='json') YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vesC(YKHO):\n P4t4 = YKHO.create_app()\n Z9rn = P4t4.test_client()\n im04 = Z9rn.get('/recipes/create')\n YKHO.assertRedirects(im04, '/auth/login')\n gr_i(Z9rn, P4t4.config['USERNAME'], P4t4.config['PASSWORD'])\n MC83(Z9rn, P4t4.config['USERNAME'], P4t4.config['PASSWORD'])\n Z9rn.get('/rec...
[ "0.67582875", "0.6713784", "0.66163594", "0.65163505", "0.64881986", "0.6484161", "0.64016336", "0.64010495", "0.6394526", "0.6370647", "0.63700956", "0.63484925", "0.6314215", "0.6284871", "0.62412465", "0.6167506", "0.61221933", "0.6113738", "0.60885835", "0.6055646", "0.60...
0.7653346
0
Test updating a recipe with put
def gGPk(YKHO): YSCM = VHaa() YSCM.ingredients.create(name='Eggs') Ukpy = YSCM.description pB3N = {'name': 'Vegan gnocchi', 'ingredients': [{'name': 'Vegegg'}]} bD7m = sw45(YSCM.id) YKHO.client.put(bD7m, pB3N, format='json') YSCM.refresh_from_db() YKHO.assertEqual(YSCM.name, pB3N['name']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGPk(YKHO):\n YSCM = VHaa(user=YKHO.user)\n YSCM.tag.add(eo18(user=YKHO.user))\n pB3N = {'title': 'chicken noodles', 'time_minutes': 50, 'price': 12.67}\n bD7m = iLuo(YSCM.id)\n YKHO.client.put(bD7m, pB3N)\n YSCM.refresh_from_db()\n YKHO.assertEqual(YSCM.title, pB3N['title'])\n YKHO.ass...
[ "0.78568375", "0.77522546", "0.77279186", "0.7705229", "0.75257915", "0.7482447", "0.7438424", "0.74294686", "0.73584014", "0.73344994", "0.73036426", "0.7301371", "0.71905774", "0.7173551", "0.7123488", "0.7123488", "0.7123488", "0.712177", "0.7091531", "0.7063973", "0.70320...
0.7712993
3
Classifies each sample in data in one of the classes definited using the method labels_map. Returns a list of the same length of data where the ith element is the class assigned to data[i].
def yera(Q2c5, nPrm): yrlP = Q2c5.labels_map(Lcqa, VJv0) KFbf = oyIN.sum(list(yrlP.values())).most_common()[0][0] Aofo = [] for Csk6 in nPrm: Y0NN = Q2c5.winner(Csk6) if Y0NN in yrlP: Aofo.append(yrlP[Y0NN].most_common()[0][0]) else: Aofo.append(KFbf) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yera(YKHO, nPrm):\n Akil = []\n for V52X in nPrm:\n F_On = gnPz.Counter()\n for vC9B in YKHO.legalLabels:\n F_On[vC9B] = YKHO.weights[vC9B] * V52X\n Akil.append(F_On.argMax())\n return Akil", "def yera(YKHO, nPrm):\n Akil = []\n for V52X in nPrm:\n F_On =...
[ "0.7065536", "0.7065536", "0.700341", "0.700123", "0.6958873", "0.69268996", "0.6831625", "0.67626524", "0.6755509", "0.67288136", "0.6716321", "0.6683421", "0.6629587", "0.6629587", "0.6625043", "0.6624215", "0.6618992", "0.66058224", "0.65080017", "0.642267", "0.64096785", ...
0.6328104
23
For a vector theta ~ Dir(alpha), computes E[log(theta)] given alpha.
def MrxE(Cwt5): if len(Cwt5.shape) == 1: return nYlf(Cwt5) - nYlf(exwG.sum(Cwt5)) return nYlf(Cwt5) - nYlf(exwG.sum(Cwt5, 1))[:, exwG.newaxis]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WmvO(q7In, Zu_p, R9G1, zB2b):\n KMvS, k0lF = q7In\n p06G = oyIN.sum(oyIN.log(oUv7(q7In, Zu_p, R9G1, zB2b)))\n return p06G", "def fKJc(q7In, WKvO, nPrm, WTkW):\n C3ST = HPQU(q7In, WKvO)\n return -0.5 * len(WKvO) * oyIN.log(2 * epAf.pi * WTkW ** 2) - 0.5 / WTkW ** 2 * oyIN.sum((nPrm - C3ST) ** 2...
[ "0.6623323", "0.6441767", "0.6319258", "0.62098414", "0.61824596", "0.61517125", "0.6130782", "0.6114013", "0.61095107", "0.6073221", "0.6054262", "0.6042971", "0.6041485", "0.6023611", "0.6020745", "0.60070974", "0.5977238", "0.5959134", "0.59383947", "0.5936282", "0.5921042...
0.0
-1
View function for home page
def d6pt(QePW): oM76 = YM9Z.objects.all().count() uFxM = CQpO.objects.all().count() QpfX = {'num_videos': oM76, 'num_courses': uFxM} return _1tc(QePW, 'index.html', context=QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'home.html')", "def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')", "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy(Q...
[ "0.86116576", "0.85212237", "0.828496", "0.8280337", "0.82703805", "0.8265588", "0.823626", "0.82155585", "0.8204985", "0.8200393", "0.8196282", "0.8196282", "0.8196282", "0.8196282", "0.8196282", "0.8196282", "0.8196282", "0.8196282", "0.8196282", "0.8196282", "0.8196282", ...
0.0
-1
View function for about page
def vsuQ(QePW): QpfX = {} return _1tc(QePW, 'about.html', context=QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cD8n(QePW):\n return _1tc(QePW, 'ez_main/about_page.html')", "def PzLT(QePW):\n return _1tc(QePW, 'aboutus.html')", "def AGH9(QePW):\n return _1tc(QePW, 'about_us.html')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def vsu...
[ "0.8355086", "0.8312827", "0.82380015", "0.82251745", "0.822185", "0.8204033", "0.8199857", "0.81911445", "0.8180105", "0.8174336", "0.8160832", "0.81555104", "0.8136058", "0.81355864", "0.81152654", "0.811384", "0.8104847", "0.81029695", "0.8097307", "0.8092031", "0.80877846...
0.78916156
47
Returns a string representation of self
def zAg0(YKHO): YKHO.vals.sort() return '{' + ','.join([str(tTpl) for tTpl in YKHO.vals]) + '}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO) -> str:\n raise NotImplementedError", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return YKHO.as_string()", "def wHJl(YKHO) -> str:\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n r...
[ "0.8763703", "0.86562204", "0.8588547", "0.8529507", "0.8518056", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.85170096", "0.84979486", "0.84701693", ...
0.0
-1
Normalize stock prices using the first row of the dataframe.
def Q7gV(jQ3Z): return jQ3Z / jQ3Z.ix[0, :]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TLXe(jQ3Z):\n uvY_ = dict()\n for YRbF, fvDH in enumerate(jQ3Z.columns):\n NNjF = oyIN.array(jQ3Z[fvDH])\n uvY_['Normalized' + fvDH] = ZvG6.normalize([NNjF])[0]\n OPVs = rLdf.DataFrame(uvY_, index=jQ3Z.index)\n rLdf.set_option('precision', 2)\n return OPVs", "def Q7gV(jQ3Z):\n ...
[ "0.7371106", "0.72801805", "0.7170513", "0.6706012", "0.6654511", "0.6565614", "0.6506297", "0.65005535", "0.6419033", "0.6419033", "0.6391165", "0.63268536", "0.6315997", "0.6304028", "0.61510575", "0.6140669", "0.60450274", "0.6029373", "0.60041595", "0.5880133", "0.5829837...
0.7246905
3
If signal is None, signal_path must be set. If weights is None, weights_path must be set Setting signal_path and weights_path allows to use dynamic data loading with lru_cache. It is useful when your dataset is large. Args
def FIMM(YKHO, QTg7, Gaon=None, _mSQ=None, TfDN=None, dC43=None): if Gaon is None and TfDN is None: raise ValueError('signal or signal_path must be provided') if _mSQ is None and dC43 is None: raise ValueError('signal or signal_path must be provided') YKHO._signal = Gaon YKHO._weights = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SUd8(YKHO, Scuh):\n YKHO.model.load_state_dict(ht2j.load(Scuh))", "def SUd8(YKHO, pmON=None):\n if pmON is None:\n pmON = YKHO.checkpoints_dir\n YKHO.model.load_weights(ZylS.train.latest_checkpoint(pmON))\n G9jH.info(f'\\tWeights loaded from {pmON}')", "def ks9j(YKHO):\n raise NotImpl...
[ "0.5540702", "0.54982555", "0.5465026", "0.54177743", "0.53977966", "0.5362939", "0.53489757", "0.53489757", "0.53251344", "0.5309731", "0.5309731", "0.53026253", "0.52891326", "0.52592576", "0.52135", "0.5206958", "0.5192607", "0.518099", "0.51167053", "0.51148754", "0.50440...
0.6660356
0
Create holidays data frame for the end of the year season.
def _YuS(): rhBO = rLdf.DataFrame({'holiday': 'end_of_year', 'ds': rLdf.to_datetime(['2019-12-25', '2020-12-25']), 'lower_window': -7, 'upper_window': 7}) return rhBO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IQCO(kepv, KhBf):\n HGCR = rLdf.date_range(start=kepv, end=KhBf)\n jQ3Z = rLdf.DataFrame()\n jQ3Z['Date'] = HGCR\n GQJo = GRk0()\n rhBO = GQJo.holidays(start=HGCR.min(), end=HGCR.max())\n jQ3Z['Holiday'] = jQ3Z['Date'].isin(rhBO)\n P3YJ = jQ3Z[jQ3Z['Holiday'] == True]\n return P3YJ", ...
[ "0.6553565", "0.6493272", "0.64793694", "0.622014", "0.61762357", "0.60843945", "0.6073655", "0.60243803", "0.60228825", "0.6016245", "0.5972893", "0.5954934", "0.5951974", "0.5809751", "0.5794923", "0.57821554", "0.57458144", "0.5704674", "0.5637749", "0.56101394", "0.560207...
0.8475737
0
Induces a random typo into the input token with a given probability.
def Hzan(dHM5, e8Rs: dict, JxU2=1.0): if dHM5 in e8Rs and tuKI.random() <= JxU2: N5jI = e8Rs[dHM5] hYae = tuKI.randint(0, len(N5jI) - 1) lz1o = N5jI[hYae] return (lz1o, lz1o != dHM5) else: return (dHM5, False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DhET():\n Fg_i = oyIN.random.uniform(0.0, 1.0, size=[1, bV1g])\n return Fg_i / oyIN.sum(Fg_i, 1)[:, None]", "def DhET():\n Fg_i = oyIN.random.uniform(0.0, 1.0, size=[1, bV1g])\n return Fg_i / oyIN.sum(Fg_i, 1)[:, None]", "def DhET():\n Fg_i = oyIN.random.uniform(0.0, 1.0, size=[1, bV1g])\n ...
[ "0.6239329", "0.6228471", "0.6228471", "0.62233233", "0.6091594", "0.6003502", "0.5989174", "0.59626144", "0.5943841", "0.5923232", "0.5899579", "0.5890256", "0.5875842", "0.58572656", "0.58443916", "0.5765246", "0.57500386", "0.5739233", "0.5739233", "0.5720066", "0.5715422"...
0.7111269
0
Get route send state
def hXO6(*qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n U5bT = YKHO.send('?S', recv=True)\n assert U5bT in 'WDR'\n return U5bT", "def eDtc(YKHO, qv1X):\n QTBn = RL2e()\n QTBn.update_underway = YKHO.update_underway\n QTBn.world = YKHO.scenarios[YKHO.scenario_idx][0]\n QTBn.scenario = YKHO.scenarios[YKHO.scenario_idx][1]\n retu...
[ "0.7035245", "0.62164575", "0.6176743", "0.60522985", "0.6002121", "0.5957839", "0.5957839", "0.59208906", "0.58553505", "0.5826387", "0.5685848", "0.5684062", "0.56246877", "0.56156206", "0.56137985", "0.56053776", "0.55872554", "0.5510968", "0.55063266", "0.5470109", "0.546...
0.69378054
1
Move tensor(s) to a chosen device
def qibS(nPrm, begE): if isinstance(nPrm, (list, tuple)): return [qibS(WKvO, begE) for WKvO in nPrm] return nPrm.to(begE, non_blocking=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uYip(wRXp: List[torch.Tensor], l3zO: Optional[torch.device], XRi1: bool=False) -> iu5r[ht2j.Tensor]:\n return (vhpA if vhpA.device == l3zO or l3zO is None else vhpA.to(l3zO, non_blocking=XRi1) for vhpA in wRXp)", "def uYip(YEnM, yGCl: int):\n if yGCl < 0 or not J8Hk(YEnM):\n return YEnM\n eli...
[ "0.62812006", "0.60571903", "0.59711176", "0.5875509", "0.5805213", "0.5803408", "0.5785348", "0.57743037", "0.5773978", "0.56551516", "0.56403613", "0.56376976", "0.556951", "0.55620337", "0.55513346", "0.55418897", "0.5503264", "0.5465752", "0.54527617", "0.54527617", "0.54...
0.0
-1
Sets the private property __api_key to allow information retrieval from the selected inofficial IMDb REST API
def Dma5(rJDA): H4Ej.__api_key = rJDA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA", "def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA", "def rJDA(YKHO, rJDA):\n YKHO._api_key = rJDA", "def Dma5(YKHO, rJDA):\n YKHO.api_key = rJDA\n YKHO.session.auth = ('api', rJDA)", "def yElH(YKHO, rJDA):\n YKHO._analyzer.SetAPIKey(rJDA)", "de...
[ "0.80814177", "0.80814177", "0.7798116", "0.7555325", "0.7493613", "0.738859", "0.72739583", "0.72717834", "0.72629946", "0.72392243", "0.72326624", "0.7125125", "0.71221435", "0.7094733", "0.70813483", "0.70786273", "0.7055916", "0.7053033", "0.70342547", "0.6994829", "0.696...
0.7574494
3
This method will grab the first resume object and compare it to our test case and what we expect using the method defined in our resume model last_name_first_name
def IW9B(YKHO): LgEQ = kvfq.objects.first() aEqx = 'Bielinski, Nicholas' RhGk = LgEQ.last_name_first_name() YKHO.assertEqual(RhGk, aEqx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uve4(YKHO):\n LgEQ = kvfq.objects.first()\n aEqx = 'Nicholas Bielinski'\n RhGk = LgEQ.full_name()\n YKHO.assertEqual(RhGk, aEqx)", "def dtP_(YKHO):\n fTGh.objects.create(user=YKHO.user, resume=YKHO.resume)\n YKHO.resume.open()\n GPZD = fTGh.objects.get(pk=1)\n YKHO.assertEqual(YKHO.re...
[ "0.66364294", "0.63328934", "0.6240789", "0.56515604", "0.5609393", "0.5564774", "0.54490584", "0.5423683", "0.53985345", "0.53911626", "0.5389533", "0.53498", "0.53456694", "0.53253233", "0.52584267", "0.52399075", "0.52290124", "0.5224997", "0.5207656", "0.5189579", "0.5188...
0.6835695
0
This method will grab the first resume object and compare it to our test case and what we expect using the method defined in our resume model get_education
def b_35(YKHO): LgEQ = kvfq.objects.first() aEqx = list(LgEQ.get_education()) RhGk = list(LgEQ.education_set.all()) YKHO.assertEqual(RhGk, aEqx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gceK(YKHO):\n LgEQ = kvfq.objects.first()\n aEqx = list(LgEQ.get_experience())\n RhGk = list(LgEQ.experience_set.all())\n YKHO.assertEqual(RhGk, aEqx)", "def dtP_(YKHO):\n fTGh.objects.create(user=YKHO.user, resume=YKHO.resume)\n YKHO.resume.open()\n GPZD = fTGh.objects.get(pk=1)\n YK...
[ "0.6503877", "0.6403518", "0.62503386", "0.5958376", "0.5746377", "0.5535521", "0.55176723", "0.54322916", "0.5417124", "0.5327987", "0.52882856", "0.5273539", "0.52406", "0.5232225", "0.520038", "0.5182467", "0.5155429", "0.5129079", "0.5110051", "0.50939655", "0.50937176", ...
0.7036994
0
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(R089, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.sim_step is None: YKHO.sim_step = 0 if YKHO.type is None: YKHO.type = kKAJ.msg.String() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.7794795", "0.77207875", "0.77207875", "0.7687243", "0.7625947", "0.7564293", "0.7440383", "0.74175525", "0.7352349", "0.7308313", "0.72808266", "0.72378874", "0.722805", "0.7225032", "0.7225032", "0.7219433", "0.72120637", "0.72120637", "0.72120637", "0.72120637", "0.72120...
0.0
-1
(Generator) Yields each of the alphabetic characters in a string.
def d5zh(l5Ny): for sZqf in l5Ny: if sZqf.isalpha(): yield sZqf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVdp():\n for WKvO in list(Ni9Y(ord('a'), ord('z') + 1)):\n yield chr(WKvO)", "def KoG3():\n KoG3 = 'BINGO'\n for sZqf in KoG3:\n yield sZqf", "def ue1g(KCHu):\n V22M = ZbWC.findall('[A-Za-z]+', KCHu)\n gLiZ = set(''.join(V22M))\n assert len(gLiZ) <= 10\n qMKQ = set((yzQ0...
[ "0.766867", "0.7420937", "0.7158086", "0.67932135", "0.66354424", "0.66159403", "0.6599739", "0.6362456", "0.6343288", "0.63327587", "0.62894404", "0.62067884", "0.6127309", "0.6127309", "0.6127309", "0.61133635", "0.6081948", "0.60405755", "0.60404944", "0.6031312", "0.60182...
0.81256324
0
[Lab 14] Scales the vector x by a constant alpha.
def VDtO(WKvO, Cwt5): return [kidU * Cwt5 for kidU in WKvO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9aG(YKHO, Cwt5=1.0):\n YKHO.unif[17] = Cwt5", "def Cwt5(YKHO, WKvO):\n Cwt5 = [0] * len(YKHO.A)\n for YRbF in Ni9Y(len(YKHO.A)):\n Cwt5[YRbF] = YKHO.A[YRbF].dot(WKvO) / YKHO.mu\n Cwt5 = YKHO.project(Cwt5)\n return Cwt5", "def lQhN(SLsv, ITS7):\n KO11 = oyIN.argmax(SLsv)\n Cwt5 ...
[ "0.67462593", "0.6362331", "0.62898505", "0.62876225", "0.6162155", "0.6056142", "0.6043743", "0.6029091", "0.6006104", "0.59830624", "0.59809655", "0.59763116", "0.5941285", "0.5927482", "0.5913922", "0.5901176", "0.5894425", "0.58874387", "0.5830705", "0.58277094", "0.58127...
0.6824012
0
[Lab 14] Adds the scalar value c to every element of x.
def wtrK(WKvO, Z9rn): return [kidU + Z9rn for kidU in WKvO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i6vy(Z9rn: float, Ty9i: Vector) -> lNLu:\n return [Z9rn * nFf2 for nFf2 in Ty9i]", "def i6vy(Z9rn: float, Ty9i: Vector) -> lNLu:\n return [Z9rn * nFf2 for nFf2 in Ty9i]", "def i6vy(Z9rn, Ty9i):\n return [Z9rn * nFf2 for nFf2 in Ty9i]", "def NXpY(Z9rn, hAEw):\n return [Z9rn[0] * hAEw, Z9rn[1] ...
[ "0.645461", "0.645461", "0.6337266", "0.63219905", "0.62739515", "0.62046134", "0.62046134", "0.6029307", "0.6012549", "0.59823424", "0.59100974", "0.584622", "0.5830653", "0.57910347", "0.57558453", "0.5742593", "0.57363415", "0.572871", "0.5707376", "0.56881905", "0.5655132...
0.83270913
0
Given a `float`, returns its binary form as a string.
def VmgT(WKvO): assert type(WKvO) is float dVuD = float.hex(WKvO) RaZj = tnwh.match(dVuD) assert RaZj KCHu = RaZj.group('sign') r8hN = RaZj.group('mantissa') nESp = RaZj.group('signexp') tTpl = RaZj.group('exp') iEeM = '[' if KCHu: iEeM += KCHu if int(r8hN, 16) == 0 a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZ0R(BWXx, mLNM=2):\n HFWH(BWXx, description='inputvalue')\n GOSc(mLNM, minvalue=2, maxvalue=4, description='number of registers')\n Rwh4 = '>'\n if mLNM == 2:\n Rwh4 += 'f'\n GuWV = 4\n elif mLNM == 4:\n Rwh4 += 'd'\n GuWV = 8\n else:\n raise ValueError('Wr...
[ "0.72873336", "0.72778803", "0.7049035", "0.6979534", "0.6955068", "0.68843937", "0.67476755", "0.6713939", "0.66478384", "0.65779734", "0.6367039", "0.630046", "0.6271491", "0.6219043", "0.6203176", "0.6173669", "0.6166321", "0.6153719", "0.61336195", "0.61124074", "0.607726...
0.7102452
2
Generates 'm' noisy observations for a linear model whose predictor (nonintercept) coefficients are given in 'x'. Decrease 'sigma' to decrease the amount of noise.
def iPgu(r8hN, WKvO, WTkW=1.0 / 2 ** 0.5): assert type(WKvO) is oyIN.ndarray and WKvO.ndim == 2 and (WKvO.shape[1] == 1) exwG = len(WKvO) k0lF = oyIN.random.rand(r8hN, exwG) k0lF[:, 0] = 1.0 Fg_i = k0lF.dot(WKvO) + WTkW * oyIN.random.randn(r8hN, 1) return (k0lF, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ARTs(WKvO: np.ndarray) -> oyIN.ndarray:\n return oyIN.random.normal(loc=uWAj, scale=0.01, size=1)", "def z69R(Csk6, WTkW=1):\n return oyIN.random.normal(scale=WTkW, size=Csk6)", "def r5hI(fuBA, WTkW):\n return fuBA + oyIN.random.normal(0, WTkW, fuBA.shape)", "def L_LB(WTkW, jHsn, pvd3=1, WyJz=1)...
[ "0.6092505", "0.60270995", "0.59387547", "0.58079237", "0.5737313", "0.57152", "0.5682847", "0.56649846", "0.56201303", "0.55905986", "0.5566366", "0.5550676", "0.5549603", "0.55376756", "0.5523535", "0.5476474", "0.5465465", "0.53947264", "0.53899723", "0.5381233", "0.537908...
0.56396747
8
Display durations in seconds in a readable form.
def jqEI(JBZA, z0YJ): J8yg = ['{0} days, ', '{1} hours, ', '{2} minutes, ', '{3} seconds '] mn4m = ['days', 'hours', 'minutes', 'seconds'] Mcm7 = [24 * 60 * 60, 60 * 60, 60, 1] O66n, C6wh = divmod(int(round(z0YJ)), 60) Wave, O66n = divmod(O66n, 60) Sm0u, Wave = divmod(Wave, 24) SoeT = [Sm0u,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TmWH(WbTE):\n return tz8A.format_seconds(WbTE)", "def J4vV(YKHO, XpVf):\n bGrB = YKHO.runtime.service(YKHO, 'i18n').ungettext\n Wave = XpVf // 3600\n EcGO = XpVf % 3600\n O66n = EcGO // 60\n C6wh = EcGO % 60\n W8mS = ''\n if Wave > 0:\n W8mS += bGrB('{num_hour} hour', '{num_hou...
[ "0.7697494", "0.76552415", "0.72010756", "0.7065205", "0.7058942", "0.70589304", "0.70532465", "0.7012484", "0.6916185", "0.68863195", "0.6848411", "0.6728021", "0.67110425", "0.6694079", "0.6622895", "0.6594973", "0.65906596", "0.653608", "0.6523483", "0.6518563", "0.6510243...
0.7073246
3
Load data for specified city, month and day, or as applicable.
def UlWi(j5sA, x0eS, CjKC): print('\nLoading data for city = {}, month = {}, day = {}...'.format(j5sA, x0eS, CjKC)) jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['Month'] = [a6S9[int(r8hN)] for r8hN in jQ3Z['Start Time'].dt.month] jQ3Z['Day of Week']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n if j5sA == 'new york city':\n jQ3Z = rLdf.read_csv('./new_york_city.csv')\n else:\n jQ3Z = rLdf.read_csv('./' + j5sA + '.csv')\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['day'] = jQ3Z['S...
[ "0.8190308", "0.818666", "0.8183753", "0.8160309", "0.8149875", "0.811988", "0.81090003", "0.80912447", "0.8085883", "0.80856633", "0.80724996", "0.80557233", "0.8050945", "0.80472803", "0.80334985", "0.8032042", "0.8026659", "0.8018097", "0.80145663", "0.8001409", "0.7990581...
0.76729375
76
Display statistics on the most frequent times of travel. The function assumes the presence in the Dataframe of columns for 'Month', Day of Week' and 'Hour' and that Hour is an integer representing the hour in 24 hour format (e.g. 17 = 5pm, 5 = 5am).
def dWJR(jQ3Z, KsJR, x0eS, CjKC): print('\nCalculating The Most Frequent Times of Travel...\n') if not KsJR: SWox = ITS7.time() if x0eS == 'All': wS9c('The most common month(s):', jQ3Z, 'Month') if CjKC == 'All': wS9c('The most common day(s): ', jQ3Z, 'Day of Week') wS9c('Th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the most frequent times of travel...\\n')\n SWox = ITS7.time()\n if len(jQ3Z['month'].unique()) > 1:\n vswJ, Hu0p = tbPw(jQ3Z['month'])\n print(f'Most popular month: {vswJ}, Count: {Hu0p}')\n if len(jQ3Z['day'].unique()) > 1:\n NO20, KBuT = tb...
[ "0.865205", "0.857788", "0.85673714", "0.8547373", "0.84821355", "0.84819305", "0.8474293", "0.8457032", "0.845438", "0.845365", "0.8453254", "0.8434474", "0.84329", "0.8432701", "0.8431652", "0.8427904", "0.8408821", "0.8404698", "0.8401156", "0.83989346", "0.8398109", "0....
0.0
-1
Display statistics on the most popular stations and trip. The function assumes the presence in the Dataframe of columns for 'Start Station' and 'End Station'.
def Huc_(jQ3Z, KsJR): print('\nCalculating The Most Popular Stations and Trip...\n') if not KsJR: SWox = ITS7.time() Lr_M = True wS9c('The most common start stations(s):', jQ3Z, 'Start Station', Lr_M) wS9c('The most common end stations(s):', jQ3Z, 'End Station', Lr_M) wS9c('The most comm...
{ "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 V_8k = jQ3Z['Start Station'].value_counts()[jQ3Z['Start Station'].value_counts() == jQ3Z['Start Station'].value_counts().max()]\n print('\\nThe most commonly used start station(s), with counts:\\n'...
[ "0.8615547", "0.8602319", "0.8594257", "0.85916424", "0.8578669", "0.8568244", "0.8562653", "0.8559396", "0.8554434", "0.8551285", "0.85511225", "0.85371834", "0.8533339", "0.8531855", "0.85314673", "0.85218763", "0.85217327", "0.85200024", "0.8519829", "0.8512708", "0.850973...
0.0
-1
Display statistics on the most popular stations and trip. The function assumes the presence in the Dataframe of a column for 'Trip Duration'.
def kDMA(jQ3Z, KsJR): print('\nCalculating Trip Duration...\n') if not KsJR: SWox = ITS7.time() jqEI('Total duration of all trips:\n', jQ3Z['Trip Duration'].sum()) jqEI('Shortest trip duration:\n', jQ3Z['Trip Duration'].min()) jqEI('Mean trip duration:\n', jQ3Z['Trip Duration'].mean()) j...
{ "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 _8rG = jQ3Z['Start Station'].mode()[0]\n oFx8 = jQ3Z['End Station'].mode()[0]\n jQ3Z['Trip Stations'] = jQ3Z['Start Station'] + ' to ' + jQ3Z['End Station']\n nHup = jQ3Z['Trip Stations'].mod...
[ "0.82203543", "0.81997657", "0.8180946", "0.81757003", "0.816", "0.81585497", "0.8148318", "0.81158763", "0.8112239", "0.81015164", "0.80948395", "0.80795735", "0.80740887", "0.8071285", "0.8044685", "0.8042057", "0.80366313", "0.803572", "0.80323714", "0.80260694", "0.801673...
0.0
-1
Parses the date field based to return the correct value. If the value is 'Just Posted' or 'Today', set day = 0.
def feVn(F3_L: str, yo7_: date) -> uLKX[_c1T, None]: if not F3_L: return None if F3_L in {'Just posted', 'Today'}: xq10 = 0 else: xq10 = int(F3_L[0]) if F3_L else 0 return yo7_ - fCoM(days=xq10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ITgy(YKHO, Jyyj):\n Aofo = d5IO.parser.parse(Jyyj, default=YKHO.PREVENT_DEFAULT_DAY_MON_SEED1)\n TRUU = d5IO.parser.parse(Jyyj, default=YKHO.PREVENT_DEFAULT_DAY_MON_SEED2)\n if Aofo != TRUU:\n RKD7.warning('Field {0} is missing month or day'.format(YKHO._name, Jyyj))\n return None\n i...
[ "0.66166264", "0.5982016", "0.5946381", "0.58628625", "0.58628625", "0.5762587", "0.57179576", "0.5693804", "0.5671181", "0.5656358", "0.5612516", "0.55772495", "0.555575", "0.55305463", "0.5524904", "0.54997355", "0.5494109", "0.5471046", "0.54521734", "0.5430507", "0.541228...
0.6539143
1
updateAlpacaDeviceNameList updates the indi device name selectors combobox with the discovered entries. therefore it deletes the old list and rebuild it new.
def _aQp(YKHO, lnC3): YKHO.ui.alpacaDeviceList.clear() YKHO.ui.alpacaDeviceList.setView(Znwm()) for wN9s in lnC3: YKHO.ui.alpacaDeviceList.addItem(wN9s) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z8SZ(YKHO, SELA):\n YKHO.device_list = SELA\n YKHO.device_combo.clear()\n if not SELA:\n return\n YKHO.device_combo.addItem('')\n re9u = None\n for M4N3 in SELA:\n m2DE = '{model:<18} - {contype:<7} - {serial}'.format(model=M4N3.model, contype=M4N3.device_type, serial=M4N3.seria...
[ "0.6842839", "0.6552486", "0.6548222", "0.59289885", "0.58572453", "0.574594", "0.5392472", "0.53213036", "0.5286323", "0.5285137", "0.52759945", "0.5236435", "0.5165592", "0.51622915", "0.5146045", "0.5118332", "0.5093552", "0.5074116", "0.5053878", "0.50514036", "0.5034101"...
0.7756851
0
updateSGProDeviceNameList updates the indi device name selectors combobox with the discovered entries. therefore it deletes the old list and rebuild it new.
def LeRs(YKHO, lnC3): YKHO.ui.sgproDeviceList.clear() YKHO.ui.sgproDeviceList.setView(Znwm()) for wN9s in lnC3: YKHO.ui.sgproDeviceList.addItem(wN9s) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z8SZ(YKHO, SELA):\n YKHO.device_list = SELA\n YKHO.device_combo.clear()\n if not SELA:\n return\n YKHO.device_combo.addItem('')\n re9u = None\n for M4N3 in SELA:\n m2DE = '{model:<18} - {contype:<7} - {serial}'.format(model=M4N3.model, contype=M4N3.device_type, serial=M4N3.seria...
[ "0.67138946", "0.6436016", "0.63982064", "0.6244521", "0.5763582", "0.56752294", "0.5407658", "0.5382027", "0.5367582", "0.5326008", "0.5271619", "0.5218974", "0.51767164", "0.51060617", "0.5070315", "0.50677264", "0.50446874", "0.5019104", "0.49977344", "0.49760225", "0.4968...
0.7787743
0
updateSGProDeviceNameList updates the indi device name selectors combobox with the discovered entries. therefore it deletes the old list and rebuild it new.
def ljiY(YKHO, lnC3): YKHO.ui.ninaDeviceList.clear() YKHO.ui.ninaDeviceList.setView(Znwm()) for wN9s in lnC3: YKHO.ui.ninaDeviceList.addItem(wN9s) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeRs(YKHO, lnC3):\n YKHO.ui.sgproDeviceList.clear()\n YKHO.ui.sgproDeviceList.setView(Znwm())\n for wN9s in lnC3:\n YKHO.ui.sgproDeviceList.addItem(wN9s)\n return True", "def Z8SZ(YKHO, SELA):\n YKHO.device_list = SELA\n YKHO.device_combo.clear()\n if not SELA:\n return\n ...
[ "0.77884877", "0.6711578", "0.6395692", "0.6242371", "0.5762176", "0.56746346", "0.5406087", "0.5379286", "0.5370134", "0.5323343", "0.5269187", "0.5216611", "0.5175841", "0.5105096", "0.507038", "0.5064967", "0.5042007", "0.50170124", "0.49952573", "0.49733996", "0.49664146"...
0.64341456
2
Performs a get call to the api.
def jxrn(YKHO, htFm, pB3N={}): geh0 = YKHO.session.get(YKHO._get_absolute_uri(htFm), params=pB3N) if geh0.status_code != 200: raise wrr3('API returned %s' % geh0.status_code) return YKHO._parse(geh0.content, YKHO._get, htFm, pB3N)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxrn(YKHO, *qIxc, **B2fa):\n return YKHO._request('get', *qIxc, **B2fa)", "def NMoC(YKHO, QovZ, *qIxc, **B2fa):\n return YKHO._do_operation(u'get', QovZ, *qIxc, **B2fa)", "def NMoC(YKHO, QovZ, *qIxc, **B2fa):\n return YKHO._do_operation(u'get', QovZ, *qIxc, **B2fa)", "def NMoC(YKHO, *qIxc, **B2f...
[ "0.7853812", "0.7831877", "0.76743704", "0.7635168", "0.7616737", "0.7604631", "0.7603225", "0.75755036", "0.7545404", "0.73294705", "0.73114055", "0.73054355", "0.72735626", "0.72599655", "0.7216778", "0.72147095", "0.7202322", "0.72022295", "0.71832633", "0.7180241", "0.717...
0.0
-1
Return the axis label for an experiment.
def _taP(YKHO, QX9O, pq9i): if len(YKHO._dims) > 1: H5ew, BWXx = YKHO._factors[QX9O][pq9i] else: if pq9i == 1: return '' H5ew, BWXx = YKHO._factors[QX9O][0] return '{} = {}'.format(H5ew, BWXx) if H5ew != '' else ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u4sQ(YKHO, tpio=0):\n return YKHO.__axis_labels__[tpio]", "def wl_9(YKHO):\n return YKHO._axis_name", "def KzAV(YKHO):\n return YKHO._frame.GetXaxis().GetTitle()", "def Hkoj(YKHO, XBiZ):\n if isinstance(XBiZ, str):\n if XBiZ in YKHO.axes_names:\n return XBiZ\n else:\n...
[ "0.8199995", "0.7460472", "0.73125696", "0.6733561", "0.65919125", "0.6559759", "0.62548625", "0.6250321", "0.6193733", "0.6137797", "0.6135996", "0.61245096", "0.6112237", "0.6111702", "0.608084", "0.6078953", "0.60780257", "0.6056622", "0.60543054", "0.60070395", "0.5995077...
0.0
-1
Return a PayloadFromDict object that will convert the source dict to a payload of the target class. All values of dict items are expected to be lists.
def FIMM(YKHO, JZXy, pan_): YKHO._verify_class_dicts() YKHO.source = JZXy YKHO.module = getattr(ruPi.payload, pan_.__module__.split('.')[-1]) YKHO.payload = pan_()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, qHj0) -> 'Body':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, qHj0) -> 'Body':\n return Evid(qHj0, Emd4)", "def jG8h(Emd4, fGC9, maAL):\n YEnM = LSFv.__new__(Emd4)\n super().__init__(YEnM)\n YEnM.to_natives(fGC9, maAL)\n return YEnM", "def PSgA(Emd4, wXd8):\n...
[ "0.5709198", "0.5677408", "0.56486124", "0.5604381", "0.5597064", "0.55731875", "0.5550588", "0.55322653", "0.55143726", "0.5509267", "0.54902655", "0.54867643", "0.54697824", "0.54697824", "0.54697824", "0.54697824", "0.54697824", "0.54697824", "0.54697824", "0.54697824", "0...
0.0
-1
Get the environment variable.
def E6J6(H5ew: str) -> str: BWXx = Hy7s.getenv(H5ew) assert isinstance(BWXx, str), f'the {H5ew} environment variable must be set and a string, value={BWXx!r}' return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bx7h(mWFP):\n return Hy7s.environ.get(mWFP)", "def sEAN(SRYB):\n return Hy7s.environ[SRYB]", "def _4kQ(mWFP):\n Es0b = None\n try:\n Es0b = Hy7s.environ[mWFP]\n except KeyError:\n pass\n return Es0b", "def AxXv(YKHO, SRYB):\n return Hy7s.environ[SRYB]", "def TYk2(XuY2...
[ "0.8341453", "0.8062252", "0.80459845", "0.8012182", "0.779349", "0.77395684", "0.7737103", "0.7736536", "0.76870877", "0.7686322", "0.7678296", "0.7649419", "0.7621249", "0.75579655", "0.7524827", "0.74989533", "0.74787927", "0.74604577", "0.7403519", "0.7349242", "0.7320503...
0.80955946
1
Retrieve the stage configuration.
def EtM5(YKHO) -> fRx7: if YKHO._stage is None: Wgdb = 'STAGE' Y9PO = YKHO._get_env(Wgdb) assert Y9PO in UL0c, f'the {Wgdb} environment variable value must be one of {UL0c}, stage_str={Y9PO!r}' YKHO._stage = fRx7[Y9PO] return YKHO._stage
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def INFv(YKHO, u9PO: str):\n INFv = YKHO._app_cfg['stages'][u9PO]\n aTkz = YKHO._app_cfg['global']\n INFv['parameters'].update(**aTkz)\n return INFv", "def IHd5():\n try:\n Ux0P = Hy7s.path.join(FLAV('SITE'), '.stage')\n eHNT = open(Ux0P, 'r')\n EtM5 = eHNT.readline().strip()\...
[ "0.7182858", "0.67468876", "0.6592159", "0.65044117", "0.65044117", "0.65044117", "0.6492366", "0.6443227", "0.6381361", "0.6281882", "0.6243507", "0.620966", "0.61930096", "0.61930096", "0.61930096", "0.61882675", "0.6184398", "0.6180898", "0.6180898", "0.6180898", "0.618089...
0.6602624
2
Retrieve the package_storage_bucket_name configuration.
def NIfC(YKHO) -> str: if YKHO._package_storage_bucket_name is None: NIfC = YKHO._get_env('PACKAGE_STORAGE_BUCKET_NAME') YKHO._package_storage_bucket_name = NIfC return YKHO._package_storage_bucket_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7rj(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('bucket_name')", "def l7rj(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('bucket_name')", "def fGDj(YKHO) -> str:\n return qe4Y.get(YKHO, 'gcs_bucket')", "def oIWz(YKHO):\n return YKHO.config.secrets_bucket", "def l7rj(YKH...
[ "0.7418269", "0.7418269", "0.73772347", "0.73441905", "0.73316646", "0.73008436", "0.7176804", "0.717286", "0.717286", "0.7152588", "0.7152588", "0.7152588", "0.7152588", "0.7152588", "0.7152588", "0.7152588", "0.7152588", "0.7152588", "0.7152588", "0.69405", "0.6935878", "...
0.84172916
0
Retrieve the access_control_allow_origin configuration.
def WDpS(YKHO) -> str: if YKHO._access_control_allow_origin is None: WDpS = YKHO._get_env('ACCESS_CONTROL_ALLOW_ORIGIN') YKHO._access_control_allow_origin = WDpS return YKHO._access_control_allow_origin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PeIa(YKHO):\n return YKHO.access_control_allow_origin", "def lMzN():\n return 'Access-Control-Allow-Origin'", "def c_tA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'allow_origins')", "def FR1l(YKHO):\n return YKHO._allowed_origins", "def jXHW(YKHO) -> h8nf['outputs.RuleRuleActionCorsC...
[ "0.8499172", "0.7605839", "0.67787504", "0.6529629", "0.6505759", "0.6491768", "0.6427015", "0.63813573", "0.6330934", "0.6308371", "0.62970215", "0.60918975", "0.60232615", "0.5872341", "0.586881", "0.5866486", "0.58340925", "0.5796879", "0.57109547", "0.5701661", "0.5650875...
0.8082247
1
Retrieve the access_control_allow_headers configuration.
def eDjB(YKHO) -> str: if YKHO._access_control_allow_headers is None: eDjB = YKHO._get_env('ACCESS_CONTROL_ALLOW_HEADERS') YKHO._access_control_allow_headers = eDjB return YKHO._access_control_allow_headers
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def goSj(YKHO):\n return YKHO.access_control_allow_headers", "def Ctc6(YKHO):\n return YKHO._allowed_headers", "def aHzG(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'allow_headers')", "def Ctc6(YKHO) -> laHg.Optional[laHg.List[str]]:\n return YKHO._values.get('allowed_headers')", "def Ctc...
[ "0.848187", "0.7188289", "0.7024918", "0.67447263", "0.6650517", "0.64105564", "0.6364686", "0.6307511", "0.627564", "0.6227396", "0.61184645", "0.60557556", "0.5995747", "0.5878745", "0.5844155", "0.5838459", "0.58346146", "0.58152944", "0.57989836", "0.57916677", "0.5786762...
0.821496
1
Retrieve the default_credentials_id configuration.
def MSXx(YKHO) -> str: if YKHO._default_credentials_id is None: MSXx = YKHO._get_env('DEFAULT_CREDENTIALS_ID') YKHO._default_credentials_id = MSXx return YKHO._default_credentials_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vL7e(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'auth_config_id')", "def vjV5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'credential_id')", "def t1dp(YKHO) -> str:\n return qe4Y.get(YKHO, 'default_storage_account_id')", "def S8MR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO...
[ "0.69821006", "0.6614287", "0.6544026", "0.64617586", "0.64507127", "0.6441844", "0.6405215", "0.6384589", "0.62822336", "0.6264175", "0.6186932", "0.61812216", "0.6063073", "0.6052873", "0.6043047", "0.5996459", "0.59839934", "0.5970893", "0.5966746", "0.5958236", "0.5955688...
0.8479063
0
Removes stop words from a tokenized sentence
def QXd6(yCs1): bxxQ = [] hwHU = set(di0c.words('english')) for GIN8 in HyPc(yCs1): if GIN8 not in hwHU: bxxQ.append(GIN8) return bxxQ
{ "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 BlGc(l5Ny, hwHU=hwHU):\n DJGF = dFss(l5Ny)\n bxxQ = [yzQ0 for yzQ0 in DJGF if not yzQ0 in hwHU]\n return ' '.join(bxxQ)", "def g8pp(Mau6...
[ "0.8389512", "0.83719605", "0.8244052", "0.81836987", "0.80287904", "0.79766536", "0.79550785", "0.7944314", "0.78956", "0.7888704", "0.7886362", "0.78531396", "0.78506005", "0.77985585", "0.77864045", "0.77498156", "0.7746916", "0.771699", "0.770927", "0.7693116", "0.7682686...
0.81616026
4
dw = dw` { L_val(w`, alpha) } w+ = w + eps dw w = w eps dw hessian = (dalpha { L_trn(w+, alpha) } dalpha { L_trn(w, alpha) }) / (2eps) eps = 0.01 / ||dw||
def bGDL(YKHO, ncXl, et7W, i12G, _hZ2: float=0.01): CkYf = ht2j.cat([yzQ0.view(-1) for yzQ0 in ncXl]).norm() SGf8 = _hZ2 / CkYf OUkM = YKHO.finite_difference(ncXl, et7W, i12G, SGf8, wrt='alpha') Co2A = YKHO.finite_difference(ncXl, et7W, i12G, -SGf8, wrt='alpha') e_VS = [(XP5J - exwG) / (2.0 * SGf8) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_VS(_g9D):\n return ICX2(ICX2(_g9D))", "def BSff(YKHO, ncXl, et7W, i12G, _hZ2: float=0.01, Zfx9: float=0.1):\n CkYf = ht2j.cat([yzQ0.view(-1) for yzQ0 in ncXl]).norm()\n SGf8 = _hZ2 / CkYf\n C0Nv = YKHO.finite_difference(ncXl, et7W, i12G, SGf8, wrt='weights')\n cbWr = YKHO.finite_difference(n...
[ "0.6822256", "0.67025983", "0.6654734", "0.65710294", "0.6477701", "0.63771653", "0.6376971", "0.6376971", "0.6311902", "0.6299026", "0.62950784", "0.6217092", "0.61834186", "0.61795", "0.6146845", "0.61441666", "0.6142313", "0.6106731", "0.6058134", "0.60392934", "0.6033669"...
0.70821196
0
GET /canon/ Must return status code 200
def ykgQ(YKHO): YKHO.assertEqual(200, YKHO.response.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return (pz3A(status='OK'), 200)", "def d6pt():\n return (pz3A({'meta': {'success': True, 'code': 200}, 'result': {'message': QePW.get_json()}}), 200)", "def W4Y7():\n geh0 = GtGV.success()\n geh0.headers['Access-Control-Allow-Origin'] = '*'\n return geh0", "def NMoC():\n retur...
[ "0.6167156", "0.5899435", "0.5751378", "0.5705325", "0.5682897", "0.5674316", "0.56618583", "0.5634525", "0.56250316", "0.56105804", "0.56082785", "0.55815625", "0.5576192", "0.55664295", "0.5540307", "0.55368835", "0.55240923", "0.55029327", "0.5447691", "0.54309887", "0.541...
0.51699305
95
Setup the initial values for the parameters to be optimized (fitted)
def kpiP(gS4V, Bw8j, Ebru, Wjis, T4Wy): if int(Bw8j) < 20180401 or int(Bw8j) > 20190531: eLeG = gS4V.ips_tightmount_pars[Ebru][Wjis][T4Wy] else: eLeG = gS4V.ips_loosemount_pars[Ebru][Wjis][T4Wy] V7Xy = 1250 if Ebru == 'H' else 1180 Nbxx = oyIN.array([0.0, 0.0, 0.0, 1.0, 0.0, eLeG[2], 0.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lSjL(YKHO):\n YKHO.prediction = sDym.init_pred\n YKHO.error = sDym.init_err\n YKHO.fitness = sDym.init_fit", "def tnre(YKHO) -> None:\n YKHO._setup_input = {'P': _0un(2.0 * YKHO.opt.P(YKHO.p).toarray()), 'q': YKHO.opt.q(YKHO.p).toarray().flatten()}\n if YKHO.opt_type in GxAa:\n k0lF = Y...
[ "0.73729235", "0.73685074", "0.7204093", "0.7204093", "0.7204093", "0.71527046", "0.7109222", "0.70906174", "0.70119065", "0.70044607", "0.6974778", "0.694932", "0.6932054", "0.69195116", "0.6882618", "0.6863889", "0.68560153", "0.68560153", "0.67917556", "0.67707175", "0.674...
0.64903027
51
build a wordnet offsetsynset dict, as suggested in this SO post
def Y59e(): odDj = list(X1AK.all_synsets()) DQwU = map(lambda KCHu: str(KCHu).replace('Synset', '').strip('()').strip("'").strip('"'), odDj) CawA = map(lambda jzdc, Fg_i: ('n%08d' % jzdc.offset, Fg_i), odDj, DQwU) cbJM = dict(CawA) t2lc.dump(cbJM, open('/Users/xlx/Documents/proj/imgnet-flickr/db3/wn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Novv():\n zeek = oRi_(dict)\n for ZI14 in Mfvk.values():\n with open(shWW + 'index.%s' % ZI14) as Fwbn:\n for YRbF, zFiD in enumerate(Fwbn):\n if zFiD.startswith(' '):\n continue\n OfOo = iter(zFiD.split())\n\n def tsI6():\...
[ "0.6443904", "0.59904605", "0.5976617", "0.595055", "0.58728015", "0.5838823", "0.57856035", "0.5770872", "0.5574813", "0.5530199", "0.5499793", "0.54042435", "0.53676575", "0.5365947", "0.5359893", "0.5309148", "0.53001344", "0.5287636", "0.5257414", "0.5222102", "0.5221093"...
0.678214
0
Convert input UTC timestamp to local timezone.
def yYe4(B8aT: datetime) -> qcWV: if B8aT is None: return None shus = B8aT.astimezone(yl4j.tzlocal()) return shus
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SdO5(i8WE, FEXa):\n AfX1 = JRYC.datetime.fromtimestamp(i8WE, tz=FXGE.timezone('UTC'))\n krBy = AfX1.astimezone(FEXa)\n return krBy", "def fye_(E3oo):\n SbIN = qcWV.datetime.strptime(E3oo, '%Y-%m-%dT%H:%M:%SZ').replace(tzinfo=FXGE.utc)\n return SbIN.astimezone(Avpf)", "def AKyY(i8WE, xILc=wyK...
[ "0.801562", "0.78291744", "0.76696664", "0.74626726", "0.7174784", "0.71128833", "0.70447266", "0.70406413", "0.7038577", "0.7018921", "0.7004543", "0.69634545", "0.69316155", "0.6920649", "0.6906102", "0.6834218", "0.6808308", "0.6801729", "0.6763384", "0.6758848", "0.675254...
0.68485636
15
Convert input local timezone timestamp to UTC timezone.
def KR93(shus: datetime) -> qcWV: if shus is None: return None B8aT = shus.astimezone(yl4j.UTC) return B8aT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SdO5(i8WE, FEXa):\n AfX1 = JRYC.datetime.fromtimestamp(i8WE, tz=FXGE.timezone('UTC'))\n krBy = AfX1.astimezone(FEXa)\n return krBy", "def Q4GF(a1PO, FEXa):\n krBy = FEXa.localize(a1PO, is_dst=None)\n AfX1 = krBy.astimezone(FXGE.utc)\n return AfX1", "def KR93(shus):\n shus = shus.replac...
[ "0.7504289", "0.74859524", "0.7440629", "0.7357582", "0.7313858", "0.71291375", "0.7063828", "0.7006611", "0.68404126", "0.673425", "0.67234975", "0.6719648", "0.6695059", "0.667435", "0.66163605", "0.6614698", "0.65348226", "0.65332985", "0.6532639", "0.6530088", "0.651378",...
0.70806277
6
Return the creation datetime of this experiment data.
def TOQn(YKHO) -> qcWV: return yYe4(YKHO._db_data.creation_datetime)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nsgh(YKHO):\n return YKHO.creation_time", "def nsgh(YKHO):\n return YKHO.get_attr('date_created')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creat...
[ "0.8311438", "0.82469696", "0.812193", "0.812193", "0.812193", "0.80909884", "0.80909884", "0.80909884", "0.803599", "0.8019377", "0.8019377", "0.7953435", "0.7953435", "0.7953435", "0.7931279", "0.7905995", "0.7905995", "0.7905995", "0.789896", "0.78683853", "0.78081614", ...
0.8208431
2
Return the start datetime of this experiment data.
def EKFi(YKHO) -> qcWV: return yYe4(YKHO._db_data.start_datetime)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bCOv(YKHO):\n return YKHO.get_t_sect()['datetime_start']", "def SWox(YKHO):\n return YKHO.time[0].to_pydatetime()", "def yKcO(YKHO) -> qcWV:\n return YKHO._start", "def yKcO(YKHO):\n return YKHO._start", "def SWox(YKHO):\n return YKHO._meta['start_time']", "def K4yx(YKHO):\n return ...
[ "0.83715767", "0.8268385", "0.81634057", "0.81589437", "0.81268144", "0.8078509", "0.8001099", "0.8001099", "0.8001099", "0.8001099", "0.8001099", "0.8001099", "0.8001099", "0.8001099", "0.7982609", "0.79790926", "0.79518664", "0.79429674", "0.7933631", "0.7932464", "0.789753...
0.8054732
6
Return the end datetime of this experiment data. The end datetime is the time the latest job data was added without errors; this can change as more jobs finish.
def yA1z(YKHO) -> qcWV: return yYe4(YKHO._db_data.end_datetime)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Os4s(YKHO) -> qcWV:\n return YKHO._end", "def C7pn(YKHO):\n return YKHO.time[-1].to_pydatetime()", "def C7pn(YKHO):\n return YKHO._end_time", "def C7pn(YKHO):\n return YKHO._end_time", "def C7pn(YKHO):\n return YKHO._end_time", "def C7pn(YKHO):\n return YKHO._end_time", "def C7pn(...
[ "0.76465285", "0.76458716", "0.7640677", "0.7640677", "0.7640677", "0.7640677", "0.7640677", "0.7640677", "0.75482595", "0.75473326", "0.7507595", "0.7350901", "0.7340042", "0.73313844", "0.7311017", "0.72841406", "0.72716016", "0.72716016", "0.72655225", "0.7251588", "0.7250...
0.7654552
0
Return the hub of this experiment data.
def Kb4M(YKHO) -> str: return YKHO._db_data.hub
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kb4M(YKHO):\n return YKHO._application_handler.data_collection.hub", "def Kb4M(YKHO) -> P8_b:\n return YKHO.platform_common.hub", "def yA10(YKHO):\n return YKHO.proxy.samp.hub", "def Acli(YKHO):\n return YKHO._hubble", "def BT90(YKHO):\n return YKHO._props['persistent_identifiers'].get(Y...
[ "0.83677095", "0.805713", "0.7706438", "0.7258118", "0.69434506", "0.68720275", "0.66646737", "0.6521313", "0.64760774", "0.63531435", "0.6275451", "0.62338746", "0.6123511", "0.61120695", "0.6061617", "0.603155", "0.5905103", "0.58853745", "0.5871158", "0.5802781", "0.572431...
0.8198742
1
Return the group of this experiment data.
def uOe2(YKHO) -> str: return YKHO._db_data.group
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aiHR(YKHO):\n return YKHO._group", "def uOe2(YKHO):\n return YKHO._group", "def uOe2(YKHO):\n return YKHO._group", "def uOe2(YKHO):\n return YKHO._group", "def aiHR(YKHO):\n return YKHO.variables.get('group')", "def uOe2(YKHO):\n return YKHO.properties.get('Group', None)", "def uO...
[ "0.82442665", "0.82426876", "0.82426876", "0.82426876", "0.8217748", "0.80105937", "0.7968851", "0.79486686", "0.787269", "0.77912265", "0.766107", "0.7573221", "0.7573221", "0.7573221", "0.7381078", "0.7331955", "0.7331955", "0.7331955", "0.73194414", "0.73094803", "0.726371...
0.77649266
10
Return the project of this experiment data.
def bNKA(YKHO) -> str: return YKHO._db_data.project
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bNKA(YKHO):\n return YKHO._project", "def bNKA(YKHO):\n return YKHO._project", "def bNKA(YKHO):\n return YKHO._project", "def bNKA(YKHO):\n return YKHO._project", "def bNKA(YKHO):\n return YKHO._project", "def ITTn(YKHO):\n return YKHO.project", "def bNKA(YKHO):\n return YKHO._...
[ "0.80236626", "0.80236626", "0.80236626", "0.80236626", "0.80236626", "0.7964119", "0.79533833", "0.7937571", "0.7911267", "0.78891206", "0.78891206", "0.78891206", "0.78891206", "0.78891206", "0.78891206", "0.78891206", "0.78891206", "0.78891206", "0.78891206", "0.78891206", ...
0.7818807
29
Return the share level for this experiment
def xZJp(YKHO) -> str: return YKHO._db_data.share_level
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def miQb(YKHO) -> str:\n return qe4Y.get(YKHO, 'share_type')", "def ABDL(YKHO):\n return YKHO.game_data['player stats']['Level']", "def R9dh(YKHO) -> bdIy['outputs.ShareInfoElementResponse']:\n return qe4Y.get(YKHO, 'share_info')", "def j1GH(YKHO):\n return _VfD.SBase_getLevel(YKHO)", "def Pxts...
[ "0.5961452", "0.5894079", "0.5570122", "0.5560998", "0.5543545", "0.5526534", "0.5485564", "0.5485564", "0.5485564", "0.5485564", "0.5474747", "0.5458396", "0.5458396", "0.5450978", "0.5443471", "0.5405041", "0.5389859", "0.5365532", "0.53505695", "0.532974", "0.52839667", ...
0.80433404
0
Return the database service.
def zVa7(YKHO) -> h8nf[ahTa]: return YKHO._service
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGod(YKHO):\n YKHO.logger.info('in get_db()')\n try:\n return YKHO.client[YKHO.db_name]\n except Exception as e:\n YKHO.logger.error(f'Error occurred while getting client {tTpl}')", "def v0Hh(YKHO):\n return YKHO.db", "def u_OD(YKHO):\n return YKHO.database", "def NCls(YKHO):...
[ "0.7517992", "0.74533683", "0.7400521", "0.7353447", "0.7353447", "0.72779244", "0.72628486", "0.7210041", "0.7204975", "0.71421534", "0.71394044", "0.710123", "0.7095708", "0.7085826", "0.6955539", "0.69484633", "0.69270545", "0.69119555", "0.68993706", "0.68789864", "0.6878...
0.0
-1
Return the experiment data at the specified index.
def nPrm(YKHO, d6pt: Optional[Union[int, slice, str]]=None) -> uLKX[cuzp, x1iM[cuzp]]: YKHO._retrieve_data() if d6pt is None: return YKHO._result_data.copy() if isinstance(d6pt, (int, slice)): return YKHO._result_data[d6pt] if isinstance(d6pt, str): return [nPrm for nPrm in YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, d6pt):\n if YKHO._data_indices is not None:\n d6pt = YKHO._data_indices[d6pt]\n nPrm = YKHO._dataset[d6pt]\n return nPrm", "def OP2O(YKHO, d6pt):\n return YKHO.dataset[d6pt]", "def yLtf(YKHO, d6pt=0):\n if d6pt is None:\n return [I1iR.data for I1iR in YKHO._data_defs...
[ "0.7360088", "0.7230474", "0.7142219", "0.70794433", "0.7074295", "0.69526154", "0.69199806", "0.6890676", "0.68488276", "0.68488276", "0.6811153", "0.680421", "0.67867315", "0.6763953", "0.6710909", "0.6705396", "0.66356224", "0.6630615", "0.66043764", "0.65403104", "0.65137...
0.69274074
6
Return the experiment status.
def jGRS(YKHO) -> puqU: if all((len(zGKt) == 0 for zGKt in [YKHO._result_data, YKHO._jobs, YKHO._job_futures, YKHO._analysis_callbacks, YKHO._analysis_futures, YKHO._figures, YKHO._analysis_results])): return puqU.EMPTY try: return {rKxn.INITIALIZING: puqU.INITIALIZING, rKxn.QUEUED: puqU.QUEUED,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status')", "def...
[ "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.74598557", "0.73491883"...
0.70688826
96
Return the experiment job execution status.
def lGar(YKHO) -> rKxn: kL40 = set() with YKHO._jobs.lock: if not YKHO._jobs: return rKxn.DONE kL40 = set() for oCfW in YKHO._jobs.values(): if oCfW: kL40.add(oCfW.status()) for QmN4 in [rKxn.ERROR, rKxn.CANCELLED, rKxn.RUNNING, rKxn.QUEUED, rK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n return YKHO.job_proto.status", "def jGRS(YKHO) -> str:\n return YKHO._check_job_status()", "def VLTN(YKHO):\n return gTEQ('PrlJob_GetStatus', YKHO.handle)", "def lGar(YKHO, rjee):\n geh0 = YKHO.batch_client.describe_jobs(jobs=[rjee])\n return geh0['jobs'][0]['status']", "de...
[ "0.797115", "0.7626941", "0.75662005", "0.7505498", "0.7481017", "0.74668974", "0.74545133", "0.7357164", "0.7319241", "0.71512866", "0.7093327", "0.70906943", "0.6974851", "0.68573093", "0.679144", "0.67616034", "0.6718037", "0.6708237", "0.6680923", "0.6665475", "0.6629132"...
0.6954849
13
Validate an email using Mailgun.
def Bt7w(YKHO, D3lj): nPrm = {'address': D3lj} _hkX = YKHO.get(RDhu.build_uri('address.validate'), nPrm) return BfDw.handle_response(_hkX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yBjc(YKHO):\n QePW = YKHO.factory.post(YKHO.url, data=nDFE)\n D3lj = YKHO.parser.parse(QePW)\n YKHO._assertEmailParsedCorrectly(D3lj, nDFE)", "def j3eV(YKHO, D3lj, YvnU=False):\n T6Z0 = '/email-validate'\n RGYk = y8cn.get_base_uri()\n RGYk += T6Z0\n vgAy = fPb2.clean_url(RGYk)\n kkzV ...
[ "0.6949642", "0.6919618", "0.6819963", "0.6767459", "0.6660087", "0.6595556", "0.6586254", "0.6550652", "0.65419906", "0.6522163", "0.6425467", "0.6422758", "0.63785195", "0.63655496", "0.6364324", "0.6359974", "0.6351327", "0.6330538", "0.63176584", "0.62947917", "0.6258132"...
0.6839902
2
Get the total stats of a specified domain (`<domain/stats/total`).
def PzOw(YKHO, **B2fa): _hkX = YKHO.get(RDhu.build_uri('total.stats', domain=YKHO.domain), B2fa) return BfDw.handle_response(_hkX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rmcZ(YKHO, KcEq):\n KCHu = YKHO.get_stats(KcEq, 'get')\n nPrm = {'missing_total': KCHu['missing_total'], 'exists_total': KCHu['exists_total'], 'current': KCHu['current'], 'total': KCHu['total']}\n return nPrm", "def wjRY(YKHO):\n return YKHO._evaluate()['hits']['total']", "def h4aS(YKHO, **B2fa...
[ "0.64953107", "0.6434208", "0.6291768", "0.6003003", "0.5999368", "0.57673377", "0.57635796", "0.57534575", "0.5727809", "0.57129586", "0.56741464", "0.56524754", "0.5645492", "0.5563786", "0.55424386", "0.553859", "0.5525109", "0.5515685", "0.5512926", "0.55043834", "0.55023...
0.74730736
0
Return normal to a segment defined by two points (end, start) The normal is a unit vector (normalized by its length)
def TYNx(Os4s, yKcO): return CrRJ(PXGI(Q_4j(Os4s, yKcO)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhAC(QxIi, Mo0Q):\n return XTiz.array([QxIi[1] - Mo0Q[1], Mo0Q[0] - QxIi[0]])", "def mhAC(zJAg: Point, lCHq: Point) -> AzJI[PvyL, float]:\n x1fj: PvyL = ((zJAg[0] + lCHq[0]) / 2, (zJAg[1] + lCHq[1]) / 2)\n Ty9i: DpX9 = (lCHq[0] - zJAg[0], lCHq[1] - zJAg[1])\n mhAC: DpX9 = (-Ty9i[1], Ty9i[0])\n ...
[ "0.71030354", "0.7005137", "0.6869082", "0.65474004", "0.6543886", "0.65186495", "0.64897406", "0.6424013", "0.6414078", "0.6399166", "0.63676035", "0.6352875", "0.6346771", "0.6340706", "0.63279265", "0.6317402", "0.6245882", "0.61598873", "0.61419547", "0.6123057", "0.60855...
0.8303345
0
cast from float tensor ([1.,1.]) to int image ([0,255])
def UnH3(LNo8): LNo8 = ZylS.clip_by_value(LNo8, -1, 1) return ZylS.image.convert_image_dtype((LNo8 + 1.0) / 2.0, ZylS.uint8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZAY(J0JQ):\n VXjJ = J0JQ * (lEar - 1)\n VXjJ = VXjJ.astype(int)\n return VXjJ", "def uaVh(WKvO):\n WKvO = WKvO.add(1).mul_(255).div_(2)\n if WKvO.is_cuda:\n WKvO = WKvO.cpu()\n WKvO = WKvO.data.numpy().astype(oyIN.uint8)\n return WKvO", "def b1y8(VXjJ):\n if VXjJ.min() == 0:...
[ "0.7358158", "0.73276913", "0.6970659", "0.6764872", "0.6739017", "0.66921455", "0.66294557", "0.65918756", "0.6563598", "0.6550647", "0.64720356", "0.647187", "0.64185196", "0.6367765", "0.63437194", "0.63364106", "0.63337463", "0.6305305", "0.62948024", "0.6263061", "0.6261...
0.7630529
0
Test rendering a schema with references as URL pointing to a YAML file
def JlD_() -> None: Z9JV = _kLO('references_url_yaml') lfdS.html_schema_doc_asserts.assert_property_names(Z9JV, ['address', 'street_address', 'city', 'state']) lfdS.html_schema_doc_asserts.assert_descriptions(Z9JV, ['Testing $ref with URL with YAML destination']) lfdS.html_schema_doc_asserts.assert_type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rmdn() -> None:\n Z9JV = _kLO('references_url')\n lfdS.html_schema_doc_asserts.assert_property_names(Z9JV, ['firstName'])\n lfdS.html_schema_doc_asserts.assert_descriptions(Z9JV, ['Testing $ref with URL', \"The person's first name.\"])\n lfdS.html_schema_doc_asserts.assert_types(Z9JV, ['object', 's...
[ "0.6659201", "0.63814336", "0.63580984", "0.6151976", "0.6142749", "0.6036624", "0.5984149", "0.5943261", "0.5906646", "0.5857475", "0.5856845", "0.5855536", "0.5802851", "0.57780904", "0.5774281", "0.5761441", "0.57482505", "0.5710211", "0.5699136", "0.56840366", "0.56740004...
0.76384634
0
Test that having a description next to a $ref in an object uses that description and not the one from the referenced object
def ZA8u() -> None: Z9JV = _kLO('description_with_ref') lfdS.html_schema_doc_asserts.assert_descriptions(Z9JV, ['We should see this', 'inner description', 'We should see this too'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k4mf() -> None:\n Z9JV = _kLO('description_with_ref', KB1H(link_to_reused_ref=False))\n lfdS.html_schema_doc_asserts.assert_descriptions(Z9JV, ['We should see this', 'inner description', 'We should see this too', 'inner description'])", "def OcbF() -> None:\n Z9JV = _kLO('description_from_ref')\n ...
[ "0.72383195", "0.689555", "0.6848524", "0.67768216", "0.66733485", "0.6430653", "0.63819915", "0.6288493", "0.6172914", "0.6093997", "0.6075981", "0.6051115", "0.6006429", "0.5983971", "0.5978027", "0.59510773", "0.59304583", "0.5920716", "0.59113884", "0.5895696", "0.5856179...
0.70741904
1
Test that having a description next to a $ref in an object uses that description and not the one from the referenced object
def OcbF() -> None: Z9JV = _kLO('description_from_ref') lfdS.html_schema_doc_asserts.assert_descriptions(Z9JV, ['a filled string'] * 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k4mf() -> None:\n Z9JV = _kLO('description_with_ref', KB1H(link_to_reused_ref=False))\n lfdS.html_schema_doc_asserts.assert_descriptions(Z9JV, ['We should see this', 'inner description', 'We should see this too', 'inner description'])", "def ZA8u() -> None:\n Z9JV = _kLO('description_with_ref')\n ...
[ "0.72383195", "0.70741904", "0.6848524", "0.67768216", "0.66733485", "0.6430653", "0.63819915", "0.6288493", "0.6172914", "0.6093997", "0.6075981", "0.6051115", "0.6006429", "0.5983971", "0.5978027", "0.59510773", "0.59304583", "0.5920716", "0.59113884", "0.5895696", "0.58561...
0.689555
2
Get a datetime tzaware time object from a timestamp
def gUmT(E3oo: float, pner: tzinfo=wyKz) -> qcWV: B8aT = qcWV.fromtimestamp(E3oo, tz=wyKz) return FPLx(B8aT, pner)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XCAX(E3oo):\n SbdO = E3oo // (60 * 24)\n QcCg = E3oo - SbdO * (60 * 24)\n AzcF = QcCg // 60\n BN8c = QcCg - AzcF * 60\n return Kmii(SbdO, AzcF, BN8c)", "def dUDV(E3oo: int) -> ITS7:\n cRge = 60\n mvvQ = 60 * cRge\n lfun = E3oo\n ROt1, lfun = divmod(lfun, mvvQ)\n yVtz, CsFy = div...
[ "0.73569435", "0.7095146", "0.7068814", "0.7003683", "0.699199", "0.6984039", "0.6851821", "0.6737096", "0.669087", "0.6647898", "0.66186595", "0.66161174", "0.661149", "0.6573137", "0.65106344", "0.6501489", "0.65013564", "0.6493674", "0.64839727", "0.6472279", "0.6465058", ...
0.6654329
9
Add a timezone to a naive datetime Raise an error in case of a tzaware datetime
def gZSo(JRYC: datetime, pner: tzinfo=wyKz) -> qcWV: if JRYC.tzinfo is not None: raise ValueError(f'{JRYC} is already tz-aware') return JRYC.replace(tzinfo=pner)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def czlY(YKHO):\n YKHO.timestamp = FXGE.utc.localize(YKHO.timestamp)", "def MjZq(JRYC):\n assert JRYC.tzinfo is None\n R4et = YyaU.get_localzone()\n G9jH.warning('Assuming timezone for {} is {}'.format(JRYC, R4et))\n return R4et.localize(JRYC)", "def h_Xe(D63P: str, MK1i: datetime.time):\n re...
[ "0.6834473", "0.6719845", "0.67034686", "0.65381306", "0.6455073", "0.6430281", "0.6420912", "0.63867235", "0.6385113", "0.63788813", "0.6353452", "0.63219005", "0.6318592", "0.6293526", "0.62916386", "0.62788343", "0.625945", "0.62426007", "0.6224375", "0.621212", "0.6200042...
0.7680081
0
Change the timezone of a tzaware datetime Raise an error in case of a naive datetime
def FPLx(JRYC: datetime, pner: tzinfo=wyKz) -> qcWV: if JRYC.tzinfo is None: raise ValueError(f'{JRYC} is a naive datetime') return JRYC.astimezone(pner)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cKEZ(BWXx: datetime) -> qcWV:\n if gCuF.USE_TZ:\n BWXx = BWXx.replace(tzinfo=rIAI.utc)\n return BWXx", "def LNMQ(Ehsq):\n try:\n with Ehsq.context() as r8hN, OjI9('1970-01-01 00:00:00'):\n r8hN.setenv('TZ', 'Europe/Berlin')\n ITS7.tzset()\n assert qcWV....
[ "0.72220784", "0.7190392", "0.6918409", "0.6897703", "0.6883826", "0.68323904", "0.6831575", "0.6820948", "0.677761", "0.67357635", "0.6722398", "0.67094827", "0.6686504", "0.6628855", "0.6621806", "0.6611476", "0.6558472", "0.6544679", "0.65106106", "0.6505062", "0.6482041",...
0.6444673
21
Returns the scaling factor necessary so that at least [delta] percent of the Gaussian nodes [x] satisfy | [x] |<= [L]. Mostly used for the infinite interval expansions.
def SnCn(aPd6, WKvO, RA_F=0.5): from numpy import floor, ceil, abs, mean ywwl = WKvO.size RA_F = min(1.0, RA_F) IiP9 = ceil(ywwl * RA_F) H1ex = 1000000.0 N0zZ = H1ex R3Bf = sum(abs(WKvO * N0zZ) <= aPd6) while R3Bf < IiP9: H1ex = N0zZ N0zZ /= 2 R3Bf = sum(abs(WKvO ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kMCZ(YKHO, _QoW, WTkW):\n return oyIN.linalg.norm(WTkW - _QoW) / oyIN.linalg.norm(WTkW)", "def Yktc(YKHO, EcVT, wz01, xqoZ):\n Mkmy = JFwz(EcVT, wz01)\n if xqoZ == 'l':\n Ymry = 5 * Mkmy ** 2 * oyIN.exp(-oyIN.sqrt(5) * Mkmy / YKHO.l)\n Ie5c = oyIN.sqrt(5) * Mkmy / YKHO.l + 1\n Y...
[ "0.61542714", "0.592842", "0.5898738", "0.589756", "0.5824373", "0.57803863", "0.5684737", "0.56766313", "0.56723964", "0.5664878", "0.5662565", "0.56541836", "0.5653758", "0.56512314", "0.5649636", "0.5636062", "0.56349653", "0.56281936", "0.55953413", "0.55738646", "0.55708...
0.7646707
0
Given a document (represented as a string), return a list of all of the words in that document, in order. Process document by coverting all words to lowercase, and removing any punctuation or English stopwords.
def wr3U(C13M): ntLm = Dhdw.corpus.stopwords.words('english') QPxx = list() bzA8 = list() QPxx = Dhdw.word_tokenize(C13M) for GIN8 in QPxx: GIN8 = GIN8.strip() GIN8 = GIN8.lower() if GIN8 in ntLm or not GIN8 or GIN8 in vIwR.punctuation or (GIN8.strip('=') != GIN8): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(C13M):\n Iras = [GIN8.lower() for GIN8 in Dhdw.word_tokenize(C13M) if GIN8.isalpha()]\n Iras = [GIN8.lower() for GIN8 in Iras]\n dsP0 = []\n for GIN8 in Iras:\n if GIN8 not in vIwR.punctuation and GIN8 not in Dhdw.corpus.stopwords.words('english'):\n dsP0.append(GIN8.lower())...
[ "0.7945455", "0.7920988", "0.7898004", "0.7755041", "0.77347577", "0.76664394", "0.7387016", "0.7339664", "0.72888803", "0.72275144", "0.7075368", "0.7041337", "0.70225614", "0.70190245", "0.70190245", "0.6992113", "0.6973064", "0.69688004", "0.6964989", "0.69493914", "0.6945...
0.7725208
5
Given sentence and image embeddings, compute the error matrix
def On0I(xgqy, M2de): o_ZU = [BCGL(WKvO, LVAh) for WKvO in xgqy for LVAh in M2de] return oyIN.asarray(o_ZU).reshape((len(xgqy), len(M2de)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RlRk(YKHO):\n YKHO.id2word = dict([(YKHO.vocab[GIN8]['id'], GIN8) for GIN8 in YKHO.vocab])\n jXxl = len(YKHO.vocab)\n Aofo = oyIN.zeros((jXxl, YKHO.embed_dim))\n VrXM = set()\n _CE2 = 0\n qqgr = oyIN.zeros(YKHO.embed_dim)\n for bGrB in range(1, jXxl):\n try:\n Aofo[bGrB] ...
[ "0.6236352", "0.60631925", "0.6018525", "0.59150034", "0.58150715", "0.5803172", "0.5692922", "0.56820816", "0.5668799", "0.5664964", "0.5642809", "0.5631807", "0.56111884", "0.56029725", "0.56009895", "0.55958384", "0.5579363", "0.5524484", "0.55223465", "0.55066633", "0.547...
0.6730203
0
Size of the dataset.
def zNig(YKHO): return len(YKHO.selected)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hU8i(YKHO):\n return YKHO.dataset.size", "def hU8i(YKHO):\n if not YKHO._dataset_size:\n YKHO._dataset_size = LxBq(YKHO._hparams.source_dataset.files)\n return YKHO._dataset_size", "def szAg(YKHO):\n return YKHO._dataset.size(dirs=YKHO._dirs)", "def zNig(YKHO):\n return YKHO.data.si...
[ "0.9138172", "0.8446193", "0.83839023", "0.82936084", "0.82011366", "0.81763774", "0.81763774", "0.81763774", "0.81763774", "0.81756335", "0.8165018", "0.816301", "0.8139261", "0.8139261", "0.8139261", "0.8139261", "0.8139261", "0.81073326", "0.8090232", "0.80635065", "0.8007...
0.0
-1
A heap sort algorithm can be implemented by push and pop items in a heap data structure.
def sEWy(ybN4: list, H5ew=None) -> list: zdB2 = x1iM() A90d = avs2(func=H5ew) for ZfUD in ybN4: A90d.heappush(ZfUD) for bGrB in range(len(ybN4)): zdB2.append(A90d.heappop()) return zdB2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sEWy(DumB):\n _eVy.heapify(DumB)\n DumB[:] = [_eVy.heappop(DumB) for YRbF in range(len(DumB))]", "def sEWy(DumB):\n _eVy.heapify(DumB)\n DumB[:] = [_eVy.heappop(DumB) for YRbF in range(len(DumB))]", "def sEWy(list):\n pass", "def qMzV(gGCN):\n p06G = gGCN.tamanio\n for YRbF in range(...
[ "0.80810106", "0.80810106", "0.8065213", "0.7969527", "0.7871505", "0.7779462", "0.7767052", "0.7767052", "0.7754931", "0.7722286", "0.7696757", "0.76917565", "0.76484823", "0.7641402", "0.75963074", "0.75474125", "0.74018455", "0.7368808", "0.730276", "0.7269775", "0.7239735...
0.71074367
25
Get probability of x being positive/negative
def bYyQ(YKHO, WKvO, I1mm): if I1mm == 1: ciZM = YKHO.X.num_positive() else: ciZM = YKHO.X.num_negative() ciZM += YKHO.X.vocab_size() V22M = wr3U(WKvO) JxU2 = epAf.log(YKHO.X.priors[str(I1mm)]) for GIN8 in V22M: sTrf = YKHO._doc_count_for_word(GIN8, flag=I1mm) JxU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t61P(WKvO):\n from tensorflow_probability import distributions\n return distributions.Normal(0, 1).cdf(WKvO)", "def Q7Be(XP5J):\n return XP5J > tuKI.uniform(0.0, 1.0)", "def JxU2(WKvO):\n return 1.0 * c5LJ(WKvO, (0.0, 1.2), (1.0, 1.0), 0.8) + 1.05 * c5LJ(WKvO, (0.6, -1.0), (1.3, 0.7), -0.6)", ...
[ "0.77516997", "0.7646525", "0.760882", "0.7534861", "0.7312508", "0.7217548", "0.7212593", "0.7053256", "0.70349985", "0.6947563", "0.6878752", "0.6875178", "0.68683416", "0.6838652", "0.68095946", "0.6754729", "0.6716682", "0.67123187", "0.67123187", "0.6712007", "0.67010075...
0.0
-1
bin_to_utf(string) string may contain only '1','0',' '. Takes binary bites. Return UTF decoded str. Example
def VK9T(Jkv0): YB8B = bytearray() for ZfUD in Jkv0.split(' '): YB8B.append(int(ZfUD, 2)) return YB8B.decode()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lIJv():\n dcxj, Ac0x, Q6uT, nUeQ = GXo9()\n EMr5 = ''\n for HkJz in range(0, len(Ac0x), 8):\n YB8B = Ac0x[HkJz:HkJz + 8]\n Wxnj = int(YB8B, 2)\n EMr5 += chr(Wxnj)\n return (dcxj, EMr5, Ac0x, Q6uT, nUeQ)", "def HqDN(IWj_: str) -> str:\n assert len(IWj_) % 8 == 0\n exwG =...
[ "0.7198909", "0.6733615", "0.65858203", "0.6539944", "0.65385836", "0.6492881", "0.6360139", "0.63376904", "0.63263893", "0.6300334", "0.6178209", "0.6158652", "0.6157431", "0.61360717", "0.6127543", "0.6118636", "0.6114617", "0.61142415", "0.61050445", "0.6092993", "0.609007...
0.73303455
0
Create and return a new template node.
def b5x0(NtOa): Q6kx = wxI9() Q6kx.scope_key = NtOa return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO):\n if YKHO.node_id:\n raise ValueError('Node already created')\n if not YKHO.connector:\n raise ValueError(\"Gns3Connector not assigned under 'connector'\")\n if not YKHO.project_id:\n raise ValueError('Node object needs to have project_id attribute')\n if not YKHO.t...
[ "0.7092169", "0.68951344", "0.6671383", "0.65100455", "0.6503042", "0.6422178", "0.63820213", "0.6299173", "0.6233802", "0.6233802", "0.6129575", "0.61248887", "0.6032512", "0.60201544", "0.6016594", "0.59659797", "0.5939292", "0.5929075", "0.59224206", "0.5890705", "0.588056...
0.6904548
1
Bind a handler pair to an aliased member.
def lMuw(Q6kx, mWFP, vbQv, q2Xo, NtOa): auXa, mS46 = BVdc(Q6kx, vbQv) if auXa is None or mS46 is None: tO9_ = "alias '%s' does not resolve to a declarative member" raise TypeError(tO9_ % mWFP) DuH_(mWFP, auXa, mS46, q2Xo, NtOa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DuH_(mWFP, Q6kx, mS46, q2Xo, NtOa):\n if mS46.metadata is None or not mS46.metadata.get('d_member'):\n raise TypeError(\"alias '%s' is not a declarative member\" % mWFP)\n if q2Xo.writer is not None and (not mS46.metadata.get('d_readable')):\n raise TypeError(\"alias '%s' is not readable fr...
[ "0.7424383", "0.6093026", "0.60644734", "0.5986479", "0.5921971", "0.58025056", "0.5741825", "0.5683469", "0.5651", "0.55914426", "0.5556978", "0.5556978", "0.5556978", "0.5556978", "0.5556978", "0.5556978", "0.5554496", "0.54737926", "0.5425069", "0.5411162", "0.54094696", ...
0.738595
1
Validate that an object is a Declarative type.
def jNXz(rV9y): if not isinstance(rV9y, type): raise TypeError('%s is not a type' % rV9y) if not issubclass(rV9y, ynDV): raise TypeError("'%s' is not a Declarative type" % rV9y.__name__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YB0o(Jold, a9EH=zR2c.ANDROID):\n if a9EH == zR2c.ANDROID:\n return Jold.obj_type in tA4a.keys()\n else:\n assert False, 'Wrong Platform'", "def e8zD(YKHO, YEnM):\n return isinstance(YEnM, YKHO.type_)", "def xzCw(YKHO):\n YKHO._check_type()", "def ZLj1(YEnM, kN9s):\n if not is...
[ "0.5767053", "0.56969655", "0.5505446", "0.5501776", "0.54739076", "0.54402006", "0.54352033", "0.5432131", "0.5382167", "0.5313318", "0.52798873", "0.5243048", "0.519881", "0.51865125", "0.51820326", "0.51451397", "0.51337975", "0.51331466", "0.5130298", "0.5113282", "0.5109...
0.7657522
0
Compute distortion with given radial distance.
def WFX5(Csk6, diMR, kN9s): fsgT = oyIN.linspace(0, Csk6, Csk6 * 50) cEY3 = 0 nJ9F = diMR['x0'] nxyw = diMR['y0'] cgTt = fsgT - nJ9F v6FV = cEY3 - nxyw Mkmy = oyIN.hypot(cgTt, v6FV) if kN9s == 'symmetric': LEev = diMR['k1'] Xyq7 = diMR['k2'] PDUN = diMR['k3'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SihC(YKHO, CYjz: np.ndarray) -> oyIN.ndarray:\n HGCR: oyIN.ndarray = 1\n if YKHO.k[0]:\n HGCR += YKHO.k[0] * CYjz\n if YKHO.k[1]:\n HGCR += YKHO.k[1] * CYjz * CYjz\n if YKHO.k[2]:\n HGCR += YKHO.k[2] * CYjz * CYjz * CYjz\n if any(YKHO.k[3:6]):\n ycBG = 1\n if Y...
[ "0.7562922", "0.6847956", "0.6509773", "0.6339225", "0.6322459", "0.61489975", "0.6117932", "0.60744816", "0.604182", "0.60390115", "0.6038623", "0.5987627", "0.5950015", "0.59297115", "0.5891333", "0.5875402", "0.5860593", "0.5857393", "0.5832682", "0.58005834", "0.5791976",...
0.6186995
5
Returns the function corresponding to a rule.
def odII(YKHO, bKqw): assert bKqw in YKHO.rules.keys(), 'Rule name not in current set of rules' return YKHO.rules[bKqw]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ciTW(eHNT):\n return rYLR(eHNT)", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n ...
[ "0.71336573", "0.6980094", "0.6980094", "0.6980094", "0.6715975", "0.6715975", "0.6715975", "0.6484821", "0.6407591", "0.6407591", "0.6407591", "0.6407591", "0.6407591", "0.6407591", "0.6407591", "0.6319304", "0.62840444", "0.6229967", "0.62228966", "0.6199889", "0.61739576",...
0.63067126
16
Generate a _pb2.py from a .proto file. Invokes the Protocol Compiler to generate a _pb2.py from the given .proto file. Does nothing if the output already exists and is newer than the input.
def kuq1(JZXy): hlel = JZXy.replace('.proto', '_pb2.py') if not Hy7s.path.exists(hlel) or (Hy7s.path.exists(JZXy) and Hy7s.path.getmtime(JZXy) > Hy7s.path.getmtime(hlel)): print('Generating %s...' % hlel) if not Hy7s.path.exists(JZXy): HwRy.stderr.write("Can't find required file: %s\...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eODk(JZXy):\n hlel = JZXy.replace('.proto', '_pb2.py')\n if not Hy7s.path.exists(hlel) or (Hy7s.path.exists(JZXy) and Hy7s.path.getmtime(JZXy) > Hy7s.path.getmtime(hlel)):\n print('Generating %s...' % hlel)\n if not Hy7s.path.exists(JZXy):\n HwRy.stderr.write(\"Can't find require...
[ "0.75922966", "0.7167947", "0.7146357", "0.70081615", "0.66439784", "0.656944", "0.6567505", "0.64830565", "0.6109961", "0.60823405", "0.6052203", "0.6043621", "0.5953926", "0.59039897", "0.5865753", "0.57863194", "0.571365", "0.56317145", "0.5610454", "0.5606293", "0.5500144...
0.7371245
1
Generate JWT IAM token
def gNTt(bD7m, H5ew): pB3N = 'grant_type=urn:ibm:params:oauth:grant-type:apikey&apikey={}'.format(H5ew) ff1u = {'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json'} try: nPrm = BJsk.query_wrapper('auth', 'POST', '/identity/token', ff1u, pB3N)['data'] return nPrm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cWAO(YKHO):\n import jwt\n from datetime import datetime, timedelta\n from django.conf import settings\n JRYC = datetime.now() + timedelta(days=60)\n eOtH = jwt.encode({'id': YKHO.pk, 'username': YKHO.username, 'exp': int(JRYC.strftime('%s'))}, settings.SECRET_KEY, algorithm='HS256')\n return...
[ "0.7822805", "0.7817401", "0.7787527", "0.77091163", "0.76944023", "0.76842445", "0.757803", "0.7521471", "0.7340754", "0.73173773", "0.7287648", "0.72640634", "0.7256946", "0.7224735", "0.7157771", "0.7133933", "0.7123265", "0.70758086", "0.705345", "0.705345", "0.705345", ...
0.0
-1
Calculate the Pchance values for the candidates self.Pchance filled in place Added as P_c to candidates Table
def NKhd(YKHO, MhRM='driver', ztI6=False): if ztI6 and YKHO.filter + '_orig' not in YKHO.candidates.keys(): JLV9 = jaaa.get_ebv(YKHO.frb.coord, definition='SandF')['meanValue'] bsOI = D2Np.extinction_correction(YKHO.filter, JLV9) YKHO.candidates[YKHO.filter + '_orig'] = YKHO.candidates[YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZI3J(exwG, XP5J):\n wjRY = 0.0\n for G1Hx in range(exwG + 1):\n wjRY += ap9_(exwG, G1Hx, exact=False) * XP5J ** G1Hx * (1 - XP5J) ** (exwG - G1Hx)\n return wjRY", "def uGlI(mSXZ):\n return sum(mSXZ)", "def gq2v(YKHO):\n if YKHO.fine_frequency != 0:\n if YKHO.number_of_courses %...
[ "0.6194795", "0.6146503", "0.61316603", "0.6109825", "0.592361", "0.5868454", "0.58537465", "0.58435285", "0.5730609", "0.572128", "0.56551254", "0.5618404", "0.5605583", "0.5597681", "0.5597638", "0.5592523", "0.5558241", "0.55329144", "0.5530034", "0.55272853", "0.55190235"...
0.56609064
10
Calculate p(x|O) and assign to p_xOi self.p_xOi is set in place
def qF_m(YKHO, LQtx=0.3, **B2fa): udk0 = YKHO.frb.eellipse.copy() if YKHO.frb.sig_a < LQtx or YKHO.frb.sig_b < LQtx: qmLP.warn('Enforcing a minimum semi-axis of {} for the localization'.format(LQtx)) udk0['a'] = max(YKHO.frb.sig_a, LQtx) udk0['b'] = max(YKHO.frb.sig_b, LQtx) YKHO.p_xOi = LMW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KF3S(YKHO, **B2fa):\n YKHO.calc_pxO(**B2fa)\n YKHO.calc_pxU()\n YKHO.calc_px()\n YKHO.P_Oix = YKHO.prior_Oi * YKHO.p_xOi / YKHO.p_x\n YKHO.candidates['P_Ox'] = YKHO.P_Oix\n YKHO.P_Ux = YKHO.prior_U * YKHO.p_xU / YKHO.p_x", "def b7La(YKHO, WKvO):\n V6IE = 0.0\n for aAe4 in reversed(YKH...
[ "0.82409185", "0.5986716", "0.58089197", "0.56979567", "0.5656994", "0.5618129", "0.5611389", "0.5610136", "0.5603298", "0.5598299", "0.55969834", "0.5576857", "0.5542931", "0.55082834", "0.55072534", "0.5493133", "0.5490686", "0.5487989", "0.5479724", "0.54692256", "0.543337...
0.5938485
2
Calculate p(x|U) and assign to p_xU
def i5yP(YKHO): YKHO.p_xU = LMWo.px_U(YKHO.max_radius)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VY59(YKHO, WKvO):\n return eQSh.norm.ppf(YKHO.CDF(WKvO))", "def KF3S(YKHO, **B2fa):\n YKHO.calc_pxO(**B2fa)\n YKHO.calc_pxU()\n YKHO.calc_px()\n YKHO.P_Oix = YKHO.prior_Oi * YKHO.p_xOi / YKHO.p_x\n YKHO.candidates['P_Ox'] = YKHO.P_Oix\n YKHO.P_Ux = YKHO.prior_U * YKHO.p_xU / YKHO.p_x", ...
[ "0.6808744", "0.67470646", "0.6611508", "0.6593435", "0.6443371", "0.632724", "0.62382394", "0.613177", "0.60677487", "0.60240984", "0.6005079", "0.59901315", "0.5981278", "0.5938731", "0.5937166", "0.5924601", "0.5896004", "0.5888657", "0.5877085", "0.5858312", "0.5854887", ...
0.79550624
0
Determine if self (board) and other(board) are equal
def xa14(YKHO, Elif): return YKHO.board == Elif.board
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif) -> None:\n for G1Hx, Ty9i in enumerate(YKHO.board):\n if Ty9i != Elif.board[G1Hx]:\n return False\n return True", "def xa14(YKHO, Elif):\n for rdlD in range(YKHO.n):\n if YKHO.board[rdlD] != Elif.board[rdlD]:\n return False\n return True", "d...
[ "0.8811603", "0.8580009", "0.8375203", "0.8119644", "0.79856634", "0.7921919", "0.78699124", "0.7818962", "0.77137494", "0.7700428", "0.7697556", "0.7679941", "0.7679941", "0.766595", "0.7635343", "0.7635343", "0.7635343", "0.7612382", "0.7532614", "0.75100595", "0.749481", ...
0.88022506
1
Convert a datetime to UTC.
def IFrW(YKHO, _c1T): if _c1T.tzinfo is not None: _c1T = _c1T.astimezone(YKHO.tz_utc) else: _c1T = _c1T.replace(tzinfo=YKHO.tz_local) _c1T = _c1T.astimezone(YKHO.tz_utc) return _c1T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S0gT(JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=FXGE.utc)\n else:\n return JRYC.astimezone(FXGE.utc)", "def s6Dy(JRYC: datetime) -> qcWV:\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=oEnn())\n return JRYC.astimezone(oEnn())", "def lVFF(ppPa):\n ...
[ "0.77849716", "0.75058514", "0.74497586", "0.74497586", "0.74497586", "0.74107426", "0.7405147", "0.7403654", "0.72656757", "0.71634954", "0.7102073", "0.69719094", "0.6967771", "0.69056", "0.68823105", "0.68538535", "0.68381095", "0.6791557", "0.6766025", "0.67250633", "0.67...
0.72791326
8
Convert a datetime to the observer's timezone.
def j1ha(YKHO, _c1T): if _c1T.tzinfo is not None: _c1T = _c1T.astimezone(YKHO.tz_local) else: _c1T = _c1T.replace(tzinfo=YKHO.tz_utc) _c1T = _c1T.astimezone(YKHO.tz_local) return _c1T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def csYv(YKHO, JRYC):\n if jkBK(JRYC):\n if JRYC.tzinfo == None or JRYC.tzinfo.utcoffset(JRYC) == None:\n return JRYC\n else:\n return JRYC.astimezone(YKHO.args.tz)\n elif isXP(JRYC):\n return JRYC\n else:\n raise ValueError('Expected datetime or date obje...
[ "0.68690753", "0.6810309", "0.67775357", "0.6702147", "0.6577165", "0.64757377", "0.6386884", "0.6320343", "0.6304063", "0.6244073", "0.6199291", "0.618724", "0.6113522", "0.6103425", "0.6103425", "0.6103425", "0.6095392", "0.60908544", "0.5984139", "0.59757566", "0.5960107",...
0.0
-1
Set the date for the observer. This is converted and stored internally in the timezone set for the observer.
def wjGx(YKHO, _c1T): YKHO.date = YKHO.date_to_local(_c1T) YKHO.site.date = xbVl.Date(YKHO.date_to_utc(YKHO.date))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wjGx(YKHO, _c1T):\n YKHO.date = _c1T", "def wjGx(YKHO, _c1T):\n YKHO.date = _c1T\n return", "def AYlF(YKHO, _c1T):\n YKHO.date = _c1T", "def wjGx(YKHO, _c1T):\n YKHO.data['date'] = _c1T", "def _c1T(YKHO, _c1T):\n YKHO._date = _c1T", "def dcJF(YKHO, dcJF):\n YKHO.__date = dcJF", ...
[ "0.7835349", "0.78085804", "0.7727623", "0.75793207", "0.74578774", "0.7449714", "0.7449714", "0.73792404", "0.73792404", "0.73792404", "0.73792404", "0.73792404", "0.72798663", "0.72754437", "0.6969783", "0.6931557", "0.6742604", "0.6731562", "0.6713876", "0.6703831", "0.666...
0.7480913
4
Returns sunset in observer's time.
def IiKz(YKHO, _c1T=None): YKHO.site.horizon = YKHO.horizon YKHO._set_site_date(_c1T) Bc8Y = YKHO.site.next_setting(YKHO.sun) Bc8Y = YKHO.date_to_local(Bc8Y.datetime()) return Bc8Y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IiKz(Emd4, _c1T):\n return _c1T + OhhX.days_from_hours(18) + (Emd4.UJJAIN.longitude - Emd4.LOCATION.longitude) / 360 - Emd4.equation_of_time(_c1T) + 1577917828 / 1582237828 / 360 * (-Emd4.ascensional_difference(_c1T, Emd4.LOCATION) + 3 / 4 * Emd4.solar_sidereal_difference(_c1T))", "def x9Os(YKHO):\n re...
[ "0.61782646", "0.6167092", "0.6065353", "0.597179", "0.5909645", "0.58766127", "0.5848274", "0.57731354", "0.5754889", "0.566252", "0.56117", "0.5611047", "0.5610758", "0.5610758", "0.5610758", "0.5584906", "0.54879636", "0.5460466", "0.5454881", "0.54217404", "0.53973305", ...
0.5408359
20
Compute Greenwich Mean Sidereal Time
def v7eR(YKHO, _c1T): lT0l = YKHO.julian_date(_c1T) Kt_s = (lT0l - 2451545.0) / 36525.0 uVkt = 280.46061837 + 360.98564736629 * (lT0l - 2451545.0) + 0.000387933 * Kt_s * Kt_s - Kt_s * Kt_s * Kt_s / 38710000.0 Hwhf = xbVl.degrees(uVkt * oyIN.pi / 180.0) return Hwhf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hwhf(YKHO):\n DB0o = oyIN.array([24110.54841, 8640184.812866, 0.093104, -6.2e-06])\n return oyIN.mod(YKHO.polynomial_sum(DB0o, YKHO.T) / YKHO.day, YKHO.turn)", "def aevO(YKHO):\n xuvi = oyIN.array([0.014506, 4612.156534, 1.3915817, -4.4e-07, -2.9956e-05, -3.68e-08])\n WH7K = YKHO.polynomial_sum(x...
[ "0.64064705", "0.6239459", "0.6216831", "0.61418617", "0.6088164", "0.59599626", "0.5910298", "0.58426213", "0.58264726", "0.57346576", "0.5721127", "0.5710391", "0.5532592", "0.5519946", "0.550801", "0.54954463", "0.54917836", "0.5486549", "0.54727477", "0.5413248", "0.54040...
0.594907
6
Compute Local Mean Sidereal Time
def iRTh(YKHO, _c1T, fopC): Hwhf = YKHO.calc_GMST(_c1T) pMJl = xbVl.degrees(Hwhf + fopC) return pMJl.norm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(YKHO):\n return pTmx(YKHO, stat='mean')", "def JMmr(YKHO):\n pass", "def afKt(YKHO):\n WLUx = 0.0\n QX01 = YKHO.system.spending_time.values()\n yKcO = int(len(QX01) / 2.0)\n Os4s = int(len(QX01) / 3.0 * 2)\n for YRbF in range(yKcO, Os4s):\n WLUx += QX01[YRbF]\n return WL...
[ "0.6500592", "0.6319622", "0.6237077", "0.617427", "0.6126128", "0.6035979", "0.5944296", "0.58628786", "0.5856649", "0.5850803", "0.5829351", "0.5794561", "0.5779006", "0.5744898", "0.5714191", "0.5705241", "0.5680264", "0.5679926", "0.56741244", "0.56393164", "0.5616678", ...
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.82368803", "0.79901737", "0.7849152", "0.78468513", "0.77520275", "0.7625378", "0.7625378", "0.76225406", "0.76225406", "0.75483394", "0.7522958", "0.7470355", "0.7469358", "0.7447144", "0.7447144", "0.74314755", "0.7427648", "0.7389925", "0.7351721", "0.73424315", "0.7322...
0.0
-1
Returns the url to access a detail record for this restaurant.
def hlzF(YKHO): return gxEw('restaurant-detail', args=[str(YKHO.id)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pazJ(rXcN):\n return gxEw('recipeapp:recipe-detail', args=[rXcN])", "def hlzF(YKHO):\n return gxEw('food-detail', args=[str(YKHO.id)])", "def iLuo(rXcN):\n return gxEw('recipe:recipe-detail', args=[rXcN])", "def iLuo(rXcN):\n return gxEw('recipe:recipe-detail', args=[rXcN])", "def iLuo(rXcN...
[ "0.7199997", "0.7085476", "0.70539486", "0.69606525", "0.69606525", "0.69606525", "0.69464946", "0.69409937", "0.6940679", "0.69227415", "0.6914714", "0.6874965", "0.6848062", "0.6754027", "0.6751582", "0.6739479", "0.6713145", "0.6687325", "0.66784716", "0.66696656", "0.6649...
0.7759624
0