query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns a dictionary containing all keys/values of __dict__ of the instance
def MNRr(YKHO): co6n = YKHO.__dict__.copy() co6n['__class__'] = YKHO.__class__.__name__ if 'created_at' in co6n: co6n['created_at'] = co6n['created_at'].strftime(ITS7) if 'updated_at' in co6n: co6n['updated_at'] = co6n['updated_at'].strftime(ITS7) return co6n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return {G1Hx: Ty9i for G1Hx, Ty9i in vars(YKHO).items()}", "def dict(Emd4):\n if Emd4._dict is None:\n Emd4._dict = {hkS8: getattr(Emd4, hkS8) for hkS8 in Emd4.keys()}\n return Emd4._dict", "def dict(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YKHO.__dict...
[ "0.81226015", "0.80440646", "0.80298525", "0.80298525", "0.80298525", "0.80298525", "0.80298525", "0.80298525", "0.80298525", "0.8000097", "0.79895", "0.7900744", "0.7894605", "0.78834677", "0.7827142", "0.78186625", "0.7810879", "0.7778907", "0.7746202", "0.7722997", "0.7717...
0.0
-1
new_weight_variable(shape) > Tensorflow variable of the given shape Call this function instead of making the variable yourself so it gets tracked for model saving/loading. Uses Xavier initialization times 0.2, to make nearidentity transforms in residual blocks.
def XXgA(YKHO, ROpF): YKHO.total_parameters += oyIN.product(ROpF) z2bo = 0.2 * (2.0 / oyIN.product(ROpF[:-1])) ** 0.5 SRYB = ZylS.Variable(ZylS.truncated_normal(ROpF, stddev=z2bo)) YKHO.parameters.append(SRYB) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.Variable(RqgG)", "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)", "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.Variable(RqgG)", "def E9N2(ROp...
[ "0.8203951", "0.8032488", "0.7994736", "0.7994736", "0.7994736", "0.79678893", "0.79634714", "0.796197", "0.7960938", "0.7960938", "0.7960938", "0.7960938", "0.7960938", "0.7960938", "0.7960938", "0.7960938", "0.7960938", "0.7960938", "0.7850183", "0.77009714", "0.76663965", ...
0.8515648
0
new_bias_variable(shape) > Tensorflow variable of the given shape See new_weight_variable's doc string.
def khPw(YKHO, ROpF): YKHO.total_parameters += oyIN.product(ROpF) SRYB = ZylS.Variable(ZylS.constant(0.0, shape=ROpF)) YKHO.parameters.append(SRYB) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RhdW(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG)", "def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG)", "def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG)", "def Y7ph(ROpF):\n RqgG =...
[ "0.8350253", "0.8140928", "0.8140928", "0.8140928", "0.8129761", "0.81218415", "0.81146175", "0.81146175", "0.81146175", "0.81146175", "0.81146175", "0.81146175", "0.81146175", "0.81146175", "0.81146175", "0.81146175", "0.8099164", "0.80975", "0.8061959", "0.8048311", "0.8030...
0.8096518
18
stack_nonlinearity() Update self.flow with the currently configured nonlinearity.
def xNr8(YKHO): YKHO.flow = YKHO.NONLINEARITY[0](YKHO.flow)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_xE(YKHO):\n oyIN.random.seed(1)\n I9ur = 5\n bO89 = 4\n ywwl = 3\n JRYC = 1.0\n Xlun = 10\n RfSx = Xlun * JRYC\n iV4n = lambda Ty9i: oyIN.tanh(Ty9i)\n CDgX = D_t2(I9ur)\n pIfW = D_t2(bO89)\n UndA = 1 + 2 * oyIN.random.randn(I9ur, Xlun)\n KPvz = -1 + oyIN.random.randn(bO89,...
[ "0.54182434", "0.52753675", "0.5014358", "0.5010284", "0.49993876", "0.49957225", "0.49200794", "0.49059096", "0.48781466", "0.486477", "0.47963938", "0.478261", "0.4767325", "0.4766994", "0.47378692", "0.47308987", "0.47159183", "0.4714516", "0.47101575", "0.4679491", "0.466...
0.85404706
0
Access a page that does not exist
def mQ_b(P4t4, x0hE): geh0 = x0hE.get('/notexistpage') assert geh0.status_code == 404 assert '404 Not Found' in str(geh0.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LOFq(YKHO):\n pmON = '/no/such/page'\n with YKHO.app.test_client() as x0hE:\n x0hE.get(pmON)\n YKHO.assertContext('current_page', YKHO.app.get_page(pmON))", "def m7kB(tTpl):\n return ('Sorry, Nothing at this URL.', 404)", "def m7kB(tTpl):\n return ('Sorry, Nothing at this URL.', 404)"...
[ "0.7534046", "0.7478333", "0.7478333", "0.7478333", "0.7478333", "0.7478333", "0.7478333", "0.7478333", "0.7478333", "0.7449267", "0.74483955", "0.74483955", "0.74483955", "0.74483955", "0.74483955", "0.74483955", "0.74483955", "0.7405953", "0.73512465", "0.7348351", "0.73423...
0.0
-1
Initialize the data set.
def FIMM(YKHO, tRiF: list, yr4k: list, **YoQM): assert all([type(cbXH) in (llWB, oyIN.ndarray) for cbXH in tRiF]), 'input_seqs has to be list of pytorch tensors' assert all([type(dbXs) in (llWB, oyIN.ndarray) for oQvm in YoQM.values() for mvm2 in oQvm for dbXs in mvm2]), 'Activations are a list of lists of pyto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.__dataset = None", "def FIMM(YKHO):\n YKHO.data_set = []\n YKHO.finalized_data = n61v()", "def qqxd(YKHO, nPrm):\n assert type(nPrm) is dict, 'dict expected: %r' % type(nPrm)\n assert len(nPrm) is 1, 'size of dict should be 1: %r' % len(nPrm)\n YKHO._name = nPrm.keys()[...
[ "0.7246609", "0.7137691", "0.7058578", "0.70542413", "0.69983727", "0.69341785", "0.69255835", "0.6914268", "0.68257856", "0.6786231", "0.67773956", "0.6771895", "0.6770875", "0.673227", "0.6675077", "0.6669931", "0.6640959", "0.66032535", "0.6598419", "0.65950245", "0.659502...
0.0
-1
set up the cell.
def FIMM(YKHO, cuu0, zi3C=None, Kz5H=ZylS.nn.tanh, Q5Hy=ZylS.random_normal_initializer(stddev=0.15), yPTj=ZylS.constant_initializer(0.0, dtype=ZylS.float32), nDng=False): YKHO._num_units = cuu0 YKHO._input_size = zi3C or cuu0 YKHO._W_init = Q5Hy YKHO._b_init = yPTj YKHO._weightnorm = nDng YKHO._...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.cell = riCw()\n YKHO.livingCell = riCw(True)\n YKHO.deadCell = riCw(False)", "def FCbF(YKHO):\n YKHO.gameBoard = rApN((100, 100), riCw)", "def K7Bw():\n YKHO.weightGenerate()", "def FCbF(YKHO):\n YKHO.matrix = qw7D([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14...
[ "0.7308226", "0.676752", "0.6632224", "0.65267813", "0.64325315", "0.6396964", "0.63474303", "0.6300818", "0.6227101", "0.6180828", "0.616189", "0.6097996", "0.6097996", "0.60465354", "0.60346377", "0.60346377", "0.602997", "0.6025616", "0.60184234", "0.599613", "0.59906274",...
0.0
-1
A residual network of n inputs and m outputs
def JjNS(*g4y1, **B2fa): Pjjs = B2fa['inp_shapes'] mM9L = B2fa['out_shapes'] NArs = B2fa['params'] k4fY = B2fa['layer_width'] ZMJr = B2fa['nblocks'] Z1S6 = B2fa['block_size'] BKBj = B2fa['output_args'] _QYm = len(Pjjs) TNBq = len(mM9L) AhL1 = oyIN.sum([ETfU[1] for ETfU in Pjjs]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuHL(he5B, input):\n ROpF = input.shape\n bGrB, MKlR, yzQ0, Csk6 = ROpF\n jtyf = yHwh(he5B, (5, 5), padding='valid', activation='elu')(input)\n V70B = yHwh(he5B, (1, 1), padding='valid', activation='linear')(jtyf)\n vCua = Ym4f(cropping=2)(input)\n dcxj = XVRe()([V70B, vCua])\n return dcxj...
[ "0.652352", "0.63960725", "0.63544977", "0.6305939", "0.63055587", "0.62190336", "0.62009865", "0.5987517", "0.5945513", "0.5939205", "0.588968", "0.58650285", "0.58614606", "0.5860717", "0.5857361", "0.58434176", "0.5825535", "0.5823314", "0.58177376", "0.5752803", "0.573166...
0.63786733
2
PNG representation of the image object for IPython. Returns In memory binary stream containing a PNG matplotlib image.
def g2G3(YKHO): import matplotlib.pyplot as QrM1 from io import BytesIO with BytesIO() as o1P6: QrM1.savefig(o1P6, format='png') QrM1.close() o1P6.seek(0) ichU = o1P6.read() return ichU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RAmn(YKHO):\n N9D1 = YKHO.owner.mol\n s3dT = Lt5w.kekulizeStructures\n zNig = Lt5w.molSize\n VKhi = Lt5w.drawOptions\n return pBYm._moltoimg(N9D1, zNig, YKHO.aix, '', returnPNG=True, drawOptions=VKhi, kekulize=s3dT, highlightBonds=YKHO.bix)", "def RAmn(YKHO):\n N9D1 = YKHO.owner.mol\n s3...
[ "0.76063955", "0.76063955", "0.72024304", "0.6839963", "0.67931193", "0.66697204", "0.6665794", "0.6601448", "0.6480137", "0.64575285", "0.64387643", "0.6420609", "0.64002985", "0.6397437", "0.63453823", "0.6312009", "0.62771016", "0.62767845", "0.6261737", "0.62594944", "0.6...
0.71542364
3
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') QrM1.imshow(Bcwd, interpolation='nearest...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.78157204
90
Get user's home directory
def OIWm(YKHO): yvT9 = YKHO._call('GETHOMEDIRECTORY') return yvT9.json()['Path']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aG1h():\n return Hy7s.path.expanduser('~')", "def vY8Y():\n try:\n AGPF = Hy7s.path.expanduser('~')\n except EnvironmentError:\n AGPF = None\n return AGPF", "def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy", "def ItBp():\n return H...
[ "0.88848305", "0.88338107", "0.8777055", "0.8703801", "0.8641333", "0.85045415", "0.844312", "0.844312", "0.8367658", "0.83538747", "0.8352525", "0.8324852", "0.8210724", "0.81417465", "0.81253844", "0.78870016", "0.77941823", "0.7764308", "0.76718944", "0.73236984", "0.71853...
0.7685942
18
Requires an authenticated User to be logged in. Returns and redirects the client to blog/urls.py post_detail namespace route if a Post Model object data is located in the database using the primary key argument and the HTTP request is type post. Otherwise, returns the http request passed as an argument and blog/comment...
def kzWn(QePW, _sei): m8z6 = Iofl(T97t, pk=_sei) if QePW.method == 'POST': L03z = rGVl(QePW.POST) if L03z.is_valid(): aM_I = L03z.save(commit=False) aM_I.post = m8z6 aM_I.save() return vKnz('post_detail', pk=m8z6.pk) else: L03z = rGVl()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, Fi3q):\n if not YKHO.user:\n YKHO.redirect('/login')\n return", "def m8z6(YKHO, QePW, _sei):\n m8z6 = xwcw.objects.get(pk=int(_sei))\n uJjO = YKHO.request.session.get('USER_ID')\n try:\n CBIr = mv1M.objects.get(pk=uJjO)\n except:\n pass\n TBsA = YKHO.r...
[ "0.7207535", "0.69991153", "0.698315", "0.69428104", "0.67448294", "0.652649", "0.6462363", "0.6410865", "0.6410125", "0.6402617", "0.63764405", "0.6341394", "0.632828", "0.6301832", "0.6272302", "0.62517333", "0.615384", "0.61209065", "0.6118385", "0.6118213", "0.6118201", ...
0.5584956
85
Requires an authenticated User to be logged in. Returns and redirects the client to blog/urls.py post_detail namespace route after running the Comment class's approve function if a Comment Model object data is located in the database using the primary key argument.
def G48P(QePW, _sei): aM_I = Iofl(jY1u, pk=_sei) aM_I.approve() return vKnz('post_detail', pk=aM_I.post.pk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n Fi3q = int(YKHO.request.get('post_id'))\n m8z6 = f5si.get_by_id(Fi3q)\n aM_I = YKHO.request.get('comment')\n bSab = YKHO.get_active_user().key().id()\n if bSab:\n aM_I = TYFT(post_id=Fi3q, content=aM_I, submitter_id=bSab)\n aM_I.put()\n YKHO.redirect('/%s' % st...
[ "0.69840616", "0.69826704", "0.693177", "0.6726221", "0.6691116", "0.6506047", "0.6444186", "0.6382295", "0.63590306", "0.6339495", "0.6264761", "0.624302", "0.62418306", "0.6219866", "0.61213666", "0.605616", "0.60560226", "0.60325664", "0.6032038", "0.5987916", "0.59518987"...
0.7245028
0
Requires an authenticated User to be logged in. Returns and redirects the client to blog/urls.py post_detail namespace route using the instantiated Comment Model's Post Model primary key after running the Comment class's delete function if a Comment Model object data is located in the database using the primary key arg...
def R4in(QePW, _sei): aM_I = Iofl(jY1u, pk=_sei) m3Ns = aM_I.post.pk aM_I.delete() return vKnz('post_detail', pk=m3Ns)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n pQGt = int(YKHO.request.get('comment_id'))\n Fi3q = YKHO.request.get('post_id')\n aM_I = TYFT.get_by_id(pQGt)\n if aM_I.submitter_id == YKHO.get_active_user().key().id():\n aM_I.delete()\n else:\n P1dF(403)\n YKHO.redirect('/%s' % Fi3q)", "def NMoC(YKHO, Fi3q, A0...
[ "0.73576534", "0.7224971", "0.7090542", "0.69870394", "0.68021595", "0.6777405", "0.67201716", "0.6683294", "0.66761184", "0.65762895", "0.6574789", "0.652644", "0.65202594", "0.65099466", "0.65032953", "0.6467067", "0.64184093", "0.63843405", "0.6360592", "0.63506943", "0.63...
0.69095355
4
write svg image to file.
def qrQM(YKHO, _RR0): YKHO.finalizePlot() ERMG = YKHO.mElements.keys() ERMG.sort() ERMG.reverse() JRC0, LChT, IA3S, dCLF = (0, 0, 0, 0) for G1Hx in ERMG: for tTpl in YKHO.mElements[G1Hx]: for WKvO in ('x', 'x2', 'x1'): if WKvO in tTpl.attributes: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjPL(vIwR, gIsw):\n G6EG = nUeQ(gIsw, 'w')\n G6EG.write(vIwR)\n G6EG.close()", "def xkzz(Ux0P, g_NO):\n nPrm = opie.to_string(g_NO).encode('utf-8')\n with lGU7.open(Ux0P, 'wb') as eHNT:\n eHNT.write(nPrm)", "def zv6Z(gIsw, pmON=fEnG):\n QrM1.ioff()\n QrM1.savefig(pmON + gIsw + '...
[ "0.7582571", "0.74299157", "0.7339477", "0.7324265", "0.7196023", "0.6955805", "0.6924028", "0.69170725", "0.6837827", "0.6797053", "0.6786539", "0.6734499", "0.67318106", "0.6618196", "0.65872353", "0.6563173", "0.65619725", "0.652626", "0.650355", "0.6480696", "0.64463663",...
0.6736362
11
Retrieve current values of the RAMSTKCondition data model attributes.
def h6gc(YKHO): mIvx = {'condition_id': YKHO.condition_id, 'description': YKHO.description, 'condition_type': YKHO.cond_type} return mIvx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n if YKHO.airly.data_available:\n if YKHO.type == usBe:\n YKHO._attrs[GIvC] = YKHO.airly.data[GIvC]\n if YKHO.type == VRJD:\n YKHO._attrs[TQLQ] = YKHO.airly.data[TQLQ]\n if YKHO.type == oiVz:\n YKHO._attrs[FfQ0] = YKHO.airly.data[wdlc]\n ...
[ "0.6386308", "0.62919486", "0.618649", "0.5791889", "0.5778499", "0.57663786", "0.57146996", "0.5657344", "0.5657344", "0.5654857", "0.5643091", "0.5637182", "0.557624", "0.5530247", "0.55266535", "0.5516283", "0.5512417", "0.5508254", "0.55056083", "0.5504807", "0.54875106",...
0.5532082
13
Test that we get None if the peer did not exist.
def bUik(YKHO): jGRS = YKHO.pybird.get_peer_status('HAMSTER') YKHO.assertEquals(jGRS, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pdbo(YKHO):\n pass", "def mcDf(YKHO):\n pass", "def jeBK(YKHO):\n N5z6, x0hE = WbWq()\n assert N5z6.get_peer_finished() is not None\n assert len(N5z6.get_peer_finished()) > 0", "def jYLz(YKHO) -> h8nf[Wf04]:\n return YKHO.__peer", "def CSX2(YKHO):\n YKHO.n = Edrf.make_compact_peer_...
[ "0.6992142", "0.6722471", "0.6348456", "0.6336912", "0.63149285", "0.61800516", "0.6118443", "0.60864395", "0.6052176", "0.60412437", "0.59487545", "0.5923891", "0.589042", "0.5803551", "0.58015877", "0.5766616", "0.5737624", "0.57334256", "0.57176846", "0.5652942", "0.563424...
0.74413157
0
Test that improper characters are removed from the peer_name field before it is sent to BIRD.
def up_k(YKHO): GNJG = YKHO.pybird.get_peer_status('PS1{"\'}') YKHO.assertFalse(GNJG['up'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DJpq(YKHO):\n YKHO.party_test_data['name'] = ''\n geh0 = hQjf(YKHO.party_test_data)\n YKHO.assertDictEqual(geh0, {'message': 'name can not be an empty string', 'code': 400})", "def cXal(YKHO):\n YKHO.assertEqual(first=LYP8.format_trainer_code('111122223333'), second='1111 2222 3333')", "def sET...
[ "0.58738524", "0.5852198", "0.5825089", "0.5814362", "0.56998473", "0.56782395", "0.56404686", "0.5633754", "0.56220657", "0.5603528", "0.5590778", "0.5590188", "0.5574394", "0.5566225", "0.5553455", "0.5526239", "0.5521892", "0.55050325", "0.549068", "0.54869825", "0.5471463...
0.7141904
0
Plot a scatter plot where each dot is a team with the team's 3 letter label written right next to the dot
def gHU_(jQ3Z, pHna, qhOe, leAC='None'): LZpg, aNZO = QrM1.subplots() aNZO.scatter(jQ3Z[pHna], jQ3Z[qhOe]) for YRbF, FUjE in enumerate(jQ3Z['Tm']): aNZO.annotate(FUjE, (jQ3Z[pHna][YRbF], jQ3Z[qhOe][YRbF])) if leAC != 'None': QrM1.title(leAC) QrM1.xlabel(pHna) QrM1.ylabel(qhOe) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AILo(bJqe, leAC='', VoLU='', IICq='', rJco=None, AwvI=None, uCoH=None, Z7I_=None):\n if rJco is None:\n rJco = bJqe.teams\n if Z7I_ is None:\n Z7I_ = bJqe.teams\n kj9G.title(leAC)\n kj9G.xlabel(VoLU)\n kj9G.ylabel(IICq)\n fUYa = []\n bEXe = []\n for dZPi in rJco:\n ...
[ "0.6812625", "0.6743105", "0.6531064", "0.64944744", "0.6415196", "0.63348967", "0.6196487", "0.61582124", "0.61198574", "0.61119634", "0.60986495", "0.6062248", "0.60458124", "0.6023736", "0.5950862", "0.5949963", "0.58933526", "0.58924043", "0.5869602", "0.5867772", "0.5867...
0.76526475
0
Plot the scatter plot across all years for two stats
def sH_3(pHna, qhOe, jQ3Z): PPIZ = list(jQ3Z) for PdPb in PPIZ[1:]: jzdc = jQ3Z[str(PdPb)][pHna].tolist() Fg_i = jQ3Z[str(PdPb)][qhOe].tolist() QrM1.scatter(jzdc, Fg_i) QrM1.xlabel(pHna) QrM1.ylabel(qhOe) QrM1.legend(PPIZ[1:]) QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oDJz(YKHO):\n ulWt = sorted(set(YKHO.prediction_df_without_covid19['Year']))\n fdrs = YKHO.prediction_df_without_covid19[YKHO.prediction_df_without_covid19['Country'].isin([YKHO.country])].sort_values(['Year'], ascending=[True])\n Eox3 = YKHO.prediction_df_with_covid19[YKHO.prediction_df_with_covid19[...
[ "0.66461515", "0.6438722", "0.6437078", "0.6405757", "0.627282", "0.62554306", "0.61248636", "0.6069393", "0.60035396", "0.5929137", "0.59220064", "0.59144014", "0.58671606", "0.5847337", "0.58392614", "0.58094466", "0.5798916", "0.5792154", "0.5766323", "0.57558006", "0.5743...
0.83430797
0
This function plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues, ux8D=False): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') QrM1.imshow(Bcwd, interpolat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):\n if NkkI:\n Bcwd = Bcwd.astype('float') / oyIN.sum(Bcwd.ravel())\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n print(Bcwd)\n LZpg = QrM1.figure\n ...
[ "0.8256267", "0.82472974", "0.822455", "0.8177322", "0.8174471", "0.81567466", "0.8148295", "0.81454587", "0.8145165", "0.8141885", "0.8138667", "0.81362265", "0.8131238", "0.8126612", "0.81131643", "0.811115", "0.8105378", "0.81041294", "0.81027037", "0.810214", "0.8097235",...
0.0
-1
Return true if we should restore the controller parameters when moving around, false if not.
def Y8ua(YKHO): return not YKHO._dontRestoreControllerParamsButton.IsSelected()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ATSr(YKHO):\n if KrKx == 'BGE':\n O4Mc = YKHO.obj.worldTransform.copy()\n elif KrKx == 'BPY':\n O4Mc = YKHO.obj.matrix_world.copy()\n if not YKHO.old_worldTransform:\n YKHO.old_worldTransform = O4Mc\n return True\n elif YKHO._areDifferent_Mat44(O4Mc, YKHO.old_worldTransf...
[ "0.6366284", "0.59544945", "0.58794546", "0.5719422", "0.57073194", "0.5622991", "0.5621149", "0.5579589", "0.55767065", "0.5539895", "0.55398655", "0.5537871", "0.5507574", "0.55026066", "0.54981565", "0.54584724", "0.5435959", "0.5435064", "0.5413223", "0.5413074", "0.53998...
0.77243865
0
Connects to a given room If it does not exist it is created
def iAN6(YKHO, XIAj): G9jH.debug('Joining room {ro}'.format(ro=XIAj)) for abiq in YKHO.rooms: if abiq.name == XIAj: abiq.add_user(YKHO) YKHO._rooms[XIAj] = abiq abiq.welcome(YKHO) break else: abiq = uHxD(XIAj) YKHO.rooms.append(abiq) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO):\n G9jH.warning('IRC back-end does not support explicit creation, joining room instead to ensure it exists.')\n YKHO.join()", "def kY8R(YKHO, Bqh1, x0hE):\n if YKHO.verify_chat_room_duplicate(Bqh1):\n abiq = uHxD(Bqh1, x0hE.get_socket())\n abiq.add_member(x0hE.get_socket())\...
[ "0.7117074", "0.6697676", "0.665407", "0.6583649", "0.64713836", "0.6376527", "0.6329616", "0.6292388", "0.62888587", "0.6262977", "0.6257078", "0.6239324", "0.6222163", "0.61841077", "0.617656", "0.612379", "0.60993665", "0.6075479", "0.6015822", "0.6000852", "0.59890705", ...
0.63153857
7
View function for home page of site.
def d6pt(QePW): MK8i = Ca9i.objects.all().count() f_fO = HMde.objects.all().count() XHXA = n6o3.objects.all().count() Aofo = '' p40B = QePW.GET.get('to_search', False) if p40B != False: try: Aofo = HMde.objects.get(name__icontains=p40B) return Yd7Q(Aofo.get_absolu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')", "def kZiy(QePW):\n return _1tc(QePW, 'home.html')", "def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')", "def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'...
[ "0.8493426", "0.84268916", "0.83415145", "0.83306193", "0.82976943", "0.8295291", "0.8276345", "0.82545686", "0.82155704", "0.8132563", "0.81246215", "0.81224865", "0.8121264", "0.81049734", "0.8098485", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0...
0.0
-1
View function for the About Us page.
def AGH9(QePW): return _1tc(QePW, 'about_us.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PzLT(QePW):\n return _1tc(QePW, 'aboutus.html')", "def AGH9():\n return TvZl('about_us.html')", "def cD8n(QePW):\n return _1tc(QePW, 'ez_main/about_page.html')", "def AGH9():\n return TvZl('about_us.html')", "def vsuQ(QePW):\n assert isinstance(QePW, eu5F)\n return _1tc(QePW, 'Ascensi...
[ "0.88133746", "0.83975744", "0.8360016", "0.8350322", "0.8344725", "0.8341269", "0.8277018", "0.82615334", "0.82107615", "0.82085145", "0.8195455", "0.817416", "0.8169813", "0.81694794", "0.8148666", "0.8137287", "0.8133385", "0.812693", "0.8117471", "0.81136423", "0.8107338"...
0.8833261
0
Get the installed Dockercompose version info.
def ZZdp() -> uLKX[DpZH.LegacyVersion, DpZH.Version]: hlel = Yn3K.check_output(['docker-compose', 'version', '--short'], stderr=Yn3K.DEVNULL) return DpZH.parse(hlel.decode('utf8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J1rU() -> uLKX[DpZH.LegacyVersion, DpZH.Version]:\n hlel = Yn3K.check_output(['docker', 'version', '--format', '{{json .Client.Version }}'], stderr=Yn3K.DEVNULL).strip()\n return DpZH.parse(hlel.strip(b'\"').decode('utf8'))", "def bkaM(YKHO) -> str:\n zJsh, bGrB, bGrB = HJIr(['version', '-o', 'yaml'...
[ "0.6547908", "0.63790524", "0.63257056", "0.63220805", "0.63094187", "0.6301949", "0.626381", "0.61997867", "0.6195077", "0.6161262", "0.6121535", "0.60736066", "0.60734075", "0.6043213", "0.60423404", "0.60043657", "0.5963923", "0.59423757", "0.59282947", "0.5918141", "0.591...
0.7797596
0
Format python datetime types into strings
def Zb98(BWXx, format='datetime'): if format == 'datetime': K7dV = BWXx.strftime('%d/%m/%Y %H:%M') elif format == 'date': K7dV = BWXx.strftime('%d/%m/%Y') elif format == 'time': K7dV = BWXx.strftime('%H:%M') return K7dV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLAQ(YEnM):\n return YEnM.strftime('%Y-%m-%d %H:%M:%S')", "def QK8D(pdbK):\n if pdbK is None:\n return 'None'\n return pdbK.strftime('%Y-%m-%dT%H:%M:%S.%f')[0:-3]", "def Net5(YEnM: 'date') -> str:\n return YEnM.isoformat()", "def tOfJ(BWXx):\n return BWXx.strftime('%Y-%m-%dT%H:%M:%S...
[ "0.72319007", "0.71678126", "0.7163447", "0.7126769", "0.71248275", "0.70787", "0.7075033", "0.7036151", "0.7026195", "0.70185643", "0.7005258", "0.7005258", "0.69901127", "0.6980623", "0.69399226", "0.6927468", "0.6892985", "0.68890756", "0.6833074", "0.6830153", "0.6830153"...
0.6793237
30
Format string literal timestamp into datetime values
def dd_C(BWXx, format='datetime'): H5Vf = '^(\\d+)-(\\d+)-(\\d+)\\s(\\d+):(\\d+).+$' r8hN = ZbWC.search(H5Vf, BWXx) if format == 'datetime': K7dV = r8hN.group(3) + '/' + r8hN.group(2) + '/' + r8hN.group(1) + ' ' + r8hN.group(4) + ':' + r8hN.group(5) elif format == 'date': K7dV = r8hN.gro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zb98(E3oo):\n return f'<!date^{int(E3oo)}^{{date_pretty}} at {{time}}| >'", "def Elj9(E3oo):\n iLV1 = ZbWC.match('(.*?\\\\+\\\\d{2}):(.*)', E3oo)\n p7fT = qcWV.strptime('{}{}'.format(iLV1.group(1), iLV1.group(2)), '%Y-%m-%dT%H:%M:%S%z').strftime('%Y-%m-%dT%H:%M:%S%z')\n return p7fT", "def nG31(...
[ "0.73031723", "0.7269004", "0.7170645", "0.6980602", "0.69419897", "0.68628234", "0.6769738", "0.67527574", "0.67003655", "0.6676172", "0.66553104", "0.6647345", "0.6636271", "0.6629217", "0.65824103", "0.6572976", "0.6567703", "0.65479636", "0.654339", "0.654339", "0.654339"...
0.64816
23
Get all actions currently in the replay memory, ordered by time where they were taken.
def xASv(YKHO): return YKHO._actions.getSlice(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TyL_(YKHO, RpDr, xASv, nG5o):\n return ([], xASv)", "def xASv(YKHO) -> list:\n if YKHO.debug:\n print(f'AState.actions()')\n if not YKHO._examined:\n if YKHO.debug:\n print(f'\\tExamining...')\n YKHO._actions = YKHO._generate_actions()\n YKHO._examined = True\n...
[ "0.67301214", "0.671101", "0.66853327", "0.6539089", "0.6326977", "0.6298561", "0.6248274", "0.6192698", "0.6170987", "0.613359", "0.6054944", "0.60507286", "0.60369116", "0.5973971", "0.59412193", "0.5917242", "0.5917242", "0.5917242", "0.5801654", "0.57904476", "0.574095", ...
0.6431041
4
Return corresponding states, actions, rewards, terminal status, and next_states for size randomly chosen transitions. Note that if terminal[i] == True, then next_states[s][i] == np.zeros_like(states[s][i]) for each subject s.
def tmdt(YKHO, zNig, DDw2): if YKHO._max_history_size - 1 >= YKHO.n_elems: raise Ai_o('Not enough elements in the dataset to create a complete state. {} elements in dataset; requires {}'.format(YKHO.n_elems, YKHO._max_history_size)) if YKHO._use_priority: iksi, HDRv = YKHO._randomPrioritizedBatc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def omND(YKHO) -> oyIN.ndarray:\n return YKHO.random_state.dirichlet(oyIN.ones(YKHO.n_states), size=YKHO.n_states)", "def qWt5(YKHO, wspz, xASv):\n return oyIN.array([[YKHO.env.get_nxt_state(wspz[r845][YRbF], xASv[r845]) for YRbF in range(YKHO.num_particles)] for r845 in range(YKHO.popsize)])", "def omND...
[ "0.65251094", "0.6458037", "0.63135207", "0.6249557", "0.60649306", "0.599178", "0.5957742", "0.594834", "0.5907577", "0.58728576", "0.58723307", "0.58642846", "0.5863562", "0.58612037", "0.5859078", "0.58024526", "0.58008707", "0.57993567", "0.5778364", "0.5756351", "0.57427...
0.54313916
45
take 1D float array of rewards and compute discounted reward
def AC1_(YKHO, Mkmy, UwET): Ylbp = oyIN.zeros_like(Mkmy) S8qo = 0.0 assert len(Mkmy) - 1 in UwET, 'simple sanity check: the last reward must be the episode end' assert isinstance(Mkmy, list) for a1PO in reversed(Ni9Y(len(Mkmy))): if a1PO in UwET: S8qo = 0.0 S8qo = BR4e * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n return g2lU", "def AC1_(vwlo, KMvS):\n AFmI = vwlo.shape\n if len(AFmI) == 1:\n g2lU = oyIN.zeros(shape=(*AFmI, 1),...
[ "0.8100923", "0.78397125", "0.7792625", "0.7742053", "0.7653779", "0.75987715", "0.7583268", "0.75820553", "0.7579539", "0.7536054", "0.7519005", "0.75047183", "0.7467692", "0.7456702", "0.7433794", "0.7426565", "0.74062765", "0.73950297", "0.7370545", "0.73564714", "0.732851...
0.66732097
35
Return cleaned text with stopwords removed, no punctuation, and lemmatized.
def x0SS(l5Ny): cDcH = zZcM.utils.nlp.lower_with_proper(l5Ny) A1xJ = zZcM.utils.nlp.lemmatize(cDcH) TKMu = zZcM.utils.nlp.clean_stopwords_punctuation(A1xJ) return TKMu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WFsE(l5Ny):\n l5Ny = ZbWC.sub('[^A-Za-z0-9\\\\s]', ' ', l5Ny)\n l5Ny = ''.join([GIN8 for GIN8 in l5Ny if GIN8 not in vIwR.punctuation])\n l5Ny = l5Ny.lower()\n s2mk = ZbWC.split('\\\\W+', l5Ny)\n l5Ny = [GIN8 for GIN8 in s2mk if GIN8 not in O8cl]\n l5Ny = [X1AK.lemmatize(GIN8) for GIN8 in l5N...
[ "0.82906497", "0.8155066", "0.81481826", "0.77597165", "0.77013576", "0.76723295", "0.7657104", "0.7606486", "0.7593968", "0.7539862", "0.74192697", "0.74133056", "0.7370383", "0.7370383", "0.73591465", "0.7352032", "0.73072344", "0.7247446", "0.72407454", "0.7236175", "0.718...
0.83327425
0
Group the numpy array results relating to the same tensor, in the same list. Essentially, if feed_and_return was called with a list of 3 tensors, b times, then result_list is a [b, 3] list of lists. This operation transposes that list of list to have the shape [3, b]. Additionally, if one of the tensors was something l...
def ZngM(YKHO, dfOq): HIEu = dfOq[0] if isinstance(HIEu, (list, tuple)): sknd = [] for qw7D in HIEu: if qw7D is not None: sknd.append([]) else: sknd.append(None) for Aofo in dfOq: cHwz = len(Aofo) for qw7D, Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fQC_(Aofo: torch.Tensor, uOe2: Optional[Any]=None) -> x1iM[ht2j.Tensor]:\n if uOe2 is not None:\n raise ValueError('Horovod does not support allgather using a subcommunicator at this time. Unset `group`.')\n if bHf7 is None or not bHf7.is_initialized():\n return [Aofo]\n if len(Aofo.shap...
[ "0.60758424", "0.5996549", "0.55972064", "0.55329734", "0.54506767", "0.5406099", "0.53996986", "0.5362867", "0.53429246", "0.5341959", "0.52300006", "0.5152496", "0.5103904", "0.5100453", "0.50907034", "0.50890607", "0.50183403", "0.50126004", "0.4996337", "0.49776542", "0.4...
0.645166
0
home page for UnicornLog_REST
def d6pt(QePW): return _1tc(QePW, 'std/index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sYMZ():\n return TvZl('home_log.html')", "def d6pt():\n geh0.view_title = wjQK.get('app.name') + ' Home Page'\n return dict(message='')", "def kZiy():\n return f'Available Routes: <br/>For Precipitation: /api/v1.0/precipitation<br/>Returns Jsonify dictionary of dates and Precepitation<br/><br/>...
[ "0.71488595", "0.6863423", "0.661118", "0.65864056", "0.6573406", "0.6532395", "0.6505301", "0.65031904", "0.64614654", "0.6436561", "0.6429586", "0.6424708", "0.6419765", "0.64185673", "0.64166856", "0.64075", "0.63949937", "0.6370557", "0.63512135", "0.63386685", "0.6327910...
0.0
-1
reactance of inductor Args ==== f (float) frequency in Hz L (float) inductance in H Returns ======= (complex)
def zKCq(aPd6, eHNT): kTwQ = 2 * mM0K * eHNT return 0 + 1j * kTwQ * aPd6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JrTJ(tNXb, QTg7):\n bo34.debug('reactance_to_component: reactance= %8.3f', tNXb)\n aM8h = 2 * mM0K * QTg7\n if tNXb < 0:\n return (-1 / (aM8h * tNXb), 'F')\n else:\n return (tNXb / aM8h, 'H')", "def m9ZL(YKHO, eHNT):\n wW3z = eHNT * 2 * oyIN.pi\n FfZ5 = oyIN.cumsum(wW3z)\n ...
[ "0.64730424", "0.6231963", "0.61042935", "0.6099254", "0.6087586", "0.60156703", "0.5909744", "0.59024256", "0.5894063", "0.5887246", "0.58476037", "0.5845882", "0.5840806", "0.58114547", "0.5772043", "0.5731248", "0.57271713", "0.57271713", "0.5723993", "0.57079846", "0.5705...
0.0
-1
Converts given string to given encoding. If no encoding is specified, it is determined from terminal settings or, if none, from system settings.
def BbPK(zFiD, UXEK, tZ2K=None): if not isinstance(zFiD, g9qP): try: zFiD = g9qP(zFiD) except UnicodeDecodeError: zFiD = Fg_i(zFiD).decode('utf-8') if not tZ2K: if UXEK.isatty(): tZ2K = getattr(UXEK, 'encoding', None) tZ2K = tZ2K or NCqB.getpre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O88Z(vIwR, tZ2K=None):\n if not tZ2K:\n tZ2K = ggdP\n if o9d0.IsUnicode(vIwR):\n try:\n yX8z = vIwR.encode(tZ2K)\n except LookupError:\n yX8z = vIwR\n return yX8z\n else:\n return vIwR", "def gPBH(vIwR, tZ2K):\n if isinstance(vIwR, Gv0t.uni...
[ "0.69010156", "0.667522", "0.66090107", "0.65620023", "0.64595217", "0.6398251", "0.63357705", "0.6291808", "0.62562346", "0.6251527", "0.61868715", "0.6140761", "0.6138416", "0.6093647", "0.60694253", "0.6056297", "0.60423815", "0.5936086", "0.5863182", "0.5863182", "0.58527...
0.597977
17
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's look at some US bikeshare data!") while True: j5sA = input('\nDo you want analyze data from Chicago, New York City, or Washington? Answer with the name of the requested city!\n').lower() if j5sA in OerS: break else: print('\nPlease ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66714007", "0.65354675", "0.64593667", "0.6374057", "0.6348314", "0.63097656", "0.62868035", "0.6259136", "0.62316", "0.62130964", "0.62050414", "0.6181105", "0.6171822", "0.61686903", "0.6158568", "0.61582303", "0.61532456", "0.61444426", "0.6131269", "0.610484", "0.61025...
0.0
-1
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour if x0eS != 'all': x0eS = u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.78244984
29
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() sve5 = jQ3Z['month'].mode()[0] print('The most popular month: ', sve5) StUT = jQ3Z['day_of_week'].mode()[0] print('The most popular day: ', StUT) gv0d = jQ3Z['hour'].mode()[0] print('The most...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583438", "0.75797...
0.76399267
14
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() _8rG = jQ3Z['Start Station'].mode()[0] print('The most popular start station: ', _8rG) oFx8 = jQ3Z['End Station'].mode()[0] print('The most popular end station: ', oFx8) SWeA = (jQ3Z['Start Stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.7337384
21
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() bJiw = jQ3Z['Trip Duration'].sum() print('The total travel time: ', bJiw / 60, 'minutes') RB_u = jQ3Z['Trip Duration'].mean() print('The mean travel time: ', RB_u / 60, 'minutes') print('\nThis took %s seconds.' % (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.7686329
73
Remove all handlers of logger
def O9ho(bo34): for WKvO in list(bo34.handlers): bo34.removeHandler(WKvO) WKvO.flush() WKvO.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nhif(YKHO, bo34):\n for DCgT in bo34.handlers[:]:\n bo34.removeHandler(DCgT)\n DCgT.close()", "def rCuk(YKHO):\n oTZi = YKHO.logger.handlers[:]\n for DCgT in oTZi:\n DCgT.close()\n YKHO.logger.removeHandler(DCgT)", "def KFNe():\n yield\n for p5En in (wLCm, AB6d):\...
[ "0.8562081", "0.82160723", "0.8197727", "0.8152634", "0.7999888", "0.7999888", "0.7939653", "0.778233", "0.76902187", "0.76153237", "0.7506614", "0.7498315", "0.7494978", "0.7455884", "0.7233171", "0.7084099", "0.698838", "0.69801086", "0.69801086", "0.6903495", "0.68966806",...
0.7586058
10
Gets the trips of this TripResponse.
def _Zdl(YKHO) -> x1iM[pexN]: return YKHO._trips
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vITK(YKHO) -> AzJI[fZoS]:\n ...", "def vWVw(YKHO):\n return YKHO._trios", "def _Zdl(YKHO, U96t=-1):\n if YKHO.username == None or YKHO.password == None:\n raise _e1g()\n Mpzw = {KCHu.name: KCHu.id for KCHu in YKHO.stations()}\n if len(Mpzw) == 0:\n raise sdz9('Trips Request Fai...
[ "0.70890206", "0.67183363", "0.6395498", "0.6373147", "0.63185453", "0.6140131", "0.6059936", "0.60099715", "0.5944456", "0.5844512", "0.5822781", "0.58081", "0.57542026", "0.5744656", "0.57327014", "0.5704386", "0.5665986", "0.5662136", "0.56436294", "0.5606473", "0.5554601"...
0.8821469
0
Tests the API endpoint to query sub account futures asset transfer history
def VLD0(): NArs = {'email': 'alice@test.com', 'futuresType': 1} x0hE = i9zE(H5ew, DXni) geh0 = x0hE.sub_account_futures_asset_transfer_history(**NArs) geh0.should.equal(eF9l)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def snDW():\n xqoZ = {'email': 'alice@test.com', 'futuresType': ''}\n x0hE = i9zE(H5ew, DXni)\n x0hE.sub_account_futures_asset_transfer_history.when.called_with(**xqoZ).should.throw(_bAh)", "def eI1z():\n xqoZ = {'email': '', 'futuresType': 1}\n x0hE = i9zE(H5ew, DXni)\n x0hE.sub_account_future...
[ "0.73908156", "0.69204336", "0.6439332", "0.61491287", "0.6113373", "0.59740716", "0.59640366", "0.5939768", "0.59198904", "0.5905998", "0.5839146", "0.58111984", "0.5808582", "0.5802422", "0.5783174", "0.57718706", "0.57671577", "0.57619196", "0.57380724", "0.57181734", "0.5...
0.8228993
0
For a date 'date' returns the start and end date for the month of 'date'.
def t2U7(_c1T): FxRR = _c1T.replace(day=1) qjaP = _c1T.replace(day=GRk0.monthrange(_c1T.year, _c1T.month)[1]) return (FxRR, qjaP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fjgq(lO87, x0eS):\n wEtp = qcWV.date(lO87, x0eS, 1)\n ddKN = EUf4(wEtp, 1) - qcWV.timedelta(days=1)\n return (wEtp, ddKN)", "def hCRm(_c1T):\n if _c1T.month == 12:\n _c1T = qcWV(_c1T.year + 1, 1, 1)\n else:\n _c1T = qcWV(_c1T.year, _c1T.month + 1, 1)\n return _c1T", "def uwR...
[ "0.7652795", "0.74699664", "0.74156183", "0.7262988", "0.7005817", "0.6990498", "0.69779325", "0.69227564", "0.69091576", "0.6878791", "0.67561233", "0.6744813", "0.6729026", "0.66840976", "0.65939677", "0.6558879", "0.654681", "0.64500266", "0.6435676", "0.64053106", "0.6336...
0.8069912
0
Remove extraneous characters from URL.
def _1lG(bD7m): if bD7m is None: return None if '??' in bD7m: bD7m = bD7m.split('??')[0] if bD7m.endswith('?'): bD7m = bD7m[:-1] if '`' in bD7m: bD7m = bD7m.replace('`', '') return bD7m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QQ6h(YKHO, bD7m):\n return ''.join(bD7m.split('?')[:1])", "def _1lG(bD7m):\n KCHu = bD7m\n bD7m = bD7m.encode('utf8')\n bD7m = ''.join([uRlK.quote(Z9rn) if ord(Z9rn) >= 127 else Z9rn for Z9rn in bD7m])\n return bD7m", "def _1lG(bD7m):\n ht58, RYr6, pmON, xDcj, vBtp = Jc8s.urlsplit(bD7m)\n...
[ "0.8083749", "0.79100424", "0.7585762", "0.75374883", "0.7449228", "0.7404763", "0.7362396", "0.7202365", "0.71856475", "0.71691597", "0.71430457", "0.7099976", "0.70984113", "0.7070281", "0.7042066", "0.6963562", "0.69309103", "0.6914217", "0.68943375", "0.68910265", "0.6890...
0.7344963
7
Determine if two strings are similar.
def HWSV(afUB, c6eQ): p1kx = y_tC(afUB, c6eQ) if p1kx >= mBrI: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p07j(j93S, Nqp_):\n s1k6 = set(ZbWC.split('\\\\W+', j93S))\n xMw6 = set(ZbWC.split('\\\\W+', Nqp_))\n gwAu = len(s1k6) // 2 + 1\n return len(s1k6 & xMw6) >= gwAu", "def EXwJ(afUB, c6eQ):\n e3TX = IYPf.ratio(afUB, c6eQ)\n V1fG = IYPf.token_set_ratio(afUB, c6eQ)\n if max(e3TX, V1fG) >= MRc...
[ "0.79029274", "0.77392685", "0.77359974", "0.76873827", "0.7512138", "0.7308992", "0.72716784", "0.7256925", "0.7167219", "0.71221983", "0.71163607", "0.70902514", "0.7083313", "0.7056112", "0.70488167", "0.7029185", "0.6981539", "0.69615114", "0.6931717", "0.68618613", "0.68...
0.8005426
0
Determine if two strings are similar (using two most effective methods).
def EXwJ(afUB, c6eQ): e3TX = IYPf.ratio(afUB, c6eQ) V1fG = IYPf.token_set_ratio(afUB, c6eQ) if max(e3TX, V1fG) >= MRcm: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HWSV(afUB, c6eQ):\n p1kx = y_tC(afUB, c6eQ)\n if p1kx >= mBrI:\n return True\n return False", "def p07j(j93S, Nqp_):\n s1k6 = set(ZbWC.split('\\\\W+', j93S))\n xMw6 = set(ZbWC.split('\\\\W+', Nqp_))\n gwAu = len(s1k6) // 2 + 1\n return len(s1k6 & xMw6) >= gwAu", "def LkKm(j93S, ...
[ "0.8060857", "0.78667307", "0.7606839", "0.7597272", "0.7414688", "0.73731047", "0.73516196", "0.7250899", "0.72500485", "0.7241512", "0.7199489", "0.71607584", "0.71150386", "0.70900667", "0.7073903", "0.7047483", "0.70394033", "0.6976393", "0.6934789", "0.6911663", "0.68641...
0.7984265
1
Return the currently active collection.
def SbZk(): fvDH = kZw_.context.view_layer.active_layer_collection if fvDH: if type(fvDH) is kZw_.types.LayerCollection: return fvDH.collection return fvDH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvSB(YKHO):\n return YKHO._collection", "def xUwc(YKHO):\n return YKHO._collection", "def g8zZ(YKHO):\n NCls = YKHO._get_db()\n return getattr(NCls, Miap.MONGODB_COLLECTION)", "def dVja(YKHO, xUwc):\n return YKHO.database[xUwc]", "def JJvw():\n iz5W = kZw_.context.selected_objects\n ...
[ "0.7956852", "0.741677", "0.7261663", "0.72269917", "0.7074865", "0.70587885", "0.6936677", "0.68022", "0.6795597", "0.66598463", "0.665978", "0.6527214", "0.6513115", "0.6448291", "0.63134867", "0.63089424", "0.6284218", "0.6227759", "0.6209465", "0.6198381", "0.61914384", ...
0.86446846
0
Return the builtin images path for studio light world HDRIs. Since this path depends on the current system it's procedurally retrieved through the location of the application binary file.
def eG_7(): UHFx = 0 AesY = Hy7s.path.dirname(kZw_.app.binary_path) while 'blender' not in Hy7s.path.basename(AesY).lower(): AesY = Hy7s.path.dirname(AesY) if not AesY or UHFx == 20: break UHFx += 1 for kyzg, AQSv, X2HH in Hy7s.walk(AesY): if Hy7s.path.basenam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def viUw(YOxl=None):\n if YOxl:\n return E108(YOxl)\n return E108(vPBo.system_image_dir)", "def yKai():\n gHKE = RkCj.resource_filename('sst', 'misc/')\n return Hy7s.path.abspath(Hy7s.path.join(gHKE, 'um_000000.png'))", "def AGO3(YKHO):\n if YKHO.use_dic:\n if YKHO.imlist:\n ...
[ "0.67263955", "0.66902685", "0.6683574", "0.6681743", "0.6512482", "0.64395505", "0.6391001", "0.6381985", "0.63340354", "0.6313963", "0.6301816", "0.6258233", "0.623085", "0.62240785", "0.62149644", "0.6116855", "0.60321116", "0.6027896", "0.600327", "0.59789807", "0.5964832...
0.68692356
0
Return the SpaceView3D to be able to access the current viewing camera.
def kqLS(): for f0tD in kZw_.context.screen.areas: if f0tD.type == 'VIEW_3D': return kZw_.types.SpaceView3D(f0tD.spaces[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TjQk():\n ILBk = [jzdc for jzdc in kZw_.context.screen.areas if jzdc.type == 'VIEW_3D']\n assert len(ILBk) > 0\n f0tD = ILBk[0]\n zn0c = sorted([Mkmy for Mkmy in f0tD.regions if Mkmy.type == 'WINDOW'], key=lambda WKvO: WKvO.width, reverse=True)[0]\n oi6k = [KCHu for KCHu in ILBk[0].spaces if KCH...
[ "0.6517837", "0.6327059", "0.63032657", "0.6277825", "0.6237324", "0.61826503", "0.61782604", "0.61782604", "0.6120114", "0.5917895", "0.58204854", "0.58064395", "0.5804778", "0.5685697", "0.5620787", "0.5620787", "0.5620787", "0.56143016", "0.5605276", "0.5604279", "0.560279...
0.8283899
0
This function returns the min of a list and its index L is np.array
def CRok(aPd6): d0gU = min(aPd6) return [d0gU, oyIN.where(aPd6 == d0gU)[0][0]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jgcb(YKHO, bCES):\n return min(bCES)", "def min(vC9B):\n if vC9B:\n b25f = sorted(vC9B)\n return b25f[0]\n else:\n raise ValueError('list empty')", "def UA9m(Emd4, yv6U: list) -> int:\n return yv6U.index(min(yv6U))", "def XcNI(list):\n return Qpvm(list, -1)", "def mi...
[ "0.76791316", "0.7671087", "0.75475186", "0.7320828", "0.72402906", "0.72288704", "0.7188843", "0.7062959", "0.7062959", "0.6946639", "0.6858886", "0.68058985", "0.67964303", "0.67202157", "0.6681586", "0.66472715", "0.6638085", "0.66225743", "0.661499", "0.66136265", "0.6595...
0.79356325
0
Given equal sized arrays of points, returns True if the polygonal contour vertices represented by x and y are ordered in the clockwise direction.
def Mc9F(WKvO, LVAh): vC9B = len(WKvO) if vC9B < 3: raise ValueError('ispolycw::X length is less than 3') if len(LVAh) < 3: raise ValueError('ispolycw::Y length is less than 3') if vC9B != len(LVAh): raise ValueError('ispolycw::Non-equal sized arrays') KCHu = 0.0 for G1Hx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xdX6(jNOo):\n jNOo = oyIN.array(jNOo, ndmin=1)\n if oyIN.shape(jNOo)[0] < 3:\n raise Exception('At least 3 input pores are required')\n jAed = jNOo[:, 0]\n SDaV = jNOo[:, 1]\n wi5T = jNOo[:, 2]\n if oyIN.shape(oyIN.unique(jAed))[0] == 1:\n return True\n if oyIN.shape(oyIN.uni...
[ "0.67318374", "0.6692457", "0.6664548", "0.6570368", "0.65393496", "0.651461", "0.651461", "0.64759827", "0.6469661", "0.64569044", "0.64341104", "0.6366998", "0.6363508", "0.63616353", "0.6317713", "0.6272744", "0.62083554", "0.6195377", "0.61358273", "0.6122888", "0.6088497...
0.59221625
27
Given a generating list that generates a group H, this function returns a possibly smaller generating set for the same group H (but certainly not larger). The resulting generating set will contain less than n^2 permutations, when the permutations are on n elements. (Set =1 or 2 to see what is going on exactly.)
def Pusg(XLLv: [Permutation], f_23=0) -> [HJa_]: if f_23 >= 1: print(' Reducing. Input length:', len(XLLv)) if not XLLv: return XLLv exwG = XLLv[0].n Gzsg = [] pPvV = XLLv while pPvV: U6D_ = z7gO(pPvV) if U6D_ is None: break if f_23 >= 2: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKu0(RZ8t):\n ny4K = set([()])\n for Hwxl in range(len(RZ8t)):\n QpOP = set([()])\n for Q6uT in ny4K:\n for ZfUD in RZ8t:\n zsAc = list(Q6uT)\n if RZ8t.count(ZfUD) > zsAc.count(ZfUD):\n zsAc.append(ZfUD)\n zsAc =...
[ "0.6580512", "0.65190554", "0.6468828", "0.6334636", "0.6304367", "0.62992", "0.6250159", "0.62221575", "0.6216637", "0.61963284", "0.6190778", "0.618871", "0.6186086", "0.6182302", "0.6175184", "0.6166101", "0.61541575", "0.61454177", "0.61375546", "0.61289376", "0.61273795"...
0.0
-1
Creates empty grey placeholder component which shall be later substituted with diagram. The given height determines the height of the placeholder.
def pph6(H2v2: int): LZpg = {'data': [], 'layout': iEax.Layout(height=H2v2, paper_bgcolor='#eaeaea', plot_bgcolor='#eaeaea', xaxis={'showticklabels': False, 'ticks': '', 'showgrid': False, 'zeroline': False}, yaxis={'showticklabels': False, 'ticks': '', 'showgrid': False, 'zeroline': False})} return LZpg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vFpK(LZpg: Figure) -> None:\n LZpg.add_artist(EHnW(xy=(0.35, 0.45), width=0.3, height=0.1, boxstyle='Round, pad=0.015', linewidth=3, edgecolor='red', facecolor='lightpink', alpha=0.5))\n LZpg.text(x=0.5, y=0.5, s='Placeholder', ha='center', va='center', fontsize='xx-large', fontweight='bold', alpha=0.5)"...
[ "0.6035847", "0.5975701", "0.5882777", "0.5865656", "0.56691927", "0.548919", "0.54182553", "0.5294708", "0.528158", "0.5149186", "0.5130743", "0.51022553", "0.50052655", "0.49686137", "0.49523664", "0.49490002", "0.4937415", "0.4919564", "0.49022248", "0.48541886", "0.484967...
0.5571926
5
r""" Calculates a closedform solution for the `mu` parameters of negativebinomial GLMs.
def x8aY(EcVT: xr.DataArray, vQXS, QALt, ZNNA=None, voL8=oyIN.log): return zjkV(X=EcVT, dmat=vQXS, constraints=QALt, size_factors=ZNNA, weights=None, link_fn=voL8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p36D(YKHO, yGTL=None):\n pass", "def ShTw(yGTL, w7g_, WKvO, r8hN=0.5):\n return r8hN * IAWS(yGTL, w7g_, WKvO) + (1 - r8hN) * wX2U(yGTL, w7g_, WKvO)", "def f2ZK(vb7U, fz7m, tknT=1):\n vb7U = dGQd(vb7U, fz7m)\n yGTL = fz7m * vb7U\n sg14 = oyIN.vstack([gL18(KMvS(tknT, tknT * yGTL[YRbF, :])) for...
[ "0.5790456", "0.55582917", "0.538891", "0.5350196", "0.52965236", "0.5259169", "0.5255389", "0.5185485", "0.51824015", "0.51477665", "0.5143468", "0.513032", "0.5125261", "0.51250374", "0.5123107", "0.50969505", "0.508588", "0.50724715", "0.50709146", "0.5044387", "0.50410885...
0.0
-1
Instantiate a FockBackend object.
def FIMM(YKHO): super().__init__() YKHO._supported['mixed_states'] = True YKHO._short_name = 'fock'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, DDLl: Optional[str]=None, /, **B2fa: Any) -> None:\n if not DDLl:\n try:\n DDLl = YKHO.__default_backend__\n except AttributeError:\n raise ValueError('You must specify which backend to use as first positional argument.')\n JhRZ: eBH2[Kt_s] = XwiL(DDLl, YKHO...
[ "0.6743768", "0.60469586", "0.5989197", "0.5817922", "0.5737783", "0.5737783", "0.57028794", "0.5643175", "0.56242037", "0.5576989", "0.5574962", "0.5554551", "0.55469555", "0.5536037", "0.5535658", "0.55144095", "0.5496958", "0.5422664", "0.5421122", "0.5416889", "0.5415982"...
0.0
-1
Check to see if `containerIP` is a valid container id
def O7ve(lMh2): return lMh2 in [Jhm3.getShortId(zGKt) for zGKt in mvyx.containers.list()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p3c6(vIwR: str) -> bool:\n return ZbWC.fullmatch('^[0-9a-f]{64}$', vIwR) is not None", "def mty4(D8Ke):\n ...", "def c61f():\n try:\n KCHu = GGmw.inet_aton(qIxc.target)\n except GGmw.error:\n print('')\n print(f'{vkps} Bad IP address')\n print('')\n HwRy.exit(...
[ "0.7155968", "0.666977", "0.62525916", "0.6216923", "0.6179204", "0.6016821", "0.60090774", "0.5998264", "0.5986765", "0.5972389", "0.5935419", "0.5918966", "0.5906688", "0.58984", "0.5895571", "0.58601815", "0.5848308", "0.58269507", "0.5816884", "0.58000463", "0.579772", ...
0.69439656
1
function to test write/read equivalence for an obj which has __eq__ defined
def KiKM(YKHO, YEnM): lO3O.write(YKHO.pickle_file, YEnM) YKHO.assertEqual(lO3O.read(YKHO.pickle_file), YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, YEnM):\n return QBs8(YKHO.obj == YEnM, '%r != %r' % (YKHO.obj, YEnM))", "def aPi6(YKHO, YEnM: object) -> bool:\n ...", "def xa14(YKHO, YEnM):\n if not YEnM:\n return False\n return str(YKHO.key()) == str(YEnM.key())", "def xa14(YKHO: _TT, Elif: object) -> bool:\n return Y...
[ "0.745454", "0.73404336", "0.6781833", "0.6745465", "0.67111135", "0.6689699", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", "0.6635548", ...
0.6556084
27
Tests if comments are parsed correctly with get_comment_variables() method.
def uOUb(YKHO): VC5D = {'p1': ('.03', ''), 'p2': ('0.03', ''), 'p3': ('100', ''), 'p4': ('2.5', 'um')} n5sN = vhTy(YKHO.ntwk_comments_file).get_comment_variables() YKHO.assertEqual(VC5D, n5sN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rkbw(YKHO):\n KfUY = '# This is a comment\\n# This is another comment'\n A97Q = wvEv.parse(KfUY)\n YKHO.assertEqual(len(A97Q.children()), 2)", "def cnBf():\n for dk_I in Bqzl:\n xpeS = pqvb[dk_I[15]]\n if 'comment' not in ZA5W[xpeS][dk_I[1]] and dk_I[12] == '':\n continue...
[ "0.6684429", "0.6498663", "0.6388638", "0.6378898", "0.63370323", "0.628094", "0.62401694", "0.62011665", "0.61215764", "0.60346746", "0.60233617", "0.6014836", "0.6010995", "0.6008527", "0.5995042", "0.598071", "0.5963045", "0.5958331", "0.5939851", "0.59199095", "0.59169275...
0.6737163
0
Make sure arr is a 1D array of integers. Returns an error if the elements of ``arr`` aren't an integer type or if ``arr`` has more than one nonsingleton dimension.
def DPBf(ezWE, exwG=None, fsgT=None): if fsgT is None: fsgT, g1lb = yh8R(ezWE) ezWE = fsgT.atleast_1d(fsgT.squeeze(ezWE)) if ezWE.ndim > 1: raise ValueError('arr must be scalar or 1d') if not issubclass(ezWE.dtype.type, oyIN.integer): if not fsgT.all(fsgT.mod(ezWE, 1) == 0): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jKKV(ezWE):\n if oyIN.ndim(ezWE) != 1:\n return False\n if len(ezWE) == 0:\n return True\n if oyIN.any(oyIN.vectorize(oyIN.ndim)(ezWE)):\n return False\n return True", "def SOCJ(ezWE: Arrayable) -> oyIN.ndarray:\n if isinstance(ezWE, oyIN.ndarray):\n return ezWE\n ...
[ "0.6642992", "0.64455414", "0.643867", "0.61569244", "0.60495275", "0.5888986", "0.57377046", "0.5724065", "0.5642835", "0.55241615", "0.55193704", "0.5486636", "0.54853344", "0.5465045", "0.5401011", "0.53988886", "0.5395306", "0.53805393", "0.5352357", "0.5338182", "0.52776...
0.7023006
0
This function renders the main page
def Ozko(): return TvZl('main_page.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ozko():\n return TvZl('index.html')", "def kZiy():\n return TvZl('Main_Page.html')", "def b8V_():\n return TvZl('main.html')", "def b8V_():\n return TvZl('main.html')", "def b8V_():\n return TvZl('index.html', title='Home', heading='Dublin Bus')", "def b8V_():\n B2Dn = xhTS()\n D...
[ "0.8322627", "0.793691", "0.7913725", "0.7913725", "0.7885429", "0.7832612", "0.77718717", "0.7741127", "0.7731492", "0.77223694", "0.7655714", "0.7652967", "0.765215", "0.7609745", "0.7609745", "0.75270504", "0.74935806", "0.74935806", "0.7483145", "0.7474603", "0.7474603", ...
0.8500139
0
Computes the forward pass for an affine (fullyconnected) layer. The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N examples, where each example x[i] has shape (d_1, ..., d_k). We will reshape each input into a vector of dimension D = d_1 ... d_k, and then transform it to an output vector of dimensio...
def Fav1(WKvO, yzQ0, Fg_i): yvT9 = None GhuM = WKvO.shape QRFO = 1 for YRbF in range(1, len(GhuM)): QRFO *= GhuM[YRbF] jzdc = WKvO.reshape(WKvO.shape[0], QRFO) yvT9 = oyIN.dot(jzdc, yzQ0) + Fg_i wyyA = (WKvO, yzQ0, Fg_i) return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm1(YKHO.conv1(WKvO))), 3, stride=2, padding=1)\n WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm2(YKHO.conv2(WKvO))), 3, stride=2, padding=1)\n WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm3_b(YKHO.conv3_b(vuvg.relu(YKHO.batch_norm...
[ "0.68831134", "0.66885334", "0.65112114", "0.6506512", "0.64589113", "0.6448202", "0.64140195", "0.64074594", "0.6357362", "0.6356064", "0.63492495", "0.6345332", "0.6335407", "0.6323006", "0.6307874", "0.63043493", "0.6299398", "0.6297389", "0.6297314", "0.629169", "0.628821...
0.6997871
0
Computes the backward pass for an affine layer.
def Kt1o(zYcP, wyyA): WKvO, yzQ0, Fg_i = wyyA Jw7X, ncXl, NCls = (None, None, None) Jw7X = zYcP.dot(yzQ0.T) Jw7X = Jw7X.reshape(WKvO.shape) GhuM = WKvO.shape QRFO = 1 for YRbF in range(1, len(GhuM)): QRFO *= GhuM[YRbF] TWWf = WKvO.reshape(WKvO.shape[0], QRFO) ncXl = TWWf.T.do...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wxmU(zYcP, wyyA):\n A45l, GhMp = wyyA\n SG6Y = fhcK.relu_backward(zYcP, GhMp)\n Jw7X, ncXl, NCls = fhcK.affine_backward(SG6Y, A45l)\n return (Jw7X, ncXl, NCls)", "def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n aWf9 = oyIN.prod(WKvO[0].shape)\n ...
[ "0.7518896", "0.751513", "0.7310849", "0.73015374", "0.73015374", "0.73015374", "0.73015374", "0.7243401", "0.7177609", "0.7174102", "0.7173503", "0.71661735", "0.71319", "0.7106919", "0.70978165", "0.708432", "0.7068546", "0.70449376", "0.70409757", "0.6986414", "0.6983679",...
0.6993727
19
Computes the backward pass for a layer of logistic sigmoid function.
def m9vT(zYcP, wyyA): Jw7X, WKvO = (None, wyyA) eHNT = lambda WKvO: 1 / (1 + oyIN.exp(-WKvO)) MCGS = eHNT(WKvO) Jw7X = oyIN.multiply(MCGS, 1 - MCGS) Jw7X = oyIN.multiply(Jw7X, zYcP) return Jw7X
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9vT(LQ6K, Nk6w):\n Nf0X = m1Hg(Nk6w) * (1 - m1Hg(Nk6w))\n return LQ6K * Nf0X", "def fIbT(YKHO):\n YGRa = (YKHO.targets - YKHO.y) / YKHO.y.shape[0]\n for gEmA in reversed(YKHO.layers):\n YGRa = gEmA.backward_pass(YGRa)", "def m9vT(zYcP, wyyA):\n Jw7X = None\n LVAh = wyyA\n Jw7X ...
[ "0.72898245", "0.7251295", "0.7204519", "0.7179389", "0.7162605", "0.712203", "0.7068586", "0.7059047", "0.70575905", "0.7056281", "0.70492476", "0.70444787", "0.69950897", "0.6986096", "0.6986045", "0.6946393", "0.6916062", "0.6894457", "0.6871485", "0.6867077", "0.6866261",...
0.7572509
0
Convenience layer that perorms an affine transform followed by a sigmoid
def jEQD(WKvO, yzQ0, Fg_i): jzdc, A45l = Fav1(WKvO, yzQ0, Fg_i) yvT9, iSgk = Kgre(jzdc) wyyA = (A45l, iSgk) return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmxe(WKvO):\n return WKvO", "def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n return 1.0 / (1.0 + oyIN.exp(-sdgB))", "def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))", "def NqIk(sFFK, r8hN=10, Z9rn=3):\n if type(sFFK) != oyIN.ndarray:\n WKvO = oyIN.array([sFFK...
[ "0.6987919", "0.68480325", "0.68326443", "0.6823527", "0.68216205", "0.6812473", "0.67426056", "0.666208", "0.6659212", "0.6645308", "0.6588696", "0.6588696", "0.65827596", "0.6579933", "0.6547947", "0.6539903", "0.6539903", "0.6539903", "0.6539903", "0.6539903", "0.6539903",...
0.7292897
0
Returns the files instructions from the absolute instructions list.
def ikQJ(LjKf: Dict, iENY: ReadInstruction) -> AzJI[x1iM[int], x1iM[cuzp]]: gu0q: x1iM[cuzp] = [] muGG = [] for _nfB in iENY: Ciwg, AT7E = LjKf[_nfB.splitname] if not AT7E: G9jH.error('Shard empty. This might means that dataset has not been generated.') raise ValueErr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vERo(C9Rn: TextIO) -> x1iM[str]:\n e8uw = []\n for LE47 in C9Rn:\n LE47 = LE47.strip()\n e8uw.append(LE47)\n return e8uw", "def NcDN():\n hkxX = vDmc()\n dzye = []\n for YRbF in range(int(len(hkxX) / 2)):\n dzye.append((hkxX[2 * YRbF].replace('\\\\??\\\\', ''), hkxX[2 *...
[ "0.6148031", "0.5898083", "0.5657519", "0.5587604", "0.5587604", "0.5587604", "0.5576874", "0.54202294", "0.5417266", "0.5377404", "0.5355677", "0.5328657", "0.5310547", "0.53068405", "0.5261649", "0.5229113", "0.52286893", "0.5211607", "0.51889044", "0.51633394", "0.5160124"...
0.5303998
14
Plots bar graphs of average adoption speed for ages available in dataset. The plots are divided between dogs and cats. The adoption speed scale is 04 where 0 means immediate adoption and 4 means no adoption after 91 days at the shelter.
def jAxp(): import numpy as oyIN import pandas as rLdf import matplotlib.pyplot as QrM1 EvQg = rLdf.read_csv('./data/train.csv') EvQg.loc[EvQg['Age'] > -1, 'Age'] = EvQg['Age'] // 12 nEgB = EvQg.loc[EvQg['Type'] == 1, ['State', 'Type', 'Age', 'AdoptionSpeed']] NWDf = EvQg.loc[EvQg['Type'] ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jAxp():\n import numpy as oyIN\n import pandas as rLdf\n import matplotlib.pyplot as QrM1\n EvQg = rLdf.read_csv('./data/train.csv')\n WdgY = EvQg.loc[EvQg['Age'] < 13, ['State', 'Type', 'Age', 'AdoptionSpeed']]\n nEgB = WdgY.loc[WdgY['Type'] == 1, :]\n NWDf = WdgY.loc[WdgY['Type'] == 2, :...
[ "0.7662977", "0.56974465", "0.55396694", "0.548597", "0.5422956", "0.5421991", "0.5403253", "0.5340519", "0.53164953", "0.52908766", "0.52848315", "0.52035683", "0.5189145", "0.51705015", "0.5168364", "0.5160512", "0.51555115", "0.515418", "0.5127617", "0.51032525", "0.510228...
0.72738457
1
Plots bar graphs of average adoption speed for every month in the first 12 months of the pet's life. The plots are divided between dogs and cats. The adoption speed scale is 04 where 0 means immediate adoption and 4 means no adoption after 91 days at the shelter.
def jAxp(): import numpy as oyIN import pandas as rLdf import matplotlib.pyplot as QrM1 EvQg = rLdf.read_csv('./data/train.csv') WdgY = EvQg.loc[EvQg['Age'] < 13, ['State', 'Type', 'Age', 'AdoptionSpeed']] nEgB = WdgY.loc[WdgY['Type'] == 1, :] NWDf = WdgY.loc[WdgY['Type'] == 2, :] RobJ =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xEjT():\n shUS = jQ3Z.copy()\n sYtI = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n Crrw = [2016, 2017, 2018, 2019]\n X_bn = oyIN.zeros([12, 4])\n for YRbF in range(12):\n for r845, lO87 in enumerate(Crrw):\n ...
[ "0.64338595", "0.6335123", "0.6169855", "0.61543477", "0.6030495", "0.5977759", "0.5826969", "0.57547635", "0.5716767", "0.5696655", "0.56303304", "0.5616894", "0.56035185", "0.556477", "0.551954", "0.5473504", "0.54443264", "0.54386526", "0.542967", "0.54267067", "0.54011875...
0.67714953
0
Splits the sentences in a dataframe's column into a list of the separate words.
def sR9l(jQ3Z): jQ3Z['Split Tweets'] = jQ3Z['Tweets'].str.lower().str.split() return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sR9l(jQ3Z):\n Aofo = []\n jtyf = jQ3Z['Tweets']\n for Mau6 in jtyf:\n Aofo.append(Mau6.lower().split(' '))\n jQ3Z['Split Tweets'] = Aofo\n return jQ3Z", "def sR9l(jQ3Z):\n jQ3Z['Split Tweets'] = [YRbF.lower().split() for YRbF in jQ3Z['Tweets']]\n return jQ3Z", "def sR9l(jQ3Z):\n...
[ "0.7669734", "0.7588457", "0.7277383", "0.7106168", "0.7048508", "0.6907862", "0.6873786", "0.68376553", "0.68316835", "0.6717478", "0.66340524", "0.66340524", "0.6603729", "0.65878886", "0.6584361", "0.6554645", "0.65175956", "0.6493134", "0.6451709", "0.640864", "0.63579243...
0.7173178
3
Test a default `cif_cell_contents` calculation.
def oLPc(ZKL3, Zv31, wAVw, kkA2): Z3c_ = 'codtools.cif_cell_contents' RoTL = 'codtools.cif_cell_contents' Q6kx = wAVw(Z3c_, Zv31, 'default') wvEv = kkA2(RoTL) dixj, bGrB = wvEv.parse_from_node(Q6kx, store_provenance=False) assert Q6kx.exit_status in (None, 0) assert 'formulae' in dixj as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTJ1():\n VmPb = ny4c.Cell(loc=[1, 1])\n for YRbF in range(10):\n VmPb.step()", "def erRE(YKHO):\n aEqx = {'Experiment': '20220101_EGS1_12345AA', 'Cell': '12345AA0018/20220101_1234_1-A1-A1_AAA66666_deadbeef', 'Pool': '12345AA0018', 'Date': '20220101', 'Number': '1234', 'Slot': '1-A1-A1', 'Cel...
[ "0.58573437", "0.57191473", "0.55048025", "0.5358148", "0.53429013", "0.52921504", "0.5276433", "0.52458316", "0.5242151", "0.52205575", "0.51903653", "0.5156349", "0.5088263", "0.50859916", "0.50836164", "0.5078765", "0.5069685", "0.50684625", "0.5066117", "0.49831873", "0.4...
0.6756194
0
Apply kernel regularization to keras model
def wqPw(C3ST, QAQT=0, yZkt=0): for gEmA in C3ST.layers: if hasattr(gEmA, 'kernel_regularizer'): gEmA.kernel_regularizer = cebn(l1=QAQT, l2=yZkt) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuk7(YKHO, R5ZC=yjPc.l1(0.1)):\n YKHO.list_cnn[-1].kernel_regularizer = R5ZC", "def fWH1(YKHO, R5ZC):\n for gEmA in YKHO.prenet_layers:\n for _mSQ in gEmA.trainable_variables:\n if 'bias' not in _mSQ.name:\n if _mSQ.dtype.base_dtype == ZylS.float16:\n ...
[ "0.7065853", "0.5998704", "0.58855665", "0.5794729", "0.5781218", "0.56473464", "0.5636786", "0.56342834", "0.56247187", "0.5613548", "0.5508538", "0.5464103", "0.5446757", "0.5433872", "0.5421158", "0.539804", "0.5394628", "0.5348915", "0.5344816", "0.5338986", "0.53257155",...
0.72197354
0
Inserts this instance to database.
def H2v5(YKHO): NCls.session.add(YKHO) NCls.session.commit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YKHO):\n YKHO.getDbRecord().insert()\n return", "def JPHp(YKHO):\n ...
[ "0.83785105", "0.83785105", "0.83785105", "0.830998", "0.7947764", "0.7260452", "0.7260452", "0.7260452", "0.7260452", "0.724192", "0.71791655", "0.7151454", "0.7109492", "0.6973766", "0.69692475", "0.68963945", "0.6871551", "0.68689597", "0.68553793", "0.68277264", "0.682772...
0.6610873
43
preprocess a string (tokens, stopwords, lowercase, lemma & stemming) returns the cleaned result
def QrZ9(rrSk, C3ST): r2cT = [] A97Q = C3ST(rrSk) for GIN8 in A97Q: if not GIN8.is_stop and GIN8.is_alpha: r2cT.append(GIN8.lemma_.lower()) AiG_ = ', '.join(r2cT) return AiG_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yvzw(_dZy):\n b0j5 = H6bL()\n jWWN = b0j5.tokenize(_dZy.lower())\n return jWWN", "def qUbW(Mau6):\n rq7K = HRJ_.clean(Mau6)\n b0j5 = VF6o()\n zw3H = b0j5.tokenize(rq7K)\n QoN4 = NugN(zw3H)\n xkrx = aUcs(QoN4)\n return xkrx", "def MXOF(l5Ny, wr3U=False, A6as=False, XPB5=False, Z2q...
[ "0.7444161", "0.73020416", "0.7254363", "0.7232578", "0.7229561", "0.721284", "0.71997184", "0.71308845", "0.71047986", "0.7081035", "0.70776826", "0.7002863", "0.70012844", "0.6980777", "0.69784296", "0.69668424", "0.6965386", "0.69406086", "0.6923059", "0.69066405", "0.6900...
0.0
-1
This class method returns the current region based on the current request and is used in
def Guvn(Emd4, QePW): if not hasattr(QePW, 'resolver_match') or QePW.resolver_match.url_name == 'edit_region': return None TjvI = QePW.resolver_match.kwargs.get('region_slug') if not TjvI: return None zn0c = Emd4.objects.filter(slug=TjvI) if not zn0c.exists(): raise uhgT ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn0c(YKHO):\n return YKHO._get('region')", "def zn0c(YKHO):\n return YKHO.config.region", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) ...
[ "0.795351", "0.7910223", "0.79029274", "0.79029274", "0.79029274", "0.79029274", "0.79029274", "0.79029274", "0.76762587", "0.7663308", "0.7663308", "0.7663308", "0.7663308", "0.76339567", "0.7585374", "0.7585374", "0.7585374", "0.7585374", "0.7585374", "0.7585374", "0.756366...
0.7621527
14
Return True, if moveRecursive() is available (see comments there).
def LTwJ(YKHO, W6FF): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QRZv(YKHO):\n if YKHO.index == len(YKHO.path):\n YKHO.move = False\n return YKHO.move", "def BZN_(YKHO) -> bool:\n pass", "def H_e2(BZN_):\n return True", "def SLKL(YKHO, XSoh):\n if XSoh in YKHO.current_room.return_directions():\n print('move into the next room')\n YK...
[ "0.7099811", "0.67302436", "0.6334083", "0.6326165", "0.61713946", "0.6166266", "0.6111921", "0.6097203", "0.60935026", "0.6035517", "0.59928036", "0.5966303", "0.59603006", "0.59422207", "0.5936211", "0.59279317", "0.59224826", "0.59131634", "0.5861932", "0.58336323", "0.581...
0.7578219
0
Return True, if moveRecursive() is available (see comments there).
def LTwJ(YKHO, W6FF): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QRZv(YKHO):\n if YKHO.index == len(YKHO.path):\n YKHO.move = False\n return YKHO.move", "def BZN_(YKHO) -> bool:\n pass", "def H_e2(BZN_):\n return True", "def SLKL(YKHO, XSoh):\n if XSoh in YKHO.current_room.return_directions():\n print('move into the next room')\n YK...
[ "0.7099811", "0.67302436", "0.6334083", "0.6326165", "0.61713946", "0.6166266", "0.6111921", "0.6097203", "0.60935026", "0.6035517", "0.59928036", "0.5966303", "0.59603006", "0.59422207", "0.5936211", "0.59279317", "0.59224826", "0.59131634", "0.5861932", "0.58336323", "0.581...
0.7578219
1
Gets the JSON of a post. This can be used as and API for external clients.
def RTbv(QePW, Fi3q): m8z6 = Iofl(T97t, id=Fi3q) qQXR = IyFz.serialize('json', [m8z6], fields=('pub_time', '_text_rendered', 'title', 'text', 'image', 'image_width', 'image_height', 'replies', 'tags')) return igJ6(content=qQXR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c3ht(YKHO) -> dict:\n try:\n _R2e = NMoC(YKHO.url, sessionid=YKHO.sessionid)\n except VrQA:\n raise A2Or(YKHO.post_id)\n wvEv = i9Wa()\n wvEv.feed(_R2e)\n U34r = wvEv.Data\n return U34r", "def _uti():\n return pz3A(hati('url', 'args', 'form', 'data', 'origin', 'headers', 'f...
[ "0.7076283", "0.6952924", "0.66784614", "0.664313", "0.6534593", "0.64066476", "0.637505", "0.63443494", "0.6219911", "0.6159269", "0.6087693", "0.60754", "0.60515904", "0.6038488", "0.59993875", "0.5995848", "0.5982333", "0.5935236", "0.59154564", "0.5895733", "0.58654135", ...
0.76298827
0
kills 50% of the population based off of a distribution
def HWeU(YKHO): mLGw = 0 QmN4 = 1 YRbF = 0 while mLGw < YKHO.num // 2: if tuKI.random() < QmN4 and YKHO.genepool[0][YRbF % YKHO.num] != None: mLGw += 1 YKHO.genepool[0][YRbF % YKHO.num] = None YKHO.genepool[1][YRbF % YKHO.num] = None QmN4 -= 1.5 * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pL8d(dBuj):\n KuU0 = [H5ew for H5ew, BWXx in dBuj.items() if BWXx < 1e-08]\n for H5ew in KuU0:\n dBuj.pop(H5ew)", "def gwV4(EmUK, K1nB):\n iR0N = oyIN.sum((EmUK >= 1) & (EmUK <= 10))\n B5Wp = K1nB * iR0N\n if B5Wp < 1:\n B5Wp = 0\n else:\n B5Wp = B5Wp\n B5Wp = oyIN.r...
[ "0.6458456", "0.6144221", "0.58850217", "0.58705866", "0.5734875", "0.5694499", "0.5694387", "0.56832254", "0.5681185", "0.56788296", "0.5667026", "0.5638565", "0.56341934", "0.56326133", "0.5624285", "0.56234115", "0.56143916", "0.559", "0.5581722", "0.5571457", "0.55683905"...
0.55031216
27
kills 50% of the population based off of a distribution
def HWeU(YKHO): mLGw = 0 QmN4 = 1 YRbF = 0 while mLGw < YKHO.num // 2: if tuKI.random() < QmN4 and YKHO.genepool[0][YRbF % YKHO.num] != None: mLGw += 1 YKHO.genepool[0][YRbF % YKHO.num] = None YKHO.genepool[1][YRbF % YKHO.num] = None QmN4 -= 1.5 * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pL8d(dBuj):\n KuU0 = [H5ew for H5ew, BWXx in dBuj.items() if BWXx < 1e-08]\n for H5ew in KuU0:\n dBuj.pop(H5ew)", "def gwV4(EmUK, K1nB):\n iR0N = oyIN.sum((EmUK >= 1) & (EmUK <= 10))\n B5Wp = K1nB * iR0N\n if B5Wp < 1:\n B5Wp = 0\n else:\n B5Wp = B5Wp\n B5Wp = oyIN.r...
[ "0.6458456", "0.6144221", "0.58850217", "0.58705866", "0.5734875", "0.5694499", "0.5694387", "0.56832254", "0.5681185", "0.56788296", "0.5667026", "0.5638565", "0.56341934", "0.56326133", "0.5624285", "0.56234115", "0.56143916", "0.559", "0.5581722", "0.5571457", "0.55683905"...
0.55031216
28
Creates word_to_idx and idx_to_word dictionaries for a list of sequences.
def j2QO(jWe2): PWgb = lambda vC9B: [ZfUD for XuXy in vC9B for ZfUD in XuXy] QPxx = PWgb(jWe2) t7hl = oRi_(int) for GIN8 in PWgb(jWe2): t7hl[GIN8] += 1 t7hl = sorted(list(t7hl.items()), key=lambda vC9B: -vC9B[1]) yTXi = [ZfUD[0] for ZfUD in t7hl] yTXi.append('UNK') Brlf, jXxl = (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pqxS(f1BO):\n yTXi = list(set(f1BO))\n acax = {}\n for YRbF in range(len(yTXi)):\n acax[yTXi[YRbF].lower()] = YRbF + 4\n acax['<PAD>'] = 0\n acax['<START>'] = 1\n acax['<UNK>'] = 2\n acax['<UNUSED>'] = 3\n return acax", "def OfQh(CtWL):\n aDc2 = {}\n Kk72 = {}\n aDc2['...
[ "0.6763164", "0.6557199", "0.6528885", "0.64524484", "0.64126396", "0.6305663", "0.6277611", "0.62634957", "0.6193047", "0.61657494", "0.6140419", "0.6128495", "0.612039", "0.6092059", "0.6077096", "0.60748893", "0.60254186", "0.60251117", "0.60124534", "0.6010433", "0.598301...
0.7530003
0
Onehot encodes a single word given its index and the size of the vocabulary.
def zGX0(or8S, jXxl): KLLm = oyIN.zeros(jXxl) KLLm[or8S] = 1.0 return KLLm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpzK(YKHO, GIN8):\n GIN8 = YKHO.text_to_int(GIN8)\n GIN8 = iQnE(ht2j.tensor(GIN8))\n GIN8 = ht2j.nn.functional.one_hot(GIN8, len(YKHO.index_map))\n return GIN8.transpose(0, 1)", "def KLLm(xrUD, jXxl=None, hVLt=False, wzH_=None):\n if jXxl is None:\n raise Exception(\"'vocab_size' arg is...
[ "0.8003631", "0.7823819", "0.77854127", "0.76996183", "0.7695894", "0.7653764", "0.72822165", "0.7253616", "0.72524536", "0.71602964", "0.714817", "0.71339893", "0.71081656", "0.71050984", "0.70815146", "0.7064262", "0.7052255", "0.70176786", "0.7003591", "0.6973858", "0.6950...
0.8517694
0
Onehot encodes a sequence of words given a fixed vocabulary size.
def J8zd(aWuw, jXxl): tZ2K = oyIN.array([zGX0(UjqS[GIN8], jXxl) for GIN8 in aWuw]) tZ2K = tZ2K.reshape(tZ2K.shape[0], tZ2K.shape[1], 1) return tZ2K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(or8S, jXxl):\n KLLm = oyIN.zeros(jXxl)\n KLLm[or8S] = 1.0\n return KLLm", "def KLLm(xrUD, jXxl=None, hVLt=False, wzH_=None):\n if jXxl is None:\n raise Exception(\"'vocab_size' arg is required.\")\n if hVLt:\n if wzH_ is None:\n raise Exception(\"If padding, 'max_...
[ "0.8067221", "0.79106784", "0.77462083", "0.76335406", "0.75745505", "0.7528644", "0.7427693", "0.7352159", "0.7323996", "0.72812915", "0.7232939", "0.7214444", "0.7211265", "0.719449", "0.717862", "0.7166959", "0.7151919", "0.7145496", "0.71255714", "0.7106656", "0.7061875",...
0.79370177
1
Loads our saved deep learning pre_trained_model from loaded_state.
def Npvs(ZVKU): ZVKU = ZVKU if ZVKU else 'my_checkpoint.pth' grwe = ht2j.load(ZVKU) OKf9 = FYrf.vgg16(pretrained=True) OKf9.name = 'vgg16' for xqoZ in OKf9.parameters(): xqoZ.requires_grad = False OKf9.class_to_idx = grwe['class_to_idx'] OKf9.classifier = grwe['classifier'] OKf9....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wX8m(YKHO):\n YKHO.model.load_state_dict(ht2j.load(Hy7s.path.join(YKHO.model_save_dir, '{}_trained.pt'.format(YKHO.model_name)), map_location=ht2j.device(begE)))\n return YKHO.model", "def Nh79(YKHO, C3ST):\n print(f'load model {YKHO.save_model_path}')\n C3ST.load_state_dict(ht2j.load(YKHO.save_m...
[ "0.8077184", "0.77234274", "0.7683849", "0.7667268", "0.75915927", "0.7524329", "0.7518931", "0.74985963", "0.7457842", "0.7385532", "0.7383041", "0.7335793", "0.7287341", "0.7200805", "0.71371704", "0.71371704", "0.71371555", "0.7125249", "0.7123435", "0.7107675", "0.70958",...
0.81128615
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', Qzrp='cm', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.figure()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.7917871", "0.7916092...
0.80949175
1
Constructor to initialize the deque
def FIMM(YKHO): YKHO.deque = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._deque = []", "def FIMM(YKHO):\n YKHO.elements = MUE7()", "def FIMM(YKHO):\n YKHO.deque = MUE7()", "def FIMM(YKHO):\n YKHO.container = g760.deque()", "def FIMM(YKHO):\n YKHO.q = MUE7()", "def FIMM(YKHO):\n YKHO.q = MUE7()", "def FIMM(YKHO):\n YKHO.queue = MUE...
[ "0.8499815", "0.83815527", "0.8365499", "0.8330171", "0.8105382", "0.7980081", "0.79654586", "0.79342777", "0.79342777", "0.79342777", "0.79342777", "0.78924894", "0.7884013", "0.77948165", "0.77598447", "0.7733141", "0.7692219", "0.7686718", "0.7529789", "0.74916697", "0.747...
0.84410775
1
Adds an element to the front of the deque
def rMGb(YKHO, nPrm): YKHO.deque.insert(0, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def byB9(YKHO, tTpl):\n if YKHO.size_ >= YKHO.capacity_:\n YKHO.resize_front()\n YKHO.data_[YKHO.front_] = tTpl\n YKHO.size_ += 1\n elif YKHO.front_ == -1 and YKHO.size_ == 0:\n YKHO.front_ = 0\n YKHO.back_ = 0\n YKHO.data_[YKHO.front_] = tTpl\n YKHO.size_ += ...
[ "0.77549994", "0.75094783", "0.74801326", "0.74712056", "0.72849756", "0.7086032", "0.7032474", "0.7022156", "0.69790226", "0.6960295", "0.69151664", "0.69117135", "0.68907404", "0.68743676", "0.68214196", "0.67882174", "0.6771705", "0.6739565", "0.6715338", "0.66907316", "0....
0.7404988
4
Returns the first element in the deque
def cntZ(YKHO): return YKHO.deque[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element", "def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element", "def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n ...
[ "0.80593354", "0.80204725", "0.80053365", "0.8004414", "0.80032796", "0.793118", "0.7776589", "0.774455", "0.76118034", "0.76104987", "0.7552577", "0.7538736", "0.7434305", "0.73956317", "0.7380033", "0.73644245", "0.73642164", "0.73421144", "0.73411995", "0.73394734", "0.733...
0.867356
0
Returns the last element in the deque
def XVAW(YKHO): return YKHO.deque[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._trailer._prev._element", "def XVAW(OxJJ):\n Csk6 = MUE7(OxJJ, maxlen=1)\n try:\n return Csk6.pop()\n except IndexError:\n raise ValueError('Cannot return last item from empty iterable {!r}'.for...
[ "0.83619404", "0.81361616", "0.8125678", "0.8021724", "0.7877072", "0.7858371", "0.76965547", "0.75110203", "0.7472543", "0.7425174", "0.7407207", "0.7387161", "0.738661", "0.7381577", "0.73597956", "0.7323023", "0.72963166", "0.72594285", "0.7224552", "0.72160715", "0.721107...
0.88577557
0
Returns True if deque is empty, False otherwise
def FBfn(YKHO): return len(YKHO.deque) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(YKHO) -> bool:\n return len(YKHO._deque) == 0", "def lsmZ(YKHO) -> bool:\n return YKHO.que == []", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO) -> bool:\n return YKHO.peek(1) == []", "def FBfn(YKHO):\n if YKHO.front:\n return False\n return True", "def FB...
[ "0.8537911", "0.824748", "0.8027504", "0.80102396", "0.79565465", "0.7901459", "0.7897757", "0.78972703", "0.7870137", "0.7870137", "0.78655297", "0.7865324", "0.7851997", "0.7831357", "0.7802382", "0.77911174", "0.77904", "0.7769068", "0.776647", "0.77621317", "0.77555513", ...
0.87929404
0
Instantiate the system actors.
def FIMM(YKHO, gQkL, GbRl, m8hi, hI0L, aqHE, ltgN, z5aC, KOkN): YKHO.plant = Hnpi(gQkL, KOkN) YKHO.cofiring_plant = yU4P(gQkL, GbRl, KOkN) YKHO.quantity_plantgate = YKHO.cofiring_plant.cofuel_used YKHO.supply_chain = m8hi.fit(YKHO.quantity_plantgate[1]) YKHO.quantity_fieldside = fl5q(YKHO.supply_cha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gnc5=1):\n qmLP.warn(\"We're phasing out the Actor class, so as to get rid ofthe coros module. If you use Actor, please speak up on eventletdev@lists.secondlife.com, and we'll come up with a transition plan. If no one speaks up, we'll remove Actor in a future release of Eventlet.\", Deprecation...
[ "0.63393766", "0.6244451", "0.6038264", "0.6008568", "0.5929268", "0.5920251", "0.5890671", "0.5777727", "0.57585657", "0.57538205", "0.57364464", "0.5717696", "0.5663087", "0.5594261", "0.5591269", "0.5572086", "0.55700237", "0.5568734", "0.5563875", "0.5553691", "0.5543729"...
0.0
-1
The actual container name.
def G1wx(YKHO): y0cW = a4EO('core' if YKHO.core else 'service') return f'{y0cW}{YKHO.data.get('name')}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G1wx(YKHO):\n pass", "def G1wx(YKHO):\n if YKHO._container_name:\n return YKHO._container_name\n else:\n return YKHO.image.split(u'/').pop()", "def cn37(YKHO) -> str:\n TLI7 = Hy7s.path.basename(Hy7s.getcwd())\n JDyL = f'{TLI7}_{YKHO.config_name}'\n G1wx = YKHO.config_option...
[ "0.92294514", "0.89489174", "0.83954614", "0.8391197", "0.83595866", "0.83327043", "0.83327043", "0.79558134", "0.76143986", "0.75063074", "0.74708873", "0.7468279", "0.745296", "0.7422435", "0.7397043", "0.7371972", "0.72507155", "0.71832085", "0.7168389", "0.70871323", "0.7...
0.86036
2
Converts the given timestamp to UTC in ms.
def Zt6_(E3oo): qtWj = qcWV.utcfromtimestamp(0) RA_F = E3oo - qtWj return Swre(RA_F.total_seconds() * 1000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJMq():\n return UsKa(h5YN())", "def tAwz(Emd4, E3oo):\n if not isinstance(E3oo, qcWV.datetime):\n raise TypeError('Time.milliseconds expects a datetime object')\n return E3oo.timestamp()", "def wAg2(YKHO):\n try:\n WgTK = kJUT.parse(E3oo)\n YKHO.out_unix_milli = str(int((W...
[ "0.7090142", "0.6899361", "0.6824753", "0.67304724", "0.6622396", "0.658677", "0.6586293", "0.6555091", "0.65275544", "0.64966196", "0.6485975", "0.6364696", "0.63555795", "0.6323576", "0.6287337", "0.6263435", "0.62520576", "0.622443", "0.61472976", "0.6140285", "0.61374617"...
0.76610994
0
Split the data into n number of windows
def rMdi(YKHO, nPrm): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wX12(w_5H, vilq):\n if vilq <= 0 or int(vilq) != vilq:\n raise ValueError('Number of chunks must be an integer > 0')\n vilq = min(len(w_5H) - 1, vilq)\n RYsB = oyIN.array_split(w_5H[:-1], vilq)\n eHxA = []\n for r845 in range(vilq - 1):\n yOAJ = oyIN.append(RYsB[r845], RYsB[r845 + ...
[ "0.73843104", "0.7181842", "0.6972581", "0.6967457", "0.6923357", "0.6899833", "0.6893151", "0.685313", "0.68199116", "0.6775044", "0.6735774", "0.66875696", "0.6670692", "0.6668986", "0.6638037", "0.6573508", "0.65368426", "0.65212566", "0.64964896", "0.6486942", "0.64383376...
0.7103899
2
Returns whether a number even or odd.
def cLIG(FGW3): if FGW3 % 2 == 0: return 'even' else: return 'odd'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePD4(FGW3):\n if FGW3 % 2 == 0:\n return 0\n else:\n return 1", "def ubP8(mLGw):\n return mLGw % 2 == 0", "def kYZq(FGW3):\n return FGW3 % 2 != 0", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "def kYZq(FGW3):\n return FGW3 % 2 == 1", "def ubP8(FGW3):\n return FGW3 % 2...
[ "0.8773141", "0.8652858", "0.8618801", "0.8612913", "0.8608754", "0.8597059", "0.85251707", "0.85062665", "0.8498232", "0.8481834", "0.8439649", "0.8425389", "0.8389287", "0.83437073", "0.82812417", "0.82783157", "0.82269406", "0.821224", "0.81797224", "0.81760025", "0.816378...
0.78512853
30
Transformed target column of the training set.
def pF8E(YKHO): return YKHO.train_transformed[YKHO.target_param]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYzn(pan_, KndY, O5VI):\n pan_ = int(KndY[pan_])\n return O5VI.loc[pan_].target", "def rtdt(YKHO, nPrm):\n nPrm *= YKHO.target_max\n nPrm += YKHO.target_min\n return nPrm", "def ED5T(YKHO):\n return YKHO.train_transformed.drop(YKHO.target_param, axis=1)", "def x6A0(YKHO) -> llWB:\n r...
[ "0.7430735", "0.682454", "0.6596098", "0.6399546", "0.6246716", "0.60922945", "0.6076955", "0.6069151", "0.60529286", "0.5987275", "0.5965441", "0.59632826", "0.5945149", "0.5930683", "0.5923317", "0.5917745", "0.58594507", "0.58571947", "0.5840558", "0.58130753", "0.5803776"...
0.6851177
1
Create a link to wikiword word relative to baseWord. If downwardOnly is False, the link may contain parts to go to parents or siblings in path (in this wiki language, ".." are used for this). If downwardOnly is True, the function may return None if a relative link can't be constructed.
def y1Rv(GIN8, u4wA, DKSw=True): OKET = GIN8.split(u'/') qut7 = u4wA.split(u'/') if DKSw: if len(qut7) >= len(OKET): return None if qut7 != OKET[:len(qut7)]: return None return u'/' + u'/'.join(OKET[len(qut7):]) else: while len(OKET) > 0 and len(qu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wUwy(GIN8, kRXK):\n return ''", "def kTPb(GIN8, ykvI=None, nupW=None):\n return None", "def c6kn(YKHO):\n VkcI = YKHO.builder.getLinkrel(Qhn2('/foo/howto'), Qhn2('/foo/examples/quotes'))\n YKHO.assertEquals(VkcI, '../../howto/')", "def MMQU(P4t4, t1ac, w2IS, m2Zb, CXjG, xAU6):\n try:\n ...
[ "0.603494", "0.56156427", "0.526519", "0.51552457", "0.5107878", "0.50663745", "0.4715814", "0.47104707", "0.4678181", "0.46188635", "0.45861417", "0.4570237", "0.4566748", "0.45596468", "0.45180365", "0.44419533", "0.44241178", "0.43862557", "0.43843037", "0.43725365", "0.43...
0.8459139
0
Build an attribute from key and value.
def _zDB(H5ew, BWXx, kRXK=None): return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def build_key(YKHO, xC3W, BWXx, Wgp8='*'):\n YKHO.key = '{var1}:{var2}:{var3}:{var4}:{var5}'.format(var1=Wgp8, var2=YKHO.industry, var3=YKHO.merchant, var4=xC3W, var5=BWXx)", "def YJ7p(YKHO, H5ew, BWXx):\n YKHO.attributes[H5ew] = BWXx", "def BmJC(YKHO, H5ew: str, BWXx):\n if H5ew in YKHO._attr_n...
[ "0.6881229", "0.6525174", "0.6477995", "0.62150484", "0.6162136", "0.60774153", "0.60202587", "0.5947892", "0.5898615", "0.586439", "0.5834325", "0.58248746", "0.580927", "0.580927", "0.580927", "0.58012486", "0.5771141", "0.5733398", "0.5728786", "0.5705113", "0.56837344", ...
0.68675005
1
Load an item from dict representation.
def jG8h(Emd4, mWFP, nPrm): ZfUD = Emd4(mWFP) ZfUD.description = nPrm.get('description', '') ZfUD.difficulty = nPrm.get('difficulty', 0) ZfUD.prerequisites = nPrm.get('prerequisites', {}) ZfUD.prerequisites['items'] = mFWN(ZfUD.prerequisites.get('items')) ZfUD.prerequisites['research'] = mFWN(Zf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWln(YKHO, Csk6):\n YKHO._data = Csk6\n YKHO._doDefaults()", "def vj_J(YKHO, fK8P):\n pass", "def jG8h(Emd4, qHj0) -> 'ProductionFlowItem':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, qHj0: dict) -> 'LabeledItemRef':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG...
[ "0.6744647", "0.66992635", "0.6483175", "0.63947576", "0.6271019", "0.6226842", "0.61250454", "0.6095903", "0.60774404", "0.6033618", "0.6033618", "0.6033618", "0.6033618", "0.6033618", "0.6033618", "0.6011749", "0.5973894", "0.5973894", "0.5956535", "0.5895595", "0.58810747"...
0.57625246
76
Load configuration as YAML
def JQSr(Emd4, Ux0P: str): return Emd4(Dodi(Ux0P))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgIG():\n t7Ny = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n lqQH = Hy7s.path.join(t7Ny, 'config.yml')\n Fv2L = eJb6.safe_load(open(lqQH))\n return Fv2L", "def LgIG(pmON):\n return eJb6.load(open('config.yaml', 'r'), Loader=eJb6.SafeLoader)", "def LgIG(Ux0P):\n QmMM['config'] = jnN0(Ux0P...
[ "0.7498169", "0.7469654", "0.7407388", "0.73893446", "0.7375833", "0.7322686", "0.7309558", "0.730626", "0.728386", "0.7278236", "0.7198929", "0.71866953", "0.71773416", "0.7143315", "0.71375245", "0.7136472", "0.7121104", "0.71088123", "0.7106947", "0.7104316", "0.70963204",...
0.0
-1